@fluid-app/portal-sdk 0.1.426 → 0.1.428
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/{CalendarWidget-Lz2dPHve.mjs → CalendarWidget-A6S2DIuP.mjs} +10 -28
- package/dist/CalendarWidget-A6S2DIuP.mjs.map +1 -0
- package/dist/{CalendarWidget-Bnc8WbBi.cjs → CalendarWidget-BwaTR9fW.cjs} +10 -28
- package/dist/CalendarWidget-BwaTR9fW.cjs.map +1 -0
- package/dist/{FluidProvider-r6H4QK4i.mjs → FluidProvider-BIzlZgQd.mjs} +3 -3
- package/dist/{FluidProvider-r6H4QK4i.mjs.map → FluidProvider-BIzlZgQd.mjs.map} +1 -1
- package/dist/{FluidProvider-Ckv1XJHj.cjs → FluidProvider-BtH_KyPs.cjs} +3 -3
- package/dist/{FluidProvider-Ckv1XJHj.cjs.map → FluidProvider-BtH_KyPs.cjs.map} +1 -1
- package/dist/{MessagingScreen-DVZek50A.cjs → MessagingScreen-B9cy5cow.cjs} +3 -3
- package/dist/{MessagingScreen-C-1zF_65.mjs → MessagingScreen-BaR_S_v3.mjs} +3 -3
- package/dist/{MessagingScreen-BPleDkrM.mjs → MessagingScreen-CtivBEyf.mjs} +2 -2
- package/dist/{MessagingScreen-BPleDkrM.mjs.map → MessagingScreen-CtivBEyf.mjs.map} +1 -1
- package/dist/{MessagingScreen-Bcbe1vDs.cjs → MessagingScreen-CuoMYT7k.cjs} +2 -2
- package/dist/{MessagingScreen-Bcbe1vDs.cjs.map → MessagingScreen-CuoMYT7k.cjs.map} +1 -1
- package/dist/{OrdersScreen-BHwti9_8.cjs → OrdersScreen-8TP5xK66.cjs} +2 -2
- package/dist/{OrdersScreen-BHwti9_8.cjs.map → OrdersScreen-8TP5xK66.cjs.map} +1 -1
- package/dist/{OrdersScreen-BBCe-7Ma.mjs → OrdersScreen-B3YoWa9z.mjs} +2 -2
- package/dist/{OrdersScreen-BBCe-7Ma.mjs.map → OrdersScreen-B3YoWa9z.mjs.map} +1 -1
- package/dist/{OrdersScreen-DX5fRqYY.cjs → OrdersScreen-CdMqtyp-.cjs} +3 -3
- package/dist/{OrdersScreen-uaL0dBBK.mjs → OrdersScreen-Cxe41C4q.mjs} +3 -3
- package/dist/{ProfileScreen-D7LmEhRX.mjs → ProfileScreen-BNEZPbE7.mjs} +3 -3
- package/dist/{ProfileScreen-D7LmEhRX.mjs.map → ProfileScreen-BNEZPbE7.mjs.map} +1 -1
- package/dist/{ProfileScreen-Bh_mUdhz.cjs → ProfileScreen-BgufOBvz.cjs} +4 -4
- package/dist/{ProfileScreen-Dv0knqif.mjs → ProfileScreen-DbT_OBuc.mjs} +4 -4
- package/dist/{ProfileScreen-BjK9B84N.cjs → ProfileScreen-GJzKpyV2.cjs} +3 -3
- package/dist/{ProfileScreen-BjK9B84N.cjs.map → ProfileScreen-GJzKpyV2.cjs.map} +1 -1
- package/dist/{ShopScreen-C3haCkzq.mjs → ShopScreen-B3lv9ZmI.mjs} +3 -3
- package/dist/{ShopScreen-xn1F3bO_.cjs → ShopScreen-BsjQ3GzV.cjs} +3 -3
- package/dist/{ShopScreen-HRdMgxmj.mjs → ShopScreen-CkZB6xIi.mjs} +2 -2
- package/dist/{ShopScreen-HRdMgxmj.mjs.map → ShopScreen-CkZB6xIi.mjs.map} +1 -1
- package/dist/{ShopScreen-BseMYrBf.cjs → ShopScreen-DdtWviI6.cjs} +2 -2
- package/dist/{ShopScreen-BseMYrBf.cjs.map → ShopScreen-DdtWviI6.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-2bGuSw1Z.mjs → SubscriptionsScreen-1KiMhO3l.mjs} +3 -3
- package/dist/{SubscriptionsScreen-2bGuSw1Z.mjs.map → SubscriptionsScreen-1KiMhO3l.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-KEEQfJmO.cjs → SubscriptionsScreen-BJWA3S9y.cjs} +3 -3
- package/dist/{SubscriptionsScreen-KEEQfJmO.cjs.map → SubscriptionsScreen-BJWA3S9y.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-DthHNDG2.mjs → SubscriptionsScreen-BnPKupHu.mjs} +4 -4
- package/dist/{SubscriptionsScreen-Idrc6uHP.cjs → SubscriptionsScreen-RMjqJpCY.cjs} +4 -4
- package/dist/entry/create-portal.d.ts +8 -1
- package/dist/entry/create-portal.d.ts.map +1 -1
- package/dist/index.cjs +50 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +38 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +38 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +50 -21
- package/dist/index.mjs.map +1 -1
- package/dist/preview/preview-entry.cjs +3 -3
- package/dist/preview/preview-entry.mjs +3 -3
- package/dist/shell/AppShell.d.ts +4 -1
- package/dist/shell/AppShell.d.ts.map +1 -1
- package/dist/shell/PageRouter.d.ts +4 -1
- package/dist/shell/PageRouter.d.ts.map +1 -1
- package/dist/{use-portal-card-add-3ds-flow-BSW9vs1h.mjs → use-portal-card-add-3ds-flow-CdhZayTe.mjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-BSW9vs1h.mjs.map → use-portal-card-add-3ds-flow-CdhZayTe.mjs.map} +1 -1
- package/dist/{use-portal-card-add-3ds-flow-BWg3QGRi.cjs → use-portal-card-add-3ds-flow-OFAaY1ms.cjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-BWg3QGRi.cjs.map → use-portal-card-add-3ds-flow-OFAaY1ms.cjs.map} +1 -1
- package/dist/{widget-package-utils-Cw0d28iv.mjs → widget-package-utils-CLRyRUDT.mjs} +2 -2
- package/dist/{widget-package-utils-Cw0d28iv.mjs.map → widget-package-utils-CLRyRUDT.mjs.map} +1 -1
- package/dist/{widget-package-utils-C9vtJB_J.cjs → widget-package-utils-U4TpvNHg.cjs} +2 -2
- package/dist/{widget-package-utils-C9vtJB_J.cjs.map → widget-package-utils-U4TpvNHg.cjs.map} +1 -1
- package/package.json +12 -12
- package/dist/CalendarWidget-Bnc8WbBi.cjs.map +0 -1
- package/dist/CalendarWidget-Lz2dPHve.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./translation-adapter-52kMOmeK.mjs";
|
|
2
|
-
import "./FluidProvider-
|
|
2
|
+
import "./FluidProvider-BIzlZgQd.mjs";
|
|
3
3
|
import "./FluidThemeProvider-D_O4NV2b.mjs";
|
|
4
4
|
import "./ScreenRenderer-CBL1EEk8.mjs";
|
|
5
5
|
import "./use-account-CVCEuI6e.mjs";
|
|
@@ -26,14 +26,14 @@ import "./TextWidget-B_R5fBOY.mjs";
|
|
|
26
26
|
import "./AlertWidget-k6JGYRsd.mjs";
|
|
27
27
|
import "./BulletListWidget-CPYe9y8c.mjs";
|
|
28
28
|
import "./preview-context-BeRbfntP.mjs";
|
|
29
|
-
import "./CalendarWidget-
|
|
29
|
+
import "./CalendarWidget-A6S2DIuP.mjs";
|
|
30
30
|
import "./CardWidget-3l5GQoT5.mjs";
|
|
31
31
|
import "./purify.es-DI2Tffdk.mjs";
|
|
32
32
|
import "./MediaRenderer-BydUiy9x.mjs";
|
|
33
33
|
import "./CarouselWidget-oOuu0X3D.mjs";
|
|
34
34
|
import "./CatchUpWidget-C40BJpiX.mjs";
|
|
35
35
|
import "./src-CAi8-qUm.mjs";
|
|
36
|
-
import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-
|
|
36
|
+
import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-1KiMhO3l.mjs";
|
|
37
37
|
import "./ChartWidget-1xYX5bcU.mjs";
|
|
38
38
|
import "./ContainerWidget-DHGGtJzK.mjs";
|
|
39
39
|
import "./EmbedWidget-CUt5_brr.mjs";
|
|
@@ -53,7 +53,7 @@ import "./ShopWidget-rQy6rmSs.mjs";
|
|
|
53
53
|
import "./translation-adapter-Bq03ibhH.mjs";
|
|
54
54
|
import "./translation-adapter-CQR9V29X.mjs";
|
|
55
55
|
import "./ScreenHeaderContext-BR9cGisQ.mjs";
|
|
56
|
-
import "./use-portal-card-add-3ds-flow-
|
|
56
|
+
import "./use-portal-card-add-3ds-flow-CdhZayTe.mjs";
|
|
57
57
|
import "./display--fzMa6G4.mjs";
|
|
58
58
|
import "./Combobox-Jgp9r_Vu.mjs";
|
|
59
59
|
export { SubscriptionsScreen, subscriptionsScreenPropertySchema };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-9hOWP6kD.cjs");
|
|
2
|
-
require("./FluidProvider-
|
|
2
|
+
require("./FluidProvider-BtH_KyPs.cjs");
|
|
3
3
|
require("./FluidThemeProvider-DMfCMPLp.cjs");
|
|
4
4
|
require("./ScreenRenderer-B-ZfGmhX.cjs");
|
|
5
5
|
require("./use-account-C596ARpR.cjs");
|
|
@@ -27,7 +27,7 @@ require("./TextWidget-B2AKgxsS.cjs");
|
|
|
27
27
|
require("./AlertWidget-BZXjM9Mo.cjs");
|
|
28
28
|
require("./BulletListWidget-mdfW_E1z.cjs");
|
|
29
29
|
require("./preview-context-J_Viyhgm.cjs");
|
|
30
|
-
require("./CalendarWidget-
|
|
30
|
+
require("./CalendarWidget-BwaTR9fW.cjs");
|
|
31
31
|
require("./CardWidget-BjSOmo4v.cjs");
|
|
32
32
|
require("./purify.es-ESRydCt8.cjs");
|
|
33
33
|
require("./MediaRenderer-BI_FoJAZ.cjs");
|
|
@@ -53,10 +53,10 @@ require("./ShopWidget-RDBmRLAT.cjs");
|
|
|
53
53
|
require("./translation-adapter-DKUKw4Q8.cjs");
|
|
54
54
|
require("./translation-adapter-CRSvqqrJ.cjs");
|
|
55
55
|
require("./ScreenHeaderContext-NGY43GoF.cjs");
|
|
56
|
-
require("./use-portal-card-add-3ds-flow-
|
|
56
|
+
require("./use-portal-card-add-3ds-flow-OFAaY1ms.cjs");
|
|
57
57
|
require("./display-Bbu9dVv-.cjs");
|
|
58
58
|
require("./Combobox-CMWzBod7.cjs");
|
|
59
59
|
require("./prop-types-BL9DoSxF.cjs");
|
|
60
|
-
const require_SubscriptionsScreen = require("./SubscriptionsScreen-
|
|
60
|
+
const require_SubscriptionsScreen = require("./SubscriptionsScreen-BJWA3S9y.cjs");
|
|
61
61
|
exports.SubscriptionsScreen = require_SubscriptionsScreen.SubscriptionsScreen;
|
|
62
62
|
exports.subscriptionsScreenPropertySchema = require_SubscriptionsScreen.subscriptionsScreenPropertySchema;
|
|
@@ -3,6 +3,7 @@ import { type AppShellProps } from "../shell/AppShell";
|
|
|
3
3
|
import type { PortalErrorReporter } from "../errors/portal-error-reporter";
|
|
4
4
|
import type { FluidSDKConfig } from "../types/config";
|
|
5
5
|
import type { WidgetManifest } from "@fluid-app/portal-core/registries";
|
|
6
|
+
import type { MemberTypeCustomPages } from "@fluid-app/portal-core/member-type-content";
|
|
6
7
|
import type { WidgetPackageDescriptor } from "../types/widget-package-descriptor";
|
|
7
8
|
/**
|
|
8
9
|
* Configuration for `createPortal()`.
|
|
@@ -16,6 +17,12 @@ export interface PortalConfig {
|
|
|
16
17
|
slug?: string;
|
|
17
18
|
params?: string;
|
|
18
19
|
}>>;
|
|
20
|
+
/**
|
|
21
|
+
* Per-member-type page overrides: memberTypeSlug -> (pageSlug -> component).
|
|
22
|
+
* Serves different screens to different member types (e.g. an `affiliate`
|
|
23
|
+
* dashboard) at the same slug. Wins over `customPages` for that member type.
|
|
24
|
+
*/
|
|
25
|
+
memberTypeCustomPages?: MemberTypeCustomPages;
|
|
19
26
|
/** Custom widget manifests (type + component + propertySchema) */
|
|
20
27
|
customWidgets?: WidgetManifest[];
|
|
21
28
|
/** Trusted remote widget packages to load at runtime. */
|
|
@@ -46,7 +53,7 @@ export interface PortalConfig {
|
|
|
46
53
|
/** Root element ID. @default "root" */
|
|
47
54
|
rootId?: string;
|
|
48
55
|
/** AppShell props passthrough (basePath, sidebarHeader, etc.) */
|
|
49
|
-
shell?: Omit<AppShellProps, "customPages" | "errorReporter">;
|
|
56
|
+
shell?: Omit<AppShellProps, "customPages" | "memberTypeCustomPages" | "errorReporter">;
|
|
50
57
|
/** Wrap AppShell with additional providers (inserted inside RequireAuth, below FluidProvider) */
|
|
51
58
|
providers?: ComponentType<{
|
|
52
59
|
children: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-portal.d.ts","sourceRoot":"","sources":["../../src/entry/create-portal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,aAAa,EAKnB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AA8ZlF;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAClB,MAAM,EACN,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAClD,CAAC;IACF,kEAAkE;IAClE,aAAa,CAAC,EAAE,cAAc,EAAE,CAAC;IACjC,yDAAyD;IACzD,cAAc,CAAC,EAAE,SAAS,uBAAuB,EAAE,CAAC;IACpD;;;;;OAKG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;;;;;;OAOG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC1C;;;OAGG;IACH,2BAA2B,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAChD,yDAAyD;IACzD,KAAK,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IAChC,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iEAAiE;IACjE,KAAK,CAAC,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"create-portal.d.ts","sourceRoot":"","sources":["../../src/entry/create-portal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,aAAa,EAKnB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AA8ZlF;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAClB,MAAM,EACN,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAClD,CAAC;IACF;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C,kEAAkE;IAClE,aAAa,CAAC,EAAE,cAAc,EAAE,CAAC;IACjC,yDAAyD;IACzD,cAAc,CAAC,EAAE,SAAS,uBAAuB,EAAE,CAAC;IACpD;;;;;OAKG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;;;;;;OAOG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC1C;;;OAGG;IACH,2BAA2B,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAChD,yDAAyD;IACzD,KAAK,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IAChC,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iEAAiE;IACjE,KAAK,CAAC,EAAE,IAAI,CACV,aAAa,EACb,aAAa,GAAG,uBAAuB,GAAG,eAAe,CAC1D,CAAC;IACF,iGAAiG;IACjG,SAAS,CAAC,EAAE,aAAa,CAAC;QAAE,QAAQ,EAAE,SAAS,CAAA;KAAE,CAAC,CAAC;IACnD,qGAAqG;IACrG,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,yCAAyC;IACzC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,YAAY,CAAC,MAAM,GAAE,YAAiB,GAAG,IAAI,CAsD5D"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-9hOWP6kD.cjs");
|
|
3
|
-
const require_FluidProvider = require("./FluidProvider-
|
|
3
|
+
const require_FluidProvider = require("./FluidProvider-BtH_KyPs.cjs");
|
|
4
4
|
const require_FluidThemeProvider = require("./FluidThemeProvider-DMfCMPLp.cjs");
|
|
5
5
|
const require_ScreenRenderer = require("./ScreenRenderer-B-ZfGmhX.cjs");
|
|
6
6
|
const require_use_account = require("./use-account-C596ARpR.cjs");
|
|
@@ -32,7 +32,7 @@ const require_TextWidget = require("./TextWidget-B2AKgxsS.cjs");
|
|
|
32
32
|
const require_AlertWidget = require("./AlertWidget-BZXjM9Mo.cjs");
|
|
33
33
|
const require_BulletListWidget = require("./BulletListWidget-mdfW_E1z.cjs");
|
|
34
34
|
require("./preview-context-J_Viyhgm.cjs");
|
|
35
|
-
const require_CalendarWidget = require("./CalendarWidget-
|
|
35
|
+
const require_CalendarWidget = require("./CalendarWidget-BwaTR9fW.cjs");
|
|
36
36
|
const require_CardWidget = require("./CardWidget-BjSOmo4v.cjs");
|
|
37
37
|
require("./purify.es-ESRydCt8.cjs");
|
|
38
38
|
require("./MediaRenderer-BI_FoJAZ.cjs");
|
|
@@ -59,27 +59,27 @@ require("./translation-adapter-DKUKw4Q8.cjs");
|
|
|
59
59
|
require("./translation-adapter-CRSvqqrJ.cjs");
|
|
60
60
|
const require_use_navigation_parent = require("./use-navigation-parent-BDBTIGUX.cjs");
|
|
61
61
|
const require_ScreenHeaderContext = require("./ScreenHeaderContext-NGY43GoF.cjs");
|
|
62
|
-
const require_widget_package_utils = require("./widget-package-utils-
|
|
62
|
+
const require_widget_package_utils = require("./widget-package-utils-U4TpvNHg.cjs");
|
|
63
63
|
const require_use_store = require("./use-store-Dl3HEHrF.cjs");
|
|
64
64
|
const require_CustomersScreen = require("./CustomersScreen-DEv5--MK.cjs");
|
|
65
65
|
const require_member_permissions = require("./member-permissions-DjM_MJxs.cjs");
|
|
66
66
|
const require_AppNavigationContext = require("./AppNavigationContext-DAQiBWD5.cjs");
|
|
67
67
|
const require_authoring = require("./authoring-B57Kt2rm.cjs");
|
|
68
|
-
const require_MessagingScreen = require("./MessagingScreen-
|
|
69
|
-
require("./use-portal-card-add-3ds-flow-
|
|
68
|
+
const require_MessagingScreen = require("./MessagingScreen-CuoMYT7k.cjs");
|
|
69
|
+
require("./use-portal-card-add-3ds-flow-OFAaY1ms.cjs");
|
|
70
70
|
require("./display-Bbu9dVv-.cjs");
|
|
71
71
|
require("./Combobox-CMWzBod7.cjs");
|
|
72
72
|
require("./prop-types-BL9DoSxF.cjs");
|
|
73
73
|
require("./use-mysite-portal-C_V5cNaa.cjs");
|
|
74
|
-
const require_ProfileScreen = require("./ProfileScreen-
|
|
75
|
-
const require_SubscriptionsScreen = require("./SubscriptionsScreen-
|
|
74
|
+
const require_ProfileScreen = require("./ProfileScreen-GJzKpyV2.cjs");
|
|
75
|
+
const require_SubscriptionsScreen = require("./SubscriptionsScreen-BJWA3S9y.cjs");
|
|
76
76
|
require("./dist-BY7oIoRh.cjs");
|
|
77
77
|
require("./es-C0D2Nzch.cjs");
|
|
78
78
|
require("./dist-D2JCrLWW.cjs");
|
|
79
|
-
const require_OrdersScreen = require("./OrdersScreen-
|
|
79
|
+
const require_OrdersScreen = require("./OrdersScreen-8TP5xK66.cjs");
|
|
80
80
|
const require_MySiteScreen = require("./MySiteScreen-CVl3H12G.cjs");
|
|
81
81
|
require("./dist-CAwmEvDK.cjs");
|
|
82
|
-
const require_ShopScreen = require("./ShopScreen-
|
|
82
|
+
const require_ShopScreen = require("./ShopScreen-DdtWviI6.cjs");
|
|
83
83
|
require("./AppDownloadScreen-DMiKUvYe.cjs");
|
|
84
84
|
let react = require("react");
|
|
85
85
|
react = require_chunk.__toESM(react);
|
|
@@ -1826,13 +1826,34 @@ function BuilderScreenViewImpl({ screen, className }) {
|
|
|
1826
1826
|
}
|
|
1827
1827
|
const BuilderScreenView = (0, react.memo)(BuilderScreenViewImpl);
|
|
1828
1828
|
//#endregion
|
|
1829
|
+
//#region ../core/src/member-type-content.ts
|
|
1830
|
+
/**
|
|
1831
|
+
* Resolve the page component to render for a given member-type slug and
|
|
1832
|
+
* page slug, preferring an exact page match then a base-slug (prefix)
|
|
1833
|
+
* match. Returns undefined when the member type has no override for the
|
|
1834
|
+
* route, so the caller falls back to global content.
|
|
1835
|
+
*
|
|
1836
|
+
* Known limitation: `baseSlug` is the caller's navigation-derived base (see
|
|
1837
|
+
* PageRouter), so a per-type override registered at a detail *prefix* that is
|
|
1838
|
+
* not itself a navigation slug (e.g. `share/product` when the nav only has
|
|
1839
|
+
* `share/products`) is only matched on an exact `currentSlug`. Data-driven,
|
|
1840
|
+
* prefix-aware matching against the registry's own keys is deferred to the
|
|
1841
|
+
* authoring phase; register the exact slug you route to for now.
|
|
1842
|
+
*/
|
|
1843
|
+
function resolveMemberTypePage(registry, memberTypeSlug, currentSlug, baseSlug) {
|
|
1844
|
+
if (!registry || !memberTypeSlug) return void 0;
|
|
1845
|
+
const pages = registry[memberTypeSlug];
|
|
1846
|
+
if (!pages) return void 0;
|
|
1847
|
+
return pages[currentSlug] ?? (baseSlug !== currentSlug ? pages[baseSlug] : void 0);
|
|
1848
|
+
}
|
|
1849
|
+
//#endregion
|
|
1829
1850
|
//#region src/shell/system-screen-map.ts
|
|
1830
|
-
const ProfileScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ProfileScreen-
|
|
1831
|
-
const OrdersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./OrdersScreen-
|
|
1832
|
-
const SubscriptionsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./SubscriptionsScreen-
|
|
1833
|
-
const MessagingScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MessagingScreen-
|
|
1851
|
+
const ProfileScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ProfileScreen-BgufOBvz.cjs")).then((m) => ({ default: m.ProfileScreen })));
|
|
1852
|
+
const OrdersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./OrdersScreen-CdMqtyp-.cjs")).then((m) => ({ default: m.OrdersScreen })));
|
|
1853
|
+
const SubscriptionsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./SubscriptionsScreen-RMjqJpCY.cjs")).then((m) => ({ default: m.SubscriptionsScreen })));
|
|
1854
|
+
const MessagingScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MessagingScreen-B9cy5cow.cjs")).then((m) => ({ default: m.MessagingScreen })));
|
|
1834
1855
|
const ContactsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ContactsScreen-CHZ0KEUy.cjs")).then((m) => ({ default: m.ContactsScreen })));
|
|
1835
|
-
const ShopScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShopScreen-
|
|
1856
|
+
const ShopScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShopScreen-BsjQ3GzV.cjs")).then((m) => ({ default: m.ShopScreen })));
|
|
1836
1857
|
const CustomersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./CustomersScreen-BM08PF8p.cjs")).then((m) => ({ default: m.CustomersScreen })));
|
|
1837
1858
|
const ShareablesScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShareablesScreen-BAzK2RgL.cjs")).then((m) => ({ default: m.ShareablesScreen })));
|
|
1838
1859
|
const MySiteScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MySiteScreen-ClWFu_8I.cjs")).then((m) => ({ default: m.MySiteScreen })));
|
|
@@ -1884,7 +1905,7 @@ function isRouteCoveredByNav(currentSlug, baseSlug, navSlugs) {
|
|
|
1884
1905
|
if (navSlugs === void 0) return true;
|
|
1885
1906
|
return navSlugs.some((navSlug) => navSlug === baseSlug || currentSlug === navSlug || currentSlug.startsWith(navSlug + "/"));
|
|
1886
1907
|
}
|
|
1887
|
-
function PageRouter({ currentSlug, currentNavItem, customPages, screens, baseSlug, restParams, navSlugs }) {
|
|
1908
|
+
function PageRouter({ currentSlug, currentNavItem, customPages, memberTypeCustomPages, screens, baseSlug, restParams, navSlugs }) {
|
|
1888
1909
|
const { data: account } = require_use_account.useAccount();
|
|
1889
1910
|
const canRep = !require_member_permissions.deniesRepSurfaces(account);
|
|
1890
1911
|
const screenById = (0, react.useMemo)(() => {
|
|
@@ -1918,6 +1939,12 @@ function PageRouter({ currentSlug, currentNavItem, customPages, screens, baseSlu
|
|
|
1918
1939
|
const routeCoveredByNav = currentNavItem !== void 0 || isRouteCoveredByNav(currentSlug, baseSlug, navSlugs);
|
|
1919
1940
|
const isRepOnlyRoute = require_use_navigation_parent.isRepOnlySlug(currentSlug);
|
|
1920
1941
|
if (!canRep && isRepOnlyRoute && routeCoveredByNav) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AccessDeniedScreen, {});
|
|
1942
|
+
const memberTypeContentSlug = account?.member_type_detail?.slug ?? null;
|
|
1943
|
+
const MemberTypePage = canRep || !isRepOnlyRoute ? resolveMemberTypePage(memberTypeCustomPages, memberTypeContentSlug, currentSlug, baseSlug) : void 0;
|
|
1944
|
+
if (MemberTypePage) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MemberTypePage, {
|
|
1945
|
+
slug: currentSlug,
|
|
1946
|
+
params: restParams
|
|
1947
|
+
});
|
|
1921
1948
|
const ExactCustomPage = customPages?.[currentSlug];
|
|
1922
1949
|
if (ExactCustomPage) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExactCustomPage, {
|
|
1923
1950
|
slug: currentSlug,
|
|
@@ -2111,7 +2138,7 @@ function findNavItem(items, slug) {
|
|
|
2111
2138
|
for (const child of item.children ?? []) if (require_use_navigation_parent.normalizeSlug(child.slug) === normalized) return child;
|
|
2112
2139
|
}
|
|
2113
2140
|
}
|
|
2114
|
-
function AppShell({ appData: appDataProp, navigation: navigationProp, customPages, basePath = "/", currentSlug: controlledSlug, onNavigate: onNavigateProp, sidebarHeader, sidebarFooter, onLogout, logoutRedirectUrl, errorReporter, children }) {
|
|
2141
|
+
function AppShell({ appData: appDataProp, navigation: navigationProp, customPages, memberTypeCustomPages, basePath = "/", currentSlug: controlledSlug, onNavigate: onNavigateProp, sidebarHeader, sidebarFooter, onLogout, logoutRedirectUrl, errorReporter, children }) {
|
|
2115
2142
|
const normalizedBasePath = (0, react.useMemo)(() => {
|
|
2116
2143
|
const stripped = basePath.replace(/^\/|\/$/g, "");
|
|
2117
2144
|
return stripped ? `/${stripped}` : "/";
|
|
@@ -2344,6 +2371,7 @@ function AppShell({ appData: appDataProp, navigation: navigationProp, customPage
|
|
|
2344
2371
|
currentSlug: activeSlug,
|
|
2345
2372
|
currentNavItem,
|
|
2346
2373
|
customPages,
|
|
2374
|
+
memberTypeCustomPages,
|
|
2347
2375
|
screens,
|
|
2348
2376
|
baseSlug,
|
|
2349
2377
|
restParams,
|
|
@@ -2680,6 +2708,7 @@ function createPortal(config = {}) {
|
|
|
2680
2708
|
const widgetPackageLoadPromise = createWidgetPackageLoadPromise(config, fluidConfig);
|
|
2681
2709
|
let app = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AppShell, {
|
|
2682
2710
|
customPages: config.customPages,
|
|
2711
|
+
memberTypeCustomPages: config.memberTypeCustomPages,
|
|
2683
2712
|
errorReporter: config.errorReporter,
|
|
2684
2713
|
...config.shell
|
|
2685
2714
|
});
|
|
@@ -3434,15 +3463,15 @@ const CORE_PAGE_IDS = {
|
|
|
3434
3463
|
//#endregion
|
|
3435
3464
|
//#region src/screens/index.ts
|
|
3436
3465
|
const screenPropertySchemas = {
|
|
3437
|
-
ProfileScreen: () => Promise.resolve().then(() => require("./ProfileScreen-
|
|
3438
|
-
MessagingScreen: () => Promise.resolve().then(() => require("./MessagingScreen-
|
|
3466
|
+
ProfileScreen: () => Promise.resolve().then(() => require("./ProfileScreen-BgufOBvz.cjs")).then((m) => m.profileScreenPropertySchema),
|
|
3467
|
+
MessagingScreen: () => Promise.resolve().then(() => require("./MessagingScreen-B9cy5cow.cjs")).then((m) => m.messagingScreenPropertySchema),
|
|
3439
3468
|
ContactsScreen: () => Promise.resolve().then(() => require("./ContactsScreen-CHZ0KEUy.cjs")).then((m) => m.contactsScreenPropertySchema),
|
|
3440
|
-
OrdersScreen: () => Promise.resolve().then(() => require("./OrdersScreen-
|
|
3441
|
-
SubscriptionsScreen: () => Promise.resolve().then(() => require("./SubscriptionsScreen-
|
|
3469
|
+
OrdersScreen: () => Promise.resolve().then(() => require("./OrdersScreen-CdMqtyp-.cjs")).then((m) => m.ordersScreenPropertySchema),
|
|
3470
|
+
SubscriptionsScreen: () => Promise.resolve().then(() => require("./SubscriptionsScreen-RMjqJpCY.cjs")).then((m) => m.subscriptionsScreenPropertySchema),
|
|
3442
3471
|
CustomersScreen: () => Promise.resolve().then(() => require("./CustomersScreen-BM08PF8p.cjs")).then((m) => m.customersScreenPropertySchema),
|
|
3443
3472
|
MySiteScreen: () => Promise.resolve().then(() => require("./MySiteScreen-ClWFu_8I.cjs")).then((m) => m.mySiteScreenPropertySchema),
|
|
3444
3473
|
ShareablesScreen: () => Promise.resolve().then(() => require("./ShareablesScreen-BAzK2RgL.cjs")).then((m) => m.shareablesScreenPropertySchema),
|
|
3445
|
-
ShopScreen: () => Promise.resolve().then(() => require("./ShopScreen-
|
|
3474
|
+
ShopScreen: () => Promise.resolve().then(() => require("./ShopScreen-BsjQ3GzV.cjs")).then((m) => m.shopScreenPropertySchema),
|
|
3446
3475
|
AppDownloadScreen: () => Promise.resolve().then(() => require("./AppDownloadScreen-DMiKUvYe.cjs")).then((n) => n.AppDownloadScreen_exports).then((m) => m.appDownloadScreenPropertySchema)
|
|
3447
3476
|
};
|
|
3448
3477
|
/**
|