@fluid-app/portal-sdk 0.1.442 → 0.1.443

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 (50) hide show
  1. package/dist/{FluidProvider-E3BxHccm.cjs → FluidProvider-DRyFjZ6v.cjs} +2 -1
  2. package/dist/{FluidProvider-E3BxHccm.cjs.map → FluidProvider-DRyFjZ6v.cjs.map} +1 -1
  3. package/dist/{FluidProvider-C5-je4MJ.mjs → FluidProvider-hztxEA9v.mjs} +2 -1
  4. package/dist/{FluidProvider-C5-je4MJ.mjs.map → FluidProvider-hztxEA9v.mjs.map} +1 -1
  5. package/dist/{MessagingScreen-DRD0nEc4.cjs → MessagingScreen-BcKMkp38.cjs} +2 -2
  6. package/dist/{MessagingScreen-DRD0nEc4.cjs.map → MessagingScreen-BcKMkp38.cjs.map} +1 -1
  7. package/dist/{MessagingScreen-Da19zbmP.cjs → MessagingScreen-D9lMoFHp.cjs} +2 -2
  8. package/dist/{MessagingScreen-BzCBjO4X.mjs → MessagingScreen-DP9lhGok.mjs} +2 -2
  9. package/dist/{MessagingScreen-BzCBjO4X.mjs.map → MessagingScreen-DP9lhGok.mjs.map} +1 -1
  10. package/dist/{MessagingScreen-DjwiqfCS.mjs → MessagingScreen-DuoVdCoN.mjs} +2 -5
  11. package/dist/{OrdersScreen-DouJFuWM.cjs → OrdersScreen-9LZSY0r6.cjs} +2 -2
  12. package/dist/{OrdersScreen-DouJFuWM.cjs.map → OrdersScreen-9LZSY0r6.cjs.map} +1 -1
  13. package/dist/{OrdersScreen-B5pheix7.mjs → OrdersScreen-BIaS_Rs5.mjs} +2 -2
  14. package/dist/{OrdersScreen-B5pheix7.mjs.map → OrdersScreen-BIaS_Rs5.mjs.map} +1 -1
  15. package/dist/{OrdersScreen-7U1ViXnt.cjs → OrdersScreen-C1QEm5aJ.cjs} +2 -2
  16. package/dist/{OrdersScreen-C3zGzWki.mjs → OrdersScreen-DaKc0IWa.mjs} +2 -5
  17. package/dist/{ProfileScreen-BZhDJ-2U.mjs → ProfileScreen-BFUMx753.mjs} +3 -3
  18. package/dist/{ProfileScreen-BZhDJ-2U.mjs.map → ProfileScreen-BFUMx753.mjs.map} +1 -1
  19. package/dist/{ProfileScreen-D3oLgrla.cjs → ProfileScreen-C8efV745.cjs} +3 -3
  20. package/dist/{ProfileScreen-Bz8xAR2F.cjs → ProfileScreen-CJ02u5_k.cjs} +3 -3
  21. package/dist/{ProfileScreen-Bz8xAR2F.cjs.map → ProfileScreen-CJ02u5_k.cjs.map} +1 -1
  22. package/dist/{ProfileScreen-DPxQL-ly.mjs → ProfileScreen-h6QFJYjT.mjs} +3 -6
  23. package/dist/{ShareablesScreen-DouGMSCv.mjs → ShareablesScreen-CJU8G50V.mjs} +0 -3
  24. package/dist/{ShopScreen-TckT3N88.cjs → ShopScreen-BOv02SK-.cjs} +2 -2
  25. package/dist/{ShopScreen-C1ywhucr.mjs → ShopScreen-BQXHwKwM.mjs} +2 -5
  26. package/dist/{ShopScreen-CiPevWHk.mjs → ShopScreen-DOXyo3Vh.mjs} +2 -2
  27. package/dist/{ShopScreen-CiPevWHk.mjs.map → ShopScreen-DOXyo3Vh.mjs.map} +1 -1
  28. package/dist/{ShopScreen-CWCX8u6W.cjs → ShopScreen-IBpCfhLT.cjs} +2 -2
  29. package/dist/{ShopScreen-CWCX8u6W.cjs.map → ShopScreen-IBpCfhLT.cjs.map} +1 -1
  30. package/dist/{SubscriptionsScreen-Y5C8NgNC.mjs → SubscriptionsScreen-B2QSvJ-w.mjs} +3 -6
  31. package/dist/{SubscriptionsScreen-cskYuL1i.cjs → SubscriptionsScreen-D8uE5QRT.cjs} +3 -3
  32. package/dist/{SubscriptionsScreen-cskYuL1i.cjs.map → SubscriptionsScreen-D8uE5QRT.cjs.map} +1 -1
  33. package/dist/{SubscriptionsScreen-CL-NKw6s.cjs → SubscriptionsScreen-D_YvnfPC.cjs} +3 -3
  34. package/dist/{SubscriptionsScreen-DzWTRFMS.mjs → SubscriptionsScreen-g7WC5AfX.mjs} +3 -3
  35. package/dist/{SubscriptionsScreen-DzWTRFMS.mjs.map → SubscriptionsScreen-g7WC5AfX.mjs.map} +1 -1
  36. package/dist/index.cjs +44 -29
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.cts +10 -0
  39. package/dist/index.d.cts.map +1 -1
  40. package/dist/index.d.mts +10 -0
  41. package/dist/index.d.mts.map +1 -1
  42. package/dist/index.mjs +48 -33
  43. package/dist/index.mjs.map +1 -1
  44. package/dist/{use-portal-card-add-3ds-flow-CNX-EEX9.cjs → use-portal-card-add-3ds-flow-BESpmw-C.cjs} +2 -2
  45. package/dist/{use-portal-card-add-3ds-flow-CNX-EEX9.cjs.map → use-portal-card-add-3ds-flow-BESpmw-C.cjs.map} +1 -1
  46. package/dist/{use-portal-card-add-3ds-flow-Cd7qe-uB.mjs → use-portal-card-add-3ds-flow-Ddn35rRp.mjs} +2 -2
  47. package/dist/{use-portal-card-add-3ds-flow-Cd7qe-uB.mjs.map → use-portal-card-add-3ds-flow-Ddn35rRp.mjs.map} +1 -1
  48. package/dist/utils/build-remote-widget-plugin-manifests.mjs +0 -2
  49. package/dist/utils/build-remote-widget-plugin-manifests.mjs.map +1 -1
  50. package/package.json +12 -12
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { A as DEFAULT_COLORS, B as getForegroundColor, C as removeAllThemes, D a
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-BQz-1cCn.mjs";
4
4
  import { t as useAccount } from "./use-account-DR6HXMw_.mjs";
5
5
  import "./use-optional-store-DpB_jK4Q.mjs";
6
- import { b as useLanguagesApi, h as useThemeContext, m as FluidThemeProvider, n as useFluidContext, p as shellEn, r as SUPPORTED_LANGUAGES, t as FluidProvider } from "./FluidProvider-C5-je4MJ.mjs";
6
+ import { b as useLanguagesApi, h as useThemeContext, m as FluidThemeProvider, n as useFluidContext, p as shellEn, r as SUPPORTED_LANGUAGES, t as FluidProvider } from "./FluidProvider-hztxEA9v.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-Ds-J6GFM.mjs";
@@ -35,9 +35,9 @@ import "./purify.es-CcYKK30Z.mjs";
35
35
  import "./MediaRenderer-CLCBsSIU.mjs";
36
36
  import { r as carouselWidgetPropertySchema, t as CarouselWidget } from "./CarouselWidget-BlS08Aru.mjs";
37
37
  import { r as catchUpWidgetPropertySchema, t as CatchUpWidget } from "./CatchUpWidget-dROZKeGW.mjs";
38
- import { Cn as Button, Ln as cn$1, ct as PopoverContent, dt as CollapsibleContent, ft as CollapsibleTrigger, g as Skeleton$1, lt as PopoverTrigger, m as Toaster, st as Popover, ut as Collapsible } from "./src-v1U7mjgR.mjs";
39
- import { i as useMessagingAuth, n as messagingScreenPropertySchema, r as useMessagingConfig, t as MessagingScreen } from "./MessagingScreen-BzCBjO4X.mjs";
40
- import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-DzWTRFMS.mjs";
38
+ import { Cn as Button, Ln as cn$1, N as IconButton, ct as PopoverContent, dt as CollapsibleContent, ft as CollapsibleTrigger, g as Skeleton$1, lt as PopoverTrigger, m as Toaster, st as Popover, ut as Collapsible } from "./src-v1U7mjgR.mjs";
39
+ import { i as useMessagingAuth, n as messagingScreenPropertySchema, r as useMessagingConfig, t as MessagingScreen } from "./MessagingScreen-DP9lhGok.mjs";
40
+ import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-g7WC5AfX.mjs";
41
41
  import { r as chartWidgetPropertySchema, t as ChartWidget } from "./ChartWidget-LcbtV1uD.mjs";
42
42
  import { r as containerWidgetPropertySchema, t as ContainerWidget } from "./ContainerWidget-bbzSrNUJ.mjs";
43
43
  import { r as embedWidgetPropertySchema, t as EmbedWidget } from "./EmbedWidget-DfhOZVCm.mjs";
@@ -64,17 +64,17 @@ import { i as useScreenHeaderSlotRefs, r as ScreenHeaderProvider } from "./Scree
64
64
  import { a as FallbackCard, i as CoreScreenPlaceholder, r as customersScreenPropertySchema, t as CustomersScreen } from "./CustomersScreen-95_LKw0d.mjs";
65
65
  import { a as memberTypeSlug, i as memberTypeName, n as deniesRepSurfaces, r as hasMemberPermission, t as canAccessRepSurfaces } from "./member-permissions-B5en48uH.mjs";
66
66
  import { a as implementPortalFunction } from "./portal-function-DiozZloV.mjs";
67
- import "./use-portal-card-add-3ds-flow-Cd7qe-uB.mjs";
67
+ import "./use-portal-card-add-3ds-flow-Ddn35rRp.mjs";
68
68
  import "./display-nScoMx87.mjs";
69
69
  import "./use-mysite-portal-B1lFZMl2.mjs";
70
- import { n as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-BZhDJ-2U.mjs";
70
+ import { n as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-BFUMx753.mjs";
71
71
  import "./dist-CBZLrT5S.mjs";
72
72
  import "./es-B3I_oMk-.mjs";
73
73
  import "./dist-CU-tsJ00.mjs";
74
- import { n as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-B5pheix7.mjs";
74
+ import { n as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-BIaS_Rs5.mjs";
75
75
  import { r as mySiteScreenPropertySchema, t as MySiteScreen } from "./MySiteScreen-CJ9CD896.mjs";
76
76
  import "./sortable.esm-B6B4nWkF.mjs";
77
- import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-CiPevWHk.mjs";
77
+ import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-DOXyo3Vh.mjs";
78
78
  import "./AppDownloadScreen-OiFZo-I_.mjs";
79
79
  import { buildRemoteWidgetPluginManifests } from "./utils/build-remote-widget-plugin-manifests.mjs";
80
80
  import * as React$1 from "react";
@@ -82,7 +82,7 @@ import { Component, StrictMode, Suspense, createContext, forwardRef, lazy, memo,
82
82
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
83
83
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
84
84
  import { z } from "zod";
85
- import { Bell, Box, Boxes, Briefcase, Building2, Calendar, Check, ChevronRight, CircleUser, Compass, ContactRound, Ellipsis, File, FileText, FileVideo, Folder, FolderOpen, Globe, GraduationCap, Heart, House, Image, LayoutGrid, ListMusic, LogOut, Mail, Menu, MessageCircle, MessageSquare, Moon, PackageOpen, PanelLeft, Repeat, Search, Settings, ShoppingCart, Smartphone, Star, Store, Sun, TriangleAlert, User, UserCog, Users, X } from "lucide-react";
85
+ import { Bell, Box, Boxes, Briefcase, Building2, Calendar, Check, ChevronLeft, ChevronRight, CircleUser, Compass, ContactRound, Ellipsis, File, FileText, FileVideo, Folder, FolderOpen, Globe, GraduationCap, Heart, House, Image, LayoutGrid, ListMusic, LogOut, Mail, Menu, MessageCircle, MessageSquare, Moon, PackageOpen, PanelLeft, Repeat, Search, Settings, ShoppingCart, Smartphone, Star, Store, Sun, TriangleAlert, User, UserCog, Users, X } from "lucide-react";
86
86
  import { clsx } from "clsx";
87
87
  import { twMerge } from "tailwind-merge";
88
88
  import { Slot } from "@radix-ui/react-slot";
@@ -1563,24 +1563,37 @@ function LanguageSelector() {
1563
1563
  }
1564
1564
  //#endregion
1565
1565
  //#region src/shell/SdkHeader.tsx
1566
- function SdkHeader({ mobileTabs, currentSlug, onNavigate, onLogout }) {
1566
+ function SdkHeader({ mobileTabs, currentSlug, title, onBack, onNavigate, onLogout }) {
1567
1567
  const sidebar = useSidebar();
1568
1568
  const shellApi = useShellTranslation();
1569
1569
  const { t } = shellApi;
1570
+ const resolvedTitle = title ? translateNavLabel(shellApi, currentSlug, title) : normalizeSlug(currentSlug) === "more" ? t("nav_more") : void 0;
1570
1571
  const isMobileWithBottomNav = sidebar.isMobile && sidebar.useBottomNav;
1571
1572
  const isMobileWithHamburger = sidebar.isMobile && !sidebar.useBottomNav;
1572
1573
  if (!isMobileWithBottomNav && !isMobileWithHamburger) return null;
1573
1574
  return /* @__PURE__ */ jsxs("header", {
1574
- className: "bg-sidebar shrink-0",
1575
- children: [isMobileWithBottomNav ? /* @__PURE__ */ jsx("div", {
1576
- className: "flex h-[52px] items-center px-4",
1577
- children: /* @__PURE__ */ jsxs("div", {
1578
- className: "text-muted-foreground ml-auto flex flex-none items-center justify-end gap-2",
1579
- children: [/* @__PURE__ */ jsx(LanguageSelector, {}), /* @__PURE__ */ jsx(SdkMobileProfileMenu, {
1580
- onNavigate,
1581
- onLogout
1582
- })]
1583
- })
1575
+ className: "bg-sidebar shrink-0 pt-[env(safe-area-inset-top)]",
1576
+ children: [isMobileWithBottomNav ? /* @__PURE__ */ jsxs("div", {
1577
+ className: "flex h-[52px] items-center gap-2 px-4",
1578
+ children: [
1579
+ onBack ? /* @__PURE__ */ jsx(IconButton, {
1580
+ icon: ChevronLeft,
1581
+ "aria-label": t("nav_back"),
1582
+ onClick: onBack,
1583
+ className: "-ml-1 flex-none"
1584
+ }) : null,
1585
+ resolvedTitle ? /* @__PURE__ */ jsx("h1", {
1586
+ className: "text-sidebar-foreground min-w-0 flex-1 truncate text-[17px] leading-tight font-semibold tracking-[-0.01em]",
1587
+ children: resolvedTitle
1588
+ }) : null,
1589
+ /* @__PURE__ */ jsxs("div", {
1590
+ className: "text-muted-foreground ml-auto flex flex-none items-center justify-end gap-2",
1591
+ children: [/* @__PURE__ */ jsx(LanguageSelector, {}), /* @__PURE__ */ jsx(SdkMobileProfileMenu, {
1592
+ onNavigate,
1593
+ onLogout
1594
+ })]
1595
+ })
1596
+ ]
1584
1597
  }) : /* @__PURE__ */ jsx("div", {
1585
1598
  className: "flex h-[52px] items-center px-6",
1586
1599
  children: /* @__PURE__ */ jsx("button", {
@@ -1811,14 +1824,14 @@ function resolveMemberTypePage(registry, memberTypeSlug, currentSlug, baseSlug)
1811
1824
  }
1812
1825
  //#endregion
1813
1826
  //#region src/shell/system-screen-map.ts
1814
- const ProfileScreen$1 = lazy(() => import("./ProfileScreen-DPxQL-ly.mjs").then((m) => ({ default: m.ProfileScreen })));
1815
- const OrdersScreen$1 = lazy(() => import("./OrdersScreen-C3zGzWki.mjs").then((m) => ({ default: m.OrdersScreen })));
1816
- const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-Y5C8NgNC.mjs").then((m) => ({ default: m.SubscriptionsScreen })));
1817
- const MessagingScreen$1 = lazy(() => import("./MessagingScreen-DjwiqfCS.mjs").then((m) => ({ default: m.MessagingScreen })));
1827
+ const ProfileScreen$1 = lazy(() => import("./ProfileScreen-h6QFJYjT.mjs").then((m) => ({ default: m.ProfileScreen })));
1828
+ const OrdersScreen$1 = lazy(() => import("./OrdersScreen-DaKc0IWa.mjs").then((m) => ({ default: m.OrdersScreen })));
1829
+ const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-B2QSvJ-w.mjs").then((m) => ({ default: m.SubscriptionsScreen })));
1830
+ const MessagingScreen$1 = lazy(() => import("./MessagingScreen-DuoVdCoN.mjs").then((m) => ({ default: m.MessagingScreen })));
1818
1831
  const ContactsScreen$1 = lazy(() => import("./ContactsScreen-Ds-J6GFM.mjs").then((n) => n.n).then((m) => ({ default: m.ContactsScreen })));
1819
- const ShopScreen$1 = lazy(() => import("./ShopScreen-C1ywhucr.mjs").then((m) => ({ default: m.ShopScreen })));
1832
+ const ShopScreen$1 = lazy(() => import("./ShopScreen-BQXHwKwM.mjs").then((m) => ({ default: m.ShopScreen })));
1820
1833
  const CustomersScreen$1 = lazy(() => import("./CustomersScreen-95_LKw0d.mjs").then((n) => n.n).then((m) => ({ default: m.CustomersScreen })));
1821
- const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-DouGMSCv.mjs").then((m) => ({ default: m.ShareablesScreen })));
1834
+ const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-CJU8G50V.mjs").then((m) => ({ default: m.ShareablesScreen })));
1822
1835
  const MySiteScreen$1 = lazy(() => import("./MySiteScreen-CJ9CD896.mjs").then((n) => n.n).then((m) => ({ default: m.MySiteScreen })));
1823
1836
  const AppDownloadScreen = lazy(() => import("./AppDownloadScreen-OiFZo-I_.mjs").then((n) => n.t).then((m) => ({ default: m.AppDownloadScreen })));
1824
1837
  const SYSTEM_SLUG_SCREEN_MAP = {
@@ -2187,7 +2200,7 @@ function ScreenHeader({ title, trailingContent, override }) {
2187
2200
  return /* @__PURE__ */ jsxs("div", {
2188
2201
  "data-fluid-screen-header": "",
2189
2202
  tabIndex: -1,
2190
- className: "border-foreground/[0.06] bg-background sticky top-0 z-30 flex flex-row items-center border-b px-4 py-3 md:px-6",
2203
+ className: "border-foreground/[0.06] bg-background sticky top-0 z-30 flex flex-row items-center border-b px-4 py-3 max-md:hidden md:px-6",
2191
2204
  children: [
2192
2205
  !isMobile && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("button", {
2193
2206
  type: "button",
@@ -2580,6 +2593,8 @@ function AppShell({ appData: appDataProp, navigation: navigationProp, customPage
2580
2593
  headerContent: /* @__PURE__ */ jsx(SdkHeader, {
2581
2594
  mobileTabs: mobileSecondLevelTabs,
2582
2595
  currentSlug: activeSlug,
2596
+ title: screenTitle,
2597
+ ...restParams !== "" && { onBack: () => handleNavigate(baseSlug) },
2583
2598
  onNavigate: handleNavigate,
2584
2599
  onLogout: logout
2585
2600
  }),
@@ -3722,15 +3737,15 @@ const CORE_PAGE_IDS = {
3722
3737
  //#endregion
3723
3738
  //#region src/screens/index.ts
3724
3739
  const screenPropertySchemas = {
3725
- ProfileScreen: () => import("./ProfileScreen-DPxQL-ly.mjs").then((m) => m.profileScreenPropertySchema),
3726
- MessagingScreen: () => import("./MessagingScreen-DjwiqfCS.mjs").then((m) => m.messagingScreenPropertySchema),
3740
+ ProfileScreen: () => import("./ProfileScreen-h6QFJYjT.mjs").then((m) => m.profileScreenPropertySchema),
3741
+ MessagingScreen: () => import("./MessagingScreen-DuoVdCoN.mjs").then((m) => m.messagingScreenPropertySchema),
3727
3742
  ContactsScreen: () => import("./ContactsScreen-Ds-J6GFM.mjs").then((n) => n.n).then((m) => m.contactsScreenPropertySchema),
3728
- OrdersScreen: () => import("./OrdersScreen-C3zGzWki.mjs").then((m) => m.ordersScreenPropertySchema),
3729
- SubscriptionsScreen: () => import("./SubscriptionsScreen-Y5C8NgNC.mjs").then((m) => m.subscriptionsScreenPropertySchema),
3743
+ OrdersScreen: () => import("./OrdersScreen-DaKc0IWa.mjs").then((m) => m.ordersScreenPropertySchema),
3744
+ SubscriptionsScreen: () => import("./SubscriptionsScreen-B2QSvJ-w.mjs").then((m) => m.subscriptionsScreenPropertySchema),
3730
3745
  CustomersScreen: () => import("./CustomersScreen-95_LKw0d.mjs").then((n) => n.n).then((m) => m.customersScreenPropertySchema),
3731
3746
  MySiteScreen: () => import("./MySiteScreen-CJ9CD896.mjs").then((n) => n.n).then((m) => m.mySiteScreenPropertySchema),
3732
- ShareablesScreen: () => import("./ShareablesScreen-DouGMSCv.mjs").then((m) => m.shareablesScreenPropertySchema),
3733
- ShopScreen: () => import("./ShopScreen-C1ywhucr.mjs").then((m) => m.shopScreenPropertySchema),
3747
+ ShareablesScreen: () => import("./ShareablesScreen-CJU8G50V.mjs").then((m) => m.shareablesScreenPropertySchema),
3748
+ ShopScreen: () => import("./ShopScreen-BQXHwKwM.mjs").then((m) => m.shopScreenPropertySchema),
3734
3749
  AppDownloadScreen: () => import("./AppDownloadScreen-OiFZo-I_.mjs").then((n) => n.t).then((m) => m.appDownloadScreenPropertySchema)
3735
3750
  };
3736
3751
  /**