@fluid-app/portal-sdk 0.1.280 → 0.1.281

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/{ContactsScreen-D42uVkfI.mjs → ContactsScreen-CMETL0o1.mjs} +33 -36
  2. package/dist/ContactsScreen-CMETL0o1.mjs.map +1 -0
  3. package/dist/{ContactsScreen-CVUFwHD0.cjs → ContactsScreen-CNM9nqb1.cjs} +33 -36
  4. package/dist/ContactsScreen-CNM9nqb1.cjs.map +1 -0
  5. package/dist/{ContactsScreen-BWgTp9z6.cjs → ContactsScreen-CZLLBgUB.cjs} +2 -2
  6. package/dist/{MessagingScreen-ihaUzGp0.mjs → MessagingScreen-BvVhwvm8.mjs} +2 -2
  7. package/dist/{MessagingScreen-CE8MTQxn.cjs → MessagingScreen-C3yCIWo4.cjs} +41 -62
  8. package/dist/MessagingScreen-C3yCIWo4.cjs.map +1 -0
  9. package/dist/{MessagingScreen-r73abdKa.mjs → MessagingScreen-C7W5-K1N.mjs} +41 -62
  10. package/dist/{MessagingScreen-r73abdKa.mjs.map → MessagingScreen-C7W5-K1N.mjs.map} +1 -1
  11. package/dist/{MessagingScreen-DIbrm4HW.cjs → MessagingScreen-sc1u2IwX.cjs} +2 -2
  12. package/dist/{MySiteScreen-B1_Xx5-L.cjs → MySiteScreen-BiRsdk3F.cjs} +5 -10
  13. package/dist/MySiteScreen-BiRsdk3F.cjs.map +1 -0
  14. package/dist/{MySiteScreen-Dx8wYdv3.mjs → MySiteScreen-CfCr1_w0.mjs} +5 -10
  15. package/dist/{MySiteScreen-Dx8wYdv3.mjs.map → MySiteScreen-CfCr1_w0.mjs.map} +1 -1
  16. package/dist/{MySiteScreen-CFyr06DP.cjs → MySiteScreen-D2ivRa2e.cjs} +2 -2
  17. package/dist/{OrdersScreen-RNTW7SCI.mjs → OrdersScreen-BCFfxurP.mjs} +2 -2
  18. package/dist/{OrdersScreen-BQKy-1vC.cjs → OrdersScreen-CSkiK7j8.cjs} +13 -15
  19. package/dist/OrdersScreen-CSkiK7j8.cjs.map +1 -0
  20. package/dist/{OrdersScreen-C-32UkcG.cjs → OrdersScreen-DOCdTWOx.cjs} +2 -2
  21. package/dist/{OrdersScreen-9wp4AWDC.mjs → OrdersScreen-NzGaufXO.mjs} +13 -15
  22. package/dist/OrdersScreen-NzGaufXO.mjs.map +1 -0
  23. package/dist/{ProfileScreen-OZZ9Zcab.mjs → ProfileScreen-CkRFE_jb.mjs} +5 -6
  24. package/dist/{ProfileScreen-OZZ9Zcab.mjs.map → ProfileScreen-CkRFE_jb.mjs.map} +1 -1
  25. package/dist/{ProfileScreen-BdMZsorI.mjs → ProfileScreen-Cm4WZ54w.mjs} +2 -2
  26. package/dist/{ProfileScreen-BvIfbjnw.cjs → ProfileScreen-Dacb369p.cjs} +5 -6
  27. package/dist/ProfileScreen-Dacb369p.cjs.map +1 -0
  28. package/dist/{ProfileScreen-BrdjkmQd.cjs → ProfileScreen-zzk5SGP5.cjs} +2 -2
  29. package/dist/ScreenHeaderContext-CsfhnuJk.cjs +86 -0
  30. package/dist/ScreenHeaderContext-CsfhnuJk.cjs.map +1 -0
  31. package/dist/ScreenHeaderContext-Dn12BZyj.mjs +62 -0
  32. package/dist/ScreenHeaderContext-Dn12BZyj.mjs.map +1 -0
  33. package/dist/{ShareablesScreen-BP1Ed_Sv.cjs → ShareablesScreen-BwFmwYNG.cjs} +2 -2
  34. package/dist/{ShareablesScreen-DwxcReCu.cjs → ShareablesScreen-C6pCPvmx.cjs} +1101 -1144
  35. package/dist/ShareablesScreen-C6pCPvmx.cjs.map +1 -0
  36. package/dist/{ShareablesScreen-tq0taJJe.mjs → ShareablesScreen-kr2RL4FN.mjs} +2 -2
  37. package/dist/{ShareablesScreen-C5ZRdX-y.mjs → ShareablesScreen-uMQYLpTv.mjs} +1101 -1144
  38. package/dist/ShareablesScreen-uMQYLpTv.mjs.map +1 -0
  39. package/dist/{ShopScreen-B-OBQ2S7.mjs → ShopScreen-BqDNPM7i.mjs} +36 -47
  40. package/dist/{ShopScreen-B-OBQ2S7.mjs.map → ShopScreen-BqDNPM7i.mjs.map} +1 -1
  41. package/dist/{ShopScreen-Cn94XVxx.mjs → ShopScreen-CpCBdW0Z.mjs} +2 -2
  42. package/dist/{ShopScreen-zdvCwxBT.cjs → ShopScreen-DRnPRtV7.cjs} +36 -47
  43. package/dist/ShopScreen-DRnPRtV7.cjs.map +1 -0
  44. package/dist/{ShopScreen-CQDkeQrR.cjs → ShopScreen-SN91S9Ao.cjs} +2 -2
  45. package/dist/{SubscriptionsScreen-CRHHXzrB.cjs → SubscriptionsScreen-D4C8a7-e.cjs} +13 -15
  46. package/dist/SubscriptionsScreen-D4C8a7-e.cjs.map +1 -0
  47. package/dist/{SubscriptionsScreen-Dx7Evic_.mjs → SubscriptionsScreen-DCeby11T.mjs} +13 -15
  48. package/dist/SubscriptionsScreen-DCeby11T.mjs.map +1 -0
  49. package/dist/{SubscriptionsScreen-DH10SUZK.cjs → SubscriptionsScreen-DzwK-Sck.cjs} +2 -2
  50. package/dist/index.cjs +35 -34
  51. package/dist/index.cjs.map +1 -1
  52. package/dist/index.d.cts.map +1 -1
  53. package/dist/index.d.mts.map +1 -1
  54. package/dist/index.mjs +35 -34
  55. package/dist/index.mjs.map +1 -1
  56. package/package.json +18 -18
  57. package/dist/ContactsScreen-CVUFwHD0.cjs.map +0 -1
  58. package/dist/ContactsScreen-D42uVkfI.mjs.map +0 -1
  59. package/dist/MessagingScreen-CE8MTQxn.cjs.map +0 -1
  60. package/dist/MySiteScreen-B1_Xx5-L.cjs.map +0 -1
  61. package/dist/OrdersScreen-9wp4AWDC.mjs.map +0 -1
  62. package/dist/OrdersScreen-BQKy-1vC.cjs.map +0 -1
  63. package/dist/ProfileScreen-BvIfbjnw.cjs.map +0 -1
  64. package/dist/ScreenHeaderContext-BDjNSUfr.mjs +0 -85
  65. package/dist/ScreenHeaderContext-BDjNSUfr.mjs.map +0 -1
  66. package/dist/ScreenHeaderContext-PbjwAMeB.cjs +0 -109
  67. package/dist/ScreenHeaderContext-PbjwAMeB.cjs.map +0 -1
  68. package/dist/ShareablesScreen-C5ZRdX-y.mjs.map +0 -1
  69. package/dist/ShareablesScreen-DwxcReCu.cjs.map +0 -1
  70. package/dist/ShopScreen-zdvCwxBT.cjs.map +0 -1
  71. package/dist/SubscriptionsScreen-CRHHXzrB.cjs.map +0 -1
  72. package/dist/SubscriptionsScreen-Dx7Evic_.mjs.map +0 -1
