@fluid-app/portal-sdk 0.1.333 → 0.1.335
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-BdL7BEQ1.mjs → ShareablesScreen-BDHGcO4c.mjs} +2 -1
- package/dist/{ShareablesScreen-BdL7BEQ1.mjs.map → ShareablesScreen-BDHGcO4c.mjs.map} +1 -1
- package/dist/{ShareablesScreen-B6gNemDD.cjs → ShareablesScreen-CSCdh897.cjs} +2 -1
- package/dist/{ShareablesScreen-B6gNemDD.cjs.map → ShareablesScreen-CSCdh897.cjs.map} +1 -1
- package/dist/{ShareablesScreen-BiBwsSUV.cjs → ShareablesScreen-Cvxi4Fen.cjs} +1 -1
- package/dist/{ShareablesScreen-Cs83wM-i.mjs → ShareablesScreen-DK5h1Wv1.mjs} +1 -1
- package/dist/{SubscriptionsScreen-DzJhgb_H.mjs → SubscriptionsScreen-Blky8Wv8.mjs} +8 -15
- package/dist/{SubscriptionsScreen-DzJhgb_H.mjs.map → SubscriptionsScreen-Blky8Wv8.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-DG2qu9A9.cjs → SubscriptionsScreen-CemaSoUv.cjs} +8 -15
- package/dist/{SubscriptionsScreen-DG2qu9A9.cjs.map → SubscriptionsScreen-CemaSoUv.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-dZwLcWJi.cjs → SubscriptionsScreen-DBtKxiPF.cjs} +1 -1
- package/dist/{SubscriptionsScreen-Fz7WzPge.mjs → SubscriptionsScreen-DEmYXiXj.mjs} +1 -1
- package/dist/index.cjs +18 -12
- 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 +18 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +17 -17
package/dist/index.mjs
CHANGED
|
@@ -26,7 +26,7 @@ import { r as carouselWidgetPropertySchema, t as CarouselWidget } from "./Carous
|
|
|
26
26
|
import { r as catchUpWidgetPropertySchema, t as CatchUpWidget } from "./CatchUpWidget-Cr21SMIo.mjs";
|
|
27
27
|
import { Dt as CardHeader, Et as CardFooter, Ot as CardTitle, St as Card, Tt as CardDescription, at as Popover, ct as PopoverTrigger, gt as CollapsibleTrigger, h as Skeleton$1, ht as CollapsibleContent, kn as cn$1, mt as Collapsible, p as Toaster, st as PopoverContent, wn as Button } from "./src-DC5QoBhR.mjs";
|
|
28
28
|
import { a as useMessagingAuth, i as useMessagingConfig, n as messagingScreenPropertySchema, r as createFluidFileUploader, t as MessagingScreen } from "./MessagingScreen-CszrlhFR.mjs";
|
|
29
|
-
import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-
|
|
29
|
+
import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-Blky8Wv8.mjs";
|
|
30
30
|
import { r as chartWidgetPropertySchema, t as ChartWidget } from "./ChartWidget-80AuzFPc.mjs";
|
|
31
31
|
import { r as containerWidgetPropertySchema, t as ContainerWidget } from "./ContainerWidget-IgR1Ao3c.mjs";
|
|
32
32
|
import { r as imageWidgetPropertySchema, t as ImageWidget } from "./ImageWidget-urRs17bw.mjs";
|
|
@@ -61,7 +61,7 @@ import "./dist-o2cjwzIa.mjs";
|
|
|
61
61
|
import { n as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-ir-Lym5l.mjs";
|
|
62
62
|
import { r as mySiteScreenPropertySchema, t as MySiteScreen } from "./MySiteScreen-C3xnULq3.mjs";
|
|
63
63
|
import "./sortable.esm-BdhSkRKn.mjs";
|
|
64
|
-
import { n as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-
|
|
64
|
+
import { n as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-BDHGcO4c.mjs";
|
|
65
65
|
import { n as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-CGYk5jvO.mjs";
|
|
66
66
|
import "./UpgradeScreen-DGJsj2Yx.mjs";
|
|
67
67
|
import "./AppDownloadScreen-CauIkIKI.mjs";
|
|
@@ -2131,12 +2131,12 @@ const BuilderScreenView = memo(BuilderScreenViewImpl);
|
|
|
2131
2131
|
//#region src/shell/system-screen-map.ts
|
|
2132
2132
|
const ProfileScreen$1 = lazy(() => import("./ProfileScreen-BJ3d1UA1.mjs").then((m) => ({ default: m.ProfileScreen })));
|
|
2133
2133
|
const OrdersScreen$1 = lazy(() => import("./OrdersScreen-DXdMTKiy.mjs").then((m) => ({ default: m.OrdersScreen })));
|
|
2134
|
-
const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-
|
|
2134
|
+
const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-DEmYXiXj.mjs").then((m) => ({ default: m.SubscriptionsScreen })));
|
|
2135
2135
|
const MessagingScreen$1 = lazy(() => import("./MessagingScreen-BkOZHZtL.mjs").then((m) => ({ default: m.MessagingScreen })));
|
|
2136
2136
|
const ContactsScreen$1 = lazy(() => import("./ContactsScreen-DDgwD2MI.mjs").then((n) => n.n).then((m) => ({ default: m.ContactsScreen })));
|
|
2137
2137
|
const ShopScreen$1 = lazy(() => import("./ShopScreen-B0DwIaM6.mjs").then((m) => ({ default: m.ShopScreen })));
|
|
2138
2138
|
const CustomersScreen$1 = lazy(() => import("./CustomersScreen-6QY5c1N8.mjs").then((n) => n.n).then((m) => ({ default: m.CustomersScreen })));
|
|
2139
|
-
const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-
|
|
2139
|
+
const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-DK5h1Wv1.mjs").then((m) => ({ default: m.ShareablesScreen })));
|
|
2140
2140
|
const MySiteScreen$1 = lazy(() => import("./MySiteScreen-C3xnULq3.mjs").then((n) => n.n).then((m) => ({ default: m.MySiteScreen })));
|
|
2141
2141
|
const UpgradeScreen = lazy(() => import("./UpgradeScreen-DGJsj2Yx.mjs").then((n) => n.t).then((m) => ({ default: m.UpgradeScreen })));
|
|
2142
2142
|
const AppDownloadScreen = lazy(() => import("./AppDownloadScreen-CauIkIKI.mjs").then((n) => n.t).then((m) => ({ default: m.AppDownloadScreen })));
|
|
@@ -2651,8 +2651,7 @@ const SHAREABLE_TYPE_TO_SLUG = {
|
|
|
2651
2651
|
Medium: "media",
|
|
2652
2652
|
Page: "pages",
|
|
2653
2653
|
Playlist: "playlists",
|
|
2654
|
-
Library: "playlists"
|
|
2655
|
-
EnrollmentPack: "enrollment_packs"
|
|
2654
|
+
Library: "playlists"
|
|
2656
2655
|
};
|
|
2657
2656
|
function getInitialThemeMode() {
|
|
2658
2657
|
if (typeof window === "undefined") return "light";
|
|
@@ -2843,12 +2842,19 @@ function AppShell({ appData: appDataProp, navigation: navigationProp, customPage
|
|
|
2843
2842
|
return;
|
|
2844
2843
|
}
|
|
2845
2844
|
const shareableType = item.shareable_type;
|
|
2846
|
-
if (typeof shareableType === "string"
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2845
|
+
if (typeof shareableType === "string") {
|
|
2846
|
+
if (shareableType === "EnrollmentPack") {
|
|
2847
|
+
const canonicalUrl = item.canonical_url;
|
|
2848
|
+
if (typeof canonicalUrl === "string" && canonicalUrl) window.open(canonicalUrl, "_blank", "noopener,noreferrer");
|
|
2850
2849
|
return;
|
|
2851
2850
|
}
|
|
2851
|
+
if (item.id != null) {
|
|
2852
|
+
const slug = SHAREABLE_TYPE_TO_SLUG[shareableType];
|
|
2853
|
+
if (slug) {
|
|
2854
|
+
handleNavigate(`share/${slug}/${String(item.id)}`);
|
|
2855
|
+
return;
|
|
2856
|
+
}
|
|
2857
|
+
}
|
|
2852
2858
|
}
|
|
2853
2859
|
const orderToken = item.token;
|
|
2854
2860
|
if (typeof orderToken === "string" && orderToken) handleNavigate(`orders/${orderToken}`);
|
|
@@ -4039,10 +4045,10 @@ const screenPropertySchemas = {
|
|
|
4039
4045
|
MessagingScreen: () => import("./MessagingScreen-BkOZHZtL.mjs").then((m) => m.messagingScreenPropertySchema),
|
|
4040
4046
|
ContactsScreen: () => import("./ContactsScreen-DDgwD2MI.mjs").then((n) => n.n).then((m) => m.contactsScreenPropertySchema),
|
|
4041
4047
|
OrdersScreen: () => import("./OrdersScreen-DXdMTKiy.mjs").then((m) => m.ordersScreenPropertySchema),
|
|
4042
|
-
SubscriptionsScreen: () => import("./SubscriptionsScreen-
|
|
4048
|
+
SubscriptionsScreen: () => import("./SubscriptionsScreen-DEmYXiXj.mjs").then((m) => m.subscriptionsScreenPropertySchema),
|
|
4043
4049
|
CustomersScreen: () => import("./CustomersScreen-6QY5c1N8.mjs").then((n) => n.n).then((m) => m.customersScreenPropertySchema),
|
|
4044
4050
|
MySiteScreen: () => import("./MySiteScreen-C3xnULq3.mjs").then((n) => n.n).then((m) => m.mySiteScreenPropertySchema),
|
|
4045
|
-
ShareablesScreen: () => import("./ShareablesScreen-
|
|
4051
|
+
ShareablesScreen: () => import("./ShareablesScreen-DK5h1Wv1.mjs").then((m) => m.shareablesScreenPropertySchema),
|
|
4046
4052
|
ShopScreen: () => import("./ShopScreen-B0DwIaM6.mjs").then((m) => m.shopScreenPropertySchema),
|
|
4047
4053
|
UpgradeScreen: () => import("./UpgradeScreen-DGJsj2Yx.mjs").then((n) => n.t).then((m) => m.upgradeScreenPropertySchema),
|
|
4048
4054
|
AppDownloadScreen: () => import("./AppDownloadScreen-CauIkIKI.mjs").then((n) => n.t).then((m) => m.appDownloadScreenPropertySchema)
|