Skip to content

Commit

Permalink
chore: upgrade dependencies (#296)
Browse files Browse the repository at this point in the history
* feat: upgrade deps

* fix: cleanup alerts in JS SDK options
  • Loading branch information
kevinperaza committed Dec 18, 2023
1 parent 0d45c00 commit e53618d
Show file tree
Hide file tree
Showing 3 changed files with 224 additions and 224 deletions.
8 changes: 1 addition & 7 deletions docs/sdks/web/javascript/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,12 @@ You can customize the behavior of your Elements using the following options:
| `enableCopy` | false | _boolean_ | true | [`cardNumber`](/docs/sdks/web/javascript/types#ard-number-element)<br/>[`cardExpirationDate`](/docs/sdks/web/javascript/types#card-expiration-date-element)<br/>[`cardElement`](/docs/sdks/web/javascript/types#card-element) <br/>[`cardVerificationCode`](/docs/sdks/web/javascript/types#card-verification-code-element) | Renders a button to allow users to copy the value of the element to the browser's clipboard without your application ever interacting with the data. |
| `validation` | false | _RegExp_ | true | [`text`](/docs/sdks/web/javascript/types#text-element) | [`RegExp` object] used to validate user input (on match) before [tokenization](/docs/sdks/web/javascript/services#tokenization-services) |

<Alert type={Alerts.WARNING}>Switching the validation strategy from <code>onBlur</code> to <code>onChange</code> will change the sequence and increase the number of events. When running validations <code>onChange</code>, elements emit events whenever an <code>error</code> occurs or if the input's <code>value</code> changes. Default validation <code>onBlur</code> triggers an event every time one of the properties in the <a href="/docs/sdks/web/javascript/events#changeevent"><code>changeEvent</code></a> changes.</Alert>

<Alert type={Alerts.ERROR}>When using some end-to-end testing frameworks and using the default validation <code>onBlur</code>, you may need to force the blur events to trigger the validation due to framework-specific limitations.</Alert>

<Alert type={Alerts.WARNING}>The <code>mask</code> option cannot be used when the <code>password</code> option is set as <code>true</code>.</Alert>

<Alert type={Alerts.WARNING}><code>enableCopy</code> is available for Chromium-based browsers only; we're actively working on multi-browser support. Have feedback or questions? Feel free to join us in our <a href="https://community.basistheory.com">Slack community</a>.</Alert>
<Alert type={Alerts.WARNING}><ol><li>Switching the validation strategy from <code>onBlur</code> to <code>onChange</code> will change the sequence and increase the number of events. When running validations <code>onChange</code>, elements emit events whenever an <code>error</code> occurs or if the input's <code>value</code> changes. Default validation <code>onBlur</code> triggers an event every time one of the properties in the <a href="/docs/sdks/web/javascript/events#changeevent"><code>changeEvent</code></a> changes.</li><br /><li><code>enableCopy</code> is available for Chromium-based browsers only; we're actively working on multi-browser support. Have feedback or questions? Feel free to join us in our <a href="https://community.basistheory.com">Slack community</a>.</li><br /><li>Using the <code>value</code> attribute instead of user input may have compliance implications.</li><br /><li>The <code>mask</code> option cannot be used when the <code>password</code> option is set as <code>true</code>.</li></ol></Alert>

<Alert>The <code>autoComplete</code> option is turned off by default, contrary to the default browser behavior which is on.</Alert>

<Alert type={Alerts.WARNING}>Using the <code>value</code> attribute instead of user input may have compliance implications.</Alert>

## Style

Elements are styled through the `ElementStyle` object, which maps state variants and miscellaneous.
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
"@docusaurus/plugin-client-redirects": "^3.0.1",
"@docusaurus/preset-classic": "^3.0.1",
"@docusaurus/theme-mermaid": "^3.0.1",
"@swc/core": "^1.3.100",
"@swc/core": "^1.3.101",
"axios": "^1.6.2",
"clsx": "^2.0.0",
"docusaurus-lunr-search": "^3.3.1",
"docusaurus-plugin-sass": "^0.2.5",
"prism-react-renderer": "^2.3.0",
"prism-react-renderer": "^2.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "^1.69.5",
Expand All @@ -38,10 +38,10 @@
"@semantic-release/commit-analyzer": "^11.1.0",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^9.2.4",
"@semantic-release/github": "^9.2.5",
"@semantic-release/release-notes-generator": "^12.1.0",
"@tsconfig/docusaurus": "^2.0.2",
"semantic-release": "^22.0.10",
"semantic-release": "^22.0.12",
"typescript": "^5.3.3"
},
"browserslist": {
Expand Down
Loading

1 comment on commit e53618d

@vercel
Copy link

@vercel vercel bot commented on e53618d Dec 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.