@everymatrix/cashier-page 1.99.18 → 1.99.19
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/components/CashierCarousel-CUtNMhZV.js +5858 -0
- package/components/CashierCarousel-MBtvTbcb.cjs +23 -0
- package/components/CashierCarousel-Tx0f5-LG.js +5896 -0
- package/components/CashierError-C7eQzwUP.cjs +1 -0
- package/components/{CashierError-GsEDSXtA.js → CashierError-Dyxg1sq3.js} +6 -7
- package/components/{CashierError-4dP13hBI.js → CashierError-kl-Hjy3m.js} +6 -7
- package/components/CashierHeader-BKcZqENP.js +432 -0
- package/components/CashierHeader-ByWJ_k92.cjs +1 -0
- package/components/CashierHeader-WI5T8myo.js +432 -0
- package/components/{CashierIframeRedirect-CKNMtdwW.js → CashierIframeRedirect-C_1-xORQ.js} +87 -72
- package/components/{CashierIframeRedirect-BEsPx_Z8.js → CashierIframeRedirect-D5wLT4Ip.js} +81 -66
- package/components/CashierIframeRedirect-EU2aPm8u.cjs +1 -0
- package/components/{CashierMethodDetails-6gecWa6-.js → CashierMethodDetails-BREpDnlu.js} +3270 -2845
- package/components/CashierMethodDetails-CYwLk7rR.cjs +287 -0
- package/components/{CashierMethodDetails-Di4M7A7s.js → CashierMethodDetails-Cob_AEyz.js} +3407 -2982
- package/components/{CashierMethodsList-CJqErGs4.js → CashierMethodsList-C1JyivW4.js} +31 -31
- package/components/CashierMethodsList-CcO-EerQ.cjs +1 -0
- package/components/{CashierMethodsList-DxTcwp9y.js → CashierMethodsList-DU64oEyD.js} +32 -32
- package/components/CashierModal-BHWX0DmT.cjs +1 -0
- package/components/{CashierModal-jptr1BjB.js → CashierModal-C4PU5_PU.js} +34 -35
- package/components/{CashierModal-BmXXJZSw.js → CashierModal-Cpxd5bJQ.js} +52 -53
- package/components/{CashierNotifications-DpUJKBKY.js → CashierNotifications-B-OQoaFK.js} +27 -27
- package/components/CashierNotifications-BRQYroR0.cjs +1 -0
- package/components/{CashierNotifications-slqy0GL5.js → CashierNotifications-Bedwtk72.js} +29 -29
- package/components/CashierPage-BgoraPRn.js +4853 -0
- package/components/CashierPage-BsAuSvEP.cjs +1 -0
- package/components/CashierPage-D9Eoq0xv.js +4887 -0
- package/components/{CashierReceiptPage-Bmki8Rgo.js → CashierReceiptPage-Bs1-A5oO.js} +88 -87
- package/components/{CashierReceiptPage-CxEoywyO.js → CashierReceiptPage-CKEro91e.js} +105 -104
- package/components/CashierReceiptPage-DJG1aNbY.cjs +29 -0
- package/components/{CashierSessionExpirationModal-DLzJHllv.js → CashierSessionExpirationModal-CdSUe7hK.js} +59 -58
- package/components/{CashierSessionExpirationModal-0ZABOlrt.js → CashierSessionExpirationModal-CePqbW5W.js} +83 -82
- package/components/CashierSessionExpirationModal-ChfT0Imk.cjs +2 -0
- package/components/CashierSpinner-C1fzGsEh.cjs +1 -0
- package/components/{CashierSpinner-jlh3kLrw.js → CashierSpinner-D1qQLxEW.js} +18 -19
- package/components/{CashierSpinner-Bic1yXPY.js → CashierSpinner-wvDbhkcq.js} +14 -15
- package/components/{CashierStepUp-g-G22Lc4.js → CashierStepUp-8viDm0qd.js} +104 -105
- package/components/{CashierStepUp-srh84KwL.js → CashierStepUp-BJ3ojmDK.js} +6 -7
- package/components/CashierStepUp-V1DZKhrx.cjs +1 -0
- package/components/CashierTransactionHistory-Blt88-F-.cjs +1 -0
- package/components/{CashierTransactionHistory-yI8ncB6o.js → CashierTransactionHistory-C_HP2wr2.js} +61 -60
- package/components/{CashierTransactionHistory-CxMz_ono.js → CashierTransactionHistory-c3jwP7YJ.js} +61 -60
- package/components/{CashierVerifications-DJsdsHJU.js → CashierVerifications-B8AtaT5B.js} +125 -141
- package/components/CashierVerifications-CMRN3aAD.cjs +1 -0
- package/components/{CashierVerifications-CxFzWKAg.js → CashierVerifications-PeSLRi-g.js} +121 -137
- package/components/TxnStatusIcon-CL30ATPa.cjs +1 -0
- package/components/{TxnStatusIcon-THzMx_aQ.js → TxnStatusIcon-CUxVvL_p.js} +12 -12
- package/components/{TxnStatusIcon-B52lfQx_.js → TxnStatusIcon-ipRjsjNx.js} +1 -1
- package/components/{TxnTypeIcons-BHrNWU9Q.js → TxnTypeIcons-B6Ue3pUq.js} +1 -1
- package/components/TxnTypeIcons-Cksp3nqd.cjs +1 -0
- package/components/{TxnTypeIcons-DXAaJnwf.js → TxnTypeIcons-CufWq1r7.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/esnext/ssr.js +1 -0
- package/package.json +20 -4
- package/types/index.d.ts +69 -0
- package/types/react.d.ts +14 -0
- package/components/CashierCarousel-BZ-i1EsX.js +0 -732
- package/components/CashierCarousel-CJAaHXXD.js +0 -735
- package/components/CashierCarousel-Cu_RNUHY.cjs +0 -1
- package/components/CashierError-D0mOIAnU.cjs +0 -1
- package/components/CashierHeader-CK33wmWw.js +0 -491
- package/components/CashierHeader-DaUYq9lj.cjs +0 -1
- package/components/CashierHeader-gQMHuTqw.js +0 -491
- package/components/CashierIframeRedirect-D6UXTJnb.cjs +0 -1
- package/components/CashierMethodDetails-CSedTA6S.cjs +0 -287
- package/components/CashierMethodsList-Dd2UiVhS.cjs +0 -1
- package/components/CashierModal-BAldCDjj.cjs +0 -1
- package/components/CashierNotifications-BCksCjnd.cjs +0 -1
- package/components/CashierPage-9TlSv0Ys.js +0 -10387
- package/components/CashierPage-CRTe3srS.js +0 -10334
- package/components/CashierPage-GUVKpACj.cjs +0 -23
- package/components/CashierReceiptPage-DU78zOm2.cjs +0 -29
- package/components/CashierSessionExpirationModal-ZVuwRFF3.cjs +0 -2
- package/components/CashierSpinner-D5xvgSGR.cjs +0 -1
- package/components/CashierStepUp-CitQkE0i.cjs +0 -1
- package/components/CashierTransactionHistory-CxxqOj18.cjs +0 -1
- package/components/CashierVerifications-BJloPP6f.cjs +0 -1
- package/components/TxnStatusIcon-B_aOthN3.cjs +0 -1
- package/components/TxnTypeIcons-NnRP_P64.cjs +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as f, b as u, s as p, f as w, c as v,
|
|
1
|
+
import { S as f, b as u, s as p, f as w, c as v, I as d, d as a, j as h, x as g, r as o, Z as r, l as t, G as k } from "./CashierCarousel-Tx0f5-LG.js";
|
|
2
2
|
function _(n) {
|
|
3
3
|
v(n, "svelte-17lvd7j", "svg.svelte-17lvd7j{flex:0 0 auto;width:18px;height:18px}");
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function x(n) {
|
|
6
6
|
let e, l, i;
|
|
7
7
|
return {
|
|
8
8
|
c() {
|
|
@@ -16,7 +16,7 @@ function m(n) {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function m(n) {
|
|
20
20
|
let e, l, i;
|
|
21
21
|
return {
|
|
22
22
|
c() {
|
|
@@ -30,7 +30,7 @@ function x(n) {
|
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function j(n) {
|
|
34
34
|
let e, l, i, s;
|
|
35
35
|
return {
|
|
36
36
|
c() {
|
|
@@ -44,7 +44,7 @@ function y(n) {
|
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function y(n) {
|
|
48
48
|
let e, l, i, s;
|
|
49
49
|
return {
|
|
50
50
|
c() {
|
|
@@ -72,7 +72,7 @@ function b(n) {
|
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function F(n) {
|
|
76
76
|
let e;
|
|
77
77
|
function l(C, c) {
|
|
78
78
|
if (
|
|
@@ -84,22 +84,22 @@ function A(n) {
|
|
|
84
84
|
/*status*/
|
|
85
85
|
C[0] === "Failed"
|
|
86
86
|
)
|
|
87
|
-
return
|
|
87
|
+
return y;
|
|
88
88
|
if (
|
|
89
89
|
/*status*/
|
|
90
90
|
C[0] === "Pending"
|
|
91
91
|
)
|
|
92
|
-
return
|
|
92
|
+
return j;
|
|
93
93
|
if (
|
|
94
94
|
/*status*/
|
|
95
95
|
C[0] === "Rejected"
|
|
96
96
|
)
|
|
97
|
-
return
|
|
97
|
+
return m;
|
|
98
98
|
if (
|
|
99
99
|
/*status*/
|
|
100
100
|
C[0] === "Success"
|
|
101
101
|
)
|
|
102
|
-
return
|
|
102
|
+
return x;
|
|
103
103
|
}
|
|
104
104
|
let i = l(n), s = i && i(n);
|
|
105
105
|
return {
|
|
@@ -119,7 +119,7 @@ function A(n) {
|
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function A(n, e, l) {
|
|
123
123
|
let { status: i = "" } = e;
|
|
124
124
|
return n.$$set = (s) => {
|
|
125
125
|
"status" in s && l(0, i = s.status);
|
|
@@ -127,7 +127,7 @@ function F(n, e, l) {
|
|
|
127
127
|
}
|
|
128
128
|
class M extends f {
|
|
129
129
|
constructor(e) {
|
|
130
|
-
super(), u(this, e,
|
|
130
|
+
super(), u(this, e, A, F, p, { status: 0 }, _);
|
|
131
131
|
}
|
|
132
132
|
get status() {
|
|
133
133
|
return this.$$.ctx[0];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as f, b as u, s as p, f as w,
|
|
1
|
+
import { S as f, b as u, s as p, f as w, c as v, I as d, d as a, h, w as g, q as o, Z as r, k as t, G as k } from "./CashierCarousel-CUtNMhZV.js";
|
|
2
2
|
function _(n) {
|
|
3
3
|
v(n, "svelte-17lvd7j", "svg.svelte-17lvd7j{flex:0 0 auto;width:18px;height:18px}");
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as u, b as k, s as w, f as _,
|
|
1
|
+
import { S as u, b as k, s as w, f as _, I as p, d, j as h, x as g, r as a, Z as s, l as t, G as m } from "./CashierCarousel-Tx0f5-LG.js";
|
|
2
2
|
function y(c) {
|
|
3
3
|
let e, o, r, i, n;
|
|
4
4
|
return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./CashierCarousel-MBtvTbcb.cjs");function d(s){let e,n,a,r,i;return{c(){e=t.svg_element("svg"),n=t.svg_element("rect"),a=t.svg_element("path"),r=t.svg_element("path"),i=t.svg_element("path"),t.attr(n,"width","24"),t.attr(n,"height","24"),t.attr(n,"rx","12"),t.attr(n,"fill","#F38123"),t.attr(n,"fill-opacity","0.29"),t.attr(a,"d","M16 8L8 16"),t.attr(a,"stroke","#F38123"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(r,"d","M16 18C17.1046 18 18 17.1046 18 16C18 14.8954 17.1046 14 16 14C14.8954 14 14 14.8954 14 16C14 17.1046 14.8954 18 16 18Z"),t.attr(r,"stroke","#F38123"),t.attr(r,"stroke-width","2"),t.attr(r,"stroke-linecap","round"),t.attr(r,"stroke-linejoin","round"),t.attr(i,"d","M8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z"),t.attr(i,"stroke","#F38123"),t.attr(i,"stroke-width","2"),t.attr(i,"stroke-linecap","round"),t.attr(i,"stroke-linejoin","round"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"width","24"),t.attr(e,"height","24"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none")},m(o,p){t.insert(o,e,p),t.append(e,n),t.append(e,a),t.append(e,r),t.append(e,i)},d(o){o&&t.detach(e)}}}function c(s){let e,n,a,r;return{c(){e=t.svg_element("svg"),n=t.svg_element("rect"),a=t.svg_element("path"),r=t.svg_element("path"),t.attr(n,"width","24"),t.attr(n,"height","24"),t.attr(n,"rx","12"),t.attr(n,"fill","#F35A23"),t.attr(n,"fill-opacity","0.28"),t.attr(a,"d","M12.5345 7.20005L7.20117 12L12.5345 16.8"),t.attr(a,"stroke","#F35A23"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(r,"d","M16.9773 12L7.86621 12"),t.attr(r,"stroke","#F35A23"),t.attr(r,"stroke-width","2"),t.attr(r,"stroke-linecap","round"),t.attr(r,"stroke-linejoin","round"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"width","24"),t.attr(e,"height","24"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none")},m(i,o){t.insert(i,e,o),t.append(e,n),t.append(e,a),t.append(e,r)},d(i){i&&t.detach(e)}}}function h(s){let e,n,a,r;return{c(){e=t.svg_element("svg"),n=t.svg_element("rect"),a=t.svg_element("path"),r=t.svg_element("path"),t.attr(n,"width","24"),t.attr(n,"height","24"),t.attr(n,"rx","12"),t.attr(n,"fill","#4A975C"),t.attr(n,"fill-opacity","0.29"),t.attr(a,"d","M11.6442 7.19999L16.9775 12L11.6442 16.8"),t.attr(a,"stroke","#4A975C"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(r,"d","M7.20041 12L16.3115 12"),t.attr(r,"stroke","#4A975C"),t.attr(r,"stroke-width","2"),t.attr(r,"stroke-linecap","round"),t.attr(r,"stroke-linejoin","round"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"width","24"),t.attr(e,"height","24"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none")},m(i,o){t.insert(i,e,o),t.append(e,n),t.append(e,a),t.append(e,r)},d(i){i&&t.detach(e)}}}function u(s){let e;function n(i,o){if(i[0]==="Deposit")return h;if(i[0]==="Withdraw")return c;if(i[0]==="TaxDeduction")return d}let a=n(s),r=a&&a(s);return{c(){r&&r.c(),e=t.empty()},m(i,o){r&&r.m(i,o),t.insert(i,e,o)},p(i,[o]){a!==(a=n(i))&&(r&&r.d(1),r=a&&a(i),r&&(r.c(),r.m(e.parentNode,e)))},i:t.noop,o:t.noop,d(i){i&&t.detach(e),r&&r.d(i)}}}function f(s,e,n){let{type:a=""}=e;return s.$$set=r=>{"type"in r&&n(0,a=r.type)},[a]}class l extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,f,u,t.safe_not_equal,{type:0})}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),t.flush()}}t.create_custom_element(l,{type:{}},[],[],!0);exports.TxnTypeIcons=l;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as u, b as k, s as w, f as _,
|
|
1
|
+
import { S as u, b as k, s as w, f as _, I as p, d, h, w as g, q as a, Z as s, k as t, G as m } from "./CashierCarousel-CUtNMhZV.js";
|
|
2
2
|
function y(c) {
|
|
3
3
|
let e, o, r, i, n;
|
|
4
4
|
return {
|
package/es2015/cashier-page.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierPage-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierPage-BsAuSvEP.cjs")).then(e=>e.CashierPage_ce).then(({default:e})=>{!customElements.get("cashier-page")&&customElements.define("cashier-page",e.element)})}
|
package/es2015/cashier-page.js
CHANGED
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierPage-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierPage-D9Eoq0xv.js").then((e) => e.C).then(({ default: e }) => {
|
|
14
14
|
!customElements.get("cashier-page") && customElements.define("cashier-page", e.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/esnext/cashier-page.js
CHANGED
package/esnext/ssr.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,16 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/cashier-page",
|
|
3
|
-
"version": "1.99.
|
|
3
|
+
"version": "1.99.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "es2015/cashier-page.cjs",
|
|
6
6
|
"module": "esnext/cashier-page.js",
|
|
7
|
+
"types": "./types/index.d.ts",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
10
|
+
"types": "./types/index.d.ts",
|
|
11
|
+
"node": {
|
|
12
|
+
"import": "./esnext/ssr.js",
|
|
13
|
+
"require": "./es2015/cashier-page.cjs"
|
|
14
|
+
},
|
|
15
|
+
"edge-light": "./esnext/ssr.js",
|
|
16
|
+
"workerd": "./esnext/ssr.js",
|
|
17
|
+
"browser": "./esnext/cashier-page.js",
|
|
9
18
|
"import": "./esnext/cashier-page.js",
|
|
10
|
-
"require": "./es2015/cashier-page.cjs"
|
|
19
|
+
"require": "./es2015/cashier-page.cjs",
|
|
20
|
+
"default": "./esnext/cashier-page.js"
|
|
11
21
|
},
|
|
22
|
+
"./react": {
|
|
23
|
+
"types": "./types/react.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./esnext/cashier-page.js": "./esnext/cashier-page.js",
|
|
12
26
|
"./es2015/cashier-page.cjs": "./es2015/cashier-page.cjs",
|
|
13
|
-
"./es2015/cashier-page.js": "./es2015/cashier-page.js"
|
|
27
|
+
"./es2015/cashier-page.js": "./es2015/cashier-page.js",
|
|
28
|
+
"./package.json": "./package.json"
|
|
14
29
|
},
|
|
15
30
|
"files": [
|
|
16
31
|
"components/",
|
|
@@ -18,7 +33,8 @@
|
|
|
18
33
|
"stencil",
|
|
19
34
|
"angular",
|
|
20
35
|
"esnext/",
|
|
21
|
-
"umd"
|
|
36
|
+
"umd",
|
|
37
|
+
"types"
|
|
22
38
|
],
|
|
23
39
|
"publishConfig": {
|
|
24
40
|
"access": "public"
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
type BooleanString = 'true' | 'false';
|
|
2
|
+
|
|
3
|
+
export type CashierTransactionType = 'Deposit' | 'Withdraw';
|
|
4
|
+
export type CashierChannel = 'Desktop' | 'Mobile' | 'NativeApp';
|
|
5
|
+
|
|
6
|
+
/** Attributes accepted by `<cashier-page>`. Every value is passed as an HTML attribute string. */
|
|
7
|
+
export interface CashierPageAttributes {
|
|
8
|
+
endpoint: string;
|
|
9
|
+
session: string;
|
|
10
|
+
customerid: string;
|
|
11
|
+
currency?: string;
|
|
12
|
+
amount?: number | string;
|
|
13
|
+
type?: CashierTransactionType;
|
|
14
|
+
channel?: CashierChannel;
|
|
15
|
+
lang?: string;
|
|
16
|
+
local?: string;
|
|
17
|
+
successurl?: string;
|
|
18
|
+
failurl?: string;
|
|
19
|
+
cancelurl?: string;
|
|
20
|
+
translationurl?: string;
|
|
21
|
+
assetsurl?: string;
|
|
22
|
+
clientstyling?: string;
|
|
23
|
+
clientstylingurl?: string;
|
|
24
|
+
mbsource?: string;
|
|
25
|
+
showheader?: BooleanString;
|
|
26
|
+
showclosebutton?: BooleanString;
|
|
27
|
+
showsessionexpirationmodal?: BooleanString;
|
|
28
|
+
showverifications?: BooleanString;
|
|
29
|
+
showtransactionhistory?: BooleanString;
|
|
30
|
+
showbonuses?: BooleanString;
|
|
31
|
+
showvaults?: BooleanString;
|
|
32
|
+
depositlimitbutton?: BooleanString;
|
|
33
|
+
numberofmethodsshown?: string;
|
|
34
|
+
txncount?: string;
|
|
35
|
+
currencydecimals?: string;
|
|
36
|
+
currencysymbol?: BooleanString;
|
|
37
|
+
currencyposition?: string;
|
|
38
|
+
transactionhistorycolumns?: string;
|
|
39
|
+
dateformat?: string;
|
|
40
|
+
datetimeformat?: string;
|
|
41
|
+
customsucceessbuttons?: string;
|
|
42
|
+
custompendingbuttons?: string;
|
|
43
|
+
customfailedbuttons?: string;
|
|
44
|
+
useevents?: BooleanString;
|
|
45
|
+
p2p?: BooleanString;
|
|
46
|
+
promotedmethods?: BooleanString;
|
|
47
|
+
bonusescheckbox?: BooleanString;
|
|
48
|
+
userroles?: string;
|
|
49
|
+
withdrawconfirm?: BooleanString;
|
|
50
|
+
customverification?: BooleanString;
|
|
51
|
+
countrycode?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** Messages `<cashier-page>` posts to its own window via `window.postMessage`. */
|
|
55
|
+
export type CashierPageMessage =
|
|
56
|
+
| { type: 'CloseCashier' }
|
|
57
|
+
| { type: 'BackCashier' }
|
|
58
|
+
| { type: 'Cashier:setDepositLimit' }
|
|
59
|
+
| { type: 'Cashier:vendorRedirect'; redirectMode: string; redirectUrl: string }
|
|
60
|
+
| { type: 'ErrorResponseCode'; errorResponseCode: string; errorResponseMessage?: string }
|
|
61
|
+
| { type: 'DataLoading'; isDataLoaded: boolean };
|
|
62
|
+
|
|
63
|
+
export interface CashierPageElement extends HTMLElement, Omit<Partial<CashierPageAttributes>, keyof HTMLElement> {}
|
|
64
|
+
|
|
65
|
+
declare global {
|
|
66
|
+
interface HTMLElementTagNameMap {
|
|
67
|
+
'cashier-page': CashierPageElement;
|
|
68
|
+
}
|
|
69
|
+
}
|
package/types/react.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
2
|
+
import type { CashierPageAttributes, CashierPageElement } from './index';
|
|
3
|
+
|
|
4
|
+
/** Opt-in JSX typing for React: `import type {} from '@everymatrix/cashier-page/react';` */
|
|
5
|
+
declare module 'react' {
|
|
6
|
+
namespace JSX {
|
|
7
|
+
interface IntrinsicElements {
|
|
8
|
+
'cashier-page': DetailedHTMLProps<HTMLAttributes<CashierPageElement>, CashierPageElement> &
|
|
9
|
+
Partial<CashierPageAttributes>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export {};
|