@fluid-app/portal-sdk 0.1.383 → 0.1.384
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/{OrdersScreen-BoluH8wK.cjs → OrdersScreen-BG6zoehy.cjs} +2 -2
- package/dist/{OrdersScreen-BR7-m0Ym.cjs → OrdersScreen-BMnnZh8v.cjs} +2 -2
- package/dist/{OrdersScreen-BR7-m0Ym.cjs.map → OrdersScreen-BMnnZh8v.cjs.map} +1 -1
- package/dist/{OrdersScreen-CrdNO3th.mjs → OrdersScreen-D30UcCb9.mjs} +2 -2
- package/dist/{OrdersScreen-DlaN-Yrw.mjs → OrdersScreen-jCE23-nN.mjs} +2 -2
- package/dist/{OrdersScreen-DlaN-Yrw.mjs.map → OrdersScreen-jCE23-nN.mjs.map} +1 -1
- package/dist/{ProfileScreen-D7BmHBW5.mjs → ProfileScreen-Bu55j8bD.mjs} +3 -3
- package/dist/{ProfileScreen-v7ysdaAK.cjs → ProfileScreen-CAmRD0vt.cjs} +3 -3
- package/dist/{ProfileScreen-v7ysdaAK.cjs.map → ProfileScreen-CAmRD0vt.cjs.map} +1 -1
- package/dist/{ProfileScreen-BxwpqfXf.mjs → ProfileScreen-D5-4xHyf.mjs} +3 -3
- package/dist/{ProfileScreen-BxwpqfXf.mjs.map → ProfileScreen-D5-4xHyf.mjs.map} +1 -1
- package/dist/{ProfileScreen-CefRZdeE.cjs → ProfileScreen-Zl1bPxXG.cjs} +3 -3
- package/dist/{ShopScreen-DTuot9zV.cjs → ShopScreen-BGsmn1iD.cjs} +1 -1
- package/dist/{ShopScreen-DES8W4tq.cjs → ShopScreen-BcmLO7P5.cjs} +8 -3
- package/dist/{ShopScreen-DES8W4tq.cjs.map → ShopScreen-BcmLO7P5.cjs.map} +1 -1
- package/dist/{ShopScreen-B8LI7rEq.mjs → ShopScreen-ChngOndQ.mjs} +1 -1
- package/dist/{ShopScreen-DCAzbIo5.mjs → ShopScreen-bF8kdNws.mjs} +8 -3
- package/dist/{ShopScreen-DCAzbIo5.mjs.map → ShopScreen-bF8kdNws.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-CWBMeU5v.cjs → SubscriptionsScreen-BZBppAEb.cjs} +3 -3
- package/dist/{SubscriptionsScreen-bKgaLi3-.cjs → SubscriptionsScreen-Chg41CCa.cjs} +3 -3
- package/dist/{SubscriptionsScreen-bKgaLi3-.cjs.map → SubscriptionsScreen-Chg41CCa.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-07UYSCSY.mjs → SubscriptionsScreen-RClWcQ88.mjs} +3 -3
- package/dist/{SubscriptionsScreen-07UYSCSY.mjs.map → SubscriptionsScreen-RClWcQ88.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-OO7vI8em.mjs → SubscriptionsScreen-eF122WP7.mjs} +3 -3
- package/dist/{display-JuYIguJK.cjs → display-DKzN3DZd.cjs} +9 -3
- package/dist/display-DKzN3DZd.cjs.map +1 -0
- package/dist/{display-B3BfkaBm.mjs → display-vZrlWWCP.mjs} +9 -3
- package/dist/display-vZrlWWCP.mjs.map +1 -0
- package/dist/index.cjs +14 -14
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +14 -14
- package/dist/{use-portal-card-add-3ds-flow-Am5y9gt3.mjs → use-portal-card-add-3ds-flow-CHdZounD.mjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-Am5y9gt3.mjs.map → use-portal-card-add-3ds-flow-CHdZounD.mjs.map} +1 -1
- package/dist/{use-portal-card-add-3ds-flow-Yr0Qttv5.cjs → use-portal-card-add-3ds-flow-u-PUJ_-8.cjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-Yr0Qttv5.cjs.map → use-portal-card-add-3ds-flow-u-PUJ_-8.cjs.map} +1 -1
- package/package.json +18 -18
- package/dist/display-B3BfkaBm.mjs.map +0 -1
- package/dist/display-JuYIguJK.cjs.map +0 -1
|
@@ -51,5 +51,5 @@ import "./translation-adapter-C7MxrAX_.mjs";
|
|
|
51
51
|
import "./translation-adapter-CPr3Y0RW.mjs";
|
|
52
52
|
import "./translation-adapter-nPt5lYdk.mjs";
|
|
53
53
|
import "./ScreenHeaderContext-mFd2T-WH.mjs";
|
|
54
|
-
import { n as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-
|
|
54
|
+
import { n as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-bF8kdNws.mjs";
|
|
55
55
|
export { ShopScreen, shopScreenPropertySchema };
|
|
@@ -1093,11 +1093,13 @@ function ShopApp({ companyLogoUrl, renderImage, productId: controlledProductId,
|
|
|
1093
1093
|
const SCRIPT_ID = "fluid-cdn-script";
|
|
1094
1094
|
const LEAD_CAPTURE_ID = "fluid-lead-capture-suppress";
|
|
1095
1095
|
const DEFAULT_SCRIPT_SRC = "https://assets.fluid.app/scripts/fluid-sdk/latest/web-widgets/index.js";
|
|
1096
|
-
function CartScript({ subdomain, authJwt, bffMode, scriptSrc, apiBaseUrl, debug, country }) {
|
|
1096
|
+
function CartScript({ subdomain, authJwt, bffMode, scriptSrc, apiBaseUrl, debug, country, cookieDomain }) {
|
|
1097
1097
|
const authJwtRef = useRef(authJwt);
|
|
1098
1098
|
authJwtRef.current = authJwt;
|
|
1099
1099
|
const countryRef = useRef(country);
|
|
1100
1100
|
countryRef.current = country;
|
|
1101
|
+
const cookieDomainRef = useRef(cookieDomain);
|
|
1102
|
+
cookieDomainRef.current = cookieDomain;
|
|
1101
1103
|
useEffect(() => {
|
|
1102
1104
|
if (!subdomain) return;
|
|
1103
1105
|
if (document.getElementById(SCRIPT_ID)) return;
|
|
@@ -1112,6 +1114,7 @@ function CartScript({ subdomain, authJwt, bffMode, scriptSrc, apiBaseUrl, debug,
|
|
|
1112
1114
|
if (apiBaseUrl) script.dataset.fluidApiBaseUrl = apiBaseUrl;
|
|
1113
1115
|
if (debug) script.dataset.debug = "true";
|
|
1114
1116
|
if (countryRef.current) script.dataset.fluidCountry = countryRef.current;
|
|
1117
|
+
if (cookieDomainRef.current) script.dataset.fluidCookieDomain = cookieDomainRef.current;
|
|
1115
1118
|
document.head.appendChild(script);
|
|
1116
1119
|
const leadCapture = document.createElement("fluid-lead-capture-widget");
|
|
1117
1120
|
leadCapture.id = LEAD_CAPTURE_ID;
|
|
@@ -1265,6 +1268,7 @@ function ShopScreenContent({ background, textColor, accentColor, padding, border
|
|
|
1265
1268
|
const countryCode = config.countryIso ?? "US";
|
|
1266
1269
|
const subdomain = store?.subdomain;
|
|
1267
1270
|
const productId = currentSlug.split("/")[1] ?? null;
|
|
1271
|
+
const tenantHost = typeof window !== "undefined" ? window.location.hostname : void 0;
|
|
1268
1272
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
1269
1273
|
!productId && /* @__PURE__ */ jsx(ScreenHeaderBreadcrumbs, { children: /* @__PURE__ */ jsx(Breadcrumb, { children: /* @__PURE__ */ jsx(BreadcrumbList, {
|
|
1270
1274
|
className: "text-lg",
|
|
@@ -1287,7 +1291,8 @@ function ShopScreenContent({ background, textColor, accentColor, padding, border
|
|
|
1287
1291
|
scriptSrc: import.meta.env.DEV ? String(import.meta.env.VITE_FAIRSHARE_SDK_URL || "http://localhost:4444/index.js") : void 0,
|
|
1288
1292
|
apiBaseUrl: import.meta.env.DEV ? String(import.meta.env.VITE_FAIRSHARE_API_BASE_URL || "http://api.fluid.localhost:3000") : void 0,
|
|
1289
1293
|
debug: import.meta.env.DEV,
|
|
1290
|
-
country: countryCode
|
|
1294
|
+
country: countryCode,
|
|
1295
|
+
cookieDomain: tenantHost
|
|
1291
1296
|
}) : null,
|
|
1292
1297
|
cartWidget: /* @__PURE__ */ jsx(CartWidget, {}),
|
|
1293
1298
|
children: [productId && /* @__PURE__ */ jsx(ProductBreadcrumb, { productId }), /* @__PURE__ */ jsx(ShopApp, {
|
|
@@ -1340,4 +1345,4 @@ function ProductBreadcrumb({ productId }) {
|
|
|
1340
1345
|
//#endregion
|
|
1341
1346
|
export { shopScreenPropertySchema as n, ShopScreen as t };
|
|
1342
1347
|
|
|
1343
|
-
//# sourceMappingURL=ShopScreen-
|
|
1348
|
+
//# sourceMappingURL=ShopScreen-bF8kdNws.mjs.map
|