@fluid-app/portal-sdk 0.1.243 → 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-Cuch7aki.cjs → OrdersScreen-BLs1xTv7.cjs} +4 -4
- package/dist/{OrdersScreen-DPcp2dLW.cjs → OrdersScreen-BbS7Alby.cjs} +86 -41
- package/dist/OrdersScreen-BbS7Alby.cjs.map +1 -0
- package/dist/{OrdersScreen-BV3vJ7xy.mjs → OrdersScreen-b-ZC4_NI.mjs} +86 -41
- package/dist/OrdersScreen-b-ZC4_NI.mjs.map +1 -0
- 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 +10 -9
- package/styles/packages.css +1 -0
- package/dist/MySiteScreen-CN0ZDBgy.mjs.map +0 -1
- package/dist/MySiteScreen-CUyJteDm.cjs.map +0 -1
- package/dist/OrdersScreen-BV3vJ7xy.mjs.map +0 -1
- package/dist/OrdersScreen-DPcp2dLW.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.cjs
CHANGED
|
@@ -46,27 +46,28 @@ const require_VideoWidget = require("./VideoWidget-CDcV0J5W.cjs");
|
|
|
46
46
|
const require_ScreenHeaderContext = require("./ScreenHeaderContext-oIu5Bvhs.cjs");
|
|
47
47
|
const require_use_store = require("./use-store-D2S1FywW.cjs");
|
|
48
48
|
const require_CustomersScreen = require("./CustomersScreen-DW3BuhBs.cjs");
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const require_MessagingScreen = require("./MessagingScreen-
|
|
52
|
-
require("./fluid-pay-api-adapter-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
require("./
|
|
56
|
-
require("./
|
|
57
|
-
|
|
58
|
-
require("./
|
|
59
|
-
require("./
|
|
60
|
-
require("./
|
|
61
|
-
require("./
|
|
62
|
-
|
|
63
|
-
require("./
|
|
64
|
-
const
|
|
65
|
-
const
|
|
66
|
-
require("./
|
|
67
|
-
|
|
68
|
-
require("./
|
|
69
|
-
require("./
|
|
49
|
+
const require_use_account = require("./use-account-D6Z9hkDX.cjs");
|
|
50
|
+
const require_AppNavigationContext = require("./AppNavigationContext-BDs1cOuG.cjs");
|
|
51
|
+
const require_MessagingScreen = require("./MessagingScreen-WCeHWGlX.cjs");
|
|
52
|
+
require("./fluid-pay-api-adapter-D63KLi5c.cjs");
|
|
53
|
+
require("./dist-DJAHGHHi.cjs");
|
|
54
|
+
require("./components-BKADyCYp.cjs");
|
|
55
|
+
const require_ProfileScreen = require("./ProfileScreen-BfvdQa0q.cjs");
|
|
56
|
+
const require_SubscriptionsScreen = require("./SubscriptionsScreen-B88_dLfE.cjs");
|
|
57
|
+
require("./dist-D_3_ZuC5.cjs");
|
|
58
|
+
require("./es-B5heQ57j.cjs");
|
|
59
|
+
const require_ContactsScreen = require("./ContactsScreen-CZ2hrMqf.cjs");
|
|
60
|
+
require("./SearchSort-BP2ktxyN.cjs");
|
|
61
|
+
require("./InfiniteScrollSentinel-BaPx1tjC.cjs");
|
|
62
|
+
require("./dist-vhBaFZ9L.cjs");
|
|
63
|
+
require("./order-status-badge-BKvLeVsM.cjs");
|
|
64
|
+
const require_OrdersScreen = require("./OrdersScreen-BbS7Alby.cjs");
|
|
65
|
+
const require_MySiteScreen = require("./MySiteScreen-zfajm9da.cjs");
|
|
66
|
+
const require_ShareablesScreen = require("./ShareablesScreen-BxOKbuuU.cjs");
|
|
67
|
+
require("./PortalProductsApiProvider-CkS7OIGt.cjs");
|
|
68
|
+
const require_ShopScreen = require("./ShopScreen-S6rBaoWM.cjs");
|
|
69
|
+
require("./UpgradeScreen-C-hFDAR2.cjs");
|
|
70
|
+
require("./AppDownloadScreen-Og_iMsw5.cjs");
|
|
70
71
|
let react = require("react");
|
|
71
72
|
react = require_chunk.__toESM(react);
|
|
72
73
|
let _tanstack_react_query = require("@tanstack/react-query");
|
|
@@ -1169,7 +1170,7 @@ function ScreenHeader({ title }) {
|
|
|
1169
1170
|
}
|
|
1170
1171
|
//#endregion
|
|
1171
1172
|
//#region ../react/src/components/RepIcon.tsx
|
|
1172
|
-
const ICON_MAP
|
|
1173
|
+
const ICON_MAP = {
|
|
1173
1174
|
"address-card": lucide_react.ContactRound,
|
|
1174
1175
|
"arrows-repeat": lucide_react.Repeat,
|
|
1175
1176
|
bell: lucide_react.Bell,
|
|
@@ -1205,7 +1206,7 @@ const ICON_MAP$1 = {
|
|
|
1205
1206
|
users: lucide_react.Users
|
|
1206
1207
|
};
|
|
1207
1208
|
function RepIcon({ name, className }) {
|
|
1208
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ICON_MAP
|
|
1209
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ICON_MAP[name] ?? lucide_react.File, { className });
|
|
1209
1210
|
}
|
|
1210
1211
|
//#endregion
|
|
1211
1212
|
//#region ../core/src/navigation/navigation-storage.ts
|
|
@@ -1866,19 +1867,6 @@ function SdkCompanySwitcher() {
|
|
|
1866
1867
|
});
|
|
1867
1868
|
}
|
|
1868
1869
|
//#endregion
|
|
1869
|
-
//#region ../core/src/navigation/account-manage.ts
|
|
1870
|
-
const ACCOUNT_MANAGE_SLUGS = [
|
|
1871
|
-
"profile",
|
|
1872
|
-
"orders",
|
|
1873
|
-
"subscriptions"
|
|
1874
|
-
];
|
|
1875
|
-
/** Account manage tabs with labels derived from SYSTEM_NAVIGATION_ITEMS. */
|
|
1876
|
-
const ACCOUNT_MANAGE_TABS = ACCOUNT_MANAGE_SLUGS.map((slug) => ({
|
|
1877
|
-
key: slug,
|
|
1878
|
-
label: SYSTEM_NAVIGATION_ITEMS[slug].label,
|
|
1879
|
-
slug
|
|
1880
|
-
}));
|
|
1881
|
-
//#endregion
|
|
1882
1870
|
//#region src/shell/go-back-or-home.ts
|
|
1883
1871
|
/**
|
|
1884
1872
|
* Navigate one step back in the browser history if anything is on the stack;
|
|
@@ -2025,66 +2013,18 @@ function BuilderScreenViewImpl({ screen, className }) {
|
|
|
2025
2013
|
}
|
|
2026
2014
|
const BuilderScreenView = (0, react.memo)(BuilderScreenViewImpl);
|
|
2027
2015
|
//#endregion
|
|
2028
|
-
//#region src/account/account-management-layout.tsx
|
|
2029
|
-
const ICON_MAP = {
|
|
2030
|
-
profile: lucide_react.User,
|
|
2031
|
-
orders: lucide_react.PackageOpen,
|
|
2032
|
-
subscriptions: lucide_react.Repeat
|
|
2033
|
-
};
|
|
2034
|
-
const NAV_ITEMS = ACCOUNT_MANAGE_TABS.map((tab) => ({
|
|
2035
|
-
...tab,
|
|
2036
|
-
icon: ICON_MAP[tab.key]
|
|
2037
|
-
}));
|
|
2038
|
-
function getActiveTab(slug) {
|
|
2039
|
-
const root = slug.split("/")[0];
|
|
2040
|
-
if (root === "orders") return "orders";
|
|
2041
|
-
if (root === "subscriptions") return "subscriptions";
|
|
2042
|
-
return "profile";
|
|
2043
|
-
}
|
|
2044
|
-
function AccountManageLayout({ children }) {
|
|
2045
|
-
const { currentSlug, navigate } = require_AppNavigationContext.useAppNavigation();
|
|
2046
|
-
const activeTab = getActiveTab(currentSlug);
|
|
2047
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2048
|
-
className: "flex flex-col md:flex-row",
|
|
2049
|
-
children: [
|
|
2050
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("nav", {
|
|
2051
|
-
className: "flex gap-1 overflow-x-auto border-b px-4 py-2 md:hidden",
|
|
2052
|
-
children: NAV_ITEMS.map(({ key, slug, label, icon: Icon }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
2053
|
-
type: "button",
|
|
2054
|
-
onClick: () => navigate(slug),
|
|
2055
|
-
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"}`,
|
|
2056
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, { className: "h-4 w-4" }), label]
|
|
2057
|
-
}, key))
|
|
2058
|
-
}),
|
|
2059
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("nav", {
|
|
2060
|
-
className: "hidden w-48 shrink-0 flex-col gap-1 p-4 md:flex",
|
|
2061
|
-
children: NAV_ITEMS.map(({ key, slug, label, icon: Icon }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
2062
|
-
type: "button",
|
|
2063
|
-
onClick: () => navigate(slug),
|
|
2064
|
-
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"}`,
|
|
2065
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, { className: "h-4 w-4" }), label]
|
|
2066
|
-
}, key))
|
|
2067
|
-
}),
|
|
2068
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2069
|
-
className: "min-w-0 flex-1",
|
|
2070
|
-
children
|
|
2071
|
-
})
|
|
2072
|
-
]
|
|
2073
|
-
});
|
|
2074
|
-
}
|
|
2075
|
-
//#endregion
|
|
2076
2016
|
//#region src/shell/system-screen-map.ts
|
|
2077
|
-
const ProfileScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ProfileScreen-
|
|
2078
|
-
const OrdersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./OrdersScreen-
|
|
2079
|
-
const SubscriptionsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./SubscriptionsScreen-
|
|
2080
|
-
const MessagingScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MessagingScreen-
|
|
2081
|
-
const ContactsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ContactsScreen-
|
|
2082
|
-
const ShopScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShopScreen-
|
|
2017
|
+
const ProfileScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ProfileScreen-Za3ZIWPO.cjs")).then((m) => ({ default: m.ProfileScreen })));
|
|
2018
|
+
const OrdersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./OrdersScreen-BLs1xTv7.cjs")).then((m) => ({ default: m.OrdersScreen })));
|
|
2019
|
+
const SubscriptionsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./SubscriptionsScreen-dhnfYn4L.cjs")).then((m) => ({ default: m.SubscriptionsScreen })));
|
|
2020
|
+
const MessagingScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MessagingScreen-BwI0RShj.cjs")).then((m) => ({ default: m.MessagingScreen })));
|
|
2021
|
+
const ContactsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ContactsScreen-Dv1SJNBo.cjs")).then((m) => ({ default: m.ContactsScreen })));
|
|
2022
|
+
const ShopScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShopScreen-BigHJ5wE.cjs")).then((m) => ({ default: m.ShopScreen })));
|
|
2083
2023
|
const CustomersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./CustomersScreen-DW3BuhBs.cjs")).then((n) => n.CustomersScreen_exports).then((m) => ({ default: m.CustomersScreen })));
|
|
2084
|
-
const ShareablesScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShareablesScreen-
|
|
2085
|
-
const MySiteScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MySiteScreen-
|
|
2086
|
-
const UpgradeScreen = (0, react.lazy)(() => Promise.resolve().then(() => require("./UpgradeScreen-
|
|
2087
|
-
const AppDownloadScreen = (0, react.lazy)(() => Promise.resolve().then(() => require("./AppDownloadScreen-
|
|
2024
|
+
const ShareablesScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShareablesScreen-CsDxLODp.cjs")).then((m) => ({ default: m.ShareablesScreen })));
|
|
2025
|
+
const MySiteScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MySiteScreen-Bdd7a6Hy.cjs")).then((m) => ({ default: m.MySiteScreen })));
|
|
2026
|
+
const UpgradeScreen = (0, react.lazy)(() => Promise.resolve().then(() => require("./UpgradeScreen-Bl9lb32K.cjs")).then((m) => ({ default: m.UpgradeScreen })));
|
|
2027
|
+
const AppDownloadScreen = (0, react.lazy)(() => Promise.resolve().then(() => require("./AppDownloadScreen-Og_iMsw5.cjs")).then((n) => n.AppDownloadScreen_exports).then((m) => ({ default: m.AppDownloadScreen })));
|
|
2088
2028
|
const SYSTEM_SLUG_SCREEN_MAP = {
|
|
2089
2029
|
profile: ProfileScreen$1,
|
|
2090
2030
|
account: ProfileScreen$1,
|
|
@@ -2124,7 +2064,6 @@ function findScreenByPrefix(slug) {
|
|
|
2124
2064
|
}
|
|
2125
2065
|
//#endregion
|
|
2126
2066
|
//#region src/shell/PageRouter.tsx
|
|
2127
|
-
const ACCOUNT_SLUGS = new Set([...ACCOUNT_MANAGE_SLUGS, "account"]);
|
|
2128
2067
|
/**
|
|
2129
2068
|
* Returns true if any nav slug resolves to the given system screen component.
|
|
2130
2069
|
* Lets detail routes (e.g. `share/product/:id`) render when their listing
|
|
@@ -2173,17 +2112,13 @@ function PageRouter({ currentSlug, currentNavItem, customPages, screens, baseSlu
|
|
|
2173
2112
|
}
|
|
2174
2113
|
const SystemScreen = SYSTEM_SLUG_SCREEN_MAP[baseSlug] ?? findScreenByPrefix(currentSlug);
|
|
2175
2114
|
const systemScreenInNav = navSlugs === void 0 || SystemScreen !== void 0 && (ALWAYS_AVAILABLE_SYSTEM_SCREENS.has(SystemScreen) || isSystemScreenCoveredByNav(SystemScreen, navSlugs));
|
|
2176
|
-
if (SystemScreen && systemScreenInNav) {
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
});
|
|
2184
|
-
if (ACCOUNT_SLUGS.has(baseSlug)) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AccountManageLayout, { children: content });
|
|
2185
|
-
return content;
|
|
2186
|
-
}
|
|
2115
|
+
if (SystemScreen && systemScreenInNav) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.Suspense, {
|
|
2116
|
+
fallback: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2117
|
+
className: "flex h-full items-center justify-center",
|
|
2118
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "border-primary h-8 w-8 animate-spin rounded-full border-2 border-t-transparent" })
|
|
2119
|
+
}),
|
|
2120
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SystemScreen, {})
|
|
2121
|
+
});
|
|
2187
2122
|
if (isSystemNavigationItem(baseSlug)) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CustomersScreen.CoreScreenPlaceholder, { name: currentNavItem?.label ?? baseSlug });
|
|
2188
2123
|
if (builderScreen) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BuilderScreenView, { screen: builderScreen });
|
|
2189
2124
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ScreenNotFound, { name: currentNavItem?.label ?? currentSlug });
|
|
@@ -3777,17 +3712,17 @@ zod.z.object({
|
|
|
3777
3712
|
//#endregion
|
|
3778
3713
|
//#region src/screens/index.ts
|
|
3779
3714
|
const screenPropertySchemas = {
|
|
3780
|
-
ProfileScreen: () => Promise.resolve().then(() => require("./ProfileScreen-
|
|
3781
|
-
MessagingScreen: () => Promise.resolve().then(() => require("./MessagingScreen-
|
|
3782
|
-
ContactsScreen: () => Promise.resolve().then(() => require("./ContactsScreen-
|
|
3783
|
-
OrdersScreen: () => Promise.resolve().then(() => require("./OrdersScreen-
|
|
3784
|
-
SubscriptionsScreen: () => Promise.resolve().then(() => require("./SubscriptionsScreen-
|
|
3715
|
+
ProfileScreen: () => Promise.resolve().then(() => require("./ProfileScreen-Za3ZIWPO.cjs")).then((m) => m.profileScreenPropertySchema),
|
|
3716
|
+
MessagingScreen: () => Promise.resolve().then(() => require("./MessagingScreen-BwI0RShj.cjs")).then((m) => m.messagingScreenPropertySchema),
|
|
3717
|
+
ContactsScreen: () => Promise.resolve().then(() => require("./ContactsScreen-Dv1SJNBo.cjs")).then((m) => m.contactsScreenPropertySchema),
|
|
3718
|
+
OrdersScreen: () => Promise.resolve().then(() => require("./OrdersScreen-BLs1xTv7.cjs")).then((m) => m.ordersScreenPropertySchema),
|
|
3719
|
+
SubscriptionsScreen: () => Promise.resolve().then(() => require("./SubscriptionsScreen-dhnfYn4L.cjs")).then((m) => m.subscriptionsScreenPropertySchema),
|
|
3785
3720
|
CustomersScreen: () => Promise.resolve().then(() => require("./CustomersScreen-DW3BuhBs.cjs")).then((n) => n.CustomersScreen_exports).then((m) => m.customersScreenPropertySchema),
|
|
3786
|
-
MySiteScreen: () => Promise.resolve().then(() => require("./MySiteScreen-
|
|
3787
|
-
ShareablesScreen: () => Promise.resolve().then(() => require("./ShareablesScreen-
|
|
3788
|
-
ShopScreen: () => Promise.resolve().then(() => require("./ShopScreen-
|
|
3789
|
-
UpgradeScreen: () => Promise.resolve().then(() => require("./UpgradeScreen-
|
|
3790
|
-
AppDownloadScreen: () => Promise.resolve().then(() => require("./AppDownloadScreen-
|
|
3721
|
+
MySiteScreen: () => Promise.resolve().then(() => require("./MySiteScreen-Bdd7a6Hy.cjs")).then((m) => m.mySiteScreenPropertySchema),
|
|
3722
|
+
ShareablesScreen: () => Promise.resolve().then(() => require("./ShareablesScreen-CsDxLODp.cjs")).then((m) => m.shareablesScreenPropertySchema),
|
|
3723
|
+
ShopScreen: () => Promise.resolve().then(() => require("./ShopScreen-BigHJ5wE.cjs")).then((m) => m.shopScreenPropertySchema),
|
|
3724
|
+
UpgradeScreen: () => Promise.resolve().then(() => require("./UpgradeScreen-Bl9lb32K.cjs")).then((m) => m.upgradeScreenPropertySchema),
|
|
3725
|
+
AppDownloadScreen: () => Promise.resolve().then(() => require("./AppDownloadScreen-Og_iMsw5.cjs")).then((n) => n.AppDownloadScreen_exports).then((m) => m.appDownloadScreenPropertySchema)
|
|
3791
3726
|
};
|
|
3792
3727
|
/**
|
|
3793
3728
|
* Core page template IDs
|