@fluid-app/portal-sdk 0.1.524 → 0.1.525
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 +18 -18
- package/dist/MessagingScreen-CkTXrFJI.cjs.map +0 -1
- package/dist/MessagingScreen-D0elghP1.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-9hOWP6kD.cjs");
|
|
2
2
|
const require_Combobox = require("./Combobox-CReJLJfk.cjs");
|
|
3
|
-
const require_ContactsTranslationBridge = require("./ContactsTranslationBridge-
|
|
3
|
+
const require_ContactsTranslationBridge = require("./ContactsTranslationBridge-C7Q9rpKH.cjs");
|
|
4
4
|
const require_MobileBottomSheet = require("./MobileBottomSheet-HzfAr8dE.cjs");
|
|
5
5
|
const require_static_dict_adapter = require("./static-dict-adapter-BCgoKiVT.cjs");
|
|
6
6
|
const require_task_composer_form = require("./task-composer-form-DDzxr6_A.cjs");
|
|
@@ -5166,7 +5166,7 @@ function ContactCreateView({ onNavigate, onCreateContact, asSheet = false }) {
|
|
|
5166
5166
|
})
|
|
5167
5167
|
});
|
|
5168
5168
|
}
|
|
5169
|
-
function ContactsScreen({ onContactSelect, onCreateContact, background, textColor, accentColor, padding, borderRadius, defaultViewMode, ...divProps }) {
|
|
5169
|
+
function ContactsScreen({ api, onContactSelect, onCreateContact, background, textColor, accentColor, padding, borderRadius, defaultViewMode, ...divProps }) {
|
|
5170
5170
|
const { currentSlug, navigate } = require_AppNavigationContext.useAppNavigation();
|
|
5171
5171
|
const contactsBaseSlug = (0, react.useMemo)(() => getContactsBaseSlug(currentSlug), [currentSlug]);
|
|
5172
5172
|
const { nav, subPage } = (0, react.useMemo)(() => resolveContactsRouteState(currentSlug), [currentSlug]);
|
|
@@ -5218,41 +5218,44 @@ function ContactsScreen({ onContactSelect, onCreateContact, background, textColo
|
|
|
5218
5218
|
}, []);
|
|
5219
5219
|
const createViewOpen = mobileCreateOpen || nav.view === "new";
|
|
5220
5220
|
const showBrowseView = isMobile || !createViewOpen;
|
|
5221
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ContactsTranslationBridge.ContactsTranslationBridge, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ContactsTranslationBridge.PortalContactsApiProvider, {
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5221
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ContactsTranslationBridge.ContactsTranslationBridge, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ContactsTranslationBridge.PortalContactsApiProvider, {
|
|
5222
|
+
api,
|
|
5223
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
5224
|
+
...divProps,
|
|
5225
|
+
className: require_src.cn("h-full", divProps.className),
|
|
5226
|
+
children: [subPage === "manage-groups" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GroupsManagePage, {
|
|
5227
|
+
onBack: () => navigate(contactsBaseSlug),
|
|
5228
|
+
onSelectContact: (contactId) => {
|
|
5229
|
+
setHighlightContactId(contactId);
|
|
5230
|
+
navigate(buildContactsSlug(contactsBaseSlug, {
|
|
5231
|
+
view: "browse",
|
|
5232
|
+
selectedContactId: contactId
|
|
5233
|
+
}));
|
|
5234
|
+
},
|
|
5235
|
+
showMobileBackButton: false
|
|
5236
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [showBrowseView ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContactBrowseView, {
|
|
5237
|
+
selectedContactId: nav.view === "browse" ? nav.selectedContactId : null,
|
|
5238
|
+
highlightContactId,
|
|
5239
|
+
onSelect: handleSelect,
|
|
5240
|
+
onAdd: handleAdd,
|
|
5241
|
+
onManageGroups: handleManageGroups,
|
|
5242
|
+
onCreateGroup: handleCreateGroup,
|
|
5243
|
+
highlightGroupName,
|
|
5244
|
+
showMobileDetailBackButton: false
|
|
5245
|
+
}) : null, createViewOpen ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContactCreateView, {
|
|
5246
|
+
asSheet: isMobile,
|
|
5247
|
+
onNavigate: handleCreateViewNavigate,
|
|
5248
|
+
onCreateContact
|
|
5249
|
+
}) : null] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GroupDialog, {
|
|
5250
|
+
mode: "create",
|
|
5251
|
+
open: createGroupOpen,
|
|
5252
|
+
onOpenChange: (open) => setCreateGroupOpen(open),
|
|
5253
|
+
onGroupCreatedWithName: (name) => {
|
|
5254
|
+
setHighlightGroupName(name);
|
|
5255
|
+
}
|
|
5256
|
+
}, createGroupOpen ? "open" : "closed")]
|
|
5257
|
+
})
|
|
5258
|
+
}) });
|
|
5256
5259
|
}
|
|
5257
5260
|
const contactsScreenPropertySchema = {
|
|
5258
5261
|
widgetType: "ContactsScreen",
|
|
@@ -5277,4 +5280,4 @@ Object.defineProperty(exports, "contactsScreenPropertySchema", {
|
|
|
5277
5280
|
}
|
|
5278
5281
|
});
|
|
5279
5282
|
|
|
5280
|
-
//# sourceMappingURL=ContactsScreen-
|
|
5283
|
+
//# sourceMappingURL=ContactsScreen-C3ccWqAe.cjs.map
|