@fluid-app/portal-sdk 0.1.524 → 0.1.526

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 (53) hide show
  1. package/dist/{ContactsScreen-DeXNeKhZ.cjs → ContactsScreen-C3ccWqAe.cjs} +41 -38
  2. package/dist/{ContactsScreen-DeXNeKhZ.cjs.map → ContactsScreen-C3ccWqAe.cjs.map} +1 -1
  3. package/dist/{ContactsScreen-C29wHxlb.mjs → ContactsScreen-C_UMnqhN.mjs} +2 -2
  4. package/dist/{ContactsScreen-xXR5SM7U.cjs → ContactsScreen-DEQAF0fC.cjs} +2 -2
  5. package/dist/{ContactsScreen-C5WtXbuk.mjs → ContactsScreen-DkChLGnB.mjs} +41 -38
  6. package/dist/{ContactsScreen-C5WtXbuk.mjs.map → ContactsScreen-DkChLGnB.mjs.map} +1 -1
  7. package/dist/{ContactsTranslationBridge-7hUvizHe.mjs → ContactsTranslationBridge-B4SlrRSR.mjs} +4 -3
  8. package/dist/{ContactsTranslationBridge-7hUvizHe.mjs.map → ContactsTranslationBridge-B4SlrRSR.mjs.map} +1 -1
  9. package/dist/{ContactsTranslationBridge-MTW9WS-j.cjs → ContactsTranslationBridge-C7Q9rpKH.cjs} +4 -3
  10. package/dist/{ContactsTranslationBridge-MTW9WS-j.cjs.map → ContactsTranslationBridge-C7Q9rpKH.cjs.map} +1 -1
  11. package/dist/{FluidProvider-BsFKQnUK.cjs → FluidProvider-B4msuwpR.cjs} +2 -2
  12. package/dist/{FluidProvider-BsFKQnUK.cjs.map → FluidProvider-B4msuwpR.cjs.map} +1 -1
  13. package/dist/{FluidProvider-BnzzWdqN.mjs → FluidProvider-CqFIXA9E.mjs} +2 -2
  14. package/dist/{FluidProvider-BnzzWdqN.mjs.map → FluidProvider-CqFIXA9E.mjs.map} +1 -1
  15. package/dist/{MessagingScreen-CPbJ2scr.mjs → MessagingScreen-8OZSwMYW.mjs} +3 -3
  16. package/dist/{MessagingScreen-Dn4YnN6I.cjs → MessagingScreen-CY8VbrOx.cjs} +3 -3
  17. package/dist/{MessagingScreen-CkTXrFJI.cjs → MessagingScreen-D_Y3Coa6.cjs} +38 -17
  18. package/dist/MessagingScreen-D_Y3Coa6.cjs.map +1 -0
  19. package/dist/{MessagingScreen-D0elghP1.mjs → MessagingScreen-DwU7sqzj.mjs} +38 -17
  20. package/dist/MessagingScreen-DwU7sqzj.mjs.map +1 -0
  21. package/dist/{OrdersScreen-BwrCczgL.mjs → OrdersScreen-CNYPIZBb.mjs} +3 -3
  22. package/dist/{OrdersScreen-Bkw8Gakq.mjs → OrdersScreen-CNzRy_gk.mjs} +3 -3
  23. package/dist/{OrdersScreen-Bkw8Gakq.mjs.map → OrdersScreen-CNzRy_gk.mjs.map} +1 -1
  24. package/dist/{OrdersScreen-DTyk0hBC.cjs → OrdersScreen-CSYdmQVZ.cjs} +3 -3
  25. package/dist/{OrdersScreen-CE6w3HTb.cjs → OrdersScreen-DZfsHpZK.cjs} +3 -3
  26. package/dist/{OrdersScreen-CE6w3HTb.cjs.map → OrdersScreen-DZfsHpZK.cjs.map} +1 -1
  27. package/dist/{ProfileScreen-Bjs-nBKq.cjs → ProfileScreen-B8Df2C1b.cjs} +3 -3
  28. package/dist/{ProfileScreen-Bjs-nBKq.cjs.map → ProfileScreen-B8Df2C1b.cjs.map} +1 -1
  29. package/dist/{ProfileScreen-CpPCRKK7.cjs → ProfileScreen-DYNeWfwK.cjs} +4 -4
  30. package/dist/{ProfileScreen-D7n2kWsy.mjs → ProfileScreen-DsFhKUi2.mjs} +4 -4
  31. package/dist/{ProfileScreen-W3mNfSGX.mjs → ProfileScreen-OH5UYO9J.mjs} +3 -3
  32. package/dist/{ProfileScreen-W3mNfSGX.mjs.map → ProfileScreen-OH5UYO9J.mjs.map} +1 -1
  33. package/dist/{SubscriptionsScreen-DdJKVEEk.cjs → SubscriptionsScreen-C0s1Dy_5.cjs} +4 -4
  34. package/dist/{SubscriptionsScreen-zlS5PXyR.mjs → SubscriptionsScreen-CJheY605.mjs} +4 -4
  35. package/dist/{SubscriptionsScreen-zlS5PXyR.mjs.map → SubscriptionsScreen-CJheY605.mjs.map} +1 -1
  36. package/dist/{SubscriptionsScreen-o3DKCuSN.mjs → SubscriptionsScreen-D0wBR3ji.mjs} +4 -4
  37. package/dist/{SubscriptionsScreen-C-v8uneR.cjs → SubscriptionsScreen-DplufOOc.cjs} +4 -4
  38. package/dist/{SubscriptionsScreen-C-v8uneR.cjs.map → SubscriptionsScreen-DplufOOc.cjs.map} +1 -1
  39. package/dist/index.cjs +18 -18
  40. package/dist/index.d.cts +309 -1
  41. package/dist/index.d.cts.map +1 -1
  42. package/dist/index.d.mts +309 -1
  43. package/dist/index.d.mts.map +1 -1
  44. package/dist/index.mjs +18 -18
  45. package/dist/task-composer-form-DDzxr6_A.cjs.map +1 -1
  46. package/dist/task-composer-form-DTHeuJ9-.mjs.map +1 -1
  47. package/dist/{use-portal-card-add-3ds-flow-gj_LSjop.mjs → use-portal-card-add-3ds-flow-ps5Lr2c3.mjs} +2 -2
  48. package/dist/{use-portal-card-add-3ds-flow-gj_LSjop.mjs.map → use-portal-card-add-3ds-flow-ps5Lr2c3.mjs.map} +1 -1
  49. package/dist/{use-portal-card-add-3ds-flow-BEZtTxel.cjs → use-portal-card-add-3ds-flow-r2akoTNE.cjs} +2 -2
  50. package/dist/{use-portal-card-add-3ds-flow-BEZtTxel.cjs.map → use-portal-card-add-3ds-flow-r2akoTNE.cjs.map} +1 -1
  51. package/package.json +19 -19
  52. package/dist/MessagingScreen-CkTXrFJI.cjs.map +0 -1
  53. package/dist/MessagingScreen-D0elghP1.mjs.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import "./src-BfINy9nC.mjs";
