@coinflowlabs/react 5.12.0 → 5.14.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.
Files changed (94) hide show
  1. package/README.md +3 -1
  2. package/build/cjs/CoinflowApplePayButton.d.ts +1 -1
  3. package/build/cjs/CoinflowApplePayButton.js +1 -1
  4. package/build/cjs/CoinflowGooglePayButton.js +1 -1
  5. package/build/cjs/CoinflowIFrame.d.ts +2 -2
  6. package/build/cjs/CoinflowIFrame.js +5 -3
  7. package/build/cjs/CoinflowIFrame.js.map +1 -1
  8. package/build/cjs/CoinflowPaymentIntentPurchase.d.ts +3 -0
  9. package/build/cjs/CoinflowPaymentIntentPurchase.js +45 -0
  10. package/build/cjs/CoinflowPaymentIntentPurchase.js.map +1 -0
  11. package/build/cjs/CoinflowPurchase.js +6 -87
  12. package/build/cjs/CoinflowPurchase.js.map +1 -1
  13. package/build/cjs/CoinflowPurchaseHistory.js +1 -1
  14. package/build/cjs/CoinflowPurchaseProtection.d.ts +1 -1
  15. package/build/cjs/CoinflowWithdraw.js +1 -1
  16. package/build/cjs/CoinflowWithdrawHistory.js +1 -1
  17. package/build/cjs/Loader.d.ts +5 -0
  18. package/build/cjs/Loader.js +39 -0
  19. package/build/cjs/Loader.js.map +1 -0
  20. package/build/cjs/MobileWalletButton.d.ts +1 -1
  21. package/build/cjs/MobileWalletButton.js +1 -1
  22. package/build/cjs/Utils.d.ts +42 -0
  23. package/build/cjs/Utils.js +56 -0
  24. package/build/cjs/Utils.js.map +1 -0
  25. package/build/cjs/card-form/CoinflowCardForm.d.ts +6 -6
  26. package/build/cjs/card-form/CoinflowCardFormV2.d.ts +6 -6
  27. package/build/cjs/card-form/CoinflowCardFormV2.js +21 -11
  28. package/build/cjs/card-form/CoinflowCardFormV2.js.map +1 -1
  29. package/build/cjs/card-form/useCardFormIframe.d.ts +5 -5
  30. package/build/cjs/common/CoinflowProtectionInit.d.ts +1 -1
  31. package/build/cjs/common/CoinflowProtectionInit.js +3 -6
  32. package/build/cjs/common/CoinflowProtectionInit.js.map +1 -1
  33. package/build/cjs/common/CoinflowProtectionInit.native.d.ts +1 -0
  34. package/build/cjs/common/CoinflowProtectionInit.native.js +7 -0
  35. package/build/cjs/common/CoinflowProtectionInit.native.js.map +1 -0
  36. package/build/cjs/common/CoinflowProtectionSession.d.ts +1 -1
  37. package/build/cjs/common/CoinflowPurchaseProtectionHeaders.d.ts +5 -0
  38. package/build/cjs/common/CoinflowPurchaseProtectionHeaders.js +18 -2
  39. package/build/cjs/common/CoinflowPurchaseProtectionHeaders.js.map +1 -1
  40. package/build/cjs/common/CoinflowTypes.d.ts +82 -9
  41. package/build/cjs/common/CoinflowTypes.js +3 -0
  42. package/build/cjs/common/CoinflowTypes.js.map +1 -1
  43. package/build/cjs/common/CoinflowUtils.d.ts +6 -3
  44. package/build/cjs/common/CoinflowUtils.js +33 -5
  45. package/build/cjs/common/CoinflowUtils.js.map +1 -1
  46. package/build/cjs/common/card-form/tokenexHelpers.d.ts +1 -1
  47. package/build/cjs/useOverlay.d.ts +2 -2
  48. package/build/cjs/useOverlay.js +3 -4
  49. package/build/cjs/useOverlay.js.map +1 -1
  50. package/build/esm/CoinflowApplePayButton.d.ts +1 -1
  51. package/build/esm/CoinflowIFrame.d.ts +2 -2
  52. package/build/esm/CoinflowIFrame.js +4 -2
  53. package/build/esm/CoinflowIFrame.js.map +1 -1
  54. package/build/esm/CoinflowPaymentIntentPurchase.d.ts +3 -0
  55. package/build/esm/CoinflowPaymentIntentPurchase.js +41 -0
  56. package/build/esm/CoinflowPaymentIntentPurchase.js.map +1 -0
  57. package/build/esm/CoinflowPurchase.js +2 -83
  58. package/build/esm/CoinflowPurchase.js.map +1 -1
  59. package/build/esm/CoinflowPurchaseProtection.d.ts +1 -1
  60. package/build/esm/Loader.d.ts +5 -0
  61. package/build/esm/Loader.js +35 -0
  62. package/build/esm/Loader.js.map +1 -0
  63. package/build/esm/MobileWalletButton.d.ts +1 -1
  64. package/build/esm/Utils.d.ts +42 -0
  65. package/build/esm/Utils.js +52 -0
  66. package/build/esm/Utils.js.map +1 -0
  67. package/build/esm/card-form/CoinflowCardForm.d.ts +6 -6
  68. package/build/esm/card-form/CoinflowCardFormV2.d.ts +6 -6
  69. package/build/esm/card-form/CoinflowCardFormV2.js +21 -11
  70. package/build/esm/card-form/CoinflowCardFormV2.js.map +1 -1
  71. package/build/esm/card-form/useCardFormIframe.d.ts +5 -5
  72. package/build/esm/common/CoinflowProtectionInit.d.ts +1 -1
  73. package/build/esm/common/CoinflowProtectionInit.js +2 -5
  74. package/build/esm/common/CoinflowProtectionInit.js.map +1 -1
  75. package/build/esm/common/CoinflowProtectionInit.native.d.ts +1 -0
  76. package/build/esm/common/CoinflowProtectionInit.native.js +4 -0
  77. package/build/esm/common/CoinflowProtectionInit.native.js.map +1 -0
  78. package/build/esm/common/CoinflowProtectionSession.d.ts +1 -1
  79. package/build/esm/common/CoinflowPurchaseProtectionHeaders.d.ts +5 -0
  80. package/build/esm/common/CoinflowPurchaseProtectionHeaders.js +15 -0
  81. package/build/esm/common/CoinflowPurchaseProtectionHeaders.js.map +1 -1
  82. package/build/esm/common/CoinflowTypes.d.ts +82 -9
  83. package/build/esm/common/CoinflowTypes.js +3 -0
  84. package/build/esm/common/CoinflowTypes.js.map +1 -1
  85. package/build/esm/common/CoinflowUtils.d.ts +6 -3
  86. package/build/esm/common/CoinflowUtils.js +32 -4
  87. package/build/esm/common/CoinflowUtils.js.map +1 -1
  88. package/build/esm/common/card-form/tokenexHelpers.d.ts +1 -1
  89. package/build/esm/useOverlay.d.ts +2 -2
  90. package/build/esm/useOverlay.js +3 -3
  91. package/build/esm/useOverlay.js.map +1 -1
  92. package/build/tsconfig.cjs.tsbuildinfo +1 -1
  93. package/build/tsconfig.tsbuildinfo +1 -1
  94. package/package.json +2 -2
