@orion-studios/payload-studio 0.5.0-beta.98 → 0.6.0-beta.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.
Files changed (63) hide show
  1. package/README.md +58 -68
  2. package/dist/admin/client.d.mts +5 -0
  3. package/dist/admin/client.d.ts +5 -0
  4. package/dist/admin/client.js +4491 -736
  5. package/dist/admin/client.mjs +3367 -752
  6. package/dist/admin/index.d.mts +2 -1
  7. package/dist/admin/index.d.ts +2 -1
  8. package/dist/admin/index.js +498 -53
  9. package/dist/admin/index.mjs +2 -1
  10. package/dist/admin-app/client.d.mts +1 -0
  11. package/dist/admin-app/client.d.ts +1 -0
  12. package/dist/admin-app/client.js +285 -109
  13. package/dist/admin-app/client.mjs +59 -871
  14. package/dist/admin-app/index.d.mts +2 -1
  15. package/dist/admin-app/index.d.ts +2 -1
  16. package/dist/admin-app/index.mjs +5 -3
  17. package/dist/admin-app/styles.css +1708 -56
  18. package/dist/admin.css +158 -35
  19. package/dist/blocks/index.js +415 -200
  20. package/dist/blocks/index.mjs +2 -2
  21. package/dist/{chunk-XK3K5GRP.mjs → chunk-JQAHXYAM.mjs} +271 -67
  22. package/dist/chunk-KPIX7OSV.mjs +1051 -0
  23. package/dist/chunk-OQSEJXC4.mjs +166 -0
  24. package/dist/{chunk-XHWQJUX5.mjs → chunk-OTHERBGX.mjs} +3 -3
  25. package/dist/chunk-PF3EBZXF.mjs +326 -0
  26. package/dist/chunk-Q2HGC67S.mjs +904 -0
  27. package/dist/{chunk-XVH5SCBD.mjs → chunk-RKTIFEUY.mjs} +4 -19
  28. package/dist/chunk-W2UOCJDX.mjs +32 -0
  29. package/dist/{chunk-C4J35SPJ.mjs → chunk-XKUTZ7IU.mjs} +257 -452
  30. package/dist/{index-ZbOx4OCF.d.ts → index-52HdVLQq.d.ts} +12 -22
  31. package/dist/index-BMitiKK8.d.ts +435 -0
  32. package/dist/index-Crx_MtPw.d.ts +223 -0
  33. package/dist/index-Cv-6qnrw.d.mts +223 -0
  34. package/dist/{index-ZbOx4OCF.d.mts → index-DEQC3Dwj.d.mts} +12 -22
  35. package/dist/{index-BIwu3qIH.d.mts → index-DWmudwDm.d.mts} +2 -1
  36. package/dist/{index-BIwu3qIH.d.ts → index-DWmudwDm.d.ts} +2 -1
  37. package/dist/index-D_b24Gef.d.mts +435 -0
  38. package/dist/index.d.mts +5 -4
  39. package/dist/index.d.ts +5 -4
  40. package/dist/index.js +1968 -1198
  41. package/dist/index.mjs +10 -8
  42. package/dist/nextjs/index.js +5 -684
  43. package/dist/nextjs/index.mjs +2 -3
  44. package/dist/sitePreviewTypes-BkHCWxNW.d.mts +58 -0
  45. package/dist/sitePreviewTypes-BkHCWxNW.d.ts +58 -0
  46. package/dist/studio/index.d.mts +1 -1
  47. package/dist/studio/index.d.ts +1 -1
  48. package/dist/studio-pages/builder.css +125 -83
  49. package/dist/studio-pages/client.d.mts +58 -1
  50. package/dist/studio-pages/client.d.ts +58 -1
  51. package/dist/studio-pages/client.js +450 -241
  52. package/dist/studio-pages/client.mjs +455 -247
  53. package/dist/studio-pages/index.d.mts +3 -2
  54. package/dist/studio-pages/index.d.ts +3 -2
  55. package/dist/studio-pages/index.js +418 -183
  56. package/dist/studio-pages/index.mjs +15 -6
  57. package/package.json +19 -5
  58. package/dist/chunk-2FO2ROW4.mjs +0 -468
  59. package/dist/chunk-SIL2J5MF.mjs +0 -155
  60. package/dist/index-BFXZue5i.d.ts +0 -178
  61. package/dist/index-CoYRBbf6.d.mts +0 -178
  62. package/dist/index-R7hA134j.d.mts +0 -140
  63. package/dist/index-vjrjy0P4.d.ts +0 -140
