@fluid-app/portal-sdk 0.1.236 → 0.1.237
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 +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +11 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -12
package/dist/index.mjs
CHANGED
|
@@ -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", {
|