@fluid-app/portal-sdk 0.1.236 → 0.1.238

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 (41) hide show
  1. package/dist/{FluidProvider-BazvsIwu.mjs → FluidProvider-B3DjYoUW.mjs} +3 -3
  2. package/dist/{FluidProvider-BazvsIwu.mjs.map → FluidProvider-B3DjYoUW.mjs.map} +1 -1
  3. package/dist/{FluidProvider-Dxn7Ehiz.cjs → FluidProvider-DcpUKHrn.cjs} +3 -3
  4. package/dist/{FluidProvider-Dxn7Ehiz.cjs.map → FluidProvider-DcpUKHrn.cjs.map} +1 -1
  5. package/dist/{MessagingScreen-RItZgONw.mjs → MessagingScreen-BBqwXPZB.mjs} +2 -2
  6. package/dist/{MessagingScreen-RItZgONw.mjs.map → MessagingScreen-BBqwXPZB.mjs.map} +1 -1
  7. package/dist/{MessagingScreen-40YCQbX9.cjs → MessagingScreen-BzWV22JZ.cjs} +2 -2
  8. package/dist/{MessagingScreen-40YCQbX9.cjs.map → MessagingScreen-BzWV22JZ.cjs.map} +1 -1
  9. package/dist/{MessagingScreen-CrdiB4M3.cjs → MessagingScreen-CPBUg-32.cjs} +3 -3
  10. package/dist/{MySiteWidget-B0dc_7Dc.mjs → MySiteWidget-COj7yYQF.mjs} +22 -29
  11. package/dist/MySiteWidget-COj7yYQF.mjs.map +1 -0
  12. package/dist/{MySiteWidget-BkqAS0aY.cjs → MySiteWidget-DRH4q_YV.cjs} +22 -29
  13. package/dist/MySiteWidget-DRH4q_YV.cjs.map +1 -0
  14. package/dist/{ProfileScreen-CEKbhSRz.cjs → ProfileScreen-C0nmvuW1.cjs} +2 -2
  15. package/dist/{ProfileScreen-CEKbhSRz.cjs.map → ProfileScreen-C0nmvuW1.cjs.map} +1 -1
  16. package/dist/{ProfileScreen-CeD1jq89.mjs → ProfileScreen-CwQr_Km7.mjs} +2 -2
  17. package/dist/{ProfileScreen-CeD1jq89.mjs.map → ProfileScreen-CwQr_Km7.mjs.map} +1 -1
  18. package/dist/{ProfileScreen-Dex8VHSB.cjs → ProfileScreen-MCfnv8eT.cjs} +3 -3
  19. package/dist/{ShareablesScreen-Bt0E1aya.cjs → ShareablesScreen-A69L0Nok.cjs} +136 -108
  20. package/dist/ShareablesScreen-A69L0Nok.cjs.map +1 -0
  21. package/dist/{ShareablesScreen-LSyiDa6q.cjs → ShareablesScreen-BUYG-mjj.cjs} +1 -1
  22. package/dist/{ShareablesScreen-D3Hfqg9-.mjs → ShareablesScreen-sieWBlAl.mjs} +136 -108
  23. package/dist/ShareablesScreen-sieWBlAl.mjs.map +1 -0
  24. package/dist/{ShopScreen-Cgro0M1d.cjs → ShopScreen-Brw7gNMu.cjs} +3 -3
  25. package/dist/{ShopScreen-BiqZPyiB.cjs → ShopScreen-CiGozvW4.cjs} +2 -2
  26. package/dist/{ShopScreen-BiqZPyiB.cjs.map → ShopScreen-CiGozvW4.cjs.map} +1 -1
  27. package/dist/{ShopScreen-dAe71cdL.mjs → ShopScreen-D39WpS6j.mjs} +2 -2
  28. package/dist/{ShopScreen-dAe71cdL.mjs.map → ShopScreen-D39WpS6j.mjs.map} +1 -1
  29. package/dist/index.cjs +25 -15
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.cts +3 -2
  32. package/dist/index.d.cts.map +1 -1
  33. package/dist/index.d.mts +3 -2
  34. package/dist/index.d.mts.map +1 -1
  35. package/dist/index.mjs +25 -15
  36. package/dist/index.mjs.map +1 -1
  37. package/package.json +13 -13
  38. package/dist/MySiteWidget-B0dc_7Dc.mjs.map +0 -1
  39. package/dist/MySiteWidget-BkqAS0aY.cjs.map +0 -1
  40. package/dist/ShareablesScreen-Bt0E1aya.cjs.map +0 -1
  41. package/dist/ShareablesScreen-D3Hfqg9-.mjs.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./es-BXxGlAp6.mjs";
