@riverbankcms/sdk 0.4.1 → 0.4.3
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 +90 -170
- package/dist/client/client.js.map +1 -1
- package/dist/client/client.mjs +90 -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 +84 -142
- package/dist/client/rendering/client.js.map +1 -1
- package/dist/client/rendering/client.mjs +84 -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--fGlyrgj.d.mts +6439 -0
- package/dist/client/usePage-BC8Q2E3t.d.mts +6431 -0
- package/dist/client/usePage-CE7X5NcN.d.ts +6439 -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-CHG77dhK.d.ts → Layout-CXI_VkhN.d.ts} +1 -1
- package/dist/server/{Layout-B_zUr9ci.d.mts → Layout-p6f3TLw9.d.mts} +1 -1
- package/dist/server/{chunk-XK2YIISA.mjs → chunk-24F6FTCI.mjs} +2 -2
- package/dist/server/{chunk-BUCJWG6G.js → chunk-2SSEBAHC.js} +5 -5
- package/dist/server/{chunk-BUCJWG6G.js.map → chunk-2SSEBAHC.js.map} +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-ZEAJW6T3.mjs → chunk-ES6QDZUX.mjs} +3 -2
- package/dist/server/chunk-ES6QDZUX.mjs.map +1 -0
- package/dist/server/{chunk-SWPHIUVE.js → chunk-G35R7N7B.js} +3 -2
- package/dist/server/chunk-G35R7N7B.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-SFQ7VF3G.mjs → chunk-LCYGQDAB.mjs} +10 -6
- package/dist/server/chunk-LCYGQDAB.mjs.map +1 -0
- package/dist/server/{chunk-P6CDRJN3.js → chunk-TNYU5EIO.js} +16 -12
- package/dist/server/chunk-TNYU5EIO.js.map +1 -0
- package/dist/server/{chunk-NKXS4TBK.mjs → chunk-U2NI3TS3.mjs} +87 -169
- package/dist/server/chunk-U2NI3TS3.mjs.map +1 -0
- package/dist/server/{chunk-IT5ICP43.js → chunk-VHDDXCK6.js} +94 -176
- package/dist/server/chunk-VHDDXCK6.js.map +1 -0
- package/dist/server/{components-Bo3LPpVb.d.mts → components-C75e4poV.d.mts} +20 -12
- package/dist/server/{components-ClFs4PUa.d.ts → components-Dhiemsjd.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-Dj7VKH34.d.mts → index-C6o9LPvq.d.mts} +1 -1
- package/dist/server/{index-DbSfrRA0.d.ts → index-CAwBj3-A.d.ts} +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-CdXfuCuE.d.mts} +3 -3
- package/dist/server/{loadContent-C2SwqmXy.d.ts → loadContent-CsvQRoxb.d.ts} +3 -3
- package/dist/server/{loadPage-naVvoua8.d.ts → loadPage-BA0HiT-6.d.ts} +72 -28
- package/dist/server/{loadPage-DUHBXDEW.js → loadPage-DLC7DJZP.js} +3 -3
- package/dist/server/{loadPage-DUHBXDEW.js.map → loadPage-DLC7DJZP.js.map} +1 -1
- package/dist/server/{loadPage-LYVKY3WZ.mjs → loadPage-GEGN4UAL.mjs} +2 -2
- package/dist/server/{loadPage-mavT3Jae.d.mts → loadPage-p3AWwwrd.d.mts} +72 -28
- 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 +5 -5
- package/dist/server/rendering.mjs +4 -4
- package/dist/server/routing.d.mts +78 -5
- package/dist/server/routing.d.ts +78 -5
- package/dist/server/routing.js +57 -3
- package/dist/server/routing.js.map +1 -1
- package/dist/server/routing.mjs +55 -1
- 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/server.js +2 -2
- package/dist/server/server.mjs +1 -1
- package/dist/server/theme-bridge.js +7 -7
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/{types-BA-J9K8r.d.mts → types-BLf-hE50.d.mts} +19 -6
- package/dist/server/{types-5XdVD2J1.d.ts → types-BWQ-TohG.d.ts} +19 -6
- package/dist/server/{types-CMqVHYLG.d.ts → types-CL916r6x.d.ts} +23 -1
- package/dist/server/{types-BC9eB2KH.d.mts → types-CdhKJrB0.d.mts} +1 -1
- package/dist/server/{types-CAnC529E.d.ts → types-Dj8B3QRb.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 +3 -3
- 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-SFQ7VF3G.mjs.map +0 -1
- package/dist/server/chunk-SWPHIUVE.js.map +0 -1
- package/dist/server/chunk-ZEAJW6T3.mjs.map +0 -1
- package/dist/server/chunk-ZIM53VP6.js.map +0 -1
- /package/dist/server/{chunk-XK2YIISA.mjs.map → chunk-24F6FTCI.mjs.map} +0 -0
- /package/dist/server/{loadPage-LYVKY3WZ.mjs.map → loadPage-GEGN4UAL.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-p3AWwwrd.mjs';
|
|
2
|
+
import './Layout-p6f3TLw9.mjs';
|
|
3
|
+
import { T as Theme, H as HydratedTheme, e as ExpandedPalette } from './types-BLf-hE50.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-BA0HiT-6.js';
|
|
2
|
+
import './Layout-CXI_VkhN.js';
|
|
3
|
+
import { T as Theme, H as HydratedTheme, e as ExpandedPalette } from './types-BWQ-TohG.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-p3AWwwrd.mjs';
|
|
2
|
+
export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-p6f3TLw9.mjs';
|
|
3
|
+
export { T as Theme } from './types-BLf-hE50.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-C75e4poV.mjs';
|
|
6
|
+
import './types-CdhKJrB0.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-BA0HiT-6.js';
|
|
2
|
+
export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-CXI_VkhN.js';
|
|
3
|
+
export { T as Theme } from './types-BWQ-TohG.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-Dhiemsjd.js';
|
|
6
|
+
import './types-Dj8B3QRb.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 _chunkTNYU5EIOjs = require('./chunk-TNYU5EIO.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 _chunkVHDDXCK6js = require('./chunk-VHDDXCK6.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 = _chunkTNYU5EIOjs.Layout; exports.Page = _chunkTNYU5EIOjs.Page; exports.PageRenderer = _chunkVHDDXCK6js.PageRenderer; exports.RichText = _chunkVHDDXCK6js.RichText; exports.SectionBackground = _chunkVHDDXCK6js.SectionBackground; exports.buildThemeRuntime = _chunkVHDDXCK6js.buildThemeRuntime; exports.resolveBackground = _chunkVHDDXCK6js.resolveBackground; exports.resolveImageUrl = _chunkVHDDXCK6js.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-LCYGQDAB.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-U2NI3TS3.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-VHDDXCK6.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-U2NI3TS3.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-VHDDXCK6.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-U2NI3TS3.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-CdhKJrB0.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import './blockKinds-B6MWzNWp.mjs';
|
|
7
|
-
import './types-
|
|
7
|
+
import './types-BLf-hE50.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-Dj8B3QRb.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import './blockKinds-B6MWzNWp.js';
|
|
7
|
-
import './types-
|
|
7
|
+
import './types-BWQ-TohG.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-C6o9LPvq.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-CdhKJrB0.mjs';
|
|
3
|
+
import { A as APIEndpoints, b as APICallParams } from './types-BLf-hE50.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-CAwBj3-A.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-Dj8B3QRb.js';
|
|
3
|
+
import { A as APIEndpoints, b as APICallParams } from './types-BWQ-TohG.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-BLf-hE50.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-CdhKJrB0.mjs';
|
|
4
|
+
import { P as PageProps } from './loadPage-p3AWwwrd.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-BWQ-TohG.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-Dj8B3QRb.js';
|
|
4
|
+
import { P as PageProps } from './loadPage-BA0HiT-6.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-Dj8B3QRb.js';
|
|
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.js';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { T as Theme } from './types-
|
|
7
|
+
import { T as Theme } from './types-BWQ-TohG.js';
|
|
8
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"];
|
|
@@ -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).
|
|
@@ -100,16 +84,66 @@ type PageRendererDataContext = {
|
|
|
100
84
|
routes?: RouteMap;
|
|
101
85
|
occurrenceContext?: OccurrenceContextData | null;
|
|
102
86
|
contentEntry?: Record<string, unknown> | null;
|
|
87
|
+
supabaseUrl?: string;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Props passed to block override components.
|
|
91
|
+
*
|
|
92
|
+
* These props are RSC-safe (no functions) so overrides can be Client Components.
|
|
93
|
+
* Unlike internal SDK block components, overrides don't receive `registry` or
|
|
94
|
+
* `fragmentRegistry` which contain function references that can't cross the
|
|
95
|
+
* RSC serialization boundary.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```tsx
|
|
99
|
+
* 'use client';
|
|
100
|
+
*
|
|
101
|
+
* import type { BlockOverrideProps, HeroContent } from '@riverbankcms/sdk/rendering';
|
|
102
|
+
*
|
|
103
|
+
* export function CustomHero({ content, theme, data }: BlockOverrideProps<HeroContent>) {
|
|
104
|
+
* const [expanded, setExpanded] = useState(false);
|
|
105
|
+
* return <div>...</div>;
|
|
106
|
+
* }
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
type BlockOverrideProps<TContent = Record<string, unknown>> = {
|
|
110
|
+
/** Block content data */
|
|
111
|
+
content: TContent;
|
|
112
|
+
/** Theme tokens for styling */
|
|
113
|
+
theme?: ThemeTokens;
|
|
114
|
+
/** Full theme configuration */
|
|
115
|
+
themeConfig?: Theme;
|
|
116
|
+
/** Pre-fetched data from data loaders */
|
|
117
|
+
data?: Record<string, unknown>;
|
|
118
|
+
/** Block instance ID (null for unsaved blocks) */
|
|
119
|
+
blockId: string | null;
|
|
120
|
+
/** Block kind identifier (e.g., "block.hero" or "custom.my-block") */
|
|
121
|
+
blockKind: string;
|
|
103
122
|
};
|
|
104
123
|
/**
|
|
105
124
|
* Block override component type.
|
|
106
|
-
* Override components receive the same props as default block components.
|
|
107
125
|
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
126
|
+
* Override components can be either Server Components or Client Components.
|
|
127
|
+
* They receive only serializable props (no functions) to support RSC boundaries.
|
|
128
|
+
*
|
|
129
|
+
* @example Server Component override
|
|
130
|
+
* ```tsx
|
|
131
|
+
* export function CustomHero({ content, theme, data }: BlockOverrideProps<HeroContent>) {
|
|
132
|
+
* return <div className="custom-hero">...</div>;
|
|
133
|
+
* }
|
|
134
|
+
* ```
|
|
135
|
+
*
|
|
136
|
+
* @example Client Component override
|
|
137
|
+
* ```tsx
|
|
138
|
+
* 'use client';
|
|
139
|
+
*
|
|
140
|
+
* export function CustomHero({ content, theme, data }: BlockOverrideProps<HeroContent>) {
|
|
141
|
+
* const [state, setState] = useState(null);
|
|
142
|
+
* return <div className="custom-hero">...</div>;
|
|
143
|
+
* }
|
|
144
|
+
* ```
|
|
111
145
|
*/
|
|
112
|
-
type BlockOverrideComponent =
|
|
146
|
+
type BlockOverrideComponent = React$1.ComponentType<BlockOverrideProps<any>>;
|
|
113
147
|
/**
|
|
114
148
|
* Map of block kinds to custom override components.
|
|
115
149
|
* Keys can be either:
|
|
@@ -119,8 +153,8 @@ type BlockOverrideComponent = SystemBlockComponent<any>;
|
|
|
119
153
|
* @example
|
|
120
154
|
* ```tsx
|
|
121
155
|
* const overrides: BlockOverrides = {
|
|
122
|
-
* 'hero': CustomHero, // CustomHero
|
|
123
|
-
* 'bodyText': CustomBodyText, // CustomBodyText
|
|
156
|
+
* 'hero': CustomHero, // CustomHero uses BlockOverrideProps<HeroContent>
|
|
157
|
+
* 'bodyText': CustomBodyText, // CustomBodyText uses BlockOverrideProps<BodyTextContent>
|
|
124
158
|
* };
|
|
125
159
|
* ```
|
|
126
160
|
*/
|
|
@@ -159,6 +193,11 @@ type PageProps = {
|
|
|
159
193
|
* allowing blocks to use SDK-defined color tokens for section backgrounds.
|
|
160
194
|
*/
|
|
161
195
|
sdkConfig?: RuntimeSdkConfig | null;
|
|
196
|
+
/**
|
|
197
|
+
* Supabase storage URL for direct image access.
|
|
198
|
+
* SDK sites receive this from the API instead of requiring NEXT_PUBLIC_SUPABASE_URL env var.
|
|
199
|
+
*/
|
|
200
|
+
supabaseUrl?: string;
|
|
162
201
|
/**
|
|
163
202
|
* Additional context data for content entry pages.
|
|
164
203
|
* Used to pass occurrence context and content entry data to blocks.
|
|
@@ -235,7 +274,7 @@ type PageProps = {
|
|
|
235
274
|
* }
|
|
236
275
|
* ```
|
|
237
276
|
*/
|
|
238
|
-
declare function Page({ page, theme, themeTokens: providedTokens, siteId, resolvedData, routeMap, wrapBlock, registry, usePlaceholders, blockOverrides, sdkConfig, dataContext, }: PageProps): react_jsx_runtime.JSX.Element;
|
|
277
|
+
declare function Page({ page, theme, themeTokens: providedTokens, siteId, resolvedData, routeMap, wrapBlock, registry, usePlaceholders, blockOverrides, sdkConfig, supabaseUrl, dataContext, }: PageProps): react_jsx_runtime.JSX.Element;
|
|
239
278
|
|
|
240
279
|
/**
|
|
241
280
|
* Server-side helper to fetch all data needed for <Page> component.
|
|
@@ -314,6 +353,11 @@ type LoadPageResult = Omit<PageProps, 'registry' | 'wrapBlock' | 'usePlaceholder
|
|
|
314
353
|
* Contains SDK-defined theme palette, section backgrounds, and style options.
|
|
315
354
|
*/
|
|
316
355
|
sdkConfig: RuntimeSdkConfig | null;
|
|
356
|
+
/**
|
|
357
|
+
* Supabase storage URL for direct image access.
|
|
358
|
+
* SDK sites use this instead of NEXT_PUBLIC_SUPABASE_URL env var.
|
|
359
|
+
*/
|
|
360
|
+
supabaseUrl?: string;
|
|
317
361
|
};
|
|
318
362
|
/**
|
|
319
363
|
* Server-side helper to fetch all data needed for <Page> component.
|
|
@@ -374,4 +418,4 @@ type LoadPageResult = Omit<PageProps, 'registry' | 'wrapBlock' | 'usePlaceholder
|
|
|
374
418
|
*/
|
|
375
419
|
declare function loadPage(params: LoadPageParams): Promise<LoadPageResult>;
|
|
376
420
|
|
|
377
|
-
export { type BlockOverrides as B, type LoadPageParams as L, type PageProps as P, type RuntimeSdkConfig as R, type
|
|
421
|
+
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
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkG35R7N7Bjs = require('./chunk-G35R7N7B.js');
|
|
4
4
|
require('./chunk-Y7347JMZ.js');
|
|
5
5
|
require('./chunk-HOY77YBF.js');
|
|
6
6
|
require('./chunk-EGTDJ4PL.js');
|
|
7
7
|
require('./chunk-DGUM43GV.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.loadPage =
|
|
11
|
-
//# sourceMappingURL=loadPage-
|
|
10
|
+
exports.loadPage = _chunkG35R7N7Bjs.loadPage;
|
|
11
|
+
//# sourceMappingURL=loadPage-DLC7DJZP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/will/Projects/Business/cms/builder/packages/sdk/dist/server/loadPage-
|
|
1
|
+
{"version":3,"sources":["/Users/will/Projects/Business/cms/builder/packages/sdk/dist/server/loadPage-DLC7DJZP.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-DLC7DJZP.js"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadPage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ES6QDZUX.mjs";
|
|
4
4
|
import "./chunk-A2FZMRDW.mjs";
|
|
5
5
|
import "./chunk-7DS4Q3GA.mjs";
|
|
6
6
|
import "./chunk-USQF2XTU.mjs";
|
|
@@ -8,4 +8,4 @@ import "./chunk-BJTO5JO5.mjs";
|
|
|
8
8
|
export {
|
|
9
9
|
loadPage
|
|
10
10
|
};
|
|
11
|
-
//# sourceMappingURL=loadPage-
|
|
11
|
+
//# sourceMappingURL=loadPage-GEGN4UAL.mjs.map
|