@fluid-app/portal-sdk 0.1.457 → 0.1.458

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 (72) hide show
  1. package/dist/{CardWidget-BbddboSI.cjs → CardWidget-8kubp1dh.cjs} +2 -2
  2. package/dist/{CardWidget-Bs0hqVjy.mjs → CardWidget-Dee9DpBH.mjs} +2 -2
  3. package/dist/{CardWidget-Bs0hqVjy.mjs.map → CardWidget-Dee9DpBH.mjs.map} +1 -1
  4. package/dist/{CardWidget-CGbAcMeq.cjs → CardWidget-YGsYcK7i.cjs} +2 -2
  5. package/dist/{CardWidget-CGbAcMeq.cjs.map → CardWidget-YGsYcK7i.cjs.map} +1 -1
  6. package/dist/{ContainerWidget-bbzSrNUJ.mjs → ContainerWidget-BVlY76wy.mjs} +2 -2
  7. package/dist/{ContainerWidget-bbzSrNUJ.mjs.map → ContainerWidget-BVlY76wy.mjs.map} +1 -1
  8. package/dist/{ContainerWidget-CRCAjF4G.cjs → ContainerWidget-Ba_Ti1Qh.cjs} +3 -3
  9. package/dist/{ContainerWidget-BOZYpAH1.cjs → ContainerWidget-DCDrjhgP.cjs} +2 -2
  10. package/dist/{ContainerWidget-BOZYpAH1.cjs.map → ContainerWidget-DCDrjhgP.cjs.map} +1 -1
  11. package/dist/{FluidProvider-KBZgRXjL.mjs → FluidProvider-C5JqeOGi.mjs} +3 -3
  12. package/dist/{FluidProvider-KBZgRXjL.mjs.map → FluidProvider-C5JqeOGi.mjs.map} +1 -1
  13. package/dist/{FluidProvider-Dm5QH6EP.cjs → FluidProvider-LYDiXUkk.cjs} +3 -3
  14. package/dist/{FluidProvider-Dm5QH6EP.cjs.map → FluidProvider-LYDiXUkk.cjs.map} +1 -1
  15. package/dist/{LayoutWidget-nea3CGc6.cjs → LayoutWidget-BKjkjoNO.cjs} +2 -2
  16. package/dist/{LayoutWidget-CS8fOr1e.cjs → LayoutWidget-CqIkNZNa.cjs} +2 -2
  17. package/dist/{LayoutWidget-CS8fOr1e.cjs.map → LayoutWidget-CqIkNZNa.cjs.map} +1 -1
  18. package/dist/{LayoutWidget-ENLd1G__.mjs → LayoutWidget-DkYKWC2P.mjs} +2 -2
  19. package/dist/{LayoutWidget-ENLd1G__.mjs.map → LayoutWidget-DkYKWC2P.mjs.map} +1 -1
  20. package/dist/{MessagingScreen-BrbkMeld.cjs → MessagingScreen-BLZt8lMN.cjs} +2 -2
  21. package/dist/{MessagingScreen-BrbkMeld.cjs.map → MessagingScreen-BLZt8lMN.cjs.map} +1 -1
  22. package/dist/{MessagingScreen-uuydnJEi.cjs → MessagingScreen-CoBvR0p4.cjs} +7 -7
  23. package/dist/{MessagingScreen-CYqzOl6D.mjs → MessagingScreen-CowNfnz0.mjs} +7 -7
  24. package/dist/{MessagingScreen-BtoXnSqJ.mjs → MessagingScreen-kftHOAO7.mjs} +2 -2
  25. package/dist/{MessagingScreen-BtoXnSqJ.mjs.map → MessagingScreen-kftHOAO7.mjs.map} +1 -1
  26. package/dist/{OrdersScreen-UaQcR3IU.cjs → OrdersScreen-B3Aa4ip-.cjs} +7 -7
  27. package/dist/{OrdersScreen-DKQmax51.cjs → OrdersScreen-C-B6_Agy.cjs} +2 -2
  28. package/dist/{OrdersScreen-DKQmax51.cjs.map → OrdersScreen-C-B6_Agy.cjs.map} +1 -1
  29. package/dist/{OrdersScreen-eqJy6_m3.mjs → OrdersScreen-DDQ8QXWo.mjs} +2 -2
  30. package/dist/{OrdersScreen-eqJy6_m3.mjs.map → OrdersScreen-DDQ8QXWo.mjs.map} +1 -1
  31. package/dist/{OrdersScreen-CutgAgyO.mjs → OrdersScreen-DPkq_mS2.mjs} +7 -7
  32. package/dist/{ProfileScreen-B5DcNq7i.cjs → ProfileScreen-CK17yi8m.cjs} +8 -8
  33. package/dist/{ProfileScreen-CealQbpo.mjs → ProfileScreen-DnlCxwh6.mjs} +3 -3
  34. package/dist/{ProfileScreen-CealQbpo.mjs.map → ProfileScreen-DnlCxwh6.mjs.map} +1 -1
  35. package/dist/{ProfileScreen-DXSnyfCO.cjs → ProfileScreen-R4ulzpPu.cjs} +3 -3
  36. package/dist/{ProfileScreen-DXSnyfCO.cjs.map → ProfileScreen-R4ulzpPu.cjs.map} +1 -1
  37. package/dist/{ProfileScreen-C4SiOL-k.mjs → ProfileScreen-ntvqBCpb.mjs} +8 -8
  38. package/dist/{ScreenRenderer-EGk5-w0h.cjs → ScreenRenderer-D0-ymcZV.cjs} +13 -4
  39. package/dist/ScreenRenderer-D0-ymcZV.cjs.map +1 -0
  40. package/dist/{ScreenRenderer-BQz-1cCn.mjs → ScreenRenderer-KJIcMne2.mjs} +13 -4
  41. package/dist/ScreenRenderer-KJIcMne2.mjs.map +1 -0
  42. package/dist/{ShopScreen-DH_TcNMs.cjs → ShopScreen-BtwvHTbN.cjs} +7 -7
  43. package/dist/{ShopScreen-B6cf4gW-.mjs → ShopScreen-CGX6YHVV.mjs} +7 -7
  44. package/dist/{ShopScreen-z2J4fRfs.mjs → ShopScreen-CUoUECrG.mjs} +2 -2
  45. package/dist/{ShopScreen-z2J4fRfs.mjs.map → ShopScreen-CUoUECrG.mjs.map} +1 -1
  46. package/dist/{ShopScreen-CcupxIut.cjs → ShopScreen-DS5-ICA-.cjs} +2 -2
  47. package/dist/{ShopScreen-CcupxIut.cjs.map → ShopScreen-DS5-ICA-.cjs.map} +1 -1
  48. package/dist/{SubscriptionsScreen-CTrOXRIz.cjs → SubscriptionsScreen-D04ldHXL.cjs} +3 -3
  49. package/dist/{SubscriptionsScreen-CTrOXRIz.cjs.map → SubscriptionsScreen-D04ldHXL.cjs.map} +1 -1
  50. package/dist/{SubscriptionsScreen-DyL-7oeE.mjs → SubscriptionsScreen-D0pn4_JR.mjs} +3 -3
  51. package/dist/{SubscriptionsScreen-DyL-7oeE.mjs.map → SubscriptionsScreen-D0pn4_JR.mjs.map} +1 -1
  52. package/dist/{SubscriptionsScreen-DdlwKkJ1.cjs → SubscriptionsScreen-J4R7V7na.cjs} +8 -8
  53. package/dist/{SubscriptionsScreen-CBEULwpU.mjs → SubscriptionsScreen-qD8Mnh2A.mjs} +8 -8
  54. package/dist/{build-widget-registry-Bg8G7GQF.cjs → build-widget-registry-DMiPjMfG.cjs} +7 -7
  55. package/dist/{build-widget-registry-Bg8G7GQF.cjs.map → build-widget-registry-DMiPjMfG.cjs.map} +1 -1
  56. package/dist/{build-widget-registry-fQIvocLa.mjs → build-widget-registry-Dveiky2q.mjs} +7 -7
  57. package/dist/{build-widget-registry-fQIvocLa.mjs.map → build-widget-registry-Dveiky2q.mjs.map} +1 -1
  58. package/dist/index.cjs +68 -25
  59. package/dist/index.cjs.map +1 -1
  60. package/dist/index.d.cts.map +1 -1
  61. package/dist/index.d.mts.map +1 -1
  62. package/dist/index.mjs +68 -25
  63. package/dist/index.mjs.map +1 -1
  64. package/dist/{use-portal-card-add-3ds-flow-Caupep6C.mjs → use-portal-card-add-3ds-flow--PAh5qUt.mjs} +2 -2
  65. package/dist/{use-portal-card-add-3ds-flow-Caupep6C.mjs.map → use-portal-card-add-3ds-flow--PAh5qUt.mjs.map} +1 -1
  66. package/dist/{use-portal-card-add-3ds-flow-Cl3H-Dp7.cjs → use-portal-card-add-3ds-flow-DzFfku22.cjs} +2 -2
  67. package/dist/{use-portal-card-add-3ds-flow-Cl3H-Dp7.cjs.map → use-portal-card-add-3ds-flow-DzFfku22.cjs.map} +1 -1
  68. package/dist/utils/build-remote-widget-plugin-manifests.cjs +5 -5
  69. package/dist/utils/build-remote-widget-plugin-manifests.mjs +5 -5
  70. package/package.json +8 -8
  71. package/dist/ScreenRenderer-BQz-1cCn.mjs.map +0 -1
  72. package/dist/ScreenRenderer-EGk5-w0h.cjs.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import "./translation-adapter-RsuBioxm.mjs";
