@bigbinary/neeto-payments-frontend 1.5.0-beta1 → 1.6.0-beta2
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/README.md +4 -95
- package/app/javascript/src/translations/en.json +0 -15
- package/dist/AccountsDashboard.js +477 -0
- package/dist/AccountsDashboard.js.map +1 -0
- package/dist/Dashboard.js +598 -0
- package/dist/Dashboard.js.map +1 -0
- package/dist/ExportModal-85725c35.js +645 -0
- package/dist/ExportModal-85725c35.js.map +1 -0
- package/dist/IdentifierButton-73cadb18.js +20 -0
- package/dist/IdentifierButton-73cadb18.js.map +1 -0
- package/dist/PaymentKindRestrictionAlert.js +34 -0
- package/dist/PaymentKindRestrictionAlert.js.map +1 -0
- package/dist/PayoutsDashboard.js +503 -0
- package/dist/PayoutsDashboard.js.map +1 -0
- package/dist/PayoutsPage.js +185 -0
- package/dist/PayoutsPage.js.map +1 -0
- package/dist/RazorpayDashboard.js +251 -0
- package/dist/RazorpayDashboard.js.map +1 -0
- package/dist/RazorpayPaymentButton.js +111 -0
- package/dist/RazorpayPaymentButton.js.map +1 -0
- package/dist/StripeConnect.js +2071 -0
- package/dist/StripeConnect.js.map +1 -0
- package/dist/U2TDTBMY-c464dc98.js +12081 -0
- package/dist/U2TDTBMY-c464dc98.js.map +1 -0
- package/dist/UpiConnect.js +148 -0
- package/dist/UpiConnect.js.map +1 -0
- package/dist/UpiMarkAsPaidButton.js +42 -0
- package/dist/UpiMarkAsPaidButton.js.map +1 -0
- package/dist/UpiPayment.js +94 -0
- package/dist/UpiPayment.js.map +1 -0
- package/dist/V2PaymentsDashboard.js +302 -0
- package/dist/V2PaymentsDashboard.js.map +1 -0
- package/dist/buildStripeTransactionLink.js +6 -0
- package/dist/buildStripeTransactionLink.js.map +1 -0
- package/dist/cjs/AccountsDashboard.js +494 -0
- package/dist/cjs/AccountsDashboard.js.map +1 -0
- package/dist/cjs/Dashboard.js +613 -0
- package/dist/cjs/Dashboard.js.map +1 -0
- package/dist/cjs/ExportModal-20f368a1.js +669 -0
- package/dist/cjs/ExportModal-20f368a1.js.map +1 -0
- package/dist/cjs/IdentifierButton-40b5459d.js +27 -0
- package/dist/cjs/IdentifierButton-40b5459d.js.map +1 -0
- package/dist/cjs/PaymentKindRestrictionAlert.js +41 -0
- package/dist/cjs/PaymentKindRestrictionAlert.js.map +1 -0
- package/dist/cjs/PayoutsDashboard.js +519 -0
- package/dist/cjs/PayoutsDashboard.js.map +1 -0
- package/dist/cjs/PayoutsPage.js +194 -0
- package/dist/cjs/PayoutsPage.js.map +1 -0
- package/dist/cjs/RazorpayDashboard.js +262 -0
- package/dist/cjs/RazorpayDashboard.js.map +1 -0
- package/dist/cjs/RazorpayPaymentButton.js +118 -0
- package/dist/cjs/RazorpayPaymentButton.js.map +1 -0
- package/dist/cjs/StripeConnect.js +2106 -0
- package/dist/cjs/StripeConnect.js.map +1 -0
- package/dist/cjs/U2TDTBMY-e2fad970.js +12083 -0
- package/dist/cjs/U2TDTBMY-e2fad970.js.map +1 -0
- package/dist/cjs/UpiConnect.js +181 -0
- package/dist/cjs/UpiConnect.js.map +1 -0
- package/dist/cjs/UpiMarkAsPaidButton.js +49 -0
- package/dist/cjs/UpiMarkAsPaidButton.js.map +1 -0
- package/dist/cjs/UpiPayment.js +124 -0
- package/dist/cjs/UpiPayment.js.map +1 -0
- package/dist/cjs/V2PaymentsDashboard.js +313 -0
- package/dist/cjs/V2PaymentsDashboard.js.map +1 -0
- package/dist/cjs/buildStripeTransactionLink.js +11 -0
- package/dist/cjs/buildStripeTransactionLink.js.map +1 -0
- package/dist/cjs/constants.js +495 -0
- package/dist/cjs/constants.js.map +1 -0
- package/dist/cjs/exportChannel-7bd80952.js +39 -0
- package/dist/cjs/exportChannel-7bd80952.js.map +1 -0
- package/dist/cjs/extends-1b35a664.js +19 -0
- package/dist/cjs/extends-1b35a664.js.map +1 -0
- package/dist/cjs/index-b097dce8.js +41 -0
- package/dist/cjs/index-b097dce8.js.map +1 -0
- package/dist/cjs/index-b7badf96.js +88 -0
- package/dist/cjs/index-b7badf96.js.map +1 -0
- package/dist/cjs/index.js +100 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/mutation-ed7b84fc.js +235 -0
- package/dist/cjs/mutation-ed7b84fc.js.map +1 -0
- package/dist/cjs/queryConstants-de21eed5.js +944 -0
- package/dist/cjs/queryConstants-de21eed5.js.map +1 -0
- package/dist/cjs/renderFunctions-398d3fb5.js +3719 -0
- package/dist/cjs/renderFunctions-398d3fb5.js.map +1 -0
- package/dist/cjs/stripe.esm-4218a1e9.js.map +1 -0
- package/dist/cjs/useConnectApi-f0665633.js +2189 -0
- package/dist/cjs/useConnectApi-f0665633.js.map +1 -0
- package/dist/cjs/useFiltersAndPagination-312c0331.js +277 -0
- package/dist/cjs/useFiltersAndPagination-312c0331.js.map +1 -0
- package/dist/cjs/useMutation-4c7cdbe1.js +154 -0
- package/dist/cjs/useMutation-4c7cdbe1.js.map +1 -0
- package/dist/cjs/usePaymentApi-ae70e5df.js +48 -0
- package/dist/cjs/usePaymentApi-ae70e5df.js.map +1 -0
- package/dist/cjs/usePaymentsApi-815be3da.js +36 -0
- package/dist/cjs/usePaymentsApi-815be3da.js.map +1 -0
- package/dist/cjs/usePlatformApi-830827fa.js +116 -0
- package/dist/cjs/usePlatformApi-830827fa.js.map +1 -0
- package/dist/cjs/useRazorpayPayment.js +91 -0
- package/dist/cjs/useRazorpayPayment.js.map +1 -0
- package/dist/cjs/useStripePromise.js +27 -0
- package/dist/cjs/useStripePromise.js.map +1 -0
- package/dist/cjs/utils-7eba34a4.js +664 -0
- package/dist/cjs/utils-7eba34a4.js.map +1 -0
- package/dist/constants.js +480 -0
- package/dist/constants.js.map +1 -0
- package/dist/exportChannel-250e6f14.js +32 -0
- package/dist/exportChannel-250e6f14.js.map +1 -0
- package/dist/extends-093996c9.js +17 -0
- package/dist/extends-093996c9.js.map +1 -0
- package/dist/index-1aedc364.js +80 -0
- package/dist/index-1aedc364.js.map +1 -0
- package/dist/index-48f8b281.js +32 -0
- package/dist/index-48f8b281.js.map +1 -0
- package/dist/index.js +77 -12558
- package/dist/index.js.map +1 -1
- package/dist/mutation-286611ef.js +232 -0
- package/dist/mutation-286611ef.js.map +1 -0
- package/dist/queryConstants-765c8816.js +920 -0
- package/dist/queryConstants-765c8816.js.map +1 -0
- package/dist/renderFunctions-97b121a4.js +3633 -0
- package/dist/renderFunctions-97b121a4.js.map +1 -0
- package/dist/useConnectApi-87335bf6.js +2174 -0
- package/dist/useConnectApi-87335bf6.js.map +1 -0
- package/dist/useFiltersAndPagination-2ab7bc8f.js +262 -0
- package/dist/useFiltersAndPagination-2ab7bc8f.js.map +1 -0
- package/dist/useMutation-8d67f853.js +132 -0
- package/dist/useMutation-8d67f853.js.map +1 -0
- package/dist/usePaymentApi-12737871.js +41 -0
- package/dist/usePaymentApi-12737871.js.map +1 -0
- package/dist/usePaymentsApi-a801ab15.js +29 -0
- package/dist/usePaymentsApi-a801ab15.js.map +1 -0
- package/dist/usePlatformApi-8adc2a50.js +104 -0
- package/dist/usePlatformApi-8adc2a50.js.map +1 -0
- package/dist/useRazorpayPayment.js +89 -0
- package/dist/useRazorpayPayment.js.map +1 -0
- package/dist/useStripePromise.js +25 -0
- package/dist/useStripePromise.js.map +1 -0
- package/dist/utils-e29db9c9.js +614 -0
- package/dist/utils-e29db9c9.js.map +1 -0
- package/package.json +18 -10
- package/types/AccountsDashboard.d.ts +3 -0
- package/types/Dashboard.d.ts +15 -0
- package/types/PaymentKindRestrictionAlert.d.ts +11 -0
- package/types/PayoutsDashboard.d.ts +10 -0
- package/types/PayoutsPage.d.ts +11 -0
- package/types/StripeConnect.d.ts +13 -0
- package/types/buildStripeTransactionLink.d.ts +6 -0
- package/types/useStripePromise.d.ts +5 -0
- package/types.d.ts +8 -75
- package/dist/index-042b6907.js +0 -6
- package/dist/index-042b6907.js.map +0 -1
- package/dist/index-87824935.js +0 -4
- package/dist/index-87824935.js.map +0 -1
- package/dist/index.cjs.js +0 -12633
- package/dist/index.cjs.js.map +0 -1
- package/dist/stripe.esm-4218a1e9.js.map +0 -1
- /package/dist/{stripe.esm-4218a1e9.js → cjs/stripe.esm-4218a1e9.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-payments-frontend",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0-beta2",
|
|
4
4
|
"description": "To manage payments across the neeto products.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-payments-nano",
|
|
@@ -11,11 +11,10 @@
|
|
|
11
11
|
"author": "BigBinary",
|
|
12
12
|
"files": [
|
|
13
13
|
"dist",
|
|
14
|
-
"types
|
|
14
|
+
"types",
|
|
15
|
+
"*.d.ts",
|
|
15
16
|
"app/javascript/src/translations"
|
|
16
17
|
],
|
|
17
|
-
"main": "dist/index.cjs.js",
|
|
18
|
-
"module": "dist/index.js",
|
|
19
18
|
"types": "types.d.ts",
|
|
20
19
|
"scripts": {
|
|
21
20
|
"build": "NODE_ENV=production rollup -c --environment production",
|
|
@@ -39,6 +38,16 @@
|
|
|
39
38
|
"bundle exec rubocop -a --force-exclusion"
|
|
40
39
|
]
|
|
41
40
|
},
|
|
41
|
+
"exports": {
|
|
42
|
+
".": {
|
|
43
|
+
"import": "./dist/index.js",
|
|
44
|
+
"types": "./types.d.ts"
|
|
45
|
+
},
|
|
46
|
+
"./*": {
|
|
47
|
+
"import": "./dist/*.js",
|
|
48
|
+
"types": "./types/*.d.ts"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
42
51
|
"devDependencies": {
|
|
43
52
|
"@babel/core": "7.23.2",
|
|
44
53
|
"@babel/eslint-parser": "7.22.15",
|
|
@@ -48,14 +57,14 @@
|
|
|
48
57
|
"@babel/preset-typescript": "7.23.2",
|
|
49
58
|
"@babel/runtime": "7.23.2",
|
|
50
59
|
"@bigbinary/babel-preset-neeto": "1.0.6",
|
|
51
|
-
"@bigbinary/eslint-plugin-neeto": "1.5.
|
|
60
|
+
"@bigbinary/eslint-plugin-neeto": "1.5.2",
|
|
52
61
|
"@bigbinary/neeto-audit-frontend": "2.0.11",
|
|
53
62
|
"@bigbinary/neeto-cist": "1.0.9",
|
|
54
|
-
"@bigbinary/neeto-commons-frontend": "3.5.
|
|
63
|
+
"@bigbinary/neeto-commons-frontend": "3.5.12",
|
|
55
64
|
"@bigbinary/neeto-editor": "1.25.0",
|
|
56
65
|
"@bigbinary/neeto-filters-frontend": "3.3.4",
|
|
57
66
|
"@bigbinary/neeto-icons": "1.18.9",
|
|
58
|
-
"@bigbinary/neeto-molecules": "
|
|
67
|
+
"@bigbinary/neeto-molecules": "2.0.0",
|
|
59
68
|
"@bigbinary/neetoui": "6.5.13",
|
|
60
69
|
"@emotion/is-prop-valid": "1.2.0",
|
|
61
70
|
"@faker-js/faker": "8.2.0",
|
|
@@ -67,7 +76,6 @@
|
|
|
67
76
|
"@rollup/plugin-json": "6.0.1",
|
|
68
77
|
"@rollup/plugin-node-resolve": "15.2.3",
|
|
69
78
|
"@rollup/plugin-replace": "5.0.4",
|
|
70
|
-
"@square/web-sdk": "^2.0.1",
|
|
71
79
|
"@stripe/stripe-js": "^1.38.1",
|
|
72
80
|
"@svgr/rollup": "8.1.0",
|
|
73
81
|
"@tanstack/react-query": "5.40.0",
|
|
@@ -157,11 +165,11 @@
|
|
|
157
165
|
},
|
|
158
166
|
"peerDependencies": {
|
|
159
167
|
"@bigbinary/neeto-cist": "latest",
|
|
160
|
-
"@bigbinary/neeto-commons-frontend": "3.5.
|
|
168
|
+
"@bigbinary/neeto-commons-frontend": "3.5.12",
|
|
161
169
|
"@bigbinary/neeto-editor": "latest",
|
|
162
170
|
"@bigbinary/neeto-filters-frontend": "3.3.4",
|
|
163
171
|
"@bigbinary/neeto-icons": "1.18.9",
|
|
164
|
-
"@bigbinary/neeto-molecules": "
|
|
172
|
+
"@bigbinary/neeto-molecules": "2.0.0",
|
|
165
173
|
"@bigbinary/neetoui": "6.5.13",
|
|
166
174
|
"@honeybadger-io/js": "^6.5.3",
|
|
167
175
|
"@honeybadger-io/react": "^6.1.9",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
interface DashboardProps {
|
|
4
|
+
holdableId?: string = "";
|
|
5
|
+
payableEntityColumns?: object[] = [];
|
|
6
|
+
searchProps: SearchPropType;
|
|
7
|
+
headerProps?: object = {};
|
|
8
|
+
isPlatformEnabled?: boolean = false;
|
|
9
|
+
kind?: string = "connected";
|
|
10
|
+
payoutId?: string = null;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const Dashboard: React.FC<DashboardProps>;
|
|
14
|
+
|
|
15
|
+
export default Dashboard;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
interface PaymentKindRestrictionAlertProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
paymentKind: string;
|
|
6
|
+
onClose: (...args: any[]) => void;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const PaymentKindRestrictionAlert: React.FC<PaymentKindRestrictionAlertProps>;
|
|
10
|
+
|
|
11
|
+
export default PaymentKindRestrictionAlert;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
interface StripeConnectProps {
|
|
4
|
+
holdableId: string | null;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
isPlatform: boolean;
|
|
8
|
+
returnUrl: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const StripeConnect: React.FC<StripeConnectProps>;
|
|
12
|
+
|
|
13
|
+
export default StripeConnect;
|
package/types.d.ts
CHANGED
|
@@ -1,75 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[otherProps: string]: any;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
interface SquareCardReturnType {
|
|
13
|
-
card: any;
|
|
14
|
-
setCard: function;
|
|
15
|
-
tokenizeCard: function;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function Dashboard(props: {
|
|
19
|
-
holdableId?: string = "";
|
|
20
|
-
payableEntityColumns?: object[] = [];
|
|
21
|
-
searchProps: SearchPropType;
|
|
22
|
-
headerProps?: object = {};
|
|
23
|
-
isPlatformEnabled?: boolean = false;
|
|
24
|
-
kind?: string = "connected";
|
|
25
|
-
payoutId?: string = null;
|
|
26
|
-
}): JSX.Element;
|
|
27
|
-
|
|
28
|
-
export function buildStripeTransactionLink(
|
|
29
|
-
identifier: string,
|
|
30
|
-
isLive: boolean = true
|
|
31
|
-
): string;
|
|
32
|
-
|
|
33
|
-
export function useStripePromise(
|
|
34
|
-
stripeAccountIdentifier: string
|
|
35
|
-
): Promise<any | null> | null;
|
|
36
|
-
|
|
37
|
-
export function useSquareCard(): SquareCardReturnType;
|
|
38
|
-
|
|
39
|
-
export function SquareCard(props: {
|
|
40
|
-
card: any;
|
|
41
|
-
setCard: function;
|
|
42
|
-
id?: string = "square-card-container";
|
|
43
|
-
onChange?: function = () => {};
|
|
44
|
-
options?: object = {};
|
|
45
|
-
disabled?: boolean = false;
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
export function SquareDashboard(props: {
|
|
49
|
-
holdableId?: string = null;
|
|
50
|
-
payableEntityColumns?: object[] = [];
|
|
51
|
-
searchProps: SearchPropType;
|
|
52
|
-
headerProps?: object = {};
|
|
53
|
-
kind?: string = "squarePayment";
|
|
54
|
-
}): JSX.Element;
|
|
55
|
-
|
|
56
|
-
export function PaymentKindRestrictionAlert(props: {
|
|
57
|
-
isOpen: boolean;
|
|
58
|
-
paymentKind: string;
|
|
59
|
-
onClose: (...args: any[]) => any;
|
|
60
|
-
}): JSX.Element;
|
|
61
|
-
|
|
62
|
-
export function AccountsDashboard(): JSX.Element;
|
|
63
|
-
|
|
64
|
-
export function PayoutsDashboard(props: {
|
|
65
|
-
payoutsPageRoute: string;
|
|
66
|
-
isPlatformEnabled: boolean;
|
|
67
|
-
}): JSX.Element;
|
|
68
|
-
|
|
69
|
-
export function PayoutsPage(props: {
|
|
70
|
-
isPlatformEnabled: boolean;
|
|
71
|
-
indexRoute: string;
|
|
72
|
-
searchProps: object = {};
|
|
73
|
-
}): JSX.Element;
|
|
74
|
-
|
|
75
|
-
export function StripeConnect(props): JSX.Element;
|
|
1
|
+
export { default as AccountsDashboard } from "./types/AccountsDashboard";
|
|
2
|
+
export { default as Dashboard } from "./types/Dashboard";
|
|
3
|
+
export { default as PaymentKindRestrictionAlert } from "./types/PaymentKindRestrictionAlert";
|
|
4
|
+
export { default as PayoutsDashboard } from "./types/PayoutsDashboard";
|
|
5
|
+
export { default as PayoutsPage } from "./types/PayoutsPage";
|
|
6
|
+
export { default as StripeConnect } from "./types/StripeConnect";
|
|
7
|
+
export { default as buildStripeTransactionLink } from "./types/buildStripeTransactionLink";
|
|
8
|
+
export { default as useStripePromise } from "./types/useStripePromise";
|
package/dist/index-042b6907.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var l=(e,r,t)=>new Promise((n,i)=>{var d=o=>{try{c(t.next(o));}catch(a){i(a);}},m=o=>{try{c(t.throw(o));}catch(a){i(a);}},c=o=>o.done?n(o.value):Promise.resolve(o.value).then(d,m);c((t=t.apply(e,r)).next());});function f(e){return document.querySelector(`script[src="${e}"]`)}function S(e){let r=document.head||document.body;if(!r)throw new Error("Square.js requires a <body> or <head> element.");let t=document.createElement("script");return t.src=e,r.appendChild(t),t}var s=null;function p(e){return s!==null||(s=new Promise((r,t)=>{if(typeof window=="undefined"){r(null);return}if(window.Square){r(window.Square);return}try{let n=f(e);n||(n=S(e)),n.addEventListener("load",()=>{window.Square?r(window.Square):t(new Error("Square.js failed to load properly."));}),n.addEventListener("error",()=>{t(new Error("Error occurred while loading Square.js"));});}catch(n){t(n);}})),s}var w="v1",u=class extends Error{constructor(r="The Payment 'applicationId' option is not in the correct format."){super(r);this.name="InvalidApplicationIdError",Object.setPrototypeOf(this,u.prototype);}};function q(e){let r="";if(e.startsWith("sq0idp-")&&(r="https://web.squarecdn.com/"),e.startsWith("sandbox-sq0idb-")&&(r="https://sandbox.web.squarecdn.com/"),r.length===0)throw new u;return r+=`${w}/square.js`,r}function E(e,r,t){return l(this,null,function*(){let n=(t==null?void 0:t.scriptSrc)!==void 0?t.scriptSrc:q(e),i=yield p(n);return i===null?null:i.payments(e,r)})}
|
|
4
|
-
|
|
5
|
-
exports.payments = E;
|
|
6
|
-
//# sourceMappingURL=index-042b6907.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-042b6907.js","sources":["../node_modules/@square/web-sdk/dist/index.js"],"sourcesContent":["var l=(e,r,t)=>new Promise((n,i)=>{var d=o=>{try{c(t.next(o))}catch(a){i(a)}},m=o=>{try{c(t.throw(o))}catch(a){i(a)}},c=o=>o.done?n(o.value):Promise.resolve(o.value).then(d,m);c((t=t.apply(e,r)).next())});function f(e){return document.querySelector(`script[src=\"${e}\"]`)}function S(e){let r=document.head||document.body;if(!r)throw new Error(\"Square.js requires a <body> or <head> element.\");let t=document.createElement(\"script\");return t.src=e,r.appendChild(t),t}var s=null;function p(e){return s!==null||(s=new Promise((r,t)=>{if(typeof window==\"undefined\"){r(null);return}if(window.Square){r(window.Square);return}try{let n=f(e);n||(n=S(e)),n.addEventListener(\"load\",()=>{window.Square?r(window.Square):t(new Error(\"Square.js failed to load properly.\"))}),n.addEventListener(\"error\",()=>{t(new Error(\"Error occurred while loading Square.js\"))})}catch(n){t(n)}})),s}var w=\"v1\",u=class extends Error{constructor(r=\"The Payment 'applicationId' option is not in the correct format.\"){super(r);this.name=\"InvalidApplicationIdError\",Object.setPrototypeOf(this,u.prototype)}};function q(e){let r=\"\";if(e.startsWith(\"sq0idp-\")&&(r=\"https://web.squarecdn.com/\"),e.startsWith(\"sandbox-sq0idb-\")&&(r=\"https://sandbox.web.squarecdn.com/\"),r.length===0)throw new u;return r+=`${w}/square.js`,r}function E(e,r,t){return l(this,null,function*(){let n=(t==null?void 0:t.scriptSrc)!==void 0?t.scriptSrc:q(e),i=yield p(n);return i===null?null:i.payments(e,r)})}export{E as payments};\n"],"names":[],"mappings":";;AAAA,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,QAAQ,CAAC,aAAa,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CA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AC,CAAC,CAAC,kEAAkE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,2BAA2B,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,oCAAoC,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;"}
|
package/dist/index-87824935.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var l=(e,r,t)=>new Promise((n,i)=>{var d=o=>{try{c(t.next(o));}catch(a){i(a);}},m=o=>{try{c(t.throw(o));}catch(a){i(a);}},c=o=>o.done?n(o.value):Promise.resolve(o.value).then(d,m);c((t=t.apply(e,r)).next());});function f(e){return document.querySelector(`script[src="${e}"]`)}function S(e){let r=document.head||document.body;if(!r)throw new Error("Square.js requires a <body> or <head> element.");let t=document.createElement("script");return t.src=e,r.appendChild(t),t}var s=null;function p(e){return s!==null||(s=new Promise((r,t)=>{if(typeof window=="undefined"){r(null);return}if(window.Square){r(window.Square);return}try{let n=f(e);n||(n=S(e)),n.addEventListener("load",()=>{window.Square?r(window.Square):t(new Error("Square.js failed to load properly."));}),n.addEventListener("error",()=>{t(new Error("Error occurred while loading Square.js"));});}catch(n){t(n);}})),s}var w="v1",u=class extends Error{constructor(r="The Payment 'applicationId' option is not in the correct format."){super(r);this.name="InvalidApplicationIdError",Object.setPrototypeOf(this,u.prototype);}};function q(e){let r="";if(e.startsWith("sq0idp-")&&(r="https://web.squarecdn.com/"),e.startsWith("sandbox-sq0idb-")&&(r="https://sandbox.web.squarecdn.com/"),r.length===0)throw new u;return r+=`${w}/square.js`,r}function E(e,r,t){return l(this,null,function*(){let n=(t==null?void 0:t.scriptSrc)!==void 0?t.scriptSrc:q(e),i=yield p(n);return i===null?null:i.payments(e,r)})}
|
|
2
|
-
|
|
3
|
-
export { E as payments };
|
|
4
|
-
//# sourceMappingURL=index-87824935.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-87824935.js","sources":["../node_modules/@square/web-sdk/dist/index.js"],"sourcesContent":["var l=(e,r,t)=>new Promise((n,i)=>{var d=o=>{try{c(t.next(o))}catch(a){i(a)}},m=o=>{try{c(t.throw(o))}catch(a){i(a)}},c=o=>o.done?n(o.value):Promise.resolve(o.value).then(d,m);c((t=t.apply(e,r)).next())});function f(e){return document.querySelector(`script[src=\"${e}\"]`)}function S(e){let r=document.head||document.body;if(!r)throw new Error(\"Square.js requires a <body> or <head> element.\");let t=document.createElement(\"script\");return t.src=e,r.appendChild(t),t}var s=null;function p(e){return s!==null||(s=new Promise((r,t)=>{if(typeof window==\"undefined\"){r(null);return}if(window.Square){r(window.Square);return}try{let n=f(e);n||(n=S(e)),n.addEventListener(\"load\",()=>{window.Square?r(window.Square):t(new Error(\"Square.js failed to load properly.\"))}),n.addEventListener(\"error\",()=>{t(new Error(\"Error occurred while loading Square.js\"))})}catch(n){t(n)}})),s}var w=\"v1\",u=class extends Error{constructor(r=\"The Payment 'applicationId' option is not in the correct format.\"){super(r);this.name=\"InvalidApplicationIdError\",Object.setPrototypeOf(this,u.prototype)}};function q(e){let r=\"\";if(e.startsWith(\"sq0idp-\")&&(r=\"https://web.squarecdn.com/\"),e.startsWith(\"sandbox-sq0idb-\")&&(r=\"https://sandbox.web.squarecdn.com/\"),r.length===0)throw new u;return r+=`${w}/square.js`,r}function E(e,r,t){return l(this,null,function*(){let n=(t==null?void 0:t.scriptSrc)!==void 0?t.scriptSrc:q(e),i=yield p(n);return i===null?null:i.payments(e,r)})}export{E as payments};\n"],"names":[],"mappings":"AAAA,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EA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