@riverbankcms/sdk 0.3.0 → 0.4.1
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 +255 -1
- package/dist/cli/index.js +249 -40
- package/dist/cli/index.js.map +1 -1
- package/dist/client/bookings.js +15 -1
- package/dist/client/bookings.js.map +1 -1
- package/dist/client/bookings.mjs +15 -1
- package/dist/client/bookings.mjs.map +1 -1
- package/dist/client/client.d.mts +2 -2
- package/dist/client/client.d.ts +2 -2
- package/dist/client/client.js +33 -5
- package/dist/client/client.js.map +1 -1
- package/dist/client/client.mjs +33 -5
- package/dist/client/client.mjs.map +1 -1
- package/dist/client/hooks.d.mts +2 -2
- package/dist/client/hooks.d.ts +2 -2
- package/dist/client/rendering/client.js +31 -33
- package/dist/client/rendering/client.js.map +1 -1
- package/dist/client/rendering/client.mjs +31 -33
- package/dist/client/rendering/client.mjs.map +1 -1
- package/dist/client/usePage-BcjWPXvh.d.mts +6388 -0
- package/dist/client/usePage-C3ZKNwY7.d.mts +6393 -0
- package/dist/client/usePage-CyYpOJud.d.ts +6388 -0
- package/dist/client/usePage-gpVaeWDy.d.ts +6393 -0
- package/dist/server/{Layout-CsAQ-0Fv.d.mts → Layout-B_zUr9ci.d.mts} +1 -1
- package/dist/server/{Layout-BM_KmCxO.d.ts → Layout-CHG77dhK.d.ts} +1 -1
- package/dist/server/blockKinds-B6MWzNWp.d.mts +16 -0
- package/dist/server/blockKinds-B6MWzNWp.d.ts +16 -0
- package/dist/server/{chunk-GWBMJPLH.mjs → chunk-A2FZMRDW.mjs} +3 -2
- package/dist/server/chunk-A2FZMRDW.mjs.map +1 -0
- package/dist/server/chunk-BOHTTHY5.mjs +406 -0
- package/dist/server/chunk-BOHTTHY5.mjs.map +1 -0
- package/dist/server/{chunk-5R4NMVXA.js → chunk-BUCJWG6G.js} +5 -5
- package/dist/server/chunk-BUCJWG6G.js.map +1 -0
- package/dist/server/chunk-D2QLTPUJ.mjs +33 -0
- package/dist/server/chunk-D2QLTPUJ.mjs.map +1 -0
- package/dist/server/chunk-GERCMTPQ.js +33 -0
- package/dist/server/chunk-GERCMTPQ.js.map +1 -0
- package/dist/server/{chunk-SF63XAX7.js → chunk-IT5ICP43.js} +24 -4
- package/dist/server/chunk-IT5ICP43.js.map +1 -0
- package/dist/server/{chunk-QFFQTOY3.mjs → chunk-N3PX76AP.mjs} +11 -3
- package/dist/server/{chunk-QFFQTOY3.mjs.map → chunk-N3PX76AP.mjs.map} +1 -1
- package/dist/server/{chunk-O5DC7MYW.mjs → chunk-NKXS4TBK.mjs} +24 -4
- package/dist/server/chunk-NKXS4TBK.mjs.map +1 -0
- package/dist/server/{chunk-INWKF3IC.js → chunk-P6CDRJN3.js} +8 -8
- package/dist/server/{chunk-INWKF3IC.js.map → chunk-P6CDRJN3.js.map} +1 -1
- package/dist/server/{chunk-UFVCBGBY.js → chunk-R5B6IOFQ.js} +11 -3
- package/dist/server/chunk-R5B6IOFQ.js.map +1 -0
- package/dist/server/{chunk-FK64TZBT.mjs → chunk-SFQ7VF3G.mjs} +2 -2
- package/dist/server/{chunk-62ZJI564.js → chunk-SWPHIUVE.js} +7 -6
- package/dist/server/chunk-SWPHIUVE.js.map +1 -0
- package/dist/server/{chunk-PN3CHDVX.mjs → chunk-XK2YIISA.mjs} +2 -2
- package/dist/server/chunk-XK2YIISA.mjs.map +1 -0
- package/dist/server/{chunk-YXDDFG3N.js → chunk-Y7347JMZ.js} +3 -2
- package/dist/server/chunk-Y7347JMZ.js.map +1 -0
- package/dist/server/{chunk-JTAERCX2.mjs → chunk-ZEAJW6T3.mjs} +5 -4
- package/dist/server/chunk-ZEAJW6T3.mjs.map +1 -0
- package/dist/server/chunk-ZIM53VP6.js +406 -0
- package/dist/server/chunk-ZIM53VP6.js.map +1 -0
- package/dist/server/{components-CI3JiOYA.d.mts → components-Bo3LPpVb.d.mts} +3 -3
- package/dist/server/{components-DJBLu_yc.d.ts → components-ClFs4PUa.d.ts} +3 -3
- package/dist/server/components.d.mts +7 -6
- package/dist/server/components.d.ts +7 -6
- package/dist/server/components.js +3 -3
- package/dist/server/components.mjs +2 -2
- package/dist/server/config-validation.d.mts +5 -300
- package/dist/server/config-validation.d.ts +5 -300
- package/dist/server/config-validation.js +6 -3
- package/dist/server/config-validation.js.map +1 -1
- package/dist/server/config-validation.mjs +5 -2
- package/dist/server/config.d.mts +43 -4
- package/dist/server/config.d.ts +43 -4
- package/dist/server/config.js +27 -3
- package/dist/server/config.js.map +1 -1
- package/dist/server/config.mjs +26 -2
- package/dist/server/config.mjs.map +1 -1
- package/dist/server/data.d.mts +8 -5
- package/dist/server/data.d.ts +8 -5
- package/dist/server/data.js +2 -2
- package/dist/server/data.mjs +1 -1
- package/dist/server/{index-Dus2gkY6.d.ts → index-DbSfrRA0.d.ts} +1 -1
- package/dist/server/{index-DoX3ELQn.d.mts → index-Dj7VKH34.d.mts} +1 -1
- package/dist/server/index.d.mts +5 -4
- package/dist/server/index.d.ts +5 -4
- package/dist/server/index.js +6 -2
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +5 -1
- package/dist/server/{loadContent-CdXDGsJM.d.ts → loadContent-C2SwqmXy.d.ts} +4 -4
- package/dist/server/{loadContent-v2n6pOlO.d.mts → loadContent-C_FipaAC.d.mts} +4 -4
- package/dist/server/loadPage-DUHBXDEW.js +11 -0
- package/dist/server/{loadPage-3ECPF426.js.map → loadPage-DUHBXDEW.js.map} +1 -1
- package/dist/server/{loadPage-LW273NYO.mjs → loadPage-LYVKY3WZ.mjs} +3 -3
- package/dist/server/{loadPage-en10WQrt.d.mts → loadPage-mavT3Jae.d.mts} +22 -3
- package/dist/server/{loadPage-bejlajm9.d.ts → loadPage-naVvoua8.d.ts} +22 -3
- package/dist/server/metadata.d.mts +5 -4
- package/dist/server/metadata.d.ts +5 -4
- package/dist/server/navigation.d.mts +2 -2
- package/dist/server/navigation.d.ts +2 -2
- package/dist/server/rendering/server.d.mts +8 -7
- package/dist/server/rendering/server.d.ts +8 -7
- package/dist/server/rendering/server.js +4 -4
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.d.mts +9 -8
- package/dist/server/rendering.d.ts +9 -8
- package/dist/server/rendering.js +6 -6
- package/dist/server/rendering.mjs +5 -5
- package/dist/server/routing.d.mts +5 -4
- package/dist/server/routing.d.ts +5 -4
- package/dist/server/routing.js +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/server.d.mts +7 -6
- package/dist/server/server.d.ts +7 -6
- package/dist/server/server.js +4 -4
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.js +7 -7
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/{types-Cc7lyPkN.d.ts → types-5XdVD2J1.d.ts} +2 -0
- package/dist/server/{types-nVerjjdv.d.mts → types-BA-J9K8r.d.mts} +2 -0
- package/dist/server/{types-CLusapsM.d.mts → types-BC9eB2KH.d.mts} +65 -17
- package/dist/server/{types-Ls6BkLKg.d.ts → types-CAnC529E.d.ts} +65 -17
- package/dist/server/{types-D-rqOU5I.d.ts → types-CMqVHYLG.d.ts} +264 -2
- package/dist/server/{types-Bq3520hK.d.mts → types-CYfHxUhe.d.mts} +264 -2
- package/dist/server/{types-_nDnPHpv.d.mts → types-CbagRQ_7.d.mts} +19 -1
- package/dist/server/{types-_nDnPHpv.d.ts → types-DuQCNVV0.d.ts} +19 -1
- package/dist/server/validation-C7W2Fe0i.d.ts +459 -0
- package/dist/server/validation-hg1sqhrt.d.mts +459 -0
- package/package.json +2 -1
- package/dist/server/chunk-5R4NMVXA.js.map +0 -1
- package/dist/server/chunk-62ZJI564.js.map +0 -1
- package/dist/server/chunk-BPKYRPCQ.mjs +0 -215
- package/dist/server/chunk-BPKYRPCQ.mjs.map +0 -1
- package/dist/server/chunk-GWBMJPLH.mjs.map +0 -1
- package/dist/server/chunk-JTAERCX2.mjs.map +0 -1
- package/dist/server/chunk-O5DC7MYW.mjs.map +0 -1
- package/dist/server/chunk-PN3CHDVX.mjs.map +0 -1
- package/dist/server/chunk-SF63XAX7.js.map +0 -1
- package/dist/server/chunk-UFVCBGBY.js.map +0 -1
- package/dist/server/chunk-XLVL5WPH.js +0 -215
- package/dist/server/chunk-XLVL5WPH.js.map +0 -1
- package/dist/server/chunk-YXDDFG3N.js.map +0 -1
- package/dist/server/loadPage-3ECPF426.js +0 -11
- /package/dist/server/{chunk-FK64TZBT.mjs.map → chunk-SFQ7VF3G.mjs.map} +0 -0
- /package/dist/server/{loadPage-LW273NYO.mjs.map → loadPage-LYVKY3WZ.mjs.map} +0 -0
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { a as LoadPageResult } from './loadPage-
|
|
2
|
-
import { S as SiteResponse } from './types-
|
|
1
|
+
import { a as LoadPageResult } from './loadPage-naVvoua8.js';
|
|
2
|
+
import { S as SiteResponse } from './types-CAnC529E.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import './schema-Bpy9N5ZI.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import './types-
|
|
7
|
+
import './types-5XdVD2J1.js';
|
|
8
8
|
import '@riverbankcms/ai';
|
|
9
9
|
import '@riverbankcms/media-storage-supabase';
|
|
10
10
|
import '@riverbankcms/db';
|
|
11
|
-
import './types-
|
|
11
|
+
import './types-DuQCNVV0.js';
|
|
12
|
+
import './blockKinds-B6MWzNWp.js';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Metadata generation helper for Next.js pages
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NavigationMenuWithItems } from './types-
|
|
2
|
-
export { L as LinkPayload, a as NavigationItemRecord } from './types-
|
|
1
|
+
import { N as NavigationMenuWithItems } from './types-BA-J9K8r.mjs';
|
|
2
|
+
export { L as LinkPayload, a as NavigationItemRecord } from './types-BA-J9K8r.mjs';
|
|
3
3
|
import '@riverbankcms/ai';
|
|
4
4
|
import './schema-Bpy9N5ZI.mjs';
|
|
5
5
|
import 'zod';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NavigationMenuWithItems } from './types-
|
|
2
|
-
export { L as LinkPayload, a as NavigationItemRecord } from './types-
|
|
1
|
+
import { N as NavigationMenuWithItems } from './types-5XdVD2J1.js';
|
|
2
|
+
export { L as LinkPayload, a as NavigationItemRecord } from './types-5XdVD2J1.js';
|
|
3
3
|
import '@riverbankcms/ai';
|
|
4
4
|
import './schema-Bpy9N5ZI.js';
|
|
5
5
|
import 'zod';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
export { b as Page, P as PageProps } from '../loadPage-
|
|
2
|
-
export { H as HeaderData, L as Layout, a as LayoutProps } from '../Layout-
|
|
1
|
+
export { b as Page, P as PageProps } from '../loadPage-mavT3Jae.mjs';
|
|
2
|
+
export { H as HeaderData, L as Layout, a as LayoutProps } from '../Layout-B_zUr9ci.mjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { T as Theme } from '../types-
|
|
5
|
+
import { T as Theme } from '../types-BA-J9K8r.mjs';
|
|
6
6
|
import '../schema-Bpy9N5ZI.mjs';
|
|
7
|
-
import { R as RiverbankClient } from '../types-
|
|
7
|
+
import { R as RiverbankClient } from '../types-BC9eB2KH.mjs';
|
|
8
|
+
import { B as BlockKind } from '../blockKinds-B6MWzNWp.mjs';
|
|
8
9
|
import 'zod';
|
|
9
|
-
import '../types-
|
|
10
|
+
import '../types-CbagRQ_7.mjs';
|
|
10
11
|
import '@riverbankcms/site-renderer';
|
|
11
12
|
import '@riverbankcms/ai';
|
|
12
13
|
import '@riverbankcms/media-storage-supabase';
|
|
@@ -22,10 +23,10 @@ type BlockOverrideComponent = React.ComponentType<{
|
|
|
22
23
|
themeConfig?: Theme;
|
|
23
24
|
data?: Record<string, unknown>;
|
|
24
25
|
blockId?: string | null;
|
|
25
|
-
blockKind?:
|
|
26
|
+
blockKind?: BlockKind;
|
|
26
27
|
}>;
|
|
27
28
|
type BlockProps = {
|
|
28
|
-
blockKind:
|
|
29
|
+
blockKind: BlockKind;
|
|
29
30
|
blockId?: string | null;
|
|
30
31
|
content: Record<string, unknown>;
|
|
31
32
|
theme: Theme;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
export { b as Page, P as PageProps } from '../loadPage-
|
|
2
|
-
export { H as HeaderData, L as Layout, a as LayoutProps } from '../Layout-
|
|
1
|
+
export { b as Page, P as PageProps } from '../loadPage-naVvoua8.js';
|
|
2
|
+
export { H as HeaderData, L as Layout, a as LayoutProps } from '../Layout-CHG77dhK.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { T as Theme } from '../types-
|
|
5
|
+
import { T as Theme } from '../types-5XdVD2J1.js';
|
|
6
6
|
import '../schema-Bpy9N5ZI.js';
|
|
7
|
-
import { R as RiverbankClient } from '../types-
|
|
7
|
+
import { R as RiverbankClient } from '../types-CAnC529E.js';
|
|
8
|
+
import { B as BlockKind } from '../blockKinds-B6MWzNWp.js';
|
|
8
9
|
import 'zod';
|
|
9
|
-
import '../types-
|
|
10
|
+
import '../types-DuQCNVV0.js';
|
|
10
11
|
import '@riverbankcms/site-renderer';
|
|
11
12
|
import '@riverbankcms/ai';
|
|
12
13
|
import '@riverbankcms/media-storage-supabase';
|
|
@@ -22,10 +23,10 @@ type BlockOverrideComponent = React.ComponentType<{
|
|
|
22
23
|
themeConfig?: Theme;
|
|
23
24
|
data?: Record<string, unknown>;
|
|
24
25
|
blockId?: string | null;
|
|
25
|
-
blockKind?:
|
|
26
|
+
blockKind?: BlockKind;
|
|
26
27
|
}>;
|
|
27
28
|
type BlockProps = {
|
|
28
|
-
blockKind:
|
|
29
|
+
blockKind: BlockKind;
|
|
29
30
|
blockId?: string | null;
|
|
30
31
|
content: Record<string, unknown>;
|
|
31
32
|
theme: Theme;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBUCJWG6Gjs = require('../chunk-BUCJWG6G.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('../chunk-
|
|
7
|
+
var _chunkP6CDRJN3js = require('../chunk-P6CDRJN3.js');
|
|
8
|
+
require('../chunk-IT5ICP43.js');
|
|
9
9
|
require('../chunk-HOY77YBF.js');
|
|
10
10
|
require('../chunk-EGTDJ4PL.js');
|
|
11
11
|
require('../chunk-DGUM43GV.js');
|
|
@@ -13,5 +13,5 @@ require('../chunk-DGUM43GV.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.Block =
|
|
16
|
+
exports.Block = _chunkBUCJWG6Gjs.Block; exports.Layout = _chunkP6CDRJN3js.Layout; exports.Page = _chunkP6CDRJN3js.Page;
|
|
17
17
|
//# sourceMappingURL=server.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Block
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-XK2YIISA.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Layout,
|
|
6
6
|
Page
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-SFQ7VF3G.mjs";
|
|
8
|
+
import "../chunk-NKXS4TBK.mjs";
|
|
9
9
|
import "../chunk-7DS4Q3GA.mjs";
|
|
10
10
|
import "../chunk-USQF2XTU.mjs";
|
|
11
11
|
import "../chunk-BJTO5JO5.mjs";
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
export { e as BlockOverrideComponent, B as BlockOverrides, L as LoadPageParams, a as LoadPageResult, b as Page, P as PageProps, c as PageRenderer, d as RouteMap, S as SystemBlockComponentProps, T as ThemeTokens, l as loadPage } from './loadPage-
|
|
2
|
-
export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-
|
|
1
|
+
export { e as BlockOverrideComponent, B as BlockOverrides, L as LoadPageParams, a as LoadPageResult, b as Page, P as PageProps, c as PageRenderer, d as RouteMap, S as SystemBlockComponentProps, T as ThemeTokens, l as loadPage } from './loadPage-mavT3Jae.mjs';
|
|
2
|
+
export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-B_zUr9ci.mjs';
|
|
3
3
|
export { Block, BlockProps } from './rendering/server.mjs';
|
|
4
|
-
export { C as ContentEntryData, L as LoadContentParams, b as LoadContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-
|
|
5
|
-
export { C as CustomLinkValue, E as ExternalLinkValue, I as InternalLinkValue, d as LinkValue, c as SiteFooterContent, S as SiteHeaderContent, T as Theme } from './types-
|
|
4
|
+
export { C as ContentEntryData, L as LoadContentParams, b as LoadContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-C_FipaAC.mjs';
|
|
5
|
+
export { C as CustomLinkValue, E as ExternalLinkValue, I as InternalLinkValue, d as LinkValue, c as SiteFooterContent, S as SiteHeaderContent, T as Theme } from './types-BA-J9K8r.mjs';
|
|
6
6
|
export { P as PageOutline } from './schema-Bpy9N5ZI.mjs';
|
|
7
|
-
import { G as GradientConfig, M as Media } from './components-
|
|
8
|
-
export { e as BackgroundInput, B as BodyTextContent, H as HeroContent, a as HeroMedia, f as ResolvedBackground, R as RichText, c as RichTextPrimitiveProps, S as SectionBackground, g as SectionBackgroundProps, T as TipTapNode, b as buildThemeRuntime, d as resolveBackground, r as resolveImageUrl } from './components-
|
|
9
|
-
import './types-
|
|
7
|
+
import { G as GradientConfig, M as Media } from './components-Bo3LPpVb.mjs';
|
|
8
|
+
export { e as BackgroundInput, B as BodyTextContent, H as HeroContent, a as HeroMedia, f as ResolvedBackground, R as RichText, c as RichTextPrimitiveProps, S as SectionBackground, g as SectionBackgroundProps, T as TipTapNode, b as buildThemeRuntime, d as resolveBackground, r as resolveImageUrl } from './components-Bo3LPpVb.mjs';
|
|
9
|
+
import './types-BC9eB2KH.mjs';
|
|
10
10
|
import 'react/jsx-runtime';
|
|
11
11
|
import 'react';
|
|
12
12
|
import 'zod';
|
|
13
|
-
import './types-
|
|
13
|
+
import './types-CbagRQ_7.mjs';
|
|
14
|
+
import './blockKinds-B6MWzNWp.mjs';
|
|
14
15
|
import '@riverbankcms/site-renderer';
|
|
15
16
|
import '@riverbankcms/ai';
|
|
16
17
|
import '@riverbankcms/media-storage-supabase';
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
export { e as BlockOverrideComponent, B as BlockOverrides, L as LoadPageParams, a as LoadPageResult, b as Page, P as PageProps, c as PageRenderer, d as RouteMap, S as SystemBlockComponentProps, T as ThemeTokens, l as loadPage } from './loadPage-
|
|
2
|
-
export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-
|
|
1
|
+
export { e as BlockOverrideComponent, B as BlockOverrides, L as LoadPageParams, a as LoadPageResult, b as Page, P as PageProps, c as PageRenderer, d as RouteMap, S as SystemBlockComponentProps, T as ThemeTokens, l as loadPage } from './loadPage-naVvoua8.js';
|
|
2
|
+
export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-CHG77dhK.js';
|
|
3
3
|
export { Block, BlockProps } from './rendering/server.js';
|
|
4
|
-
export { C as ContentEntryData, L as LoadContentParams, b as LoadContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-
|
|
5
|
-
export { C as CustomLinkValue, E as ExternalLinkValue, I as InternalLinkValue, d as LinkValue, c as SiteFooterContent, S as SiteHeaderContent, T as Theme } from './types-
|
|
4
|
+
export { C as ContentEntryData, L as LoadContentParams, b as LoadContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-C2SwqmXy.js';
|
|
5
|
+
export { C as CustomLinkValue, E as ExternalLinkValue, I as InternalLinkValue, d as LinkValue, c as SiteFooterContent, S as SiteHeaderContent, T as Theme } from './types-5XdVD2J1.js';
|
|
6
6
|
export { P as PageOutline } from './schema-Bpy9N5ZI.js';
|
|
7
|
-
import { G as GradientConfig, M as Media } from './components-
|
|
8
|
-
export { e as BackgroundInput, B as BodyTextContent, H as HeroContent, a as HeroMedia, f as ResolvedBackground, R as RichText, c as RichTextPrimitiveProps, S as SectionBackground, g as SectionBackgroundProps, T as TipTapNode, b as buildThemeRuntime, d as resolveBackground, r as resolveImageUrl } from './components-
|
|
9
|
-
import './types-
|
|
7
|
+
import { G as GradientConfig, M as Media } from './components-ClFs4PUa.js';
|
|
8
|
+
export { e as BackgroundInput, B as BodyTextContent, H as HeroContent, a as HeroMedia, f as ResolvedBackground, R as RichText, c as RichTextPrimitiveProps, S as SectionBackground, g as SectionBackgroundProps, T as TipTapNode, b as buildThemeRuntime, d as resolveBackground, r as resolveImageUrl } from './components-ClFs4PUa.js';
|
|
9
|
+
import './types-CAnC529E.js';
|
|
10
10
|
import 'react/jsx-runtime';
|
|
11
11
|
import 'react';
|
|
12
12
|
import 'zod';
|
|
13
|
-
import './types-
|
|
13
|
+
import './types-DuQCNVV0.js';
|
|
14
|
+
import './blockKinds-B6MWzNWp.js';
|
|
14
15
|
import '@riverbankcms/site-renderer';
|
|
15
16
|
import '@riverbankcms/ai';
|
|
16
17
|
import '@riverbankcms/media-storage-supabase';
|
package/dist/server/rendering.js
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
var _chunkTO7FD6TQjs = require('./chunk-TO7FD6TQ.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkSWPHIUVEjs = require('./chunk-SWPHIUVE.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkBUCJWG6Gjs = require('./chunk-BUCJWG6G.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkP6CDRJN3js = require('./chunk-P6CDRJN3.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -20,8 +20,8 @@ var _chunkINWKF3ICjs = require('./chunk-INWKF3IC.js');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
24
|
-
require('./chunk-
|
|
23
|
+
var _chunkIT5ICP43js = require('./chunk-IT5ICP43.js');
|
|
24
|
+
require('./chunk-Y7347JMZ.js');
|
|
25
25
|
require('./chunk-HOY77YBF.js');
|
|
26
26
|
require('./chunk-EGTDJ4PL.js');
|
|
27
27
|
require('./chunk-DGUM43GV.js');
|
|
@@ -39,5 +39,5 @@ require('./chunk-DGUM43GV.js');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
exports.Block =
|
|
42
|
+
exports.Block = _chunkBUCJWG6Gjs.Block; exports.Layout = _chunkP6CDRJN3js.Layout; exports.Page = _chunkP6CDRJN3js.Page; exports.PageRenderer = _chunkIT5ICP43js.PageRenderer; exports.RichText = _chunkIT5ICP43js.RichText; exports.SectionBackground = _chunkIT5ICP43js.SectionBackground; exports.buildThemeRuntime = _chunkIT5ICP43js.buildThemeRuntime; exports.isEntryContent = _chunkTO7FD6TQjs.isEntryContent; exports.isPageContent = _chunkTO7FD6TQjs.isPageContent; exports.loadContent = _chunkTO7FD6TQjs.loadContent; exports.loadPage = _chunkSWPHIUVEjs.loadPage; exports.resolveBackground = _chunkIT5ICP43js.resolveBackground; exports.resolveImageUrl = _chunkIT5ICP43js.resolveImageUrl;
|
|
43
43
|
//# sourceMappingURL=rendering.js.map
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
} from "./chunk-OP2GHK27.mjs";
|
|
6
6
|
import {
|
|
7
7
|
loadPage
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZEAJW6T3.mjs";
|
|
9
9
|
import {
|
|
10
10
|
Block
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XK2YIISA.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Layout,
|
|
14
14
|
Page
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SFQ7VF3G.mjs";
|
|
16
16
|
import {
|
|
17
17
|
PageRenderer,
|
|
18
18
|
RichText,
|
|
@@ -20,8 +20,8 @@ import {
|
|
|
20
20
|
buildThemeRuntime,
|
|
21
21
|
resolveBackground,
|
|
22
22
|
resolveImageUrl
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-NKXS4TBK.mjs";
|
|
24
|
+
import "./chunk-A2FZMRDW.mjs";
|
|
25
25
|
import "./chunk-7DS4Q3GA.mjs";
|
|
26
26
|
import "./chunk-USQF2XTU.mjs";
|
|
27
27
|
import "./chunk-BJTO5JO5.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as RiverbankClient } from './types-
|
|
2
|
-
import { a as LoadPageResult } from './loadPage-
|
|
3
|
-
import './types-
|
|
1
|
+
import { R as RiverbankClient } from './types-BC9eB2KH.mjs';
|
|
2
|
+
import { a as LoadPageResult } from './loadPage-mavT3Jae.mjs';
|
|
3
|
+
import './types-BA-J9K8r.mjs';
|
|
4
4
|
import '@riverbankcms/ai';
|
|
5
5
|
import './schema-Bpy9N5ZI.mjs';
|
|
6
6
|
import 'zod';
|
|
@@ -8,7 +8,8 @@ import '@riverbankcms/media-storage-supabase';
|
|
|
8
8
|
import '@riverbankcms/db';
|
|
9
9
|
import 'react/jsx-runtime';
|
|
10
10
|
import 'react';
|
|
11
|
-
import './types-
|
|
11
|
+
import './types-CbagRQ_7.mjs';
|
|
12
|
+
import './blockKinds-B6MWzNWp.mjs';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Route resolution helper for dynamic page routing
|
package/dist/server/routing.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as RiverbankClient } from './types-
|
|
2
|
-
import { a as LoadPageResult } from './loadPage-
|
|
3
|
-
import './types-
|
|
1
|
+
import { R as RiverbankClient } from './types-CAnC529E.js';
|
|
2
|
+
import { a as LoadPageResult } from './loadPage-naVvoua8.js';
|
|
3
|
+
import './types-5XdVD2J1.js';
|
|
4
4
|
import '@riverbankcms/ai';
|
|
5
5
|
import './schema-Bpy9N5ZI.js';
|
|
6
6
|
import 'zod';
|
|
@@ -8,7 +8,8 @@ import '@riverbankcms/media-storage-supabase';
|
|
|
8
8
|
import '@riverbankcms/db';
|
|
9
9
|
import 'react/jsx-runtime';
|
|
10
10
|
import 'react';
|
|
11
|
-
import './types-
|
|
11
|
+
import './types-DuQCNVV0.js';
|
|
12
|
+
import './blockKinds-B6MWzNWp.js';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Route resolution helper for dynamic page routing
|
package/dist/server/routing.js
CHANGED
|
@@ -10,7 +10,7 @@ async function resolveRoute(params) {
|
|
|
10
10
|
preview
|
|
11
11
|
});
|
|
12
12
|
if (pageResponse) {
|
|
13
|
-
const { loadPage } = await Promise.resolve().then(() => _interopRequireWildcard(require("./loadPage-
|
|
13
|
+
const { loadPage } = await Promise.resolve().then(() => _interopRequireWildcard(require("./loadPage-DUHBXDEW.js")));
|
|
14
14
|
const pageData = await loadPage({
|
|
15
15
|
client,
|
|
16
16
|
siteId,
|
package/dist/server/routing.mjs
CHANGED
|
@@ -10,7 +10,7 @@ async function resolveRoute(params) {
|
|
|
10
10
|
preview
|
|
11
11
|
});
|
|
12
12
|
if (pageResponse) {
|
|
13
|
-
const { loadPage } = await import("./loadPage-
|
|
13
|
+
const { loadPage } = await import("./loadPage-LYVKY3WZ.mjs");
|
|
14
14
|
const pageData = await loadPage({
|
|
15
15
|
client,
|
|
16
16
|
siteId,
|
package/dist/server/server.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { c as createRiverbankClient } from './index-
|
|
2
|
-
export { E as EntriesResponse, b as EntryResponse, P as PageResponse, R as RiverbankClient, a as RiverbankClientConfig, S as SiteResponse } from './types-
|
|
3
|
-
export { L as LoadPageParams, a as LoadPageResult, R as RuntimeSdkConfig, l as loadPage } from './loadPage-
|
|
4
|
-
export { C as ContentEntryData, E as EntryContentResult, L as LoadContentParams, b as LoadContentResult, P as PageContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-
|
|
5
|
-
import './types-
|
|
1
|
+
export { c as createRiverbankClient } from './index-Dj7VKH34.mjs';
|
|
2
|
+
export { E as EntriesResponse, b as EntryResponse, P as PageResponse, R as RiverbankClient, a as RiverbankClientConfig, S as SiteResponse } from './types-BC9eB2KH.mjs';
|
|
3
|
+
export { L as LoadPageParams, a as LoadPageResult, R as RuntimeSdkConfig, l as loadPage } from './loadPage-mavT3Jae.mjs';
|
|
4
|
+
export { C as ContentEntryData, E as EntryContentResult, L as LoadContentParams, b as LoadContentResult, P as PageContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-C_FipaAC.mjs';
|
|
5
|
+
import './types-BA-J9K8r.mjs';
|
|
6
6
|
import '@riverbankcms/ai';
|
|
7
7
|
import './schema-Bpy9N5ZI.mjs';
|
|
8
8
|
import 'zod';
|
|
@@ -10,4 +10,5 @@ import '@riverbankcms/media-storage-supabase';
|
|
|
10
10
|
import '@riverbankcms/db';
|
|
11
11
|
import 'react/jsx-runtime';
|
|
12
12
|
import 'react';
|
|
13
|
-
import './types-
|
|
13
|
+
import './types-CbagRQ_7.mjs';
|
|
14
|
+
import './blockKinds-B6MWzNWp.mjs';
|
package/dist/server/server.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { c as createRiverbankClient } from './index-
|
|
2
|
-
export { E as EntriesResponse, b as EntryResponse, P as PageResponse, R as RiverbankClient, a as RiverbankClientConfig, S as SiteResponse } from './types-
|
|
3
|
-
export { L as LoadPageParams, a as LoadPageResult, R as RuntimeSdkConfig, l as loadPage } from './loadPage-
|
|
4
|
-
export { C as ContentEntryData, E as EntryContentResult, L as LoadContentParams, b as LoadContentResult, P as PageContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-
|
|
5
|
-
import './types-
|
|
1
|
+
export { c as createRiverbankClient } from './index-DbSfrRA0.js';
|
|
2
|
+
export { E as EntriesResponse, b as EntryResponse, P as PageResponse, R as RiverbankClient, a as RiverbankClientConfig, S as SiteResponse } from './types-CAnC529E.js';
|
|
3
|
+
export { L as LoadPageParams, a as LoadPageResult, R as RuntimeSdkConfig, l as loadPage } from './loadPage-naVvoua8.js';
|
|
4
|
+
export { C as ContentEntryData, E as EntryContentResult, L as LoadContentParams, b as LoadContentResult, P as PageContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-C2SwqmXy.js';
|
|
5
|
+
import './types-5XdVD2J1.js';
|
|
6
6
|
import '@riverbankcms/ai';
|
|
7
7
|
import './schema-Bpy9N5ZI.js';
|
|
8
8
|
import 'zod';
|
|
@@ -10,4 +10,5 @@ import '@riverbankcms/media-storage-supabase';
|
|
|
10
10
|
import '@riverbankcms/db';
|
|
11
11
|
import 'react/jsx-runtime';
|
|
12
12
|
import 'react';
|
|
13
|
-
import './types-
|
|
13
|
+
import './types-DuQCNVV0.js';
|
|
14
|
+
import './blockKinds-B6MWzNWp.js';
|
package/dist/server/server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkR5B6IOFQjs = require('./chunk-R5B6IOFQ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -8,8 +8,8 @@ var _chunkUFVCBGBYjs = require('./chunk-UFVCBGBY.js');
|
|
|
8
8
|
var _chunkTO7FD6TQjs = require('./chunk-TO7FD6TQ.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
12
|
-
require('./chunk-
|
|
11
|
+
var _chunkSWPHIUVEjs = require('./chunk-SWPHIUVE.js');
|
|
12
|
+
require('./chunk-Y7347JMZ.js');
|
|
13
13
|
require('./chunk-HOY77YBF.js');
|
|
14
14
|
require('./chunk-EGTDJ4PL.js');
|
|
15
15
|
require('./chunk-DGUM43GV.js');
|
|
@@ -19,5 +19,5 @@ require('./chunk-DGUM43GV.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.createRiverbankClient =
|
|
22
|
+
exports.createRiverbankClient = _chunkR5B6IOFQjs.createRiverbankClient; exports.isEntryContent = _chunkTO7FD6TQjs.isEntryContent; exports.isPageContent = _chunkTO7FD6TQjs.isPageContent; exports.loadContent = _chunkTO7FD6TQjs.loadContent; exports.loadPage = _chunkSWPHIUVEjs.loadPage;
|
|
23
23
|
//# sourceMappingURL=server.js.map
|
package/dist/server/server.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRiverbankClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-N3PX76AP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isEntryContent,
|
|
6
6
|
isPageContent,
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
} from "./chunk-OP2GHK27.mjs";
|
|
9
9
|
import {
|
|
10
10
|
loadPage
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-ZEAJW6T3.mjs";
|
|
12
|
+
import "./chunk-A2FZMRDW.mjs";
|
|
13
13
|
import "./chunk-7DS4Q3GA.mjs";
|
|
14
14
|
import "./chunk-USQF2XTU.mjs";
|
|
15
15
|
import "./chunk-BJTO5JO5.mjs";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkIT5ICP43js = require('./chunk-IT5ICP43.js');
|
|
9
9
|
require('./chunk-EGTDJ4PL.js');
|
|
10
10
|
require('./chunk-DGUM43GV.js');
|
|
11
11
|
|
|
@@ -147,7 +147,7 @@ ${cssLines}
|
|
|
147
147
|
}
|
|
148
148
|
function generateButtonsCss(config, corners, shadows) {
|
|
149
149
|
const buttonConfig = _optionalChain([config, 'access', _7 => _7.components, 'optionalAccess', _8 => _8.buttons]);
|
|
150
|
-
let variants =
|
|
150
|
+
let variants = _chunkIT5ICP43js.getDefaultButtonVariants.call(void 0, );
|
|
151
151
|
if (typeof buttonConfig === "object" && buttonConfig.variants) {
|
|
152
152
|
const requestedIds = new Set(buttonConfig.variants);
|
|
153
153
|
variants = variants.filter((v) => requestedIds.has(v.id));
|
|
@@ -159,11 +159,11 @@ function generateButtonsCss(config, corners, shadows) {
|
|
|
159
159
|
fontWeight: 500,
|
|
160
160
|
textTransform: "none"
|
|
161
161
|
};
|
|
162
|
-
return
|
|
162
|
+
return _chunkIT5ICP43js.generateButtonCoreCss.call(void 0, SCOPE_ID, variants, settings);
|
|
163
163
|
}
|
|
164
164
|
function generateCardsCss(config, corners, shadows) {
|
|
165
165
|
const cardConfig = _optionalChain([config, 'access', _9 => _9.components, 'optionalAccess', _10 => _10.cards]);
|
|
166
|
-
let variants =
|
|
166
|
+
let variants = _chunkIT5ICP43js.getDefaultCardVariants.call(void 0, );
|
|
167
167
|
if (typeof cardConfig === "object" && cardConfig.variants) {
|
|
168
168
|
const requestedIds = new Set(cardConfig.variants);
|
|
169
169
|
variants = variants.filter((v) => requestedIds.has(v.id));
|
|
@@ -173,13 +173,13 @@ function generateCardsCss(config, corners, shadows) {
|
|
|
173
173
|
shadow: shadows,
|
|
174
174
|
borderWidth: "thin"
|
|
175
175
|
};
|
|
176
|
-
return
|
|
176
|
+
return _chunkIT5ICP43js.generateCardCoreCss.call(void 0, SCOPE_ID, variants, settings);
|
|
177
177
|
}
|
|
178
178
|
function generateInputsCss(config, corners, shadows) {
|
|
179
|
-
const settings =
|
|
179
|
+
const settings = _chunkIT5ICP43js.getDefaultInputSettings.call(void 0, );
|
|
180
180
|
settings.corners = corners;
|
|
181
181
|
settings.shadow = shadows === "none" ? "none" : "low";
|
|
182
|
-
return
|
|
182
|
+
return _chunkIT5ICP43js.generateInputCoreCss.call(void 0, SCOPE_ID, settings);
|
|
183
183
|
}
|
|
184
184
|
function generateOverrideCss(overrides) {
|
|
185
185
|
const chunks = [];
|
|
@@ -3833,6 +3833,7 @@ type ApiKeyRecord = {
|
|
|
3833
3833
|
id: string;
|
|
3834
3834
|
name: string;
|
|
3835
3835
|
keyPrefix: string;
|
|
3836
|
+
keyHint: string | null;
|
|
3836
3837
|
keyType: ApiKeyType;
|
|
3837
3838
|
createdAt: string;
|
|
3838
3839
|
lastUsedAt: string | null;
|
|
@@ -3847,6 +3848,7 @@ type PreviewKeyRecord = {
|
|
|
3847
3848
|
id: string;
|
|
3848
3849
|
name: string;
|
|
3849
3850
|
keyPrefix: string;
|
|
3851
|
+
keyHint: string | null;
|
|
3850
3852
|
createdAt: string;
|
|
3851
3853
|
lastUsedAt: string | null;
|
|
3852
3854
|
};
|
|
@@ -3833,6 +3833,7 @@ type ApiKeyRecord = {
|
|
|
3833
3833
|
id: string;
|
|
3834
3834
|
name: string;
|
|
3835
3835
|
keyPrefix: string;
|
|
3836
|
+
keyHint: string | null;
|
|
3836
3837
|
keyType: ApiKeyType;
|
|
3837
3838
|
createdAt: string;
|
|
3838
3839
|
lastUsedAt: string | null;
|
|
@@ -3847,6 +3848,7 @@ type PreviewKeyRecord = {
|
|
|
3847
3848
|
id: string;
|
|
3848
3849
|
name: string;
|
|
3849
3850
|
keyPrefix: string;
|
|
3851
|
+
keyHint: string | null;
|
|
3850
3852
|
createdAt: string;
|
|
3851
3853
|
lastUsedAt: string | null;
|
|
3852
3854
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as APIEndpoints } from './types-
|
|
1
|
+
import { A as APIEndpoints } from './types-BA-J9K8r.mjs';
|
|
2
2
|
|
|
3
3
|
type SiteResponse = NonNullable<APIEndpoints['getSite']['response']>;
|
|
4
4
|
type PageResponse = NonNullable<APIEndpoints['getContentByPath']['response']>;
|
|
@@ -7,6 +7,50 @@ type EntryResponse = NonNullable<APIEndpoints['getPublishedEntryPreview']['respo
|
|
|
7
7
|
type PublicFormResponse = NonNullable<APIEndpoints['getPublicFormById']['response']>;
|
|
8
8
|
type PublicBookingServicesResponse = NonNullable<APIEndpoints['getPublicBookingServices']['response']>;
|
|
9
9
|
type PublicEventsResponse = NonNullable<APIEndpoints['listPublicEvents']['response']>;
|
|
10
|
+
/**
|
|
11
|
+
* Pagination metadata returned when `includeMeta: true`
|
|
12
|
+
*/
|
|
13
|
+
interface PaginationMeta {
|
|
14
|
+
/** Total number of entries matching the query (estimated if hasMore is true) */
|
|
15
|
+
total: number;
|
|
16
|
+
/** Whether there are more entries after this page */
|
|
17
|
+
hasMore: boolean;
|
|
18
|
+
/** Number of entries per page */
|
|
19
|
+
limit: number;
|
|
20
|
+
/** Number of entries skipped (offset) */
|
|
21
|
+
offset: number;
|
|
22
|
+
/** Total number of pages (estimated if hasMore is true) */
|
|
23
|
+
totalPages: number;
|
|
24
|
+
/** Current page number (1-indexed) */
|
|
25
|
+
currentPage: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Response type when includeMeta is true - includes pagination metadata
|
|
29
|
+
*/
|
|
30
|
+
type EntriesResponseWithMeta = {
|
|
31
|
+
entries: EntriesResponse['entries'];
|
|
32
|
+
} & PaginationMeta;
|
|
33
|
+
/**
|
|
34
|
+
* Base parameters for getEntries - shared across all overloads
|
|
35
|
+
*/
|
|
36
|
+
interface GetEntriesBaseParams {
|
|
37
|
+
/** The site ID */
|
|
38
|
+
siteId: string;
|
|
39
|
+
/** The content type key (e.g., 'blog-post', 'product') */
|
|
40
|
+
contentType: string;
|
|
41
|
+
/** Maximum number of entries to return (default: 10, max: 50) */
|
|
42
|
+
limit?: number;
|
|
43
|
+
/** Number of entries to skip for pagination */
|
|
44
|
+
offset?: number;
|
|
45
|
+
/** Sort order for entries. 'order' uses custom ordering (default behavior). */
|
|
46
|
+
order?: 'newest' | 'oldest' | 'title' | 'order';
|
|
47
|
+
/** If true, includes draft entries (requires API key with site access) */
|
|
48
|
+
preview?: boolean;
|
|
49
|
+
/** Selection mode: 'query' for automatic, 'manual' for specific entry IDs */
|
|
50
|
+
mode?: 'query' | 'manual';
|
|
51
|
+
/** Entry IDs to fetch when mode is 'manual' */
|
|
52
|
+
entryIds?: string[];
|
|
53
|
+
}
|
|
10
54
|
/**
|
|
11
55
|
* Configuration for creating a Riverbank CMS client
|
|
12
56
|
*/
|
|
@@ -66,11 +110,13 @@ interface RiverbankClient {
|
|
|
66
110
|
*
|
|
67
111
|
* @param params.siteId - The site ID
|
|
68
112
|
* @param params.contentType - The content type key (e.g., 'blog-post', 'product')
|
|
69
|
-
* @param params.limit - Maximum number of entries to return
|
|
113
|
+
* @param params.limit - Maximum number of entries to return (default: 10, max: 50)
|
|
114
|
+
* @param params.offset - Number of entries to skip for pagination (default: 0)
|
|
70
115
|
* @param params.order - Sort order: 'newest' (published_at desc) or 'oldest' (published_at asc)
|
|
71
116
|
* @param params.preview - If true, includes draft entries (requires API key with site access)
|
|
72
117
|
* @param params.mode - 'query' for automatic fetching, 'manual' for specific entry IDs
|
|
73
118
|
* @param params.entryIds - Array of entry IDs to fetch (only used when mode is 'manual')
|
|
119
|
+
* @param params.includeMeta - If true, returns pagination metadata with the response
|
|
74
120
|
*
|
|
75
121
|
* @example
|
|
76
122
|
* ```ts
|
|
@@ -82,12 +128,15 @@ interface RiverbankClient {
|
|
|
82
128
|
* order: 'newest',
|
|
83
129
|
* });
|
|
84
130
|
*
|
|
85
|
-
* // Fetch
|
|
86
|
-
* const
|
|
131
|
+
* // Fetch page 3 with pagination metadata
|
|
132
|
+
* const page3 = await client.getEntries({
|
|
87
133
|
* siteId: 'site-id',
|
|
88
134
|
* contentType: 'blog-post',
|
|
89
|
-
*
|
|
135
|
+
* limit: 10,
|
|
136
|
+
* offset: 20,
|
|
137
|
+
* includeMeta: true,
|
|
90
138
|
* });
|
|
139
|
+
* // page3.entries, page3.total, page3.hasMore, page3.currentPage
|
|
91
140
|
*
|
|
92
141
|
* // Fetch specific entries by ID (manual mode)
|
|
93
142
|
* const specific = await client.getEntries({
|
|
@@ -98,18 +147,17 @@ interface RiverbankClient {
|
|
|
98
147
|
* });
|
|
99
148
|
* ```
|
|
100
149
|
*/
|
|
101
|
-
getEntries(params: {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
limit?: number;
|
|
105
|
-
/** Sort order for entries. 'order' uses custom ordering (default behavior). */
|
|
106
|
-
order?: 'newest' | 'oldest' | 'title' | 'order';
|
|
107
|
-
preview?: boolean;
|
|
108
|
-
/** Selection mode: 'query' for automatic, 'manual' for specific entry IDs */
|
|
109
|
-
mode?: 'query' | 'manual';
|
|
110
|
-
/** Entry IDs to fetch when mode is 'manual' */
|
|
111
|
-
entryIds?: string[];
|
|
150
|
+
getEntries(params: GetEntriesBaseParams & {
|
|
151
|
+
/** If true, returns pagination metadata with the response */
|
|
152
|
+
includeMeta?: false;
|
|
112
153
|
}): Promise<EntriesResponse>;
|
|
154
|
+
getEntries(params: GetEntriesBaseParams & {
|
|
155
|
+
/** If true, returns pagination metadata with the response */
|
|
156
|
+
includeMeta: true;
|
|
157
|
+
}): Promise<EntriesResponseWithMeta>;
|
|
158
|
+
getEntries(params: GetEntriesBaseParams & {
|
|
159
|
+
includeMeta?: boolean;
|
|
160
|
+
}): Promise<EntriesResponse | EntriesResponseWithMeta>;
|
|
113
161
|
/**
|
|
114
162
|
* Fetch a specific content entry by slug
|
|
115
163
|
*/
|
|
@@ -147,4 +195,4 @@ interface RiverbankClient {
|
|
|
147
195
|
clearCache(): void;
|
|
148
196
|
}
|
|
149
197
|
|
|
150
|
-
export type { EntriesResponse as E, PageResponse as P, RiverbankClient as R, SiteResponse as S, RiverbankClientConfig as a, EntryResponse as b };
|
|
198
|
+
export type { EntriesResponse as E, PageResponse as P, RiverbankClient as R, SiteResponse as S, RiverbankClientConfig as a, EntryResponse as b, EntriesResponseWithMeta as c, PaginationMeta as d };
|