@basis-theory/basis-theory-js 1.79.5 → 1.80.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basis-theory/basis-theory-js",
3
- "version": "1.79.5",
3
+ "version": "1.80.0",
4
4
  "repository": "https://github.com/Basis-Theory/basis-theory-js",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -24,7 +24,7 @@ class BasisTheoryService {
24
24
  if (typeof _axios.default === 'string') {
25
25
  // known issue with create react app
26
26
  // eslint-disable-next-line unicorn/prefer-type-error
27
- throw new Error('The Basis Theory SDK is not supported with CRA 5, downgrade to CRA 4 or see https://github.com/facebook/create-react-app/issues/11889#issuecomment-1114928008 for a workaround.');
27
+ throw new Error('basis-theory-js@1.77.0+ and basis-theory-react@1.12.1+ are not supported with CRA 5, go to https://github.com/Basis-Theory/basis-theory-js/issues/365#issuecomment-1662883062 for workarounds.');
28
28
  } else {
29
29
  this.client = _axios.default.create({
30
30
  baseURL,
@@ -12,6 +12,7 @@ interface SanitizedElementOptions {
12
12
  enableCopy?: boolean;
13
13
  style?: ElementStyle;
14
14
  disabled?: boolean;
15
+ readOnly?: boolean;
15
16
  targetId?: string;
16
17
  mask?: (RegExp | string)[];
17
18
  password?: boolean;
@@ -33,7 +34,7 @@ interface TransformOption {
33
34
  interface AutoCompleteOption {
34
35
  autoComplete?: AutoCompleteValue;
35
36
  }
36
- type CustomizableElementOptions = Pick<ElementOptions, 'style' | 'disabled' | 'validateOnChange' | 'enableCopy'> & AutoCompleteOption;
37
+ type CustomizableElementOptions = Pick<ElementOptions, 'style' | 'disabled' | 'readOnly' | 'validateOnChange' | 'enableCopy'> & AutoCompleteOption;
37
38
  type ElementValueType = 'static' | 'reference';
38
39
  interface CardElementValue<T extends ElementValueType> {
39
40
  number?: T extends 'reference' ? DataElementReference : string;