2
2
  import "./account-api-context-8vg35E7d.mjs";
3
3
  import "./Combobox-D8ukt9Tb.mjs";
4
- import { n as contactsScreenPropertySchema, t as ContactsScreen } from "./ContactsScreen-C5WtXbuk.mjs";
5
- import "./ContactsTranslationBridge-7hUvizHe.mjs";
4
+ import { n as contactsScreenPropertySchema, t as ContactsScreen } from "./ContactsScreen-DkChLGnB.mjs";
5
+ import "./ContactsTranslationBridge-B4SlrRSR.mjs";
6
6
  import "./MobileBottomSheet-BKm3ysnd.mjs";
7
7
  import "./static-dict-adapter-DUyazFbx.mjs";
8
8
  import "./translation-api-context-factory-BTpIuUF0.mjs";
@@ -1,8 +1,8 @@
1
1
  require("./chunk-9hOWP6kD.cjs");
2
2
  require("./account-api-context-CrShCYnN.cjs");
3
3
  require("./Combobox-CReJLJfk.cjs");
4
- const require_ContactsScreen = require("./ContactsScreen-DeXNeKhZ.cjs");
5
- require("./ContactsTranslationBridge-MTW9WS-j.cjs");
4
+ const require_ContactsScreen = require("./ContactsScreen-C3ccWqAe.cjs");
5
+ require("./ContactsTranslationBridge-C7Q9rpKH.cjs");
6
6
  require("./MobileBottomSheet-HzfAr8dE.cjs");
