@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
package/dist/server/config.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { R as RiverbankSiteConfig } from './types-
|
|
2
|
-
export { B as BlockFieldConfig,
|
|
3
|
-
export { ValidatedRiverbankSiteConfig, ValidatedSdkCustomBlock, blockFieldConfigSchema, blockFieldExtensionSchema, blockFieldExtensionsSchema, blockFieldOptionsSchema, containerAlignmentSchema, containerMaxWidthSchema, containerOptionsSchema, fieldSelectOptionSchema, riverbankSiteConfigSchema, sdkCustomBlockSchema, sdkThemeConfigSchema, sdkThemePaletteSchema, sectionBackgroundSchema, sectionOptionsSchema, sectionSpacingSchema, siteStyleConfigSchema } from './
|
|
1
|
+
import { R as RiverbankSiteConfig, C as ContentConfig } from './types-CYfHxUhe.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-CYfHxUhe.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-hg1sqhrt.mjs';
|
|
4
|
+
export { B as BlockKind, C as CustomBlockKind, S as SYSTEM_BLOCK_KINDS, a as SystemBlockKind } from './blockKinds-B6MWzNWp.mjs';
|
|
4
5
|
export { F as FieldDefinition, S as SdkCustomBlock } from './schema-Bpy9N5ZI.mjs';
|
|
5
6
|
import 'zod';
|
|
6
7
|
|
|
@@ -34,5 +35,43 @@ import 'zod';
|
|
|
34
35
|
* ```
|
|
35
36
|
*/
|
|
36
37
|
declare function defineConfig(config: RiverbankSiteConfig): RiverbankSiteConfig;
|
|
38
|
+
/**
|
|
39
|
+
* Helper function to define content scaffolding configuration with type checking.
|
|
40
|
+
*
|
|
41
|
+
* This can be used to define content configuration in a separate file,
|
|
42
|
+
* which is then imported into riverbank.config.ts.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```typescript
|
|
46
|
+
* // content.config.ts
|
|
47
|
+
* import { defineContentConfig } from '@riverbankcms/sdk/config';
|
|
48
|
+
*
|
|
49
|
+
* export const contentConfig = defineContentConfig({
|
|
50
|
+
* contentTypes: [
|
|
51
|
+
* {
|
|
52
|
+
* key: 'testimonial',
|
|
53
|
+
* name: 'Testimonial',
|
|
54
|
+
* hasPages: false,
|
|
55
|
+
* fields: [
|
|
56
|
+
* { id: 'quote', type: 'richText', label: 'Quote', required: true },
|
|
57
|
+
* ],
|
|
58
|
+
* },
|
|
59
|
+
* ],
|
|
60
|
+
* pages: [
|
|
61
|
+
* { identifier: 'home', title: 'Home', path: '/' },
|
|
62
|
+
* ],
|
|
63
|
+
* });
|
|
64
|
+
*
|
|
65
|
+
* // riverbank.config.ts
|
|
66
|
+
* import { defineConfig } from '@riverbankcms/sdk/config';
|
|
67
|
+
* import { contentConfig } from './content.config';
|
|
68
|
+
*
|
|
69
|
+
* export default defineConfig({
|
|
70
|
+
* siteId: '...',
|
|
71
|
+
* content: contentConfig,
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
declare function defineContentConfig(config: ContentConfig): ContentConfig;
|
|
37
76
|
|
|
38
|
-
export { RiverbankSiteConfig, defineConfig };
|
|
77
|
+
export { ContentConfig, RiverbankSiteConfig, defineConfig, defineContentConfig };
|
package/dist/server/config.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { R as RiverbankSiteConfig } from './types-
|
|
2
|
-
export { B as BlockFieldConfig,
|
|
3
|
-
export { ValidatedRiverbankSiteConfig, ValidatedSdkCustomBlock, blockFieldConfigSchema, blockFieldExtensionSchema, blockFieldExtensionsSchema, blockFieldOptionsSchema, containerAlignmentSchema, containerMaxWidthSchema, containerOptionsSchema, fieldSelectOptionSchema, riverbankSiteConfigSchema, sdkCustomBlockSchema, sdkThemeConfigSchema, sdkThemePaletteSchema, sectionBackgroundSchema, sectionOptionsSchema, sectionSpacingSchema, siteStyleConfigSchema } from './
|
|
1
|
+
import { R as RiverbankSiteConfig, C as ContentConfig } from './types-CMqVHYLG.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-CMqVHYLG.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-C7W2Fe0i.js';
|
|
4
|
+
export { B as BlockKind, C as CustomBlockKind, S as SYSTEM_BLOCK_KINDS, a as SystemBlockKind } from './blockKinds-B6MWzNWp.js';
|
|
4
5
|
export { F as FieldDefinition, S as SdkCustomBlock } from './schema-Bpy9N5ZI.js';
|
|
5
6
|
import 'zod';
|
|
6
7
|
|
|
@@ -34,5 +35,43 @@ import 'zod';
|
|
|
34
35
|
* ```
|
|
35
36
|
*/
|
|
36
37
|
declare function defineConfig(config: RiverbankSiteConfig): RiverbankSiteConfig;
|
|
38
|
+
/**
|
|
39
|
+
* Helper function to define content scaffolding configuration with type checking.
|
|
40
|
+
*
|
|
41
|
+
* This can be used to define content configuration in a separate file,
|
|
42
|
+
* which is then imported into riverbank.config.ts.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```typescript
|
|
46
|
+
* // content.config.ts
|
|
47
|
+
* import { defineContentConfig } from '@riverbankcms/sdk/config';
|
|
48
|
+
*
|
|
49
|
+
* export const contentConfig = defineContentConfig({
|
|
50
|
+
* contentTypes: [
|
|
51
|
+
* {
|
|
52
|
+
* key: 'testimonial',
|
|
53
|
+
* name: 'Testimonial',
|
|
54
|
+
* hasPages: false,
|
|
55
|
+
* fields: [
|
|
56
|
+
* { id: 'quote', type: 'richText', label: 'Quote', required: true },
|
|
57
|
+
* ],
|
|
58
|
+
* },
|
|
59
|
+
* ],
|
|
60
|
+
* pages: [
|
|
61
|
+
* { identifier: 'home', title: 'Home', path: '/' },
|
|
62
|
+
* ],
|
|
63
|
+
* });
|
|
64
|
+
*
|
|
65
|
+
* // riverbank.config.ts
|
|
66
|
+
* import { defineConfig } from '@riverbankcms/sdk/config';
|
|
67
|
+
* import { contentConfig } from './content.config';
|
|
68
|
+
*
|
|
69
|
+
* export default defineConfig({
|
|
70
|
+
* siteId: '...',
|
|
71
|
+
* content: contentConfig,
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
declare function defineContentConfig(config: ContentConfig): ContentConfig;
|
|
37
76
|
|
|
38
|
-
export { RiverbankSiteConfig, defineConfig };
|
|
77
|
+
export { ContentConfig, RiverbankSiteConfig, defineConfig, defineContentConfig };
|
package/dist/server/config.js
CHANGED
|
@@ -15,8 +15,19 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
var _chunkZIM53VP6js = require('./chunk-ZIM53VP6.js');
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
var _chunkGERCMTPQjs = require('./chunk-GERCMTPQ.js');
|
|
30
|
+
require('./chunk-IT5ICP43.js');
|
|
20
31
|
require('./chunk-HOY77YBF.js');
|
|
21
32
|
require('./chunk-EGTDJ4PL.js');
|
|
22
33
|
require('./chunk-DGUM43GV.js');
|
|
@@ -25,6 +36,19 @@ require('./chunk-DGUM43GV.js');
|
|
|
25
36
|
function defineConfig(config) {
|
|
26
37
|
return config;
|
|
27
38
|
}
|
|
39
|
+
function defineContentConfig(config) {
|
|
40
|
+
return config;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
28
52
|
|
|
29
53
|
|
|
30
54
|
|
|
@@ -43,5 +67,5 @@ function defineConfig(config) {
|
|
|
43
67
|
|
|
44
68
|
|
|
45
69
|
|
|
46
|
-
exports.blockFieldConfigSchema =
|
|
70
|
+
exports.SYSTEM_BLOCK_KINDS = _chunkGERCMTPQjs.SYSTEM_BLOCK_KINDS; exports.blockConfigSchema = _chunkZIM53VP6js.blockConfigSchema; exports.blockFieldConfigSchema = _chunkZIM53VP6js.blockFieldConfigSchema; exports.blockFieldExtensionSchema = _chunkZIM53VP6js.blockFieldExtensionSchema; exports.blockFieldExtensionsSchema = _chunkZIM53VP6js.blockFieldExtensionsSchema; exports.blockFieldOptionsSchema = _chunkZIM53VP6js.blockFieldOptionsSchema; exports.containerAlignmentSchema = _chunkZIM53VP6js.containerAlignmentSchema; exports.containerMaxWidthSchema = _chunkZIM53VP6js.containerMaxWidthSchema; exports.containerOptionsSchema = _chunkZIM53VP6js.containerOptionsSchema; exports.contentConfigSchema = _chunkZIM53VP6js.contentConfigSchema; exports.contentTypeConfigSchema = _chunkZIM53VP6js.contentTypeConfigSchema; exports.defineConfig = defineConfig; exports.defineContentConfig = defineContentConfig; exports.entryConfigSchema = _chunkZIM53VP6js.entryConfigSchema; exports.fieldSelectOptionSchema = _chunkZIM53VP6js.fieldSelectOptionSchema; exports.navigationItemConfigSchema = _chunkZIM53VP6js.navigationItemConfigSchema; exports.navigationMenuConfigSchema = _chunkZIM53VP6js.navigationMenuConfigSchema; exports.pageConfigSchema = _chunkZIM53VP6js.pageConfigSchema; exports.riverbankSiteConfigSchema = _chunkZIM53VP6js.riverbankSiteConfigSchema; exports.sdkCustomBlockSchema = _chunkZIM53VP6js.sdkCustomBlockSchema; exports.sdkThemeConfigSchema = _chunkZIM53VP6js.sdkThemeConfigSchema; exports.sdkThemePaletteSchema = _chunkZIM53VP6js.sdkThemePaletteSchema; exports.sectionBackgroundSchema = _chunkZIM53VP6js.sectionBackgroundSchema; exports.sectionOptionsSchema = _chunkZIM53VP6js.sectionOptionsSchema; exports.sectionSpacingSchema = _chunkZIM53VP6js.sectionSpacingSchema; exports.siteSettingsConfigSchema = _chunkZIM53VP6js.siteSettingsConfigSchema; exports.siteStyleConfigSchema = _chunkZIM53VP6js.siteStyleConfigSchema;
|
|
47
71
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/will/Projects/Business/cms/builder/packages/sdk/dist/server/config.js","../../src/config/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACA;
|
|
1
|
+
{"version":3,"sources":["/Users/will/Projects/Business/cms/builder/packages/sdk/dist/server/config.js","../../src/config/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACA;AC4EO,SAAS,YAAA,CAAa,MAAA,EAAkD;AAC7E,EAAA,OAAO,MAAA;AACT;AAuCO,SAAS,mBAAA,CAAoB,MAAA,EAAsC;AACxE,EAAA,OAAO,MAAA;AACT;ADhHA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,q4DAAC","file":"/Users/will/Projects/Business/cms/builder/packages/sdk/dist/server/config.js","sourcesContent":[null,"/**\n * SDK Site Configuration\n *\n * Types and utilities for defining site-level configuration\n * that SDK sites expose to the dashboard.\n */\n\nimport type { RiverbankSiteConfig, ContentConfig } from './types';\n\n// Types\nexport type {\n RiverbankSiteConfig,\n SiteStyleConfig,\n SectionBackground,\n SectionOptionsConfig,\n ContainerOptionsConfig,\n SectionSpacing,\n ContainerMaxWidth,\n ContainerAlignment,\n SdkThemeConfig,\n SdkThemePalette,\n SdkCustomBlock,\n FieldSelectOption,\n BlockFieldConfig,\n BlockFieldOptionsMap,\n BlockFieldExtension,\n BlockFieldExtensionsMap,\n FieldDefinition,\n // Content scaffolding types\n ContentConfig,\n ContentTypeConfig,\n PageConfig,\n EntryConfig,\n BlockConfig,\n NavigationMenuConfig,\n NavigationItemConfig,\n NavigationLinkType,\n SiteSettingsConfig,\n} from './types';\n\n// Validation schemas\nexport {\n riverbankSiteConfigSchema,\n siteStyleConfigSchema,\n sectionBackgroundSchema,\n sectionSpacingSchema,\n containerMaxWidthSchema,\n containerAlignmentSchema,\n sectionOptionsSchema,\n containerOptionsSchema,\n sdkThemeConfigSchema,\n sdkThemePaletteSchema,\n sdkCustomBlockSchema,\n fieldSelectOptionSchema,\n blockFieldConfigSchema,\n blockFieldOptionsSchema,\n blockFieldExtensionSchema,\n blockFieldExtensionsSchema,\n // Content scaffolding schemas\n contentConfigSchema,\n} from './validation';\n\n// Content validation schemas for more granular use\nexport {\n contentTypeConfigSchema,\n pageConfigSchema,\n entryConfigSchema,\n navigationMenuConfigSchema,\n navigationItemConfigSchema,\n siteSettingsConfigSchema,\n blockConfigSchema,\n} from './content-validation';\n\nexport type {\n ValidatedRiverbankSiteConfig,\n ValidatedSdkCustomBlock,\n ContentConfigInput,\n ContentConfigOutput,\n} from './validation';\n\n// Block kind types (single source of truth from @riverbankcms/blocks)\nexport {\n SYSTEM_BLOCK_KINDS,\n type SystemBlockKind,\n type CustomBlockKind,\n type BlockKind,\n} from '../types';\n\n/**\n * Helper function to define a Builder site configuration with type checking.\n *\n * @example\n * ```typescript\n * import { defineConfig } from '@riverbankcms/sdk/config';\n *\n * export default defineConfig({\n * siteId: '123e4567-e89b-12d3-a456-426614174000',\n * theme: {\n * palette: {\n * primary: '#6d28d9',\n * },\n * },\n * styles: {\n * sectionBackgrounds: [\n * { id: 'primary', label: 'Purple', token: 'primary' },\n * ],\n * },\n * });\n * ```\n */\nexport function defineConfig(config: RiverbankSiteConfig): RiverbankSiteConfig {\n return config;\n}\n\n/**\n * Helper function to define content scaffolding configuration with type checking.\n *\n * This can be used to define content configuration in a separate file,\n * which is then imported into riverbank.config.ts.\n *\n * @example\n * ```typescript\n * // content.config.ts\n * import { defineContentConfig } from '@riverbankcms/sdk/config';\n *\n * export const contentConfig = defineContentConfig({\n * contentTypes: [\n * {\n * key: 'testimonial',\n * name: 'Testimonial',\n * hasPages: false,\n * fields: [\n * { id: 'quote', type: 'richText', label: 'Quote', required: true },\n * ],\n * },\n * ],\n * pages: [\n * { identifier: 'home', title: 'Home', path: '/' },\n * ],\n * });\n *\n * // riverbank.config.ts\n * import { defineConfig } from '@riverbankcms/sdk/config';\n * import { contentConfig } from './content.config';\n *\n * export default defineConfig({\n * siteId: '...',\n * content: contentConfig,\n * });\n * ```\n */\nexport function defineContentConfig(config: ContentConfig): ContentConfig {\n return config;\n}\n"]}
|
package/dist/server/config.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
blockConfigSchema,
|
|
2
3
|
blockFieldConfigSchema,
|
|
3
4
|
blockFieldExtensionSchema,
|
|
4
5
|
blockFieldExtensionsSchema,
|
|
@@ -6,7 +7,13 @@ import {
|
|
|
6
7
|
containerAlignmentSchema,
|
|
7
8
|
containerMaxWidthSchema,
|
|
8
9
|
containerOptionsSchema,
|
|
10
|
+
contentConfigSchema,
|
|
11
|
+
contentTypeConfigSchema,
|
|
12
|
+
entryConfigSchema,
|
|
9
13
|
fieldSelectOptionSchema,
|
|
14
|
+
navigationItemConfigSchema,
|
|
15
|
+
navigationMenuConfigSchema,
|
|
16
|
+
pageConfigSchema,
|
|
10
17
|
riverbankSiteConfigSchema,
|
|
11
18
|
sdkCustomBlockSchema,
|
|
12
19
|
sdkThemeConfigSchema,
|
|
@@ -14,9 +21,13 @@ import {
|
|
|
14
21
|
sectionBackgroundSchema,
|
|
15
22
|
sectionOptionsSchema,
|
|
16
23
|
sectionSpacingSchema,
|
|
24
|
+
siteSettingsConfigSchema,
|
|
17
25
|
siteStyleConfigSchema
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import
|
|
26
|
+
} from "./chunk-BOHTTHY5.mjs";
|
|
27
|
+
import {
|
|
28
|
+
SYSTEM_BLOCK_KINDS
|
|
29
|
+
} from "./chunk-D2QLTPUJ.mjs";
|
|
30
|
+
import "./chunk-NKXS4TBK.mjs";
|
|
20
31
|
import "./chunk-7DS4Q3GA.mjs";
|
|
21
32
|
import "./chunk-USQF2XTU.mjs";
|
|
22
33
|
import "./chunk-BJTO5JO5.mjs";
|
|
@@ -25,7 +36,12 @@ import "./chunk-BJTO5JO5.mjs";
|
|
|
25
36
|
function defineConfig(config) {
|
|
26
37
|
return config;
|
|
27
38
|
}
|
|
39
|
+
function defineContentConfig(config) {
|
|
40
|
+
return config;
|
|
41
|
+
}
|
|
28
42
|
export {
|
|
43
|
+
SYSTEM_BLOCK_KINDS,
|
|
44
|
+
blockConfigSchema,
|
|
29
45
|
blockFieldConfigSchema,
|
|
30
46
|
blockFieldExtensionSchema,
|
|
31
47
|
blockFieldExtensionsSchema,
|
|
@@ -33,8 +49,15 @@ export {
|
|
|
33
49
|
containerAlignmentSchema,
|
|
34
50
|
containerMaxWidthSchema,
|
|
35
51
|
containerOptionsSchema,
|
|
52
|
+
contentConfigSchema,
|
|
53
|
+
contentTypeConfigSchema,
|
|
36
54
|
defineConfig,
|
|
55
|
+
defineContentConfig,
|
|
56
|
+
entryConfigSchema,
|
|
37
57
|
fieldSelectOptionSchema,
|
|
58
|
+
navigationItemConfigSchema,
|
|
59
|
+
navigationMenuConfigSchema,
|
|
60
|
+
pageConfigSchema,
|
|
38
61
|
riverbankSiteConfigSchema,
|
|
39
62
|
sdkCustomBlockSchema,
|
|
40
63
|
sdkThemeConfigSchema,
|
|
@@ -42,6 +65,7 @@ export {
|
|
|
42
65
|
sectionBackgroundSchema,
|
|
43
66
|
sectionOptionsSchema,
|
|
44
67
|
sectionSpacingSchema,
|
|
68
|
+
siteSettingsConfigSchema,
|
|
45
69
|
siteStyleConfigSchema
|
|
46
70
|
};
|
|
47
71
|
//# sourceMappingURL=config.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/index.ts"],"sourcesContent":["/**\n * SDK Site Configuration\n *\n * Types and utilities for defining site-level configuration\n * that SDK sites expose to the dashboard.\n */\n\nimport type { RiverbankSiteConfig } from './types';\n\n// Types\nexport type {\n RiverbankSiteConfig,\n SiteStyleConfig,\n SectionBackground,\n SectionOptionsConfig,\n ContainerOptionsConfig,\n SectionSpacing,\n ContainerMaxWidth,\n ContainerAlignment,\n SdkThemeConfig,\n SdkThemePalette,\n SdkCustomBlock,\n FieldSelectOption,\n BlockFieldConfig,\n BlockFieldOptionsMap,\n BlockFieldExtension,\n BlockFieldExtensionsMap,\n FieldDefinition,\n} from './types';\n\n// Validation schemas\nexport {\n riverbankSiteConfigSchema,\n siteStyleConfigSchema,\n sectionBackgroundSchema,\n sectionSpacingSchema,\n containerMaxWidthSchema,\n containerAlignmentSchema,\n sectionOptionsSchema,\n containerOptionsSchema,\n sdkThemeConfigSchema,\n sdkThemePaletteSchema,\n sdkCustomBlockSchema,\n fieldSelectOptionSchema,\n blockFieldConfigSchema,\n blockFieldOptionsSchema,\n blockFieldExtensionSchema,\n blockFieldExtensionsSchema,\n} from './validation';\n\nexport type {\n ValidatedRiverbankSiteConfig,\n ValidatedSdkCustomBlock,\n} from './validation';\n\n/**\n * Helper function to define a Builder site configuration with type checking.\n *\n * @example\n * ```typescript\n * import { defineConfig } from '@riverbankcms/sdk/config';\n *\n * export default defineConfig({\n * siteId: '123e4567-e89b-12d3-a456-426614174000',\n * theme: {\n * palette: {\n * primary: '#6d28d9',\n * },\n * },\n * styles: {\n * sectionBackgrounds: [\n * { id: 'primary', label: 'Purple', token: 'primary' },\n * ],\n * },\n * });\n * ```\n */\nexport function defineConfig(config: RiverbankSiteConfig): RiverbankSiteConfig {\n return config;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/config/index.ts"],"sourcesContent":["/**\n * SDK Site Configuration\n *\n * Types and utilities for defining site-level configuration\n * that SDK sites expose to the dashboard.\n */\n\nimport type { RiverbankSiteConfig, ContentConfig } from './types';\n\n// Types\nexport type {\n RiverbankSiteConfig,\n SiteStyleConfig,\n SectionBackground,\n SectionOptionsConfig,\n ContainerOptionsConfig,\n SectionSpacing,\n ContainerMaxWidth,\n ContainerAlignment,\n SdkThemeConfig,\n SdkThemePalette,\n SdkCustomBlock,\n FieldSelectOption,\n BlockFieldConfig,\n BlockFieldOptionsMap,\n BlockFieldExtension,\n BlockFieldExtensionsMap,\n FieldDefinition,\n // Content scaffolding types\n ContentConfig,\n ContentTypeConfig,\n PageConfig,\n EntryConfig,\n BlockConfig,\n NavigationMenuConfig,\n NavigationItemConfig,\n NavigationLinkType,\n SiteSettingsConfig,\n} from './types';\n\n// Validation schemas\nexport {\n riverbankSiteConfigSchema,\n siteStyleConfigSchema,\n sectionBackgroundSchema,\n sectionSpacingSchema,\n containerMaxWidthSchema,\n containerAlignmentSchema,\n sectionOptionsSchema,\n containerOptionsSchema,\n sdkThemeConfigSchema,\n sdkThemePaletteSchema,\n sdkCustomBlockSchema,\n fieldSelectOptionSchema,\n blockFieldConfigSchema,\n blockFieldOptionsSchema,\n blockFieldExtensionSchema,\n blockFieldExtensionsSchema,\n // Content scaffolding schemas\n contentConfigSchema,\n} from './validation';\n\n// Content validation schemas for more granular use\nexport {\n contentTypeConfigSchema,\n pageConfigSchema,\n entryConfigSchema,\n navigationMenuConfigSchema,\n navigationItemConfigSchema,\n siteSettingsConfigSchema,\n blockConfigSchema,\n} from './content-validation';\n\nexport type {\n ValidatedRiverbankSiteConfig,\n ValidatedSdkCustomBlock,\n ContentConfigInput,\n ContentConfigOutput,\n} from './validation';\n\n// Block kind types (single source of truth from @riverbankcms/blocks)\nexport {\n SYSTEM_BLOCK_KINDS,\n type SystemBlockKind,\n type CustomBlockKind,\n type BlockKind,\n} from '../types';\n\n/**\n * Helper function to define a Builder site configuration with type checking.\n *\n * @example\n * ```typescript\n * import { defineConfig } from '@riverbankcms/sdk/config';\n *\n * export default defineConfig({\n * siteId: '123e4567-e89b-12d3-a456-426614174000',\n * theme: {\n * palette: {\n * primary: '#6d28d9',\n * },\n * },\n * styles: {\n * sectionBackgrounds: [\n * { id: 'primary', label: 'Purple', token: 'primary' },\n * ],\n * },\n * });\n * ```\n */\nexport function defineConfig(config: RiverbankSiteConfig): RiverbankSiteConfig {\n return config;\n}\n\n/**\n * Helper function to define content scaffolding configuration with type checking.\n *\n * This can be used to define content configuration in a separate file,\n * which is then imported into riverbank.config.ts.\n *\n * @example\n * ```typescript\n * // content.config.ts\n * import { defineContentConfig } from '@riverbankcms/sdk/config';\n *\n * export const contentConfig = defineContentConfig({\n * contentTypes: [\n * {\n * key: 'testimonial',\n * name: 'Testimonial',\n * hasPages: false,\n * fields: [\n * { id: 'quote', type: 'richText', label: 'Quote', required: true },\n * ],\n * },\n * ],\n * pages: [\n * { identifier: 'home', title: 'Home', path: '/' },\n * ],\n * });\n *\n * // riverbank.config.ts\n * import { defineConfig } from '@riverbankcms/sdk/config';\n * import { contentConfig } from './content.config';\n *\n * export default defineConfig({\n * siteId: '...',\n * content: contentConfig,\n * });\n * ```\n */\nexport function defineContentConfig(config: ContentConfig): ContentConfig {\n return config;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8GO,SAAS,aAAa,QAAkD;AAC7E,SAAO;AACT;AAuCO,SAAS,oBAAoB,QAAsC;AACxE,SAAO;AACT;","names":[]}
|
package/dist/server/data.d.mts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { P as PageOutline, S as SdkCustomBlock } from './schema-Bpy9N5ZI.mjs';
|
|
2
|
-
import { P as PrefetchContext, R as ResolvedBlockData, D as DataLoaderOverrides } from './types-
|
|
3
|
-
export { B as BlockLoaderMap, a as DataLoaderContext, b as DataLoaderFn } from './types-
|
|
4
|
-
import { R as RiverbankClient } from './types-
|
|
2
|
+
import { P as PrefetchContext, R as ResolvedBlockData, D as DataLoaderOverrides } from './types-CbagRQ_7.mjs';
|
|
3
|
+
export { B as BlockLoaderMap, a as DataLoaderContext, b as DataLoaderFn } from './types-CbagRQ_7.mjs';
|
|
4
|
+
import { R as RiverbankClient } from './types-BC9eB2KH.mjs';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import './
|
|
6
|
+
import './blockKinds-B6MWzNWp.mjs';
|
|
7
|
+
import './types-BA-J9K8r.mjs';
|
|
7
8
|
import '@riverbankcms/ai';
|
|
8
9
|
import '@riverbankcms/media-storage-supabase';
|
|
9
10
|
import '@riverbankcms/db';
|
|
@@ -95,7 +96,9 @@ declare function prefetchBlockData(page: PageOutline, context: PrefetchContext,
|
|
|
95
96
|
* // codeData: { 'block-123': { products: [...] } }
|
|
96
97
|
* ```
|
|
97
98
|
*/
|
|
98
|
-
declare function executeCodeLoaders(page: PageOutline, context: PrefetchContext
|
|
99
|
+
declare function executeCodeLoaders(page: PageOutline, context: PrefetchContext & {
|
|
100
|
+
searchParams?: Record<string, string | string[] | undefined>;
|
|
101
|
+
}, overrides: DataLoaderOverrides): Promise<ResolvedBlockData>;
|
|
99
102
|
/**
|
|
100
103
|
* Merge resolved data from config loaders and code loaders.
|
|
101
104
|
*
|
package/dist/server/data.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { P as PageOutline, S as SdkCustomBlock } from './schema-Bpy9N5ZI.js';
|
|
2
|
-
import { P as PrefetchContext, R as ResolvedBlockData, D as DataLoaderOverrides } from './types-
|
|
3
|
-
export { B as BlockLoaderMap, a as DataLoaderContext, b as DataLoaderFn } from './types-
|
|
4
|
-
import { R as RiverbankClient } from './types-
|
|
2
|
+
import { P as PrefetchContext, R as ResolvedBlockData, D as DataLoaderOverrides } from './types-DuQCNVV0.js';
|
|
3
|
+
export { B as BlockLoaderMap, a as DataLoaderContext, b as DataLoaderFn } from './types-DuQCNVV0.js';
|
|
4
|
+
import { R as RiverbankClient } from './types-CAnC529E.js';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import './
|
|
6
|
+
import './blockKinds-B6MWzNWp.js';
|
|
7
|
+
import './types-5XdVD2J1.js';
|
|
7
8
|
import '@riverbankcms/ai';
|
|
8
9
|
import '@riverbankcms/media-storage-supabase';
|
|
9
10
|
import '@riverbankcms/db';
|
|
@@ -95,7 +96,9 @@ declare function prefetchBlockData(page: PageOutline, context: PrefetchContext,
|
|
|
95
96
|
* // codeData: { 'block-123': { products: [...] } }
|
|
96
97
|
* ```
|
|
97
98
|
*/
|
|
98
|
-
declare function executeCodeLoaders(page: PageOutline, context: PrefetchContext
|
|
99
|
+
declare function executeCodeLoaders(page: PageOutline, context: PrefetchContext & {
|
|
100
|
+
searchParams?: Record<string, string | string[] | undefined>;
|
|
101
|
+
}, overrides: DataLoaderOverrides): Promise<ResolvedBlockData>;
|
|
99
102
|
/**
|
|
100
103
|
* Merge resolved data from config loaders and code loaders.
|
|
101
104
|
*
|
package/dist/server/data.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkY7347JMZjs = require('./chunk-Y7347JMZ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -13,5 +13,5 @@ require('./chunk-DGUM43GV.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.SUPPORTED_LOADER_ENDPOINTS = _chunkHOY77YBFjs.SUPPORTED_LOADER_ENDPOINTS; exports.executeCodeLoaders =
|
|
16
|
+
exports.SUPPORTED_LOADER_ENDPOINTS = _chunkHOY77YBFjs.SUPPORTED_LOADER_ENDPOINTS; exports.executeCodeLoaders = _chunkY7347JMZjs.executeCodeLoaders; exports.mergeLoaderResults = _chunkY7347JMZjs.mergeLoaderResults; exports.prefetchBlockData = _chunkHOY77YBFjs.prefetchBlockData;
|
|
17
17
|
//# sourceMappingURL=data.js.map
|
package/dist/server/data.mjs
CHANGED
package/dist/server/index.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
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
|
-
import { A as APIEndpoints, b as APICallParams } from './types-
|
|
1
|
+
export { c as createRiverbankClient } from './index-Dj7VKH34.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-BC9eB2KH.mjs';
|
|
3
|
+
import { A as APIEndpoints, b as APICallParams } from './types-BA-J9K8r.mjs';
|
|
4
4
|
import './schema-Bpy9N5ZI.mjs';
|
|
5
|
-
export {
|
|
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-CYfHxUhe.mjs';
|
|
6
|
+
export { B as BlockKind, C as CustomBlockKind, S as SYSTEM_BLOCK_KINDS, a as SystemBlockKind } from './blockKinds-B6MWzNWp.mjs';
|
|
6
7
|
import '@riverbankcms/ai';
|
|
7
8
|
import 'zod';
|
|
8
9
|
import '@riverbankcms/media-storage-supabase';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
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
|
-
import { A as APIEndpoints, b as APICallParams } from './types-
|
|
1
|
+
export { c as createRiverbankClient } from './index-DbSfrRA0.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-CAnC529E.js';
|
|
3
|
+
import { A as APIEndpoints, b as APICallParams } from './types-5XdVD2J1.js';
|
|
4
4
|
import './schema-Bpy9N5ZI.js';
|
|
5
|
-
export {
|
|
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-CMqVHYLG.js';
|
|
6
|
+
export { B as BlockKind, C as CustomBlockKind, S as SYSTEM_BLOCK_KINDS, a as SystemBlockKind } from './blockKinds-B6MWzNWp.js';
|
|
6
7
|
import '@riverbankcms/ai';
|
|
7
8
|
import 'zod';
|
|
8
9
|
import '@riverbankcms/media-storage-supabase';
|
package/dist/server/index.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
+
var _chunkGERCMTPQjs = require('./chunk-GERCMTPQ.js');
|
|
3
4
|
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkR5B6IOFQjs = require('./chunk-R5B6IOFQ.js');
|
|
6
9
|
require('./chunk-DGUM43GV.js');
|
|
7
10
|
|
|
8
11
|
|
|
9
12
|
|
|
10
13
|
|
|
11
|
-
|
|
14
|
+
|
|
15
|
+
exports.API_ENDPOINTS = _chunkR5B6IOFQjs.API_ENDPOINTS; exports.SYSTEM_BLOCK_KINDS = _chunkGERCMTPQjs.SYSTEM_BLOCK_KINDS; exports.buildEndpointURL = _chunkR5B6IOFQjs.buildEndpointURL; exports.createRiverbankClient = _chunkR5B6IOFQjs.createRiverbankClient;
|
|
12
16
|
//# sourceMappingURL=index.js.map
|
package/dist/server/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/will/Projects/Business/cms/builder/packages/sdk/dist/server/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACF
|
|
1
|
+
{"version":3,"sources":["/Users/will/Projects/Business/cms/builder/packages/sdk/dist/server/index.js"],"names":[],"mappings":"AAAA;AACE;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACF,+PAAC","file":"/Users/will/Projects/Business/cms/builder/packages/sdk/dist/server/index.js"}
|
package/dist/server/index.mjs
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SYSTEM_BLOCK_KINDS
|
|
3
|
+
} from "./chunk-D2QLTPUJ.mjs";
|
|
1
4
|
import {
|
|
2
5
|
API_ENDPOINTS,
|
|
3
6
|
buildEndpointURL,
|
|
4
7
|
createRiverbankClient
|
|
5
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-N3PX76AP.mjs";
|
|
6
9
|
import "./chunk-BJTO5JO5.mjs";
|
|
7
10
|
export {
|
|
8
11
|
API_ENDPOINTS,
|
|
12
|
+
SYSTEM_BLOCK_KINDS,
|
|
9
13
|
buildEndpointURL,
|
|
10
14
|
createRiverbankClient
|
|
11
15
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as Theme } from './types-
|
|
1
|
+
import { T as Theme } from './types-5XdVD2J1.js';
|
|
2
2
|
import './schema-Bpy9N5ZI.js';
|
|
3
|
-
import { R as RiverbankClient } from './types-
|
|
4
|
-
import { P as PageProps } from './loadPage-
|
|
5
|
-
import { R as ResolvedBlockData } from './types-
|
|
3
|
+
import { R as RiverbankClient } from './types-CAnC529E.js';
|
|
4
|
+
import { P as PageProps } from './loadPage-naVvoua8.js';
|
|
5
|
+
import { R as ResolvedBlockData } from './types-DuQCNVV0.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Server-side helper to fetch content (page or entry) by path.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as Theme } from './types-
|
|
1
|
+
import { T as Theme } from './types-BA-J9K8r.mjs';
|
|
2
2
|
import './schema-Bpy9N5ZI.mjs';
|
|
3
|
-
import { R as RiverbankClient } from './types-
|
|
4
|
-
import { P as PageProps } from './loadPage-
|
|
5
|
-
import { R as ResolvedBlockData } from './types-
|
|
3
|
+
import { R as RiverbankClient } from './types-BC9eB2KH.mjs';
|
|
4
|
+
import { P as PageProps } from './loadPage-mavT3Jae.mjs';
|
|
5
|
+
import { R as ResolvedBlockData } from './types-CbagRQ_7.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Server-side helper to fetch content (page or entry) by path.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkSWPHIUVEjs = require('./chunk-SWPHIUVE.js');
|
|
4
|
+
require('./chunk-Y7347JMZ.js');
|
|
5
|
+
require('./chunk-HOY77YBF.js');
|
|
6
|
+
require('./chunk-EGTDJ4PL.js');
|
|
7
|
+
require('./chunk-DGUM43GV.js');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.loadPage = _chunkSWPHIUVEjs.loadPage;
|
|
11
|
+
//# sourceMappingURL=loadPage-DUHBXDEW.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/will/Projects/Business/cms/builder/packages/sdk/dist/server/loadPage-
|
|
1
|
+
{"version":3,"sources":["/Users/will/Projects/Business/cms/builder/packages/sdk/dist/server/loadPage-DUHBXDEW.js"],"names":[],"mappings":"AAAA;AACE;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACF,6CAAC","file":"/Users/will/Projects/Business/cms/builder/packages/sdk/dist/server/loadPage-DUHBXDEW.js"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadPage
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ZEAJW6T3.mjs";
|
|
4
|
+
import "./chunk-A2FZMRDW.mjs";
|
|
5
5
|
import "./chunk-7DS4Q3GA.mjs";
|
|
6
6
|
import "./chunk-USQF2XTU.mjs";
|
|
7
7
|
import "./chunk-BJTO5JO5.mjs";
|
|
8
8
|
export {
|
|
9
9
|
loadPage
|
|
10
10
|
};
|
|
11
|
-
//# sourceMappingURL=loadPage-
|
|
11
|
+
//# sourceMappingURL=loadPage-LYVKY3WZ.mjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { R as RiverbankClient, S as SiteResponse } from './types-
|
|
1
|
+
import { R as RiverbankClient, S as SiteResponse } from './types-BC9eB2KH.mjs';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { ComponentType } 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-
|
|
8
|
-
import { R as ResolvedBlockData, D as DataLoaderOverrides } from './types-
|
|
7
|
+
import { T as Theme } from './types-BA-J9K8r.mjs';
|
|
8
|
+
import { R as ResolvedBlockData, D as DataLoaderOverrides } from './types-CbagRQ_7.mjs';
|
|
9
9
|
|
|
10
10
|
declare const colorTokens: readonly ["background/base", "background/elevated", "surface/base", "surface/subtle", "surface/inverted", "content/primary", "content/secondary", "accent/primary", "accent/secondary", "border/base"];
|
|
11
11
|
declare const typographyTokens: readonly ["display/hero", "display/section", "heading/large", "heading/medium", "heading/small", "body/normal", "body/small", "caption"];
|
|
@@ -288,6 +288,25 @@ type LoadPageParams = {
|
|
|
288
288
|
* ```
|
|
289
289
|
*/
|
|
290
290
|
dataLoaderOverrides?: DataLoaderOverrides;
|
|
291
|
+
/**
|
|
292
|
+
* URL search parameters from the page request.
|
|
293
|
+
* Passed to code-based data loaders for pagination, filtering, etc.
|
|
294
|
+
*
|
|
295
|
+
* @example
|
|
296
|
+
* ```typescript
|
|
297
|
+
* // In Next.js App Router
|
|
298
|
+
* export default async function Page({ params, searchParams }) {
|
|
299
|
+
* const pageData = await loadPage({
|
|
300
|
+
* client,
|
|
301
|
+
* siteId: 'site-123',
|
|
302
|
+
* path: `/${params.slug || ''}`,
|
|
303
|
+
* searchParams: await searchParams,
|
|
304
|
+
* });
|
|
305
|
+
* return <Page {...pageData} />;
|
|
306
|
+
* }
|
|
307
|
+
* ```
|
|
308
|
+
*/
|
|
309
|
+
searchParams?: Record<string, string | string[] | undefined>;
|
|
291
310
|
};
|
|
292
311
|
type LoadPageResult = Omit<PageProps, 'registry' | 'wrapBlock' | 'usePlaceholders' | 'blockOverrides'> & {
|
|
293
312
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { R as RiverbankClient, S as SiteResponse } from './types-
|
|
1
|
+
import { R as RiverbankClient, S as SiteResponse } from './types-CAnC529E.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { ComponentType } 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-
|
|
8
|
-
import { R as ResolvedBlockData, D as DataLoaderOverrides } from './types-
|
|
7
|
+
import { T as Theme } from './types-5XdVD2J1.js';
|
|
8
|
+
import { R as ResolvedBlockData, D as DataLoaderOverrides } from './types-DuQCNVV0.js';
|
|
9
9
|
|
|
10
10
|
declare const colorTokens: readonly ["background/base", "background/elevated", "surface/base", "surface/subtle", "surface/inverted", "content/primary", "content/secondary", "accent/primary", "accent/secondary", "border/base"];
|
|
11
11
|
declare const typographyTokens: readonly ["display/hero", "display/section", "heading/large", "heading/medium", "heading/small", "body/normal", "body/small", "caption"];
|
|
@@ -288,6 +288,25 @@ type LoadPageParams = {
|
|
|
288
288
|
* ```
|
|
289
289
|
*/
|
|
290
290
|
dataLoaderOverrides?: DataLoaderOverrides;
|
|
291
|
+
/**
|
|
292
|
+
* URL search parameters from the page request.
|
|
293
|
+
* Passed to code-based data loaders for pagination, filtering, etc.
|
|
294
|
+
*
|
|
295
|
+
* @example
|
|
296
|
+
* ```typescript
|
|
297
|
+
* // In Next.js App Router
|
|
298
|
+
* export default async function Page({ params, searchParams }) {
|
|
299
|
+
* const pageData = await loadPage({
|
|
300
|
+
* client,
|
|
301
|
+
* siteId: 'site-123',
|
|
302
|
+
* path: `/${params.slug || ''}`,
|
|
303
|
+
* searchParams: await searchParams,
|
|
304
|
+
* });
|
|
305
|
+
* return <Page {...pageData} />;
|
|
306
|
+
* }
|
|
307
|
+
* ```
|
|
308
|
+
*/
|
|
309
|
+
searchParams?: Record<string, string | string[] | undefined>;
|
|
291
310
|
};
|
|
292
311
|
type LoadPageResult = Omit<PageProps, 'registry' | 'wrapBlock' | 'usePlaceholders' | 'blockOverrides'> & {
|
|
293
312
|
/**
|
|
@@ -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-mavT3Jae.mjs';
|
|
2
|
+
import { S as SiteResponse } from './types-BC9eB2KH.mjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import './schema-Bpy9N5ZI.mjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import './types-
|
|
7
|
+
import './types-BA-J9K8r.mjs';
|
|
8
8
|
import '@riverbankcms/ai';
|
|
9
9
|
import '@riverbankcms/media-storage-supabase';
|
|
10
10
|
import '@riverbankcms/db';
|
|
11
|
-
import './types-
|
|
11
|
+
import './types-CbagRQ_7.mjs';
|
|
12
|
+
import './blockKinds-B6MWzNWp.mjs';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Metadata generation helper for Next.js pages
|