2
- import { A as serialiseTheme, B as deriveDarkVariant, C as applyTheme, D as getActiveThemeId, E as buildThemeDefinition, F as DEFAULT_SPACING, G as FONT_FAMILY_KEYS, H as mergeDarkOverrides, I as DEFAULT_THEME_ID, J as SEMANTIC_COLOR_NAMES, K as FONT_SIZE_KEYS, L as DEFAULT_THEME_NAME, M as DEFAULT_FONT_FAMILIES, N as DEFAULT_FONT_SIZES, O as transformThemes, P as DEFAULT_RADII, Q as deleteDatabase, R as getDefaultThemeDefinition, S as createWidgetRegistry, T as removeTheme, U as parseColor, V as getForegroundColor, W as resolveTheme, X as useAppDefinitionApi, _ as DEFAULT_SDK_WIDGET_REGISTRY, a as useScreenAreaFullscreenSnapshot, b as createScreen, c as useFluidApp, d as toNavigationItem, f as normalizeComponentTree, h as useCompanyScopedQueryKey, i as useOptionalScreenAreaFullscreenCoordinator, j as DEFAULT_COLORS, k as deserialiseTheme, l as toRawManifest, m as createCompanyQueryKey, o as APP_DATA_QUERY_KEY, p as toScreenDefinition, q as RADIUS_KEYS, r as ScreenAreaFullscreenProvider, s as fetchRawManifest, t as buildRemoteWidgetRegistry, u as transformManifestToRepAppData, v as isDefaultWidgetComponent, w as removeAllThemes, x as createWidgetFromShareable, y as widgetPropertySchemas, z as generateThemeCSS } from "./build-widget-registry-fQIvocLa.mjs";
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";
2
+ import { A as serialiseTheme, B as deriveDarkVariant, C as applyTheme, D as getActiveThemeId, E as buildThemeDefinition, F as DEFAULT_SPACING, G as FONT_FAMILY_KEYS, H as mergeDarkOverrides, I as DEFAULT_THEME_ID, J as SEMANTIC_COLOR_NAMES, K as FONT_SIZE_KEYS, L as DEFAULT_THEME_NAME, M as DEFAULT_FONT_FAMILIES, N as DEFAULT_FONT_SIZES, O as transformThemes, P as DEFAULT_RADII, Q as deleteDatabase, R as getDefaultThemeDefinition, S as createWidgetRegistry, T as removeTheme, U as parseColor, V as getForegroundColor, W as resolveTheme, X as useAppDefinitionApi, _ as DEFAULT_SDK_WIDGET_REGISTRY, a as useScreenAreaFullscreenSnapshot, b as createScreen, c as useFluidApp, d as toNavigationItem, f as normalizeComponentTree, h as useCompanyScopedQueryKey, i as useOptionalScreenAreaFullscreenCoordinator, j as DEFAULT_COLORS, k as deserialiseTheme, l as toRawManifest, m as createCompanyQueryKey, o as APP_DATA_QUERY_KEY, p as toScreenDefinition, q as RADIUS_KEYS, r as ScreenAreaFullscreenProvider, s as fetchRawManifest, t as buildRemoteWidgetRegistry, u as transformManifestToRepAppData, v as isDefaultWidgetComponent, w as removeAllThemes, x as createWidgetFromShareable, y as widgetPropertySchemas, z as generateThemeCSS } from "./build-widget-registry-Dveiky2q.mjs";
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-KJIcMne2.mjs";
4
4
  import { t as useAccount } from "./use-account-DR6HXMw_.mjs";
