@payfurl/react-plugin 1.4.0 → 1.5.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 (26) hide show
  1. package/README.md +131 -0
  2. package/dist/{DefaultThreeDsProvider-CzqbXEws-C21Rr7_5.js → DefaultThreeDsProvider-bLoDSnkd-CuWxvLku.js} +24 -23
  3. package/dist/{MetricsGlobalThreeDsProvider-B-EQQsEV-BYhakAA4.js → MetricsGlobalThreeDsProvider-C93ttqbB-SRsVMed4.js} +28 -28
  4. package/dist/{PayWayAppleButton-C-XfcgNS-rgWe-QJM.js → PayWayAppleButton-BzAwlGS--DB5BVl1o.js} +1 -1
  5. package/dist/components/PayfurlDropin.d.ts +8 -3
  6. package/dist/{cxpay-VbaQA3_P-DlS7yCqQ.js → cxpay-DblHb5vN-C-l0lncv.js} +1 -1
  7. package/dist/{default-Diji0SXY-ghmIvhgy.js → default-C7f86Fx--2njdEIN4.js} +1 -1
  8. package/dist/{ecentric-BlNDCZo_-Bd8Q_3ZG.js → ecentric-B3UohyO_-XSxfe46h.js} +19 -19
  9. package/dist/{epna-CxmJ_mqR-D4gbP4NT.js → epna-DwUg2IlB-60mxqUE4.js} +1 -1
  10. package/dist/{flashbanc-BAxvqtBB-DVXrWV0Z.js → flashbanc-LXs8bahL-z2X9avF_.js} +1 -1
  11. package/dist/forter-CLFaJUYa-0_gstIhb.js +36 -0
  12. package/dist/{gpayments-B5KWQV4S-QV7caEyB.js → gpayments-DoZug3PV-r91JBiIn.js} +6 -6
  13. package/dist/{index-CL6hUU-f.js → index-DxOlzt-Z.js} +4344 -3992
  14. package/dist/index.d.ts +1 -1
  15. package/dist/metrics_global-BM-ooge--CapUrY7a.js +7 -0
  16. package/dist/{nmi-Ch7qQ6Av-DbPjmA5v.js → nmi-BA3ZTdQa-DHWaU-52.js} +1 -1
  17. package/dist/{nuvei-DRmlfpTL-ByeKEnae.js → nuvei-DIWsLlLz-Dnx1Hmez.js} +4 -4
  18. package/dist/{payabli-CiBJ1-vC-BthvUlRk.js → payabli-DgrTI1Et-aNWdpC9M.js} +1 -1
  19. package/dist/payfurl-react.es.js +1 -1
  20. package/dist/payfurl-react.umd.js +19 -19
  21. package/dist/{payglocal-uAPlijwL-CvGatUVh.js → payglocal-ezp0MsaZ-CA7TeuKm.js} +13 -13
  22. package/dist/{payway_rest-CjgIP42z-7zwBGwnD.js → payway_rest-D8-T-ULx-Dt-XGc-v.js} +1 -1
  23. package/dist/{skybank-D7uRF17E-BXng_6yf.js → skybank-BgDLlFXX-BnauHbzw.js} +1 -1
  24. package/package.json +4 -3
  25. package/dist/forter-R2alfHeE-C5KHGNgt.js +0 -33
  26. package/dist/metrics_global-HMMDzPlb-CXHJ1NHy.js +0 -7
@@ -1,5 +1,5 @@
1
- import { O as C } from "./DefaultThreeDsProvider-CzqbXEws-C21Rr7_5.js";
2
- import { h as g, H as f, t as E, a as S, Z as k, g as p, B as I, b as D, j as v, c as L, X as d, P as b, k as u, K as R, i as A } from "./index-CL6hUU-f.js";
1
+ import { O as f } from "./DefaultThreeDsProvider-bLoDSnkd-CuWxvLku.js";
2
+ import { j as g, W as P, i as E, s as I, Z as S, c as p, B as k, a as D, k as v, Q as L, X as d, I as R, n as u, q as b, o as A } from "./index-DxOlzt-Z.js";
3
3
  var l = p(!1);
4
4
  function U(e, ...t) {
5
5
  l.value && console.log(u(e), u(t));
@@ -18,13 +18,13 @@ function _() {
18
18
  logMessage: U
19
19
  };
20
20
  }