2
- import { a as createScreen, c as FluidThemeProvider, f as useAppDefinitionApi, i as widgetPropertySchemas, l as useThemeContext, m as deleteDatabase, n as useFluidContext, o as createWidgetFromShareable, p as createPersister, r as DEFAULT_SDK_WIDGET_REGISTRY, s as createWidgetRegistry, t as FluidProvider } from "./FluidProvider-BazvsIwu.mjs";
2
+ import { a as createScreen, c as FluidThemeProvider, f as useAppDefinitionApi, i as widgetPropertySchemas, l as useThemeContext, m as deleteDatabase, n as useFluidContext, o as createWidgetFromShareable, p as createPersister, r as DEFAULT_SDK_WIDGET_REGISTRY, s as createWidgetRegistry, t as FluidProvider } from "./FluidProvider-B3DjYoUW.mjs";
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-Bk23YOtN.mjs";
4
4
  import "./account-api-context-BIZ_aibJ.mjs";
5
5
  import "./store-api-context-C1lXT_3d.mjs";
@@ -25,14 +25,14 @@ import "./MediaRenderer-CqUpv3St.mjs";
25
25
  import { r as carouselWidgetPropertySchema, t as CarouselWidget } from "./CarouselWidget-CdQhlRrW.mjs";
26
26
  import { r as catchUpWidgetPropertySchema, t as CatchUpWidget } from "./CatchUpWidget-BQjtjcGR.mjs";
27
27
  import { At as CardTitle, C as Skeleton$1, Dn as Button, Dt as CardDescription, Fn as cn$1, Ot as CardFooter, _t as CollapsibleContent, gt as Collapsible, ht as PopoverTrigger, kt as CardHeader, mt as PopoverContent, pt as Popover, vt as CollapsibleTrigger, wt as Card, x as Toaster } from "./src-pgBBOcJa.mjs";
