@fluid-app/portal-sdk 0.1.325 → 0.1.327

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/index.cjs CHANGED
@@ -2164,15 +2164,11 @@ const SYSTEM_SLUG_SCREEN_MAP = {
2164
2164
  "app-download": AppDownloadScreen
2165
2165
  };
2166
2166
  /**
2167
- * System screens that render even when not in the active navigation.
2168
- * Account-manage destinations (profile, orders, subscriptions) are always
2169
- * reachable so customers can manage their account regardless of nav config.
2167
+ * System screens that a portal must opt into by adding them to its active
2168
+ * navigation. Every other system screen is reachable by default; these two
2169
+ * only render when their nav slug is present.
2170
2170
  */
2171
- const ALWAYS_AVAILABLE_SYSTEM_SCREENS = new Set([
2172
- ProfileScreen$1,
2173
- OrdersScreen$1,
2174
- SubscriptionsScreen$1
2175
- ]);
2171
+ const OPT_IN_SYSTEM_SCREENS = new Set([MessagingScreen$1, ContactsScreen$1]);
2176
2172
  /** Pre-sorted keys for greedy prefix matching (longest first). */
2177
2173
  const SORTED_SCREEN_KEYS = Object.keys(SYSTEM_SLUG_SCREEN_MAP).sort((a, b) => b.length - a.length);
2178
2174
  /** Prefix-match a slug against screen map keys, longest match first. */
@@ -2235,7 +2231,7 @@ function PageRouter({ currentSlug, currentNavItem, customPages, screens, baseSlu
2235
2231
  });
2236
2232
  }
2237
2233
  const SystemScreen = SYSTEM_SLUG_SCREEN_MAP[baseSlug] ?? findScreenByPrefix(currentSlug);
2238
- const systemScreenInNav = navSlugs === void 0 || SystemScreen !== void 0 && (ALWAYS_AVAILABLE_SYSTEM_SCREENS.has(SystemScreen) || isSystemScreenCoveredByNav(SystemScreen, navSlugs));
2234
+ const systemScreenInNav = navSlugs === void 0 || SystemScreen !== void 0 && (!OPT_IN_SYSTEM_SCREENS.has(SystemScreen) || isSystemScreenCoveredByNav(SystemScreen, navSlugs));
2239
2235
  if (SystemScreen && systemScreenInNav) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.Suspense, {
2240
2236
  fallback: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2241
2237
  className: "flex h-full items-center justify-center",