@@ -2,7 +2,7 @@ import { F as __commonJSMin, I as __exportAll, L as __require, R as __toESM } fr
2
2
  import { I as ApiError, n as useFluidContext } from "./FluidProvider-DIE1VH2Z.mjs";
3
3
  import { n as useActiveLocale } from "./locale-context-BbdKe_Fj.mjs";
4
4
  import { $t as constructFrom, A as IconToggle, B as DropdownMenuContent, Bt as isSameDay, Cn as cn, Dt as isBefore, Et as isSameYear, G as DropdownMenuSeparator, Gt as normalizeDates, H as DropdownMenuLabel, Ot as isAfter, Q as DialogContent, Qt as toDate, Rt as endOfMonth, Tt as subDays, Ut as differenceInCalendarDays, V as DropdownMenuItem, Wt as startOfDay, X as Dialog, Xt as addMonths, Y as DropdownMenuTrigger, Z as DialogClose, Zt as addDays, at as Popover, en as millisecondsInHour, f as fluidToast, i as TooltipTrigger, j as IconButton, k as Input, kt as format$1, n as TooltipContent, ot as PopoverContent, r as TooltipProvider, st as PopoverTrigger, t as Tooltip, tn as millisecondsInMinute, u as SpinnerWithText, vn as Button, wt as Calendar$1, z as DropdownMenu, zt as differenceInCalendarMonths } from "./src-Dk1FJOX0.mjs";
