@basis-theory/react-elements 1.11.2 → 1.11.4

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.
@@ -1,5 +1,5 @@
1
- var $6ZdRe$basistheorywebelements = require("@basis-theory/web-elements");
2
1
  var $6ZdRe$react = require("react");
2
+ var $6ZdRe$basistheorywebelements = require("@basis-theory/web-elements");
3
3
  var $6ZdRe$reactjsxruntime = require("react/jsx-runtime");
4
4
 
5
5
 
@@ -27,21 +27,6 @@ function $parcel$export(e, n, v, s) {
27
27
  function $parcel$interopDefault(a) {
28
28
  return a && a.__esModule ? a.default : a;
29
29
  }
30
-
31
- $parcel$export(module.exports, "AMERICAN_EXPRESS", () => $6ZdRe$basistheorywebelements.AMERICAN_EXPRESS);
32
- $parcel$export(module.exports, "DEFAULT_CARD_TYPES", () => $6ZdRe$basistheorywebelements.DEFAULT_CARD_TYPES);
33
- $parcel$export(module.exports, "DINERS_CLUB", () => $6ZdRe$basistheorywebelements.DINERS_CLUB);
34
- $parcel$export(module.exports, "DISCOVER", () => $6ZdRe$basistheorywebelements.DISCOVER);
35
- $parcel$export(module.exports, "ELO", () => $6ZdRe$basistheorywebelements.ELO);
36
- $parcel$export(module.exports, "HIPER", () => $6ZdRe$basistheorywebelements.HIPER);
37
- $parcel$export(module.exports, "HIPERCARD", () => $6ZdRe$basistheorywebelements.HIPERCARD);
38
- $parcel$export(module.exports, "JCB", () => $6ZdRe$basistheorywebelements.JCB);
39
- $parcel$export(module.exports, "MAESTRO", () => $6ZdRe$basistheorywebelements.MAESTRO);
40
- $parcel$export(module.exports, "MASTERCARD", () => $6ZdRe$basistheorywebelements.MASTERCARD);
41
- $parcel$export(module.exports, "MIR", () => $6ZdRe$basistheorywebelements.MIR);
42
- $parcel$export(module.exports, "UNION_PAY", () => $6ZdRe$basistheorywebelements.UNION_PAY);
43
- $parcel$export(module.exports, "VISA", () => $6ZdRe$basistheorywebelements.VISA);
44
- $parcel$export(module.exports, "CARD_BRANDS", () => $6ZdRe$basistheorywebelements.CARD_BRANDS);
45
30
  var $a6b9dd675f852902$exports = {};
46
31
 
47
32
  $parcel$export($a6b9dd675f852902$exports, "useBasisTheory", () => $311cac811dba7e3c$export$8855c0c49ada8fa3);
@@ -254,7 +239,7 @@ function CardElement(props, ref) {
254
239
 
255
240
 
256
241
 
257
- const $5056c1f1f96da4b6$var$TextElementC = ({ 'aria-label': ariaLabel, autoComplete: autoComplete, bt: bt, disabled: disabled, elementRef: elementRef, id: id, inputMode: inputMode, mask: mask, maxLength: maxLength, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown, onReady: onReady, password: password, placeholder: placeholder, readOnly: readOnly, style: style, transform: transform, validation: validation, value: value, valueRef: valueRef })=>{
242
+ const $5056c1f1f96da4b6$var$TextElementC = ({ 'aria-label': ariaLabel, autoComplete: autoComplete, bt: bt, disabled: disabled, elementRef: elementRef, id: id, inputMode: inputMode, mask: mask, maxLength: maxLength, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown, onReady: onReady, password: password, placeholder: placeholder, readOnly: readOnly, style: style, transform: transform, validateOnChange: validateOnChange, validation: validation, value: value, valueRef: valueRef })=>{
258
243
  const wrapperRef = (0, $6ZdRe$react.useRef)(null);
259
244
  const element = (0, $515e46363124517b$export$93e1bc7222cfbdc8)(id, 'text', wrapperRef, {
260
245
  'aria-label': ariaLabel,
@@ -269,6 +254,7 @@ const $5056c1f1f96da4b6$var$TextElementC = ({ 'aria-label': ariaLabel, autoCompl
269
254
  style: style,
270
255
  targetId: id,
271
256
  transform: transform,
257
+ validateOnChange: validateOnChange,
272
258
  validation: validation,
273
259
  value: value
274
260
  }, bt, elementRef, valueRef);
@@ -411,8 +397,11 @@ const $9bb5cbc1cc445953$export$36d668a024913c87 = /*#__PURE__*/ (0, ($parcel$int
411
397
 
412
398
 
413
399
 
400
+ var $155b7e20af39b8bd$exports = {};
401
+
414
402
 
415
403
  $parcel$exportWildcard(module.exports, $a6b9dd675f852902$exports);
416
404
  $parcel$exportWildcard(module.exports, $09db7b15c2691edc$exports);
405
+ $parcel$exportWildcard(module.exports, $155b7e20af39b8bd$exports);
417
406
 
418
407
 
@@ -1,5 +1,5 @@
1
- import {AMERICAN_EXPRESS as $8fc858ffa1007a27$re_export$AMERICAN_EXPRESS, DEFAULT_CARD_TYPES as $8fc858ffa1007a27$re_export$DEFAULT_CARD_TYPES, DINERS_CLUB as $8fc858ffa1007a27$re_export$DINERS_CLUB, DISCOVER as $8fc858ffa1007a27$re_export$DISCOVER, ELO as $8fc858ffa1007a27$re_export$ELO, HIPER as $8fc858ffa1007a27$re_export$HIPER, HIPERCARD as $8fc858ffa1007a27$re_export$HIPERCARD, JCB as $8fc858ffa1007a27$re_export$JCB, MAESTRO as $8fc858ffa1007a27$re_export$MAESTRO, MASTERCARD as $8fc858ffa1007a27$re_export$MASTERCARD, MIR as $8fc858ffa1007a27$re_export$MIR, UNION_PAY as $8fc858ffa1007a27$re_export$UNION_PAY, VISA as $8fc858ffa1007a27$re_export$VISA, CARD_BRANDS as $8fc858ffa1007a27$re_export$CARD_BRANDS, basistheory as $gb0K4$basistheory} from "@basis-theory/web-elements";
2
1
  import $gb0K4$react, {useState as $gb0K4$useState, useRef as $gb0K4$useRef, useEffect as $gb0K4$useEffect, createContext as $gb0K4$createContext, useMemo as $gb0K4$useMemo, useContext as $gb0K4$useContext} from "react";
2
+ import {basistheory as $gb0K4$basistheory} from "@basis-theory/web-elements";
3
3
  import {jsx as $gb0K4$jsx} from "react/jsx-runtime";
4
4
 
5
5
 
@@ -218,7 +218,7 @@ function CardElement(props, ref) {
218
218
 
219
219
 
220
220
 
221
- const $098244fc1ecf3b22$var$TextElementC = ({ 'aria-label': ariaLabel, autoComplete: autoComplete, bt: bt, disabled: disabled, elementRef: elementRef, id: id, inputMode: inputMode, mask: mask, maxLength: maxLength, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown, onReady: onReady, password: password, placeholder: placeholder, readOnly: readOnly, style: style, transform: transform, validation: validation, value: value, valueRef: valueRef })=>{
221
+ const $098244fc1ecf3b22$var$TextElementC = ({ 'aria-label': ariaLabel, autoComplete: autoComplete, bt: bt, disabled: disabled, elementRef: elementRef, id: id, inputMode: inputMode, mask: mask, maxLength: maxLength, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown, onReady: onReady, password: password, placeholder: placeholder, readOnly: readOnly, style: style, transform: transform, validateOnChange: validateOnChange, validation: validation, value: value, valueRef: valueRef })=>{
222
222
  const wrapperRef = (0, $gb0K4$useRef)(null);
223
223
  const element = (0, $001f9ef7a572da43$export$93e1bc7222cfbdc8)(id, 'text', wrapperRef, {
224
224
  'aria-label': ariaLabel,
@@ -233,6 +233,7 @@ const $098244fc1ecf3b22$var$TextElementC = ({ 'aria-label': ariaLabel, autoCompl
233
233
  style: style,
234
234
  targetId: id,
235
235
  transform: transform,
236
+ validateOnChange: validateOnChange,
236
237
  validation: validation,
237
238
  value: value
238
239
  }, bt, elementRef, valueRef);
@@ -375,7 +376,9 @@ const $6f922196262b492d$export$36d668a024913c87 = /*#__PURE__*/ (0, $gb0K4$react
375
376
 
376
377
 
377
378
 
379
+ var $17e03523eeef3efb$exports = {};
380
+
378
381
 
379
382
 
380
383
 
381
- export {$8fc858ffa1007a27$re_export$AMERICAN_EXPRESS as AMERICAN_EXPRESS, $8fc858ffa1007a27$re_export$DEFAULT_CARD_TYPES as DEFAULT_CARD_TYPES, $8fc858ffa1007a27$re_export$DINERS_CLUB as DINERS_CLUB, $8fc858ffa1007a27$re_export$DISCOVER as DISCOVER, $8fc858ffa1007a27$re_export$ELO as ELO, $8fc858ffa1007a27$re_export$HIPER as HIPER, $8fc858ffa1007a27$re_export$HIPERCARD as HIPERCARD, $8fc858ffa1007a27$re_export$JCB as JCB, $8fc858ffa1007a27$re_export$MAESTRO as MAESTRO, $8fc858ffa1007a27$re_export$MASTERCARD as MASTERCARD, $8fc858ffa1007a27$re_export$MIR as MIR, $8fc858ffa1007a27$re_export$UNION_PAY as UNION_PAY, $8fc858ffa1007a27$re_export$VISA as VISA, $8fc858ffa1007a27$re_export$CARD_BRANDS as CARD_BRANDS, $af3ff746464f54fa$export$8855c0c49ada8fa3 as useBasisTheory, $45f18da36523d589$export$e61fbf0ee83adc05 as BasisTheoryProvider, $22a85849b67e3ab0$export$642653cabb64aed9 as CardElement, $098244fc1ecf3b22$export$764077542c4bf9bd as TextElement, $c9d0638264a6246e$export$a2311b18160d2f3f as CardNumberElement, $b04bbbda03b8923f$export$d5128efc3cebc889 as CardExpirationDateElement, $6f922196262b492d$export$36d668a024913c87 as CardVerificationCodeElement};
384
+ export {$af3ff746464f54fa$export$8855c0c49ada8fa3 as useBasisTheory, $45f18da36523d589$export$e61fbf0ee83adc05 as BasisTheoryProvider, $22a85849b67e3ab0$export$642653cabb64aed9 as CardElement, $098244fc1ecf3b22$export$764077542c4bf9bd as TextElement, $c9d0638264a6246e$export$a2311b18160d2f3f as CardNumberElement, $b04bbbda03b8923f$export$d5128efc3cebc889 as CardExpirationDateElement, $6f922196262b492d$export$36d668a024913c87 as CardVerificationCodeElement};
package/package.json CHANGED
@@ -1,24 +1,23 @@
1
1
  {
2
2
  "name": "@basis-theory/react-elements",
3
- "version": "1.11.2",
3
+ "version": "1.11.4",
4
4
  "repository": "https://github.com/basis-theory/react-elements",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
7
7
  "name": "Basis Theory",
8
8
  "email": "support@basistheory.com"
9
9
  },
10
- "source": "src/index.ts",
11
- "module": "dist/module/module.js",
12
- "main": "dist/main/index.js",
13
- "types": "dist/types/index.d.ts",
10
+ "module": "module/module.js",
11
+ "main": "main/index.js",
12
+ "types": "types/index.d.ts",
14
13
  "files": [
15
- "dist"
14
+ "*",
15
+ "!/bundle"
16
16
  ],
17
17
  "scripts": {
18
- "build:dev": "yarn clean && parcel build && yarn generateTypes && npx size-limit",
19
- "build": "node ../scripts/react-elements/prepare.js && parcel build --no-cache && yarn generateTypes",
18
+ "build:dev": "yarn clean && parcel build && npx size-limit",
19
+ "build": "node ../scripts/react-elements/prepare.js && parcel build --no-cache",
20
20
  "clean": "rimraf dist .parcel-cache",
21
- "generateTypes": "tsc --emitDeclarationOnly",
22
21
  "lint-staged": "lint-staged",
23
22
  "lint:fix": "eslint --fix",
24
23
  "lint": "eslint",
@@ -26,56 +25,15 @@
26
25
  "test": "jest",
27
26
  "watch": "parcel watch"
28
27
  },
29
- "targets": {
30
- "main": {
31
- "isLibrary": true,
32
- "sourceMap": false
33
- },
34
- "module": {
35
- "isLibrary": true,
36
- "sourceMap": false
37
- },
38
- "types": {
39
- "isLibrary": true,
40
- "sourceMap": false
41
- }
42
- },
43
- "alias": {},
44
28
  "publishConfig": {
45
29
  "access": "public",
46
30
  "tag": "latest"
47
31
  },
48
- "size-limit": [
49
- {
50
- "path": "dist/main/index.js",
51
- "limit": "25 KB"
52
- },
53
- {
54
- "path": "dist/module/module.js",
55
- "limit": "25 KB"
56
- }
57
- ],
58
32
  "dependencies": {
59
- "@basis-theory/web-elements": "1.11.2"
33
+ "@basis-theory/web-elements": "1.11.4"
60
34
  },
61
35
  "peerDependencies": {
62
36
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
63
37
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
64
- },
65
- "devDependencies": {
66
- "@parcel/packager-ts": "2.13.2",
67
- "@parcel/transformer-typescript-types": "2.13.3",
68
- "@size-limit/preset-small-lib": "^11.1.6",
69
- "@testing-library/jest-dom": "^6.6.3",
70
- "@testing-library/react": "^16.2.0",
71
- "@types/react": "^18",
72
- "@types/react-dom": "^18",
73
- "jest": "^29.7.0",
74
- "jest-environment-jsdom": "^29.7.0",
75
- "parcel": "^2.13.2",
76
- "react": "^18.3.1",
77
- "react-dom": "^18.3.1",
78
- "ts-jest": "^29.2.5",
79
- "typescript": "^5.7.2"
80
38
  }
81
39
  }