@getopenpay/openpay-js 0.5.26-alpha.b87651e → 0.5.26

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.
@@ -1,4 +1,4 @@
1
- import { A as r, b as e, B as o, a as p, C as S, F as n, N as c, P as l, R as m, d as t, S as d, e as i, c as P, T as B } from "./SimpleSpanProcessor-CC9KuRD0.js";
1
+ import { A as r, b as e, B as o, a as p, C as S, F as n, N as c, P as l, R as m, d as t, S as d, e as i, c as P, T as B } from "./SimpleSpanProcessor-DagNFW8g.js";
2
2
  export {
3
3
  r as AlwaysOffSampler,
4
4
  e as AlwaysOnSampler,
@@ -1,4 +1,4 @@
1
- import { R as r, d as o } from "./Resource-D1KX66fN.js";
1
+ import { R as r, d as o } from "./Resource-BXlXvD5t.js";
2
2
  export {
3
3
  r as Resource,
4
4
  o as defaultServiceName
@@ -1,7 +1,7 @@
1
- import { R as u } from "./index-CIL8e1Fq.js";
2
- import { B as c } from "./SimpleSpanProcessor-CC9KuRD0.js";
3
- import { A as g, b as x, a as S, C as b, F as w, N as C, P, R as T, d as O, S as A, e as M, c as R, T as N } from "./SimpleSpanProcessor-CC9KuRD0.js";
4
- import { P as E, a as F, b as j, g as k, h as W, p as I, s as D, c as G } from "./utils-BXNdlACI.js";
1
+ import { R as u } from "./index-CbMBRwSN.js";
2
+ import { B as c } from "./SimpleSpanProcessor-DagNFW8g.js";
3
+ import { A as g, b as x, a as S, C as b, F as w, N as C, P, R as T, d as O, S as A, e as M, c as R, T as N } from "./SimpleSpanProcessor-DagNFW8g.js";
4
+ import { P as E, a as F, b as j, g as k, h as W, p as I, s as D, c as G } from "./utils-DlkiZGi4.js";
5
5
  var l = function(n, r) {
6
6
  var e = typeof Symbol == "function" && n[Symbol.iterator];
7
7
  if (!e) return n;
@@ -1,8 +1,8 @@
1
- import { d as z } from "./diag-api-f12j3-r8.js";
2
- import { b as G, c as I, d as W, e as X, p as _, i as V, f as K, g as Q, j as C, m as $, k as J, _ as T } from "./url-Dc8-WNXl.js";
3
- import { s as Y, i as Z, I as q } from "./utils-BcwMyp_5.js";
4
- import { P as O, b as P, p as N, s as ee, g as te } from "./utils-BXNdlACI.js";
5
- import { t as x, a as p, S as re } from "./index-CIL8e1Fq.js";
1
+ import { d as z } from "./diag-api-CRPXOT67.js";
2
+ import { b as G, c as I, d as W, e as X, p as _, i as V, f as K, g as Q, j as C, m as $, k as J, _ as T } from "./url-BTFVacwR.js";
3
+ import { s as Y, i as Z, I as q } from "./utils-XvO-H4OV.js";
4
+ import { P as O, b as P, p as N, s as ee, g as te } from "./utils-DlkiZGi4.js";
5
+ import { t as x, a as p, S as re } from "./index-CbMBRwSN.js";
6
6
  var y;
7
7
  (function(a) {
8
8
  a.COMPONENT = "component", a.HTTP_ERROR_NAME = "http.error_name", a.HTTP_STATUS_TEXT = "http.status_text";
@@ -1,7 +1,7 @@
1
- import { m as v } from "./metrics-api-Chiu9AL5.js";
2
- import { t as d } from "./index-CIL8e1Fq.js";
3
- import { l as f } from "./utils-BcwMyp_5.js";
4
- import { I, i as p, s as h } from "./utils-BcwMyp_5.js";
1
+ import { m as v } from "./metrics-api-CrYqR8FN.js";
2
+ import { t as d } from "./index-CbMBRwSN.js";
3
+ import { l as f } from "./utils-XvO-H4OV.js";
4
+ import { I, i as p, s as h } from "./utils-XvO-H4OV.js";
5
5
  function n(r, o, a, i) {
6
6
  for (var t = 0, s = r.length; t < s; t++) {
7
7
  var e = r[t];
package/dist/index.d.ts CHANGED
@@ -567,16 +567,19 @@ declare type InitOjsFlowResult = {
567
567
  declare type InitStripeAffirmFlowResult = {
568
568
  isAvailable: boolean;
569
569
  startFlow: (customParams?: AffirmFlowCustomParams) => Promise<void>;
570
+ abortFlow: () => void;
570
571
  };
571
572
 
572
573
  declare type InitStripeAfterpayFlowResult = {
573
574
  isAvailable: boolean;
574
575
  startFlow: (customParams?: AfterpayFlowCustomParams) => Promise<void>;
576
+ abortFlow: () => void;
575
577
  };
576
578
 
577
579
  declare type InitStripeKlarnaFlowResult = {
578
580
  isAvailable: boolean;
579
581
  startFlow: (customParams?: KlarnaFlowCustomParams) => Promise<void>;
582
+ abortFlow: () => void;
580
583
  };
581
584
 
582
585
  declare type InitStripeLinkFlowResult =
@@ -848,6 +851,11 @@ declare type OjsFlowParams<T_PARAMS = void, T_INIT_RESULT = void> = {
848
851
  * The result of the InitOjsFlow function.
849
852
  */
850
853
  initResult: T_INIT_RESULT;
854
+
855
+ /**
856
+ * Optional cancellation signal for flows that expose an explicit abort/reset controller.
857
+ */
858
+ abortSignal?: AbortSignal;
851
859
  };
852
860
 
853
861
  declare const OjsFlows = {
@@ -1073,6 +1081,7 @@ export declare class OpenPayForm {
1073
1081
  };
1074
1082
  private deviceToken;
1075
1083
  private isSubmitting;
1084
+ private activeGeneralSubmission;
1076
1085
  constructor(config: Config);
1077
1086
  /**
1078
1087
  * Starts the form initialization process
@@ -1121,6 +1130,8 @@ export declare class OpenPayForm {
1121
1130
  * Alias for submitCard
1122
1131
  */
1123
1132
  submit: (params?: CCSubmitParams) => Promise<void>;
1133
+ private isStripeBnplRedirectSubmission;
1134
+ private abortStripeBnplFlows;
1124
1135
  destroy: () => void;
1125
1136
  /**
1126
1137
  * Updates form callbacks after initialization
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E as p, F as r, O as i, l as s } from "./index-CIL8e1Fq.js";
1
+ import { E as p, F as r, O as i, l as s } from "./index-CbMBRwSN.js";
2
2
  import "penpal";
3
3
  import "uuid";
4
4
  import "zod";