@getopenpay/openpay-js 0.3.5 → 0.3.6

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 { 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-DBr5OrcA.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 { 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-C1XbJqyF.js";
2
+ import { t as d } from "./index-DBr5OrcA.js";
3
+ import { l as u } from "./utils-Dwu_PVpL.js";
4
+ import { I as N, i as T, s as w, a as E } from "./utils-Dwu_PVpL.js";
5
+ import { d as f } from "./diag-api-JTyR4o6s.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];
package/dist/index.d.ts CHANGED
@@ -166,13 +166,14 @@ 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
175
  allowTracing?: boolean;
176
+ preventNavigationDuringSubmission?: boolean;
176
177
  };
177
178
 
178
179
  declare const ElementsStyle = <T extends z.ZodTypeAny>(placeholderType: T) =>
@@ -572,6 +573,11 @@ declare type OjsContext = {
572
573
  * The base URL of the CDE iframe.
573
574
  */
574
575
  baseUrl: string;
576
+
577
+ /**
578
+ * Whether to prevent navigation during submission.
579
+ */
580
+ preventNavigationDuringSubmission?: boolean;
575
581
  };
576
582
 
577
583
  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-DBr5OrcA.js";
2
2
  import "penpal";
3
3
  import "uuid";
4
4
  export {