5
5
  import "./use-optional-store-DpB_jK4Q.mjs";
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-KBZgRXjL.mjs";
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-C5JqeOGi.mjs";
7
7
  import "./mysite-api-context-BbxSfNft.mjs";
8
8
  import "./ContactsTranslationBridge-DCSWCdyq.mjs";
9
9
  import { r as contactsScreenPropertySchema, t as ContactsScreen } from "./ContactsScreen-D0l3-Xof.mjs";
@@ -22,7 +22,7 @@ import { r as useShellTranslation, t as ShellTranslationContext } from "./shell-
22
22
  import "./error-state-BMPrAS3n.mjs";
23
23
  import { r as pointsWidgetPropertySchema, t as PointsWidget } from "./PointsWidget-7OpNqRDe.mjs";
24
24
  import "./task-composer-form-DzVUCin2.mjs";
25
- import { a as sectionLayoutConfig, i as groupChildrenByColumn, r as layoutWidgetPropertySchema, t as LayoutWidget } from "./LayoutWidget-ENLd1G__.mjs";
25
+ import { a as sectionLayoutConfig, i as groupChildrenByColumn, r as layoutWidgetPropertySchema, t as LayoutWidget } from "./LayoutWidget-DkYKWC2P.mjs";
26
26
  import { _ as extractPropertyValues, g as applyPropertyValues, h as PROPERTY_FIELD_TYPES, r as gapValues, v as groupPropertyFields, y as isPropertyFieldType } from "./registries-DXVOnKV2.mjs";
