@riverbankcms/sdk 0.4.0 → 0.4.2

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.
Files changed (124) hide show
  1. package/README.md +73 -0
  2. package/dist/cli/index.js +46 -5
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/client/client.d.mts +3 -3
  5. package/dist/client/client.d.ts +3 -3
  6. package/dist/client/client.js +80 -170
  7. package/dist/client/client.js.map +1 -1
  8. package/dist/client/client.mjs +80 -170
  9. package/dist/client/client.mjs.map +1 -1
  10. package/dist/client/hooks.d.mts +3 -3
  11. package/dist/client/hooks.d.ts +3 -3
  12. package/dist/client/rendering/client.d.mts +1 -1
  13. package/dist/client/rendering/client.d.ts +1 -1
  14. package/dist/client/rendering/client.js +80 -142
  15. package/dist/client/rendering/client.js.map +1 -1
  16. package/dist/client/rendering/client.mjs +80 -142
  17. package/dist/client/rendering/client.mjs.map +1 -1
  18. package/dist/client/resolver-CYyfzTQ9.d.mts +61 -0
  19. package/dist/client/resolver-CYyfzTQ9.d.ts +61 -0
  20. package/dist/client/usePage-BC8Q2E3t.d.mts +6431 -0
  21. package/dist/client/usePage-CHEybPMD.d.ts +6429 -0
  22. package/dist/client/usePage-D4fxZbRR.d.mts +6429 -0
  23. package/dist/client/usePage-DpRNZUtP.d.ts +6431 -0
  24. package/dist/server/{Layout-B_zUr9ci.d.mts → Layout-ByUnm35V.d.mts} +1 -1
  25. package/dist/server/{Layout-CHG77dhK.d.ts → Layout-kRv5sU81.d.ts} +1 -1
  26. package/dist/server/{chunk-ZIM53VP6.js → chunk-6JBKKV3G.js} +27 -4
  27. package/dist/server/chunk-6JBKKV3G.js.map +1 -0
  28. package/dist/server/{chunk-SFQ7VF3G.mjs → chunk-7BOIO2S7.mjs} +7 -5
  29. package/dist/server/{chunk-SFQ7VF3G.mjs.map → chunk-7BOIO2S7.mjs.map} +1 -1
  30. package/dist/server/{chunk-M5KTLZTD.mjs → chunk-A2FZMRDW.mjs} +3 -2
  31. package/dist/server/chunk-A2FZMRDW.mjs.map +1 -0
  32. package/dist/server/{chunk-P6CDRJN3.js → chunk-BLKVTULP.js} +13 -11
  33. package/dist/server/chunk-BLKVTULP.js.map +1 -0
  34. package/dist/server/{chunk-BOHTTHY5.mjs → chunk-I6K5REFT.mjs} +27 -4
  35. package/dist/server/chunk-I6K5REFT.mjs.map +1 -0
  36. package/dist/server/{chunk-BUCJWG6G.js → chunk-NW5KHH4A.js} +5 -5
  37. package/dist/server/{chunk-BUCJWG6G.js.map → chunk-NW5KHH4A.js.map} +1 -1
  38. package/dist/server/{chunk-XK2YIISA.mjs → chunk-SPXMMX3C.mjs} +2 -2
  39. package/dist/server/{chunk-FPYK6527.js → chunk-SWPHIUVE.js} +7 -6
  40. package/dist/server/chunk-SWPHIUVE.js.map +1 -0
  41. package/dist/server/{chunk-IT5ICP43.js → chunk-TKMA6D6U.js} +139 -229
  42. package/dist/server/chunk-TKMA6D6U.js.map +1 -0
  43. package/dist/server/{chunk-NKXS4TBK.mjs → chunk-TNRADRPH.mjs} +79 -169
  44. package/dist/server/chunk-TNRADRPH.mjs.map +1 -0
  45. package/dist/server/{chunk-G4CKM4EN.js → chunk-Y7347JMZ.js} +3 -2
  46. package/dist/server/chunk-Y7347JMZ.js.map +1 -0
  47. package/dist/server/{chunk-VVFYHAUD.mjs → chunk-ZEAJW6T3.mjs} +5 -4
  48. package/dist/server/chunk-ZEAJW6T3.mjs.map +1 -0
  49. package/dist/server/{components-Ci5nlyUj.d.mts → components-CY8jDQjv.d.mts} +20 -12
  50. package/dist/server/{components-BYxloYJm.d.ts → components-D1Z2mSDr.d.ts} +20 -12
  51. package/dist/server/components.d.mts +6 -6
  52. package/dist/server/components.d.ts +6 -6
  53. package/dist/server/components.js +3 -3
  54. package/dist/server/components.mjs +2 -2
  55. package/dist/server/config-validation.d.mts +2 -2
  56. package/dist/server/config-validation.d.ts +2 -2
  57. package/dist/server/config-validation.js +3 -3
  58. package/dist/server/config-validation.mjs +2 -2
  59. package/dist/server/config.d.mts +3 -3
  60. package/dist/server/config.d.ts +3 -3
  61. package/dist/server/config.js +3 -3
  62. package/dist/server/config.mjs +2 -2
  63. package/dist/server/data.d.mts +7 -5
  64. package/dist/server/data.d.ts +7 -5
  65. package/dist/server/data.js +2 -2
  66. package/dist/server/data.mjs +1 -1
  67. package/dist/server/{index-DbSfrRA0.d.ts → index-DCIz9Ptv.d.ts} +1 -1
  68. package/dist/server/{index-Dj7VKH34.d.mts → index-DFQwtj3J.d.mts} +1 -1
  69. package/dist/server/index.d.mts +4 -4
  70. package/dist/server/index.d.ts +4 -4
  71. package/dist/server/{loadContent-Czu7xTOU.d.mts → loadContent-CWuE8FCx.d.mts} +4 -4
  72. package/dist/server/{loadContent-BqQ-VPMW.d.ts → loadContent-DynBuR5f.d.ts} +4 -4
  73. package/dist/server/{loadPage-Dw57_n5N.d.mts → loadPage-B8RmlYgV.d.mts} +80 -28
  74. package/dist/server/{loadPage-BElEkA_J.d.ts → loadPage-BTkKpizX.d.ts} +80 -28
  75. package/dist/server/loadPage-DUHBXDEW.js +11 -0
  76. package/dist/server/{loadPage-E3ZC6NHB.js.map → loadPage-DUHBXDEW.js.map} +1 -1
  77. package/dist/server/{loadPage-E7L7NMR3.mjs → loadPage-LYVKY3WZ.mjs} +3 -3
  78. package/dist/server/metadata.d.mts +4 -4
  79. package/dist/server/metadata.d.ts +4 -4
  80. package/dist/server/navigation.d.mts +2 -2
  81. package/dist/server/navigation.d.ts +2 -2
  82. package/dist/server/rendering/server.d.mts +5 -5
  83. package/dist/server/rendering/server.d.ts +5 -5
  84. package/dist/server/rendering/server.js +4 -4
  85. package/dist/server/rendering/server.mjs +3 -3
  86. package/dist/server/rendering.d.mts +8 -8
  87. package/dist/server/rendering.d.ts +8 -8
  88. package/dist/server/rendering.js +6 -6
  89. package/dist/server/rendering.mjs +5 -5
  90. package/dist/server/routing.d.mts +79 -6
  91. package/dist/server/routing.d.ts +79 -6
  92. package/dist/server/routing.js +57 -3
  93. package/dist/server/routing.js.map +1 -1
  94. package/dist/server/routing.mjs +55 -1
  95. package/dist/server/routing.mjs.map +1 -1
  96. package/dist/server/server.d.mts +6 -6
  97. package/dist/server/server.d.ts +6 -6
  98. package/dist/server/server.js +3 -3
  99. package/dist/server/server.mjs +2 -2
  100. package/dist/server/theme-bridge.js +7 -7
  101. package/dist/server/theme-bridge.mjs +1 -1
  102. package/dist/server/{types-5XdVD2J1.d.ts → types-BiRZnxDx.d.ts} +17 -6
  103. package/dist/server/{types-CMqVHYLG.d.ts → types-CL916r6x.d.ts} +23 -1
  104. package/dist/server/{types-BuZJWVmj.d.mts → types-CbagRQ_7.d.mts} +15 -0
  105. package/dist/server/{types-BA-J9K8r.d.mts → types-CdrJqlKx.d.mts} +17 -6
  106. package/dist/server/{types-BC9eB2KH.d.mts → types-DkKEctWn.d.mts} +1 -1
  107. package/dist/server/{types-DSFvXKhO.d.ts → types-DuQCNVV0.d.ts} +15 -0
  108. package/dist/server/{types-CAnC529E.d.ts → types-oCM-fw4O.d.ts} +1 -1
  109. package/dist/server/{types-CYfHxUhe.d.mts → types-txWsSxN7.d.mts} +23 -1
  110. package/dist/server/{validation-C7W2Fe0i.d.ts → validation-CoU8uAiu.d.ts} +1 -1
  111. package/dist/server/{validation-hg1sqhrt.d.mts → validation-DzvDwwRo.d.mts} +1 -1
  112. package/package.json +1 -1
  113. package/dist/server/chunk-BOHTTHY5.mjs.map +0 -1
  114. package/dist/server/chunk-FPYK6527.js.map +0 -1
  115. package/dist/server/chunk-G4CKM4EN.js.map +0 -1
  116. package/dist/server/chunk-IT5ICP43.js.map +0 -1
  117. package/dist/server/chunk-M5KTLZTD.mjs.map +0 -1
  118. package/dist/server/chunk-NKXS4TBK.mjs.map +0 -1
  119. package/dist/server/chunk-P6CDRJN3.js.map +0 -1
  120. package/dist/server/chunk-VVFYHAUD.mjs.map +0 -1
  121. package/dist/server/chunk-ZIM53VP6.js.map +0 -1
  122. package/dist/server/loadPage-E3ZC6NHB.js +0 -11
  123. /package/dist/server/{chunk-XK2YIISA.mjs.map → chunk-SPXMMX3C.mjs.map} +0 -0
  124. /package/dist/server/{loadPage-E7L7NMR3.mjs.map → loadPage-LYVKY3WZ.mjs.map} +0 -0
