@flopay/vue 1.20.2 → 1.20.4

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/dist/index.cjs CHANGED
@@ -3984,7 +3984,7 @@ var FloPayCheckout = (0, import_vue7.defineComponent)({
3984
3984
  resolved.claimed.then(
3985
3985
  (claimed) => {
3986
3986
  if (!active) return;
3987
- adopt(claimed);
3987
+ adopt((0, import_shared9.applyClaimAdvertisement)(resolved.result, claimed));
3988
3988
  state.claimPending = false;
3989
3989
  },
3990
3990
  (error) => fail(error)
@@ -5353,6 +5353,7 @@ function asFloPayError(caught) {
5353
5353
  cause: caught
5354
5354
  });
5355
5355
  }
5356
+ var RUNTIME_CONTRACT_VERSION = "2.0.0";
5356
5357
  var FloPayRuntimeCheckout = (0, import_vue14.defineComponent)({
5357
5358
  name: "FloPayRuntimeCheckout",
5358
5359
  props: {
@@ -5385,6 +5386,7 @@ var FloPayRuntimeCheckout = (0, import_vue14.defineComponent)({
5385
5386
  (runtime) => {
5386
5387
  if (current !== run || !container.value) return;
5387
5388
  handle = runtime.mount(container.value, {
5389
+ contractVersion: RUNTIME_CONTRACT_VERSION,
5388
5390
  publishableKey: props.publishableKey,
5389
5391
  sessionId: props.sessionId,
5390
5392
  nonce: props.nonce,
package/dist/index.mjs CHANGED
@@ -36,6 +36,7 @@ import { computed as computed3, defineComponent as defineComponent5, h as h5, on
36
36
  // src/flopay-checkout.ts
37
37
  import { loadFloPay, PaymentAPI as PaymentAPI3 } from "@flopay/js";
38
38
  import {
39
+ applyClaimAdvertisement,
39
40
  buildCheckoutDisplayData,
40
41
  clearCachedInlineCheckout,
41
42
  clearCachedInlineSession,
@@ -2884,7 +2885,7 @@ var FloPayCheckout = defineComponent4({
2884
2885
  resolved.claimed.then(
2885
2886
  (claimed) => {
2886
2887
  if (!active) return;
2887
- adopt(claimed);
2888
+ adopt(applyClaimAdvertisement(resolved.result, claimed));
2888
2889
  state.claimPending = false;
2889
2890
  },
2890
2891
  (error) => fail(error)
@@ -3486,6 +3487,7 @@ function asFloPayError(caught) {
3486
3487
  cause: caught
3487
3488
  });
3488
3489
  }
3490
+ var RUNTIME_CONTRACT_VERSION = "2.0.0";
3489
3491
  var FloPayRuntimeCheckout = defineComponent6({
3490
3492
  name: "FloPayRuntimeCheckout",
3491
3493
  props: {
@@ -3518,6 +3520,7 @@ var FloPayRuntimeCheckout = defineComponent6({
3518
3520
  (runtime) => {
3519
3521
  if (current !== run || !container.value) return;
3520
3522
  handle = runtime.mount(container.value, {
3523
+ contractVersion: RUNTIME_CONTRACT_VERSION,
3521
3524
  publishableKey: props.publishableKey,
3522
3525
  sessionId: props.sessionId,
3523
3526
  nonce: props.nonce,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flopay/vue",
3
- "version": "1.20.2",
3
+ "version": "1.20.4",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "publishConfig": {
@@ -36,8 +36,8 @@
36
36
  "dist"
37
37
  ],
38
38
  "dependencies": {
39
- "@flopay/js": "1.20.2",
40
- "@flopay/shared": "1.20.2",
39
+ "@flopay/js": "1.20.4",
40
+ "@flopay/shared": "1.20.4",
41
41
  "@paypal/paypal-js": "^11.3.0",
42
42
  "@stripe/stripe-js": "^10.3.0"
43
43
  },