@bigbinary/neeto-payments-frontend 3.3.20 → 3.3.21

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.
@@ -6,13 +6,18 @@ var React = require('react');
6
6
  var neetoCist = require('@bigbinary/neeto-cist');
7
7
  var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
8
8
 
9
- var useStripePromise = function useStripePromise(stripeAccountIdentifier) {
10
- var stripePromise = React.useMemo(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
11
- var stripeJs, _yield$stripeJs, loadStripe;
9
+ var useStripePromise = function useStripePromise(_ref) {
10
+ var stripeAccountIdentifier = _ref.stripeAccountIdentifier,
11
+ _ref$kind = _ref.kind,
12
+ kind = _ref$kind === void 0 ? "stripe" : _ref$kind,
13
+ _ref$stripePlatformAc = _ref.stripePlatformAccount,
14
+ stripePlatformAccount = _ref$stripePlatformAc === void 0 ? {} : _ref$stripePlatformAc;
15
+ return React.useMemo(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
16
+ var stripeJs, _yield$stripeJs, loadStripe, payload;
12
17
  return _regeneratorRuntime.wrap(function _callee$(_context) {
13
18
  while (1) switch (_context.prev = _context.next) {
14
19
  case 0:
15
- if (!neetoCist.isNotPresent(stripeAccountIdentifier)) {
20
+ if (!(kind !== "stripe" || neetoCist.isNotPresent(stripePlatformAccount) && neetoCist.isNotPresent(stripeAccountIdentifier) || neetoCist.isNotPresent(initializers.globalProps.stripePayment.publishableKey) && neetoCist.isNotPresent(stripeAccountIdentifier))) {
16
21
  _context.next = 2;
17
22
  break;
18
23
  }
@@ -27,25 +32,25 @@ var useStripePromise = function useStripePromise(stripeAccountIdentifier) {
27
32
  case 6:
28
33
  _yield$stripeJs = _context.sent;
29
34
  loadStripe = _yield$stripeJs.loadStripe;
30
- _context.next = 10;
31
- return loadStripe(initializers.globalProps === null || initializers.globalProps === void 0 ? void 0 : initializers.globalProps.stripePublishableKey, {
35
+ payload = neetoCist.isNotPresent(stripePlatformAccount) && {
32
36
  stripeAccount: stripeAccountIdentifier
33
- });
34
- case 10:
37
+ };
38
+ _context.next = 11;
39
+ return loadStripe(initializers.globalProps.stripePayment.publishableKey, payload || {});
40
+ case 11:
35
41
  return _context.abrupt("return", _context.sent);
36
- case 13:
37
- _context.prev = 13;
42
+ case 14:
43
+ _context.prev = 14;
38
44
  _context.t0 = _context["catch"](3);
39
45
  logger.error(_context.t0);
40
- case 16:
41
- return _context.abrupt("return", null);
42
46
  case 17:
47
+ return _context.abrupt("return", null);
48
+ case 18:
43
49
  case "end":
44
50
  return _context.stop();
45
51
  }
46
- }, _callee, null, [[3, 13]]);
47
- })), [stripeAccountIdentifier]);
48
- return stripePromise;
52
+ }, _callee, null, [[3, 14]]);
53
+ })), [kind, stripeAccountIdentifier, stripePlatformAccount]);
49
54
  };
50
55
 
51
56
  module.exports = useStripePromise;