@@ -1,11 +1,11 @@
1
- import { R as RiverbankClient, S as SiteResponse } from './types-BC9eB2KH.mjs';
1
+ import { R as RiverbankClient, S as SiteResponse } from './types-DkKEctWn.mjs';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import * as React$1 from 'react';
4
- import React__default, { ComponentType } from 'react';
4
+ import React__default from 'react';
5
5
  import { P as PageOutline, S as SdkCustomBlock } from './schema-Bpy9N5ZI.mjs';
6
6
  import { z } from 'zod';
7
- import { T as Theme } from './types-BA-J9K8r.mjs';
8
- import { R as ResolvedBlockData, D as DataLoaderOverrides } from './types-BuZJWVmj.mjs';
7
+ import { T as Theme } from './types-CdrJqlKx.mjs';
8
+ import { R as ResolvedBlockData, D as DataLoaderOverrides } from './types-CbagRQ_7.mjs';
9
9
 
10
10
  declare const colorTokens: readonly ["background/base", "background/elevated", "surface/base", "surface/subtle", "surface/inverted", "content/primary", "content/secondary", "accent/primary", "accent/secondary", "border/base"];
11
11
  declare const typographyTokens: readonly ["display/hero", "display/section", "heading/large", "heading/medium", "heading/small", "body/normal", "body/small", "caption"];
@@ -64,22 +64,6 @@ type ResolverContext = {
64
64
  fragmentRegistry?: Record<string, any>;
65
65
  };