@@ -0,0 +1,223 @@
1
+ import { S as StudioDocumentV1, a as StudioModuleManifest, b as StudioPageService, c as StudioNodeTypeDefinition } from './index-DWmudwDm.js';
2
+ import { Payload } from 'payload';
3
+ import { ComponentType, CSSProperties, ReactNode } from 'react';
4
+
5
+ type InspectorGroupKey = 'advanced' | 'basics' | 'media' | 'typography';
6
+ type InspectorFieldType = 'checkbox' | 'color' | 'number' | 'search' | 'select' | 'text' | 'textarea';
7
+
8
+ type BuilderSettingsPanelMode = 'advanced' | 'basic';
9
+ type BuilderTextAlign = 'center' | 'justify' | 'left' | 'right';
10
+ type BuilderTypographySpacingPreset = 'normal' | 'relaxed' | 'tight';
11
+ type BuilderLayoutSettingsV2 = {
12
+ contentWidth?: 'content' | 'full' | 'inherit' | 'narrow' | 'wide';
13
+ linkHorizontalPadding?: boolean;
14
+ linkVerticalPadding?: boolean;
15
+ paddingBottomPt?: number | null;
16
+ paddingLeftPt?: number | null;
17
+ paddingRightPt?: number | null;
18
+ paddingTopPt?: number | null;
19
+ sectionPaddingX?: 'inherit' | 'lg' | 'md' | 'none' | 'sm';
20
+ sectionPaddingY?: 'lg' | 'md' | 'none' | 'sm';
21
+ };
22
+ type BuilderTypographySettingsV2 = {
23
+ bodyAlign?: BuilderTextAlign;
24
+ headingAlign?: BuilderTextAlign;
25
+ letterSpacingPreset?: BuilderTypographySpacingPreset;
26
+ lineHeightPreset?: BuilderTypographySpacingPreset;
27
+ maxTextWidth?: 'auto' | 'full' | 'lg' | 'md' | 'sm';
28
+ };
29
+ type BuilderMediaSettingsV2 = {
30
+ cornerStyle?: 'rounded' | 'square';
31
+ fit?: 'contain' | 'cover';
32
+ height?: number | null;
33
+ position?: 'bottom' | 'center' | 'left' | 'right' | 'top';
34
+ positionX?: number | null;
35
+ positionY?: number | null;
36
+ };
37
+ type BuilderAppearanceSettingsV2 = {
38
+ contentBackgroundColor?: string;
39
+ contentBackgroundMode?: 'color' | 'gradient' | 'none';
40
+ contentGradientAngle?: string;
41
+ contentGradientFrom?: string;
42
+ contentGradientPreset?: string;
43
+ contentGradientTo?: string;
44
+ sectionBackgroundColor?: string;
45
+ sectionBackgroundMode?: 'color' | 'gradient' | 'none';
46
+ sectionGradientAngle?: string;
47
+ sectionGradientFrom?: string;
48
+ sectionGradientPreset?: string;
49
+ sectionGradientTo?: string;
50
+ };
51
+ type BuilderAdvancedSettingsV2 = {
52
+ customClassName?: string;
53
+ editCopyInPanel?: boolean;
54
+ hideOnMobile?: boolean;
55
+ };
56
+ type BuilderBlockSettingsV2 = {
57
+ advanced: BuilderAdvancedSettingsV2;
58
+ appearance: BuilderAppearanceSettingsV2;
59
+ layout: BuilderLayoutSettingsV2;
60
+ media: BuilderMediaSettingsV2;
61
+ typography: BuilderTypographySettingsV2;
62
+ version: 2;
63
+ };
64
+ type BuilderThemeScale = 'lg' | 'md' | 'sm' | 'xl';
65
+ type BuilderThemeTokens = {
66
+ colors: {
67
+ accent: string;
68
+ bodyText: string;
69
+ headingText: string;
70
+ surface: string;
71
+ };
72
+ radii: {
73
+ card: number;
74
+ panel: number;
75
+ };
76
+ spacing: {
77
+ sectionGap: BuilderThemeScale;
78
+ sectionPadding: BuilderThemeScale;
79
+ };
80
+ typography: {
81
+ bodySize: BuilderThemeScale;
82
+ headingSize: BuilderThemeScale;
83
+ };
84
+ };
85
+ type BuilderThemeTokenOverrides = {
86
+ [K in keyof BuilderThemeTokens]?: BuilderThemeTokens[K] extends Record<string, unknown> ? Partial<BuilderThemeTokens[K]> : BuilderThemeTokens[K];
87
+ };
88
+ type BuilderThemeTokenLayers = {
89
+ block?: BuilderThemeTokenOverrides;
90
+ page?: BuilderThemeTokenOverrides;
91
+ site?: BuilderThemeTokenOverrides;
92
+ };
93
+ declare const defaultBuilderThemeTokens: BuilderThemeTokens;
94
+
95
+ declare const resolveBuilderThemeTokens: (layers: BuilderThemeTokenLayers) => BuilderThemeTokens;
96
+
97
+ declare const layoutToStudioDocument: (layout: Array<Record<string, unknown>>, title?: string, metadata?: Record<string, unknown>) => StudioDocumentV1;
98
+ declare const studioDocumentToLayout: (document: StudioDocumentV1) => Array<Record<string, unknown>>;
99
+ declare const createDefaultStudioDocument: (title?: string) => StudioDocumentV1;
100
+
101
+ type StudioPagePayloadDoc = {
102
+ id: number | string;
103
+ layout?: unknown;
104
+ slug?: unknown;
105
+ studioDocument?: unknown;
106
+ title?: unknown;
107
+ };
108
+ type CreateStudioPageServiceArgs = {
109
+ collectionSlug?: string;
110
+ modules: StudioModuleManifest[];
111
+ payload: Payload;
112
+ user: Record<string, unknown>;
113
+ };
114
+ declare const getStudioDocumentFromPage: (doc: StudioPagePayloadDoc) => StudioDocumentV1;
115
+ declare const createStudioPageService: ({ collectionSlug, modules, payload, user, }: CreateStudioPageServiceArgs) => StudioPageService;
116
+ declare const toEditorInitialDoc: (payloadPage: {
117
+ slug?: string;
118
+ studioDocument: StudioDocumentV1;
119
+ title: string;
120
+ }) => {
121
+ layout: Record<string, unknown>[];
122
+ slug: string;
123
+ studioDocument: StudioDocumentV1;
124
+ title: string;
125
+ };
126
+
127
+ type BuilderBlock$1 = {
128
+ blockType: string;
129
+ [key: string]: unknown;
130
+ };
131
+ type SectionPreset = {
132
+ id: string;
133
+ title: string;
134
+ description: string;
135
+ blocks: BuilderBlock$1[];
136
+ };
137
+
138
+ type BuilderBlock = {
139
+ blockType?: string;
140
+ [key: string]: unknown;
141
+ };
142
+ type BuilderRenderWithSectionShell = (block: BuilderBlock, className: string, content: ReactNode, options?: {
143
+ inheritProjectStyles?: boolean;
144
+ }) => ReactNode;
145
+ type BuilderInlineTextComponentProps = {
146
+ as?: 'h1' | 'h2' | 'h3' | 'p' | 'span';
147
+ className?: string;
148
+ multiline?: boolean;
149
+ onCommit: (value: string) => void;
150
+ placeholder?: string;
151
+ style?: CSSProperties;
152
+ value?: string;
153
+ };
154
+ type BuilderPreviewTextFieldOptions = Omit<BuilderInlineTextComponentProps, 'onCommit' | 'value'>;
155
+ type BuilderPreviewEditingHelpers = {
156
+ InlineText: ComponentType<BuilderInlineTextComponentProps>;
157
+ readText: (value: unknown, fallback?: string) => string;
158
+ updateArrayItemText: (arrayField: string, itemIndex: number, fieldName: string, value: string) => void;
159
+ updateBlockText: (fieldName: string, value: string) => void;
160
+ };
161
+ type BuilderBlockPreviewRenderArgs = {
162
+ block: BuilderBlock;
163
+ editing: BuilderPreviewEditingHelpers;
164
+ index: number;
165
+ renderWithSectionShell: BuilderRenderWithSectionShell;
166
+ resolvedThemeTokens: BuilderThemeTokens;
167
+ };
168
+
169
+ type BuilderBlockPreviewRenderer = (args: BuilderBlockPreviewRenderArgs) => ReactNode | null;
170
+
171
+ declare const pageNodeTypes: StudioNodeTypeDefinition[];
172
+ declare const pagePaletteGroups: {
173
+ id: string;
174
+ label: string;
175
+ items: {
176
+ nodeType: string;
177
+ title: string;
178
+ description: string;
179
+ }[];
180
+ }[];
181
+ declare const pageInspectorPanels: {
182
+ fields: {
183
+ advanced: boolean | undefined;
184
+ group: InspectorGroupKey;
185
+ inlineEditable: boolean | undefined;
186
+ key: string;
187
+ label: string;
188
+ type: InspectorFieldType;
189
+ }[];
190
+ id: string;
191
+ label: string;
192
+ nodeType: string;
193
+ }[];
194
+ declare const pageStudioModuleManifest: StudioModuleManifest;
195
+
196
+ type index_BuilderBlockPreviewRenderArgs = BuilderBlockPreviewRenderArgs;
197
+ type index_BuilderBlockPreviewRenderer = BuilderBlockPreviewRenderer;
198
+ type index_BuilderBlockSettingsV2 = BuilderBlockSettingsV2;
199
+ type index_BuilderInlineTextComponentProps = BuilderInlineTextComponentProps;
200
+ type index_BuilderPreviewEditingHelpers = BuilderPreviewEditingHelpers;
201
+ type index_BuilderPreviewTextFieldOptions = BuilderPreviewTextFieldOptions;
202
+ type index_BuilderRenderWithSectionShell = BuilderRenderWithSectionShell;
203
+ type index_BuilderSettingsPanelMode = BuilderSettingsPanelMode;
204
+ type index_BuilderThemeTokenOverrides = BuilderThemeTokenOverrides;
205
+ type index_BuilderThemeTokens = BuilderThemeTokens;
206
+ type index_SectionPreset = SectionPreset;
207
+ declare const index_createDefaultStudioDocument: typeof createDefaultStudioDocument;
208
+ declare const index_createStudioPageService: typeof createStudioPageService;
209
+ declare const index_defaultBuilderThemeTokens: typeof defaultBuilderThemeTokens;
210
+ declare const index_getStudioDocumentFromPage: typeof getStudioDocumentFromPage;
211
+ declare const index_layoutToStudioDocument: typeof layoutToStudioDocument;
212
+ declare const index_pageInspectorPanels: typeof pageInspectorPanels;
213
+ declare const index_pageNodeTypes: typeof pageNodeTypes;
214
+ declare const index_pagePaletteGroups: typeof pagePaletteGroups;
215
+ declare const index_pageStudioModuleManifest: typeof pageStudioModuleManifest;
216
+ declare const index_resolveBuilderThemeTokens: typeof resolveBuilderThemeTokens;
217
+ declare const index_studioDocumentToLayout: typeof studioDocumentToLayout;
218
+ declare const index_toEditorInitialDoc: typeof toEditorInitialDoc;
219
+ declare namespace index {
220
+ export { type BuilderBlock$1 as BuilderBlock, type index_BuilderBlockPreviewRenderArgs as BuilderBlockPreviewRenderArgs, type index_BuilderBlockPreviewRenderer as BuilderBlockPreviewRenderer, type index_BuilderBlockSettingsV2 as BuilderBlockSettingsV2, type index_BuilderInlineTextComponentProps as BuilderInlineTextComponentProps, type index_BuilderPreviewEditingHelpers as BuilderPreviewEditingHelpers, type index_BuilderPreviewTextFieldOptions as BuilderPreviewTextFieldOptions, type index_BuilderRenderWithSectionShell as BuilderRenderWithSectionShell, type index_BuilderSettingsPanelMode as BuilderSettingsPanelMode, type index_BuilderThemeTokenOverrides as BuilderThemeTokenOverrides, type index_BuilderThemeTokens as BuilderThemeTokens, type index_SectionPreset as SectionPreset, index_createDefaultStudioDocument as createDefaultStudioDocument, index_createStudioPageService as createStudioPageService, index_defaultBuilderThemeTokens as defaultBuilderThemeTokens, index_getStudioDocumentFromPage as getStudioDocumentFromPage, index_layoutToStudioDocument as layoutToStudioDocument, index_pageInspectorPanels as pageInspectorPanels, index_pageNodeTypes as pageNodeTypes, index_pagePaletteGroups as pagePaletteGroups, index_pageStudioModuleManifest as pageStudioModuleManifest, index_resolveBuilderThemeTokens as resolveBuilderThemeTokens, index_studioDocumentToLayout as studioDocumentToLayout, index_toEditorInitialDoc as toEditorInitialDoc };
221
+ }
222
+
223
+ export { type BuilderBlock$1 as B, type SectionPreset as S, type BuilderBlockPreviewRenderArgs as a, type BuilderBlockPreviewRenderer as b, type BuilderBlockSettingsV2 as c, type BuilderInlineTextComponentProps as d, type BuilderPreviewEditingHelpers as e, type BuilderPreviewTextFieldOptions as f, type BuilderRenderWithSectionShell as g, type BuilderSettingsPanelMode as h, index as i, type BuilderThemeTokenOverrides as j, type BuilderThemeTokens as k, createDefaultStudioDocument as l, createStudioPageService as m, defaultBuilderThemeTokens as n, getStudioDocumentFromPage as o, layoutToStudioDocument as p, pageInspectorPanels as q, pageNodeTypes as r, pagePaletteGroups as s, pageStudioModuleManifest as t, resolveBuilderThemeTokens as u, studioDocumentToLayout as v, toEditorInitialDoc as w };
@@ -0,0 +1,223 @@
1
+ import { S as StudioDocumentV1, a as StudioModuleManifest, b as StudioPageService, c as StudioNodeTypeDefinition } from './index-DWmudwDm.mjs';
2
+ import { Payload } from 'payload';
3
+ import { ComponentType, CSSProperties, ReactNode } from 'react';
4
+
5
+ type InspectorGroupKey = 'advanced' | 'basics' | 'media' | 'typography';
6
+ type InspectorFieldType = 'checkbox' | 'color' | 'number' | 'search' | 'select' | 'text' | 'textarea';
7
+
8
+ type BuilderSettingsPanelMode = 'advanced' | 'basic';
9
+ type BuilderTextAlign = 'center' | 'justify' | 'left' | 'right';
10
+ type BuilderTypographySpacingPreset = 'normal' | 'relaxed' | 'tight';
11
+ type BuilderLayoutSettingsV2 = {
12
+ contentWidth?: 'content' | 'full' | 'inherit' | 'narrow' | 'wide';
13
+ linkHorizontalPadding?: boolean;
14
+ linkVerticalPadding?: boolean;
15
+ paddingBottomPt?: number | null;
16
+ paddingLeftPt?: number | null;
17
+ paddingRightPt?: number | null;
18
+ paddingTopPt?: number | null;
19
+ sectionPaddingX?: 'inherit' | 'lg' | 'md' | 'none' | 'sm';
20
+ sectionPaddingY?: 'lg' | 'md' | 'none' | 'sm';
21
+ };
22
+ type BuilderTypographySettingsV2 = {
23
+ bodyAlign?: BuilderTextAlign;
24
+ headingAlign?: BuilderTextAlign;
25
+ letterSpacingPreset?: BuilderTypographySpacingPreset;
26
+ lineHeightPreset?: BuilderTypographySpacingPreset;
27
+ maxTextWidth?: 'auto' | 'full' | 'lg' | 'md' | 'sm';
28
+ };
29
+ type BuilderMediaSettingsV2 = {
30
+ cornerStyle?: 'rounded' | 'square';
31
+ fit?: 'contain' | 'cover';
32
+ height?: number | null;
33
+ position?: 'bottom' | 'center' | 'left' | 'right' | 'top';
34
+ positionX?: number | null;
35
+ positionY?: number | null;
36
+ };
37
+ type BuilderAppearanceSettingsV2 = {
38
+ contentBackgroundColor?: string;
39
+ contentBackgroundMode?: 'color' | 'gradient' | 'none';
40
+ contentGradientAngle?: string;
41
+ contentGradientFrom?: string;
42
+ contentGradientPreset?: string;
43
+ contentGradientTo?: string;
44
+ sectionBackgroundColor?: string;
45
+ sectionBackgroundMode?: 'color' | 'gradient' | 'none';
46
+ sectionGradientAngle?: string;
47
+ sectionGradientFrom?: string;
48
+ sectionGradientPreset?: string;
49
+ sectionGradientTo?: string;
50
+ };
51
+ type BuilderAdvancedSettingsV2 = {
52
+ customClassName?: string;
53
+ editCopyInPanel?: boolean;
54
+ hideOnMobile?: boolean;
55
+ };
56
+ type BuilderBlockSettingsV2 = {
57
+ advanced: BuilderAdvancedSettingsV2;
58
+ appearance: BuilderAppearanceSettingsV2;
59
+ layout: BuilderLayoutSettingsV2;
60
+ media: BuilderMediaSettingsV2;
61
+ typography: BuilderTypographySettingsV2;
62
+ version: 2;
63
+ };
64
+ type BuilderThemeScale = 'lg' | 'md' | 'sm' | 'xl';
65
+ type BuilderThemeTokens = {
66
+ colors: {
67
+ accent: string;
68
+ bodyText: string;
69
+ headingText: string;
70
+ surface: string;
71
+ };
72
+ radii: {
73
+ card: number;
74
+ panel: number;
75
+ };
76
+ spacing: {
77
+ sectionGap: BuilderThemeScale;
78
+ sectionPadding: BuilderThemeScale;
79
+ };
80
+ typography: {
81
+ bodySize: BuilderThemeScale;
82
+ headingSize: BuilderThemeScale;
83
+ };
84
+ };
85
+ type BuilderThemeTokenOverrides = {
86
+ [K in keyof BuilderThemeTokens]?: BuilderThemeTokens[K] extends Record<string, unknown> ? Partial<BuilderThemeTokens[K]> : BuilderThemeTokens[K];
87
+ };
88
+ type BuilderThemeTokenLayers = {
89
+ block?: BuilderThemeTokenOverrides;
90
+ page?: BuilderThemeTokenOverrides;
91
+ site?: BuilderThemeTokenOverrides;
92
+ };
93
+ declare const defaultBuilderThemeTokens: BuilderThemeTokens;
94
+
95
+ declare const resolveBuilderThemeTokens: (layers: BuilderThemeTokenLayers) => BuilderThemeTokens;
96
+
97
+ declare const layoutToStudioDocument: (layout: Array<Record<string, unknown>>, title?: string, metadata?: Record<string, unknown>) => StudioDocumentV1;
98
+ declare const studioDocumentToLayout: (document: StudioDocumentV1) => Array<Record<string, unknown>>;
99
+ declare const createDefaultStudioDocument: (title?: string) => StudioDocumentV1;
100
+
101
+ type StudioPagePayloadDoc = {
102
+ id: number | string;
103
+ layout?: unknown;
104
+ slug?: unknown;
105
+ studioDocument?: unknown;
106
+ title?: unknown;
107
+ };
108
+ type CreateStudioPageServiceArgs = {
109
+ collectionSlug?: string;
110
+ modules: StudioModuleManifest[];
111
+ payload: Payload;
112
+ user: Record<string, unknown>;
113
+ };
114
+ declare const getStudioDocumentFromPage: (doc: StudioPagePayloadDoc) => StudioDocumentV1;
115
+ declare const createStudioPageService: ({ collectionSlug, modules, payload, user, }: CreateStudioPageServiceArgs) => StudioPageService;
116
+ declare const toEditorInitialDoc: (payloadPage: {
117
+ slug?: string;
118
+ studioDocument: StudioDocumentV1;
119
+ title: string;
120
+ }) => {
121
+ layout: Record<string, unknown>[];
122
+ slug: string;
123
+ studioDocument: StudioDocumentV1;
124
+ title: string;
125
+ };
126
+
127
+ type BuilderBlock$1 = {
128
+ blockType: string;
129
+ [key: string]: unknown;
130
+ };
131
+ type SectionPreset = {
132
+ id: string;
133
+ title: string;
134
+ description: string;
135
+ blocks: BuilderBlock$1[];
136
+ };
137
+
138
+ type BuilderBlock = {
139
+ blockType?: string;
140
+ [key: string]: unknown;
141
+ };
142
+ type BuilderRenderWithSectionShell = (block: BuilderBlock, className: string, content: ReactNode, options?: {
143
+ inheritProjectStyles?: boolean;
144
+ }) => ReactNode;
145
+ type BuilderInlineTextComponentProps = {
146
+ as?: 'h1' | 'h2' | 'h3' | 'p' | 'span';
147
+ className?: string;
148
+ multiline?: boolean;
149
+ onCommit: (value: string) => void;
150
+ placeholder?: string;
151
+ style?: CSSProperties;
152
+ value?: string;
153
+ };
154
+ type BuilderPreviewTextFieldOptions = Omit<BuilderInlineTextComponentProps, 'onCommit' | 'value'>;
155
+ type BuilderPreviewEditingHelpers = {
156
+ InlineText: ComponentType<BuilderInlineTextComponentProps>;
157
+ readText: (value: unknown, fallback?: string) => string;
158
+ updateArrayItemText: (arrayField: string, itemIndex: number, fieldName: string, value: string) => void;
159
+ updateBlockText: (fieldName: string, value: string) => void;
160
+ };
161
+ type BuilderBlockPreviewRenderArgs = {
162
+ block: BuilderBlock;
163
+ editing: BuilderPreviewEditingHelpers;
164
+ index: number;
165
+ renderWithSectionShell: BuilderRenderWithSectionShell;
166
+ resolvedThemeTokens: BuilderThemeTokens;
167
+ };
168
+
169
+ type BuilderBlockPreviewRenderer = (args: BuilderBlockPreviewRenderArgs) => ReactNode | null;
170
+
171
+ declare const pageNodeTypes: StudioNodeTypeDefinition[];
172
+ declare const pagePaletteGroups: {
173
+ id: string;
174
+ label: string;
175
+ items: {
176
+ nodeType: string;
177
+ title: string;
178
+ description: string;
179
+ }[];
180
+ }[];
181
+ declare const pageInspectorPanels: {
182
+ fields: {
183
+ advanced: boolean | undefined;
184
+ group: InspectorGroupKey;
185
+ inlineEditable: boolean | undefined;
186
+ key: string;
187
+ label: string;
188
+ type: InspectorFieldType;
189
+ }[];
190
+ id: string;
191
+ label: string;
192
+ nodeType: string;
193
+ }[];
194
+ declare const pageStudioModuleManifest: StudioModuleManifest;
195
+
196
+ type index_BuilderBlockPreviewRenderArgs = BuilderBlockPreviewRenderArgs;
197
+ type index_BuilderBlockPreviewRenderer = BuilderBlockPreviewRenderer;
198
+ type index_BuilderBlockSettingsV2 = BuilderBlockSettingsV2;
199
+ type index_BuilderInlineTextComponentProps = BuilderInlineTextComponentProps;
200
+ type index_BuilderPreviewEditingHelpers = BuilderPreviewEditingHelpers;
201
+ type index_BuilderPreviewTextFieldOptions = BuilderPreviewTextFieldOptions;
202
+ type index_BuilderRenderWithSectionShell = BuilderRenderWithSectionShell;
203
+ type index_BuilderSettingsPanelMode = BuilderSettingsPanelMode;
204
+ type index_BuilderThemeTokenOverrides = BuilderThemeTokenOverrides;
205
+ type index_BuilderThemeTokens = BuilderThemeTokens;
206
+ type index_SectionPreset = SectionPreset;
207
+ declare const index_createDefaultStudioDocument: typeof createDefaultStudioDocument;
208
+ declare const index_createStudioPageService: typeof createStudioPageService;
209
+ declare const index_defaultBuilderThemeTokens: typeof defaultBuilderThemeTokens;
210
+ declare const index_getStudioDocumentFromPage: typeof getStudioDocumentFromPage;
211
+ declare const index_layoutToStudioDocument: typeof layoutToStudioDocument;
212
+ declare const index_pageInspectorPanels: typeof pageInspectorPanels;
213
+ declare const index_pageNodeTypes: typeof pageNodeTypes;
214
+ declare const index_pagePaletteGroups: typeof pagePaletteGroups;
215
+ declare const index_pageStudioModuleManifest: typeof pageStudioModuleManifest;
216
+ declare const index_resolveBuilderThemeTokens: typeof resolveBuilderThemeTokens;
217
+ declare const index_studioDocumentToLayout: typeof studioDocumentToLayout;
218
+ declare const index_toEditorInitialDoc: typeof toEditorInitialDoc;
219
+ declare namespace index {
220
+ export { type BuilderBlock$1 as BuilderBlock, type index_BuilderBlockPreviewRenderArgs as BuilderBlockPreviewRenderArgs, type index_BuilderBlockPreviewRenderer as BuilderBlockPreviewRenderer, type index_BuilderBlockSettingsV2 as BuilderBlockSettingsV2, type index_BuilderInlineTextComponentProps as BuilderInlineTextComponentProps, type index_BuilderPreviewEditingHelpers as BuilderPreviewEditingHelpers, type index_BuilderPreviewTextFieldOptions as BuilderPreviewTextFieldOptions, type index_BuilderRenderWithSectionShell as BuilderRenderWithSectionShell, type index_BuilderSettingsPanelMode as BuilderSettingsPanelMode, type index_BuilderThemeTokenOverrides as BuilderThemeTokenOverrides, type index_BuilderThemeTokens as BuilderThemeTokens, type index_SectionPreset as SectionPreset, index_createDefaultStudioDocument as createDefaultStudioDocument, index_createStudioPageService as createStudioPageService, index_defaultBuilderThemeTokens as defaultBuilderThemeTokens, index_getStudioDocumentFromPage as getStudioDocumentFromPage, index_layoutToStudioDocument as layoutToStudioDocument, index_pageInspectorPanels as pageInspectorPanels, index_pageNodeTypes as pageNodeTypes, index_pagePaletteGroups as pagePaletteGroups, index_pageStudioModuleManifest as pageStudioModuleManifest, index_resolveBuilderThemeTokens as resolveBuilderThemeTokens, index_studioDocumentToLayout as studioDocumentToLayout, index_toEditorInitialDoc as toEditorInitialDoc };
221
+ }
222
+
223
+ export { type BuilderBlock$1 as B, type SectionPreset as S, type BuilderBlockPreviewRenderArgs as a, type BuilderBlockPreviewRenderer as b, type BuilderBlockSettingsV2 as c, type BuilderInlineTextComponentProps as d, type BuilderPreviewEditingHelpers as e, type BuilderPreviewTextFieldOptions as f, type BuilderRenderWithSectionShell as g, type BuilderSettingsPanelMode as h, index as i, type BuilderThemeTokenOverrides as j, type BuilderThemeTokens as k, createDefaultStudioDocument as l, createStudioPageService as m, defaultBuilderThemeTokens as n, getStudioDocumentFromPage as o, layoutToStudioDocument as p, pageInspectorPanels as q, pageNodeTypes as r, pagePaletteGroups as s, pageStudioModuleManifest as t, resolveBuilderThemeTokens as u, studioDocumentToLayout as v, toEditorInitialDoc as w };
@@ -1,22 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { A as AdminBreadcrumbItem, a as AdminNavIcon, b as AdminNavItem, c as AdminRole, S as SiteFooterPreviewData, d as SiteHeaderPreviewData, e as SitePreviewLink, f as SitePreviewLocationSummary, g as SitePreviewSocialLink, n as navItemIsActive, r as roleCanAccessNav } from './sitePreviewTypes-BkHCWxNW.mjs';
2
3
  import { ReactNode } from 'react';
