@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
|
@@ -47,6 +47,6 @@ require("./ShopWidget-CGs4oaaC.cjs");
|
|
|
47
47
|
require("./ScreenHeaderContext-DWDN0-mb.cjs");
|
|
48
48
|
require("./AddressAutocompleteInput-CGH4Kic9.cjs");
|
|
49
49
|
require("./Combobox-D9lqcqeg.cjs");
|
|
50
|
-
const require_SubscriptionsScreen = require("./SubscriptionsScreen-
|
|
50
|
+
const require_SubscriptionsScreen = require("./SubscriptionsScreen-CemaSoUv.cjs");
|
|
51
51
|
exports.SubscriptionsScreen = require_SubscriptionsScreen.SubscriptionsScreen;
|
|
52
52
|
exports.subscriptionsScreenPropertySchema = require_SubscriptionsScreen.subscriptionsScreenPropertySchema;
|
|
@@ -25,7 +25,7 @@ import "./MediaRenderer-CLmBOrvK.mjs";
|
|
|
25
25
|
import "./CarouselWidget-Ce0X7aS8.mjs";
|
|
26
26
|
import "./CatchUpWidget-Cr21SMIo.mjs";
|
|
27
27
|
import "./src-DC5QoBhR.mjs";
|
|
28
|
-
import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-
|
|
28
|
+
import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-Blky8Wv8.mjs";
|
|
29
29
|
import "./ChartWidget-80AuzFPc.mjs";
|
|
30
30
|
import "./ContainerWidget-IgR1Ao3c.mjs";
|
|
31
31
|
import "./ImageWidget-urRs17bw.mjs";
|
package/dist/index.cjs
CHANGED
|
@@ -55,7 +55,7 @@ require("./AddressAutocompleteInput-CGH4Kic9.cjs");
|
|
|
55
55
|
require("./Combobox-D9lqcqeg.cjs");
|
|
56
56
|
require("./use-mysite-portal-BmrDScmS.cjs");
|
|
57
57
|
const require_ProfileScreen = require("./ProfileScreen-k4gakTSe.cjs");
|
|
58
|
-
const require_SubscriptionsScreen = require("./SubscriptionsScreen-
|
|
58
|
+
const require_SubscriptionsScreen = require("./SubscriptionsScreen-CemaSoUv.cjs");
|
|
59
59
|
require("./dist-BPZPs7SF.cjs");
|
|
60
60
|
require("./es-CtTr3tb5.cjs");
|
|
61
61
|
const require_ContactsScreen = require("./ContactsScreen-Dm8b4SyY.cjs");
|
|
@@ -63,7 +63,7 @@ require("./dist-C-U7FKrp.cjs");
|
|
|
63
63
|
const require_OrdersScreen = require("./OrdersScreen-CLgTnT2i.cjs");
|
|
64
64
|
const require_MySiteScreen = require("./MySiteScreen-D95Kir2t.cjs");
|
|
65
65
|
require("./dist-DSufwDW6.cjs");
|
|
66
|
-
const require_ShareablesScreen = require("./ShareablesScreen-
|
|
66
|
+
const require_ShareablesScreen = require("./ShareablesScreen-CSCdh897.cjs");
|
|
67
67
|
const require_ShopScreen = require("./ShopScreen-BVs1_O9d.cjs");
|
|
68
68
|
require("./UpgradeScreen-B8G83QW_.cjs");
|
|
69
69
|
require("./AppDownloadScreen-Cn1gi2aM.cjs");
|
|
@@ -2133,12 +2133,12 @@ const BuilderScreenView = (0, react.memo)(BuilderScreenViewImpl);
|
|
|
2133
2133
|
//#region src/shell/system-screen-map.ts
|
|
2134
2134
|
const ProfileScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ProfileScreen-F5MPDdtL.cjs")).then((m) => ({ default: m.ProfileScreen })));
|
|
2135
2135
|
const OrdersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./OrdersScreen-H5Z_dSHK.cjs")).then((m) => ({ default: m.OrdersScreen })));
|
|
2136
|
-
const SubscriptionsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./SubscriptionsScreen-
|
|
2136
|
+
const SubscriptionsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./SubscriptionsScreen-DBtKxiPF.cjs")).then((m) => ({ default: m.SubscriptionsScreen })));
|
|
2137
2137
|
const MessagingScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MessagingScreen-DbHT2YWZ.cjs")).then((m) => ({ default: m.MessagingScreen })));
|
|
2138
2138
|
const ContactsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ContactsScreen-BYrRJ55W.cjs")).then((m) => ({ default: m.ContactsScreen })));
|
|
2139
2139
|
const ShopScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShopScreen-ztfxFYt5.cjs")).then((m) => ({ default: m.ShopScreen })));
|
|
2140
2140
|
const CustomersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./CustomersScreen-DtDU7jkB.cjs")).then((n) => n.CustomersScreen_exports).then((m) => ({ default: m.CustomersScreen })));
|
|
2141
|
-
const ShareablesScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShareablesScreen-
|
|
2141
|
+
const ShareablesScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShareablesScreen-Cvxi4Fen.cjs")).then((m) => ({ default: m.ShareablesScreen })));
|
|
2142
2142
|
const MySiteScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MySiteScreen-f8zAVWT-.cjs")).then((m) => ({ default: m.MySiteScreen })));
|
|
2143
2143
|
const UpgradeScreen = (0, react.lazy)(() => Promise.resolve().then(() => require("./UpgradeScreen-ayWak9W9.cjs")).then((m) => ({ default: m.UpgradeScreen })));
|
|
2144
2144
|
const AppDownloadScreen = (0, react.lazy)(() => Promise.resolve().then(() => require("./AppDownloadScreen-Cn1gi2aM.cjs")).then((n) => n.AppDownloadScreen_exports).then((m) => ({ default: m.AppDownloadScreen })));
|
|
@@ -2653,8 +2653,7 @@ const SHAREABLE_TYPE_TO_SLUG = {
|
|
|
2653
2653
|
Medium: "media",
|
|
2654
2654
|
Page: "pages",
|
|
2655
2655
|
Playlist: "playlists",
|
|
2656
|
-
Library: "playlists"
|
|
2657
|
-
EnrollmentPack: "enrollment_packs"
|
|
2656
|
+
Library: "playlists"
|
|
2658
2657
|
};
|
|
2659
2658
|
function getInitialThemeMode() {
|
|
2660
2659
|
if (typeof window === "undefined") return "light";
|
|
@@ -2845,12 +2844,19 @@ function AppShell({ appData: appDataProp, navigation: navigationProp, customPage
|
|
|
2845
2844
|
return;
|
|
2846
2845
|
}
|
|
2847
2846
|
const shareableType = item.shareable_type;
|
|
2848
|
-
if (typeof shareableType === "string"
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2847
|
+
if (typeof shareableType === "string") {
|
|
2848
|
+
if (shareableType === "EnrollmentPack") {
|
|
2849
|
+
const canonicalUrl = item.canonical_url;
|
|
2850
|
+
if (typeof canonicalUrl === "string" && canonicalUrl) window.open(canonicalUrl, "_blank", "noopener,noreferrer");
|
|
2852
2851
|
return;
|
|
2853
2852
|
}
|
|
2853
|
+
if (item.id != null) {
|
|
2854
|
+
const slug = SHAREABLE_TYPE_TO_SLUG[shareableType];
|
|
2855
|
+
if (slug) {
|
|
2856
|
+
handleNavigate(`share/${slug}/${String(item.id)}`);
|
|
2857
|
+
return;
|
|
2858
|
+
}
|
|
2859
|
+
}
|
|
2854
2860
|
}
|
|
2855
2861
|
const orderToken = item.token;
|
|
2856
2862
|
if (typeof orderToken === "string" && orderToken) handleNavigate(`orders/${orderToken}`);
|
|
@@ -4041,10 +4047,10 @@ const screenPropertySchemas = {
|
|
|
4041
4047
|
MessagingScreen: () => Promise.resolve().then(() => require("./MessagingScreen-DbHT2YWZ.cjs")).then((m) => m.messagingScreenPropertySchema),
|
|
4042
4048
|
ContactsScreen: () => Promise.resolve().then(() => require("./ContactsScreen-BYrRJ55W.cjs")).then((m) => m.contactsScreenPropertySchema),
|
|
4043
4049
|
OrdersScreen: () => Promise.resolve().then(() => require("./OrdersScreen-H5Z_dSHK.cjs")).then((m) => m.ordersScreenPropertySchema),
|
|
4044
|
-
SubscriptionsScreen: () => Promise.resolve().then(() => require("./SubscriptionsScreen-
|
|
4050
|
+
SubscriptionsScreen: () => Promise.resolve().then(() => require("./SubscriptionsScreen-DBtKxiPF.cjs")).then((m) => m.subscriptionsScreenPropertySchema),
|
|
4045
4051
|
CustomersScreen: () => Promise.resolve().then(() => require("./CustomersScreen-DtDU7jkB.cjs")).then((n) => n.CustomersScreen_exports).then((m) => m.customersScreenPropertySchema),
|
|
4046
4052
|
MySiteScreen: () => Promise.resolve().then(() => require("./MySiteScreen-f8zAVWT-.cjs")).then((m) => m.mySiteScreenPropertySchema),
|
|
4047
|
-
ShareablesScreen: () => Promise.resolve().then(() => require("./ShareablesScreen-
|
|
4053
|
+
ShareablesScreen: () => Promise.resolve().then(() => require("./ShareablesScreen-Cvxi4Fen.cjs")).then((m) => m.shareablesScreenPropertySchema),
|
|
4048
4054
|
ShopScreen: () => Promise.resolve().then(() => require("./ShopScreen-ztfxFYt5.cjs")).then((m) => m.shopScreenPropertySchema),
|
|
4049
4055
|
UpgradeScreen: () => Promise.resolve().then(() => require("./UpgradeScreen-ayWak9W9.cjs")).then((m) => m.upgradeScreenPropertySchema),
|
|
4050
4056
|
AppDownloadScreen: () => Promise.resolve().then(() => require("./AppDownloadScreen-Cn1gi2aM.cjs")).then((n) => n.AppDownloadScreen_exports).then((m) => m.appDownloadScreenPropertySchema)
|