@fluid-app/portal-sdk 0.1.233 → 0.1.234
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/{FluidProvider-BNL_Apw2.cjs → FluidProvider-BE05KBep.cjs} +3 -2
- package/dist/FluidProvider-BE05KBep.cjs.map +1 -0
- package/dist/{FluidProvider-Dg-eouRw.mjs → FluidProvider-FtpwIsLB.mjs} +3 -2
- package/dist/FluidProvider-FtpwIsLB.mjs.map +1 -0
- package/dist/{MessagingScreen-CxpLlTW_.cjs → MessagingScreen-CKWiOb9l.cjs} +210 -105
- package/dist/MessagingScreen-CKWiOb9l.cjs.map +1 -0
- package/dist/{MessagingScreen-BMoCh4MT.cjs → MessagingScreen-CWEQmvOg.cjs} +3 -2
- package/dist/{MessagingScreen-Q17pdhUz.mjs → MessagingScreen-CWSeAq3b.mjs} +210 -105
- package/dist/MessagingScreen-CWSeAq3b.mjs.map +1 -0
- package/dist/{ProfileScreen-CHsIDbg8.mjs → ProfileScreen-Bt5GLOa5.mjs} +2 -2
- package/dist/{ProfileScreen-CHsIDbg8.mjs.map → ProfileScreen-Bt5GLOa5.mjs.map} +1 -1
- package/dist/{ProfileScreen-BSWw10cc.cjs → ProfileScreen-YqVWD0hn.cjs} +2 -2
- package/dist/{ProfileScreen-CVOS2By3.cjs → ProfileScreen-dAFNEWhY.cjs} +2 -2
- package/dist/{ProfileScreen-CVOS2By3.cjs.map → ProfileScreen-dAFNEWhY.cjs.map} +1 -1
- package/dist/{ShopScreen-CFR2O1jn.cjs → ShopScreen-C3jX_bWM.cjs} +2 -2
- package/dist/{ShopScreen-CLN8FFiL.mjs → ShopScreen-DbTrIjfp.mjs} +2 -2
- package/dist/{ShopScreen-CLN8FFiL.mjs.map → ShopScreen-DbTrIjfp.mjs.map} +1 -1
- package/dist/{ShopScreen-jk3Y3-x8.cjs → ShopScreen-DozZEXVi.cjs} +2 -2
- package/dist/{ShopScreen-jk3Y3-x8.cjs.map → ShopScreen-DozZEXVi.cjs.map} +1 -1
- package/dist/index.cjs +32 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +5 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +32 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/dist/FluidProvider-BNL_Apw2.cjs.map +0 -1
- package/dist/FluidProvider-Dg-eouRw.mjs.map +0 -1
- package/dist/MessagingScreen-CxpLlTW_.cjs.map +0 -1
- package/dist/MessagingScreen-Q17pdhUz.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./es-BkP8gyWU.mjs";
|
|
2
|
-
import { a as createScreen, c as FluidThemeProvider, f as useAppDefinitionApi, i as widgetPropertySchemas, l as useThemeContext, m as deleteDatabase, n as useFluidContext, o as createWidgetFromShareable, p as createPersister, r as DEFAULT_SDK_WIDGET_REGISTRY, s as createWidgetRegistry, t as FluidProvider } from "./FluidProvider-
|
|
2
|
+
import { a as createScreen, c as FluidThemeProvider, f as useAppDefinitionApi, i as widgetPropertySchemas, l as useThemeContext, m as deleteDatabase, n as useFluidContext, o as createWidgetFromShareable, p as createPersister, r as DEFAULT_SDK_WIDGET_REGISTRY, s as createWidgetRegistry, t as FluidProvider } from "./FluidProvider-FtpwIsLB.mjs";
|
|
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-Bk23YOtN.mjs";
|
|
4
4
|
import "./account-api-context-BIZ_aibJ.mjs";
|
|
5
5
|
import "./store-api-context-C1lXT_3d.mjs";
|
|
@@ -25,7 +25,7 @@ import "./MediaRenderer-CqUpv3St.mjs";
|
|
|
25
25
|
import { r as carouselWidgetPropertySchema, t as CarouselWidget } from "./CarouselWidget-B5a66pDc.mjs";
|
|
26
26
|
import { r as catchUpWidgetPropertySchema, t as CatchUpWidget } from "./CatchUpWidget-X2680gAn.mjs";
|
|
27
27
|
import { C as Skeleton$1, En as Button, Pn as cn$1, _t as CollapsibleContent, gt as Collapsible, ht as PopoverTrigger, mt as PopoverContent, pt as Popover, vt as CollapsibleTrigger, x as Toaster } from "./src-CCqVyAdS.mjs";
|
|
28
|
-
import { a as useMessagingConfig, i as createFluidFileUploader, o as useMessagingAuth, r as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-
|
|
28
|
+
import { a as useMessagingConfig, i as createFluidFileUploader, o as useMessagingAuth, r as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-CWSeAq3b.mjs";
|
|
29
29
|
import { r as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-CVPj6hhP.mjs";
|
|
30
30
|
import { r as chartWidgetPropertySchema, t as ChartWidget } from "./ChartWidget-ByvB8nlZ.mjs";
|
|
31
31
|
import { r as containerWidgetPropertySchema, t as ContainerWidget } from "./ContainerWidget-CN7mQWpx.mjs";
|
|
@@ -50,7 +50,7 @@ import { t as useStore } from "./use-store-By_7tzrN.mjs";
|
|
|
50
50
|
import { i as CoreScreenPlaceholder, r as customersScreenPropertySchema, t as CustomersScreen } from "./CustomersScreen-CX3P2KpF.mjs";
|
|
51
51
|
import { n as useAppNavigation, t as AppNavigationProvider } from "./AppNavigationContext-DNod9mf6.mjs";
|
|
52
52
|
import "./fluid-pay-api-adapter-Dfi0LtxL.mjs";
|
|
53
|
-
import { r as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-
|
|
53
|
+
import { r as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-Bt5GLOa5.mjs";
|
|
54
54
|
import "./dist-PbA1vxAz.mjs";
|
|
55
55
|
import { r as contactsScreenPropertySchema, t as ContactsScreen } from "./ContactsScreen-B4Ue9m5H.mjs";
|
|
56
56
|
import "./SearchSort-DN0gsmxk.mjs";
|
|
@@ -62,7 +62,7 @@ import "./sortable.esm-C8G00cCP.mjs";
|
|
|
62
62
|
import { r as mySiteScreenPropertySchema, t as MySiteScreen } from "./MySiteScreen-BBT8FN5s.mjs";
|
|
63
63
|
import { r as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-DNjpEjLv.mjs";
|
|
64
64
|
import "./PortalProductsApiProvider-BIZg_c4Y.mjs";
|
|
65
|
-
import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-
|
|
65
|
+
import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-DbTrIjfp.mjs";
|
|
66
66
|
import "./UpgradeScreen-DMxxZjj_.mjs";
|
|
67
67
|
import "./AppDownloadScreen-Dj5ZPsSb.mjs";
|
|
68
68
|
import * as React$1 from "react";
|
|
@@ -955,6 +955,7 @@ const SYSTEM_NAVIGATION_SLUGS = [
|
|
|
955
955
|
"app-download",
|
|
956
956
|
"contacts",
|
|
957
957
|
"account",
|
|
958
|
+
"messages",
|
|
958
959
|
"my-site",
|
|
959
960
|
"orders",
|
|
960
961
|
"profile",
|
|
@@ -999,6 +1000,12 @@ const SYSTEM_NAVIGATION_ITEMS = {
|
|
|
999
1000
|
icon: "circle-user",
|
|
1000
1001
|
section: "User"
|
|
1001
1002
|
},
|
|
1003
|
+
messages: {
|
|
1004
|
+
slug: "messages",
|
|
1005
|
+
label: "Messaging",
|
|
1006
|
+
icon: "message",
|
|
1007
|
+
section: "User"
|
|
1008
|
+
},
|
|
1002
1009
|
"my-site": {
|
|
1003
1010
|
slug: "my-site",
|
|
1004
1011
|
label: "My Site",
|
|
@@ -1121,6 +1128,7 @@ function getDefaultNavigation() {
|
|
|
1121
1128
|
return [
|
|
1122
1129
|
sectionHeader("We Commerce"),
|
|
1123
1130
|
systemNavItem("shop"),
|
|
1131
|
+
systemNavItem("messages"),
|
|
1124
1132
|
systemNavItem("contacts"),
|
|
1125
1133
|
systemNavItem("account"),
|
|
1126
1134
|
sectionHeader("Marketing Assets"),
|
|
@@ -2140,12 +2148,12 @@ function AccountManageLayout({ children }) {
|
|
|
2140
2148
|
}
|
|
2141
2149
|
//#endregion
|
|
2142
2150
|
//#region src/shell/system-screen-map.ts
|
|
2143
|
-
const ProfileScreen$1 = lazy(() => import("./ProfileScreen-
|
|
2151
|
+
const ProfileScreen$1 = lazy(() => import("./ProfileScreen-Bt5GLOa5.mjs").then((n) => n.n).then((m) => ({ default: m.ProfileScreen })));
|
|
2144
2152
|
const OrdersScreen$1 = lazy(() => import("./OrdersScreen-DkTGTQJZ.mjs").then((n) => n.n).then((m) => ({ default: m.OrdersScreen })));
|
|
2145
2153
|
const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-CVPj6hhP.mjs").then((n) => n.n).then((m) => ({ default: m.SubscriptionsScreen })));
|
|
2146
|
-
const MessagingScreen$1 = lazy(() => import("./MessagingScreen-
|
|
2154
|
+
const MessagingScreen$1 = lazy(() => import("./MessagingScreen-CWSeAq3b.mjs").then((n) => n.n).then((m) => ({ default: m.MessagingScreen })));
|
|
2147
2155
|
const ContactsScreen$1 = lazy(() => import("./ContactsScreen-B4Ue9m5H.mjs").then((n) => n.n).then((m) => ({ default: m.ContactsScreen })));
|
|
2148
|
-
const ShopScreen$1 = lazy(() => import("./ShopScreen-
|
|
2156
|
+
const ShopScreen$1 = lazy(() => import("./ShopScreen-DbTrIjfp.mjs").then((n) => n.n).then((m) => ({ default: m.ShopScreen })));
|
|
2149
2157
|
const CustomersScreen$1 = lazy(() => import("./CustomersScreen-CX3P2KpF.mjs").then((n) => n.n).then((m) => ({ default: m.CustomersScreen })));
|
|
2150
2158
|
const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-DNjpEjLv.mjs").then((n) => n.n).then((m) => ({ default: m.ShareablesScreen })));
|
|
2151
2159
|
const MySiteScreen$1 = lazy(() => import("./MySiteScreen-BBT8FN5s.mjs").then((n) => n.n).then((m) => ({ default: m.MySiteScreen })));
|
|
@@ -2544,14 +2552,20 @@ function AppShell({ appData: appDataProp, navigation: navigationProp, customPage
|
|
|
2544
2552
|
const content = typeof children === "function" ? children({
|
|
2545
2553
|
currentSlug: activeSlug,
|
|
2546
2554
|
currentNavItem
|
|
2547
|
-
}) : children ?? /* @__PURE__ */
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
+
}) : children ?? /* @__PURE__ */ jsx(ScreenHeaderProvider, { children: /* @__PURE__ */ jsxs("div", {
|
|
2556
|
+
className: "flex h-full flex-col",
|
|
2557
|
+
children: [/* @__PURE__ */ jsx(ScreenHeader, { title: screenTitle }), /* @__PURE__ */ jsx("div", {
|
|
2558
|
+
className: "min-h-0 flex-1",
|
|
2559
|
+
children: /* @__PURE__ */ jsx(PageRouter, {
|
|
2560
|
+
currentSlug: activeSlug,
|
|
2561
|
+
currentNavItem,
|
|
2562
|
+
customPages,
|
|
2563
|
+
screens,
|
|
2564
|
+
baseSlug,
|
|
2565
|
+
restParams
|
|
2566
|
+
})
|
|
2567
|
+
})]
|
|
2568
|
+
}) });
|
|
2555
2569
|
if (isLoading && !appData) return /* @__PURE__ */ jsx(AppShellLoading, {});
|
|
2556
2570
|
return /* @__PURE__ */ jsx(RepUserProvider, {
|
|
2557
2571
|
user: repUser,
|
|
@@ -3634,15 +3648,15 @@ z.object({
|
|
|
3634
3648
|
//#endregion
|
|
3635
3649
|
//#region src/screens/index.ts
|
|
3636
3650
|
const screenPropertySchemas = {
|
|
3637
|
-
ProfileScreen: () => import("./ProfileScreen-
|
|
3638
|
-
MessagingScreen: () => import("./MessagingScreen-
|
|
3651
|
+
ProfileScreen: () => import("./ProfileScreen-Bt5GLOa5.mjs").then((n) => n.n).then((m) => m.profileScreenPropertySchema),
|
|
3652
|
+
MessagingScreen: () => import("./MessagingScreen-CWSeAq3b.mjs").then((n) => n.n).then((m) => m.messagingScreenPropertySchema),
|
|
3639
3653
|
ContactsScreen: () => import("./ContactsScreen-B4Ue9m5H.mjs").then((n) => n.n).then((m) => m.contactsScreenPropertySchema),
|
|
3640
3654
|
OrdersScreen: () => import("./OrdersScreen-DkTGTQJZ.mjs").then((n) => n.n).then((m) => m.ordersScreenPropertySchema),
|
|
3641
3655
|
SubscriptionsScreen: () => import("./SubscriptionsScreen-CVPj6hhP.mjs").then((n) => n.n).then((m) => m.subscriptionsScreenPropertySchema),
|
|
3642
3656
|
CustomersScreen: () => import("./CustomersScreen-CX3P2KpF.mjs").then((n) => n.n).then((m) => m.customersScreenPropertySchema),
|
|
3643
3657
|
MySiteScreen: () => import("./MySiteScreen-BBT8FN5s.mjs").then((n) => n.n).then((m) => m.mySiteScreenPropertySchema),
|
|
3644
3658
|
ShareablesScreen: () => import("./ShareablesScreen-DNjpEjLv.mjs").then((n) => n.n).then((m) => m.shareablesScreenPropertySchema),
|
|
3645
|
-
ShopScreen: () => import("./ShopScreen-
|
|
3659
|
+
ShopScreen: () => import("./ShopScreen-DbTrIjfp.mjs").then((n) => n.n).then((m) => m.shopScreenPropertySchema),
|
|
3646
3660
|
UpgradeScreen: () => import("./UpgradeScreen-DMxxZjj_.mjs").then((n) => n.t).then((m) => m.upgradeScreenPropertySchema),
|
|
3647
3661
|
AppDownloadScreen: () => import("./AppDownloadScreen-Dj5ZPsSb.mjs").then((n) => n.t).then((m) => m.appDownloadScreenPropertySchema)
|
|
3648
3662
|
};
|