@fluid-app/portal-sdk 0.1.227 → 0.1.229
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/{ShareablesScreen-DyGQ-Yo_.cjs → ShareablesScreen-CTIe6EH0.cjs} +1 -1
- package/dist/{ShareablesScreen-CNARhXTE.mjs → ShareablesScreen-DjRtywMv.mjs} +81 -75
- package/dist/ShareablesScreen-DjRtywMv.mjs.map +1 -0
- package/dist/{ShareablesScreen-AMlPuFFk.cjs → ShareablesScreen-o6frhZUM.cjs} +81 -75
- package/dist/ShareablesScreen-o6frhZUM.cjs.map +1 -0
- package/dist/index.cjs +16 -17
- 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 +16 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -12
- package/dist/ShareablesScreen-AMlPuFFk.cjs.map +0 -1
- package/dist/ShareablesScreen-CNARhXTE.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -60,7 +60,7 @@ import "./order-status-badge-CnQE7lFJ.mjs";
|
|
|
60
60
|
import { r as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-YWHy3VBL.mjs";
|
|
61
61
|
import "./sortable.esm-BSpvRpWg.mjs";
|
|
62
62
|
import { r as mySiteScreenPropertySchema, t as MySiteScreen } from "./MySiteScreen-Q9xN2oxD.mjs";
|
|
63
|
-
import { r as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-
|
|
63
|
+
import { r as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-DjRtywMv.mjs";
|
|
64
64
|
import "./PortalProductsApiProvider-BeCWFRtF.mjs";
|
|
65
65
|
import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-CJcGSrG4.mjs";
|
|
66
66
|
import "./UpgradeScreen-CGiVn0KG.mjs";
|
|
@@ -2147,7 +2147,7 @@ const MessagingScreen$1 = lazy(() => import("./MessagingScreen-7VQtzmmg.mjs").th
|
|
|
2147
2147
|
const ContactsScreen$1 = lazy(() => import("./ContactsScreen-DHHzJhO4.mjs").then((n) => n.n).then((m) => ({ default: m.ContactsScreen })));
|
|
2148
2148
|
const ShopScreen$1 = lazy(() => import("./ShopScreen-CJcGSrG4.mjs").then((n) => n.n).then((m) => ({ default: m.ShopScreen })));
|
|
2149
2149
|
const CustomersScreen$1 = lazy(() => import("./CustomersScreen-D55HjYHC.mjs").then((n) => n.n).then((m) => ({ default: m.CustomersScreen })));
|
|
2150
|
-
const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-
|
|
2150
|
+
const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-DjRtywMv.mjs").then((n) => n.n).then((m) => ({ default: m.ShareablesScreen })));
|
|
2151
2151
|
const MySiteScreen$1 = lazy(() => import("./MySiteScreen-Q9xN2oxD.mjs").then((n) => n.n).then((m) => ({ default: m.MySiteScreen })));
|
|
2152
2152
|
const UpgradeScreen = lazy(() => import("./UpgradeScreen-CGiVn0KG.mjs").then((n) => n.t).then((m) => ({ default: m.UpgradeScreen })));
|
|
2153
2153
|
const AppDownloadScreen = lazy(() => import("./AppDownloadScreen-zrhWlSE7.mjs").then((n) => n.t).then((m) => ({ default: m.AppDownloadScreen })));
|
|
@@ -2408,17 +2408,18 @@ function AppShell({ appData: appDataProp, navigation: navigationProp, customPage
|
|
|
2408
2408
|
account?.slug
|
|
2409
2409
|
]);
|
|
2410
2410
|
const activeTheme = useMemo(() => {
|
|
2411
|
-
|
|
2412
|
-
const
|
|
2413
|
-
|
|
2414
|
-
|
|
2411
|
+
const themes = appData?.profile?.themes;
|
|
2412
|
+
const activeId = appData?.profile?.activeThemeId;
|
|
2413
|
+
if (themes?.length) {
|
|
2414
|
+
const matched = activeId ? themes.find((t) => t.id === activeId) : void 0;
|
|
2415
|
+
const first = themes[0];
|
|
2416
|
+
if (matched) return matched;
|
|
2417
|
+
if (first) return first;
|
|
2418
|
+
}
|
|
2419
|
+
return getDefaultThemeDefinition();
|
|
2415
2420
|
}, [appData?.profile?.themes, appData?.profile?.activeThemeId]);
|
|
2416
|
-
const resolvedTheme = useMemo(() =>
|
|
2417
|
-
if (!activeTheme) return void 0;
|
|
2418
|
-
return resolveTheme(activeTheme);
|
|
2419
|
-
}, [activeTheme]);
|
|
2421
|
+
const resolvedTheme = useMemo(() => resolveTheme(activeTheme), [activeTheme]);
|
|
2420
2422
|
useEffect(() => {
|
|
2421
|
-
if (!resolvedTheme) return;
|
|
2422
2423
|
applyTheme(resolvedTheme);
|
|
2423
2424
|
return () => {
|
|
2424
2425
|
removeAllThemes();
|
|
@@ -2426,12 +2427,11 @@ function AppShell({ appData: appDataProp, navigation: navigationProp, customPage
|
|
|
2426
2427
|
}, [resolvedTheme]);
|
|
2427
2428
|
useEffect(() => {
|
|
2428
2429
|
const root = document.documentElement;
|
|
2429
|
-
|
|
2430
|
-
else root.removeAttribute("data-theme");
|
|
2430
|
+
root.setAttribute("data-theme", activeTheme.id);
|
|
2431
2431
|
return () => {
|
|
2432
2432
|
root.removeAttribute("data-theme");
|
|
2433
2433
|
};
|
|
2434
|
-
}, [activeTheme
|
|
2434
|
+
}, [activeTheme.id]);
|
|
2435
2435
|
const navItems = useMemo(() => {
|
|
2436
2436
|
if (navigationProp) return navigationProp;
|
|
2437
2437
|
const profileNav = appData?.profile?.navigation?.navigation_items;
|
|
@@ -2463,7 +2463,6 @@ function AppShell({ appData: appDataProp, navigation: navigationProp, customPage
|
|
|
2463
2463
|
};
|
|
2464
2464
|
}, [themeMode]);
|
|
2465
2465
|
useEffect(() => {
|
|
2466
|
-
if (!resolvedTheme) return;
|
|
2467
2466
|
let meta = document.querySelector("meta[name=\"theme-color\"]");
|
|
2468
2467
|
if (!meta) {
|
|
2469
2468
|
meta = document.createElement("meta");
|
|
@@ -2562,7 +2561,7 @@ function AppShell({ appData: appDataProp, navigation: navigationProp, customPage
|
|
|
2562
2561
|
autoModeEnabled: false,
|
|
2563
2562
|
children: /* @__PURE__ */ jsxs("div", {
|
|
2564
2563
|
className: "font-body",
|
|
2565
|
-
"data-theme": activeTheme
|
|
2564
|
+
"data-theme": activeTheme.id,
|
|
2566
2565
|
"data-theme-mode": themeMode === "auto" ? void 0 : themeMode,
|
|
2567
2566
|
children: [/* @__PURE__ */ jsx(AppNavigationProvider, {
|
|
2568
2567
|
currentSlug: activeSlug,
|
|
@@ -3642,7 +3641,7 @@ const screenPropertySchemas = {
|
|
|
3642
3641
|
SubscriptionsScreen: () => import("./SubscriptionsScreen-mUaEWHn5.mjs").then((n) => n.n).then((m) => m.subscriptionsScreenPropertySchema),
|
|
3643
3642
|
CustomersScreen: () => import("./CustomersScreen-D55HjYHC.mjs").then((n) => n.n).then((m) => m.customersScreenPropertySchema),
|
|
3644
3643
|
MySiteScreen: () => import("./MySiteScreen-Q9xN2oxD.mjs").then((n) => n.n).then((m) => m.mySiteScreenPropertySchema),
|
|
3645
|
-
ShareablesScreen: () => import("./ShareablesScreen-
|
|
3644
|
+
ShareablesScreen: () => import("./ShareablesScreen-DjRtywMv.mjs").then((n) => n.n).then((m) => m.shareablesScreenPropertySchema),
|
|
3646
3645
|
ShopScreen: () => import("./ShopScreen-CJcGSrG4.mjs").then((n) => n.n).then((m) => m.shopScreenPropertySchema),
|
|
3647
3646
|
UpgradeScreen: () => import("./UpgradeScreen-CGiVn0KG.mjs").then((n) => n.t).then((m) => m.upgradeScreenPropertySchema),
|
|
3648
3647
|
AppDownloadScreen: () => import("./AppDownloadScreen-zrhWlSE7.mjs").then((n) => n.t).then((m) => m.appDownloadScreenPropertySchema)
|