@@ -1 +1 @@
1
- {"version":3,"file":"useStripePromise.js","sources":["../../app/javascript/src/hooks/useStripePromise.js"],"sourcesContent":["import { useMemo } from \"react\";\n\nimport { isNotPresent } from \"neetocist\";\nimport { globalProps } from \"neetocommons/initializers\";\n\nconst useStripePromise = stripeAccountIdentifier => {\n const stripePromise = useMemo(async () => {\n if (isNotPresent(stripeAccountIdentifier)) return null;\n\n const stripeJs = () => import(\"@stripe/stripe-js\");\n\n try {\n const { loadStripe } = await stripeJs();\n\n return await loadStripe(globalProps?.stripePublishableKey, {\n stripeAccount: stripeAccountIdentifier,\n });\n } catch (error) {\n logger.error(error);\n }\n\n return null;\n }, [stripeAccountIdentifier]);\n\n return stripePromise;\n};\n\nexport default useStripePromise;\n"],"names":["useStripePromise","stripeAccountIdentifier","stripePromise","useMemo","_asyncToGenerator","_regeneratorRuntime","mark","_callee","stripeJs","_yield$stripeJs","loadStripe","wrap","_callee$","_context","prev","next","isNotPresent","abrupt","sent","globalProps","stripePublishableKey","stripeAccount","t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AI,MAAA,CAAAJ,QAAAA,EAAAA,QAAA,CAAAK,IAAA,CAAA;AAAA,QAAA,KAAA,EAAA;AAAAL,UAAAA,QAAA,CAAAC,IAAA,GAAA,EAAA;UAAAD,QAAA,CAAAS,EAAA,GAAAT,QAAA,CAAA,OAAA,CAAA,CAAA,CAAA,CAAA;AAEFU,UAAAA,MAAM,CAACC,KAAK,CAAAX,QAAA,CAAAS,EAAM,CAAC;AAAC,QAAA,KAAA,EAAA;AAAA,UAAA,OAAAT,QAAA,CAAAI,MAAA,CAAA,QAAA,EAGf,IAAI,CAAA;AAAA,QAAA,KAAA,EAAA;AAAA,QAAA,KAAA,KAAA;UAAA,OAAAJ,QAAA,CAAAY,IAAA,EAAA;AAAA;AAAA,KAAA,EAAAlB,OAAA,EAAA,IAAA,EAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA;AAAA,GACZ,CAAE,CAAA,EAAA,CAACN,uBAAuB,CAAC,CAAC;AAE7B,EAAA,OAAOC,aAAa;AACtB;;;;"}
1
+ {"version":3,"file":"useStripePromise.js","sources":["../../app/javascript/src/hooks/useStripePromise.js"],"sourcesContent":["import { useMemo } from \"react\";\n\nimport { isNotPresent } from \"neetocist\";\nimport { globalProps } from \"neetocommons/initializers\";\n\nconst useStripePromise = ({\n stripeAccountIdentifier,\n kind = \"stripe\",\n stripePlatformAccount = {},\n}) =>\n useMemo(async () => {\n if (\n kind !== \"stripe\" ||\n (isNotPresent(stripePlatformAccount) &&\n isNotPresent(stripeAccountIdentifier)) ||\n (isNotPresent(globalProps.stripePayment.publishableKey) &&\n isNotPresent(stripeAccountIdentifier))\n ) {\n return null;\n }\n\n const stripeJs = () => import(\"@stripe/stripe-js\");\n\n try {\n const { loadStripe } = await stripeJs();\n const payload = isNotPresent(stripePlatformAccount) && {\n stripeAccount: stripeAccountIdentifier,\n };\n\n return await loadStripe(\n globalProps.stripePayment.publishableKey,\n payload || {}\n );\n } catch (error) {\n logger.error(error);\n }\n\n return null;\n }, [kind, stripeAccountIdentifier, stripePlatformAccount]);\n\nexport default useStripePromise;\n"],"names":["useStripePromise","_ref","stripeAccountIdentifier","_ref$kind","kind","_ref$stripePlatformAc","stripePlatformAccount","useMemo","_asyncToGenerator","_regeneratorRuntime","mark","_callee","stripeJs","_yield$stripeJs","loadStripe","payload","wrap","_callee$","_context","prev","next","isNotPresent","globalProps","stripePayment","publishableKey","abrupt","sent","stripeAccount","t0","logger","error","stop"],"mappings":";;;;;;;;AAKA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAAA;AAAA,EAAA,IACpBC,uBAAuB,GAAAD,IAAA,CAAvBC,uBAAuB;IAAAC,SAAA,GAAAF,IAAA,CACvBG,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,QAAQ,GAAAA,SAAA;IAAAE,qBAAA,GAAAJ,IAAA,CACfK,qBAAqB;AAArBA,IAAAA,qBAAqB,GAAAD,qBAAA,KAAA,KAAA,CAAA,GAAG,EAAE,GAAAA,qBAAA;EAAA,OAE1BE,aAAO,cAAAC,iBAAA,cAAAC,mBAAA,CAAAC,IAAA,CAAC,SAAAC,OAAA,GAAA;AAAA,IAAA,IAAAC,QAAA,EAAAC,eAAA,EAAAC,UAAA,EAAAC,OAAA;AAAA,IAAA,OAAAN,mBAAA,CAAAO,IAAA,CAAA,SAAAC,SAAAC,QAAA,EAAA;AAAA,MAAA,OAAA,CAAA,EAAA,QAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;AAAA,QAAA,KAAA,CAAA;UAAA,IAEJhB,EAAAA,IAAI,KAAK,QAAQ,IAChBiB,sBAAY,CAACf,qBAAqB,CAAC,IAClCe,sBAAY,CAACnB,uBAAuB,CAAE,IACvCmB,sBAAY,CAACC,wBAAW,CAACC,aAAa,CAACC,cAAc,CAAC,IACrDH,sBAAY,CAACnB,uBAAuB,CAAE,CAAA,EAAA;AAAAgB,YAAA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AA,IAAA,EAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA;GACZ,CAAA,CAAA,EAAE,CAACP,IAAI,EAAEF,uBAAuB,EAAEI,qBAAqB,CAAC,CAAC;AAAA;;;;"}
@@ -4,13 +4,18 @@ import { useMemo } from 'react';
4
4
  import { isNotPresent } from '@bigbinary/neeto-cist';
5
5
  import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
6
6
 
7
- var useStripePromise = function useStripePromise(stripeAccountIdentifier) {
8
- var stripePromise = useMemo(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
9
- var stripeJs, _yield$stripeJs, loadStripe;
7
+ var useStripePromise = function useStripePromise(_ref) {
8
+ var stripeAccountIdentifier = _ref.stripeAccountIdentifier,
9
+ _ref$kind = _ref.kind,
10
+ kind = _ref$kind === void 0 ? "stripe" : _ref$kind,
11
+ _ref$stripePlatformAc = _ref.stripePlatformAccount,
12
+ stripePlatformAccount = _ref$stripePlatformAc === void 0 ? {} : _ref$stripePlatformAc;
13
+ return useMemo(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
14
+ var stripeJs, _yield$stripeJs, loadStripe, payload;
10
15
  return _regeneratorRuntime.wrap(function _callee$(_context) {
11
16
  while (1) switch (_context.prev = _context.next) {
12
17
  case 0:
13
- if (!isNotPresent(stripeAccountIdentifier)) {
18
+ if (!(kind !== "stripe" || isNotPresent(stripePlatformAccount) && isNotPresent(stripeAccountIdentifier) || isNotPresent(globalProps.stripePayment.publishableKey) && isNotPresent(stripeAccountIdentifier))) {
14
19
  _context.next = 2;
15
20
  break;
16
21
  }
@@ -25,25 +30,25 @@ var useStripePromise = function useStripePromise(stripeAccountIdentifier) {
25
30
  case 6:
26
31
  _yield$stripeJs = _context.sent;
27
32
  loadStripe = _yield$stripeJs.loadStripe;
28
- _context.next = 10;
29
- return loadStripe(globalProps === null || globalProps === void 0 ? void 0 : globalProps.stripePublishableKey, {
33
+ payload = isNotPresent(stripePlatformAccount) && {
30
34
  stripeAccount: stripeAccountIdentifier
31
- });
32
- case 10:
35
+ };
36
+ _context.next = 11;
37
+ return loadStripe(globalProps.stripePayment.publishableKey, payload || {});
38
+ case 11:
33
39
  return _context.abrupt("return", _context.sent);
34
- case 13:
35
- _context.prev = 13;
40
+ case 14:
41
+ _context.prev = 14;
36
42
  _context.t0 = _context["catch"](3);
37
43
  logger.error(_context.t0);
38
- case 16:
39
- return _context.abrupt("return", null);
40
44
  case 17:
45
+ return _context.abrupt("return", null);
46
+ case 18:
41
47
  case "end":
42
48
  return _context.stop();
43
49
  }
44
- }, _callee, null, [[3, 13]]);
45
- })), [stripeAccountIdentifier]);
46
- return stripePromise;
50
+ }, _callee, null, [[3, 14]]);
51
+ })), [kind, stripeAccountIdentifier, stripePlatformAccount]);
47
52
  };