66
66
 
67
- type SystemBlockComponentProps<TContent = Record<string, unknown>> = {
68
- content: TContent;
69
- theme?: ThemeTokens;
70
- themeConfig?: Theme;
71
- registry?: ResolverContext["registry"];
72
- transforms?: TransformRegistry;
73
- viewModelOverrides?: Record<string, unknown>;
74
- data?: Record<string, unknown>;
75
- pathBase?: string;
76
- blockId?: string | null;
77
- blockKind?: string;
78
- blockBindings?: Record<string, unknown>;
79
- fragmentRegistry?: ResolverContext["fragmentRegistry"];
80
- };
81
- type SystemBlockComponent<TContent = Record<string, unknown>> = ComponentType<SystemBlockComponentProps<TContent>>;
82
-
83
67
  /**
84
68
  * Occurrence context for event pages.
85
69
  * Passed through to blocks that need occurrence information (e.g., event-registration).
@@ -101,15 +85,64 @@ type PageRendererDataContext = {
101
85
  occurrenceContext?: OccurrenceContextData | null;
102
86
  contentEntry?: Record<string, unknown> | null;
103
87
  };
88
+ /**
89
+ * Props passed to block override components.
90
+ *
91
+ * These props are RSC-safe (no functions) so overrides can be Client Components.
92
+ * Unlike internal SDK block components, overrides don't receive `registry` or
93
+ * `fragmentRegistry` which contain function references that can't cross the
94
+ * RSC serialization boundary.
95
+ *
96
+ * @example
97
+ * ```tsx
98
+ * 'use client';
99
+ *
100
+ * import type { BlockOverrideProps, HeroContent } from '@riverbankcms/sdk/rendering';
101
+ *
102
+ * export function CustomHero({ content, theme, data }: BlockOverrideProps<HeroContent>) {
103
+ * const [expanded, setExpanded] = useState(false);
104
+ * return <div>...</div>;
105
+ * }
106
+ * ```
107
+ */
108
+ type BlockOverrideProps<TContent = Record<string, unknown>> = {
109
+ /** Block content data */
110
+ content: TContent;
111
+ /** Theme tokens for styling */
112
+ theme?: ThemeTokens;
113
+ /** Full theme configuration */
114
+ themeConfig?: Theme;
115
+ /** Pre-fetched data from data loaders */
116
+ data?: Record<string, unknown>;
117
+ /** Block instance ID (null for unsaved blocks) */
118
+ blockId: string | null;
119
+ /** Block kind identifier (e.g., "block.hero" or "custom.my-block") */
120
+ blockKind: string;
121
+ };
104
122
  /**
105
123
  * Block override component type.
106
- * Override components receive the same props as default block components.
107
124
  *
108
- * Uses `any` for content type to allow typed components (e.g., SystemBlockComponentProps<HeroContent>)
109
- * to be used as overrides without type errors. The actual content type is validated at runtime
110
- * based on the block kind.
125
+ * Override components can be either Server Components or Client Components.
126
+ * They receive only serializable props (no functions) to support RSC boundaries.
127
+ *
128
+ * @example Server Component override
129
+ * ```tsx
130
+ * export function CustomHero({ content, theme, data }: BlockOverrideProps<HeroContent>) {
131
+ * return <div className="custom-hero">...</div>;
132
+ * }
133
+ * ```
134
+ *
135
+ * @example Client Component override
136
+ * ```tsx
137
+ * 'use client';
138
+ *
139
+ * export function CustomHero({ content, theme, data }: BlockOverrideProps<HeroContent>) {
140
+ * const [state, setState] = useState(null);
141
+ * return <div className="custom-hero">...</div>;
142
+ * }
143
+ * ```
111
144
  */
112
- type BlockOverrideComponent = SystemBlockComponent<any>;
145
+ type BlockOverrideComponent = React$1.ComponentType<BlockOverrideProps<any>>;
113
146
  /**
114
147
  * Map of block kinds to custom override components.
115
148
  * Keys can be either:
@@ -119,8 +152,8 @@ type BlockOverrideComponent = SystemBlockComponent<any>;
119
152
  * @example
120
153
  * ```tsx
121
154
  * const overrides: BlockOverrides = {
122
- * 'hero': CustomHero, // CustomHero: SystemBlockComponentProps<HeroContent>
123
- * 'bodyText': CustomBodyText, // CustomBodyText: SystemBlockComponentProps<BodyTextContent>
155
+ * 'hero': CustomHero, // CustomHero uses BlockOverrideProps<HeroContent>
156
+ * 'bodyText': CustomBodyText, // CustomBodyText uses BlockOverrideProps<BodyTextContent>
124
157
  * };
125
158
  * ```
126
159
  */
