@fluid-app/portal-sdk 0.1.385 → 0.1.387
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/{FluidProvider-Dilwi7_B.cjs → FluidProvider-BU3BXuxS.cjs} +3 -2
- package/dist/{FluidProvider-Dilwi7_B.cjs.map → FluidProvider-BU3BXuxS.cjs.map} +1 -1
- package/dist/{FluidProvider-BYgxVnWP.mjs → FluidProvider-Di0VmT5J.mjs} +3 -2
- package/dist/FluidProvider-Di0VmT5J.mjs.map +1 -0
- package/dist/{MessagingScreen-BsSaLUaS.mjs → MessagingScreen-CPxVO0Wk.mjs} +2 -2
- package/dist/{MessagingScreen-BsSaLUaS.mjs.map → MessagingScreen-CPxVO0Wk.mjs.map} +1 -1
- package/dist/{MessagingScreen-CDGF0XRT.cjs → MessagingScreen-QgJKRkKq.cjs} +2 -2
- package/dist/{MessagingScreen-CDGF0XRT.cjs.map → MessagingScreen-QgJKRkKq.cjs.map} +1 -1
- package/dist/{MessagingScreen-De4ras4I.mjs → MessagingScreen-RLN9jsoZ.mjs} +2 -2
- package/dist/{MessagingScreen-Byxh9Rv2.cjs → MessagingScreen-RhKhwKd5.cjs} +2 -2
- package/dist/{OrdersScreen-UNblg7xL.mjs → OrdersScreen--qxFd_oS.mjs} +2 -2
- package/dist/{OrdersScreen-UNblg7xL.mjs.map → OrdersScreen--qxFd_oS.mjs.map} +1 -1
- package/dist/{OrdersScreen-CDzjtq8a.mjs → OrdersScreen-B2jdzJ6c.mjs} +2 -2
- package/dist/{OrdersScreen-BNElIeS8.cjs → OrdersScreen-BoUyiI_f.cjs} +2 -2
- package/dist/{OrdersScreen-B2SRmObd.cjs → OrdersScreen-HhMJh5mj.cjs} +2 -2
- package/dist/{OrdersScreen-B2SRmObd.cjs.map → OrdersScreen-HhMJh5mj.cjs.map} +1 -1
- package/dist/{ProfileScreen-BHR_PVwR.cjs → ProfileScreen-BOI4Oojs.cjs} +3 -3
- package/dist/{ProfileScreen-C1ZwbDw7.mjs → ProfileScreen-BcvC6RbJ.mjs} +3 -3
- package/dist/{ProfileScreen-C1ZwbDw7.mjs.map → ProfileScreen-BcvC6RbJ.mjs.map} +1 -1
- package/dist/{ProfileScreen-D-ge7Asc.mjs → ProfileScreen-DWMzYH7_.mjs} +3 -3
- package/dist/{ProfileScreen-BV-Gif3U.cjs → ProfileScreen-DzfU7FTz.cjs} +3 -3
- package/dist/{ProfileScreen-BV-Gif3U.cjs.map → ProfileScreen-DzfU7FTz.cjs.map} +1 -1
- package/dist/{ShopScreen-CnUt5AC9.mjs → ShopScreen-5DyUGsmE.mjs} +9 -5
- package/dist/{ShopScreen-CnUt5AC9.mjs.map → ShopScreen-5DyUGsmE.mjs.map} +1 -1
- package/dist/{ShopScreen-D4CZzLFY.cjs → ShopScreen-CHIf28tV.cjs} +2 -2
- package/dist/{ShopScreen-vgnh3ekZ.cjs → ShopScreen-CuvC5Bjz.cjs} +9 -5
- package/dist/{ShopScreen-vgnh3ekZ.cjs.map → ShopScreen-CuvC5Bjz.cjs.map} +1 -1
- package/dist/{ShopScreen-CsskV8fT.mjs → ShopScreen-VHFXtdMF.mjs} +2 -2
- package/dist/{SubscriptionsScreen-Da6LvTrV.mjs → SubscriptionsScreen-D39u7QoT.mjs} +3 -3
- package/dist/{SubscriptionsScreen-BqZEjgCY.cjs → SubscriptionsScreen-DaY0JYCk.cjs} +3 -3
- package/dist/{SubscriptionsScreen-QtXnqurA.cjs → SubscriptionsScreen-Dhacz1VP.cjs} +7 -6
- package/dist/SubscriptionsScreen-Dhacz1VP.cjs.map +1 -0
- package/dist/{SubscriptionsScreen-CDUVX5vf.mjs → SubscriptionsScreen-VB3AL_LL.mjs} +7 -6
- package/dist/SubscriptionsScreen-VB3AL_LL.mjs.map +1 -0
- package/dist/index.cjs +18 -18
- package/dist/index.d.cts +8 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +8 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +18 -18
- package/dist/preview/preview-entry.cjs +2 -2
- package/dist/preview/preview-entry.mjs +2 -2
- package/dist/{use-portal-card-add-3ds-flow-C8KTwgSS.cjs → use-portal-card-add-3ds-flow-CC7ljhOr.cjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-C8KTwgSS.cjs.map → use-portal-card-add-3ds-flow-CC7ljhOr.cjs.map} +1 -1
- package/dist/{use-portal-card-add-3ds-flow-rmkIPp9W.mjs → use-portal-card-add-3ds-flow-CqONQbma.mjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-rmkIPp9W.mjs.map → use-portal-card-add-3ds-flow-CqONQbma.mjs.map} +1 -1
- package/dist/{widget-package-utils-D7IQG1pk.mjs → widget-package-utils-DeSnoZC3.mjs} +2 -2
- package/dist/{widget-package-utils-D7IQG1pk.mjs.map → widget-package-utils-DeSnoZC3.mjs.map} +1 -1
- package/dist/{widget-package-utils-DK0UvJ3E.cjs → widget-package-utils-_bSc7zYe.cjs} +2 -2
- package/dist/{widget-package-utils-DK0UvJ3E.cjs.map → widget-package-utils-_bSc7zYe.cjs.map} +1 -1
- package/package.json +12 -12
- package/dist/FluidProvider-BYgxVnWP.mjs.map +0 -1
- package/dist/SubscriptionsScreen-CDUVX5vf.mjs.map +0 -1
- package/dist/SubscriptionsScreen-QtXnqurA.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-9hOWP6kD.cjs");
|
|
2
|
-
require("./FluidProvider-
|
|
2
|
+
require("./FluidProvider-BU3BXuxS.cjs");
|
|
3
3
|
require("./ScreenRenderer-Ce8MJPnR.cjs");
|
|
4
4
|
require("./use-account-DKErbK5e.cjs");
|
|
5
5
|
require("./use-optional-store-CIM4spDu.cjs");
|
|
@@ -52,6 +52,6 @@ require("./translation-adapter-CkgtjiOT.cjs");
|
|
|
52
52
|
require("./translation-adapter-BMvv-Nqx.cjs");
|
|
53
53
|
require("./translation-adapter-CRb5EiLL.cjs");
|
|
54
54
|
require("./ScreenHeaderContext-DI1qj4qi.cjs");
|
|
55
|
-
const require_ShopScreen = require("./ShopScreen-
|
|
55
|
+
const require_ShopScreen = require("./ShopScreen-CuvC5Bjz.cjs");
|
|
56
56
|
exports.ShopScreen = require_ShopScreen.ShopScreen;
|
|
57
57
|
exports.shopScreenPropertySchema = require_ShopScreen.shopScreenPropertySchema;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-9hOWP6kD.cjs");
|
|
2
|
-
const require_FluidProvider = require("./FluidProvider-
|
|
2
|
+
const require_FluidProvider = require("./FluidProvider-BU3BXuxS.cjs");
|
|
3
3
|
const require_use_account = require("./use-account-DKErbK5e.cjs");
|
|
4
4
|
const require_SearchSort = require("./SearchSort-jRklo0iX.cjs");
|
|
5
5
|
const require_src = require("./src-CqD5EWYF.cjs");
|
|
@@ -1095,13 +1095,15 @@ function ShopApp({ companyLogoUrl, renderImage, productId: controlledProductId,
|
|
|
1095
1095
|
const SCRIPT_ID = "fluid-cdn-script";
|
|
1096
1096
|
const LEAD_CAPTURE_ID = "fluid-lead-capture-suppress";
|
|
1097
1097
|
const DEFAULT_SCRIPT_SRC = "https://assets.fluid.app/scripts/fluid-sdk/latest/web-widgets/index.js";
|
|
1098
|
-
function CartScript({ subdomain, authJwt, bffMode, scriptSrc, apiBaseUrl, debug, country, cookieDomain }) {
|
|
1098
|
+
function CartScript({ subdomain, authJwt, bffMode, scriptSrc, apiBaseUrl, debug, country, cookieDomain, shareGuid }) {
|
|
1099
1099
|
const authJwtRef = (0, react.useRef)(authJwt);
|
|
1100
1100
|
authJwtRef.current = authJwt;
|
|
1101
1101
|
const countryRef = (0, react.useRef)(country);
|
|
1102
1102
|
countryRef.current = country;
|
|
1103
1103
|
const cookieDomainRef = (0, react.useRef)(cookieDomain);
|
|
1104
1104
|
cookieDomainRef.current = cookieDomain;
|
|
1105
|
+
const shareGuidRef = (0, react.useRef)(shareGuid);
|
|
1106
|
+
shareGuidRef.current = shareGuid;
|
|
1105
1107
|
(0, react.useEffect)(() => {
|
|
1106
1108
|
if (!subdomain) return;
|
|
1107
1109
|
if (document.getElementById(SCRIPT_ID)) return;
|
|
@@ -1117,6 +1119,7 @@ function CartScript({ subdomain, authJwt, bffMode, scriptSrc, apiBaseUrl, debug,
|
|
|
1117
1119
|
if (debug) script.dataset.debug = "true";
|
|
1118
1120
|
if (countryRef.current) script.dataset.fluidCountry = countryRef.current;
|
|
1119
1121
|
if (cookieDomainRef.current) script.dataset.fluidCookieDomain = cookieDomainRef.current;
|
|
1122
|
+
if (shareGuidRef.current) script.dataset.shareGuid = shareGuidRef.current;
|
|
1120
1123
|
document.head.appendChild(script);
|
|
1121
1124
|
const leadCapture = document.createElement("fluid-lead-capture-widget");
|
|
1122
1125
|
leadCapture.id = LEAD_CAPTURE_ID;
|
|
@@ -1265,7 +1268,7 @@ function ShopScreenContent({ background, textColor, accentColor, padding, border
|
|
|
1265
1268
|
const { config } = require_FluidProvider.useFluidContext();
|
|
1266
1269
|
const { t } = require_FluidProvider.useShopTranslation();
|
|
1267
1270
|
const { data: store } = require_use_store.useStore();
|
|
1268
|
-
const { isPending: accountPending } = require_use_account.useAccount();
|
|
1271
|
+
const { data: account, isPending: accountPending } = require_use_account.useAccount();
|
|
1269
1272
|
const { currentSlug, navigate } = require_AppNavigationContext.useAppNavigation();
|
|
1270
1273
|
const countryCode = config.countryIso ?? "US";
|
|
1271
1274
|
const subdomain = store?.subdomain;
|
|
@@ -1294,7 +1297,8 @@ function ShopScreenContent({ background, textColor, accentColor, padding, border
|
|
|
1294
1297
|
apiBaseUrl: {}.env.DEV ? String({}.env.VITE_FAIRSHARE_API_BASE_URL || "http://api.fluid.localhost:3000") : void 0,
|
|
1295
1298
|
debug: {}.env.DEV,
|
|
1296
1299
|
country: countryCode,
|
|
1297
|
-
cookieDomain: tenantHost
|
|
1300
|
+
cookieDomain: tenantHost,
|
|
1301
|
+
shareGuid: account?.share_guid ?? void 0
|
|
1298
1302
|
}) : null,
|
|
1299
1303
|
cartWidget: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CartWidget, {}),
|
|
1300
1304
|
children: [productId && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ProductBreadcrumb, { productId }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ShopApp, {
|
|
@@ -1358,4 +1362,4 @@ Object.defineProperty(exports, "shopScreenPropertySchema", {
|
|
|
1358
1362
|
}
|
|
1359
1363
|
});
|
|
1360
1364
|
|
|
1361
|
-
//# sourceMappingURL=ShopScreen-
|
|
1365
|
+
//# sourceMappingURL=ShopScreen-CuvC5Bjz.cjs.map
|