@fluid-app/portal-sdk 0.1.426 → 0.1.427

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.
@@ -2,6 +2,7 @@ import { type ReactNode, type ComponentType } from "react";
2
2
  import type { RepAppData } from "@fluid-app/portal-core/types";
3
3
  import type { NavigationItem } from "../types/navigation";
4
4
  import type { PortalErrorReporter } from "../errors/portal-error-reporter";
5
+ import type { MemberTypeCustomPages } from "@fluid-app/portal-core/member-type-content";
5
6
  export interface AppShellProps {
6
7
  /** Pre-fetched app data (skips internal useFluidApp call if provided) */
7
8
  appData?: RepAppData;
@@ -12,6 +13,8 @@ export interface AppShellProps {
12
13
  slug?: string;
13
14
  params?: string;
14
15
  }>>;
16
+ /** Per-member-type page overrides, resolved by the current member's slug. */
17
+ memberTypeCustomPages?: MemberTypeCustomPages;
15
18
  /** Base path for subpath deployments (e.g. "/portal"). Default: "/" */
16
19
  basePath?: string;
17
20
  /** Controlled current slug */
@@ -39,5 +42,5 @@ export interface AppShellProps {
39
42
  currentNavItem: NavigationItem | undefined;
40
43
  }) => ReactNode);
41
44
  }
42
- export declare function AppShell({ appData: appDataProp, navigation: navigationProp, customPages, basePath, currentSlug: controlledSlug, onNavigate: onNavigateProp, sidebarHeader, sidebarFooter, onLogout, logoutRedirectUrl, errorReporter, children }: AppShellProps): React.JSX.Element;
45
+ export declare function AppShell({ appData: appDataProp, navigation: navigationProp, customPages, memberTypeCustomPages, basePath, currentSlug: controlledSlug, onNavigate: onNavigateProp, sidebarHeader, sidebarFooter, onLogout, logoutRedirectUrl, errorReporter, children }: AppShellProps): React.JSX.Element;
43
46
  //# sourceMappingURL=AppShell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../src/shell/AppShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,SAAS,EACd,KAAK,aAAa,EAEnB,MAAM,OAAO,CAAC;AAWf,OAAO,KA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AAM,IAAI,CAAC;IACtB,yFAAyF;IACzF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,8FAA8F;IAC9F,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,0DAA0D;IAC1D,QAAQ,CAAC,EACL,SAAS,GACT,CAAC,CAAC,KAAK,EAAE;QACP,WAAW,EAAE,MAAM,CAAC;QACpB,cAAc,EAAE,cAAc,GAAG,SAAS,CAAC;KAC5C,KAAK,SAAS,CAAC,CAAC;CACtB;AAED,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,cAAc,EAC1B,WAAW,EACX,qBAAqB,EACrB,QAAc,EACd,WAAW,EAAE,cAAc,EAC3B,UAAU,EAAE,cAAc,EAC1B,aAAa,EACb,aAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,aAAa,EACb,QAAQ,EACT,EAAE,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA8fnC"}
@@ -1,5 +1,6 @@
1
1
  import { type ComponentType } from "react";
2
2
  import type { NavigationItem, ScreenDefinition } from "../types/navigation";