package/README.md CHANGED
@@ -5,7 +5,9 @@
5
5
  ### 5.12.0
6
6
 
7
7
  - New `CoinflowCardForm`, `CoinflowCardNumberForm`, and `CoinflowCvvForm` components — simple card inputs with a single `tokenize()` call and full theme support
8
- - Added theme options for `fontSize` and placeholder text
8
+ - Theme options: `font`, `fontSize`, `background`, `textColor`, `showCardIcon`, `cardNumberPlaceholder`, `cvvPlaceholder`, `expirationPlaceholder`
9
+ - `showCardIcon`: display the detected card brand (Visa, Mastercard, etc.) inline with the card number input
10
+ - Improved browser autocomplete support for card fields
9
11
  - Improved security for iframe communication
10
12
 
11
13
  ## Withdraw Usage
@@ -2,4 +2,4 @@ import { CoinflowPurchaseProps } from './common';
2
2
  import React from 'react';
3
3
  import { MobileWalletButtonProps } from './MobileWalletButton';
4
4
  export declare function CoinflowApplePayButton(props: CoinflowPurchaseProps & MobileWalletButtonProps): React.JSX.Element;
5
- export declare function AppleButtonOverlayLogo({ color }: Pick<MobileWalletButtonProps, 'color'>): React.JSX.Element;
5
+ export declare function AppleButtonOverlayLogo({ color, }: Pick<MobileWalletButtonProps, 'color'>): React.JSX.Element;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
3
  exports.CoinflowApplePayButton = CoinflowApplePayButton;
5
4
  exports.AppleButtonOverlayLogo = AppleButtonOverlayLogo;
5
+ const tslib_1 = require("tslib");
6
6
  const react_1 = tslib_1.__importDefault(require("react"));
7
7
  const MobileWalletButton_1 = require("./MobileWalletButton");