21
- var x = { class: "modal-mask" }, M = { class: "modal-wrapper" }, Z = ["src"], G = /* @__PURE__ */ S(/* @__PURE__ */ k({
21
+ var x = { class: "modal-mask" }, M = { class: "modal-wrapper" }, G = ["src"], O = /* @__PURE__ */ I(/* @__PURE__ */ S({
22
22
  __name: "PayGLocalThreeDsChallenge",
23
23
  props: { url: {} },
24
24
  emits: ["close"],
25
25
  setup(e, { emit: t }) {
26
- let { logMessage: s } = _(), a = e, n = t, o = p(a.url), y = b(() => A(o.value) ? o.value : "");
27
- I(() => a.url, (r) => {
26
+ let { logMessage: s } = _(), a = e, n = t, o = p(a.url), y = R(() => A(o.value) ? o.value : "");
27
+ k(() => a.url, (r) => {
28
28
  o.value = r;
29
29
  }), D(() => {
30
30
  window.addEventListener("message", h);
@@ -36,15 +36,15 @@ var x = { class: "modal-mask" }, M = { class: "modal-wrapper" }, Z = ["src"], G
36
36
  if (s("PayGLocalThreeDsChallenge: Message received", r.data), !((c = r == null ? void 0 : r.data) != null && c["payglocal-token"])) return;
37
37
  let i = r.data["payglocal-token"];
38
38
  s("Token received", i);
39
- let T = i.split(".")[1], w = window.atob(T), P = JSON.parse(w);
40
- n("close", P);
39
+ let T = i.split(".")[1], w = window.atob(T), C = JSON.parse(w);
40
+ n("close", C);
41
41
  }
42
- return (r, i) => (R(), L("div", x, [d("div", M, [d("iframe", {
42
+ return (r, i) => (b(), L("div", x, [d("div", M, [d("iframe", {
43
43
  src: y.value,
44
44
  sandbox: "allow-same-origin allow-scripts allow-popups allow-forms"
45
- }, null, 8, Z)])]));
45
+ }, null, 8, G)])]));
46
46
  }
47
- }), [["__scopeId", "data-v-9fa1282d"]]), O = class extends C {
47
+ }), [["__scopeId", "data-v-9fa1282d"]]), Z = class extends f {
48
48
  getType() {
49
49
  return "PayGLocal";
50
50
  }
@@ -72,9 +72,9 @@ var x = { class: "modal-mask" }, M = { class: "modal-wrapper" }, Z = ["src"], G
72
72
  return;
73
73
  }
74
74
  this.setChallengeFrameVisible(!0);
75
- let { destroy: t } = f({
75
+ let { destroy: t } = P({
76
76
  el: document.body,
77
- component: G,
77
+ component: O,
78
78
  props: { url: e },
79
79
  on: { close: (s) => {
80
80
  var a, n, o;
@@ -102,7 +102,7 @@ var x = { class: "modal-mask" }, M = { class: "modal-wrapper" }, Z = ["src"], G
102
102
  }
103
103
  };
104
104
  function V(e, t, s) {
105
- return new O(e, t, s);
105
+ return new Z(e, t, s);
106
106
  }
107
107
  export {
108
108
  V as default
@@ -1,4 +1,4 @@
1
- import { PayWayAppleButton as p } from "./PayWayAppleButton-C-XfcgNS-rgWe-QJM.js";
1
+ import { PayWayAppleButton as p } from "./PayWayAppleButton-BzAwlGS--DB5BVl1o.js";
2
2
  function f(t, a, e, n, o, r) {
3
3
  return new p(t, a, e, n, o, r);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { w as r } from "./MetricsGlobalThreeDsProvider-B-EQQsEV-BYhakAA4.js";
1
+ import { w as r } from "./MetricsGlobalThreeDsProvider-C93ttqbB-SRsVMed4.js";
2
2
  var a = class extends r {
3
3
  getType() {
4
4
  return "SkyBank";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@payfurl/react-plugin",
3
3
  "private": false,
4
- "version": "1.4.0",
4
+ "version": "1.5.0",
5
5
  "description": "PayFURL React Plugin",
6
6
  "type": "module",
7
7
  "files": [
@@ -22,10 +22,11 @@
22
22
  "scripts": {
23
23
  "dev": "vite",
24
24
  "build": "vite build && vue-tsc --emitDeclarationOnly",
25
- "preview": "vite preview"
25
+ "preview": "vite preview",
26
+ "lint": "eslint . --max-warnings 0"
26
27
  },
27
28
  "dependencies": {
28
- "@payfurl/client": "^4.10.0"
29
+ "@payfurl/client": "^4.11.0"
29
30
  },
30
31
  "peerDependencies": {
31
32
  "react": "^18.3.1",
@@ -1,33 +0,0 @@
1
- var l = Object.defineProperty;
2
- var d = (t, e, s) => e in t ? l(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
- var h = (t, e, s) => d(t, typeof e != "symbol" ? e + "" : e, s);
4
- import { O as c } from "./DefaultThreeDsProvider-CzqbXEws-C21Rr7_5.js";
5
- import { e as g, a as m, s as u } from "./managedOrders-ojoMZ0Ab-B94-Nsp-.js";
6
- import { o as p } from "./index-CL6hUU-f.js";
7
- var { hideSpinner: f } = p(), S = class extends c {
8
- constructor() {
9
- super(...arguments);
10
- h(this, "onDoAuthSuccess", (e, s) => {
11
- var n;
12
- let o = JSON.parse(s);
13
- this.log(`[${this.getType()}][onDoAuthSuccess]`, o);
14
- let a = ((n = this.options.clientParameters) == null ? void 0 : n.SiteId) || "", i = o.managedOrderToken;
15
- !i || !g.test(a) ? this.onError(e, "3DS could not be started") : m(a).then(() => {
16
- this.setChallengeFrameVisible(!0), f(), u(i, this.container, (r) => {
17
- this.setChallengeFrameVisible(!1), r ? (this.log(`[${this.getType()}]: manageOrder failed`, r), this.onError(400, "3DS failed")) : this.onPostAuth();
18
- });
19
- }, (r) => {
20
- this.log(`[${this.getType()}]: managedOrders.js failed to load`, r), this.onError(400, "3DS could not be started");
21
- });
22
- });
23
- }
24
- getType() {
25
- return "Forter";
26
- }
27
- };
28
- function b(t, e, s) {
29
- return new S(t, e, s);
30
- }
31
- export {
32
- b as default
33
- };
@@ -1,7 +0,0 @@
1
- import { w as n } from "./MetricsGlobalThreeDsProvider-B-EQQsEV-BYhakAA4.js";
2
- function f(t, r, e) {
3
- return new n(t, r, e);
4
- }
5
- export {
6
- f as default
7
- };