@fluid-app/portal-sdk 0.1.244 → 0.1.245
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/{AppDownloadScreen-DQR40F0y.mjs → AppDownloadScreen-DPnbWP5G.mjs} +1 -1
- package/dist/{AppDownloadScreen-DQR40F0y.mjs.map → AppDownloadScreen-DPnbWP5G.mjs.map} +1 -1
- package/dist/{AppDownloadScreen-BXnl23_d.cjs → AppDownloadScreen-Og_iMsw5.cjs} +1 -1
- package/dist/{AppDownloadScreen-BXnl23_d.cjs.map → AppDownloadScreen-Og_iMsw5.cjs.map} +1 -1
- package/dist/{AppNavigationContext-C1-hd9Rw.cjs → AppNavigationContext-BDs1cOuG.cjs} +1 -1
- package/dist/{AppNavigationContext-C1-hd9Rw.cjs.map → AppNavigationContext-BDs1cOuG.cjs.map} +1 -1
- package/dist/{AppNavigationContext-Dvc0yoZF.mjs → AppNavigationContext-DNod9mf6.mjs} +1 -1
- package/dist/{AppNavigationContext-Dvc0yoZF.mjs.map → AppNavigationContext-DNod9mf6.mjs.map} +1 -1
- package/dist/{ContactsScreen-Cj0_VI0d.cjs → ContactsScreen-CZ2hrMqf.cjs} +6 -6
- package/dist/{ContactsScreen-Cj0_VI0d.cjs.map → ContactsScreen-CZ2hrMqf.cjs.map} +1 -1
- package/dist/{ContactsScreen-CMBERzKU.mjs → ContactsScreen-DuhDzRtI.mjs} +6 -6
- package/dist/{ContactsScreen-CMBERzKU.mjs.map → ContactsScreen-DuhDzRtI.mjs.map} +1 -1
- package/dist/{ContactsScreen-CH_P8WxC.cjs → ContactsScreen-Dv1SJNBo.cjs} +5 -5
- package/dist/{InfiniteScrollSentinel-DeIL8UkW.cjs → InfiniteScrollSentinel-BaPx1tjC.cjs} +1 -1
- package/dist/{InfiniteScrollSentinel-DeIL8UkW.cjs.map → InfiniteScrollSentinel-BaPx1tjC.cjs.map} +1 -1
- package/dist/{InfiniteScrollSentinel-B_clNL9Y.mjs → InfiniteScrollSentinel-D0XRJi51.mjs} +1 -1
- package/dist/{InfiniteScrollSentinel-B_clNL9Y.mjs.map → InfiniteScrollSentinel-D0XRJi51.mjs.map} +1 -1
- package/dist/{MessagingScreen-KYx6DSMx.cjs → MessagingScreen-BwI0RShj.cjs} +3 -3
- package/dist/{MessagingScreen-vb5P-7jP.mjs → MessagingScreen-DiSZ7fyd.mjs} +3 -3
- package/dist/{MessagingScreen-vb5P-7jP.mjs.map → MessagingScreen-DiSZ7fyd.mjs.map} +1 -1
- package/dist/{MessagingScreen-CCbgNRp1.cjs → MessagingScreen-WCeHWGlX.cjs} +5 -5
- package/dist/{MessagingScreen-CCbgNRp1.cjs.map → MessagingScreen-WCeHWGlX.cjs.map} +1 -1
- package/dist/{MySiteScreen-B_16cPgD.cjs → MySiteScreen-Bdd7a6Hy.cjs} +3 -2
- package/dist/MySiteScreen-CK84vXa9.mjs +301 -0
- package/dist/MySiteScreen-CK84vXa9.mjs.map +1 -0
- package/dist/MySiteScreen-zfajm9da.cjs +309 -0
- package/dist/MySiteScreen-zfajm9da.cjs.map +1 -0
- package/dist/{OrdersScreen-CQGCZLYf.cjs → OrdersScreen-BLs1xTv7.cjs} +4 -4
- package/dist/{OrdersScreen-BxaJw-Kq.cjs → OrdersScreen-BbS7Alby.cjs} +3 -3
- package/dist/{OrdersScreen-BxaJw-Kq.cjs.map → OrdersScreen-BbS7Alby.cjs.map} +1 -1
- package/dist/{OrdersScreen-CPKRShbP.mjs → OrdersScreen-b-ZC4_NI.mjs} +3 -3
- package/dist/{OrdersScreen-CPKRShbP.mjs.map → OrdersScreen-b-ZC4_NI.mjs.map} +1 -1
- package/dist/{PortalProductsApiProvider-BIZg_c4Y.mjs → PortalProductsApiProvider-BFdHFvog.mjs} +1 -1
- package/dist/{PortalProductsApiProvider-BIZg_c4Y.mjs.map → PortalProductsApiProvider-BFdHFvog.mjs.map} +1 -1
- package/dist/{PortalProductsApiProvider-DL8nl7To.cjs → PortalProductsApiProvider-CkS7OIGt.cjs} +1 -1
- package/dist/{PortalProductsApiProvider-DL8nl7To.cjs.map → PortalProductsApiProvider-CkS7OIGt.cjs.map} +1 -1
- package/dist/{ProfileScreen-BT0iys-q.cjs → ProfileScreen-BfvdQa0q.cjs} +114 -33
- package/dist/ProfileScreen-BfvdQa0q.cjs.map +1 -0
- package/dist/{ProfileScreen-CZAIUM2a.mjs → ProfileScreen-CRLf8oDe.mjs} +116 -35
- package/dist/ProfileScreen-CRLf8oDe.mjs.map +1 -0
- package/dist/{ProfileScreen-CKcdtroU.cjs → ProfileScreen-Za3ZIWPO.cjs} +4 -2
- package/dist/{SearchSort-CeJqRK2c.cjs → SearchSort-BP2ktxyN.cjs} +1 -1
- package/dist/{SearchSort-CeJqRK2c.cjs.map → SearchSort-BP2ktxyN.cjs.map} +1 -1
- package/dist/{SearchSort-CFHU38Er.mjs → SearchSort-CokMCrhy.mjs} +1 -1
- package/dist/{SearchSort-CFHU38Er.mjs.map → SearchSort-CokMCrhy.mjs.map} +1 -1
- package/dist/{ShareablesScreen-sieWBlAl.mjs → ShareablesScreen-BZZ-RT71.mjs} +8 -8
- package/dist/{ShareablesScreen-sieWBlAl.mjs.map → ShareablesScreen-BZZ-RT71.mjs.map} +1 -1
- package/dist/{ShareablesScreen-A69L0Nok.cjs → ShareablesScreen-BxOKbuuU.cjs} +20 -20
- package/dist/{ShareablesScreen-A69L0Nok.cjs.map → ShareablesScreen-BxOKbuuU.cjs.map} +1 -1
- package/dist/{ShareablesScreen-BUYG-mjj.cjs → ShareablesScreen-CsDxLODp.cjs} +7 -7
- package/dist/{ShopScreen-sLUTgIcQ.mjs → ShopScreen-BG1pxd2D.mjs} +4 -4
- package/dist/{ShopScreen-sLUTgIcQ.mjs.map → ShopScreen-BG1pxd2D.mjs.map} +1 -1
- package/dist/{ShopScreen-DVpCo-OV.cjs → ShopScreen-BigHJ5wE.cjs} +3 -3
- package/dist/{ShopScreen-Dm85_rMp.cjs → ShopScreen-S6rBaoWM.cjs} +4 -4
- package/dist/{ShopScreen-Dm85_rMp.cjs.map → ShopScreen-S6rBaoWM.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-DrDSwMXS.cjs → SubscriptionsScreen-B88_dLfE.cjs} +9 -9
- package/dist/{SubscriptionsScreen-DrDSwMXS.cjs.map → SubscriptionsScreen-B88_dLfE.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-CXM2zmF7.mjs → SubscriptionsScreen-DK9-h3Cz.mjs} +8 -8
- package/dist/{SubscriptionsScreen-CXM2zmF7.mjs.map → SubscriptionsScreen-DK9-h3Cz.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-t5wtDGfB.cjs → SubscriptionsScreen-dhnfYn4L.cjs} +5 -5
- package/dist/{UpgradeScreen-DUvg-WZv.cjs → UpgradeScreen-Bl9lb32K.cjs} +1 -1
- package/dist/{UpgradeScreen-DAKe_hiv.cjs → UpgradeScreen-C-hFDAR2.cjs} +1 -1
- package/dist/{UpgradeScreen-DAKe_hiv.cjs.map → UpgradeScreen-C-hFDAR2.cjs.map} +1 -1
- package/dist/{UpgradeScreen-DnGnWVTf.mjs → UpgradeScreen-X6j0_625.mjs} +1 -1
- package/dist/{UpgradeScreen-DnGnWVTf.mjs.map → UpgradeScreen-X6j0_625.mjs.map} +1 -1
- package/dist/{MySiteScreen-CUyJteDm.cjs → components-BKADyCYp.cjs} +42 -466
- package/dist/components-BKADyCYp.cjs.map +1 -0
- package/dist/{MySiteScreen-CN0ZDBgy.mjs → components-CjgEvBYG.mjs} +6 -470
- package/dist/components-CjgEvBYG.mjs.map +1 -0
- package/dist/{dist-PbA1vxAz.mjs → dist-BstXVe25.mjs} +1 -1
- package/dist/{dist-PbA1vxAz.mjs.map → dist-BstXVe25.mjs.map} +1 -1
- package/dist/{dist-o2cjwzIa.mjs → dist-CTLDCXCc.mjs} +2 -2
- package/dist/{dist-o2cjwzIa.mjs.map → dist-CTLDCXCc.mjs.map} +1 -1
- package/dist/{dist-BQZkLGL6.cjs → dist-DJAHGHHi.cjs} +1 -19
- package/dist/{dist-BQZkLGL6.cjs.map → dist-DJAHGHHi.cjs.map} +1 -1
- package/dist/{dist-DbRTQ2QF.cjs → dist-D_3_ZuC5.cjs} +1 -1
- package/dist/{dist-DbRTQ2QF.cjs.map → dist-D_3_ZuC5.cjs.map} +1 -1
- package/dist/{dist-myuZC8sf.cjs → dist-vhBaFZ9L.cjs} +2 -2
- package/dist/{dist-myuZC8sf.cjs.map → dist-vhBaFZ9L.cjs.map} +1 -1
- package/dist/{es-UfEBhcZD.cjs → es-B5heQ57j.cjs} +1 -1
- package/dist/{es-UfEBhcZD.cjs.map → es-B5heQ57j.cjs.map} +1 -1
- package/dist/{fluid-pay-api-adapter-eNT8m0xB.mjs → fluid-pay-api-adapter-CJ7-I8k-.mjs} +673 -381
- package/dist/fluid-pay-api-adapter-CJ7-I8k-.mjs.map +1 -0
- package/dist/{fluid-pay-api-adapter-BszgrFL6.cjs → fluid-pay-api-adapter-D63KLi5c.cjs} +700 -378
- package/dist/fluid-pay-api-adapter-D63KLi5c.cjs.map +1 -0
- package/dist/{format-CytB2M00.cjs → format-CLUjV1oR.cjs} +1 -1
- package/dist/{format-CytB2M00.cjs.map → format-CLUjV1oR.cjs.map} +1 -1
- package/dist/index.cjs +51 -116
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +50 -115
- package/dist/index.mjs.map +1 -1
- package/dist/{order-status-badge-DHyaK6mU.cjs → order-status-badge-BKvLeVsM.cjs} +3 -3
- package/dist/{order-status-badge-DHyaK6mU.cjs.map → order-status-badge-BKvLeVsM.cjs.map} +1 -1
- package/dist/{order-status-badge-Dmo8lLnt.mjs → order-status-badge-xuJ732eH.mjs} +3 -3
- package/dist/{order-status-badge-Dmo8lLnt.mjs.map → order-status-badge-xuJ732eH.mjs.map} +1 -1
- package/dist/{query-keys-oQKvV4jp.mjs → query-keys-8SVs82aF.mjs} +1 -1
- package/dist/{query-keys-elu0svUd.cjs.map → query-keys-8SVs82aF.mjs.map} +1 -1
- package/dist/{query-keys-elu0svUd.cjs → query-keys-e9EEoWxN.cjs} +1 -1
- package/dist/{query-keys-oQKvV4jp.mjs.map → query-keys-e9EEoWxN.cjs.map} +1 -1
- package/dist/{sortable.esm-C8G00cCP.mjs → sortable.esm-C8riJ_zv.mjs} +2 -14
- package/dist/{sortable.esm-C8G00cCP.mjs.map → sortable.esm-C8riJ_zv.mjs.map} +1 -1
- package/dist/{use-account-C1X-VLY-.cjs → use-account-D6Z9hkDX.cjs} +2 -2
- package/dist/{use-account-C1X-VLY-.cjs.map → use-account-D6Z9hkDX.cjs.map} +1 -1
- package/dist/{use-account-C76sphlu.mjs → use-account-DsTz5BlS.mjs} +2 -2
- package/dist/{use-account-C76sphlu.mjs.map → use-account-DsTz5BlS.mjs.map} +1 -1
- package/package.json +11 -10
- package/styles/packages.css +1 -0
- package/dist/MySiteScreen-CN0ZDBgy.mjs.map +0 -1
- package/dist/MySiteScreen-CUyJteDm.cjs.map +0 -1
- package/dist/ProfileScreen-BT0iys-q.cjs.map +0 -1
- package/dist/ProfileScreen-CZAIUM2a.mjs.map +0 -1
- package/dist/fluid-pay-api-adapter-BszgrFL6.cjs.map +0 -1
- package/dist/fluid-pay-api-adapter-eNT8m0xB.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -25,8 +25,8 @@ import "./MediaRenderer-DMdb_5xw.mjs";
|
|
|
25
25
|
import { r as carouselWidgetPropertySchema, t as CarouselWidget } from "./CarouselWidget-Cn5P4FVN.mjs";
|
|
26
26
|
import { r as catchUpWidgetPropertySchema, t as CatchUpWidget } from "./CatchUpWidget-B9CI7lq0.mjs";
|
|
27
27
|
import { At as CardTitle, C as Skeleton$1, Dn as Button, Dt as CardDescription, Fn as cn$1, Ot as CardFooter, _t as CollapsibleContent, gt as Collapsible, ht as PopoverTrigger, kt as CardHeader, mt as PopoverContent, pt as Popover, vt as CollapsibleTrigger, wt as Card, x as Toaster } from "./src-pgBBOcJa.mjs";
|
|
28
|
-
import { a as useMessagingConfig, i as createFluidFileUploader, o as useMessagingAuth, r as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-
|
|
29
|
-
import { r as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-
|
|
28
|
+
import { a as useMessagingConfig, i as createFluidFileUploader, o as useMessagingAuth, r as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-DiSZ7fyd.mjs";
|
|
29
|
+
import { r as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-DK9-h3Cz.mjs";
|
|
30
30
|
import { r as chartWidgetPropertySchema, t as ChartWidget } from "./ChartWidget-obje-Xj9.mjs";
|
|
31
31
|
import { r as containerWidgetPropertySchema, t as ContainerWidget } from "./ContainerWidget-DNenbORS.mjs";
|
|
32
32
|
import { r as imageWidgetPropertySchema, t as ImageWidget } from "./ImageWidget-vNWT_O1E.mjs";
|
|
@@ -47,24 +47,25 @@ import { r as videoWidgetPropertySchema, t as VideoWidget } from "./VideoWidget-
|
|
|
47
47
|
import { i as useScreenHeaderContext, t as ScreenHeaderProvider } from "./ScreenHeaderContext-Cemdo7bM.mjs";
|
|
48
48
|
import { t as useStore } from "./use-store-C2KBIS41.mjs";
|
|
49
49
|
import { i as CoreScreenPlaceholder, r as customersScreenPropertySchema, t as CustomersScreen } from "./CustomersScreen-BJOBG5f5.mjs";
|
|
50
|
-
import {
|
|
51
|
-
import { t as
|
|
52
|
-
import "./fluid-pay-api-adapter-
|
|
53
|
-
import
|
|
54
|
-
import "./
|
|
55
|
-
import { r as
|
|
56
|
-
import "./
|
|
57
|
-
import "./
|
|
58
|
-
import "./
|
|
59
|
-
import "./
|
|
60
|
-
import
|
|
61
|
-
import "./
|
|
62
|
-
import { r as
|
|
63
|
-
import { r as
|
|
64
|
-
import "./
|
|
65
|
-
import
|
|
66
|
-
import "./
|
|
67
|
-
import "./
|
|
50
|
+
import { t as useAccount } from "./use-account-DsTz5BlS.mjs";
|
|
51
|
+
import { n as useAppNavigation, t as AppNavigationProvider } from "./AppNavigationContext-DNod9mf6.mjs";
|
|
52
|
+
import "./fluid-pay-api-adapter-CJ7-I8k-.mjs";
|
|
53
|
+
import "./sortable.esm-C8riJ_zv.mjs";
|
|
54
|
+
import "./components-CjgEvBYG.mjs";
|
|
55
|
+
import { r as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-CRLf8oDe.mjs";
|
|
56
|
+
import "./dist-BstXVe25.mjs";
|
|
57
|
+
import { r as contactsScreenPropertySchema, t as ContactsScreen } from "./ContactsScreen-DuhDzRtI.mjs";
|
|
58
|
+
import "./SearchSort-CokMCrhy.mjs";
|
|
59
|
+
import "./InfiniteScrollSentinel-D0XRJi51.mjs";
|
|
60
|
+
import "./dist-CTLDCXCc.mjs";
|
|
61
|
+
import "./order-status-badge-xuJ732eH.mjs";
|
|
62
|
+
import { r as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-b-ZC4_NI.mjs";
|
|
63
|
+
import { r as mySiteScreenPropertySchema, t as MySiteScreen } from "./MySiteScreen-CK84vXa9.mjs";
|
|
64
|
+
import { r as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-BZZ-RT71.mjs";
|
|
65
|
+
import "./PortalProductsApiProvider-BFdHFvog.mjs";
|
|
66
|
+
import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-BG1pxd2D.mjs";
|
|
67
|
+
import "./UpgradeScreen-X6j0_625.mjs";
|
|
68
|
+
import "./AppDownloadScreen-DPnbWP5G.mjs";
|
|
68
69
|
import * as React$1 from "react";
|
|
69
70
|
import { Component, StrictMode, Suspense, createContext, forwardRef, lazy, memo, useCallback, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
70
71
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
@@ -1167,7 +1168,7 @@ function ScreenHeader({ title }) {
|
|
|
1167
1168
|
}
|
|
1168
1169
|
//#endregion
|
|
1169
1170
|
//#region ../react/src/components/RepIcon.tsx
|
|
1170
|
-
const ICON_MAP
|
|
1171
|
+
const ICON_MAP = {
|
|
1171
1172
|
"address-card": ContactRound,
|
|
1172
1173
|
"arrows-repeat": Repeat,
|
|
1173
1174
|
bell: Bell,
|
|
@@ -1203,7 +1204,7 @@ const ICON_MAP$1 = {
|
|
|
1203
1204
|
users: Users
|
|
1204
1205
|
};
|
|
1205
1206
|
function RepIcon({ name, className }) {
|
|
1206
|
-
return /* @__PURE__ */ jsx(ICON_MAP
|
|
1207
|
+
return /* @__PURE__ */ jsx(ICON_MAP[name] ?? File, { className });
|
|
1207
1208
|
}
|
|
1208
1209
|
//#endregion
|
|
1209
1210
|
//#region ../core/src/navigation/navigation-storage.ts
|
|
@@ -1864,19 +1865,6 @@ function SdkCompanySwitcher() {
|
|
|
1864
1865
|
});
|
|
1865
1866
|
}
|
|
1866
1867
|
//#endregion
|
|
1867
|
-
//#region ../core/src/navigation/account-manage.ts
|
|
1868
|
-
const ACCOUNT_MANAGE_SLUGS = [
|
|
1869
|
-
"profile",
|
|
1870
|
-
"orders",
|
|
1871
|
-
"subscriptions"
|
|
1872
|
-
];
|
|
1873
|
-
/** Account manage tabs with labels derived from SYSTEM_NAVIGATION_ITEMS. */
|
|
1874
|
-
const ACCOUNT_MANAGE_TABS = ACCOUNT_MANAGE_SLUGS.map((slug) => ({
|
|
1875
|
-
key: slug,
|
|
1876
|
-
label: SYSTEM_NAVIGATION_ITEMS[slug].label,
|
|
1877
|
-
slug
|
|
1878
|
-
}));
|
|
1879
|
-
//#endregion
|
|
1880
1868
|
//#region src/shell/go-back-or-home.ts
|
|
1881
1869
|
/**
|
|
1882
1870
|
* Navigate one step back in the browser history if anything is on the stack;
|
|
@@ -2023,66 +2011,18 @@ function BuilderScreenViewImpl({ screen, className }) {
|
|
|
2023
2011
|
}
|
|
2024
2012
|
const BuilderScreenView = memo(BuilderScreenViewImpl);
|
|
2025
2013
|
//#endregion
|
|
2026
|
-
//#region src/account/account-management-layout.tsx
|
|
2027
|
-
const ICON_MAP = {
|
|
2028
|
-
profile: User,
|
|
2029
|
-
orders: PackageOpen,
|
|
2030
|
-
subscriptions: Repeat
|
|
2031
|
-
};
|
|
2032
|
-
const NAV_ITEMS = ACCOUNT_MANAGE_TABS.map((tab) => ({
|
|
2033
|
-
...tab,
|
|
2034
|
-
icon: ICON_MAP[tab.key]
|
|
2035
|
-
}));
|
|
2036
|
-
function getActiveTab(slug) {
|
|
2037
|
-
const root = slug.split("/")[0];
|
|
2038
|
-
if (root === "orders") return "orders";
|
|
2039
|
-
if (root === "subscriptions") return "subscriptions";
|
|
2040
|
-
return "profile";
|
|
2041
|
-
}
|
|
2042
|
-
function AccountManageLayout({ children }) {
|
|
2043
|
-
const { currentSlug, navigate } = useAppNavigation();
|
|
2044
|
-
const activeTab = getActiveTab(currentSlug);
|
|
2045
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
2046
|
-
className: "flex flex-col md:flex-row",
|
|
2047
|
-
children: [
|
|
2048
|
-
/* @__PURE__ */ jsx("nav", {
|
|
2049
|
-
className: "flex gap-1 overflow-x-auto border-b px-4 py-2 md:hidden",
|
|
2050
|
-
children: NAV_ITEMS.map(({ key, slug, label, icon: Icon }) => /* @__PURE__ */ jsxs("button", {
|
|
2051
|
-
type: "button",
|
|
2052
|
-
onClick: () => navigate(slug),
|
|
2053
|
-
className: `flex items-center gap-2 rounded-md px-3 py-2 text-sm font-medium whitespace-nowrap ${activeTab === key ? "bg-sidebar-primary text-sidebar-primary-foreground" : "hover:bg-sidebar-primary hover:text-sidebar-primary-foreground"}`,
|
|
2054
|
-
children: [/* @__PURE__ */ jsx(Icon, { className: "h-4 w-4" }), label]
|
|
2055
|
-
}, key))
|
|
2056
|
-
}),
|
|
2057
|
-
/* @__PURE__ */ jsx("nav", {
|
|
2058
|
-
className: "hidden w-48 shrink-0 flex-col gap-1 p-4 md:flex",
|
|
2059
|
-
children: NAV_ITEMS.map(({ key, slug, label, icon: Icon }) => /* @__PURE__ */ jsxs("button", {
|
|
2060
|
-
type: "button",
|
|
2061
|
-
onClick: () => navigate(slug),
|
|
2062
|
-
className: `flex items-center gap-2 rounded-md px-3 py-2 text-left text-sm font-medium ${activeTab === key ? "bg-sidebar-primary text-sidebar-primary-foreground" : "hover:bg-sidebar-primary hover:text-sidebar-primary-foreground"}`,
|
|
2063
|
-
children: [/* @__PURE__ */ jsx(Icon, { className: "h-4 w-4" }), label]
|
|
2064
|
-
}, key))
|
|
2065
|
-
}),
|
|
2066
|
-
/* @__PURE__ */ jsx("div", {
|
|
2067
|
-
className: "min-w-0 flex-1",
|
|
2068
|
-
children
|
|
2069
|
-
})
|
|
2070
|
-
]
|
|
2071
|
-
});
|
|
2072
|
-
}
|
|
2073
|
-
//#endregion
|
|
2074
2014
|
//#region src/shell/system-screen-map.ts
|
|
2075
|
-
const ProfileScreen$1 = lazy(() => import("./ProfileScreen-
|
|
2076
|
-
const OrdersScreen$1 = lazy(() => import("./OrdersScreen-
|
|
2077
|
-
const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-
|
|
2078
|
-
const MessagingScreen$1 = lazy(() => import("./MessagingScreen-
|
|
2079
|
-
const ContactsScreen$1 = lazy(() => import("./ContactsScreen-
|
|
2080
|
-
const ShopScreen$1 = lazy(() => import("./ShopScreen-
|
|
2015
|
+
const ProfileScreen$1 = lazy(() => import("./ProfileScreen-CRLf8oDe.mjs").then((n) => n.n).then((m) => ({ default: m.ProfileScreen })));
|
|
2016
|
+
const OrdersScreen$1 = lazy(() => import("./OrdersScreen-b-ZC4_NI.mjs").then((n) => n.n).then((m) => ({ default: m.OrdersScreen })));
|
|
2017
|
+
const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-DK9-h3Cz.mjs").then((n) => n.n).then((m) => ({ default: m.SubscriptionsScreen })));
|
|
2018
|
+
const MessagingScreen$1 = lazy(() => import("./MessagingScreen-DiSZ7fyd.mjs").then((n) => n.n).then((m) => ({ default: m.MessagingScreen })));
|
|
2019
|
+
const ContactsScreen$1 = lazy(() => import("./ContactsScreen-DuhDzRtI.mjs").then((n) => n.n).then((m) => ({ default: m.ContactsScreen })));
|
|
2020
|
+
const ShopScreen$1 = lazy(() => import("./ShopScreen-BG1pxd2D.mjs").then((n) => n.n).then((m) => ({ default: m.ShopScreen })));
|
|
2081
2021
|
const CustomersScreen$1 = lazy(() => import("./CustomersScreen-BJOBG5f5.mjs").then((n) => n.n).then((m) => ({ default: m.CustomersScreen })));
|
|
2082
|
-
const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-
|
|
2083
|
-
const MySiteScreen$1 = lazy(() => import("./MySiteScreen-
|
|
2084
|
-
const UpgradeScreen = lazy(() => import("./UpgradeScreen-
|
|
2085
|
-
const AppDownloadScreen = lazy(() => import("./AppDownloadScreen-
|
|
2022
|
+
const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-BZZ-RT71.mjs").then((n) => n.n).then((m) => ({ default: m.ShareablesScreen })));
|
|
2023
|
+
const MySiteScreen$1 = lazy(() => import("./MySiteScreen-CK84vXa9.mjs").then((n) => n.n).then((m) => ({ default: m.MySiteScreen })));
|
|
2024
|
+
const UpgradeScreen = lazy(() => import("./UpgradeScreen-X6j0_625.mjs").then((n) => n.t).then((m) => ({ default: m.UpgradeScreen })));
|
|
2025
|
+
const AppDownloadScreen = lazy(() => import("./AppDownloadScreen-DPnbWP5G.mjs").then((n) => n.t).then((m) => ({ default: m.AppDownloadScreen })));
|
|
2086
2026
|
const SYSTEM_SLUG_SCREEN_MAP = {
|
|
2087
2027
|
profile: ProfileScreen$1,
|
|
2088
2028
|
account: ProfileScreen$1,
|
|
@@ -2122,7 +2062,6 @@ function findScreenByPrefix(slug) {
|
|
|
2122
2062
|
}
|
|
2123
2063
|
//#endregion
|
|
2124
2064
|
//#region src/shell/PageRouter.tsx
|
|
2125
|
-
const ACCOUNT_SLUGS = new Set([...ACCOUNT_MANAGE_SLUGS, "account"]);
|
|
2126
2065
|
/**
|
|
2127
2066
|
* Returns true if any nav slug resolves to the given system screen component.
|
|
2128
2067
|
* Lets detail routes (e.g. `share/product/:id`) render when their listing
|
|
@@ -2171,17 +2110,13 @@ function PageRouter({ currentSlug, currentNavItem, customPages, screens, baseSlu
|
|
|
2171
2110
|
}
|
|
2172
2111
|
const SystemScreen = SYSTEM_SLUG_SCREEN_MAP[baseSlug] ?? findScreenByPrefix(currentSlug);
|
|
2173
2112
|
const systemScreenInNav = navSlugs === void 0 || SystemScreen !== void 0 && (ALWAYS_AVAILABLE_SYSTEM_SCREENS.has(SystemScreen) || isSystemScreenCoveredByNav(SystemScreen, navSlugs));
|
|
2174
|
-
if (SystemScreen && systemScreenInNav) {
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
});
|
|
2182
|
-
if (ACCOUNT_SLUGS.has(baseSlug)) return /* @__PURE__ */ jsx(AccountManageLayout, { children: content });
|
|
2183
|
-
return content;
|
|
2184
|
-
}
|
|
2113
|
+
if (SystemScreen && systemScreenInNav) return /* @__PURE__ */ jsx(Suspense, {
|
|
2114
|
+
fallback: /* @__PURE__ */ jsx("div", {
|
|
2115
|
+
className: "flex h-full items-center justify-center",
|
|
2116
|
+
children: /* @__PURE__ */ jsx("div", { className: "border-primary h-8 w-8 animate-spin rounded-full border-2 border-t-transparent" })
|
|
2117
|
+
}),
|
|
2118
|
+
children: /* @__PURE__ */ jsx(SystemScreen, {})
|
|
2119
|
+
});
|
|
2185
2120
|
if (isSystemNavigationItem(baseSlug)) return /* @__PURE__ */ jsx(CoreScreenPlaceholder, { name: currentNavItem?.label ?? baseSlug });
|
|
2186
2121
|
if (builderScreen) return /* @__PURE__ */ jsx(BuilderScreenView, { screen: builderScreen });
|
|
2187
2122
|
return /* @__PURE__ */ jsx(ScreenNotFound, { name: currentNavItem?.label ?? currentSlug });
|
|
@@ -3775,17 +3710,17 @@ z.object({
|
|
|
3775
3710
|
//#endregion
|
|
3776
3711
|
//#region src/screens/index.ts
|
|
3777
3712
|
const screenPropertySchemas = {
|
|
3778
|
-
ProfileScreen: () => import("./ProfileScreen-
|
|
3779
|
-
MessagingScreen: () => import("./MessagingScreen-
|
|
3780
|
-
ContactsScreen: () => import("./ContactsScreen-
|
|
3781
|
-
OrdersScreen: () => import("./OrdersScreen-
|
|
3782
|
-
SubscriptionsScreen: () => import("./SubscriptionsScreen-
|
|
3713
|
+
ProfileScreen: () => import("./ProfileScreen-CRLf8oDe.mjs").then((n) => n.n).then((m) => m.profileScreenPropertySchema),
|
|
3714
|
+
MessagingScreen: () => import("./MessagingScreen-DiSZ7fyd.mjs").then((n) => n.n).then((m) => m.messagingScreenPropertySchema),
|
|
3715
|
+
ContactsScreen: () => import("./ContactsScreen-DuhDzRtI.mjs").then((n) => n.n).then((m) => m.contactsScreenPropertySchema),
|
|
3716
|
+
OrdersScreen: () => import("./OrdersScreen-b-ZC4_NI.mjs").then((n) => n.n).then((m) => m.ordersScreenPropertySchema),
|
|
3717
|
+
SubscriptionsScreen: () => import("./SubscriptionsScreen-DK9-h3Cz.mjs").then((n) => n.n).then((m) => m.subscriptionsScreenPropertySchema),
|
|
3783
3718
|
CustomersScreen: () => import("./CustomersScreen-BJOBG5f5.mjs").then((n) => n.n).then((m) => m.customersScreenPropertySchema),
|
|
3784
|
-
MySiteScreen: () => import("./MySiteScreen-
|
|
3785
|
-
ShareablesScreen: () => import("./ShareablesScreen-
|
|
3786
|
-
ShopScreen: () => import("./ShopScreen-
|
|
3787
|
-
UpgradeScreen: () => import("./UpgradeScreen-
|
|
3788
|
-
AppDownloadScreen: () => import("./AppDownloadScreen-
|
|
3719
|
+
MySiteScreen: () => import("./MySiteScreen-CK84vXa9.mjs").then((n) => n.n).then((m) => m.mySiteScreenPropertySchema),
|
|
3720
|
+
ShareablesScreen: () => import("./ShareablesScreen-BZZ-RT71.mjs").then((n) => n.n).then((m) => m.shareablesScreenPropertySchema),
|
|
3721
|
+
ShopScreen: () => import("./ShopScreen-BG1pxd2D.mjs").then((n) => n.n).then((m) => m.shopScreenPropertySchema),
|
|
3722
|
+
UpgradeScreen: () => import("./UpgradeScreen-X6j0_625.mjs").then((n) => n.t).then((m) => m.upgradeScreenPropertySchema),
|
|
3723
|
+
AppDownloadScreen: () => import("./AppDownloadScreen-DPnbWP5G.mjs").then((n) => n.t).then((m) => m.appDownloadScreenPropertySchema)
|
|
3789
3724
|
};
|
|
3790
3725
|
/**
|
|
3791
3726
|
* Core page template IDs
|