27
27
  import "./fields-Cz7BkKd6.mjs";
28
28
  import { r as textWidgetPropertySchema, t as TextWidget } from "./TextWidget-cnDl92rJ.mjs";
@@ -30,16 +30,16 @@ import { r as alertWidgetPropertySchema, t as AlertWidget } from "./AlertWidget-
30
30
  import { r as bulletListWidgetPropertySchema, t as BulletListWidget } from "./BulletListWidget-DZrlNEa4.mjs";
31
31
  import "./preview-context-DvXxVZ0z.mjs";
32
32
  import { r as calendarWidgetPropertySchema, t as CalendarWidget } from "./CalendarWidget-DwZ5hrXx.mjs";
33
- import { r as cardWidgetPropertySchema, t as CardWidget } from "./CardWidget-Bs0hqVjy.mjs";
33
+ import { r as cardWidgetPropertySchema, t as CardWidget } from "./CardWidget-Dee9DpBH.mjs";
34
34
  import "./purify.es-CcYKK30Z.mjs";
35
35
  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, N as IconButton, ct as PopoverContent, dt as CollapsibleContent, ft as CollapsibleTrigger, g as Skeleton, lt as PopoverTrigger, m as Toaster, st as Popover, ut as Collapsible } from "./src-v1U7mjgR.mjs";