@@ -288,6 +321,25 @@ type LoadPageParams = {
288
321
  * ```
289
322
  */
290
323
  dataLoaderOverrides?: DataLoaderOverrides;
324
+ /**
325
+ * URL search parameters from the page request.
326
+ * Passed to code-based data loaders for pagination, filtering, etc.
327
+ *
328
+ * @example
329
+ * ```typescript
330
+ * // In Next.js App Router
331
+ * export default async function Page({ params, searchParams }) {
332
+ * const pageData = await loadPage({
333
+ * client,
334
+ * siteId: 'site-123',
335
+ * path: `/${params.slug || ''}`,
336
+ * searchParams: await searchParams,
337
+ * });
338
+ * return <Page {...pageData} />;
339
+ * }
340
+ * ```
341
+ */
342
+ searchParams?: Record<string, string | string[] | undefined>;
291
343
  };
292
344
  type LoadPageResult = Omit<PageProps, 'registry' | 'wrapBlock' | 'usePlaceholders' | 'blockOverrides'> & {
293
345
  /**
@@ -355,4 +407,4 @@ type LoadPageResult = Omit<PageProps, 'registry' | 'wrapBlock' | 'usePlaceholder
355
407
  */
356
408
  declare function loadPage(params: LoadPageParams): Promise<LoadPageResult>;
357
409
 
358
- export { type BlockOverrides as B, type LoadPageParams as L, type PageProps as P, type RuntimeSdkConfig as R, type SystemBlockComponentProps as S, type ThemeTokens as T, type LoadPageResult as a, Page as b, PageRenderer as c, type RouteMap as d, type BlockOverrideComponent as e, loadPage as l };
410
+ export { type BlockOverrides as B, type LoadPageParams as L, type PageProps as P, type RuntimeSdkConfig as R, type ThemeTokens as T, type LoadPageResult as a, Page as b, PageRenderer as c, type RouteMap as d, type BlockOverrideComponent as e, type BlockOverrideProps as f, type ResolverContext as g, type TransformRegistry as h, loadPage as l };
@@ -1,11 +1,11 @@
1
- import { R as RiverbankClient, S as SiteResponse } from './types-CAnC529E.js';
1
+ import { R as RiverbankClient, S as SiteResponse } from './types-oCM-fw4O.js';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import * as React$1 from 'react';
4
- import React__default, { ComponentType } from 'react';
4
+ import React__default from 'react';
5
5
  import { P as PageOutline, S as SdkCustomBlock } from './schema-Bpy9N5ZI.js';
6
6
  import { z } from 'zod';
7
- import { T as Theme } from './types-5XdVD2J1.js';
8
- import { R as ResolvedBlockData, D as DataLoaderOverrides } from './types-DSFvXKhO.js';
7
+ import { T as Theme } from './types-BiRZnxDx.js';
8
+ import { R as ResolvedBlockData, D as DataLoaderOverrides } from './types-DuQCNVV0.js';
9
9
 
10
10
  declare const colorTokens: readonly ["background/base", "background/elevated", "surface/base", "surface/subtle", "surface/inverted", "content/primary", "content/secondary", "accent/primary", "accent/secondary", "border/base"];
11
11
  declare const typographyTokens: readonly ["display/hero", "display/section", "heading/large", "heading/medium", "heading/small", "body/normal", "body/small", "caption"];
@@ -64,22 +64,6 @@ type ResolverContext = {
64
64
  fragmentRegistry?: Record<string, any>;
65
65
  };
66
66
 
67
- type SystemBlockComponentProps<TContent = Record<string, unknown>> = {
68
- content: TContent;
69
- theme?: ThemeTokens;
70
- themeConfig?: Theme;
71
- registry?: ResolverContext["registry"];
72
- transforms?: TransformRegistry;
73
- viewModelOverrides?: Record<string, unknown>;
74
- data?: Record<string, unknown>;
75
- pathBase?: string;
76
- blockId?: string | null;
77
- blockKind?: string;
78
- blockBindings?: Record<string, unknown>;
79
- fragmentRegistry?: ResolverContext["fragmentRegistry"];
80
- };
81
- type SystemBlockComponent<TContent = Record<string, unknown>> = ComponentType<SystemBlockComponentProps<TContent>>;
82
-
83
67
  /**
84
68
  * Occurrence context for event pages.
85
69
  * Passed through to blocks that need occurrence information (e.g., event-registration).
@@ -101,15 +85,64 @@ type PageRendererDataContext = {
101
85
  occurrenceContext?: OccurrenceContextData | null;
102
86
  contentEntry?: Record<string, unknown> | null;
103
87
  };
88
+ /**
89
+ * Props passed to block override components.
90
+ *
91
+ * These props are RSC-safe (no functions) so overrides can be Client Components.
92
+ * Unlike internal SDK block components, overrides don't receive `registry` or
93
+ * `fragmentRegistry` which contain function references that can't cross the
94
+ * RSC serialization boundary.
95
+ *
96
+ * @example
97
+ * ```tsx
98
+ * 'use client';
99
+ *
100
+ * import type { BlockOverrideProps, HeroContent } from '@riverbankcms/sdk/rendering';
101
+ *
102
+ * export function CustomHero({ content, theme, data }: BlockOverrideProps<HeroContent>) {
103
+ * const [expanded, setExpanded] = useState(false);
104
+ * return <div>...</div>;
105
+ * }
106
+ * ```
107
+ */
108
+ type BlockOverrideProps<TContent = Record<string, unknown>> = {
109
+ /** Block content data */
110
+ content: TContent;
111
+ /** Theme tokens for styling */
112
+ theme?: ThemeTokens;
113
+ /** Full theme configuration */
114
+ themeConfig?: Theme;
115
+ /** Pre-fetched data from data loaders */
116
+ data?: Record<string, unknown>;
117
+ /** Block instance ID (null for unsaved blocks) */
118
+ blockId: string | null;
119
+ /** Block kind identifier (e.g., "block.hero" or "custom.my-block") */
120
+ blockKind: string;
121
+ };
104
122
  /**
105
123
  * Block override component type.
106
- * Override components receive the same props as default block components.
107
124
  *
108
- * Uses `any` for content type to allow typed components (e.g., SystemBlockComponentProps<HeroContent>)
109
- * to be used as overrides without type errors. The actual content type is validated at runtime
110
- * based on the block kind.
125
+ * Override components can be either Server Components or Client Components.
126
+ * They receive only serializable props (no functions) to support RSC boundaries.
127
+ *
128
+ * @example Server Component override
129
+ * ```tsx
130
+ * export function CustomHero({ content, theme, data }: BlockOverrideProps<HeroContent>) {
131
+ * return <div className="custom-hero">...</div>;
132
+ * }
133
+ * ```
134
+ *
135
+ * @example Client Component override
136
+ * ```tsx
137
+ * 'use client';
138
+ *
139
+ * export function CustomHero({ content, theme, data }: BlockOverrideProps<HeroContent>) {
140
+ * const [state, setState] = useState(null);
141
+ * return <div className="custom-hero">...</div>;
142
+ * }
143
+ * ```
111
144
  */
112
- type BlockOverrideComponent = SystemBlockComponent<any>;
145
+ type BlockOverrideComponent = React$1.ComponentType<BlockOverrideProps<any>>;
113
146
  /**
114
147
  * Map of block kinds to custom override components.
115
148
  * Keys can be either:
@@ -119,8 +152,8 @@ type BlockOverrideComponent = SystemBlockComponent<any>;
119
152
  * @example
120
153
  * ```tsx
121
154
  * const overrides: BlockOverrides = {
122
- * 'hero': CustomHero, // CustomHero: SystemBlockComponentProps<HeroContent>
123
- * 'bodyText': CustomBodyText, // CustomBodyText: SystemBlockComponentProps<BodyTextContent>
155
+ * 'hero': CustomHero, // CustomHero uses BlockOverrideProps<HeroContent>
156
+ * 'bodyText': CustomBodyText, // CustomBodyText uses BlockOverrideProps<BodyTextContent>
124
157
  * };
125
158
  * ```
126
159
  */
@@ -288,6 +321,25 @@ type LoadPageParams = {
288
321
  * ```
289
322
  */
290
323
  dataLoaderOverrides?: DataLoaderOverrides;
324
+ /**
325
+ * URL search parameters from the page request.
326
+ * Passed to code-based data loaders for pagination, filtering, etc.
327
+ *
328
+ * @example
329
+ * ```typescript
330
+ * // In Next.js App Router
331
+ * export default async function Page({ params, searchParams }) {
332
+ * const pageData = await loadPage({
333
+ * client,
334
+ * siteId: 'site-123',
335
+ * path: `/${params.slug || ''}`,
336
+ * searchParams: await searchParams,
337
+ * });
338
+ * return <Page {...pageData} />;
339
+ * }
340
+ * ```
341
+ */
342
+ searchParams?: Record<string, string | string[] | undefined>;
291
343
  };
