@fluid-app/portal-sdk 0.1.450 → 0.1.452
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-BjSf_FiB.cjs → FluidProvider-BULkBuyn.cjs} +121 -28
- package/dist/FluidProvider-BULkBuyn.cjs.map +1 -0
- package/dist/{FluidProvider-CXqSq1iX.mjs → FluidProvider-CA_HAl9a.mjs} +116 -29
- package/dist/FluidProvider-CA_HAl9a.mjs.map +1 -0
- package/dist/{MessagingScreen-Ck5kiA-O.mjs → MessagingScreen-BdsSr7l4.mjs} +2 -2
- package/dist/{MessagingScreen-NdUsPc_N.cjs → MessagingScreen-CApfcPd5.cjs} +2 -2
- package/dist/{MessagingScreen-NdUsPc_N.cjs.map → MessagingScreen-CApfcPd5.cjs.map} +1 -1
- package/dist/{MessagingScreen-CtMw_Wp3.mjs → MessagingScreen-Cf0OOWZ5.mjs} +2 -2
- package/dist/{MessagingScreen-CtMw_Wp3.mjs.map → MessagingScreen-Cf0OOWZ5.mjs.map} +1 -1
- package/dist/{MessagingScreen-BAl4Hg2w.cjs → MessagingScreen-N3CiZ807.cjs} +2 -2
- package/dist/{OrdersScreen-B3sEroyv.mjs → OrdersScreen-BPihQMaX.mjs} +2 -2
- package/dist/{OrdersScreen-B3sEroyv.mjs.map → OrdersScreen-BPihQMaX.mjs.map} +1 -1
- package/dist/{OrdersScreen-iCm9w3Kz.cjs → OrdersScreen-CgU8hdeD.cjs} +2 -2
- package/dist/{OrdersScreen-Dz_rz68P.mjs → OrdersScreen-Cv-qovZG.mjs} +2 -2
- package/dist/{OrdersScreen-CNCGv-jL.cjs → OrdersScreen-DEv_TOuP.cjs} +2 -2
- package/dist/{OrdersScreen-CNCGv-jL.cjs.map → OrdersScreen-DEv_TOuP.cjs.map} +1 -1
- package/dist/{ProfileScreen--xpXB--h.mjs → ProfileScreen-3gbdDTy0.mjs} +3 -3
- package/dist/{ProfileScreen-DD8HaCNH.mjs → ProfileScreen-BdzjBeMm.mjs} +4 -4
- package/dist/ProfileScreen-BdzjBeMm.mjs.map +1 -0
- package/dist/{ProfileScreen-CCVbDYek.cjs → ProfileScreen-Cs3B8vfS.cjs} +4 -4
- package/dist/ProfileScreen-Cs3B8vfS.cjs.map +1 -0
- package/dist/{ProfileScreen-Ce8jwoAg.cjs → ProfileScreen-cCOWdo-G.cjs} +3 -3
- package/dist/{ShopScreen-DsKCSRzS.mjs → ShopScreen-BQu3Hv89.mjs} +2 -2
- package/dist/{ShopScreen-DsKCSRzS.mjs.map → ShopScreen-BQu3Hv89.mjs.map} +1 -1
- package/dist/{ShopScreen-Cm-B46dF.cjs → ShopScreen-DqdBdkjS.cjs} +2 -2
- package/dist/{ShopScreen-Cm-B46dF.cjs.map → ShopScreen-DqdBdkjS.cjs.map} +1 -1
- package/dist/{ShopScreen-B9xABYoy.mjs → ShopScreen-eC3clAjp.mjs} +2 -2
- package/dist/{ShopScreen-CRVZOMY5.cjs → ShopScreen-lyjY8yxm.cjs} +2 -2
- package/dist/{SubscriptionsScreen-D1qYFGmN.cjs → SubscriptionsScreen-CYCQcYMB.cjs} +3 -3
- package/dist/{SubscriptionsScreen-C17iAZ_N.mjs → SubscriptionsScreen-Db9gI6D6.mjs} +3 -3
- package/dist/{SubscriptionsScreen-DhxSxQ43.cjs → SubscriptionsScreen-aaF2B1qD.cjs} +3 -3
- package/dist/{SubscriptionsScreen-DhxSxQ43.cjs.map → SubscriptionsScreen-aaF2B1qD.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-IWNnfQ36.mjs → SubscriptionsScreen-bCXc9Bqn.mjs} +3 -3
- package/dist/{SubscriptionsScreen-IWNnfQ36.mjs.map → SubscriptionsScreen-bCXc9Bqn.mjs.map} +1 -1
- package/dist/index.cjs +34 -22
- 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 +34 -22
- package/dist/index.mjs.map +1 -1
- package/dist/{use-portal-card-add-3ds-flow-Ch7FwzUp.cjs → use-portal-card-add-3ds-flow-1JkstOR0.cjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-Ch7FwzUp.cjs.map → use-portal-card-add-3ds-flow-1JkstOR0.cjs.map} +1 -1
- package/dist/{use-portal-card-add-3ds-flow-hgln6QRL.mjs → use-portal-card-add-3ds-flow-DueNr2yx.mjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-hgln6QRL.mjs.map → use-portal-card-add-3ds-flow-DueNr2yx.mjs.map} +1 -1
- package/package.json +16 -16
- package/dist/FluidProvider-BjSf_FiB.cjs.map +0 -1
- package/dist/FluidProvider-CXqSq1iX.mjs.map +0 -1
- package/dist/ProfileScreen-CCVbDYek.cjs.map +0 -1
- package/dist/ProfileScreen-DD8HaCNH.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { A as DEFAULT_COLORS, B as getForegroundColor, C as removeAllThemes, D a
|
|
|
3
3
|
import { a as assertNever, i as assertDefined, n as DataAwareWidget, o as isWidgetType, r as WIDGET_TYPE_NAMES, s as isWidgetTypeName, u as useRegistry } from "./ScreenRenderer-BQz-1cCn.mjs";
|
|
4
4
|
import { t as useAccount } from "./use-account-DR6HXMw_.mjs";
|
|
5
5
|
import "./use-optional-store-DpB_jK4Q.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { g as useNativeCapabilities, h as useThemeContext, m as FluidThemeProvider, n as useFluidContext, p as shellEn, r as SUPPORTED_LANGUAGES, t as FluidProvider, x as useLanguagesApi } from "./FluidProvider-CA_HAl9a.mjs";
|
|
7
7
|
import "./mysite-api-context-BbxSfNft.mjs";
|
|
8
8
|
import "./ContactsTranslationBridge-DCSWCdyq.mjs";
|
|
9
9
|
import { i as useIsMobile, r as contactsScreenPropertySchema, t as ContactsScreen } from "./ContactsScreen-DjMBu144.mjs";
|
|
@@ -36,8 +36,8 @@ import "./MediaRenderer-DflyyaXq.mjs";
|
|
|
36
36
|
import { r as carouselWidgetPropertySchema, t as CarouselWidget } from "./CarouselWidget-DEyRWj_S.mjs";
|
|
37
37
|
import { r as catchUpWidgetPropertySchema, t as CatchUpWidget } from "./CatchUpWidget-dROZKeGW.mjs";
|
|
38
38
|
import { Cn as Button, Ln as cn$1, N as IconButton, ct as PopoverContent, dt as CollapsibleContent, ft as CollapsibleTrigger, g as Skeleton$1, lt as PopoverTrigger, m as Toaster, st as Popover, ut as Collapsible } from "./src-v1U7mjgR.mjs";
|
|
39
|
-
import { i as useMessagingAuth, n as messagingScreenPropertySchema, r as useMessagingConfig, t as MessagingScreen } from "./MessagingScreen-
|
|
40
|
-
import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-
|
|
39
|
+
import { i as useMessagingAuth, n as messagingScreenPropertySchema, r as useMessagingConfig, t as MessagingScreen } from "./MessagingScreen-Cf0OOWZ5.mjs";
|
|
40
|
+
import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-bCXc9Bqn.mjs";
|
|
41
41
|
import { r as chartWidgetPropertySchema, t as ChartWidget } from "./ChartWidget-LcbtV1uD.mjs";
|
|
42
42
|
import { r as containerWidgetPropertySchema, t as ContainerWidget } from "./ContainerWidget-bbzSrNUJ.mjs";
|
|
43
43
|
import { r as embedWidgetPropertySchema, t as EmbedWidget } from "./EmbedWidget-EjCuOFOz.mjs";
|
|
@@ -64,17 +64,17 @@ import { i as useScreenHeaderSlotRefs, r as ScreenHeaderProvider } from "./Scree
|
|
|
64
64
|
import { a as FallbackCard, i as CoreScreenPlaceholder, r as customersScreenPropertySchema, t as CustomersScreen } from "./CustomersScreen-95_LKw0d.mjs";
|
|
65
65
|
import { a as memberTypeSlug, i as memberTypeName, n as deniesRepSurfaces, r as hasMemberPermission, t as canAccessRepSurfaces } from "./member-permissions-B5en48uH.mjs";
|
|
66
66
|
import { a as implementPortalFunction } from "./portal-function-DiozZloV.mjs";
|
|
67
|
-
import "./use-portal-card-add-3ds-flow-
|
|
67
|
+
import "./use-portal-card-add-3ds-flow-DueNr2yx.mjs";
|
|
68
68
|
import "./display-nScoMx87.mjs";
|
|
69
69
|
import "./use-mysite-portal-B1lFZMl2.mjs";
|
|
70
|
-
import { n as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-
|
|
70
|
+
import { n as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-BdzjBeMm.mjs";
|
|
71
71
|
import "./dist-CBZLrT5S.mjs";
|
|
72
72
|
import "./es-B3I_oMk-.mjs";
|
|
73
73
|
import "./dist-CU-tsJ00.mjs";
|
|
74
|
-
import { n as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-
|
|
74
|
+
import { n as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-BPihQMaX.mjs";
|
|
75
75
|
import { r as mySiteScreenPropertySchema, t as MySiteScreen } from "./MySiteScreen-CJ9CD896.mjs";
|
|
76
76
|
import "./sortable.esm-B6B4nWkF.mjs";
|
|
77
|
-
import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-
|
|
77
|
+
import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-BQu3Hv89.mjs";
|
|
78
78
|
import "./AppDownloadScreen-OiFZo-I_.mjs";
|
|
79
79
|
import { buildRemoteWidgetPluginManifests } from "./utils/build-remote-widget-plugin-manifests.mjs";
|
|
80
80
|
import * as React$1 from "react";
|
|
@@ -1223,24 +1223,35 @@ function SdkBottomNav({ navItems, currentSlug, onNavigate, appDefinitionId = 0,
|
|
|
1223
1223
|
const { isMobile, useBottomNav } = useSidebar();
|
|
1224
1224
|
const shellApi = useShellTranslation();
|
|
1225
1225
|
const { t } = shellApi;
|
|
1226
|
+
const nativeCapabilities = useNativeCapabilities();
|
|
1226
1227
|
const [moreOpen, setMoreOpen] = React$1.useState(false);
|
|
1227
1228
|
if (!isMobile || !useBottomNav) return null;
|
|
1228
1229
|
const navigableItems = navItems.filter((item) => !item.parent_id).filter((item) => item.slug || item.children && item.children.length > 0);
|
|
1229
1230
|
const hasOverflow = navigableItems.length > maxVisibleItems;
|
|
1230
1231
|
const visibleItems = hasOverflow ? navigableItems.slice(0, maxVisibleItems - 1) : navigableItems;
|
|
1231
1232
|
const overflowItems = hasOverflow ? navigableItems.slice(maxVisibleItems - 1) : [];
|
|
1233
|
+
const overflowIsActive = overflowItems.some((item) => isInSection(item, currentSlug));
|
|
1232
1234
|
const handleItemClick = (item) => {
|
|
1233
1235
|
const target = getNavigationTarget(item, appDefinitionId);
|
|
1234
|
-
if (target)
|
|
1236
|
+
if (target) {
|
|
1237
|
+
nativeCapabilities.haptic("light");
|
|
1238
|
+
onNavigate(target);
|
|
1239
|
+
}
|
|
1235
1240
|
setMoreOpen(false);
|
|
1236
1241
|
};
|
|
1242
|
+
const handleMoreClick = () => {
|
|
1243
|
+
nativeCapabilities.haptic("light");
|
|
1244
|
+
setMoreOpen(true);
|
|
1245
|
+
};
|
|
1237
1246
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("nav", {
|
|
1238
|
-
className: "border-border bg-sidebar fixed right-0 bottom-0 left-0 z-40 flex h-[calc(3.5rem+env(safe-area-inset-bottom))] items-
|
|
1247
|
+
className: "border-border bg-sidebar fixed right-0 bottom-0 left-0 z-40 flex h-[calc(3.5rem+env(safe-area-inset-bottom))] items-start justify-around border-t pb-[env(safe-area-inset-bottom)]",
|
|
1239
1248
|
children: [visibleItems.map((item) => {
|
|
1249
|
+
const isActive = isInSection(item, currentSlug);
|
|
1240
1250
|
return /* @__PURE__ */ jsxs("button", {
|
|
1241
1251
|
type: "button",
|
|
1242
1252
|
onClick: () => handleItemClick(item),
|
|
1243
|
-
|
|
1253
|
+
"aria-current": isActive ? "page" : void 0,
|
|
1254
|
+
className: `flex h-14 flex-1 touch-manipulation flex-col items-center justify-center gap-0.5 pt-2 pb-1 text-[10px] font-medium transition-[color,transform] duration-150 active:scale-95 ${isActive ? "text-primary" : "text-muted-foreground"}`,
|
|
1244
1255
|
children: [/* @__PURE__ */ jsx(RepIcon, {
|
|
1245
1256
|
name: item.icon || "file",
|
|
1246
1257
|
className: "size-5"
|
|
@@ -1251,8 +1262,9 @@ function SdkBottomNav({ navItems, currentSlug, onNavigate, appDefinitionId = 0,
|
|
|
1251
1262
|
}, item.id ?? item.slug ?? item.label);
|
|
1252
1263
|
}), hasOverflow && /* @__PURE__ */ jsxs("button", {
|
|
1253
1264
|
type: "button",
|
|
1254
|
-
onClick:
|
|
1255
|
-
|
|
1265
|
+
onClick: handleMoreClick,
|
|
1266
|
+
"aria-current": overflowIsActive ? "page" : void 0,
|
|
1267
|
+
className: `flex h-14 flex-1 touch-manipulation flex-col items-center justify-center gap-0.5 pt-2 pb-1 text-[10px] font-medium transition-[color,transform] duration-150 active:scale-95 ${overflowIsActive ? "text-primary" : "text-muted-foreground"}`,
|
|
1256
1268
|
children: [/* @__PURE__ */ jsx(Ellipsis, { className: "size-5" }), /* @__PURE__ */ jsx("span", { children: t("nav_more") })]
|
|
1257
1269
|
})]
|
|
1258
1270
|
}), /* @__PURE__ */ jsx(MobileBottomSheet, {
|
|
@@ -1852,12 +1864,12 @@ function resolveMemberTypePage(registry, memberTypeSlug, currentSlug, baseSlug)
|
|
|
1852
1864
|
}
|
|
1853
1865
|
//#endregion
|
|
1854
1866
|
//#region src/shell/system-screen-map.ts
|
|
1855
|
-
const ProfileScreen$1 = lazy(() => import("./ProfileScreen
|
|
1856
|
-
const OrdersScreen$1 = lazy(() => import("./OrdersScreen-
|
|
1857
|
-
const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-
|
|
1858
|
-
const MessagingScreen$1 = lazy(() => import("./MessagingScreen-
|
|
1867
|
+
const ProfileScreen$1 = lazy(() => import("./ProfileScreen-3gbdDTy0.mjs").then((m) => ({ default: m.ProfileScreen })));
|
|
1868
|
+
const OrdersScreen$1 = lazy(() => import("./OrdersScreen-Cv-qovZG.mjs").then((m) => ({ default: m.OrdersScreen })));
|
|
1869
|
+
const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-Db9gI6D6.mjs").then((m) => ({ default: m.SubscriptionsScreen })));
|
|
1870
|
+
const MessagingScreen$1 = lazy(() => import("./MessagingScreen-BdsSr7l4.mjs").then((m) => ({ default: m.MessagingScreen })));
|
|
1859
1871
|
const ContactsScreen$1 = lazy(() => import("./ContactsScreen-DjMBu144.mjs").then((n) => n.n).then((m) => ({ default: m.ContactsScreen })));
|
|
1860
|
-
const ShopScreen$1 = lazy(() => import("./ShopScreen-
|
|
1872
|
+
const ShopScreen$1 = lazy(() => import("./ShopScreen-eC3clAjp.mjs").then((m) => ({ default: m.ShopScreen })));
|
|
1861
1873
|
const CustomersScreen$1 = lazy(() => import("./CustomersScreen-95_LKw0d.mjs").then((n) => n.n).then((m) => ({ default: m.CustomersScreen })));
|
|
1862
1874
|
const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-ClWi9ctd.mjs").then((m) => ({ default: m.ShareablesScreen })));
|
|
1863
1875
|
const MySiteScreen$1 = lazy(() => import("./MySiteScreen-CJ9CD896.mjs").then((n) => n.n).then((m) => ({ default: m.MySiteScreen })));
|
|
@@ -3765,15 +3777,15 @@ const CORE_PAGE_IDS = {
|
|
|
3765
3777
|
//#endregion
|
|
3766
3778
|
//#region src/screens/index.ts
|
|
3767
3779
|
const screenPropertySchemas = {
|
|
3768
|
-
ProfileScreen: () => import("./ProfileScreen
|
|
3769
|
-
MessagingScreen: () => import("./MessagingScreen-
|
|
3780
|
+
ProfileScreen: () => import("./ProfileScreen-3gbdDTy0.mjs").then((m) => m.profileScreenPropertySchema),
|
|
3781
|
+
MessagingScreen: () => import("./MessagingScreen-BdsSr7l4.mjs").then((m) => m.messagingScreenPropertySchema),
|
|
3770
3782
|
ContactsScreen: () => import("./ContactsScreen-DjMBu144.mjs").then((n) => n.n).then((m) => m.contactsScreenPropertySchema),
|
|
3771
|
-
OrdersScreen: () => import("./OrdersScreen-
|
|
3772
|
-
SubscriptionsScreen: () => import("./SubscriptionsScreen-
|
|
3783
|
+
OrdersScreen: () => import("./OrdersScreen-Cv-qovZG.mjs").then((m) => m.ordersScreenPropertySchema),
|
|
3784
|
+
SubscriptionsScreen: () => import("./SubscriptionsScreen-Db9gI6D6.mjs").then((m) => m.subscriptionsScreenPropertySchema),
|
|
3773
3785
|
CustomersScreen: () => import("./CustomersScreen-95_LKw0d.mjs").then((n) => n.n).then((m) => m.customersScreenPropertySchema),
|
|
3774
3786
|
MySiteScreen: () => import("./MySiteScreen-CJ9CD896.mjs").then((n) => n.n).then((m) => m.mySiteScreenPropertySchema),
|
|
3775
3787
|
ShareablesScreen: () => import("./ShareablesScreen-ClWi9ctd.mjs").then((m) => m.shareablesScreenPropertySchema),
|
|
3776
|
-
ShopScreen: () => import("./ShopScreen-
|
|
3788
|
+
ShopScreen: () => import("./ShopScreen-eC3clAjp.mjs").then((m) => m.shopScreenPropertySchema),
|
|
3777
3789
|
AppDownloadScreen: () => import("./AppDownloadScreen-OiFZo-I_.mjs").then((n) => n.t).then((m) => m.appDownloadScreenPropertySchema)
|
|
3778
3790
|
};
|
|
3779
3791
|
/**
|