3
+ import { type MemberTypeCustomPages } from "@fluid-app/portal-core/member-type-content";
3
4
  export interface PageRouterProps {
4
5
  currentSlug: string;
5
6
  currentNavItem?: NavigationItem | undefined;
@@ -7,6 +8,8 @@ export interface PageRouterProps {
7
8
  slug?: string;
8
9
  params?: string;
9
10
  }>> | undefined;
11
+ /** Per-member-type page overrides, resolved by the current member's slug. */
12
+ memberTypeCustomPages?: MemberTypeCustomPages | undefined;
10
13
  /** Builder screen definitions (from fluidos API) */
11
14
  screens?: ScreenDefinition[] | undefined;
12
15
  baseSlug: string;
@@ -20,5 +23,5 @@ export interface PageRouterProps {
20
23
  */
21
24
  navSlugs?: readonly string[] | undefined;
22
25
  }
23
- export declare function PageRouter({ currentSlug, currentNavItem, customPages, screens, baseSlug, restParams, navSlugs }: PageRouterProps): React.JSX.Element;
26
+ export declare function PageRouter({ currentSlug, currentNavItem, customPages, memberTypeCustomPages, screens, baseSlug, restParams, navSlugs }: PageRouterProps): React.JSX.Element;
24
27
  //# sourceMappingURL=PageRouter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageRouter.d.ts","sourceRoot":"","sources":["../../src/shell/PageRouter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAM9D,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AA2C5E,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IAC5C,WAAW,CAAC,EACR,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,GACjE,SAAS,CAAC;IACd,oDAAoD;IACpD,OAAO,CAAC,EAAE,gBAAgB,EAAE,GAAG,SAAS,CAAC;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;CAC1C;AAED,wBAAgB,UAAU,CAAC,EACzB,WAAW,EACX,cAAc,EACd,WAAW,EACX,OAAO,EACP,QAAQ,EACR,UAAU,EACV,QAAQ,EACT,EAAE,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA4HrC"}
1
+ {"version":3,"file":"PageRouter.d.ts","sourceRoot":"","sources":["../../src/shell/PageRouter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAM9D,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAO5E,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,4CAA4C,CAAC;AAqCpD,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IAC5C,WAAW,CAAC,EACR,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,GACjE,SAAS,CAAC;IACd,6EAA6E;IAC7E,qBAAqB,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAC1D,oDAAoD;IACpD,OAAO,CAAC,EAAE,gBAAgB,EAAE,GAAG,SAAS,CAAC;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;CAC1C;AAED,wBAAgB,UAAU,CAAC,EACzB,WAAW,EACX,cAAc,EACd,WAAW,EACX,qBAAqB,EACrB,OAAO,EACP,QAAQ,EACR,UAAU,EACV,QAAQ,EACT,EAAE,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAuJrC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-app/portal-sdk",
3
- "version": "0.1.426",
3
+ "version": "0.1.427",
4
4
  "description": "SDK for building custom Fluid portals",
5
5
  "files": [
6
6
  "dist",
@@ -84,40 +84,40 @@
84
84
  "tsdown": "^0.21.0",
85
85
  "typescript": "^5",
86
86
  "zod": "4.3.5",
87
- "@fluid-app/api-client-core": "0.1.0",
88
- "@fluid-app/auth": "0.1.0",
89
87
  "@fluid-app/address-fields": "0.1.0",
90
- "@fluid-app/address-autocomplete": "0.1.0",
91
- "@fluid-app/cart-ui": "0.1.25",
88
+ "@fluid-app/auth": "0.1.0",
92
89
  "@fluid-app/company-switcher-ui": "0.1.0",
90
+ "@fluid-app/api-client-core": "0.1.0",
91
+ "@fluid-app/cart-ui": "0.1.25",
93
92
  "@fluid-app/contacts-core": "0.1.0",
94
93
  "@fluid-app/file-picker-api-client": "0.1.0",
94
+ "@fluid-app/address-autocomplete": "0.1.0",
95
95
  "@fluid-app/contacts-ui": "0.1.0",
96
96
  "@fluid-app/file-picker-core": "0.1.0",
97
- "@fluid-app/fluid-pay-core": "0.1.0",
98
97
  "@fluid-app/fluid-pay-ui": "0.1.0",
98
+ "@fluid-app/fluid-pay-core": "0.1.0",
99
99
  "@fluid-app/i18n": "0.1.0",
100
100
  "@fluid-app/messaging-api-client": "0.1.0",
101
101
  "@fluid-app/messaging-core": "0.1.0",
102
- "@fluid-app/mysite-core": "0.1.0",
103
102
  "@fluid-app/messaging-ui": "0.1.0",
103
+ "@fluid-app/mysite-core": "0.1.0",
104
+ "@fluid-app/mysite-ui": "0.1.0",
104
105
  "@fluid-app/orders-core": "0.1.0",
105
106
  "@fluid-app/orders-ui": "0.1.0",
106
- "@fluid-app/mysite-ui": "0.1.0",
107
107
  "@fluid-app/payments-display": "0.1.0",
108
108
  "@fluid-app/portal-app-download-ui": "0.1.0",
109
109
  "@fluid-app/portal-core": "0.1.23",
110
110
  "@fluid-app/portal-preview": "0.1.0",
111
111
  "@fluid-app/portal-react": "0.1.0",
112
- "@fluid-app/portal-tenant-contacts-api-client": "0.1.0",
113
112
  "@fluid-app/portal-tenant-api-client": "0.1.0",
113
+ "@fluid-app/portal-tenant-contacts-api-client": "0.1.0",
114
114
  "@fluid-app/portal-tenant-content-api-client": "0.1.0",
115
115
  "@fluid-app/portal-tenant-mysite-api-client": "0.1.0",
116
116
  "@fluid-app/portal-tenant-pay-api-client": "0.1.0",
117
- "@fluid-app/portal-tenant-store-api-client": "0.1.0",
118
117
  "@fluid-app/portal-widgets": "0.1.22",
119
- "@fluid-app/products-api-client": "0.1.0",
118
+ "@fluid-app/portal-tenant-store-api-client": "0.1.0",
120
119
  "@fluid-app/products-core": "0.1.0",
120
+ "@fluid-app/products-api-client": "0.1.0",
121
121
  "@fluid-app/profile-core": "0.1.0",
122
122
  "@fluid-app/profile-ui": "0.1.0",
123
123
  "@fluid-app/query-persister": "0.1.0",
@@ -125,10 +125,10 @@
125
125
  "@fluid-app/shareables-ui": "0.1.0",
126
126
  "@fluid-app/shop-core": "0.1.0",
127
127
  "@fluid-app/shop-ui": "0.1.0",
128
- "@fluid-app/store-core": "0.1.0",
129
128
  "@fluid-app/subscriptions-core": "0.1.0",
130
- "@fluid-app/typescript-config": "0.0.0",
129
+ "@fluid-app/store-core": "0.1.0",
131
130
  "@fluid-app/subscriptions-ui": "0.1.0",
131
+ "@fluid-app/typescript-config": "0.0.0",
132
132
  "@fluid-app/ui-primitives": "0.1.13",
133
133
  "@fluid-app/widget-runtime": "0.1.0"
134
134
  },