5
- import { n as useScreenHeaderActions, r as useScreenHeaderBreadcrumbs } from "./ScreenHeaderContext-BDjNSUfr.mjs";
5
+ import { n as ScreenHeaderBreadcrumbs, t as ScreenHeaderActions } from "./ScreenHeaderContext-Dn12BZyj.mjs";
6
6
  import { t as useStore } from "./use-store-BnHhQDYo.mjs";
7
7
  import { t as useAccount } from "./use-account-B201ntr4.mjs";
8
8
  import { i as createTranslationContext, n as createDomainTranslations, r as useDomainDict, t as createStaticDictAdapter } from "./static-dict-adapter-BGSA0IiX.mjs";
@@ -54578,6 +54578,45 @@ z.object({
54578
54578
  url: z.string().min(1, "Link is required").url("Please enter a valid URL")
54579
54579
  });
54580
54580
  //#endregion
54581
+ //#region src/messaging/MessagingHeaderBridge.tsx
54582
+ const ROUTE_TITLES = {
54583
+ pins: "Pinned Messages",
54584
+ new: "New Message",
54585
+ scheduled: "Scheduled Messages"
54586
+ };
54587
+ function fallbackRenderImage(props) {
54588
+ return /* @__PURE__ */ jsx("img", {
54589
+ src: props.src,
54590
+ alt: props.alt,
54591
+ width: props.width,
54592
+ height: props.height,
54593
+ className: props.className
54594
+ });
54595
+ }
54596
+ function MessagingHeaderBridge() {
54597
+ const { auth, renderImage: contextRenderImage } = useMessagingApp();
54598
+ const navigation = useMessagingNavigation();
54599
+ const { currentRoute } = navigation;
54600
+ const { data: conversation } = useConversation("conversationId" in currentRoute ? currentRoute.conversationId : 0);
54601
+ const renderImage = contextRenderImage ?? fallbackRenderImage;
54602
+ const currentUser = auth.currentUser;
54603
+ const conversationName = conversation?.name;
54604
+ const routeTitle = ROUTE_TITLES[currentRoute.view];
54605
+ const breadcrumbContent = routeTitle ? /* @__PURE__ */ jsx("h1", {
54606
+ className: "text-foreground text-lg font-semibold",
54607
+ children: routeTitle
54608
+ }) : conversationName ? /* @__PURE__ */ jsx("h1", {
54609
+ className: "text-foreground truncate text-lg font-semibold",
54610
+ children: conversationName
54611
+ }) : null;
54612
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [breadcrumbContent && /* @__PURE__ */ jsx(ScreenHeaderBreadcrumbs, { children: breadcrumbContent }), /* @__PURE__ */ jsx(ScreenHeaderActions, { children: /* @__PURE__ */ jsx(MessagesHeaderActions, {
54613
+ conversation,
54614
+ currentUser,
54615
+ navigation,
54616
+ renderImage
54617
+ }) })] });
54618
+ }
54619
+ //#endregion
54581
54620
  //#region ../../messaging/core/src/translation-adapter.ts