39
- import { _ as SidebarProvider, a as BottomNavVisibilityProvider, c as SidebarContent, d as SidebarHeader, f as SidebarInset, g as SidebarMenuSub, h as SidebarMenuItem, i as useMessagingAuth, l as SidebarFooter, m as SidebarMenuButton, n as messagingScreenPropertySchema, o as useBottomNavHidden, p as SidebarMenu, r as useMessagingConfig, s as Sidebar, t as MessagingScreen, u as SidebarGroupLabel, v as useSidebar } from "./MessagingScreen-BtoXnSqJ.mjs";
40
- import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-DyL-7oeE.mjs";
39
+ import { _ as SidebarProvider, a as BottomNavVisibilityProvider, c as SidebarContent, d as SidebarHeader, f as SidebarInset, g as SidebarMenuSub, h as SidebarMenuItem, i as useMessagingAuth, l as SidebarFooter, m as SidebarMenuButton, n as messagingScreenPropertySchema, o as useBottomNavHidden, p as SidebarMenu, r as useMessagingConfig, s as Sidebar, t as MessagingScreen, u as SidebarGroupLabel, v as useSidebar } from "./MessagingScreen-kftHOAO7.mjs";
40
+ import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-D0pn4_JR.mjs";
41
41
  import { r as chartWidgetPropertySchema, t as ChartWidget } from "./ChartWidget-LcbtV1uD.mjs";
42
- import { r as containerWidgetPropertySchema, t as ContainerWidget } from "./ContainerWidget-bbzSrNUJ.mjs";
42
+ import { r as containerWidgetPropertySchema, t as ContainerWidget } from "./ContainerWidget-BVlY76wy.mjs";
43
43
  import { r as embedWidgetPropertySchema, t as EmbedWidget } from "./EmbedWidget-EjCuOFOz.mjs";
44
44
  import { r as imageWidgetPropertySchema, t as ImageWidget } from "./ImageWidget-BjyKNhR9.mjs";
45
45
  import { r as linkWidgetPropertySchema, t as LinkWidget } from "./LinkWidget-BNZzqXbl.mjs";
@@ -65,17 +65,17 @@ import { i as useScreenHeaderSlotRefs, r as ScreenHeaderProvider } from "./Scree
65
65
  import { a as FallbackCard, i as CoreScreenPlaceholder, r as customersScreenPropertySchema, t as CustomersScreen } from "./CustomersScreen-B_dmvOqk.mjs";
66
66
  import { a as memberTypeSlug, i as memberTypeName, n as deniesRepSurfaces, r as hasMemberPermission, t as canAccessRepSurfaces } from "./member-permissions-CXsp_VS_.mjs";
67
67
  import { a as implementPortalFunction } from "./portal-function-VnzSP78n.mjs";
68
- import "./use-portal-card-add-3ds-flow-Caupep6C.mjs";
68
+ import "./use-portal-card-add-3ds-flow--PAh5qUt.mjs";
69
69
  import "./display-CG8t6Bv8.mjs";
70
70
  import "./use-mysite-portal-B9dx249L.mjs";
