@getsupertab/supertab-js 3.64.2 → 3.65.0
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,9 +1,9 @@
|
|
|
1
1
|
import { a as e, i as t, n, r, t as i } from "./chunk-C5e3QaDY.js";
|
|
2
|
-
import { C as a, S as o, T as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, l as _, m as v, o as y, p as b, r as x, s as S, u as C, v as w, w as T, x as E, y as D } from "./env
|
|
2
|
+
import { C as a, S as o, T as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, l as _, m as v, o as y, p as b, r as x, s as S, u as C, v as w, w as T, x as E, y as D } from "./env-C9vl27hd.js";
|
|
3
3
|
//#region src/capture-errors.ts
|
|
4
4
|
var O = /* @__PURE__ */ e(s(), 1), k = async (e) => {
|
|
5
5
|
if (f) {
|
|
6
|
-
let { captureException: t } = await import("./sentry-
|
|
6
|
+
let { captureException: t } = await import("./sentry-BkTXzgUI.js");
|
|
7
7
|
t(e);
|
|
8
8
|
}
|
|
9
9
|
}, A = x === "ctl" || x === "sbx" || x === "stg" ? !0 : x === "prod" && typeof window < "u" && window.location ? new URLSearchParams(window.location.search).has("supertab-enable-logging") : !1, j = {
|
|
@@ -30555,7 +30555,16 @@ var kh = nh(({ input: e, sendBack: t }) => {
|
|
|
30555
30555
|
d = !(await n.api.retrieveCustomer()).user?.isGuest;
|
|
30556
30556
|
} catch {}
|
|
30557
30557
|
let f = o && !d && l && Yc.getFeatureFlag("guest-checkout-flow") === "test" || o && !d && c;
|
|
30558
|
-
switch (f && u !== pe.MISSING && (localStorage.removeItem("supertab-auth"), u = pe.MISSING),
|
|
30558
|
+
switch (f && u !== pe.MISSING && (localStorage.removeItem("supertab-auth"), u = pe.MISSING), f && hl({
|
|
30559
|
+
event: "guest_checkout_started",
|
|
30560
|
+
properties: {
|
|
30561
|
+
clientId: n.clientId,
|
|
30562
|
+
siteName: r?.name,
|
|
30563
|
+
siteUrl: r?.url,
|
|
30564
|
+
offeringType: a.description,
|
|
30565
|
+
offeringId: a.id
|
|
30566
|
+
}
|
|
30567
|
+
}), u) {
|
|
30559
30568
|
case pe.VALID:
|
|
30560
30569
|
case pe.EXPIRED:
|
|
30561
30570
|
P({ event: "state_user_known" });
|
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"access": "public",
|
|
23
23
|
"registry": "https://registry.npmjs.org/"
|
|
24
24
|
},
|
|
25
|
-
"version": "3.
|
|
25
|
+
"version": "3.65.0",
|
|
26
26
|
"type": "module",
|
|
27
27
|
"scripts": {
|
|
28
28
|
"dev": "vite --config .vite/vite.dev.config.ts",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@types/react-dom": "^19.2.3",
|
|
89
89
|
"@vitest/coverage-v8": "^4.0.16",
|
|
90
90
|
"@xstate/react": "^6.0.0",
|
|
91
|
-
"chromatic": "^
|
|
91
|
+
"chromatic": "^16.6.3",
|
|
92
92
|
"dotenv": "^17.2.3",
|
|
93
93
|
"eslint": "^8.57.0",
|
|
94
94
|
"eslint-plugin-storybook": "10.3.5",
|