@basis-theory/basis-theory-js 4.10.1 → 4.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,5 +4,5 @@ declare const ELEMENTS_SCRIPT_LOAD_ERROR_MESSAGE = "Basis Theory Elements did no
4
4
  declare const ELEMENTS_SCRIPT_UNKNOWN_ERROR_MESSAGE = "There was an unknown error when loading Basis Theory Elements. Check the console for details.";
5
5
  declare const CARD_BRANDS: readonly ["visa", "mastercard", "american-express", "discover", "diners-club", "jcb", "unionpay", "maestro", "elo", "hiper", "hipercard", "mir", "unknown"];
6
6
  declare const CARD_ICON_POSITIONS: readonly ["left", "right", "none"];
7
- declare const AUTOCOMPLETE_VALUES: readonly ["off", "on"];
7
+ declare const AUTOCOMPLETE_VALUES: readonly ["additional-name", "address-level1", "address-level2", "address-level3", "address-level4", "address-line1", "address-line2", "address-line3", "bday-day", "bday-month", "bday-year", "bday", "billing", "cc-additional-name", "cc-csc", "cc-exp-month", "cc-exp-year", "cc-exp", "cc-family-name", "cc-given-name", "cc-name", "cc-number", "cc-type", "country-name", "country", "current-password", "email", "family-name", "fax", "given-name", "home", "honorific-prefix", "honorific-suffix", "language", "mobile", "name", "new-password", "nickname", "off", "on", "one-time-code", "organization-title", "organization", "page", "postal-code", "sex", "shipping", "street-address", "tel-area-code", "tel-country-code", "tel-extension", "tel-local-prefix", "tel-local-suffix", "tel-local", "tel-national", "tel", "transaction-amount", "transaction-currency", "url", "username", "work"];
8
8
  export { ELEMENTS_INIT_ERROR_MESSAGE, ELEMENTS_NOM_DOM_ERROR_MESSAGE, ELEMENTS_SCRIPT_LOAD_ERROR_MESSAGE, ELEMENTS_SCRIPT_UNKNOWN_ERROR_MESSAGE, CARD_BRANDS, CARD_ICON_POSITIONS, AUTOCOMPLETE_VALUES, };
@@ -14,7 +14,8 @@ const ELEMENTS_SCRIPT_UNKNOWN_ERROR_MESSAGE = 'There was an unknown error when l
14
14
  exports.ELEMENTS_SCRIPT_UNKNOWN_ERROR_MESSAGE = ELEMENTS_SCRIPT_UNKNOWN_ERROR_MESSAGE;
15
15
  const CARD_BRANDS = ['visa', 'mastercard', 'american-express', 'discover', 'diners-club', 'jcb', 'unionpay', 'maestro', 'elo', 'hiper', 'hipercard', 'mir', 'unknown'];
16
16
  exports.CARD_BRANDS = CARD_BRANDS;
17
- const CARD_ICON_POSITIONS = ['left', 'right', 'none'];
17
+ const CARD_ICON_POSITIONS = ['left', 'right', 'none']; // https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
18
+
18
19
  exports.CARD_ICON_POSITIONS = CARD_ICON_POSITIONS;
19
- const AUTOCOMPLETE_VALUES = ['off', 'on'];
20
+ const AUTOCOMPLETE_VALUES = ['additional-name', 'address-level1', 'address-level2', 'address-level3', 'address-level4', 'address-line1', 'address-line2', 'address-line3', 'bday-day', 'bday-month', 'bday-year', 'bday', 'billing', 'cc-additional-name', 'cc-csc', 'cc-exp-month', 'cc-exp-year', 'cc-exp', 'cc-family-name', 'cc-given-name', 'cc-name', 'cc-number', 'cc-type', 'country-name', 'country', 'current-password', 'email', 'family-name', 'fax', 'given-name', 'home', 'honorific-prefix', 'honorific-suffix', 'language', 'mobile', 'name', 'new-password', 'nickname', 'off', 'on', 'one-time-code', 'organization-title', 'organization', 'page', 'postal-code', 'sex', 'shipping', 'street-address', 'tel-area-code', 'tel-country-code', 'tel-extension', 'tel-local-prefix', 'tel-local-suffix', 'tel-local', 'tel-national', 'tel', 'transaction-amount', 'transaction-currency', 'url', 'username', 'work'];
20
21
  exports.AUTOCOMPLETE_VALUES = AUTOCOMPLETE_VALUES;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basis-theory/basis-theory-js",
3
- "version": "4.10.1",
3
+ "version": "4.12.0",
4
4
  "repository": "https://github.com/Basis-Theory/basis-theory-js",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -22,7 +22,7 @@ declare enum InputMode {
22
22
  interface SanitizedElementOptions {
23
23
  ariaDescription?: string;
24
24
  ariaLabel?: string;
25
- autoComplete?: string;
25
+ autoComplete?: AutoCompleteValue;
26
26
  cardBrand?: string;
27
27
  cardTypes?: CreditCardType[];
28
28
  copyIconStyles?: CopyIconStyles;