28
- import { a as useMessagingConfig, i as createFluidFileUploader, o as useMessagingAuth, r as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-RItZgONw.mjs";
28
+ import { a as useMessagingConfig, i as createFluidFileUploader, o as useMessagingAuth, r as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-BBqwXPZB.mjs";
29
29
  import { r as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-CXM2zmF7.mjs";
30
30
  import { r as chartWidgetPropertySchema, t as ChartWidget } from "./ChartWidget-obje-Xj9.mjs";
31
31
  import { r as containerWidgetPropertySchema, t as ContainerWidget } from "./ContainerWidget-DYThUtiZ.mjs";
32
32
  import { r as imageWidgetPropertySchema, t as ImageWidget } from "./ImageWidget-CFTpbu8X.mjs";
33
33
  import { r as linkWidgetPropertySchema, t as LinkWidget } from "./LinkWidget-CQHmKO-O.mjs";
34
34
  import { r as listWidgetPropertySchema, t as ListWidget } from "./ListWidget-BnyD2Hpc.mjs";
35
- import { r as mySiteWidgetPropertySchema, t as MySiteWidget } from "./MySiteWidget-B0dc_7Dc.mjs";
35
+ import { r as mySiteWidgetPropertySchema, t as MySiteWidget } from "./MySiteWidget-COj7yYQF.mjs";
36
36
  import "./scroll-arrows-CqDxJ0Pe.mjs";
37
37
  import { r as nestedWidgetPropertySchema, t as NestedWidget } from "./NestedWidget-WJoWOFda.mjs";
38
38
  import { r as pointsWidgetPropertySchema, t as PointsWidget } from "./PointsWidget-DoUljaNY.mjs";
@@ -50,7 +50,7 @@ import { i as CoreScreenPlaceholder, r as customersScreenPropertySchema, t as Cu
50
50
  import { n as useAppNavigation, t as AppNavigationProvider } from "./AppNavigationContext-Dvc0yoZF.mjs";
51
51
  import { t as useAccount } from "./use-account-C76sphlu.mjs";
52
52
  import "./fluid-pay-api-adapter-eNT8m0xB.mjs";
53
- import { r as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-CeD1jq89.mjs";
53
+ import { r as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-CwQr_Km7.mjs";
54
54
  import "./dist-PbA1vxAz.mjs";
55
55
  import { r as contactsScreenPropertySchema, t as ContactsScreen } from "./ContactsScreen-CMBERzKU.mjs";
56
56
  import "./SearchSort-CFHU38Er.mjs";
@@ -60,9 +60,9 @@ import "./order-status-badge-Dmo8lLnt.mjs";
60
60
  import { r as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-BV3vJ7xy.mjs";
61
61
  import "./sortable.esm-C8G00cCP.mjs";
62
62
  import { r as mySiteScreenPropertySchema, t as MySiteScreen } from "./MySiteScreen-CN0ZDBgy.mjs";
63
- import { r as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-D3Hfqg9-.mjs";
63
+ import { r as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-sieWBlAl.mjs";
64
64
  import "./PortalProductsApiProvider-BIZg_c4Y.mjs";
65
- import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-dAe71cdL.mjs";
65
+ import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-D39WpS6j.mjs";
66
66
  import "./UpgradeScreen-DnGnWVTf.mjs";
67
67
  import "./AppDownloadScreen-DQR40F0y.mjs";
68
68
  import * as React$1 from "react";
@@ -2072,14 +2072,14 @@ function AccountManageLayout({ children }) {
2072
2072
  }
2073
2073
  //#endregion
2074
2074
  //#region src/shell/system-screen-map.ts
2075
- const ProfileScreen$1 = lazy(() => import("./ProfileScreen-CeD1jq89.mjs").then((n) => n.n).then((m) => ({ default: m.ProfileScreen })));
2075
+ const ProfileScreen$1 = lazy(() => import("./ProfileScreen-CwQr_Km7.mjs").then((n) => n.n).then((m) => ({ default: m.ProfileScreen })));
2076
2076
  const OrdersScreen$1 = lazy(() => import("./OrdersScreen-BV3vJ7xy.mjs").then((n) => n.n).then((m) => ({ default: m.OrdersScreen })));
2077
2077
  const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-CXM2zmF7.mjs").then((n) => n.n).then((m) => ({ default: m.SubscriptionsScreen })));
2078
- const MessagingScreen$1 = lazy(() => import("./MessagingScreen-RItZgONw.mjs").then((n) => n.n).then((m) => ({ default: m.MessagingScreen })));
2078
+ const MessagingScreen$1 = lazy(() => import("./MessagingScreen-BBqwXPZB.mjs").then((n) => n.n).then((m) => ({ default: m.MessagingScreen })));
2079
2079
  const ContactsScreen$1 = lazy(() => import("./ContactsScreen-CMBERzKU.mjs").then((n) => n.n).then((m) => ({ default: m.ContactsScreen })));
2080
- const ShopScreen$1 = lazy(() => import("./ShopScreen-dAe71cdL.mjs").then((n) => n.n).then((m) => ({ default: m.ShopScreen })));
2080
+ const ShopScreen$1 = lazy(() => import("./ShopScreen-D39WpS6j.mjs").then((n) => n.n).then((m) => ({ default: m.ShopScreen })));
2081
2081
  const CustomersScreen$1 = lazy(() => import("./CustomersScreen-BJOBG5f5.mjs").then((n) => n.n).then((m) => ({ default: m.CustomersScreen })));
2082
- const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-D3Hfqg9-.mjs").then((n) => n.n).then((m) => ({ default: m.ShareablesScreen })));
2082
+ const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-sieWBlAl.mjs").then((n) => n.n).then((m) => ({ default: m.ShareablesScreen })));
2083
2083
  const MySiteScreen$1 = lazy(() => import("./MySiteScreen-CN0ZDBgy.mjs").then((n) => n.n).then((m) => ({ default: m.MySiteScreen })));
2084
2084
  const UpgradeScreen = lazy(() => import("./UpgradeScreen-DnGnWVTf.mjs").then((n) => n.t).then((m) => ({ default: m.UpgradeScreen })));
2085
2085
  const AppDownloadScreen = lazy(() => import("./AppDownloadScreen-DQR40F0y.mjs").then((n) => n.t).then((m) => ({ default: m.AppDownloadScreen })));
@@ -2103,6 +2103,16 @@ const SYSTEM_SLUG_SCREEN_MAP = {
2103
2103
  upgrade: UpgradeScreen,
2104
2104
  "app-download": AppDownloadScreen
2105
2105
  };
2106
+ /**
2107
+ * System screens that render even when not in the active navigation.
2108
+ * Account-manage destinations (profile, orders, subscriptions) are always
2109
+ * reachable so customers can manage their account regardless of nav config.
2110
+ */
2111
+ const ALWAYS_AVAILABLE_SYSTEM_SCREENS = new Set([
2112
+ ProfileScreen$1,
2113
+ OrdersScreen$1,
2114
+ SubscriptionsScreen$1
2115
+ ]);
2106
2116
  /** Pre-sorted keys for greedy prefix matching (longest first). */
2107
2117
  const SORTED_SCREEN_KEYS = Object.keys(SYSTEM_SLUG_SCREEN_MAP).sort((a, b) => b.length - a.length);
2108
2118
  /** Prefix-match a slug against screen map keys, longest match first. */
@@ -2159,7 +2169,7 @@ function PageRouter({ currentSlug, currentNavItem, customPages, screens, baseSlu
2159
2169
  });
2160
2170
  }
2161
2171
  const SystemScreen = SYSTEM_SLUG_SCREEN_MAP[baseSlug] ?? findScreenByPrefix(currentSlug);
2162
- const systemScreenInNav = navSlugs === void 0 || SystemScreen !== void 0 && isSystemScreenCoveredByNav(SystemScreen, navSlugs);
2172
+ const systemScreenInNav = navSlugs === void 0 || SystemScreen !== void 0 && (ALWAYS_AVAILABLE_SYSTEM_SCREENS.has(SystemScreen) || isSystemScreenCoveredByNav(SystemScreen, navSlugs));
2163
2173
  if (SystemScreen && systemScreenInNav) {
2164
2174
  const content = /* @__PURE__ */ jsx(Suspense, {
2165
2175
  fallback: /* @__PURE__ */ jsx("div", {
@@ -3735,15 +3745,15 @@ z.object({
3735
3745
  //#endregion
3736
3746
  //#region src/screens/index.ts
3737
3747
  const screenPropertySchemas = {
3738
- ProfileScreen: () => import("./ProfileScreen-CeD1jq89.mjs").then((n) => n.n).then((m) => m.profileScreenPropertySchema),
3739
- MessagingScreen: () => import("./MessagingScreen-RItZgONw.mjs").then((n) => n.n).then((m) => m.messagingScreenPropertySchema),
3748
+ ProfileScreen: () => import("./ProfileScreen-CwQr_Km7.mjs").then((n) => n.n).then((m) => m.profileScreenPropertySchema),
3749
+ MessagingScreen: () => import("./MessagingScreen-BBqwXPZB.mjs").then((n) => n.n).then((m) => m.messagingScreenPropertySchema),
3740
3750
  ContactsScreen: () => import("./ContactsScreen-CMBERzKU.mjs").then((n) => n.n).then((m) => m.contactsScreenPropertySchema),
3741
3751
  OrdersScreen: () => import("./OrdersScreen-BV3vJ7xy.mjs").then((n) => n.n).then((m) => m.ordersScreenPropertySchema),
3742
3752
  SubscriptionsScreen: () => import("./SubscriptionsScreen-CXM2zmF7.mjs").then((n) => n.n).then((m) => m.subscriptionsScreenPropertySchema),
3743
3753
  CustomersScreen: () => import("./CustomersScreen-BJOBG5f5.mjs").then((n) => n.n).then((m) => m.customersScreenPropertySchema),
3744
3754
  MySiteScreen: () => import("./MySiteScreen-CN0ZDBgy.mjs").then((n) => n.n).then((m) => m.mySiteScreenPropertySchema),
3745
- ShareablesScreen: () => import("./ShareablesScreen-D3Hfqg9-.mjs").then((n) => n.n).then((m) => m.shareablesScreenPropertySchema),
3746
- ShopScreen: () => import("./ShopScreen-dAe71cdL.mjs").then((n) => n.n).then((m) => m.shopScreenPropertySchema),
3755
+ ShareablesScreen: () => import("./ShareablesScreen-sieWBlAl.mjs").then((n) => n.n).then((m) => m.shareablesScreenPropertySchema),
3756
+ ShopScreen: () => import("./ShopScreen-D39WpS6j.mjs").then((n) => n.n).then((m) => m.shopScreenPropertySchema),
3747
3757
  UpgradeScreen: () => import("./UpgradeScreen-DnGnWVTf.mjs").then((n) => n.t).then((m) => m.upgradeScreenPropertySchema),
3748
3758
  AppDownloadScreen: () => import("./AppDownloadScreen-DQR40F0y.mjs").then((n) => n.t).then((m) => m.appDownloadScreenPropertySchema)
3749
3759
  };