54582
54621
  const messagingDomain = createDomainTranslations({
54583
54622
  fallback: {
@@ -54848,66 +54887,6 @@ function MessagingTranslationBridge({ children }) {
54848
54887
  });
54849
54888
  }
54850
54889
  //#endregion
54851
- //#region src/messaging/MessagingHeaderBridge.tsx
54852
- /**
54853
- * Bridges messaging header content from inside <MessagingApp> into the
54854
- * portal shell's <ScreenHeader>. Render this as a child of <MessagingApp>
54855
- * with `hideTopBar` set, and the messaging UI's own <MessagesTopBar /> is
54856
- * suppressed in favour of populating the existing portal header.
54857
- *
54858
- * Right-hand actions are delegated to <MessagesHeaderActions /> from
54859
- * messaging-ui so this stays in sync with <MessagesTopBar />. The breadcrumbs
54860
- * are owned here because the portal shell shows them differently from the
54861
- * messaging-ui's inline page-title fallback.
54862
- */
54863
- const ROUTE_TITLES = {
54864
- pins: "Pinned Messages",
54865
- new: "New Message",
54866
- scheduled: "Scheduled Messages"
54867
- };
54868
- function fallbackRenderImage(props) {
54869
- return /* @__PURE__ */ jsx("img", {
54870
- src: props.src,
54871
- alt: props.alt,
54872
- width: props.width,
54873
- height: props.height,
54874
- className: props.className
54875
- });
54876
- }
54877
- function MessagingHeaderBridge() {
54878
- const { auth, renderImage: contextRenderImage } = useMessagingApp();
54879
- const navigation = useMessagingNavigation();
54880
- const { currentRoute } = navigation;
54881
- const { data: conversation } = useConversation("conversationId" in currentRoute ? currentRoute.conversationId : 0);
54882
- const renderImage = contextRenderImage ?? fallbackRenderImage;
54883
- const currentUser = auth.currentUser;
54884
- const conversationName = conversation?.name;
54885
- const routeTitle = ROUTE_TITLES[currentRoute.view];
54886
- useScreenHeaderBreadcrumbs(useMemo(() => {
54887
- if (routeTitle) return /* @__PURE__ */ jsx("h1", {
54888
- className: "text-foreground text-lg font-semibold",
54889
- children: routeTitle
54890
- });
54891
- if (conversationName) return /* @__PURE__ */ jsx("h1", {
54892
- className: "text-foreground truncate text-lg font-semibold",
54893
- children: conversationName
54894
- });
54895
- return null;
54896
- }, [routeTitle, conversationName]));
54897
- useScreenHeaderActions(useMemo(() => /* @__PURE__ */ jsx(MessagingTranslationBridge, { children: /* @__PURE__ */ jsx(MessagesHeaderActions, {
54898
- conversation,
54899
- currentUser,
54900
- navigation,
54901
- renderImage
54902
- }) }), [
54903
- conversation,
54904
- currentUser,
54905
- navigation,
54906
- renderImage
54907
- ]));
54908
- return null;
54909
- }
54910
- //#endregion
54911
54890
  //#region src/screens/MessagingScreen.tsx
54912
54891
  function renderImage(props) {
54913
54892
  return /* @__PURE__ */ jsx("img", {
@@ -55052,4 +55031,4 @@ const messagingScreenPropertySchema = {
55052
55031
  //#endregion
55053
55032
  export { useMessagingAuth as a, useMessagingConfig as i, messagingScreenPropertySchema as n, createFluidFileUploader as r, MessagingScreen as t };
55054
55033
 
55055
- //# sourceMappingURL=MessagingScreen-r73abdKa.mjs.map
55034
+ //# sourceMappingURL=MessagingScreen-C7W5-K1N.mjs.map