48
53
 
49
54
  export { useStripePromise as default };
@@ -1 +1 @@
1
- {"version":3,"file":"useStripePromise.js","sources":["../app/javascript/src/hooks/useStripePromise.js"],"sourcesContent":["import { useMemo } from \"react\";\n\nimport { isNotPresent } from \"neetocist\";\nimport { globalProps } from \"neetocommons/initializers\";\n\nconst useStripePromise = stripeAccountIdentifier => {\n const stripePromise = useMemo(async () => {\n if (isNotPresent(stripeAccountIdentifier)) return null;\n\n const stripeJs = () => import(\"@stripe/stripe-js\");\n\n try {\n const { loadStripe } = await stripeJs();\n\n return await loadStripe(globalProps?.stripePublishableKey, {\n stripeAccount: stripeAccountIdentifier,\n });\n } catch (error) {\n logger.error(error);\n }\n\n return null;\n }, [stripeAccountIdentifier]);\n\n return stripePromise;\n};\n\nexport default useStripePromise;\n"],"names":["useStripePromise","stripeAccountIdentifier","stripePromise","useMemo","_asyncToGenerator","_regeneratorRuntime","mark","_callee","stripeJs","_yield$stripeJs","loadStripe","wrap","_callee$","_context","prev","next","isNotPresent","abrupt","sent","globalProps","stripePublishableKey","stripeAccount","t0","logger","error","stop"],"mappings":";;;;;;AA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,CAAAK,IAAA,CAAA;AAAA,QAAA,KAAA,EAAA;AAAAL,UAAAA,QAAA,CAAAC,IAAA,GAAA,EAAA;UAAAD,QAAA,CAAAS,EAAA,GAAAT,QAAA,CAAA,OAAA,CAAA,CAAA,CAAA,CAAA;AAEFU,UAAAA,MAAM,CAACC,KAAK,CAAAX,QAAA,CAAAS,EAAM,CAAC;AAAC,QAAA,KAAA,EAAA;AAAA,UAAA,OAAAT,QAAA,CAAAI,MAAA,CAAA,QAAA,EAGf,IAAI,CAAA;AAAA,QAAA,KAAA,EAAA;AAAA,QAAA,KAAA,KAAA;UAAA,OAAAJ,QAAA,CAAAY,IAAA,EAAA;AAAA;AAAA,KAAA,EAAAlB,OAAA,EAAA,IAAA,EAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA;AAAA,GACZ,CAAE,CAAA,EAAA,CAACN,uBAAuB,CAAC,CAAC;AAE7B,EAAA,OAAOC,aAAa;AACtB;;;;"}
1
+ {"version":3,"file":"useStripePromise.js","sources":["../app/javascript/src/hooks/useStripePromise.js"],"sourcesContent":["import { useMemo } from \"react\";\n\nimport { isNotPresent } from \"neetocist\";\nimport { globalProps } from \"neetocommons/initializers\";\n\nconst useStripePromise = ({\n stripeAccountIdentifier,\n kind = \"stripe\",\n stripePlatformAccount = {},\n}) =>\n useMemo(async () => {\n if (\n kind !== \"stripe\" ||\n (isNotPresent(stripePlatformAccount) &&\n isNotPresent(stripeAccountIdentifier)) ||\n (isNotPresent(globalProps.stripePayment.publishableKey) &&\n isNotPresent(stripeAccountIdentifier))\n ) {\n return null;\n }\n\n const stripeJs = () => import(\"@stripe/stripe-js\");\n\n try {\n const { loadStripe } = await stripeJs();\n const payload = isNotPresent(stripePlatformAccount) && {\n stripeAccount: stripeAccountIdentifier,\n };\n\n return await loadStripe(\n globalProps.stripePayment.publishableKey,\n payload || {}\n );\n } catch (error) {\n logger.error(error);\n }\n\n return null;\n }, [kind, stripeAccountIdentifier, stripePlatformAccount]);\n\nexport default useStripePromise;\n"],"names":["useStripePromise","_ref","stripeAccountIdentifier","_ref$kind","kind","_ref$stripePlatformAc","stripePlatformAccount","useMemo","_asyncToGenerator","_regeneratorRuntime","mark","_callee","stripeJs","_yield$stripeJs","loadStripe","payload","wrap","_callee$","_context","prev","next","isNotPresent","globalProps","stripePayment","publishableKey","abrupt","sent","stripeAccount","t0","logger","error","stop"],"mappings":";;;;;;AAKA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAAA;AAAA,EAAA,IACpBC,uBAAuB,GAAAD,IAAA,CAAvBC,uBAAuB;IAAAC,SAAA,GAAAF,IAAA,CACvBG,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,QAAQ,GAAAA,SAAA;IAAAE,qBAAA,GAAAJ,IAAA,CACfK,qBAAqB;AAArBA,IAAAA,qBAAqB,GAAAD,qBAAA,KAAA,KAAA,CAAA,GAAG,EAAE,GAAAA,qBAAA;EAAA,OAE1BE,OAAO,cAAAC,iBAAA,cAAAC,mBAAA,CAAAC,IAAA,CAAC,SAAAC,OAAA,GAAA;AAAA,IAAA,IAAAC,QAAA,EAAAC,eAAA,EAAAC,UAAA,EAAAC,OAAA;AAAA,IAAA,OAAAN,mBAAA,CAAAO,IAAA,CAAA,SAAAC,SAAAC,QAAA,EAAA;AAAA,MAAA,OAAA,CAAA,EAAA,QAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;AAAA,QAAA,KAAA,CAAA;UAAA,IAEJhB,EAAAA,IAAI,KAAK,QAAQ,IAChBiB,YAAY,CAACf,qBAAqB,CAAC,IAClCe,YAAY,CAACnB,uBAAuB,CAAE,IACvCmB,YAAY,CAACC,WAAW,CAACC,aAAa,CAACC,cAAc,CAAC,IACrDH,YAAY,CAACnB,uBAAuB,CAAE,CAAA,EAAA;AAAAgB,YAAAA,QAAA,CAAAE,IAAA,GAAA,CAAA;AAAA,YAAA;A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,CAAA,CAAA;GACZ,CAAA,CAAA,EAAE,CAACP,IAAI,EAAEF,uBAAuB,EAAEI,qBAAqB,CAAC,CAAC;AAAA;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-payments-frontend",
3
- "version": "3.3.20",
3
+ "version": "3.3.21",
4
4
  "description": "To manage payments across the neeto products.",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://github.com/bigbinary/neeto-payments-nano",
@@ -56,16 +56,16 @@
56
56
  "@babel/preset-env": "7.26.0",
57
57
  "@babel/preset-react": "7.25.9",
58
58
  "@babel/preset-typescript": "7.26.0",
59
- "@babel/runtime": "7.26.0",
59
+ "@babel/runtime": "7.26.10",
60
60
  "@bigbinary/babel-preset-neeto": "^1.0.3",
61
61
  "@bigbinary/eslint-plugin-neeto": "1.5.8",
62
62
  "@bigbinary/neeto-cist": "1.0.15",
63
- "@bigbinary/neeto-commons-frontend": "4.13.25",
63
+ "@bigbinary/neeto-commons-frontend": "4.13.28",
64
64
  "@bigbinary/neeto-editor": "1.45.21",
65
65
  "@bigbinary/neeto-filters-frontend": "4.3.15",
66
- "@bigbinary/neeto-icons": "1.20.27",
67
- "@bigbinary/neeto-molecules": "3.15.52",
68
- "@bigbinary/neetoui": "8.2.73",
66
+ "@bigbinary/neeto-icons": "1.20.31",
67
+ "@bigbinary/neeto-molecules": "3.16.0",
68
+ "@bigbinary/neetoui": "8.2.74",
69
69
  "@emotion/is-prop-valid": "1.2.0",
70
70
  "@faker-js/faker": "8.2.0",
71
71
  "@honeybadger-io/js": "6.10.1",
@@ -168,14 +168,14 @@
168
168
  "zustand": "4.3.2"
169
169
  },
170
170
  "peerDependencies": {
171
- "@babel/runtime": "7.26.0",
171
+ "@babel/runtime": "7.26.10",
172
172
  "@bigbinary/neeto-cist": "1.0.15",
173
- "@bigbinary/neeto-commons-frontend": "4.13.25",
173
+ "@bigbinary/neeto-commons-frontend": "4.13.28",
174
174
  "@bigbinary/neeto-editor": "1.45.21",
175
175
  "@bigbinary/neeto-filters-frontend": "4.3.15",
176
- "@bigbinary/neeto-icons": "1.20.27",
177
- "@bigbinary/neeto-molecules": "3.15.52",
178
- "@bigbinary/neetoui": "8.2.73",
176
+ "@bigbinary/neeto-icons": "1.20.31",
177
+ "@bigbinary/neeto-molecules": "3.16.0",
178
+ "@bigbinary/neetoui": "8.2.74",
179
179
  "@honeybadger-io/js": "6.10.1",
180
180
  "@honeybadger-io/react": "6.1.25",
181
181
  "@tailwindcss/container-queries": "^0.1.1",