@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.cjs
CHANGED
|
@@ -2105,6 +2105,16 @@ const SYSTEM_SLUG_SCREEN_MAP = {
|
|
|
2105
2105
|
upgrade: UpgradeScreen,
|
|
2106
2106
|
"app-download": AppDownloadScreen
|
|
2107
2107
|
};
|
|
2108
|
+
/**
|
|
2109
|
+
* System screens that render even when not in the active navigation.
|
|
2110
|
+
* Account-manage destinations (profile, orders, subscriptions) are always
|
|
2111
|
+
* reachable so customers can manage their account regardless of nav config.
|
|
2112
|
+
*/
|
|
2113
|
+
const ALWAYS_AVAILABLE_SYSTEM_SCREENS = new Set([
|
|
2114
|
+
ProfileScreen$1,
|
|
2115
|
+
OrdersScreen$1,
|
|
2116
|
+
SubscriptionsScreen$1
|
|
2117
|
+
]);
|
|
2108
2118
|
/** Pre-sorted keys for greedy prefix matching (longest first). */
|
|
2109
2119
|
const SORTED_SCREEN_KEYS = Object.keys(SYSTEM_SLUG_SCREEN_MAP).sort((a, b) => b.length - a.length);
|
|
2110
2120
|
/** Prefix-match a slug against screen map keys, longest match first. */
|
|
@@ -2161,7 +2171,7 @@ function PageRouter({ currentSlug, currentNavItem, customPages, screens, baseSlu
|
|
|
2161
2171
|
});
|
|
2162
2172
|
}
|
|
2163
2173
|
const SystemScreen = SYSTEM_SLUG_SCREEN_MAP[baseSlug] ?? findScreenByPrefix(currentSlug);
|
|
2164
|
-
const systemScreenInNav = navSlugs === void 0 || SystemScreen !== void 0 && isSystemScreenCoveredByNav(SystemScreen, navSlugs);
|
|
2174
|
+
const systemScreenInNav = navSlugs === void 0 || SystemScreen !== void 0 && (ALWAYS_AVAILABLE_SYSTEM_SCREENS.has(SystemScreen) || isSystemScreenCoveredByNav(SystemScreen, navSlugs));
|
|
2165
2175
|
if (SystemScreen && systemScreenInNav) {
|
|
2166
2176
|
const content = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.Suspense, {
|
|
2167
2177
|
fallback: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|