3
4
 
4
- type AdminRole = 'admin' | 'editor' | 'client';
5
- type AdminNavIcon = 'dashboard' | 'pages' | 'globals' | 'media' | 'tools' | 'account';
6
- type AdminNavItem = {
7
- href: string;
8
- icon?: AdminNavIcon;
9
- label: string;
10
- matchPrefixes: string[];
11
- roles?: AdminRole[];
12
- };
13
- type AdminBreadcrumbItem = {
14
- label: string;
15
- href?: string;
16
- };
17
- declare const roleCanAccessNav: (role: string | undefined, item: AdminNavItem) => boolean;
18
- declare const navItemIsActive: (pathname: string, item: AdminNavItem) => boolean;
19
-
20
5
  type AdminBreadcrumbsProps = {
21
6
  items: AdminBreadcrumbItem[];
22
7
  };
@@ -98,21 +83,26 @@ type AdminNavInput = {
98
83
  declare const normalizeAdminNavInputs: (rows: AdminNavInput[], pageOptions: AdminPageLinkOption[]) => AdminNavLinkItem[];
99
84
  declare const parseAdminHeaderNavFromForm: (formData: FormData, pageOptions: AdminPageLinkOption[], maxRows?: number) => AdminNavLinkItem[];
100
85
 
101
- type index_AdminBreadcrumbItem = AdminBreadcrumbItem;
86
+ declare const index_AdminBreadcrumbItem: typeof AdminBreadcrumbItem;
102
87
  declare const index_AdminBreadcrumbs: typeof AdminBreadcrumbs;
103
- type index_AdminNavIcon = AdminNavIcon;
88
+ declare const index_AdminNavIcon: typeof AdminNavIcon;
104
89
  type index_AdminNavInput = AdminNavInput;
105
- type index_AdminNavItem = AdminNavItem;
90
+ declare const index_AdminNavItem: typeof AdminNavItem;
106
91
  type index_AdminNavLinkItem = AdminNavLinkItem;
107
92
  declare const index_AdminPage: typeof AdminPage;
108
93
  type index_AdminPageLinkOption = AdminPageLinkOption;
109
94
  type index_AdminPageRecord = AdminPageRecord;
110
- type index_AdminRole = AdminRole;
95
+ declare const index_AdminRole: typeof AdminRole;
111
96
  type index_MediaDetailPanelProps = MediaDetailPanelProps;
112
97
  type index_MediaListItemProps = MediaListItemProps;
113
98
  type index_NestedNavItem = NestedNavItem;
114
99
  type index_NestedNavItemInput = NestedNavItemInput;
115
100
  type index_NestedNavTree = NestedNavTree;
101
+ declare const index_SiteFooterPreviewData: typeof SiteFooterPreviewData;
102
+ declare const index_SiteHeaderPreviewData: typeof SiteHeaderPreviewData;
103
+ declare const index_SitePreviewLink: typeof SitePreviewLink;
104
+ declare const index_SitePreviewLocationSummary: typeof SitePreviewLocationSummary;
105
+ declare const index_SitePreviewSocialLink: typeof SitePreviewSocialLink;
116
106
  declare const index_buildAdminPageLinkOptions: typeof buildAdminPageLinkOptions;
117
107
  declare const index_buildNestedNavTree: typeof buildNestedNavTree;
118
108
  declare const index_getAdminNavRows: typeof getAdminNavRows;
@@ -122,7 +112,7 @@ declare const index_normalizeNestedNavItems: typeof normalizeNestedNavItems;
122
112
  declare const index_parseAdminHeaderNavFromForm: typeof parseAdminHeaderNavFromForm;
123
113
  declare const index_roleCanAccessNav: typeof roleCanAccessNav;
124
114
  declare namespace index {
125
- export { type index_AdminBreadcrumbItem as AdminBreadcrumbItem, index_AdminBreadcrumbs as AdminBreadcrumbs, type index_AdminNavIcon as AdminNavIcon, type index_AdminNavInput as AdminNavInput, type index_AdminNavItem as AdminNavItem, type index_AdminNavLinkItem as AdminNavLinkItem, index_AdminPage as AdminPage, type index_AdminPageLinkOption as AdminPageLinkOption, type index_AdminPageRecord as AdminPageRecord, type index_AdminRole as AdminRole, type index_MediaDetailPanelProps as MediaDetailPanelProps, type index_MediaListItemProps as MediaListItemProps, type index_NestedNavItem as NestedNavItem, type index_NestedNavItemInput as NestedNavItemInput, type index_NestedNavTree as NestedNavTree, index_buildAdminPageLinkOptions as buildAdminPageLinkOptions, index_buildNestedNavTree as buildNestedNavTree, index_getAdminNavRows as getAdminNavRows, index_navItemIsActive as navItemIsActive, index_normalizeAdminNavInputs as normalizeAdminNavInputs, index_normalizeNestedNavItems as normalizeNestedNavItems, index_parseAdminHeaderNavFromForm as parseAdminHeaderNavFromForm, index_roleCanAccessNav as roleCanAccessNav };
115
+ export { index_AdminBreadcrumbItem as AdminBreadcrumbItem, index_AdminBreadcrumbs as AdminBreadcrumbs, index_AdminNavIcon as AdminNavIcon, type index_AdminNavInput as AdminNavInput, index_AdminNavItem as AdminNavItem, type index_AdminNavLinkItem as AdminNavLinkItem, index_AdminPage as AdminPage, type index_AdminPageLinkOption as AdminPageLinkOption, type index_AdminPageRecord as AdminPageRecord, index_AdminRole as AdminRole, type index_MediaDetailPanelProps as MediaDetailPanelProps, type index_MediaListItemProps as MediaListItemProps, type index_NestedNavItem as NestedNavItem, type index_NestedNavItemInput as NestedNavItemInput, type index_NestedNavTree as NestedNavTree, index_SiteFooterPreviewData as SiteFooterPreviewData, index_SiteHeaderPreviewData as SiteHeaderPreviewData, index_SitePreviewLink as SitePreviewLink, index_SitePreviewLocationSummary as SitePreviewLocationSummary, index_SitePreviewSocialLink as SitePreviewSocialLink, index_buildAdminPageLinkOptions as buildAdminPageLinkOptions, index_buildNestedNavTree as buildNestedNavTree, index_getAdminNavRows as getAdminNavRows, index_navItemIsActive as navItemIsActive, index_normalizeAdminNavInputs as normalizeAdminNavInputs, index_normalizeNestedNavItems as normalizeNestedNavItems, index_parseAdminHeaderNavFromForm as parseAdminHeaderNavFromForm, index_roleCanAccessNav as roleCanAccessNav };
126
116
  }
127
117
 
128
- export { type AdminBreadcrumbItem as A, type MediaDetailPanelProps as M, type NestedNavItem as N, AdminBreadcrumbs as a, type AdminNavIcon as b, type AdminNavInput as c, type AdminNavItem as d, type AdminNavLinkItem as e, AdminPage as f, type AdminPageLinkOption as g, type AdminPageRecord as h, index as i, type AdminRole as j, type MediaListItemProps as k, type NestedNavItemInput as l, type NestedNavTree as m, buildAdminPageLinkOptions as n, buildNestedNavTree as o, getAdminNavRows as p, navItemIsActive as q, normalizeAdminNavInputs as r, normalizeNestedNavItems as s, parseAdminHeaderNavFromForm as t, roleCanAccessNav as u };
118
+ export { AdminBreadcrumbs as A, type MediaDetailPanelProps as M, type NestedNavItem as N, type AdminNavInput as a, type AdminNavLinkItem as b, AdminPage as c, type AdminPageLinkOption as d, type AdminPageRecord as e, type MediaListItemProps as f, type NestedNavItemInput as g, type NestedNavTree as h, index as i, buildAdminPageLinkOptions as j, buildNestedNavTree as k, getAdminNavRows as l, normalizeNestedNavItems as m, normalizeAdminNavInputs as n, parseAdminHeaderNavFromForm as p };
@@ -104,6 +104,7 @@ type StudioRegistry = {
104
104
  type StudioPageService = {
105
105
  getPageForStudio: (pageID: string) => Promise<{
106
106
  id: string;
107
+ slug?: string;
107
108
  studioDocument: StudioDocumentV1;
108
109
  title: string;
109
110
  }>;
@@ -153,4 +154,4 @@ declare namespace index {
153
154
  export { type index_ImageUploadOptimizationOptions as ImageUploadOptimizationOptions, type index_StudioCompileResult as StudioCompileResult, type index_StudioDocumentV1 as StudioDocumentV1, type index_StudioInspectorField as StudioInspectorField, type index_StudioInspectorPanel as StudioInspectorPanel, type index_StudioMigration as StudioMigration, type index_StudioModuleManifest as StudioModuleManifest, type index_StudioNode as StudioNode, type index_StudioNodeData as StudioNodeData, type index_StudioNodeTypeDefinition as StudioNodeTypeDefinition, type index_StudioPageService as StudioPageService, type index_StudioPaletteGroup as StudioPaletteGroup, type index_StudioPaletteItem as StudioPaletteItem, type index_StudioPermission as StudioPermission, type index_StudioRegistry as StudioRegistry, type index_StudioValidationIssue as StudioValidationIssue, type index_SupportedImageMimeType as SupportedImageMimeType, index_assertStudioDocumentV1 as assertStudioDocumentV1, index_compileStudioDocument as compileStudioDocument, index_createEmptyStudioDocument as createEmptyStudioDocument, index_createImageUploadOptimizationHook as createImageUploadOptimizationHook, index_createStudioRegistry as createStudioRegistry, index_migrateStudioDocument as migrateStudioDocument, index_validateStudioDocument as validateStudioDocument, index_withImageUploadOptimization as withImageUploadOptimization };
154
155
  }
155
156
 
156
- export { type ImageUploadOptimizationOptions as I, type StudioDocumentV1 as S, type StudioNodeTypeDefinition as a, type StudioModuleManifest as b, type StudioCompileResult as c, type StudioInspectorField as d, type StudioInspectorPanel as e, type StudioMigration as f, type StudioNode as g, type StudioNodeData as h, index as i, type StudioPageService as j, type StudioPaletteGroup as k, type StudioPaletteItem as l, type StudioPermission as m, type StudioRegistry as n, type StudioValidationIssue as o, type SupportedImageMimeType as p, assertStudioDocumentV1 as q, compileStudioDocument as r, createEmptyStudioDocument as s, createImageUploadOptimizationHook as t, createStudioRegistry as u, migrateStudioDocument as v, validateStudioDocument as w, withImageUploadOptimization as x };
157
+ export { type ImageUploadOptimizationOptions as I, type StudioDocumentV1 as S, type StudioModuleManifest as a, type StudioPageService as b, type StudioNodeTypeDefinition as c, type StudioCompileResult as d, type StudioInspectorField as e, type StudioInspectorPanel as f, type StudioMigration as g, type StudioNode as h, index as i, type StudioNodeData as j, type StudioPaletteGroup as k, type StudioPaletteItem as l, type StudioPermission as m, type StudioRegistry as n, type StudioValidationIssue as o, type SupportedImageMimeType as p, assertStudioDocumentV1 as q, compileStudioDocument as r, createEmptyStudioDocument as s, createImageUploadOptimizationHook as t, createStudioRegistry as u, migrateStudioDocument as v, validateStudioDocument as w, withImageUploadOptimization as x };
@@ -104,6 +104,7 @@ type StudioRegistry = {
104
104
  type StudioPageService = {
105
105
  getPageForStudio: (pageID: string) => Promise<{
106
106
  id: string;
107
+ slug?: string;
107
108
  studioDocument: StudioDocumentV1;
108
109
  title: string;
109
110
  }>;
@@ -153,4 +154,4 @@ declare namespace index {
153
154
  export { type index_ImageUploadOptimizationOptions as ImageUploadOptimizationOptions, type index_StudioCompileResult as StudioCompileResult, type index_StudioDocumentV1 as StudioDocumentV1, type index_StudioInspectorField as StudioInspectorField, type index_StudioInspectorPanel as StudioInspectorPanel, type index_StudioMigration as StudioMigration, type index_StudioModuleManifest as StudioModuleManifest, type index_StudioNode as StudioNode, type index_StudioNodeData as StudioNodeData, type index_StudioNodeTypeDefinition as StudioNodeTypeDefinition, type index_StudioPageService as StudioPageService, type index_StudioPaletteGroup as StudioPaletteGroup, type index_StudioPaletteItem as StudioPaletteItem, type index_StudioPermission as StudioPermission, type index_StudioRegistry as StudioRegistry, type index_StudioValidationIssue as StudioValidationIssue, type index_SupportedImageMimeType as SupportedImageMimeType, index_assertStudioDocumentV1 as assertStudioDocumentV1, index_compileStudioDocument as compileStudioDocument, index_createEmptyStudioDocument as createEmptyStudioDocument, index_createImageUploadOptimizationHook as createImageUploadOptimizationHook, index_createStudioRegistry as createStudioRegistry, index_migrateStudioDocument as migrateStudioDocument, index_validateStudioDocument as validateStudioDocument, index_withImageUploadOptimization as withImageUploadOptimization };
154
155
  }
155
156
 
156
- export { type ImageUploadOptimizationOptions as I, type StudioDocumentV1 as S, type StudioNodeTypeDefinition as a, type StudioModuleManifest as b, type StudioCompileResult as c, type StudioInspectorField as d, type StudioInspectorPanel as e, type StudioMigration as f, type StudioNode as g, type StudioNodeData as h, index as i, type StudioPageService as j, type StudioPaletteGroup as k, type StudioPaletteItem as l, type StudioPermission as m, type StudioRegistry as n, type StudioValidationIssue as o, type SupportedImageMimeType as p, assertStudioDocumentV1 as q, compileStudioDocument as r, createEmptyStudioDocument as s, createImageUploadOptimizationHook as t, createStudioRegistry as u, migrateStudioDocument as v, validateStudioDocument as w, withImageUploadOptimization as x };
157
+ export { type ImageUploadOptimizationOptions as I, type StudioDocumentV1 as S, type StudioModuleManifest as a, type StudioPageService as b, type StudioNodeTypeDefinition as c, type StudioCompileResult as d, type StudioInspectorField as e, type StudioInspectorPanel as f, type StudioMigration as g, type StudioNode as h, index as i, type StudioNodeData as j, type StudioPaletteGroup as k, type StudioPaletteItem as l, type StudioPermission as m, type StudioRegistry as n, type StudioValidationIssue as o, type SupportedImageMimeType as p, assertStudioDocumentV1 as q, compileStudioDocument as r, createEmptyStudioDocument as s, createImageUploadOptimizationHook as t, createStudioRegistry as u, migrateStudioDocument as v, validateStudioDocument as w, withImageUploadOptimization as x };