@fluid-app/portal-sdk 0.1.280 → 0.1.281
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/{ContactsScreen-D42uVkfI.mjs → ContactsScreen-CMETL0o1.mjs} +33 -36
- package/dist/ContactsScreen-CMETL0o1.mjs.map +1 -0
- package/dist/{ContactsScreen-CVUFwHD0.cjs → ContactsScreen-CNM9nqb1.cjs} +33 -36
- package/dist/ContactsScreen-CNM9nqb1.cjs.map +1 -0
- package/dist/{ContactsScreen-BWgTp9z6.cjs → ContactsScreen-CZLLBgUB.cjs} +2 -2
- package/dist/{MessagingScreen-ihaUzGp0.mjs → MessagingScreen-BvVhwvm8.mjs} +2 -2
- package/dist/{MessagingScreen-CE8MTQxn.cjs → MessagingScreen-C3yCIWo4.cjs} +41 -62
- package/dist/MessagingScreen-C3yCIWo4.cjs.map +1 -0
- package/dist/{MessagingScreen-r73abdKa.mjs → MessagingScreen-C7W5-K1N.mjs} +41 -62
- package/dist/{MessagingScreen-r73abdKa.mjs.map → MessagingScreen-C7W5-K1N.mjs.map} +1 -1
- package/dist/{MessagingScreen-DIbrm4HW.cjs → MessagingScreen-sc1u2IwX.cjs} +2 -2
- package/dist/{MySiteScreen-B1_Xx5-L.cjs → MySiteScreen-BiRsdk3F.cjs} +5 -10
- package/dist/MySiteScreen-BiRsdk3F.cjs.map +1 -0
- package/dist/{MySiteScreen-Dx8wYdv3.mjs → MySiteScreen-CfCr1_w0.mjs} +5 -10
- package/dist/{MySiteScreen-Dx8wYdv3.mjs.map → MySiteScreen-CfCr1_w0.mjs.map} +1 -1
- package/dist/{MySiteScreen-CFyr06DP.cjs → MySiteScreen-D2ivRa2e.cjs} +2 -2
- package/dist/{OrdersScreen-RNTW7SCI.mjs → OrdersScreen-BCFfxurP.mjs} +2 -2
- package/dist/{OrdersScreen-BQKy-1vC.cjs → OrdersScreen-CSkiK7j8.cjs} +13 -15
- package/dist/OrdersScreen-CSkiK7j8.cjs.map +1 -0
- package/dist/{OrdersScreen-C-32UkcG.cjs → OrdersScreen-DOCdTWOx.cjs} +2 -2
- package/dist/{OrdersScreen-9wp4AWDC.mjs → OrdersScreen-NzGaufXO.mjs} +13 -15
- package/dist/OrdersScreen-NzGaufXO.mjs.map +1 -0
- package/dist/{ProfileScreen-OZZ9Zcab.mjs → ProfileScreen-CkRFE_jb.mjs} +5 -6
- package/dist/{ProfileScreen-OZZ9Zcab.mjs.map → ProfileScreen-CkRFE_jb.mjs.map} +1 -1
- package/dist/{ProfileScreen-BdMZsorI.mjs → ProfileScreen-Cm4WZ54w.mjs} +2 -2
- package/dist/{ProfileScreen-BvIfbjnw.cjs → ProfileScreen-Dacb369p.cjs} +5 -6
- package/dist/ProfileScreen-Dacb369p.cjs.map +1 -0
- package/dist/{ProfileScreen-BrdjkmQd.cjs → ProfileScreen-zzk5SGP5.cjs} +2 -2
- package/dist/ScreenHeaderContext-CsfhnuJk.cjs +86 -0
- package/dist/ScreenHeaderContext-CsfhnuJk.cjs.map +1 -0
- package/dist/ScreenHeaderContext-Dn12BZyj.mjs +62 -0
- package/dist/ScreenHeaderContext-Dn12BZyj.mjs.map +1 -0
- package/dist/{ShareablesScreen-BP1Ed_Sv.cjs → ShareablesScreen-BwFmwYNG.cjs} +2 -2
- package/dist/{ShareablesScreen-DwxcReCu.cjs → ShareablesScreen-C6pCPvmx.cjs} +1101 -1144
- package/dist/ShareablesScreen-C6pCPvmx.cjs.map +1 -0
- package/dist/{ShareablesScreen-tq0taJJe.mjs → ShareablesScreen-kr2RL4FN.mjs} +2 -2
- package/dist/{ShareablesScreen-C5ZRdX-y.mjs → ShareablesScreen-uMQYLpTv.mjs} +1101 -1144
- package/dist/ShareablesScreen-uMQYLpTv.mjs.map +1 -0
- package/dist/{ShopScreen-B-OBQ2S7.mjs → ShopScreen-BqDNPM7i.mjs} +36 -47
- package/dist/{ShopScreen-B-OBQ2S7.mjs.map → ShopScreen-BqDNPM7i.mjs.map} +1 -1
- package/dist/{ShopScreen-Cn94XVxx.mjs → ShopScreen-CpCBdW0Z.mjs} +2 -2
- package/dist/{ShopScreen-zdvCwxBT.cjs → ShopScreen-DRnPRtV7.cjs} +36 -47
- package/dist/ShopScreen-DRnPRtV7.cjs.map +1 -0
- package/dist/{ShopScreen-CQDkeQrR.cjs → ShopScreen-SN91S9Ao.cjs} +2 -2
- package/dist/{SubscriptionsScreen-CRHHXzrB.cjs → SubscriptionsScreen-D4C8a7-e.cjs} +13 -15
- package/dist/SubscriptionsScreen-D4C8a7-e.cjs.map +1 -0
- package/dist/{SubscriptionsScreen-Dx7Evic_.mjs → SubscriptionsScreen-DCeby11T.mjs} +13 -15
- package/dist/SubscriptionsScreen-DCeby11T.mjs.map +1 -0
- package/dist/{SubscriptionsScreen-DH10SUZK.cjs → SubscriptionsScreen-DzwK-Sck.cjs} +2 -2
- package/dist/index.cjs +35 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +35 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +18 -18
- package/dist/ContactsScreen-CVUFwHD0.cjs.map +0 -1
- package/dist/ContactsScreen-D42uVkfI.mjs.map +0 -1
- package/dist/MessagingScreen-CE8MTQxn.cjs.map +0 -1
- package/dist/MySiteScreen-B1_Xx5-L.cjs.map +0 -1
- package/dist/OrdersScreen-9wp4AWDC.mjs.map +0 -1
- package/dist/OrdersScreen-BQKy-1vC.cjs.map +0 -1
- package/dist/ProfileScreen-BvIfbjnw.cjs.map +0 -1
- package/dist/ScreenHeaderContext-BDjNSUfr.mjs +0 -85
- package/dist/ScreenHeaderContext-BDjNSUfr.mjs.map +0 -1
- package/dist/ScreenHeaderContext-PbjwAMeB.cjs +0 -109
- package/dist/ScreenHeaderContext-PbjwAMeB.cjs.map +0 -1
- package/dist/ShareablesScreen-C5ZRdX-y.mjs.map +0 -1
- package/dist/ShareablesScreen-DwxcReCu.cjs.map +0 -1
- package/dist/ShopScreen-zdvCwxBT.cjs.map +0 -1
- package/dist/SubscriptionsScreen-CRHHXzrB.cjs.map +0 -1
- package/dist/SubscriptionsScreen-Dx7Evic_.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as useFluidContext } from "./FluidProvider-DIE1VH2Z.mjs";
|
|
2
2
|
import { n as useActiveLocale } from "./locale-context-BbdKe_Fj.mjs";
|
|
3
3
|
import { B as DropdownMenuContent, C as SelectContent, D as RadioGroup, E as SelectValue, G as DropdownMenuSeparator, H as DropdownMenuLabel, O as RadioGroupItem, S as Select, T as SelectTrigger, U as DropdownMenuRadioGroup, W as DropdownMenuRadioItem, Y as DropdownMenuTrigger, an as BreadcrumbLink, cn as BreadcrumbSeparator, gt as Card, h as Skeleton, in as BreadcrumbItem, on as BreadcrumbList, rn as Breadcrumb, sn as BreadcrumbPage, vn as Button, w as SelectItem, z as DropdownMenu } from "./src-Dk1FJOX0.mjs";
|
|
4
|
-
import { n as
|
|
4
|
+
import { n as ScreenHeaderBreadcrumbs, t as ScreenHeaderActions } from "./ScreenHeaderContext-Dn12BZyj.mjs";
|
|
5
5
|
import { t as useStore } from "./use-store-BnHhQDYo.mjs";
|
|
6
6
|
import { n as useAppNavigation } from "./AppNavigationContext-DNomMUij.mjs";
|
|
7
7
|
import { i as createTranslationContext, n as createDomainTranslations, r as useDomainDict, t as createStaticDictAdapter } from "./static-dict-adapter-BGSA0IiX.mjs";
|
|
@@ -1176,25 +1176,6 @@ function ShopScreenContent({ background, textColor, accentColor, padding, border
|
|
|
1176
1176
|
const countryCode = config.countryIso ?? "US";
|
|
1177
1177
|
const subdomain = store?.subdomain;
|
|
1178
1178
|
const productId = currentSlug.split("/")[1] ?? null;
|
|
1179
|
-
useScreenHeaderBreadcrumbs(useMemo(() => /* @__PURE__ */ jsx(Breadcrumb, { children: /* @__PURE__ */ jsx(BreadcrumbList, {
|
|
1180
|
-
className: "text-lg",
|
|
1181
|
-
children: /* @__PURE__ */ jsx(BreadcrumbItem, { children: productId ? /* @__PURE__ */ jsx(BreadcrumbLink, {
|
|
1182
|
-
onClick: () => navigate("shop"),
|
|
1183
|
-
className: "cursor-pointer font-semibold",
|
|
1184
|
-
children: t("breadcrumb")
|
|
1185
|
-
}) : /* @__PURE__ */ jsx(BreadcrumbPage, {
|
|
1186
|
-
className: "font-semibold",
|
|
1187
|
-
children: t("breadcrumb")
|
|
1188
|
-
}) })
|
|
1189
|
-
}) }), [
|
|
1190
|
-
productId,
|
|
1191
|
-
navigate,
|
|
1192
|
-
t
|
|
1193
|
-
]));
|
|
1194
|
-
useScreenHeaderActions(useMemo(() => /* @__PURE__ */ jsx("div", {
|
|
1195
|
-
className: "flex items-center gap-4",
|
|
1196
|
-
children: /* @__PURE__ */ jsx(CartButton, {})
|
|
1197
|
-
}), []));
|
|
1198
1179
|
useEffect(() => {
|
|
1199
1180
|
if (!countryCode) return;
|
|
1200
1181
|
const sdk = () => window.FairShareSDK;
|
|
@@ -1227,26 +1208,39 @@ function ShopScreenContent({ background, textColor, accentColor, padding, border
|
|
|
1227
1208
|
clearInterval(id);
|
|
1228
1209
|
};
|
|
1229
1210
|
}, [countryCode]);
|
|
1230
|
-
return /* @__PURE__ */
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1211
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
1212
|
+
!productId && /* @__PURE__ */ jsx(ScreenHeaderBreadcrumbs, { children: /* @__PURE__ */ jsx(Breadcrumb, { children: /* @__PURE__ */ jsx(BreadcrumbList, {
|
|
1213
|
+
className: "text-lg",
|
|
1214
|
+
children: /* @__PURE__ */ jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsx(BreadcrumbPage, {
|
|
1215
|
+
className: "font-semibold",
|
|
1216
|
+
children: t("breadcrumb")
|
|
1217
|
+
}) })
|
|
1218
|
+
}) }) }),
|
|
1219
|
+
/* @__PURE__ */ jsx(ScreenHeaderActions, { children: /* @__PURE__ */ jsx("div", {
|
|
1220
|
+
className: "flex items-center gap-4",
|
|
1221
|
+
children: /* @__PURE__ */ jsx(CartButton, {})
|
|
1222
|
+
}) }),
|
|
1223
|
+
/* @__PURE__ */ jsx("div", {
|
|
1224
|
+
...divProps,
|
|
1225
|
+
className: divProps.className ?? "",
|
|
1226
|
+
children: /* @__PURE__ */ jsx(ShopContainer, {
|
|
1227
|
+
cartScript: subdomain ? /* @__PURE__ */ jsx(CartScript, {
|
|
1228
|
+
subdomain,
|
|
1229
|
+
bffMode: true,
|
|
1230
|
+
scriptSrc: import.meta.env.DEV ? String(import.meta.env.VITE_FAIRSHARE_SDK_URL || "http://localhost:4444/index.js") : void 0,
|
|
1231
|
+
apiBaseUrl: import.meta.env.DEV ? String(import.meta.env.VITE_FAIRSHARE_API_BASE_URL || "http://api.fluid.localhost:3000") : void 0,
|
|
1232
|
+
debug: import.meta.env.DEV
|
|
1233
|
+
}) : null,
|
|
1234
|
+
cartWidget: /* @__PURE__ */ jsx(CartWidget, {}),
|
|
1235
|
+
children: /* @__PURE__ */ jsxs(PortalProductsApiProvider, { children: [productId && /* @__PURE__ */ jsx(ProductBreadcrumb, { productId }), /* @__PURE__ */ jsx(ShopApp, {
|
|
1236
|
+
companyLogoUrl: store?.logo_url ?? void 0,
|
|
1237
|
+
productId,
|
|
1238
|
+
onSelectProduct: (id) => navigate(`shop/${id}`),
|
|
1239
|
+
onBack: () => navigate("shop")
|
|
1240
|
+
})] })
|
|
1241
|
+
})
|
|
1248
1242
|
})
|
|
1249
|
-
});
|
|
1243
|
+
] });
|
|
1250
1244
|
}
|
|
1251
1245
|
const shopScreenPropertySchema = {
|
|
1252
1246
|
widgetType: "ShopScreen",
|
|
@@ -1267,7 +1261,7 @@ function ProductBreadcrumb({ productId }) {
|
|
|
1267
1261
|
const { t } = useShopTranslation();
|
|
1268
1262
|
const { product } = usePortalProductDetail({ productId });
|
|
1269
1263
|
const productName = product?.name ?? t("product_fallback_name");
|
|
1270
|
-
|
|
1264
|
+
return /* @__PURE__ */ jsx(ScreenHeaderBreadcrumbs, { children: /* @__PURE__ */ jsx(Breadcrumb, { children: /* @__PURE__ */ jsxs(BreadcrumbList, {
|
|
1271
1265
|
className: "text-lg",
|
|
1272
1266
|
children: [
|
|
1273
1267
|
/* @__PURE__ */ jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsx(BreadcrumbLink, {
|
|
@@ -1281,14 +1275,9 @@ function ProductBreadcrumb({ productId }) {
|
|
|
1281
1275
|
children: productName
|
|
1282
1276
|
}) })
|
|
1283
1277
|
]
|
|
1284
|
-
}) })
|
|
1285
|
-
productName,
|
|
1286
|
-
navigate,
|
|
1287
|
-
t
|
|
1288
|
-
]));
|
|
1289
|
-
return null;
|
|
1278
|
+
}) }) });
|
|
1290
1279
|
}
|
|
1291
1280
|
//#endregion
|
|
1292
1281
|
export { shopScreenPropertySchema as n, ShopScreen as t };
|
|
1293
1282
|
|
|
1294
|
-
//# sourceMappingURL=ShopScreen-
|
|
1283
|
+
//# sourceMappingURL=ShopScreen-BqDNPM7i.mjs.map
|