292
344
  type LoadPageResult = Omit<PageProps, 'registry' | 'wrapBlock' | 'usePlaceholders' | 'blockOverrides'> & {
293
345
  /**
@@ -355,4 +407,4 @@ type LoadPageResult = Omit<PageProps, 'registry' | 'wrapBlock' | 'usePlaceholder
355
407
  */
356
408
  declare function loadPage(params: LoadPageParams): Promise<LoadPageResult>;
357
409
 
358
- export { type BlockOverrides as B, type LoadPageParams as L, type PageProps as P, type RuntimeSdkConfig as R, type SystemBlockComponentProps as S, type ThemeTokens as T, type LoadPageResult as a, Page as b, PageRenderer as c, type RouteMap as d, type BlockOverrideComponent as e, loadPage as l };
410
+ export { type BlockOverrides as B, type LoadPageParams as L, type PageProps as P, type RuntimeSdkConfig as R, type ThemeTokens as T, type LoadPageResult as a, Page as b, PageRenderer as c, type RouteMap as d, type BlockOverrideComponent as e, type BlockOverrideProps as f, type ResolverContext as g, type TransformRegistry as h, loadPage as l };
@@ -0,0 +1,11 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkSWPHIUVEjs = require('./chunk-SWPHIUVE.js');
4
+ require('./chunk-Y7347JMZ.js');
5
+ require('./chunk-HOY77YBF.js');
6
+ require('./chunk-EGTDJ4PL.js');
7
+ require('./chunk-DGUM43GV.js');
8
+
9
+
10
+ exports.loadPage = _chunkSWPHIUVEjs.loadPage;
11
+ //# sourceMappingURL=loadPage-DUHBXDEW.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/will/Projects/Business/cms/builder/packages/sdk/dist/server/loadPage-E3ZC6NHB.js"],"names":[],"mappings":"AAAA;AACE;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACF,6CAAC","file":"/Users/will/Projects/Business/cms/builder/packages/sdk/dist/server/loadPage-E3ZC6NHB.js"}
1
+ {"version":3,"sources":["/Users/will/Projects/Business/cms/builder/packages/sdk/dist/server/loadPage-DUHBXDEW.js"],"names":[],"mappings":"AAAA;AACE;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACF,6CAAC","file":"/Users/will/Projects/Business/cms/builder/packages/sdk/dist/server/loadPage-DUHBXDEW.js"}
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  loadPage
3
- } from "./chunk-VVFYHAUD.mjs";
4
- import "./chunk-M5KTLZTD.mjs";
3
+ } from "./chunk-ZEAJW6T3.mjs";
4
+ import "./chunk-A2FZMRDW.mjs";
5
5
  import "./chunk-7DS4Q3GA.mjs";
6
6
  import "./chunk-USQF2XTU.mjs";
7
7
  import "./chunk-BJTO5JO5.mjs";
8
8
  export {
9
9
  loadPage
10
10
  };
11
- //# sourceMappingURL=loadPage-E7L7NMR3.mjs.map
11
+ //# sourceMappingURL=loadPage-LYVKY3WZ.mjs.map
@@ -1,14 +1,14 @@
1
- import { a as LoadPageResult } from './loadPage-Dw57_n5N.mjs';
2
- import { S as SiteResponse } from './types-BC9eB2KH.mjs';
1
+ import { a as LoadPageResult } from './loadPage-B8RmlYgV.mjs';
2
+ import { S as SiteResponse } from './types-DkKEctWn.mjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import './schema-Bpy9N5ZI.mjs';
6
6
  import 'zod';
7
- import './types-BA-J9K8r.mjs';
7
+ import './types-CdrJqlKx.mjs';
8
8
  import '@riverbankcms/ai';
9
9
  import '@riverbankcms/media-storage-supabase';
10
10
  import '@riverbankcms/db';