7
7
  require("./static-dict-adapter-BCgoKiVT.cjs");
8
8
  require("./translation-api-context-factory-mbsJk2UU.cjs");
@@ -1,6 +1,6 @@
1
1
  import { An as Separator2, B as FormLabel, C as SheetTitle, D as SelectItem, Dn as Item2, E as SelectContent, En as Content2, F as IconButton, G as DropdownMenuContent, H as Label, K as DropdownMenuItem, L as FormControl, Mn as SubContent2, N as Input, Nn as SubTrigger2, O as SelectTrigger, On as Portal2, Pn as Trigger, R as FormField, Rn as useZodForm, S as SheetHeader, T as Select, Tn as Button, U as DropdownMenu, V as FormMessage, _ as Skeleton, _n as BreadcrumbLink, at as DialogFooter, b as SheetDescription, bn as BreadcrumbSeparator, c as TabsContent, dt as Popover, et as DropdownMenuTrigger, ft as PopoverContent, gn as BreadcrumbItem, hn as Breadcrumb, jn as Sub2, k as SelectValue, kn as Root2, l as TabsList, m as fluidToast, p as Spinner, pt as PopoverTrigger, s as Tabs, u as TabsTrigger, v as Sheet, vn as BreadcrumbList, x as SheetFooter, y as SheetContent, yn as BreadcrumbPage, z as FormItem, zn as cn } from "./src-BfINy9nC.mjs";
2
2
  import { r as useCountriesApi, t as Combobox } from "./Combobox-D8ukt9Tb.mjs";
3
- import { n as PortalContactsApiProvider, t as ContactsTranslationBridge } from "./ContactsTranslationBridge-7hUvizHe.mjs";
3
+ import { n as PortalContactsApiProvider, t as ContactsTranslationBridge } from "./ContactsTranslationBridge-B4SlrRSR.mjs";
4
4
  import { n as useIsMobile$1, t as MobileBottomSheet } from "./MobileBottomSheet-BKm3ysnd.mjs";
5
5
  import { a as useActiveLocale } from "./static-dict-adapter-DUyazFbx.mjs";
6
6
  import { _ as useGroupsApi, c as isAllDay, d as parseTaskBody, g as useContactsCrud, i as contactsKeys, l as toDateInputValue, m as useOptionalContactsTranslation, n as useInfiniteContacts, p as useContactsTranslation, r as CONTACTS_QUERY_KEYS, s as formatDateForDisplay, t as TaskComposerForm, u as startOfLocalDay, v as useNotesApi, y as useTasksApi } from "./task-composer-form-DTHeuJ9-.mjs";
@@ -4879,7 +4879,7 @@ function ContactCreateView({ onNavigate, onCreateContact, asSheet = false }) {
4879
4879
  })
4880
4880
  });
4881
4881
  }