8
8
  function CoinflowApplePayButton(props) {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
3
  exports.CoinflowGooglePayButton = CoinflowGooglePayButton;
4
+ const tslib_1 = require("tslib");
5
5
  const react_1 = tslib_1.__importDefault(require("react"));
6
6
  const MobileWalletButton_1 = require("./MobileWalletButton");
7
7
  function CoinflowGooglePayButton(props) {
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { CoinflowIFrameProps, IFrameMessageHandlers } from './common';
2
+ import { CoinflowIFrameProps, CoinflowIntentsIFrameProps, IFrameMessageHandlers } from './common';
3
3
  export type SendAndReceiveMessage = (message: string, isResponseValid: (response: string) => boolean) => Promise<string>;
4
4
  export type CoinflowIFrameExposedFunctions = {
5
5
  sendAndReceiveMessage: SendAndReceiveMessage;
6
6
  listenForMessage: (isResponseValid: (response: string) => boolean) => Promise<string>;
7
7
  };
8
8
  export declare function useRandomHandleHeightChangeId(): string;
9
- export declare const CoinflowIFrame: React.ForwardRefExoticComponent<CoinflowIFrameProps & IFrameMessageHandlers & React.RefAttributes<unknown>>;
9
+ export declare const CoinflowIFrame: React.ForwardRefExoticComponent<((CoinflowIFrameProps | CoinflowIntentsIFrameProps) & IFrameMessageHandlers) & React.RefAttributes<unknown>>;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CoinflowIFrame = void 0;
4
- const tslib_1 = require("tslib");
5
4
  exports.useRandomHandleHeightChangeId = useRandomHandleHeightChangeId;
5
+ const tslib_1 = require("tslib");
6
6
  const react_1 = tslib_1.__importStar(require("react"));
7
7
  const common_1 = require("./common");
8
8
  function useRandomHandleHeightChangeId() {
@@ -11,7 +11,9 @@ function useRandomHandleHeightChangeId() {
11
11
  exports.CoinflowIFrame = (0, react_1.forwardRef)((props, ref) => {
12
12
  const IFrameRef = (0, react_1.useRef)(null);
13
13
  const url = (0, react_1.useMemo)(() => {
14
- return common_1.CoinflowUtils.getCoinflowUrl(props);
14
+ return 'intentId' in props
15
+ ? common_1.CoinflowUtils.getCoinflowIntentsUrl(props)
16
+ : common_1.CoinflowUtils.getCoinflowUrl(props);
15
17
  }, [props]);
16
18
  const sendMessage = (0, react_1.useCallback)((message) => {
17
19
  if (!IFrameRef?.current?.contentWindow)
@@ -73,7 +75,7 @@ exports.CoinflowIFrame = (0, react_1.forwardRef)((props, ref) => {
73
75
  return (0, react_1.useMemo)(() => (react_1.default.createElement("iframe", { scrolling: handleHeightChange ? 'no' : 'yes', onLoad: () => {
74
76
  if (IFrameRef.current)
75
77
  IFrameRef.current.style.opacity = '1';
76
- }, allow: 'payment;camera;clipboard-write', ref: IFrameRef, style: {
78
+ }, allow: 'payment;camera;clipboard-write;geolocation', ref: IFrameRef, style: {
77
79
  width: '100%',
78
80
  height: '100%',
79
81
  opacity: 0,
@@ -1 +1 @@
1
- {"version":3,"file":"CoinflowIFrame.js","sourceRoot":"","sources":["../../src/CoinflowIFrame.tsx"],"names":[],"mappings":";;;;;AAAA,uDAQe;AACf,qCAKkB;AAalB;IACE,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACpE,CAAC;AAEY,QAAA,cAAc,GAAG,IAAA,kBAAU,EACtC,CAAC,KAAkD,EAAE,GAAG,EAAE,EAAE;IAC1D,MAAM,SAAS,GAAG,IAAA,cAAM,EAA2B,IAAI,CAAC,CAAC;IAEzD,MAAM,GAAG,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QACvB,OAAO,sBAAa,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IAC7C,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,MAAM,WAAW,GAAG,IAAA,mBAAW,EAAC,CAAC,OAAe,EAAE,EAAE;QAClD,IAAI,CAAC,SAAS,EAAE,OAAO,EAAE,aAAa;YACpC,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACxC,SAAS,CAAC,OAAO,CAAC,aAAa,CAAC,WAAW,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IAC5D,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAA,2BAAmB,EAA0C,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;QACvE,KAAK,CAAC,gBAAgB,CACpB,eAA8C;YAE9C,IAAI,OAAi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;IAEP,MAAM,EAAC,kBAAkB,EAAC,GAAG,KAAK,CAAC;IACnC,OAAO,IAAA,eAAO,EACZ,GAAG,EAAE,CAAC,CACJ,0CACE,SAAS,EAAE,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EAC5C,MAAM,EAAE,GAAG,EAAE;YACX,IAAI,SAAS,CAAC,OAAO;gBAAE,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC;QAC/D,CAAC,EACD,KAAK,EAAE,4CAA4C,EACnD,GAAG,EAAE,SAAS,EACd,KAAK,EAAE;YACL,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,CAAC;YACV,UAAU,EAAE,sBAAsB;SACnC,EACD,KAAK,EAAC,UAAU,EAChB,WAAW,EAAC,GAAG,EACf,GAAG,EAAE,GAAG,GACR,CACH,EACD,CAAC,SAAS,EAAE,kBAAkB,EAAE,GAAG,CAAC,CACrC,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { CoinflowCommonPaymentIntentProps } from './common';
3
+ export declare function CoinflowPaymentIntentCheckout(props: CoinflowCommonPaymentIntentProps): React.JSX.Element;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CoinflowPaymentIntentCheckout = CoinflowPaymentIntentCheckout;
4
+ const tslib_1 = require("tslib");
5
+ const react_1 = tslib_1.__importStar(require("react"));
6
+ const common_1 = require("./common");
7
+ const CoinflowIFrame_1 = require("./CoinflowIFrame");
8
+ const useOverlay_1 = require("./useOverlay");
9
+ const Utils_1 = require("./Utils");
10
+ const Loader_1 = require("./Loader");
11
+ function CoinflowPaymentIntentCheckout(props) {
12
+ const iframeRef = (0, react_1.useRef)(null);
13
+ const { iframeProps, messageHandlers } = useCoinflowPaymentIntentCheckout(props);
14
+ const { showOverlay } = (0, useOverlay_1.useOverlay)(iframeRef);
15
+ const loaderBackground = iframeProps.loaderBackground || '#ffffff'; // white default bg
16
+ const invertedColor = (0, Utils_1.invertHexColor)(loaderBackground);
17
+ return (react_1.default.createElement("div", { style: Utils_1.styles.container(loaderBackground) },
18
+ react_1.default.createElement(CoinflowIFrame_1.CoinflowIFrame, { ref: iframeRef, ...iframeProps, ...messageHandlers }),
19
+ showOverlay && (react_1.default.createElement(Loader_1.LoaderOverlay, { loaderBackground: loaderBackground, invertedColor: invertedColor }))));
20
+ }
21
+ function useCoinflowPaymentIntentCheckout(props) {
22
+ const handleHeightChangeId = (0, CoinflowIFrame_1.useRandomHandleHeightChangeId)();
23
+ const iframeProps = (0, react_1.useMemo)(() => {
24
+ const walletPubkey = (0, common_1.getWalletPubkey)(props);
25
+ return {
26
+ ...props,
27
+ walletPubkey,
28
+ route: `/intents/checkout/${props.paymentIntentId}`,
29
+ intentId: props.paymentIntentId,
30
+ handleHeightChangeId,
31
+ };
32
+ }, [handleHeightChangeId, props]);
33
+ const messageHandlers = (0, react_1.useMemo)(() => {
34
+ return {
35
+ handleSendTransaction: () => {
36
+ throw new Error('Not impl');
37
+ },
38
+ onSuccess: props.onSuccess,
39
+ onAuthDeclined: props.onAuthDeclined,
40
+ handleHeightChange: props.handleHeightChange,
41
+ };
42
+ }, [props]);
43
+ return { iframeProps, messageHandlers };
44
+ }
45
+ //# sourceMappingURL=CoinflowPaymentIntentPurchase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CoinflowPaymentIntentPurchase.js","sourceRoot":"","sources":["../../src/CoinflowPaymentIntentPurchase.tsx"],"names":[],"mappings":";;;;AAAA,uDAA6C;AAC7C,qCAKkB;AAClB,qDAI0B;AAC1B,6CAAwC;AACxC,mCAA+C;AAC/C,qCAAuC;AAEvC,uCACE,KAAuC;IAEvC,MAAM,SAAS,GAAG,IAAA,cAAM,EAAiC,IAAI,CAAC,CAAC;IAC/D,MAAM,EAAC,WAAW,EAAE,eAAe,EAAC,GA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AAkB;SAC7C,CAAC;IACJ,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,EAAC,WAAW,EAAE,eAAe,EAAC,CAAC;AACxC,CAAC"}
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
3
  exports.CoinflowPurchase = CoinflowPurchase;
4
+ const tslib_1 = require("tslib");
5
5
  const react_1 = tslib_1.__importStar(require("react"));
6
6
  const common_1 = require("./common");
7
7
  const CoinflowIFrame_1 = require("./CoinflowIFrame");
8
8
  const useOverlay_1 = require("./useOverlay");
9
+ const Utils_1 = require("./Utils");
10
+ const Loader_1 = require("./Loader");
9
11
  function useCoinflowPurchase(purchaseProps, version) {
10
12
  const handleHeightChangeId = (0, CoinflowIFrame_1.useRandomHandleHeightChangeId)();
11
13
  const iframeProps = (0, react_1.useMemo)(() => {
@@ -31,92 +33,9 @@ function CoinflowPurchase(purchaseProps) {
31
33
  const { iframeProps, messageHandlers } = useCoinflowPurchase(purchaseProps, '-v2');
32
34
  const { showOverlay } = (0, useOverlay_1.useOverlay)(iframeRef);
33
35
  const loaderBackground = iframeProps.loaderBackground || '#ffffff'; // white default bg
34
- const invertedColor = invertHexColor(loaderBackground);
35
- return (react_1.default.createElement("div", { style: styles.container(loaderBackground) },
36
+ const invertedColor = (0, Utils_1.invertHexColor)(loaderBackground);
37
+ return (react_1.default.createElement("div", { style: Utils_1.styles.container(loaderBackground) },
36
38
  react_1.default.createElement(CoinflowIFrame_1.CoinflowIFrame, { ref: iframeRef, ...iframeProps, ...messageHandlers }),
37
- showOverlay && (react_1.default.createElement(LoaderOverlay, { loaderBackground: loaderBackground, invertedColor: invertedColor }))));
38
- }
39
- function LoaderOverlay({ loaderBackground, invertedColor, }) {
40
- return (react_1.default.createElement("div", { style: styles.overlay(loaderBackground) },
41
- react_1.default.createElement(LoaderGrid, { columns: 2 },
42
- react_1.default.createElement(Loader, { loaderBackground: invertedColor }),
43
- react_1.default.createElement(Loader, { loaderBackground: invertedColor })),
44
- react_1.default.createElement(LoaderGrid, { columns: 1 },
45
- react_1.default.createElement(Loader, { height: 80, loaderBackground: invertedColor })),
46
- [...Array(3)].map((_, index) => (react_1.default.createElement(LoaderRow, { key: index },
47
- react_1.default.createElement(Loader, { width: index < 2 ? 80 : 120, height: index < 2 ? 15 : 20, loaderBackground: invertedColor }),
48
- react_1.default.createElement(Loader, { width: index < 2 ? 60 : 100, height: index < 2 ? 15 : 20, loaderBackground: invertedColor })))),
49
- react_1.default.createElement(LoaderGrid, { columns: 1 },
50
- react_1.default.createElement(Loader, { height: 60, loaderBackground: invertedColor })),
51
- react_1.default.createElement(LoaderGrid, { columns: 1, width: "50%" },
52
- react_1.default.createElement(Loader, { height: 10, loaderBackground: invertedColor })),
53
- react_1.default.createElement(LoaderGrid, { columns: 1, width: "40%" },
54
- react_1.default.createElement(Loader, { height: 6, loaderBackground: invertedColor }))));
55
- }
56
- function LoaderGrid({ children, columns, width = '100%', }) {
57
- return (react_1.default.createElement("div", { style: {
58
- ...styles.grid,
59
- gridTemplateColumns: `repeat(${columns}, 1fr)`,
60
- width,
61
- } }, children));
62
- }
63
- function LoaderRow({ children }) {
64
- return react_1.default.createElement("div", { style: styles.row }, children);
65
- }
66
- function Loader({ loaderBackground, height = 40, width, }) {
67
- return (react_1.default.createElement(react_1.default.Fragment, null,
68
- react_1.default.createElement("div", { style: styles.loader(loaderBackground, height, width) }),
69
- react_1.default.createElement("style", null, styles.keyframes)));
70
- }
71
- function invertHexColor(hex) {
72
- hex = hex.replace(/^#/, '');
73
- const rgb = hex.match(/.{2}/g)?.map(val => 255 - parseInt(val, 16)) || [];
74
- return `#${rgb.map(val => val.toString(16).padStart(2, '0')).join('')}`;
39
+ showOverlay && (react_1.default.createElement(Loader_1.LoaderOverlay, { loaderBackground: loaderBackground, invertedColor: invertedColor }))));
75
40
  }
76
- const styles = {
77
- container: (bg) => ({
78
- position: 'relative',
79
- height: '100%',
80
- backgroundColor: bg,
81
- }),
82
- overlay: (bg) => ({
83
- backgroundColor: bg,
84
- display: 'flex',
85
- color: 'gray',
86
- position: 'absolute',
87
- top: 0,
88
- left: 0,
89
- right: 0,
90
- bottom: 0,
91
- fontSize: 24,
92
- alignItems: 'center',
93
- flexDirection: 'column',
94
- gap: '20px',
95
- zIndex: 10,
96
- padding: '20px',
97
- }),
98
- grid: {
99
- display: 'grid',
100
- gap: '20px',
101
- width: '100%',
102
- },
103
- row: {
104
- display: 'flex',
105
- justifyContent: 'space-between',
106
- width: '100%',
107
- },
108
- loader: (bg, height, width) => ({
109
- width: width ? `${width}px` : '100%',
110
- height: `${height}px`,
111
- backgroundColor: bg,
112
- borderRadius: '4px',
113
- animation: 'pulse 1.5s infinite',
114
- }),
115
- keyframes: `
116
- @keyframes pulse {
117
- 0%, 100% { opacity: 0.07; }
118
- 50% { opacity: 0.03; }
119
- }
120
- `,
121
- };
122
41
  //# sourceMappingURL=CoinflowPurchase.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CoinflowPurchase.js","sourceRoot":"","sources":["../../src/CoinflowPurchase.tsx"],"names":[],"mappings":";;;;AAAA,uDAA6C;AAC7C,qCAOkB;AAClB,qDAI0B;AAC1B,6CAAwC;AAExC,SAAS,mBAAmB,CAC1B,aAAoC,EACpC,OAAe;IAEf,MAAM,oBAAoB,GAAG,IAAA,8CAA6B,GAAE,CAAC;IAC7D,MAAM,WAAW,GAAG,IAAA,eAAO,EAAsB,GAAG,EAAE;QACpD,MAAM,YAAY,GAAG,IAAA,wBAAe,EAAC,aAAa,CAAC,CAAC;QACpD,OAAO;YACL,GAAG,aAAa;YAChB,YAAY;YACZ,KAAK,EAAE,YAAY,OAAO,IAAI,aAAa,CAAC,UAAU,EAAE;YACxD,WAAW,EAAE,sBAAa,CAAC,cAAc,CAAC,aAAa,CAAC;YACxD,oBAAoB;SACrB,CAAC;IACJ,CAAC,EAAE,CAAC,oBAAoB,EAAE,aAAa,EAA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EAClC,aAAa,EAAE,aAAa,GAC5B,CACH,CACG,CACP,CAAC;AACJ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
3
  exports.CoinflowPurchaseHistory = CoinflowPurchaseHistory;
4
+ const tslib_1 = require("tslib");
5
5
  const CoinflowIFrame_1 = require("./CoinflowIFrame");
6
6
  const react_1 = tslib_1.__importStar(require("react"));
7
7
  const common_1 = require("./common");
@@ -1,5 +1,5 @@
1
1
  import { CoinflowEnvs } from './common';
2
- export declare function CoinflowPurchaseProtection({ coinflowEnv, merchantId }: {
2
+ export declare function CoinflowPurchaseProtection({ coinflowEnv, merchantId, }: {
3
3
  coinflowEnv: CoinflowEnvs;
4
4
  merchantId: string;
5
5
  }): null;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
3
  exports.CoinflowWithdraw = CoinflowWithdraw;
4
+ const tslib_1 = require("tslib");
5
5
  const react_1 = tslib_1.__importStar(require("react"));
6
6
  const CoinflowIFrame_1 = require("./CoinflowIFrame");
7
7
  const common_1 = require("./common");
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
3
  exports.CoinflowWithdrawHistory = CoinflowWithdrawHistory;
4
+ const tslib_1 = require("tslib");
5
5
  const CoinflowIFrame_1 = require("./CoinflowIFrame");
6
6
  const react_1 = tslib_1.__importStar(require("react"));
7
7
  const common_1 = require("./common");
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare function LoaderOverlay({ loaderBackground, invertedColor, }: {
3
+ loaderBackground: string;
4
+ invertedColor: string;
5
+ }): React.JSX.Element;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LoaderOverlay = LoaderOverlay;
4
+ const tslib_1 = require("tslib");
5
+ const react_1 = tslib_1.__importDefault(require("react"));
6
+ const Utils_1 = require("./Utils");
7
+ function LoaderOverlay({ loaderBackground, invertedColor, }) {
8
+ return (react_1.default.createElement("div", { style: Utils_1.styles.overlay(loaderBackground) },
9
+ react_1.default.createElement(LoaderGrid, { columns: 2 },
10
+ react_1.default.createElement(Loader, { loaderBackground: invertedColor }),
11
+ react_1.default.createElement(Loader, { loaderBackground: invertedColor })),
12
+ react_1.default.createElement(LoaderGrid, { columns: 1 },
13
+ react_1.default.createElement(Loader, { height: 80, loaderBackground: invertedColor })),
14
+ [...Array(3)].map((_, index) => (react_1.default.createElement(LoaderRow, { key: index },
15
+ react_1.default.createElement(Loader, { width: index < 2 ? 80 : 120, height: index < 2 ? 15 : 20, loaderBackground: invertedColor }),
16
+ react_1.default.createElement(Loader, { width: index < 2 ? 60 : 100, height: index < 2 ? 15 : 20, loaderBackground: invertedColor })))),
17
+ react_1.default.createElement(LoaderGrid, { columns: 1 },
18
+ react_1.default.createElement(Loader, { height: 60, loaderBackground: invertedColor })),
19
+ react_1.default.createElement(LoaderGrid, { columns: 1, width: "50%" },
20
+ react_1.default.createElement(Loader, { height: 10, loaderBackground: invertedColor })),
21
+ react_1.default.createElement(LoaderGrid, { columns: 1, width: "40%" },
22
+ react_1.default.createElement(Loader, { height: 6, loaderBackground: invertedColor }))));
23
+ }
24
+ function LoaderGrid({ children, columns, width = '100%', }) {
25
+ return (react_1.default.createElement("div", { style: {
26
+ ...Utils_1.styles.grid,
27
+ gridTemplateColumns: `repeat(${columns}, 1fr)`,
28
+ width,
29
+ } }, children));
30
+ }
31
+ function LoaderRow({ children }) {
32
+ return react_1.default.createElement("div", { style: Utils_1.styles.row }, children);
33
+ }
34
+ function Loader({ loaderBackground, height = 40, width, }) {
35
+ return (react_1.default.createElement(react_1.default.Fragment, null,
36
+ react_1.default.createElement("div", { style: Utils_1.styles.loader(loaderBackground, height, width) }),
37
+ react_1.default.createElement("style", null, Utils_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8BAAC,MAAM,IAAC,MAAM,EAAE,EAAE,EAAE,gBAAgB,EAAE,aAAa,GAAI,CAC5C;QACb,8BAAC,UAAU,IAAC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAC,KAAK;YACjC,8BAAC,MAAM,IAAC,MAAM,EAAE,EAAE,EAAE,gBAAgB,EAAE,aAAa,GAAI,CAC5C;QACb,8BAAC,UAAU,IAAC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAC,KAAK;YACjC,8BAAC,MAAM,IAAC,MAAM,EAAE,CAAC,EAAE,gBAAgB,EAAE,aAAa,GAAI,CAC3C,CACT,CACP,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAAC,EAClB,QAAQ,EACR,OAAO,EACP,KAAK,GAAG,MAAM,GAC6C;IAC3D,OAAO,CACL,uCACE,KAAK,EAAE;YACL,GAAG,cAAM,CAAC,IAAI;YACd,mBAAmB,EAAE,UAAU,OAAO,QAAQ;YAC9C,KAAK;SACN,IAEA,QAAQ,CACL,CACP,CAAC;AACJ,CAAC;AAED,SAAS,SAAS,CAAC,EAAC,QAAQ,EAA8B;IACxD,OAAO,uCAAK,KAAK,EAAE,cAAM,CAAC,GAAG,IAAG,QAAQ,CAAO,CAAC;AAClD,CAAC;AAED,SAAS,MAAM,CAAC,EACd,gBAAgB,EAChB,MAAM,GAAG,EAAE,EACX,KAAK,GAKN;IACC,OAAO,CACL;QACE,uCAAK,KAAK,EAAE,cAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,EAAE,KAAK,CAAC,GAAI;QAC9D,6CAAQ,cAAM,CAAC,SAAS,CAAS,CAChC,CACJ,CAAC;AACJ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { CoinflowPurchaseProps } from './common';
2
2
  import React from 'react';
3
- export declare function MobileWalletButton({ props, route, overlayDisplayOverride, children, alignItems }: {
3
+ export declare function MobileWalletButton({ props, route, overlayDisplayOverride, children, alignItems, }: {
4
4
  props: CoinflowPurchaseProps & MobileWalletButtonProps;
5
5
  route: string;
6
6
  overlayDisplayOverride?: string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
3
  exports.MobileWalletButton = MobileWalletButton;
4
+ const tslib_1 = require("tslib");
5
5
  const common_1 = require("./common");
6
6
  const react_1 = tslib_1.__importStar(require("react"));
7
7
  const CoinflowIFrame_1 = require("./CoinflowIFrame");
@@ -0,0 +1,42 @@
1
+ export declare function invertHexColor(hex: string): string;
2
+ export declare const styles: {
3
+ container: (bg: string) => {
4
+ position: 'relative';
5
+ height: string;
6
+ backgroundColor: string;
7
+ };
8
+ overlay: (bg: string) => {
9
+ backgroundColor: string;
10
+ display: string;
11
+ color: string;
12
+ position: 'absolute';
13
+ top: number;
14
+ left: number;
15
+ right: number;
16
+ bottom: number;
17
+ fontSize: number;
18
+ alignItems: string;
19
+ flexDirection: 'column';
20
+ gap: string;
21
+ zIndex: number;
22
+ padding: string;
23
+ };
24
+ grid: {
25
+ display: string;
26
+ gap: string;
27
+ width: string;
28
+ };
29
+ row: {
30
+ display: string;
31
+ justifyContent: string;
32
+ width: string;
33
+ };
34
+ loader: (bg: string, height: number, width?: number) => {
35
+ width: string;
36
+ height: string;
37
+ backgroundColor: string;
38
+ borderRadius: string;
39
+ animation: string;
40
+ };
41
+ keyframes: string;
42
+ };
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.styles = void 0;
4
+ exports.invertHexColor = invertHexColor;
5
+ function invertHexColor(hex) {
6
+ hex = hex.replace(/^#/, '');
7
+ const rgb = hex.match(/.{2}/g)?.map(val => 255 - parseInt(val, 16)) || [];
8
+ return `#${rgb.map(val => val.toString(16).padStart(2, '0')).join('')}`;
9
+ }
10
+ exports.styles = {
11
+ container: (bg) => ({
12
+ position: 'relative',
13
+ height: '100%',
14
+ backgroundColor: bg,
15
+ }),
16
+ overlay: (bg) => ({
17
+ backgroundColor: bg,
18
+ display: 'flex',
19
+ color: 'gray',
20
+ position: 'absolute',
21
+ top: 0,
22
+ left: 0,
23
+ right: 0,
24
+ bottom: 0,
25
+ fontSize: 24,
26
+ alignItems: 'center',
27
+ flexDirection: 'column',
28
+ gap: '20px',
29
+ zIndex: 10,
30
+ padding: '20px',
31
+ }),
32
+ grid: {
33
+ display: 'grid',
34
+ gap: '20px',
35
+ width: '100%',
36
+ },
37
+ row: {
38
+ display: 'flex',
39
+ justifyContent: 'space-between',
40
+ width: '100%',
41
+ },
42
+ loader: (bg, height, width) => ({
43
+ width: width ? `${width}px` : '100%',
44
+ height: `${height}px`,
45
+ backgroundColor: bg,
46
+ borderRadius: '4px',
47
+ animation: 'pulse 1.5s infinite',
48
+ }),
49
+ keyframes: `
50
+ @keyframes pulse {
51
+ 0%, 100% { opacity: 0.07; }
52
+ 50% { opacity: 0.03; }
53
+ }
54
+ `,
55
+ };
56
+ //# sourceMappingURL=Utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../src/Utils.ts"],"names":[],"mappings":";;;;AAAA,wBAA+B,GAAW;IACxC,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC5B,MAAM,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAC1E,OAAO,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;AAC1E,CAAC;AAEY,QAAA,MAAM,GAAG;IACpB,SAAS,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,CAAC;QAC1B,QAAQ,EAAE,UAAmB;QAC7B,MAAM,EAAE,MAAM;QACd,eAAe,EAAE,EAAE;KACpB,CAAC;IACF,OAAO,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,CAAC;QACxB,eAAe,EAAE,EAAE;QACnB,OAAO,EAAE,MAAM;QACf,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE,UAAmB;QAC7B,GAAG,EAAE,CAAC;QACN,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;QACT,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,QAAQ;QACpB,aAAa,EAAE,QAAiB;QAChC,GAAG,EAAE,MAAM;QACX,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,MAAM;KAChB,CAAC;IACF,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,MAAM;QACX,KAAK,EAAE,MAAM;KACd;IACD,GAAG,EAAE;QACH,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,eAAe;QAC/B,KAAK,EAAE,MAAM;KACd;IACD,MAAM,EAAE,CAAC,EAAU,EAAE,MAAc,EAAE,KAAc,EAAE,EAAE,CAAC,CAAC;QACvD,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM;QACpC,MAAM,EAAE,GAAG,MAAM,IAAI;QACrB,eAAe,EAAE,EAAE;QACnB,YAAY,EAAE,KAAK;QACnB,SAAS,EAAE,qBAAqB;KACjC,CAAC;IACF,SAAS,EAAE;;;;;GAKV;CACF,CAAC"}
@@ -36,7 +36,7 @@ import { MerchantIdOrCheckoutJwt, CoinflowCardNumberInputProps, CoinflowCvvOnlyI
36
36
  *
37
37
  * ```
38
38
  */
39
- export declare const CoinflowCardNumberInput: React.MemoExoticComponent<React.ForwardRefExoticComponent<(CoinflowCardNumberInputProps & MerchantIdOrCheckoutJwt) & React.RefAttributes<unknown>>>;
39
+ export declare const CoinflowCardNumberInput: React.NamedExoticComponent<(CoinflowCardNumberInputProps & MerchantIdOrCheckoutJwt) & React.RefAttributes<unknown>>;
40
40
  /**
41
41
  * The CVV number input for creating a new tokenized card
42
42
  */
@@ -78,7 +78,7 @@ export declare const CoinflowCvvInput: React.MemoExoticComponent<() => React.JSX
78
78
  *
79
79
  * ```
80
80
  */
81
- export declare const CoinflowCvvOnlyInput: React.MemoExoticComponent<React.ForwardRefExoticComponent<(CoinflowCvvOnlyInputProps & MerchantIdOrCheckoutJwt) & React.RefAttributes<unknown>>>;
81
+ export declare const CoinflowCvvOnlyInput: React.NamedExoticComponent<(CoinflowCvvOnlyInputProps & MerchantIdOrCheckoutJwt) & React.RefAttributes<unknown>>;
82
82
  /**
83
83
  * Allows merchants to collect card information from their customers in a PCI-compliant way and receive the tokenized card number.
84
84
  * The `CoinflowCardOnlyInput` is used for collecting a debit card for users to be able to withdraw their funds directly to.
@@ -115,12 +115,12 @@ export declare const CoinflowCvvOnlyInput: React.MemoExoticComponent<React.Forwa
115
115
  *
116
116
  * ```
117
117
  */
118
- export declare const CoinflowCardOnlyInput: React.MemoExoticComponent<React.ForwardRefExoticComponent<(CoinflowCvvOnlyInputProps & MerchantIdOrCheckoutJwt) & React.RefAttributes<unknown>>>;
118
+ export declare const CoinflowCardOnlyInput: React.NamedExoticComponent<(CoinflowCvvOnlyInputProps & MerchantIdOrCheckoutJwt) & React.RefAttributes<unknown>>;
119
119
  /** @deprecated Use CoinflowCardForm instead */
120
- export declare const CoinflowLegacyCardNumberInput: React.MemoExoticComponent<React.ForwardRefExoticComponent<(CoinflowCardNumberInputProps & MerchantIdOrCheckoutJwt) & React.RefAttributes<unknown>>>;
120
+ export declare const CoinflowLegacyCardNumberInput: React.NamedExoticComponent<(CoinflowCardNumberInputProps & MerchantIdOrCheckoutJwt) & React.RefAttributes<unknown>>;
121
121
  /** @deprecated Use CoinflowCvvForm instead */
122
122
  export declare const CoinflowLegacyCvvInput: React.MemoExoticComponent<() => React.JSX.Element>;
123
123
  /** @deprecated Use CoinflowCvvForm instead */
124
- export declare const CoinflowLegacyCvvOnlyInput: React.MemoExoticComponent<React.ForwardRefExoticComponent<(CoinflowCvvOnlyInputProps & MerchantIdOrCheckoutJwt) & React.RefAttributes<unknown>>>;
124
+ export declare const CoinflowLegacyCvvOnlyInput: React.NamedExoticComponent<(CoinflowCvvOnlyInputProps & MerchantIdOrCheckoutJwt) & React.RefAttributes<unknown>>;
125
125
  /** @deprecated Use CoinflowCardNumberForm instead */
126
- export declare const CoinflowLegacyCardOnlyInput: React.MemoExoticComponent<React.ForwardRefExoticComponent<(CoinflowCvvOnlyInputProps & MerchantIdOrCheckoutJwt) & React.RefAttributes<unknown>>>;
126
+ export declare const CoinflowLegacyCardOnlyInput: React.NamedExoticComponent<(CoinflowCvvOnlyInputProps & MerchantIdOrCheckoutJwt) & React.RefAttributes<unknown>>;
@@ -21,15 +21,15 @@ export interface CardFormTokenResponse {
21
21
  export interface CardFormRef {
22
22
  tokenize(): Promise<CardFormTokenResponse>;
23
23
  }
24
- export declare const CoinflowCardForm: React.MemoExoticComponent<React.ForwardRefExoticComponent<CoinflowCardFormProps & React.RefAttributes<CardFormRef>>>;
25
- export declare const CoinflowCardNumberForm: React.MemoExoticComponent<React.ForwardRefExoticComponent<CoinflowCardNumberFormProps & React.RefAttributes<CardFormRef>>>;
26
- export declare const CoinflowCvvForm: React.MemoExoticComponent<React.ForwardRefExoticComponent<CoinflowCvvFormProps & React.RefAttributes<CardFormRef>>>;
24
+ export declare const CoinflowCardForm: React.NamedExoticComponent<CoinflowCardFormProps & React.RefAttributes<CardFormRef>>;
25
+ export declare const CoinflowCardNumberForm: React.NamedExoticComponent<CoinflowCardNumberFormProps & React.RefAttributes<CardFormRef>>;
26
+ export declare const CoinflowCvvForm: React.NamedExoticComponent<CoinflowCvvFormProps & React.RefAttributes<CardFormRef>>;
27
27
  /** @deprecated Use CoinflowCardForm instead */
28
- export declare const CoinflowCardFormV2: React.MemoExoticComponent<React.ForwardRefExoticComponent<CoinflowCardFormProps & React.RefAttributes<CardFormRef>>>;
28
+ export declare const CoinflowCardFormV2: React.NamedExoticComponent<CoinflowCardFormProps & React.RefAttributes<CardFormRef>>;
29
29
  /** @deprecated Use CoinflowCardNumberForm instead */
30
- export declare const CoinflowCardNumberFormV2: React.MemoExoticComponent<React.ForwardRefExoticComponent<CoinflowCardNumberFormProps & React.RefAttributes<CardFormRef>>>;
30
+ export declare const CoinflowCardNumberFormV2: React.NamedExoticComponent<CoinflowCardNumberFormProps & React.RefAttributes<CardFormRef>>;
31
31
  /** @deprecated Use CoinflowCvvForm instead */
32
- export declare const CoinflowCvvFormV2: React.MemoExoticComponent<React.ForwardRefExoticComponent<CoinflowCvvFormProps & React.RefAttributes<CardFormRef>>>;
32
+ export declare const CoinflowCvvFormV2: React.NamedExoticComponent<CoinflowCvvFormProps & React.RefAttributes<CardFormRef>>;
33
33
  /** @deprecated Use CardFormRef instead */
34
34
  export type CardFormV2Ref = CardFormRef;
35
35
  /** @deprecated Use CardFormTokenResponse instead */