11
- import './types-BuZJWVmj.mjs';
11
+ import './types-CbagRQ_7.mjs';
12
12
  import './blockKinds-B6MWzNWp.mjs';
13
13
 
14
14
  /**
@@ -1,14 +1,14 @@
1
- import { a as LoadPageResult } from './loadPage-BElEkA_J.js';
2
- import { S as SiteResponse } from './types-CAnC529E.js';
1
+ import { a as LoadPageResult } from './loadPage-BTkKpizX.js';
2
+ import { S as SiteResponse } from './types-oCM-fw4O.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import './schema-Bpy9N5ZI.js';
6
6
  import 'zod';
7
- import './types-5XdVD2J1.js';
7
+ import './types-BiRZnxDx.js';
8
8
  import '@riverbankcms/ai';
9
9
  import '@riverbankcms/media-storage-supabase';
10
10
  import '@riverbankcms/db';
11
- import './types-DSFvXKhO.js';
11
+ import './types-DuQCNVV0.js';
12
12
  import './blockKinds-B6MWzNWp.js';
13
13
 
14
14
  /**
@@ -1,5 +1,5 @@
1
- import { N as NavigationMenuWithItems } from './types-BA-J9K8r.mjs';
2
- export { L as LinkPayload, a as NavigationItemRecord } from './types-BA-J9K8r.mjs';
1
+ import { N as NavigationMenuWithItems } from './types-CdrJqlKx.mjs';
2
+ export { L as LinkPayload, a as NavigationItemRecord } from './types-CdrJqlKx.mjs';
3
3
  import '@riverbankcms/ai';
4
4
  import './schema-Bpy9N5ZI.mjs';
5
5
  import 'zod';
@@ -1,5 +1,5 @@
1
- import { N as NavigationMenuWithItems } from './types-5XdVD2J1.js';
2
- export { L as LinkPayload, a as NavigationItemRecord } from './types-5XdVD2J1.js';
1
+ import { N as NavigationMenuWithItems } from './types-BiRZnxDx.js';
2
+ export { L as LinkPayload, a as NavigationItemRecord } from './types-BiRZnxDx.js';
3
3
  import '@riverbankcms/ai';
4
4
  import './schema-Bpy9N5ZI.js';
5
5
  import 'zod';
@@ -1,13 +1,13 @@
1
- export { b as Page, P as PageProps } from '../loadPage-Dw57_n5N.mjs';
2
- export { H as HeaderData, L as Layout, a as LayoutProps } from '../Layout-B_zUr9ci.mjs';
1
+ export { b as Page, P as PageProps } from '../loadPage-B8RmlYgV.mjs';
2
+ export { H as HeaderData, L as Layout, a as LayoutProps } from '../Layout-ByUnm35V.mjs';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as React from 'react';
5
- import { T as Theme } from '../types-BA-J9K8r.mjs';
5
+ import { T as Theme } from '../types-CdrJqlKx.mjs';
6
6
  import '../schema-Bpy9N5ZI.mjs';
7
- import { R as RiverbankClient } from '../types-BC9eB2KH.mjs';
7
+ import { R as RiverbankClient } from '../types-DkKEctWn.mjs';
8
8
  import { B as BlockKind } from '../blockKinds-B6MWzNWp.mjs';
9
9
  import 'zod';
10
- import '../types-BuZJWVmj.mjs';
10
+ import '../types-CbagRQ_7.mjs';
11
11
  import '@riverbankcms/site-renderer';
12
12
  import '@riverbankcms/ai';
13
13
  import '@riverbankcms/media-storage-supabase';
@@ -1,13 +1,13 @@
1
- export { b as Page, P as PageProps } from '../loadPage-BElEkA_J.js';
2
- export { H as HeaderData, L as Layout, a as LayoutProps } from '../Layout-CHG77dhK.js';
1
+ export { b as Page, P as PageProps } from '../loadPage-BTkKpizX.js';
2
+ export { H as HeaderData, L as Layout, a as LayoutProps } from '../Layout-kRv5sU81.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as React from 'react';
5
- import { T as Theme } from '../types-5XdVD2J1.js';
5
+ import { T as Theme } from '../types-BiRZnxDx.js';
6
6
  import '../schema-Bpy9N5ZI.js';
7
- import { R as RiverbankClient } from '../types-CAnC529E.js';
7
+ import { R as RiverbankClient } from '../types-oCM-fw4O.js';
8
8
  import { B as BlockKind } from '../blockKinds-B6MWzNWp.js';
9
9
  import 'zod';
10
- import '../types-DSFvXKhO.js';
10
+ import '../types-DuQCNVV0.js';
11
11
  import '@riverbankcms/site-renderer';
12
12
  import '@riverbankcms/ai';
13
13
  import '@riverbankcms/media-storage-supabase';
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkBUCJWG6Gjs = require('../chunk-BUCJWG6G.js');
3
+ var _chunkNW5KHH4Ajs = require('../chunk-NW5KHH4A.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkP6CDRJN3js = require('../chunk-P6CDRJN3.js');
8
- require('../chunk-IT5ICP43.js');
7
+ var _chunkBLKVTULPjs = require('../chunk-BLKVTULP.js');
8
+ require('../chunk-TKMA6D6U.js');
9
9
  require('../chunk-HOY77YBF.js');
10
10
  require('../chunk-EGTDJ4PL.js');
11
11
  require('../chunk-DGUM43GV.js');
@@ -13,5 +13,5 @@ require('../chunk-DGUM43GV.js');
13
13
 
14
14
 
15
15
 
16
- exports.Block = _chunkBUCJWG6Gjs.Block; exports.Layout = _chunkP6CDRJN3js.Layout; exports.Page = _chunkP6CDRJN3js.Page;
16
+ exports.Block = _chunkNW5KHH4Ajs.Block; exports.Layout = _chunkBLKVTULPjs.Layout; exports.Page = _chunkBLKVTULPjs.Page;
17
17
  //# sourceMappingURL=server.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  Block
3
- } from "../chunk-XK2YIISA.mjs";
3
+ } from "../chunk-SPXMMX3C.mjs";
4
4
  import {
5
5
  Layout,
6
6
  Page
7
- } from "../chunk-SFQ7VF3G.mjs";
8
- import "../chunk-NKXS4TBK.mjs";
7
+ } from "../chunk-7BOIO2S7.mjs";
8
+ import "../chunk-TNRADRPH.mjs";
9
9
  import "../chunk-7DS4Q3GA.mjs";
10
10
  import "../chunk-USQF2XTU.mjs";
11
11
  import "../chunk-BJTO5JO5.mjs";
@@ -1,16 +1,16 @@
1
- export { e as BlockOverrideComponent, B as BlockOverrides, L as LoadPageParams, a as LoadPageResult, b as Page, P as PageProps, c as PageRenderer, d as RouteMap, S as SystemBlockComponentProps, T as ThemeTokens, l as loadPage } from './loadPage-Dw57_n5N.mjs';
2
- export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-B_zUr9ci.mjs';
1
+ export { e as BlockOverrideComponent, f as BlockOverrideProps, B as BlockOverrides, L as LoadPageParams, a as LoadPageResult, b as Page, P as PageProps, c as PageRenderer, d as RouteMap, T as ThemeTokens, l as loadPage } from './loadPage-B8RmlYgV.mjs';
2
+ export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-ByUnm35V.mjs';
3
3
  export { Block, BlockProps } from './rendering/server.mjs';
4
- export { C as ContentEntryData, L as LoadContentParams, b as LoadContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-Czu7xTOU.mjs';
5
- export { C as CustomLinkValue, E as ExternalLinkValue, I as InternalLinkValue, d as LinkValue, c as SiteFooterContent, S as SiteHeaderContent, T as Theme } from './types-BA-J9K8r.mjs';
4
+ export { C as ContentEntryData, L as LoadContentParams, b as LoadContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-CWuE8FCx.mjs';
5
+ export { C as CustomLinkValue, E as ExternalLinkValue, I as InternalLinkValue, d as LinkValue, c as SiteFooterContent, S as SiteHeaderContent, T as Theme } from './types-CdrJqlKx.mjs';
6
6
  export { P as PageOutline } from './schema-Bpy9N5ZI.mjs';
7
- import { G as GradientConfig, M as Media } from './components-Ci5nlyUj.mjs';
8
- export { e as BackgroundInput, B as BodyTextContent, H as HeroContent, a as HeroMedia, f as ResolvedBackground, R as RichText, c as RichTextPrimitiveProps, S as SectionBackground, g as SectionBackgroundProps, T as TipTapNode, b as buildThemeRuntime, d as resolveBackground, r as resolveImageUrl } from './components-Ci5nlyUj.mjs';
9
- import './types-BC9eB2KH.mjs';
7
+ import { G as GradientConfig, M as Media } from './components-CY8jDQjv.mjs';
8
+ export { f as BackgroundInput, B as BodyTextContent, H as HeroContent, a as HeroMedia, g as ResolvedBackground, R as RichText, c as RichTextPrimitiveProps, e as SectionBackground, h as SectionBackgroundProps, S as SystemBlockComponentProps, T as TipTapNode, b as buildThemeRuntime, d as resolveBackground, r as resolveImageUrl } from './components-CY8jDQjv.mjs';
9
+ import './types-DkKEctWn.mjs';
10
10
  import 'react/jsx-runtime';
11
11
  import 'react';
12
12
  import 'zod';
13
- import './types-BuZJWVmj.mjs';
13
+ import './types-CbagRQ_7.mjs';
14
14
  import './blockKinds-B6MWzNWp.mjs';
15
15
  import '@riverbankcms/site-renderer';
16
16
  import '@riverbankcms/ai';
@@ -1,16 +1,16 @@
1
- export { e as BlockOverrideComponent, B as BlockOverrides, L as LoadPageParams, a as LoadPageResult, b as Page, P as PageProps, c as PageRenderer, d as RouteMap, S as SystemBlockComponentProps, T as ThemeTokens, l as loadPage } from './loadPage-BElEkA_J.js';
2
- export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-CHG77dhK.js';
1
+ export { e as BlockOverrideComponent, f as BlockOverrideProps, B as BlockOverrides, L as LoadPageParams, a as LoadPageResult, b as Page, P as PageProps, c as PageRenderer, d as RouteMap, T as ThemeTokens, l as loadPage } from './loadPage-BTkKpizX.js';
2
+ export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-kRv5sU81.js';
3
3
  export { Block, BlockProps } from './rendering/server.js';
4
- export { C as ContentEntryData, L as LoadContentParams, b as LoadContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-BqQ-VPMW.js';
5
- export { C as CustomLinkValue, E as ExternalLinkValue, I as InternalLinkValue, d as LinkValue, c as SiteFooterContent, S as SiteHeaderContent, T as Theme } from './types-5XdVD2J1.js';
4
+ export { C as ContentEntryData, L as LoadContentParams, b as LoadContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-DynBuR5f.js';
5
+ export { C as CustomLinkValue, E as ExternalLinkValue, I as InternalLinkValue, d as LinkValue, c as SiteFooterContent, S as SiteHeaderContent, T as Theme } from './types-BiRZnxDx.js';
6
6
  export { P as PageOutline } from './schema-Bpy9N5ZI.js';
7
- import { G as GradientConfig, M as Media } from './components-BYxloYJm.js';
8
- export { e as BackgroundInput, B as BodyTextContent, H as HeroContent, a as HeroMedia, f as ResolvedBackground, R as RichText, c as RichTextPrimitiveProps, S as SectionBackground, g as SectionBackgroundProps, T as TipTapNode, b as buildThemeRuntime, d as resolveBackground, r as resolveImageUrl } from './components-BYxloYJm.js';
9
- import './types-CAnC529E.js';
7
+ import { G as GradientConfig, M as Media } from './components-D1Z2mSDr.js';
8
+ export { f as BackgroundInput, B as BodyTextContent, H as HeroContent, a as HeroMedia, g as ResolvedBackground, R as RichText, c as RichTextPrimitiveProps, e as SectionBackground, h as SectionBackgroundProps, S as SystemBlockComponentProps, T as TipTapNode, b as buildThemeRuntime, d as resolveBackground, r as resolveImageUrl } from './components-D1Z2mSDr.js';
9
+ import './types-oCM-fw4O.js';
10
10
  import 'react/jsx-runtime';
11
11
  import 'react';
12
12
  import 'zod';
13
- import './types-DSFvXKhO.js';
13
+ import './types-DuQCNVV0.js';
14
14
  import './blockKinds-B6MWzNWp.js';
15
15
  import '@riverbankcms/site-renderer';
16
16
  import '@riverbankcms/ai';
@@ -5,14 +5,14 @@
5
5
  var _chunkTO7FD6TQjs = require('./chunk-TO7FD6TQ.js');
6
6
 
7
7
 
8
- var _chunkFPYK6527js = require('./chunk-FPYK6527.js');
8
+ var _chunkSWPHIUVEjs = require('./chunk-SWPHIUVE.js');
9
9
 
10
10
 
11
- var _chunkBUCJWG6Gjs = require('./chunk-BUCJWG6G.js');
11
+ var _chunkNW5KHH4Ajs = require('./chunk-NW5KHH4A.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkP6CDRJN3js = require('./chunk-P6CDRJN3.js');
15
+ var _chunkBLKVTULPjs = require('./chunk-BLKVTULP.js');
16
16
 
17
17
 
18
18
 
@@ -20,8 +20,8 @@ var _chunkP6CDRJN3js = require('./chunk-P6CDRJN3.js');
20
20
 
21
21
 
22
22
 
23
- var _chunkIT5ICP43js = require('./chunk-IT5ICP43.js');
24
- require('./chunk-G4CKM4EN.js');
23
+ var _chunkTKMA6D6Ujs = require('./chunk-TKMA6D6U.js');
24
+ require('./chunk-Y7347JMZ.js');
25
25
  require('./chunk-HOY77YBF.js');
26
26
  require('./chunk-EGTDJ4PL.js');
27
27
  require('./chunk-DGUM43GV.js');
@@ -39,5 +39,5 @@ require('./chunk-DGUM43GV.js');
39
39
 
40
40
 
41
41
 
42
- exports.Block = _chunkBUCJWG6Gjs.Block; exports.Layout = _chunkP6CDRJN3js.Layout; exports.Page = _chunkP6CDRJN3js.Page; exports.PageRenderer = _chunkIT5ICP43js.PageRenderer; exports.RichText = _chunkIT5ICP43js.RichText; exports.SectionBackground = _chunkIT5ICP43js.SectionBackground; exports.buildThemeRuntime = _chunkIT5ICP43js.buildThemeRuntime; exports.isEntryContent = _chunkTO7FD6TQjs.isEntryContent; exports.isPageContent = _chunkTO7FD6TQjs.isPageContent; exports.loadContent = _chunkTO7FD6TQjs.loadContent; exports.loadPage = _chunkFPYK6527js.loadPage; exports.resolveBackground = _chunkIT5ICP43js.resolveBackground; exports.resolveImageUrl = _chunkIT5ICP43js.resolveImageUrl;
42
+ exports.Block = _chunkNW5KHH4Ajs.Block; exports.Layout = _chunkBLKVTULPjs.Layout; exports.Page = _chunkBLKVTULPjs.Page; exports.PageRenderer = _chunkTKMA6D6Ujs.PageRenderer; exports.RichText = _chunkTKMA6D6Ujs.RichText; exports.SectionBackground = _chunkTKMA6D6Ujs.SectionBackground; exports.buildThemeRuntime = _chunkTKMA6D6Ujs.buildThemeRuntime; exports.isEntryContent = _chunkTO7FD6TQjs.isEntryContent; exports.isPageContent = _chunkTO7FD6TQjs.isPageContent; exports.loadContent = _chunkTO7FD6TQjs.loadContent; exports.loadPage = _chunkSWPHIUVEjs.loadPage; exports.resolveBackground = _chunkTKMA6D6Ujs.resolveBackground; exports.resolveImageUrl = _chunkTKMA6D6Ujs.resolveImageUrl;
43
43
  //# sourceMappingURL=rendering.js.map
@@ -5,14 +5,14 @@ import {
5
5
  } from "./chunk-OP2GHK27.mjs";
6
6
  import {
7
7
  loadPage
8
- } from "./chunk-VVFYHAUD.mjs";
8
+ } from "./chunk-ZEAJW6T3.mjs";
9
9
  import {
10
10
  Block
11
- } from "./chunk-XK2YIISA.mjs";
11
+ } from "./chunk-SPXMMX3C.mjs";
12
12
  import {
13
13
  Layout,
14
14
  Page
15
- } from "./chunk-SFQ7VF3G.mjs";
15
+ } from "./chunk-7BOIO2S7.mjs";
16
16
  import {
17
17
  PageRenderer,
18
18
  RichText,
@@ -20,8 +20,8 @@ import {
20
20
  buildThemeRuntime,
21
21
  resolveBackground,
22
22
  resolveImageUrl
23
- } from "./chunk-NKXS4TBK.mjs";
24
- import "./chunk-M5KTLZTD.mjs";
23
+ } from "./chunk-TNRADRPH.mjs";
24
+ import "./chunk-A2FZMRDW.mjs";
25
25
  import "./chunk-7DS4Q3GA.mjs";
26
26
  import "./chunk-USQF2XTU.mjs";
27
27
  import "./chunk-BJTO5JO5.mjs";