@getopenpay/openpay-js 0.3.5 → 0.3.8-alpha.194eea9

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 { d as diag } from "./diag-api-Ck_l5qgD.js";
1
+ import { d as diag } from "./diag-api-RX-KzLee.js";
2
2
  import { E as ExportResultCode, h as hexToBinary } from "./ExportResult-Bo1QOwfo.js";
3
3
  import { c as commonjsGlobal } from "./_commonjsHelpers-DnMzE-71.js";
4
4
  var OTLPExporterBase = (
@@ -1,8 +1,8 @@
1
- import { m as s } from "./metrics-api-Qe5u_X_E.js";
2
- import { t as d } from "./index-DUAfQijD.js";
3
- import { l as u } from "./utils-BqVpDqfk.js";
4
- import { I as N, i as T, s as w, a as E } from "./utils-BqVpDqfk.js";
5
- import { d as f } from "./diag-api-Ck_l5qgD.js";
1
+ import { m as s } from "./metrics-api-BaIOyIim.js";
2
+ import { t as d } from "./index-CdmEUA-L.js";
3
+ import { l as u } from "./utils-B4iHwhtv.js";
4
+ import { I as N, i as T, s as w, a as E } from "./utils-B4iHwhtv.js";
5
+ import { d as f } from "./diag-api-RX-KzLee.js";
6
6
  function l(e, r, t, o) {
7
7
  for (var n = 0, a = e.length; n < a; n++) {
8
8
  var i = e[n];
@@ -1,4 +1,4 @@
1
- import { R as Le } from "./index-DUAfQijD.js";
1
+ import { R as Le } from "./index-CdmEUA-L.js";
2
2
  function Et(e) {
3
3
  return e === void 0 && (e = {}), typeof e.addEventListener == "function" && typeof e.removeEventListener == "function";
4
4
  }
@@ -1,4 +1,4 @@
1
- import { b as I, t as l, i as D, T as o, d as T, e as b } from "./index-DUAfQijD.js";
1
+ import { b as I, t as l, i as D, T as o, d as T, e as b } from "./index-CdmEUA-L.js";
2
2
  var C = I("OpenTelemetry SDK Context Key SUPPRESS_TRACING");
3
3
  function A(r) {
4
4
  return r.getValue(C) === !0;
@@ -1,8 +1,8 @@
1
- import { z as de, p as T, r as _e, w as ye, j as ve, n as he, y as me, dJ as ge, h as Se, dK as Ae, l as Ee, q as Te, i as Pe, m as Re, o as Oe, t as be, u as Ce } from "./url-BwiN4sTR.js";
2
- import { b as k, t as O, i as Y, T as b, d as Ie, c as B } from "./index-DUAfQijD.js";
3
- import { d as _ } from "./diag-api-Ck_l5qgD.js";
1
+ import { z as de, p as T, r as _e, w as ye, j as ve, n as he, y as me, dJ as ge, h as Se, dK as Ae, l as Ee, q as Te, i as Pe, m as Re, o as Oe, t as be, u as Ce } from "./url-BdSGXHxw.js";
2
+ import { b as k, t as O, i as Y, T as b, d as Ie, c as B } from "./index-CdmEUA-L.js";
3
+ import { d as _ } from "./diag-api-RX-KzLee.js";
4
4
  import { h as X, E as je } from "./ExportResult-Bo1QOwfo.js";
5
- import { D as Me, j as Ne, br as we, bs as De, bt as Le, b as xe, T as Ge, bu as Be, h as Ve, i as Ue, bv as He } from "./sdk-info-SNq483aR.js";
5
+ import { D as Me, j as Ne, br as we, bs as De, bt as Le, b as xe, T as Ge, bu as Be, h as Ve, i as Ue, bv as He } from "./sdk-info-48mrfHuY.js";
6
6
  import { _ as Ke } from "./utils-BGeftTvk.js";
7
7
  var p;
8
8
  (function(e) {
@@ -1,7 +1,7 @@
1
- import { R as u } from "./index-DUAfQijD.js";
2
- import { B as c } from "./SimpleSpanProcessor-DTBWGI5n.js";
3
- import { A as g, b as x, a as S, C as b, F as w, I as P, N as C, P as T, R as O, d as M, S as A, e as E, c as R, T as N } from "./SimpleSpanProcessor-DTBWGI5n.js";
4
- import { P as F, a as j, b as k, g as I, c as W, h as U, n as X, p as z, s as D, d as G } from "./utils-Bf1MO8XE.js";
1
+ import { R as u } from "./index-CdmEUA-L.js";
2
+ import { B as c } from "./SimpleSpanProcessor-BTGGovcx.js";
3
+ import { A as g, b as x, a as S, C as b, F as w, I as P, N as C, P as T, R as O, d as M, S as A, e as E, c as R, T as N } from "./SimpleSpanProcessor-BTGGovcx.js";
4
+ import { P as F, a as j, b as k, g as I, c as W, h as U, n as X, p as z, s as D, d as G } from "./utils-CxGI0Cpd.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,9 +1,9 @@
1
- import { d as z } from "./diag-api-Ck_l5qgD.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, k as $, m as J } from "./url-BwiN4sTR.js";
3
- import { s as Y, i as Z, I as q } from "./utils-BqVpDqfk.js";
1
+ import { d as z } from "./diag-api-RX-KzLee.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, k as $, m as J } from "./url-BdSGXHxw.js";
3
+ import { s as Y, i as Z, I as q } from "./utils-B4iHwhtv.js";
4
4
  import { _ as T } from "./utils-BGeftTvk.js";
5
- import { P as O, b as P, p as N, s as ee, c as te } from "./utils-Bf1MO8XE.js";
6
- import { t as x, c as p, S as re } from "./index-DUAfQijD.js";
5
+ import { P as O, b as P, p as N, s as ee, c as te } from "./utils-CxGI0Cpd.js";
6
+ import { t as x, c as p, S as re } from "./index-CdmEUA-L.js";
7
7
  var y;
8
8
  (function(a) {
9
9
  a.COMPONENT = "component", a.HTTP_ERROR_NAME = "http.error_name", a.HTTP_STATUS_TEXT = "http.status_text";
package/dist/index.d.ts CHANGED
@@ -166,13 +166,18 @@ declare type ElementProps<PlaceholderType extends z.ZodTypeAny = z.ZodString> =
166
166
  styles?: ElementsStyle<z.ZodOptional<PlaceholderType>>;
167
167
  };
168
168
 
169
- export declare type ElementsFormProps = {
169
+ declare type ElementsFormProps = {
170
170
  className?: string;
171
171
  checkoutSecureToken: string;
172
172
  baseUrl?: string;
173
173
  formTarget?: string;
174
174
  customInitParams?: CustomInitParams;
175
+ /**
176
+ * Whether to enable tracing. Defaults to false.
177
+ * Set to true to opt-in to tracing functionality.
178
+ */
175
179
  allowTracing?: boolean;
180
+ preventNavigationDuringSubmission?: boolean;
176
181
  };
177
182
 
178
183
  declare const ElementsStyle = <T extends z.ZodTypeAny>(placeholderType: T) =>
@@ -572,6 +577,11 @@ declare type OjsContext = {
572
577
  * The base URL of the CDE iframe.
573
578
  */
574
579
  baseUrl: string;
580
+
581
+ /**
582
+ * Whether to prevent navigation during submission.
583
+ */
584
+ preventNavigationDuringSubmission?: boolean;
575
585
  };
576
586
 
577
587
  declare type OjsFlow<T_PARAMS = unknown, T_INIT_RESULT extends InitOjsFlowResult = InitOjsFlowResult> = {
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as e, O as i, l as r, m as s } from "./index-DUAfQijD.js";
1
+ import { F as e, O as i, l as r, m as s } from "./index-CdmEUA-L.js";
2
2
  import "penpal";
3
3
  import "uuid";
4
4
  export {