71
- import { n as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-CealQbpo.mjs";
71
+ import { n as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-DnlCxwh6.mjs";
72
72
  import "./dist-CBZLrT5S.mjs";
73
73
  import "./es-B3I_oMk-.mjs";
74
74
  import "./dist-CU-tsJ00.mjs";
75
- import { n as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-eqJy6_m3.mjs";
75
+ import { n as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-DDQ8QXWo.mjs";
76
76
  import { r as mySiteScreenPropertySchema, t as MySiteScreen } from "./MySiteScreen-DVkGc2_9.mjs";
77
77
  import "./sortable.esm-B6B4nWkF.mjs";
78
- import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-z2J4fRfs.mjs";
78
+ import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-CUoUECrG.mjs";
79
79
  import "./AppDownloadScreen-OiFZo-I_.mjs";
80
80
  import { buildRemoteWidgetPluginManifests } from "./utils/build-remote-widget-plugin-manifests.mjs";
81
81
  import * as React$1 from "react";
@@ -1713,12 +1713,12 @@ function resolveMemberTypePage(registry, memberTypeSlug, currentSlug, baseSlug)
1713
1713
  }
1714
1714
  //#endregion
1715
1715
  //#region src/shell/system-screen-map.ts
1716
- const ProfileScreen$1 = lazy(() => import("./ProfileScreen-C4SiOL-k.mjs").then((m) => ({ default: m.ProfileScreen })));
1717
- const OrdersScreen$1 = lazy(() => import("./OrdersScreen-CutgAgyO.mjs").then((m) => ({ default: m.OrdersScreen })));
1718
- const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-CBEULwpU.mjs").then((m) => ({ default: m.SubscriptionsScreen })));
1719
- const MessagingScreen$1 = lazy(() => import("./MessagingScreen-CYqzOl6D.mjs").then((m) => ({ default: m.MessagingScreen })));
1716
+ const ProfileScreen$1 = lazy(() => import("./ProfileScreen-ntvqBCpb.mjs").then((m) => ({ default: m.ProfileScreen })));
1717
+ const OrdersScreen$1 = lazy(() => import("./OrdersScreen-DPkq_mS2.mjs").then((m) => ({ default: m.OrdersScreen })));
1718
+ const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-qD8Mnh2A.mjs").then((m) => ({ default: m.SubscriptionsScreen })));
1719
+ const MessagingScreen$1 = lazy(() => import("./MessagingScreen-CowNfnz0.mjs").then((m) => ({ default: m.MessagingScreen })));
1720
1720
  const ContactsScreen$1 = lazy(() => import("./ContactsScreen-D0l3-Xof.mjs").then((n) => n.n).then((m) => ({ default: m.ContactsScreen })));
1721
- const ShopScreen$1 = lazy(() => import("./ShopScreen-B6cf4gW-.mjs").then((m) => ({ default: m.ShopScreen })));
1721
+ const ShopScreen$1 = lazy(() => import("./ShopScreen-CGX6YHVV.mjs").then((m) => ({ default: m.ShopScreen })));
1722
1722
  const CustomersScreen$1 = lazy(() => import("./CustomersScreen-B_dmvOqk.mjs").then((n) => n.n).then((m) => ({ default: m.CustomersScreen })));
1723
1723
  const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-u6O-4LI4.mjs").then((m) => ({ default: m.ShareablesScreen })));
1724
1724
  const MySiteScreen$1 = lazy(() => import("./MySiteScreen-DVkGc2_9.mjs").then((n) => n.n).then((m) => ({ default: m.MySiteScreen })));
@@ -2166,6 +2166,35 @@ function TranslatedScreenHeader({ slug, title, trailingContent }) {
2166
2166
  });
2167
2167
  }
2168
2168
  //#endregion
2169
+ //#region src/shell/mobile-back-target.ts
2170
+ const LEGACY_SHAREABLE_PARENT_SLUGS = {
2171
+ "share/page": "share/pages",
2172
+ "share/playlist": "share/playlists",
2173
+ "share/product": "share/products"
2174
+ };
2175
+ const SHAREABLE_DETAIL_ROUTE_PREFIXES = [
2176
+ "share/files",
2177
+ "share/media",
2178
+ "share/page",
2179
+ "share/pages",
2180
+ "share/playlist",
2181
+ "share/playlists",
2182
+ "share/product",
2183
+ "share/products"
2184
+ ];
2185
+ function isShareableDetailRoute(normalizedSlug) {
2186
+ return SHAREABLE_DETAIL_ROUTE_PREFIXES.some((routePrefix) => normalizedSlug.startsWith(routePrefix + "/"));
2187
+ }
2188
+ function resolveMobileBackTarget(currentSlug, navSlugs, previousSlug) {
2189
+ const navMatch = matchSlugPrefix(currentSlug, navSlugs);
2190
+ const normalized = normalizeSlug(currentSlug);
2191
+ const isDrillDownRoute = !!navMatch?.rest || isShareableDetailRoute(normalized);
2192
+ const normalizedPrevious = normalizeSlug(previousSlug ?? void 0);
2193
+ if (isDrillDownRoute && normalizedPrevious && normalizedPrevious !== normalized) return normalizedPrevious;
2194
+ if (navMatch?.rest) return navMatch.matchedSlug;
2195
+ for (const [routePrefix, parentSlug] of Object.entries(LEGACY_SHAREABLE_PARENT_SLUGS)) if (normalized.startsWith(routePrefix + "/") && navSlugs.includes(parentSlug)) return parentSlug;
2196
+ }
2197
+ //#endregion
2169
2198
  //#region src/shell/AppShell.tsx
2170
2199
  const THEME_STORAGE_KEY = "portal-theme-mode";
2171
2200
  const SHAREABLE_TYPE_TO_SLUG = {
@@ -2358,9 +2387,11 @@ function AppShell({ appData: appDataProp, navigation: navigationProp, customPage
2358
2387
  const activeSlug = controlledSlug ?? pathSlug;
2359
2388
  const activeSlugRef = useRef(activeSlug);
2360
2389
  activeSlugRef.current = activeSlug;
2361
- const handleNavigate = useCallback((slug) => {
2390
+ const navigateToSlug = useCallback((slug, options) => {
2362
2391
  const current = activeSlugRef.current;
2363
- if (slug !== current) setPreviousSlug(current || null);
2392
+ const recordPrevious = options?.recordPrevious ?? true;
2393
+ if (slug !== current && recordPrevious) setPreviousSlug(current || null);
2394
+ else if (slug !== current) setPreviousSlug(null);
2364
2395
  if (onNavigateProp) {
2365
2396
  onNavigateProp(slug);
2366
2397
  return;
@@ -2369,6 +2400,9 @@ function AppShell({ appData: appDataProp, navigation: navigationProp, customPage
2369
2400
  history.pushState(null, "", targetPath);
2370
2401
  setPathSlug(slug);
2371
2402
  }, [onNavigateProp, normalizedBasePath]);
2403
+ const handleNavigate = useCallback((slug) => {
2404
+ navigateToSlug(slug);
2405
+ }, [navigateToSlug]);
2372
2406
  const handleWidgetItemClick = useCallback((item) => {
2373
2407
  const subscriptionToken = item.subscription_token;
2374
2408
  if (typeof subscriptionToken === "string" && subscriptionToken) {
@@ -2399,6 +2433,15 @@ function AppShell({ appData: appDataProp, navigation: navigationProp, customPage
2399
2433
  const slugMatch = useMemo(() => matchSlugPrefix(activeSlug, allNavSlugs), [activeSlug, allNavSlugs]);
2400
2434
  const baseSlug = slugMatch?.matchedSlug ?? normalizeSlug(activeSlug);
2401
2435
  const restParams = slugMatch?.rest ?? "";
2436
+ const mobileBackTarget = useMemo(() => resolveMobileBackTarget(activeSlug, allNavSlugs, previousSlug), [
2437
+ activeSlug,
2438
+ allNavSlugs,
2439
+ previousSlug
2440
+ ]);
2441
+ const handleMobileBack = useCallback(() => {
2442
+ if (!mobileBackTarget) return;
2443
+ navigateToSlug(mobileBackTarget, { recordPrevious: false });
2444
+ }, [mobileBackTarget, navigateToSlug]);
2402
2445
  const mobileSecondLevelTabs = findCurrentSection(filteredMobileNavItems, baseSlug)?.children ?? [];
2403
2446
  const currentNavItem = findNavItem(filteredNavItems, baseSlug) ?? findNavItem(filteredMobileNavItems, baseSlug);
2404
2447
  const matchingScreen = screens?.find((s) => s.id === currentNavItem?.screen_id);
@@ -2483,7 +2526,7 @@ function AppShell({ appData: appDataProp, navigation: navigationProp, customPage
2483
2526
  mobileTabs: mobileSecondLevelTabs,
2484
2527
  currentSlug: activeSlug,
2485
2528
  title: screenTitle,
2486
- ...restParams !== "" && { onBack: () => handleNavigate(baseSlug) },
2529
+ ...mobileBackTarget !== void 0 && { onBack: handleMobileBack },
2487
2530
  onNavigate: handleNavigate,
2488
2531
  onLogout: logout
2489
2532
  }),
@@ -3626,15 +3669,15 @@ const CORE_PAGE_IDS = {
3626
3669
  //#endregion
3627
3670
  //#region src/screens/index.ts
3628
3671
  const screenPropertySchemas = {
3629
- ProfileScreen: () => import("./ProfileScreen-C4SiOL-k.mjs").then((m) => m.profileScreenPropertySchema),
3630
- MessagingScreen: () => import("./MessagingScreen-CYqzOl6D.mjs").then((m) => m.messagingScreenPropertySchema),
3672
+ ProfileScreen: () => import("./ProfileScreen-ntvqBCpb.mjs").then((m) => m.profileScreenPropertySchema),
3673
+ MessagingScreen: () => import("./MessagingScreen-CowNfnz0.mjs").then((m) => m.messagingScreenPropertySchema),
3631
3674
  ContactsScreen: () => import("./ContactsScreen-D0l3-Xof.mjs").then((n) => n.n).then((m) => m.contactsScreenPropertySchema),
3632
- OrdersScreen: () => import("./OrdersScreen-CutgAgyO.mjs").then((m) => m.ordersScreenPropertySchema),
3633
- SubscriptionsScreen: () => import("./SubscriptionsScreen-CBEULwpU.mjs").then((m) => m.subscriptionsScreenPropertySchema),
3675
+ OrdersScreen: () => import("./OrdersScreen-DPkq_mS2.mjs").then((m) => m.ordersScreenPropertySchema),
3676
+ SubscriptionsScreen: () => import("./SubscriptionsScreen-qD8Mnh2A.mjs").then((m) => m.subscriptionsScreenPropertySchema),
3634
3677
  CustomersScreen: () => import("./CustomersScreen-B_dmvOqk.mjs").then((n) => n.n).then((m) => m.customersScreenPropertySchema),
3635
3678
  MySiteScreen: () => import("./MySiteScreen-DVkGc2_9.mjs").then((n) => n.n).then((m) => m.mySiteScreenPropertySchema),
3636
3679
  ShareablesScreen: () => import("./ShareablesScreen-u6O-4LI4.mjs").then((m) => m.shareablesScreenPropertySchema),
3637
- ShopScreen: () => import("./ShopScreen-B6cf4gW-.mjs").then((m) => m.shopScreenPropertySchema),
3680
+ ShopScreen: () => import("./ShopScreen-CGX6YHVV.mjs").then((m) => m.shopScreenPropertySchema),
3638
3681
  AppDownloadScreen: () => import("./AppDownloadScreen-OiFZo-I_.mjs").then((n) => n.t).then((m) => m.appDownloadScreenPropertySchema)
3639
3682
  };
3640
3683
  /**