4882
- function ContactsScreen({ onContactSelect, onCreateContact, background, textColor, accentColor, padding, borderRadius, defaultViewMode, ...divProps }) {
4882
+ function ContactsScreen({ api, onContactSelect, onCreateContact, background, textColor, accentColor, padding, borderRadius, defaultViewMode, ...divProps }) {
4883
4883
  const { currentSlug, navigate } = useAppNavigation();
4884
4884
  const contactsBaseSlug = useMemo(() => getContactsBaseSlug(currentSlug), [currentSlug]);
4885
4885
  const { nav, subPage } = useMemo(() => resolveContactsRouteState(currentSlug), [currentSlug]);
@@ -4931,41 +4931,44 @@ function ContactsScreen({ onContactSelect, onCreateContact, background, textColo
4931
4931
  }, []);
4932
4932
  const createViewOpen = mobileCreateOpen || nav.view === "new";
4933
4933
  const showBrowseView = isMobile || !createViewOpen;
4934
- return /* @__PURE__ */ jsx(ContactsTranslationBridge, { children: /* @__PURE__ */ jsx(PortalContactsApiProvider, { children: /* @__PURE__ */ jsxs("div", {
4935
- ...divProps,
4936
- className: cn("h-full", divProps.className),
4937
- children: [subPage === "manage-groups" ? /* @__PURE__ */ jsx(GroupsManagePage, {
4938
- onBack: () => navigate(contactsBaseSlug),
4939
- onSelectContact: (contactId) => {
4940
- setHighlightContactId(contactId);
4941
- navigate(buildContactsSlug(contactsBaseSlug, {
4942
- view: "browse",
4943
- selectedContactId: contactId
4944
- }));
4945
- },
4946
- showMobileBackButton: false
4947
- }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [showBrowseView ? /* @__PURE__ */ jsx(ContactBrowseView, {
4948
- selectedContactId: nav.view === "browse" ? nav.selectedContactId : null,
4949
- highlightContactId,
4950
- onSelect: handleSelect,
4951
- onAdd: handleAdd,
4952
- onManageGroups: handleManageGroups,
4953
- onCreateGroup: handleCreateGroup,
4954
- highlightGroupName,
4955
- showMobileDetailBackButton: false
4956
- }) : null, createViewOpen ? /* @__PURE__ */ jsx(ContactCreateView, {
4957
- asSheet: isMobile,
4958
- onNavigate: handleCreateViewNavigate,
4959
- onCreateContact
4960
- }) : null] }), /* @__PURE__ */ jsx(GroupDialog, {
4961
- mode: "create",
4962
- open: createGroupOpen,
4963
- onOpenChange: (open) => setCreateGroupOpen(open),
4964
- onGroupCreatedWithName: (name) => {
4965
- setHighlightGroupName(name);
4966
- }
4967
- }, createGroupOpen ? "open" : "closed")]
4968
- }) }) });
4934
+ return /* @__PURE__ */ jsx(ContactsTranslationBridge, { children: /* @__PURE__ */ jsx(PortalContactsApiProvider, {
4935
+ api,
4936
+ children: /* @__PURE__ */ jsxs("div", {
4937
+ ...divProps,
4938
+ className: cn("h-full", divProps.className),
4939
+ children: [subPage === "manage-groups" ? /* @__PURE__ */ jsx(GroupsManagePage, {
4940
+ onBack: () => navigate(contactsBaseSlug),
4941
+ onSelectContact: (contactId) => {
4942
+ setHighlightContactId(contactId);
4943
+ navigate(buildContactsSlug(contactsBaseSlug, {
4944
+ view: "browse",
4945
+ selectedContactId: contactId
4946
+ }));
4947
+ },
4948
+ showMobileBackButton: false
4949
+ }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [showBrowseView ? /* @__PURE__ */ jsx(ContactBrowseView, {
4950
+ selectedContactId: nav.view === "browse" ? nav.selectedContactId : null,
4951
+ highlightContactId,
4952
+ onSelect: handleSelect,
4953
+ onAdd: handleAdd,
4954
+ onManageGroups: handleManageGroups,
4955
+ onCreateGroup: handleCreateGroup,
4956
+ highlightGroupName,
4957
+ showMobileDetailBackButton: false
4958
+ }) : null, createViewOpen ? /* @__PURE__ */ jsx(ContactCreateView, {
4959
+ asSheet: isMobile,
4960
+ onNavigate: handleCreateViewNavigate,
4961
+ onCreateContact
4962
+ }) : null] }), /* @__PURE__ */ jsx(GroupDialog, {
4963
+ mode: "create",
4964
+ open: createGroupOpen,
4965
+ onOpenChange: (open) => setCreateGroupOpen(open),
4966
+ onGroupCreatedWithName: (name) => {
4967
+ setHighlightGroupName(name);
4968
+ }
4969
+ }, createGroupOpen ? "open" : "closed")]
4970
+ })
4971
+ }) });
4969
4972
  }
4970
4973
  const contactsScreenPropertySchema = {
4971
4974
  widgetType: "ContactsScreen",
@@ -4979,4 +4982,4 @@ const contactsScreenPropertySchema = {
4979
4982
  //#endregion
4980
4983
  export { contactsScreenPropertySchema as n, ContactsScreen as t };
4981
4984
 
4982
- //# sourceMappingURL=ContactsScreen-C5WtXbuk.mjs.map
4985
+ //# sourceMappingURL=ContactsScreen-DkChLGnB.mjs.map