@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.
- package/dist/{ContactsScreen-DeXNeKhZ.cjs → ContactsScreen-C3ccWqAe.cjs} +41 -38
- package/dist/{ContactsScreen-DeXNeKhZ.cjs.map → ContactsScreen-C3ccWqAe.cjs.map} +1 -1
- package/dist/{ContactsScreen-C29wHxlb.mjs → ContactsScreen-C_UMnqhN.mjs} +2 -2
- package/dist/{ContactsScreen-xXR5SM7U.cjs → ContactsScreen-DEQAF0fC.cjs} +2 -2
- package/dist/{ContactsScreen-C5WtXbuk.mjs → ContactsScreen-DkChLGnB.mjs} +41 -38
- package/dist/{ContactsScreen-C5WtXbuk.mjs.map → ContactsScreen-DkChLGnB.mjs.map} +1 -1
- package/dist/{ContactsTranslationBridge-7hUvizHe.mjs → ContactsTranslationBridge-B4SlrRSR.mjs} +4 -3
- package/dist/{ContactsTranslationBridge-7hUvizHe.mjs.map → ContactsTranslationBridge-B4SlrRSR.mjs.map} +1 -1
- package/dist/{ContactsTranslationBridge-MTW9WS-j.cjs → ContactsTranslationBridge-C7Q9rpKH.cjs} +4 -3
- package/dist/{ContactsTranslationBridge-MTW9WS-j.cjs.map → ContactsTranslationBridge-C7Q9rpKH.cjs.map} +1 -1
- package/dist/{FluidProvider-BsFKQnUK.cjs → FluidProvider-B4msuwpR.cjs} +2 -2
- package/dist/{FluidProvider-BsFKQnUK.cjs.map → FluidProvider-B4msuwpR.cjs.map} +1 -1
- package/dist/{FluidProvider-BnzzWdqN.mjs → FluidProvider-CqFIXA9E.mjs} +2 -2
- package/dist/{FluidProvider-BnzzWdqN.mjs.map → FluidProvider-CqFIXA9E.mjs.map} +1 -1
- package/dist/{MessagingScreen-CPbJ2scr.mjs → MessagingScreen-8OZSwMYW.mjs} +3 -3
- package/dist/{MessagingScreen-Dn4YnN6I.cjs → MessagingScreen-CY8VbrOx.cjs} +3 -3
- package/dist/{MessagingScreen-CkTXrFJI.cjs → MessagingScreen-D_Y3Coa6.cjs} +38 -17
- package/dist/MessagingScreen-D_Y3Coa6.cjs.map +1 -0
- package/dist/{MessagingScreen-D0elghP1.mjs → MessagingScreen-DwU7sqzj.mjs} +38 -17
- package/dist/MessagingScreen-DwU7sqzj.mjs.map +1 -0
- package/dist/{OrdersScreen-BwrCczgL.mjs → OrdersScreen-CNYPIZBb.mjs} +3 -3
- package/dist/{OrdersScreen-Bkw8Gakq.mjs → OrdersScreen-CNzRy_gk.mjs} +3 -3
- package/dist/{OrdersScreen-Bkw8Gakq.mjs.map → OrdersScreen-CNzRy_gk.mjs.map} +1 -1
- package/dist/{OrdersScreen-DTyk0hBC.cjs → OrdersScreen-CSYdmQVZ.cjs} +3 -3
- package/dist/{OrdersScreen-CE6w3HTb.cjs → OrdersScreen-DZfsHpZK.cjs} +3 -3
- package/dist/{OrdersScreen-CE6w3HTb.cjs.map → OrdersScreen-DZfsHpZK.cjs.map} +1 -1
- package/dist/{ProfileScreen-Bjs-nBKq.cjs → ProfileScreen-B8Df2C1b.cjs} +3 -3
- package/dist/{ProfileScreen-Bjs-nBKq.cjs.map → ProfileScreen-B8Df2C1b.cjs.map} +1 -1
- package/dist/{ProfileScreen-CpPCRKK7.cjs → ProfileScreen-DYNeWfwK.cjs} +4 -4
- package/dist/{ProfileScreen-D7n2kWsy.mjs → ProfileScreen-DsFhKUi2.mjs} +4 -4
- package/dist/{ProfileScreen-W3mNfSGX.mjs → ProfileScreen-OH5UYO9J.mjs} +3 -3
- package/dist/{ProfileScreen-W3mNfSGX.mjs.map → ProfileScreen-OH5UYO9J.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-DdJKVEEk.cjs → SubscriptionsScreen-C0s1Dy_5.cjs} +4 -4
- package/dist/{SubscriptionsScreen-zlS5PXyR.mjs → SubscriptionsScreen-CJheY605.mjs} +4 -4
- package/dist/{SubscriptionsScreen-zlS5PXyR.mjs.map → SubscriptionsScreen-CJheY605.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-o3DKCuSN.mjs → SubscriptionsScreen-D0wBR3ji.mjs} +4 -4
- package/dist/{SubscriptionsScreen-C-v8uneR.cjs → SubscriptionsScreen-DplufOOc.cjs} +4 -4
- package/dist/{SubscriptionsScreen-C-v8uneR.cjs.map → SubscriptionsScreen-DplufOOc.cjs.map} +1 -1
- package/dist/index.cjs +18 -18
- package/dist/index.d.cts +309 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +309 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +18 -18
- package/dist/task-composer-form-DDzxr6_A.cjs.map +1 -1
- package/dist/task-composer-form-DTHeuJ9-.mjs.map +1 -1
- package/dist/{use-portal-card-add-3ds-flow-gj_LSjop.mjs → use-portal-card-add-3ds-flow-ps5Lr2c3.mjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-gj_LSjop.mjs.map → use-portal-card-add-3ds-flow-ps5Lr2c3.mjs.map} +1 -1
- package/dist/{use-portal-card-add-3ds-flow-BEZtTxel.cjs → use-portal-card-add-3ds-flow-r2akoTNE.cjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-BEZtTxel.cjs.map → use-portal-card-add-3ds-flow-r2akoTNE.cjs.map} +1 -1
- package/package.json +19 -19
- package/dist/MessagingScreen-CkTXrFJI.cjs.map +0 -1
- 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-
|
|
5
|
-
import "./ContactsTranslationBridge-
|
|
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-
|
|
5
|
-
require("./ContactsTranslationBridge-
|
|
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-
|
|
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, {
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
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-
|
|
4985
|
+
//# sourceMappingURL=ContactsScreen-DkChLGnB.mjs.map
|