@fluid-app/portal-sdk 0.1.382 → 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.
Files changed (60) hide show
  1. package/dist/{EmbedWidget-CgC5yVnq.cjs → EmbedWidget-CWStqe63.cjs} +3 -3
  2. package/dist/{EmbedWidget-CgC5yVnq.cjs.map → EmbedWidget-CWStqe63.cjs.map} +1 -1
  3. package/dist/{EmbedWidget-B6sco5Sh.mjs → EmbedWidget-D4HybHKj.mjs} +3 -3
  4. package/dist/{EmbedWidget-B6sco5Sh.mjs.map → EmbedWidget-D4HybHKj.mjs.map} +1 -1
  5. package/dist/{EmbedWidget-Dr6gaAZp.cjs → EmbedWidget-fJRuj5uw.cjs} +1 -1
  6. package/dist/{FluidProvider-CblbC7cR.cjs → FluidProvider-BRKrtfF7.cjs} +3 -3
  7. package/dist/{FluidProvider-CblbC7cR.cjs.map → FluidProvider-BRKrtfF7.cjs.map} +1 -1
  8. package/dist/{FluidProvider-BxRc9UtX.mjs → FluidProvider-sNDwysAs.mjs} +3 -3
  9. package/dist/{FluidProvider-BxRc9UtX.mjs.map → FluidProvider-sNDwysAs.mjs.map} +1 -1
  10. package/dist/{MessagingScreen-xsZB4aha.cjs → MessagingScreen-BFCqA6Ge.cjs} +3 -3
  11. package/dist/{MessagingScreen-OxLhD-jj.mjs → MessagingScreen-C53Z7xHW.mjs} +2 -2
  12. package/dist/{MessagingScreen-OxLhD-jj.mjs.map → MessagingScreen-C53Z7xHW.mjs.map} +1 -1
  13. package/dist/{MessagingScreen-DMDqLVqA.mjs → MessagingScreen-CfdnXLuG.mjs} +3 -3
  14. package/dist/{MessagingScreen-BlN1Aw1K.cjs → MessagingScreen-YeyZcW87.cjs} +2 -2
  15. package/dist/{MessagingScreen-BlN1Aw1K.cjs.map → MessagingScreen-YeyZcW87.cjs.map} +1 -1
  16. package/dist/{OrdersScreen-CBoMj1nE.cjs → OrdersScreen-BG6zoehy.cjs} +4 -4
  17. package/dist/{OrdersScreen-Ch8SM5_B.cjs → OrdersScreen-BMnnZh8v.cjs} +3 -3
  18. package/dist/{OrdersScreen-Ch8SM5_B.cjs.map → OrdersScreen-BMnnZh8v.cjs.map} +1 -1
  19. package/dist/{OrdersScreen-mjVvkEbJ.mjs → OrdersScreen-D30UcCb9.mjs} +4 -4
  20. package/dist/{OrdersScreen-C845bV9m.mjs → OrdersScreen-jCE23-nN.mjs} +3 -3
  21. package/dist/{OrdersScreen-C845bV9m.mjs.map → OrdersScreen-jCE23-nN.mjs.map} +1 -1
  22. package/dist/{ProfileScreen-DJrxz420.mjs → ProfileScreen-Bu55j8bD.mjs} +5 -5
  23. package/dist/{ProfileScreen-Bk8N2sP8.cjs → ProfileScreen-CAmRD0vt.cjs} +4 -4
  24. package/dist/{ProfileScreen-Bk8N2sP8.cjs.map → ProfileScreen-CAmRD0vt.cjs.map} +1 -1
  25. package/dist/{ProfileScreen-CMRiSGqm.mjs → ProfileScreen-D5-4xHyf.mjs} +4 -4
  26. package/dist/{ProfileScreen-CMRiSGqm.mjs.map → ProfileScreen-D5-4xHyf.mjs.map} +1 -1
  27. package/dist/{ProfileScreen-D-RJtx2L.cjs → ProfileScreen-Zl1bPxXG.cjs} +5 -5
  28. package/dist/{ShopScreen-Dp-9FXFz.cjs → ShopScreen-BGsmn1iD.cjs} +3 -3
  29. package/dist/{ShopScreen-Ku6qG3Il.cjs → ShopScreen-BcmLO7P5.cjs} +9 -4
  30. package/dist/{ShopScreen-Ku6qG3Il.cjs.map → ShopScreen-BcmLO7P5.cjs.map} +1 -1
  31. package/dist/{ShopScreen-D88P7zES.mjs → ShopScreen-ChngOndQ.mjs} +3 -3
  32. package/dist/{ShopScreen-rJIdTJng.mjs → ShopScreen-bF8kdNws.mjs} +9 -4
  33. package/dist/{ShopScreen-rJIdTJng.mjs.map → ShopScreen-bF8kdNws.mjs.map} +1 -1
  34. package/dist/{SubscriptionsScreen-DubPYOFS.cjs → SubscriptionsScreen-BZBppAEb.cjs} +5 -5
  35. package/dist/{SubscriptionsScreen-BKIgK5d4.cjs → SubscriptionsScreen-Chg41CCa.cjs} +4 -4
  36. package/dist/{SubscriptionsScreen-BKIgK5d4.cjs.map → SubscriptionsScreen-Chg41CCa.cjs.map} +1 -1
  37. package/dist/{SubscriptionsScreen-n2OC2f95.mjs → SubscriptionsScreen-RClWcQ88.mjs} +4 -4
  38. package/dist/{SubscriptionsScreen-n2OC2f95.mjs.map → SubscriptionsScreen-RClWcQ88.mjs.map} +1 -1
  39. package/dist/{SubscriptionsScreen-BA68a8Xr.mjs → SubscriptionsScreen-eF122WP7.mjs} +5 -5
  40. package/dist/{display-JuYIguJK.cjs → display-DKzN3DZd.cjs} +9 -3
  41. package/dist/display-DKzN3DZd.cjs.map +1 -0
  42. package/dist/{display-B3BfkaBm.mjs → display-vZrlWWCP.mjs} +9 -3
  43. package/dist/display-vZrlWWCP.mjs.map +1 -0
  44. package/dist/index.cjs +20 -20
  45. package/dist/index.d.cts.map +1 -1
  46. package/dist/index.d.mts.map +1 -1
  47. package/dist/index.mjs +20 -20
  48. package/dist/preview/preview-entry.cjs +3 -3
  49. package/dist/preview/preview-entry.mjs +3 -3
  50. package/dist/{use-portal-card-add-3ds-flow-CW-sJsDW.mjs → use-portal-card-add-3ds-flow-CHdZounD.mjs} +3 -3
  51. package/dist/{use-portal-card-add-3ds-flow-CW-sJsDW.mjs.map → use-portal-card-add-3ds-flow-CHdZounD.mjs.map} +1 -1
  52. package/dist/{use-portal-card-add-3ds-flow-DnZEut5p.cjs → use-portal-card-add-3ds-flow-u-PUJ_-8.cjs} +3 -3
  53. package/dist/{use-portal-card-add-3ds-flow-DnZEut5p.cjs.map → use-portal-card-add-3ds-flow-u-PUJ_-8.cjs.map} +1 -1
  54. package/dist/{widget-package-utils-B92IpLB6.cjs → widget-package-utils-BS3nP1P3.cjs} +2 -2
  55. package/dist/{widget-package-utils-B92IpLB6.cjs.map → widget-package-utils-BS3nP1P3.cjs.map} +1 -1
  56. package/dist/{widget-package-utils-Dz3l38G-.mjs → widget-package-utils-Cuc1XGS2.mjs} +2 -2
  57. package/dist/{widget-package-utils-Dz3l38G-.mjs.map → widget-package-utils-Cuc1XGS2.mjs.map} +1 -1
  58. package/package.json +22 -22
  59. package/dist/display-B3BfkaBm.mjs.map +0 -1
  60. package/dist/display-JuYIguJK.cjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import "./use-account-Bb2BVClg.mjs";
