@getsupertab/supertab-js 3.30.0 → 3.30.2

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 { c as R, g as z } from "./supertab-GEvCr0PL.js";
1
+ import { c as R, g as z } from "./supertab-BwH0qXKR.js";
2
2
  function $(w, d) {
3
3
  for (var b = 0; b < d.length; b++) {
4
4
  const y = d[b];
@@ -1,4 +1,4 @@
1
- import { r as mu, T as gu, P as _u, a as Su, V as yu } from "./supertab-GEvCr0PL.js";
1
+ import { r as mu, T as gu, P as _u, a as Su, V as yu } from "./supertab-BwH0qXKR.js";
2
2
  const b = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, q = globalThis, at = "9.40.0";
3
3
  function ht() {
4
4
  return lr(q), q;
@@ -4859,7 +4859,7 @@ const PV = pr({
4859
4859
  VITE_STATIC_REDIRECT_URI: void 0,
4860
4860
  VITE_GTM_CONTAINER_ID: "GTM-NG9GT7FM",
4861
4861
  VITE_SENTRY_DSN: "https://d08f3f301f364ceba6345c393c538faf@o23455.ingest.us.sentry.io/4507736861573120",
4862
- VITE_BASE_URL: "https://js.supertab.co/v3.30.0/",
4862
+ VITE_BASE_URL: "https://js.supertab.co/v3.30.2/",
4863
4863
  VITE_DEMO_CLIENT_ID: void 0,
4864
4864
  VITE_API_BASE_URL: void 0,
4865
4865
  VITE_SSO_BASE_URL: void 0,
@@ -4868,7 +4868,7 @@ const PV = pr({
4868
4868
  VITE_CHECKOUT_URL: void 0,
4869
4869
  TAPPER_ENV: "prod",
4870
4870
  PACKAGE_NAME: "@getsupertab/supertab-js",
4871
- PACKAGE_VERSION: "3.30.0",
4871
+ PACKAGE_VERSION: "3.30.2",
4872
4872
  MONETIZATION_PROVIDER_SCRIPT_URL: void 0,
4873
4873
  VITE_POSTHOG_API_HOST: void 0,
4874
4874
  VITE_POSTHOG_API_KEY: void 0
@@ -5570,7 +5570,7 @@ const Rt = /* @__PURE__ */ vN(I), f2 = /* @__PURE__ */ Z$({
5570
5570
  default: Rt
5571
5571
  }, [I]), Q_ = async (t) => {
5572
5572
  if (NV) {
5573
- const { captureException: e } = await import("./sentry-V_s7zezn.js");
5573
+ const { captureException: e } = await import("./sentry-8Rl5J9HR.js");
5574
5574
  e(t);
5575
5575
  }
5576
5576
  }, a5 = "tabjs";
@@ -29616,12 +29616,13 @@ const Gq = iE(({ input: t, sendBack: e }) => {
29616
29616
  supertabClient: n,
29617
29617
  selectedOfferingId: i,
29618
29618
  experience: c,
29619
- site: d
29619
+ site: d,
29620
+ tab: h
29620
29621
  } = t;
29621
29622
  qt.log("Loading actor started with site in context:", {
29622
29623
  contextSite: d
29623
29624
  });
29624
- const y = (await n.api.retrieveCustomer()).tab, _ = d || await n.api.retrieveSite();
29625
+ const y = h || (await n.api.retrieveCustomer()).tab, _ = d || await n.api.retrieveSite();
29625
29626
  Al({ event: "state_tab_loaded" }), qt.log("Loaded", { tab: y, site: _ });
29626
29627
  const S = i ? _.offerings : c ? wN(_, c.id) : _.offerings, C = await bj({
29627
29628
  offerings: S,
@@ -34444,7 +34445,7 @@ const PK = iE(({ input: t, sendBack: e }) => {
34444
34445
  experience: t.experience,
34445
34446
  merchantName: t.merchantName,
34446
34447
  merchantLogoUrl: t.merchantLogoUrl,
34447
- tab: null,
34448
+ tab: t.tab,
34448
34449
  offering: null,
34449
34450
  selectedOfferingId: t.selectedOfferingId,
34450
34451
  purchaseMetadata: t.purchaseMetadata,
@@ -34462,7 +34463,8 @@ const PK = iE(({ input: t, sendBack: e }) => {
34462
34463
  supertabClient: t.supertabClient,
34463
34464
  selectedOfferingId: t.selectedOfferingId,
34464
34465
  experience: t.experience,
34465
- site: t.site
34466
+ site: t.site,
34467
+ tab: t.tab
34466
34468
  }),
34467
34469
  onError: {
34468
34470
  actions: {
@@ -72183,7 +72185,7 @@ typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObje
72183
72185
  typeof Tb != "function" && (Tb = void 0);
72184
72186
  if (!Tb && !K5 && !QR)
72185
72187
  try {
72186
- import("./browser-ponyfill-Dbx01wN_.js").then((t) => t.b).then(function(t) {
72188
+ import("./browser-ponyfill-CNDH1BR9.js").then((t) => t.b).then(function(t) {
72187
72189
  Tb = t.default;
72188
72190
  }).catch(function() {
72189
72191
  });
@@ -72556,7 +72558,7 @@ const vue = ({
72556
72558
  },
72557
72559
  textColor: ((he = M == null ? void 0 : M.colors) == null ? void 0 : he.text) || Vf.text,
72558
72560
  isButtonDisabled: i.matches("Loading") || i.matches("MakingPurchase") || !d,
72559
- offeringHasBeenConfirmed: !0
72561
+ offeringHasBeenConfirmed: R
72560
72562
  }
72561
72563
  );
72562
72564
  }, gue = ({
@@ -1,4 +1,4 @@
1
- import { S as e } from "./supertab-GEvCr0PL.js";
1
+ import { S as e } from "./supertab-BwH0qXKR.js";
2
2
  export {
3
3
  e as Supertab
4
4
  };
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "engines": {
23
23
  "node": ">=22.13.1"
24
24
  },
25
- "version": "3.30.0",
25
+ "version": "3.30.2",
26
26
  "type": "module",
27
27
  "scripts": {
28
28
  "dev": "vite --config .vite/vite.dev.config.ts",