Skip to content

Commit

Permalink
Add support for oversized prop
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonabrown committed Aug 23, 2024
1 parent 9aff565 commit 26a1071
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ For accounts at `app.demo.pactsafe.com`, set the `psScriptUrl` prop as `//vault.
| `signerIdSelector` | The ID of the `<input>` element that will be used to identify the signer. | string | Yes | Required Value |
| `signerId` | Use this to set the signer id directly. Note that if this value is tied to a state variable updated via user input, you may hit rate limits if it is updated frequently in a short period of time. To avoid hitting a rate limit, it is best to set the value tied to this prop only when the user's input is complete as opposed to changing this value on a per character basis. | string | No, unless `signerIdSelector` is not passed | undefined |
| `snapshotLocation` | Ironclad Clickwrap Snapshot Location Key, this is found within the Snapshot Location configuration | string | No | undefined |

| `oversized` | Prop to support sizable payloads (e.g., when generating complex templates or including extensive data) | bool | No | false |
| `testMode` | Enable this to register any contract acceptances as test data that can be cleared within the Ironclad Clickwrap UI | bool | No | false |
| `allowDisagreed` | Enable this to allow invalid events to be triggered when a signer unchecks a checkbox. | bool | Required to be true if `onInvalid` is passed | Value specified in Ironclad Clickwrap Group's UI |
| `onAll` | See [onAll](#onAll) below | function | No | undefined |
Expand Down
3 changes: 3 additions & 0 deletions src/PSClickWrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ class PSClickWrap extends React.Component {
forceScroll,
groupKey,
injectSnippetOnly,
oversized,
renderData,
signerIdSelector,
snapshotLocation,
Expand All @@ -230,6 +231,7 @@ class PSClickWrap extends React.Component {
display_all: displayAll,
...(filter !== undefined && { filter }),
...(forceScroll !== undefined && { force_scroll: forceScroll }),
...(oversized !== undefined && { oversized: oversized }),
...(renderData !== undefined && { render_data: renderData }),
...(signerIdSelector !== undefined && { signer_id_selector: signerIdSelector }),
...(clickWrapStyle !== undefined && { style: clickWrapStyle }),
Expand Down Expand Up @@ -312,6 +314,7 @@ PSClickWrap.propTypes = {
injectSnippetOnly: PropTypes.bool,
psScriptUrl: PropTypes.string,
backupScriptURL: PropTypes.string,
oversized: PropTypes.bool,
renderData: isRequiredIf(
PropTypes.object,
(props) => props.hasOwnProperty('dynamic') && props.dynamic === true,
Expand Down

0 comments on commit 26a1071

Please sign in to comment.