2
- import "./FluidProvider-BxRc9UtX.mjs";
2
+ import "./FluidProvider-sNDwysAs.mjs";
3
3
  import "./ScreenRenderer-CcT_j-WQ.mjs";
4
4
  import "./use-optional-store-BPICvfcP.mjs";
5
5
  import "./mysite-api-context-CoLr9vIf.mjs";
@@ -33,7 +33,7 @@ import "./CatchUpWidget-BnPXSzPC.mjs";
33
33
  import "./src-D4GyA1Th.mjs";
34
34
  import "./ChartWidget-DWC2GNCP.mjs";
35
35
  import "./ContainerWidget-r0FsUPrN.mjs";
36
- import "./EmbedWidget-B6sco5Sh.mjs";
36
+ import "./EmbedWidget-D4HybHKj.mjs";
37
37
  import "./ImageWidget-D-poOMf1.mjs";
38
38
  import "./LinkWidget-BVTMMQPx.mjs";
39
39
  import "./ListWidget-Bsk5K9v3.mjs";
@@ -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-rJIdTJng.mjs";
54
+ import { n as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-bF8kdNws.mjs";
55
55
  export { ShopScreen, shopScreenPropertySchema };
@@ -1,5 +1,5 @@
1
1
  import { t as useAccount } from "./use-account-Bb2BVClg.mjs";
2
- import { _ as useShopTranslation, n as useFluidContext } from "./FluidProvider-BxRc9UtX.mjs";
2
+ import { _ as useShopTranslation, n as useFluidContext } from "./FluidProvider-sNDwysAs.mjs";
3
3
  import { a as formatPortalPrice, c as getProductImageUrl, d as usePortalProducts, f as isVariantSubscribable, i as formatSavings, l as usePortalProductDetail, n as bundleSubscriptionPrice, o as formatPortalPriceRange, r as isStaticBundle, s as determineProductPrice, t as SearchSort, u as usePortalProductCatalog } from "./SearchSort-DlgQNBVV.mjs";
4
4
  import { $ as Dialog, A as RadioGroup, D as SelectTrigger, E as SelectItem, Et as Card, G as DropdownMenuLabel, H as DropdownMenu, J as DropdownMenuSeparator, K as DropdownMenuRadioGroup, O as SelectValue, Q as DropdownMenuTrigger, T as SelectContent, U as DropdownMenuContent, _n as BreadcrumbPage, et as DialogClose, g as Skeleton, gn as BreadcrumbList, hn as BreadcrumbLink, j as RadioGroupItem, jn as Button, mn as BreadcrumbItem, nt as DialogDescription, pn as Breadcrumb, q as DropdownMenuRadioItem, st as DialogTitle, tt as DialogContent, vn as BreadcrumbSeparator, w as Select, yn as Badge } from "./src-D4GyA1Th.mjs";
5
5
  import { i as isVideoUrl, r as getVideoThumbnailUrl } from "./ShopWidget-CTJKe-L6.mjs";
@@ -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-rJIdTJng.mjs.map
1348
+ //# sourceMappingURL=ShopScreen-bF8kdNws.mjs.map