@riverbankcms/sdk 0.4.1 → 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.
- package/README.md +73 -0
- package/dist/cli/index.js +46 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/client/client.d.mts +3 -3
- package/dist/client/client.d.ts +3 -3
- package/dist/client/client.js +80 -170
- package/dist/client/client.js.map +1 -1
- package/dist/client/client.mjs +80 -170
- package/dist/client/client.mjs.map +1 -1
- package/dist/client/hooks.d.mts +3 -3
- package/dist/client/hooks.d.ts +3 -3
- package/dist/client/rendering/client.d.mts +1 -1
- package/dist/client/rendering/client.d.ts +1 -1
- package/dist/client/rendering/client.js +80 -142
- package/dist/client/rendering/client.js.map +1 -1
- package/dist/client/rendering/client.mjs +80 -142
- package/dist/client/rendering/client.mjs.map +1 -1
- package/dist/client/resolver-CYyfzTQ9.d.mts +61 -0
- package/dist/client/resolver-CYyfzTQ9.d.ts +61 -0
- package/dist/client/usePage-BC8Q2E3t.d.mts +6431 -0
- package/dist/client/usePage-CHEybPMD.d.ts +6429 -0
- package/dist/client/usePage-D4fxZbRR.d.mts +6429 -0
- package/dist/client/usePage-DpRNZUtP.d.ts +6431 -0
- package/dist/server/{Layout-B_zUr9ci.d.mts → Layout-ByUnm35V.d.mts} +1 -1
- package/dist/server/{Layout-CHG77dhK.d.ts → Layout-kRv5sU81.d.ts} +1 -1
- package/dist/server/{chunk-ZIM53VP6.js → chunk-6JBKKV3G.js} +27 -4
- package/dist/server/chunk-6JBKKV3G.js.map +1 -0
- package/dist/server/{chunk-SFQ7VF3G.mjs → chunk-7BOIO2S7.mjs} +7 -5
- package/dist/server/{chunk-SFQ7VF3G.mjs.map → chunk-7BOIO2S7.mjs.map} +1 -1
- package/dist/server/{chunk-P6CDRJN3.js → chunk-BLKVTULP.js} +13 -11
- package/dist/server/chunk-BLKVTULP.js.map +1 -0
- package/dist/server/{chunk-BOHTTHY5.mjs → chunk-I6K5REFT.mjs} +27 -4
- package/dist/server/chunk-I6K5REFT.mjs.map +1 -0
- package/dist/server/{chunk-BUCJWG6G.js → chunk-NW5KHH4A.js} +5 -5
- package/dist/server/{chunk-BUCJWG6G.js.map → chunk-NW5KHH4A.js.map} +1 -1
- package/dist/server/{chunk-XK2YIISA.mjs → chunk-SPXMMX3C.mjs} +2 -2
- package/dist/server/{chunk-IT5ICP43.js → chunk-TKMA6D6U.js} +139 -229
- package/dist/server/chunk-TKMA6D6U.js.map +1 -0
- package/dist/server/{chunk-NKXS4TBK.mjs → chunk-TNRADRPH.mjs} +79 -169
- package/dist/server/chunk-TNRADRPH.mjs.map +1 -0
- package/dist/server/{components-Bo3LPpVb.d.mts → components-CY8jDQjv.d.mts} +20 -12
- package/dist/server/{components-ClFs4PUa.d.ts → components-D1Z2mSDr.d.ts} +20 -12
- package/dist/server/components.d.mts +5 -5
- package/dist/server/components.d.ts +5 -5
- package/dist/server/components.js +3 -3
- package/dist/server/components.mjs +2 -2
- package/dist/server/config-validation.d.mts +2 -2
- package/dist/server/config-validation.d.ts +2 -2
- package/dist/server/config-validation.js +3 -3
- package/dist/server/config-validation.mjs +2 -2
- package/dist/server/config.d.mts +3 -3
- package/dist/server/config.d.ts +3 -3
- package/dist/server/config.js +3 -3
- package/dist/server/config.mjs +2 -2
- package/dist/server/data.d.mts +2 -2
- package/dist/server/data.d.ts +2 -2
- package/dist/server/{index-DbSfrRA0.d.ts → index-DCIz9Ptv.d.ts} +1 -1
- package/dist/server/{index-Dj7VKH34.d.mts → index-DFQwtj3J.d.mts} +1 -1
- package/dist/server/index.d.mts +4 -4
- package/dist/server/index.d.ts +4 -4
- package/dist/server/{loadContent-C_FipaAC.d.mts → loadContent-CWuE8FCx.d.mts} +3 -3
- package/dist/server/{loadContent-C2SwqmXy.d.ts → loadContent-DynBuR5f.d.ts} +3 -3
- package/dist/server/{loadPage-mavT3Jae.d.mts → loadPage-B8RmlYgV.d.mts} +60 -27
- package/dist/server/{loadPage-naVvoua8.d.ts → loadPage-BTkKpizX.d.ts} +60 -27
- package/dist/server/metadata.d.mts +3 -3
- package/dist/server/metadata.d.ts +3 -3
- package/dist/server/navigation.d.mts +2 -2
- package/dist/server/navigation.d.ts +2 -2
- package/dist/server/rendering/server.d.mts +4 -4
- package/dist/server/rendering/server.d.ts +4 -4
- package/dist/server/rendering/server.js +4 -4
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.d.mts +7 -7
- package/dist/server/rendering.d.ts +7 -7
- package/dist/server/rendering.js +4 -4
- package/dist/server/rendering.mjs +3 -3
- package/dist/server/routing.d.mts +78 -5
- package/dist/server/routing.d.ts +78 -5
- package/dist/server/routing.js +56 -2
- package/dist/server/routing.js.map +1 -1
- package/dist/server/routing.mjs +54 -0
- package/dist/server/routing.mjs.map +1 -1
- package/dist/server/server.d.mts +5 -5
- package/dist/server/server.d.ts +5 -5
- package/dist/server/theme-bridge.js +7 -7
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/{types-5XdVD2J1.d.ts → types-BiRZnxDx.d.ts} +17 -6
- package/dist/server/{types-CMqVHYLG.d.ts → types-CL916r6x.d.ts} +23 -1
- package/dist/server/{types-BA-J9K8r.d.mts → types-CdrJqlKx.d.mts} +17 -6
- package/dist/server/{types-BC9eB2KH.d.mts → types-DkKEctWn.d.mts} +1 -1
- package/dist/server/{types-CAnC529E.d.ts → types-oCM-fw4O.d.ts} +1 -1
- package/dist/server/{types-CYfHxUhe.d.mts → types-txWsSxN7.d.mts} +23 -1
- package/dist/server/{validation-C7W2Fe0i.d.ts → validation-CoU8uAiu.d.ts} +1 -1
- package/dist/server/{validation-hg1sqhrt.d.mts → validation-DzvDwwRo.d.mts} +1 -1
- package/package.json +1 -1
- package/dist/server/chunk-BOHTTHY5.mjs.map +0 -1
- package/dist/server/chunk-IT5ICP43.js.map +0 -1
- package/dist/server/chunk-NKXS4TBK.mjs.map +0 -1
- package/dist/server/chunk-P6CDRJN3.js.map +0 -1
- package/dist/server/chunk-ZIM53VP6.js.map +0 -1
- /package/dist/server/{chunk-XK2YIISA.mjs.map → chunk-SPXMMX3C.mjs.map} +0 -0
|
@@ -1,12 +1,27 @@
|
|
|
1
|
-
import { T as ThemeTokens } from './loadPage-
|
|
2
|
-
import './Layout-
|
|
3
|
-
import { T as Theme, H as HydratedTheme, e as ExpandedPalette } from './types-
|
|
1
|
+
import { T as ThemeTokens, g as ResolverContext, h as TransformRegistry } from './loadPage-B8RmlYgV.mjs';
|
|
2
|
+
import './Layout-ByUnm35V.mjs';
|
|
3
|
+
import { T as Theme, H as HydratedTheme, e as ExpandedPalette } from './types-CdrJqlKx.mjs';
|
|
4
4
|
import './schema-Bpy9N5ZI.mjs';
|
|
5
5
|
import z, { z as z$1 } from 'zod';
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import React__default from 'react';
|
|
8
8
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
|
+
type SystemBlockComponentProps<TContent = Record<string, unknown>> = {
|
|
11
|
+
content: TContent;
|
|
12
|
+
theme?: ThemeTokens;
|
|
13
|
+
themeConfig?: Theme;
|
|
14
|
+
registry?: ResolverContext["registry"];
|
|
15
|
+
transforms?: TransformRegistry;
|
|
16
|
+
viewModelOverrides?: Record<string, unknown>;
|
|
17
|
+
data?: Record<string, unknown>;
|
|
18
|
+
pathBase?: string;
|
|
19
|
+
blockId?: string | null;
|
|
20
|
+
blockKind?: string;
|
|
21
|
+
blockBindings?: Record<string, unknown>;
|
|
22
|
+
fragmentRegistry?: ResolverContext["fragmentRegistry"];
|
|
23
|
+
};
|
|
24
|
+
|
|
10
25
|
declare const mediaSchema: z.ZodObject<{
|
|
11
26
|
type: z.ZodEnum<{
|
|
12
27
|
image: "image";
|
|
@@ -152,14 +167,7 @@ type RichTextPrimitiveProps = {
|
|
|
152
167
|
type RichTextVariant = "full" | "inline" | "limited" | "media";
|
|
153
168
|
declare const RichText: typeof RichText$1;
|
|
154
169
|
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Preview API key for accessing unpublished images.
|
|
158
|
-
* When provided, appended as ?preview_key=xxx to the image URL.
|
|
159
|
-
*/
|
|
160
|
-
previewKey?: string | null;
|
|
161
|
-
};
|
|
162
|
-
declare function resolveImageUrl(value: Media, options?: ResolveImageUrlOptions): string | undefined;
|
|
170
|
+
declare function resolveImageUrl(value: Media): string | undefined;
|
|
163
171
|
|
|
164
172
|
/**
|
|
165
173
|
* Helper utilities for resolving background data in custom block components.
|
|
@@ -302,4 +310,4 @@ type SectionBackgroundProps = {
|
|
|
302
310
|
*/
|
|
303
311
|
declare function SectionBackground({ background, theme, className, }: SectionBackgroundProps): React.ReactElement | null;
|
|
304
312
|
|
|
305
|
-
export { type BodyTextContent as B, type GradientConfig as G, type HeroContent as H, type Media as M, RichText as R,
|
|
313
|
+
export { type BodyTextContent as B, type GradientConfig as G, type HeroContent as H, type Media as M, RichText as R, type SystemBlockComponentProps as S, type TipTapNode as T, type HeroMedia as a, buildThemeRuntime as b, type RichTextPrimitiveProps as c, resolveBackground as d, SectionBackground as e, type BackgroundInput as f, type ResolvedBackground as g, type SectionBackgroundProps as h, resolveImageUrl as r };
|
|
@@ -1,12 +1,27 @@
|
|
|
1
|
-
import { T as ThemeTokens } from './loadPage-
|
|
2
|
-
import './Layout-
|
|
3
|
-
import { T as Theme, H as HydratedTheme, e as ExpandedPalette } from './types-
|
|
1
|
+
import { T as ThemeTokens, g as ResolverContext, h as TransformRegistry } from './loadPage-BTkKpizX.js';
|
|
2
|
+
import './Layout-kRv5sU81.js';
|
|
3
|
+
import { T as Theme, H as HydratedTheme, e as ExpandedPalette } from './types-BiRZnxDx.js';
|
|
4
4
|
import './schema-Bpy9N5ZI.js';
|
|
5
5
|
import z, { z as z$1 } from 'zod';
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import React__default from 'react';
|
|
8
8
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
|
+
type SystemBlockComponentProps<TContent = Record<string, unknown>> = {
|
|
11
|
+
content: TContent;
|
|
12
|
+
theme?: ThemeTokens;
|
|
13
|
+
themeConfig?: Theme;
|
|
14
|
+
registry?: ResolverContext["registry"];
|
|
15
|
+
transforms?: TransformRegistry;
|
|
16
|
+
viewModelOverrides?: Record<string, unknown>;
|
|
17
|
+
data?: Record<string, unknown>;
|
|
18
|
+
pathBase?: string;
|
|
19
|
+
blockId?: string | null;
|
|
20
|
+
blockKind?: string;
|
|
21
|
+
blockBindings?: Record<string, unknown>;
|
|
22
|
+
fragmentRegistry?: ResolverContext["fragmentRegistry"];
|
|
23
|
+
};
|
|
24
|
+
|
|
10
25
|
declare const mediaSchema: z.ZodObject<{
|
|
11
26
|
type: z.ZodEnum<{
|
|
12
27
|
image: "image";
|
|
@@ -152,14 +167,7 @@ type RichTextPrimitiveProps = {
|
|
|
152
167
|
type RichTextVariant = "full" | "inline" | "limited" | "media";
|
|
153
168
|
declare const RichText: typeof RichText$1;
|
|
154
169
|
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Preview API key for accessing unpublished images.
|
|
158
|
-
* When provided, appended as ?preview_key=xxx to the image URL.
|
|
159
|
-
*/
|
|
160
|
-
previewKey?: string | null;
|
|
161
|
-
};
|
|
162
|
-
declare function resolveImageUrl(value: Media, options?: ResolveImageUrlOptions): string | undefined;
|
|
170
|
+
declare function resolveImageUrl(value: Media): string | undefined;
|
|
163
171
|
|
|
164
172
|
/**
|
|
165
173
|
* Helper utilities for resolving background data in custom block components.
|
|
@@ -302,4 +310,4 @@ type SectionBackgroundProps = {
|
|
|
302
310
|
*/
|
|
303
311
|
declare function SectionBackground({ background, theme, className, }: SectionBackgroundProps): React.ReactElement | null;
|
|
304
312
|
|
|
305
|
-
export { type BodyTextContent as B, type GradientConfig as G, type HeroContent as H, type Media as M, RichText as R,
|
|
313
|
+
export { type BodyTextContent as B, type GradientConfig as G, type HeroContent as H, type Media as M, RichText as R, type SystemBlockComponentProps as S, type TipTapNode as T, type HeroMedia as a, buildThemeRuntime as b, type RichTextPrimitiveProps as c, resolveBackground as d, SectionBackground as e, type BackgroundInput as f, type ResolvedBackground as g, type SectionBackgroundProps as h, resolveImageUrl as r };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { e as BlockOverrideComponent, B as BlockOverrides, b as Page, P as PageProps, c as PageRenderer, d as RouteMap,
|
|
2
|
-
export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-
|
|
3
|
-
export { T as Theme } from './types-
|
|
1
|
+
export { e as BlockOverrideComponent, B as BlockOverrides, b as Page, P as PageProps, c as PageRenderer, d as RouteMap, T as ThemeTokens } from './loadPage-B8RmlYgV.mjs';
|
|
2
|
+
export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-ByUnm35V.mjs';
|
|
3
|
+
export { T as Theme } from './types-CdrJqlKx.mjs';
|
|
4
4
|
export { P as PageOutline } from './schema-Bpy9N5ZI.mjs';
|
|
5
|
-
export {
|
|
6
|
-
import './types-
|
|
5
|
+
export { f as BackgroundInput, B as BodyTextContent, H as HeroContent, 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';
|
|
6
|
+
import './types-DkKEctWn.mjs';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react';
|
|
9
9
|
import 'zod';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { e as BlockOverrideComponent, B as BlockOverrides, b as Page, P as PageProps, c as PageRenderer, d as RouteMap,
|
|
2
|
-
export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-
|
|
3
|
-
export { T as Theme } from './types-
|
|
1
|
+
export { e as BlockOverrideComponent, B as BlockOverrides, b as Page, P as PageProps, c as PageRenderer, d as RouteMap, T as ThemeTokens } from './loadPage-BTkKpizX.js';
|
|
2
|
+
export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-kRv5sU81.js';
|
|
3
|
+
export { T as Theme } from './types-BiRZnxDx.js';
|
|
4
4
|
export { P as PageOutline } from './schema-Bpy9N5ZI.js';
|
|
5
|
-
export {
|
|
6
|
-
import './types-
|
|
5
|
+
export { f as BackgroundInput, B as BodyTextContent, H as HeroContent, 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';
|
|
6
|
+
import './types-oCM-fw4O.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react';
|
|
9
9
|
import 'zod';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkBLKVTULPjs = require('./chunk-BLKVTULP.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ var _chunkP6CDRJN3js = require('./chunk-P6CDRJN3.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkTKMA6D6Ujs = require('./chunk-TKMA6D6U.js');
|
|
13
13
|
require('./chunk-EGTDJ4PL.js');
|
|
14
14
|
require('./chunk-DGUM43GV.js');
|
|
15
15
|
|
|
@@ -21,5 +21,5 @@ require('./chunk-DGUM43GV.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
exports.Layout =
|
|
24
|
+
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.resolveBackground = _chunkTKMA6D6Ujs.resolveBackground; exports.resolveImageUrl = _chunkTKMA6D6Ujs.resolveImageUrl;
|
|
25
25
|
//# sourceMappingURL=components.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Layout,
|
|
3
3
|
Page
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7BOIO2S7.mjs";
|
|
5
5
|
import {
|
|
6
6
|
PageRenderer,
|
|
7
7
|
RichText,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
buildThemeRuntime,
|
|
10
10
|
resolveBackground,
|
|
11
11
|
resolveImageUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TNRADRPH.mjs";
|
|
13
13
|
import "./chunk-USQF2XTU.mjs";
|
|
14
14
|
import "./chunk-BJTO5JO5.mjs";
|
|
15
15
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'zod';
|
|
2
2
|
import './schema-Bpy9N5ZI.mjs';
|
|
3
|
-
import './types-
|
|
4
|
-
export { C as ContentConfigInput, z as ContentConfigOutput, V as ValidatedRiverbankSiteConfig, y as ValidatedSdkCustomBlock, k as blockFieldConfigSchema, m as blockFieldExtensionSchema, n as blockFieldExtensionsSchema, l as blockFieldOptionsSchema, d as containerAlignmentSchema, c as containerMaxWidthSchema, f as containerOptionsSchema, o as contentConfigSchema, j as fieldSelectOptionSchema, B as loaderParamBindingSchema, D as loaderParamValueSchema, r as riverbankSiteConfigSchema, E as sdkConfigLoaderSchema, i as sdkCustomBlockSchema, F as sdkDataLoadersSchema, A as sdkLoaderEndpointSchema, g as sdkThemeConfigSchema, h as sdkThemePaletteSchema, a as sectionBackgroundSchema, e as sectionOptionsSchema, b as sectionSpacingSchema, s as siteStyleConfigSchema, G as validateFieldIdConflicts } from './validation-
|
|
3
|
+
import './types-txWsSxN7.mjs';
|
|
4
|
+
export { C as ContentConfigInput, z as ContentConfigOutput, V as ValidatedRiverbankSiteConfig, y as ValidatedSdkCustomBlock, k as blockFieldConfigSchema, m as blockFieldExtensionSchema, n as blockFieldExtensionsSchema, l as blockFieldOptionsSchema, d as containerAlignmentSchema, c as containerMaxWidthSchema, f as containerOptionsSchema, o as contentConfigSchema, j as fieldSelectOptionSchema, B as loaderParamBindingSchema, D as loaderParamValueSchema, r as riverbankSiteConfigSchema, E as sdkConfigLoaderSchema, i as sdkCustomBlockSchema, F as sdkDataLoadersSchema, A as sdkLoaderEndpointSchema, g as sdkThemeConfigSchema, h as sdkThemePaletteSchema, a as sectionBackgroundSchema, e as sectionOptionsSchema, b as sectionSpacingSchema, s as siteStyleConfigSchema, G as validateFieldIdConflicts } from './validation-DzvDwwRo.mjs';
|
|
5
5
|
import './blockKinds-B6MWzNWp.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'zod';
|
|
2
2
|
import './schema-Bpy9N5ZI.js';
|
|
3
|
-
import './types-
|
|
4
|
-
export { C as ContentConfigInput, z as ContentConfigOutput, V as ValidatedRiverbankSiteConfig, y as ValidatedSdkCustomBlock, k as blockFieldConfigSchema, m as blockFieldExtensionSchema, n as blockFieldExtensionsSchema, l as blockFieldOptionsSchema, d as containerAlignmentSchema, c as containerMaxWidthSchema, f as containerOptionsSchema, o as contentConfigSchema, j as fieldSelectOptionSchema, B as loaderParamBindingSchema, D as loaderParamValueSchema, r as riverbankSiteConfigSchema, E as sdkConfigLoaderSchema, i as sdkCustomBlockSchema, F as sdkDataLoadersSchema, A as sdkLoaderEndpointSchema, g as sdkThemeConfigSchema, h as sdkThemePaletteSchema, a as sectionBackgroundSchema, e as sectionOptionsSchema, b as sectionSpacingSchema, s as siteStyleConfigSchema, G as validateFieldIdConflicts } from './validation-
|
|
3
|
+
import './types-CL916r6x.js';
|
|
4
|
+
export { C as ContentConfigInput, z as ContentConfigOutput, V as ValidatedRiverbankSiteConfig, y as ValidatedSdkCustomBlock, k as blockFieldConfigSchema, m as blockFieldExtensionSchema, n as blockFieldExtensionsSchema, l as blockFieldOptionsSchema, d as containerAlignmentSchema, c as containerMaxWidthSchema, f as containerOptionsSchema, o as contentConfigSchema, j as fieldSelectOptionSchema, B as loaderParamBindingSchema, D as loaderParamValueSchema, r as riverbankSiteConfigSchema, E as sdkConfigLoaderSchema, i as sdkCustomBlockSchema, F as sdkDataLoadersSchema, A as sdkLoaderEndpointSchema, g as sdkThemeConfigSchema, h as sdkThemePaletteSchema, a as sectionBackgroundSchema, e as sectionOptionsSchema, b as sectionSpacingSchema, s as siteStyleConfigSchema, G as validateFieldIdConflicts } from './validation-CoU8uAiu.js';
|
|
5
5
|
import './blockKinds-B6MWzNWp.js';
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk6JBKKV3Gjs = require('./chunk-6JBKKV3G.js');
|
|
26
26
|
require('./chunk-GERCMTPQ.js');
|
|
27
|
-
require('./chunk-
|
|
27
|
+
require('./chunk-TKMA6D6U.js');
|
|
28
28
|
require('./chunk-HOY77YBF.js');
|
|
29
29
|
require('./chunk-EGTDJ4PL.js');
|
|
30
30
|
require('./chunk-DGUM43GV.js');
|
|
@@ -52,5 +52,5 @@ require('./chunk-DGUM43GV.js');
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
exports.blockFieldConfigSchema =
|
|
55
|
+
exports.blockFieldConfigSchema = _chunk6JBKKV3Gjs.blockFieldConfigSchema; exports.blockFieldExtensionSchema = _chunk6JBKKV3Gjs.blockFieldExtensionSchema; exports.blockFieldExtensionsSchema = _chunk6JBKKV3Gjs.blockFieldExtensionsSchema; exports.blockFieldOptionsSchema = _chunk6JBKKV3Gjs.blockFieldOptionsSchema; exports.containerAlignmentSchema = _chunk6JBKKV3Gjs.containerAlignmentSchema; exports.containerMaxWidthSchema = _chunk6JBKKV3Gjs.containerMaxWidthSchema; exports.containerOptionsSchema = _chunk6JBKKV3Gjs.containerOptionsSchema; exports.contentConfigSchema = _chunk6JBKKV3Gjs.contentConfigSchema; exports.fieldSelectOptionSchema = _chunk6JBKKV3Gjs.fieldSelectOptionSchema; exports.loaderParamBindingSchema = _chunk6JBKKV3Gjs.loaderParamBindingSchema; exports.loaderParamValueSchema = _chunk6JBKKV3Gjs.loaderParamValueSchema; exports.riverbankSiteConfigSchema = _chunk6JBKKV3Gjs.riverbankSiteConfigSchema; exports.sdkConfigLoaderSchema = _chunk6JBKKV3Gjs.sdkConfigLoaderSchema; exports.sdkCustomBlockSchema = _chunk6JBKKV3Gjs.sdkCustomBlockSchema; exports.sdkDataLoadersSchema = _chunk6JBKKV3Gjs.sdkDataLoadersSchema; exports.sdkLoaderEndpointSchema = _chunk6JBKKV3Gjs.sdkLoaderEndpointSchema; exports.sdkThemeConfigSchema = _chunk6JBKKV3Gjs.sdkThemeConfigSchema; exports.sdkThemePaletteSchema = _chunk6JBKKV3Gjs.sdkThemePaletteSchema; exports.sectionBackgroundSchema = _chunk6JBKKV3Gjs.sectionBackgroundSchema; exports.sectionOptionsSchema = _chunk6JBKKV3Gjs.sectionOptionsSchema; exports.sectionSpacingSchema = _chunk6JBKKV3Gjs.sectionSpacingSchema; exports.siteStyleConfigSchema = _chunk6JBKKV3Gjs.siteStyleConfigSchema; exports.validateFieldIdConflicts = _chunk6JBKKV3Gjs.validateFieldIdConflicts;
|
|
56
56
|
//# sourceMappingURL=config-validation.js.map
|
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
sectionSpacingSchema,
|
|
23
23
|
siteStyleConfigSchema,
|
|
24
24
|
validateFieldIdConflicts
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-I6K5REFT.mjs";
|
|
26
26
|
import "./chunk-D2QLTPUJ.mjs";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-TNRADRPH.mjs";
|
|
28
28
|
import "./chunk-7DS4Q3GA.mjs";
|
|
29
29
|
import "./chunk-USQF2XTU.mjs";
|
|
30
30
|
import "./chunk-BJTO5JO5.mjs";
|
package/dist/server/config.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as RiverbankSiteConfig, C as ContentConfig } from './types-
|
|
2
|
-
export { m as BlockConfig, B as BlockFieldConfig, j as BlockFieldExtension, k as BlockFieldExtensionsMap, i as BlockFieldOptionsMap, f as ContainerAlignment, e as ContainerMaxWidth, c as ContainerOptionsConfig, l as ContentTypeConfig, E as EntryConfig, F as FieldSelectOption, n as NavigationItemConfig, o as NavigationLinkType, N as NavigationMenuConfig, P as PageConfig, g as SdkThemeConfig, h as SdkThemePalette, a as SectionBackground, b as SectionOptionsConfig, d as SectionSpacing, p as SiteSettingsConfig, S as SiteStyleConfig } from './types-
|
|
3
|
-
export { C as ContentConfigInput, z as ContentConfigOutput, V as ValidatedRiverbankSiteConfig, y as ValidatedSdkCustomBlock, x as blockConfigSchema, k as blockFieldConfigSchema, m as blockFieldExtensionSchema, n as blockFieldExtensionsSchema, l as blockFieldOptionsSchema, d as containerAlignmentSchema, c as containerMaxWidthSchema, f as containerOptionsSchema, o as contentConfigSchema, p as contentTypeConfigSchema, t as entryConfigSchema, j as fieldSelectOptionSchema, v as navigationItemConfigSchema, u as navigationMenuConfigSchema, q as pageConfigSchema, r as riverbankSiteConfigSchema, i as sdkCustomBlockSchema, g as sdkThemeConfigSchema, h as sdkThemePaletteSchema, a as sectionBackgroundSchema, e as sectionOptionsSchema, b as sectionSpacingSchema, w as siteSettingsConfigSchema, s as siteStyleConfigSchema } from './validation-
|
|
1
|
+
import { R as RiverbankSiteConfig, C as ContentConfig } from './types-txWsSxN7.mjs';
|
|
2
|
+
export { m as BlockConfig, B as BlockFieldConfig, j as BlockFieldExtension, k as BlockFieldExtensionsMap, i as BlockFieldOptionsMap, f as ContainerAlignment, e as ContainerMaxWidth, c as ContainerOptionsConfig, l as ContentTypeConfig, E as EntryConfig, F as FieldSelectOption, n as NavigationItemConfig, o as NavigationLinkType, N as NavigationMenuConfig, P as PageConfig, g as SdkThemeConfig, h as SdkThemePalette, a as SectionBackground, b as SectionOptionsConfig, d as SectionSpacing, p as SiteSettingsConfig, S as SiteStyleConfig } from './types-txWsSxN7.mjs';
|
|
3
|
+
export { C as ContentConfigInput, z as ContentConfigOutput, V as ValidatedRiverbankSiteConfig, y as ValidatedSdkCustomBlock, x as blockConfigSchema, k as blockFieldConfigSchema, m as blockFieldExtensionSchema, n as blockFieldExtensionsSchema, l as blockFieldOptionsSchema, d as containerAlignmentSchema, c as containerMaxWidthSchema, f as containerOptionsSchema, o as contentConfigSchema, p as contentTypeConfigSchema, t as entryConfigSchema, j as fieldSelectOptionSchema, v as navigationItemConfigSchema, u as navigationMenuConfigSchema, q as pageConfigSchema, r as riverbankSiteConfigSchema, i as sdkCustomBlockSchema, g as sdkThemeConfigSchema, h as sdkThemePaletteSchema, a as sectionBackgroundSchema, e as sectionOptionsSchema, b as sectionSpacingSchema, w as siteSettingsConfigSchema, s as siteStyleConfigSchema } from './validation-DzvDwwRo.mjs';
|
|
4
4
|
export { B as BlockKind, C as CustomBlockKind, S as SYSTEM_BLOCK_KINDS, a as SystemBlockKind } from './blockKinds-B6MWzNWp.mjs';
|
|
5
5
|
export { F as FieldDefinition, S as SdkCustomBlock } from './schema-Bpy9N5ZI.mjs';
|
|
6
6
|
import 'zod';
|
package/dist/server/config.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as RiverbankSiteConfig, C as ContentConfig } from './types-
|
|
2
|
-
export { m as BlockConfig, B as BlockFieldConfig, j as BlockFieldExtension, k as BlockFieldExtensionsMap, i as BlockFieldOptionsMap, f as ContainerAlignment, e as ContainerMaxWidth, c as ContainerOptionsConfig, l as ContentTypeConfig, E as EntryConfig, F as FieldSelectOption, n as NavigationItemConfig, o as NavigationLinkType, N as NavigationMenuConfig, P as PageConfig, g as SdkThemeConfig, h as SdkThemePalette, a as SectionBackground, b as SectionOptionsConfig, d as SectionSpacing, p as SiteSettingsConfig, S as SiteStyleConfig } from './types-
|
|
3
|
-
export { C as ContentConfigInput, z as ContentConfigOutput, V as ValidatedRiverbankSiteConfig, y as ValidatedSdkCustomBlock, x as blockConfigSchema, k as blockFieldConfigSchema, m as blockFieldExtensionSchema, n as blockFieldExtensionsSchema, l as blockFieldOptionsSchema, d as containerAlignmentSchema, c as containerMaxWidthSchema, f as containerOptionsSchema, o as contentConfigSchema, p as contentTypeConfigSchema, t as entryConfigSchema, j as fieldSelectOptionSchema, v as navigationItemConfigSchema, u as navigationMenuConfigSchema, q as pageConfigSchema, r as riverbankSiteConfigSchema, i as sdkCustomBlockSchema, g as sdkThemeConfigSchema, h as sdkThemePaletteSchema, a as sectionBackgroundSchema, e as sectionOptionsSchema, b as sectionSpacingSchema, w as siteSettingsConfigSchema, s as siteStyleConfigSchema } from './validation-
|
|
1
|
+
import { R as RiverbankSiteConfig, C as ContentConfig } from './types-CL916r6x.js';
|
|
2
|
+
export { m as BlockConfig, B as BlockFieldConfig, j as BlockFieldExtension, k as BlockFieldExtensionsMap, i as BlockFieldOptionsMap, f as ContainerAlignment, e as ContainerMaxWidth, c as ContainerOptionsConfig, l as ContentTypeConfig, E as EntryConfig, F as FieldSelectOption, n as NavigationItemConfig, o as NavigationLinkType, N as NavigationMenuConfig, P as PageConfig, g as SdkThemeConfig, h as SdkThemePalette, a as SectionBackground, b as SectionOptionsConfig, d as SectionSpacing, p as SiteSettingsConfig, S as SiteStyleConfig } from './types-CL916r6x.js';
|
|
3
|
+
export { C as ContentConfigInput, z as ContentConfigOutput, V as ValidatedRiverbankSiteConfig, y as ValidatedSdkCustomBlock, x as blockConfigSchema, k as blockFieldConfigSchema, m as blockFieldExtensionSchema, n as blockFieldExtensionsSchema, l as blockFieldOptionsSchema, d as containerAlignmentSchema, c as containerMaxWidthSchema, f as containerOptionsSchema, o as contentConfigSchema, p as contentTypeConfigSchema, t as entryConfigSchema, j as fieldSelectOptionSchema, v as navigationItemConfigSchema, u as navigationMenuConfigSchema, q as pageConfigSchema, r as riverbankSiteConfigSchema, i as sdkCustomBlockSchema, g as sdkThemeConfigSchema, h as sdkThemePaletteSchema, a as sectionBackgroundSchema, e as sectionOptionsSchema, b as sectionSpacingSchema, w as siteSettingsConfigSchema, s as siteStyleConfigSchema } from './validation-CoU8uAiu.js';
|
|
4
4
|
export { B as BlockKind, C as CustomBlockKind, S as SYSTEM_BLOCK_KINDS, a as SystemBlockKind } from './blockKinds-B6MWzNWp.js';
|
|
5
5
|
export { F as FieldDefinition, S as SdkCustomBlock } from './schema-Bpy9N5ZI.js';
|
|
6
6
|
import 'zod';
|
package/dist/server/config.js
CHANGED
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunk6JBKKV3Gjs = require('./chunk-6JBKKV3G.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
var _chunkGERCMTPQjs = require('./chunk-GERCMTPQ.js');
|
|
30
|
-
require('./chunk-
|
|
30
|
+
require('./chunk-TKMA6D6U.js');
|
|
31
31
|
require('./chunk-HOY77YBF.js');
|
|
32
32
|
require('./chunk-EGTDJ4PL.js');
|
|
33
33
|
require('./chunk-DGUM43GV.js');
|
|
@@ -67,5 +67,5 @@ function defineContentConfig(config) {
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
exports.SYSTEM_BLOCK_KINDS = _chunkGERCMTPQjs.SYSTEM_BLOCK_KINDS; exports.blockConfigSchema =
|
|
70
|
+
exports.SYSTEM_BLOCK_KINDS = _chunkGERCMTPQjs.SYSTEM_BLOCK_KINDS; exports.blockConfigSchema = _chunk6JBKKV3Gjs.blockConfigSchema; exports.blockFieldConfigSchema = _chunk6JBKKV3Gjs.blockFieldConfigSchema; exports.blockFieldExtensionSchema = _chunk6JBKKV3Gjs.blockFieldExtensionSchema; exports.blockFieldExtensionsSchema = _chunk6JBKKV3Gjs.blockFieldExtensionsSchema; exports.blockFieldOptionsSchema = _chunk6JBKKV3Gjs.blockFieldOptionsSchema; exports.containerAlignmentSchema = _chunk6JBKKV3Gjs.containerAlignmentSchema; exports.containerMaxWidthSchema = _chunk6JBKKV3Gjs.containerMaxWidthSchema; exports.containerOptionsSchema = _chunk6JBKKV3Gjs.containerOptionsSchema; exports.contentConfigSchema = _chunk6JBKKV3Gjs.contentConfigSchema; exports.contentTypeConfigSchema = _chunk6JBKKV3Gjs.contentTypeConfigSchema; exports.defineConfig = defineConfig; exports.defineContentConfig = defineContentConfig; exports.entryConfigSchema = _chunk6JBKKV3Gjs.entryConfigSchema; exports.fieldSelectOptionSchema = _chunk6JBKKV3Gjs.fieldSelectOptionSchema; exports.navigationItemConfigSchema = _chunk6JBKKV3Gjs.navigationItemConfigSchema; exports.navigationMenuConfigSchema = _chunk6JBKKV3Gjs.navigationMenuConfigSchema; exports.pageConfigSchema = _chunk6JBKKV3Gjs.pageConfigSchema; exports.riverbankSiteConfigSchema = _chunk6JBKKV3Gjs.riverbankSiteConfigSchema; exports.sdkCustomBlockSchema = _chunk6JBKKV3Gjs.sdkCustomBlockSchema; exports.sdkThemeConfigSchema = _chunk6JBKKV3Gjs.sdkThemeConfigSchema; exports.sdkThemePaletteSchema = _chunk6JBKKV3Gjs.sdkThemePaletteSchema; exports.sectionBackgroundSchema = _chunk6JBKKV3Gjs.sectionBackgroundSchema; exports.sectionOptionsSchema = _chunk6JBKKV3Gjs.sectionOptionsSchema; exports.sectionSpacingSchema = _chunk6JBKKV3Gjs.sectionSpacingSchema; exports.siteSettingsConfigSchema = _chunk6JBKKV3Gjs.siteSettingsConfigSchema; exports.siteStyleConfigSchema = _chunk6JBKKV3Gjs.siteStyleConfigSchema;
|
|
71
71
|
//# sourceMappingURL=config.js.map
|
package/dist/server/config.mjs
CHANGED
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
sectionSpacingSchema,
|
|
24
24
|
siteSettingsConfigSchema,
|
|
25
25
|
siteStyleConfigSchema
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-I6K5REFT.mjs";
|
|
27
27
|
import {
|
|
28
28
|
SYSTEM_BLOCK_KINDS
|
|
29
29
|
} from "./chunk-D2QLTPUJ.mjs";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-TNRADRPH.mjs";
|
|
31
31
|
import "./chunk-7DS4Q3GA.mjs";
|
|
32
32
|
import "./chunk-USQF2XTU.mjs";
|
|
33
33
|
import "./chunk-BJTO5JO5.mjs";
|
package/dist/server/data.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { P as PageOutline, S as SdkCustomBlock } from './schema-Bpy9N5ZI.mjs';
|
|
2
2
|
import { P as PrefetchContext, R as ResolvedBlockData, D as DataLoaderOverrides } from './types-CbagRQ_7.mjs';
|
|
3
3
|
export { B as BlockLoaderMap, a as DataLoaderContext, b as DataLoaderFn } from './types-CbagRQ_7.mjs';
|
|
4
|
-
import { R as RiverbankClient } from './types-
|
|
4
|
+
import { R as RiverbankClient } from './types-DkKEctWn.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import './blockKinds-B6MWzNWp.mjs';
|
|
7
|
-
import './types-
|
|
7
|
+
import './types-CdrJqlKx.mjs';
|
|
8
8
|
import '@riverbankcms/ai';
|
|
9
9
|
import '@riverbankcms/media-storage-supabase';
|
|
10
10
|
import '@riverbankcms/db';
|
package/dist/server/data.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { P as PageOutline, S as SdkCustomBlock } from './schema-Bpy9N5ZI.js';
|
|
2
2
|
import { P as PrefetchContext, R as ResolvedBlockData, D as DataLoaderOverrides } from './types-DuQCNVV0.js';
|
|
3
3
|
export { B as BlockLoaderMap, a as DataLoaderContext, b as DataLoaderFn } from './types-DuQCNVV0.js';
|
|
4
|
-
import { R as RiverbankClient } from './types-
|
|
4
|
+
import { R as RiverbankClient } from './types-oCM-fw4O.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import './blockKinds-B6MWzNWp.js';
|
|
7
|
-
import './types-
|
|
7
|
+
import './types-BiRZnxDx.js';
|
|
8
8
|
import '@riverbankcms/ai';
|
|
9
9
|
import '@riverbankcms/media-storage-supabase';
|
|
10
10
|
import '@riverbankcms/db';
|
package/dist/server/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { c as createRiverbankClient } from './index-
|
|
2
|
-
export { E as EntriesResponse, c as EntriesResponseWithMeta, b as EntryResponse, P as PageResponse, d as PaginationMeta, R as RiverbankClient, a as RiverbankClientConfig, S as SiteResponse } from './types-
|
|
3
|
-
import { A as APIEndpoints, b as APICallParams } from './types-
|
|
1
|
+
export { c as createRiverbankClient } from './index-DFQwtj3J.mjs';
|
|
2
|
+
export { E as EntriesResponse, c as EntriesResponseWithMeta, b as EntryResponse, P as PageResponse, d as PaginationMeta, R as RiverbankClient, a as RiverbankClientConfig, S as SiteResponse } from './types-DkKEctWn.mjs';
|
|
3
|
+
import { A as APIEndpoints, b as APICallParams } from './types-CdrJqlKx.mjs';
|
|
4
4
|
import './schema-Bpy9N5ZI.mjs';
|
|
5
|
-
export { f as ContainerAlignment, e as ContainerMaxWidth, c as ContainerOptionsConfig, R as RiverbankSiteConfig, a as SectionBackground, b as SectionOptionsConfig, d as SectionSpacing, S as SiteStyleConfig } from './types-
|
|
5
|
+
export { f as ContainerAlignment, e as ContainerMaxWidth, c as ContainerOptionsConfig, R as RiverbankSiteConfig, a as SectionBackground, b as SectionOptionsConfig, d as SectionSpacing, S as SiteStyleConfig } from './types-txWsSxN7.mjs';
|
|
6
6
|
export { B as BlockKind, C as CustomBlockKind, S as SYSTEM_BLOCK_KINDS, a as SystemBlockKind } from './blockKinds-B6MWzNWp.mjs';
|
|
7
7
|
import '@riverbankcms/ai';
|
|
8
8
|
import 'zod';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { c as createRiverbankClient } from './index-
|
|
2
|
-
export { E as EntriesResponse, c as EntriesResponseWithMeta, b as EntryResponse, P as PageResponse, d as PaginationMeta, R as RiverbankClient, a as RiverbankClientConfig, S as SiteResponse } from './types-
|
|
3
|
-
import { A as APIEndpoints, b as APICallParams } from './types-
|
|
1
|
+
export { c as createRiverbankClient } from './index-DCIz9Ptv.js';
|
|
2
|
+
export { E as EntriesResponse, c as EntriesResponseWithMeta, b as EntryResponse, P as PageResponse, d as PaginationMeta, R as RiverbankClient, a as RiverbankClientConfig, S as SiteResponse } from './types-oCM-fw4O.js';
|
|
3
|
+
import { A as APIEndpoints, b as APICallParams } from './types-BiRZnxDx.js';
|
|
4
4
|
import './schema-Bpy9N5ZI.js';
|
|
5
|
-
export { f as ContainerAlignment, e as ContainerMaxWidth, c as ContainerOptionsConfig, R as RiverbankSiteConfig, a as SectionBackground, b as SectionOptionsConfig, d as SectionSpacing, S as SiteStyleConfig } from './types-
|
|
5
|
+
export { f as ContainerAlignment, e as ContainerMaxWidth, c as ContainerOptionsConfig, R as RiverbankSiteConfig, a as SectionBackground, b as SectionOptionsConfig, d as SectionSpacing, S as SiteStyleConfig } from './types-CL916r6x.js';
|
|
6
6
|
export { B as BlockKind, C as CustomBlockKind, S as SYSTEM_BLOCK_KINDS, a as SystemBlockKind } from './blockKinds-B6MWzNWp.js';
|
|
7
7
|
import '@riverbankcms/ai';
|
|
8
8
|
import 'zod';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as Theme } from './types-
|
|
1
|
+
import { T as Theme } from './types-CdrJqlKx.mjs';
|
|
2
2
|
import './schema-Bpy9N5ZI.mjs';
|
|
3
|
-
import { R as RiverbankClient } from './types-
|
|
4
|
-
import { P as PageProps } from './loadPage-
|
|
3
|
+
import { R as RiverbankClient } from './types-DkKEctWn.mjs';
|
|
4
|
+
import { P as PageProps } from './loadPage-B8RmlYgV.mjs';
|
|
5
5
|
import { R as ResolvedBlockData } from './types-CbagRQ_7.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as Theme } from './types-
|
|
1
|
+
import { T as Theme } from './types-BiRZnxDx.js';
|
|
2
2
|
import './schema-Bpy9N5ZI.js';
|
|
3
|
-
import { R as RiverbankClient } from './types-
|
|
4
|
-
import { P as PageProps } from './loadPage-
|
|
3
|
+
import { R as RiverbankClient } from './types-oCM-fw4O.js';
|
|
4
|
+
import { P as PageProps } from './loadPage-BTkKpizX.js';
|
|
5
5
|
import { R as ResolvedBlockData } from './types-DuQCNVV0.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { R as RiverbankClient, S as SiteResponse } from './types-
|
|
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
|
|
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-
|
|
7
|
+
import { T as Theme } from './types-CdrJqlKx.mjs';
|
|
8
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"];
|
|
@@ -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
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
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 =
|
|
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
|
|
123
|
-
* 'bodyText': CustomBodyText, // CustomBodyText
|
|
155
|
+
* 'hero': CustomHero, // CustomHero uses BlockOverrideProps<HeroContent>
|
|
156
|
+
* 'bodyText': CustomBodyText, // CustomBodyText uses BlockOverrideProps<BodyTextContent>
|
|
124
157
|
* };
|
|
125
158
|
* ```
|
|
126
159
|
*/
|
|
@@ -374,4 +407,4 @@ type LoadPageResult = Omit<PageProps, 'registry' | 'wrapBlock' | 'usePlaceholder
|
|
|
374
407
|
*/
|
|
375
408
|
declare function loadPage(params: LoadPageParams): Promise<LoadPageResult>;
|
|
376
409
|
|
|
377
|
-
export { type BlockOverrides as B, type LoadPageParams as L, type PageProps as P, type RuntimeSdkConfig as R, type
|
|
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 };
|