@orion-studios/payload-studio 0.6.0-beta.9 → 0.7.0
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 +6 -1
- package/bin/init.js +329 -0
- package/dist/admin/client.js +2106 -585
- package/dist/admin/client.mjs +2161 -653
- package/dist/admin/index.d.mts +2 -2
- package/dist/admin/index.d.ts +2 -2
- package/dist/admin/index.js +190 -36
- package/dist/admin/index.mjs +2 -2
- package/dist/admin-app/client.js +14 -5
- package/dist/admin-app/client.mjs +1 -1
- package/dist/admin-app/index.d.mts +2 -2
- package/dist/admin-app/index.d.ts +2 -2
- package/dist/admin-app/styles.css +361 -41
- package/dist/admin.css +98 -2
- package/dist/blocks/index.mjs +1 -2
- package/dist/builder-v2/client.d.mts +18 -0
- package/dist/builder-v2/client.d.ts +18 -0
- package/dist/builder-v2/client.js +4287 -0
- package/dist/builder-v2/client.mjs +4162 -0
- package/dist/builder-v2/index.d.mts +249 -0
- package/dist/builder-v2/index.d.ts +249 -0
- package/dist/builder-v2/index.js +836 -0
- package/dist/builder-v2/index.mjs +786 -0
- package/dist/builder-v2/styles.css +2705 -0
- package/dist/{chunk-PF3EBZXF.mjs → chunk-7ZMXZRBP.mjs} +39 -3
- package/dist/{chunk-XKUTZ7IU.mjs → chunk-DTHBPJXU.mjs} +246 -25
- package/dist/{chunk-JQAHXYAM.mjs → chunk-KMYMSR7W.mjs} +163 -3
- package/dist/{chunk-WLOPFFN2.mjs → chunk-MMJNHBOF.mjs} +193 -39
- package/dist/{chunk-KPIX7OSV.mjs → chunk-NF37A575.mjs} +14 -5
- package/dist/{chunk-OTHERBGX.mjs → chunk-OF6BATTO.mjs} +57 -112
- package/dist/chunk-VA545CHJ.mjs +202 -0
- package/dist/forms/index.d.mts +25 -0
- package/dist/forms/index.d.ts +25 -0
- package/dist/forms/index.js +237 -0
- package/dist/forms/index.mjs +25 -0
- package/dist/forms/server.d.mts +35 -0
- package/dist/forms/server.d.ts +35 -0
- package/dist/forms/server.js +442 -0
- package/dist/forms/server.mjs +228 -0
- package/dist/{index-Crx_MtPw.d.ts → index-0xXWuOuz.d.ts} +38 -6
- package/dist/{index-Cv-6qnrw.d.mts → index-BU82akSL.d.mts} +38 -6
- package/dist/{index-Bm2SaC3r.d.mts → index-BbTcimgH.d.mts} +4 -2
- package/dist/{index-D8BNfUJb.d.mts → index-Cen-9wcc.d.mts} +17 -5
- package/dist/{index-52HdVLQq.d.ts → index-DAdN56fM.d.ts} +1 -1
- package/dist/{index-CkT_eyhK.d.ts → index-DV-nW43e.d.ts} +4 -2
- package/dist/{index-DEQC3Dwj.d.mts → index-G_uTNffQ.d.mts} +1 -1
- package/dist/{index-DD_E2UfJ.d.ts → index-gxcMPpm-.d.ts} +17 -5
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +522 -171
- package/dist/index.mjs +10 -11
- package/dist/nextjs/index.d.mts +1 -1
- package/dist/nextjs/index.d.ts +1 -1
- package/dist/nextjs/index.js +95 -114
- package/dist/nextjs/index.mjs +2 -2
- package/dist/{sitePreviewTypes-BkHCWxNW.d.mts → sitePreviewTypes-BrJwGzJj.d.mts} +1 -1
- package/dist/{sitePreviewTypes-BkHCWxNW.d.ts → sitePreviewTypes-BrJwGzJj.d.ts} +1 -1
- package/dist/studio-pages/builder.css +66 -5
- package/dist/studio-pages/client.js +618 -73
- package/dist/studio-pages/client.mjs +641 -96
- package/dist/studio-pages/index.d.mts +1 -1
- package/dist/studio-pages/index.d.ts +1 -1
- package/dist/studio-pages/index.js +1893 -24
- package/dist/studio-pages/index.mjs +11 -3
- package/package.json +38 -3
- package/dist/chunk-OQSEJXC4.mjs +0 -166
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { S as StudioDocumentV1, a as StudioModuleManifest, b as StudioPageService, c as StudioNodeTypeDefinition } from './index-DWmudwDm.js';
|
|
2
|
-
import { Payload } from 'payload';
|
|
2
|
+
import { Payload, Block, Field, CollectionConfig } from 'payload';
|
|
3
3
|
import { ComponentType, CSSProperties, ReactNode } from 'react';
|
|
4
4
|
|
|
5
|
-
type InspectorGroupKey = 'advanced' | 'basics' | 'media' | 'typography';
|
|
5
|
+
type InspectorGroupKey = 'advanced' | 'basics' | 'layout' | 'media' | 'typography';
|
|
6
6
|
type InspectorFieldType = 'checkbox' | 'color' | 'number' | 'search' | 'select' | 'text' | 'textarea';
|
|
7
7
|
|
|
8
8
|
type BuilderSettingsPanelMode = 'advanced' | 'basic';
|
|
@@ -21,7 +21,9 @@ type BuilderLayoutSettingsV2 = {
|
|
|
21
21
|
};
|
|
22
22
|
type BuilderTypographySettingsV2 = {
|
|
23
23
|
bodyAlign?: BuilderTextAlign;
|
|
24
|
+
bodySizePt?: number | null;
|
|
24
25
|
headingAlign?: BuilderTextAlign;
|
|
26
|
+
headingSizePt?: number | null;
|
|
25
27
|
letterSpacingPreset?: BuilderTypographySpacingPreset;
|
|
26
28
|
lineHeightPreset?: BuilderTypographySpacingPreset;
|
|
27
29
|
maxTextWidth?: 'auto' | 'full' | 'lg' | 'md' | 'sm';
|
|
@@ -105,14 +107,23 @@ type StudioPagePayloadDoc = {
|
|
|
105
107
|
studioDocument?: unknown;
|
|
106
108
|
title?: unknown;
|
|
107
109
|
};
|
|
110
|
+
type StudioRelationshipHydrationRule = {
|
|
111
|
+
fields?: string[];
|
|
112
|
+
arrays?: Record<string, string[]>;
|
|
113
|
+
};
|
|
114
|
+
type StudioRelationshipHydrationMap = Record<string, StudioRelationshipHydrationRule>;
|
|
115
|
+
declare const defaultRelationshipHydrationMap: StudioRelationshipHydrationMap;
|
|
108
116
|
type CreateStudioPageServiceArgs = {
|
|
109
117
|
collectionSlug?: string;
|
|
118
|
+
legacyHeroBackgroundColors?: string[];
|
|
110
119
|
modules: StudioModuleManifest[];
|
|
111
120
|
payload: Payload;
|
|
121
|
+
relationshipHydration?: StudioRelationshipHydrationMap;
|
|
112
122
|
user: Record<string, unknown>;
|
|
113
123
|
};
|
|
114
|
-
declare const
|
|
115
|
-
declare const
|
|
124
|
+
declare const DEFAULT_LEGACY_HERO_BACKGROUND_COLORS: string[];
|
|
125
|
+
declare const getStudioDocumentFromPage: (doc: StudioPagePayloadDoc, relationshipHydration?: StudioRelationshipHydrationMap) => StudioDocumentV1;
|
|
126
|
+
declare const createStudioPageService: ({ collectionSlug, legacyHeroBackgroundColors, modules, payload, relationshipHydration, user, }: CreateStudioPageServiceArgs) => StudioPageService;
|
|
116
127
|
declare const toEditorInitialDoc: (payloadPage: {
|
|
117
128
|
slug?: string;
|
|
118
129
|
studioDocument: StudioDocumentV1;
|
|
@@ -124,6 +135,19 @@ declare const toEditorInitialDoc: (payloadPage: {
|
|
|
124
135
|
title: string;
|
|
125
136
|
};
|
|
126
137
|
|
|
138
|
+
type CreateStudioPageFieldsOptions = {
|
|
139
|
+
blocks?: Block[];
|
|
140
|
+
mediaCollectionSlug?: string;
|
|
141
|
+
additionalFields?: Field[];
|
|
142
|
+
};
|
|
143
|
+
declare function createStudioPageFields(options?: CreateStudioPageFieldsOptions): Field[];
|
|
144
|
+
type CreateStudioPagesCollectionOptions = CreateStudioPageFieldsOptions & {
|
|
145
|
+
slug?: string;
|
|
146
|
+
access?: CollectionConfig['access'];
|
|
147
|
+
overrides?: Partial<CollectionConfig>;
|
|
148
|
+
};
|
|
149
|
+
declare function createStudioPagesCollection(options?: CreateStudioPagesCollectionOptions): CollectionConfig;
|
|
150
|
+
|
|
127
151
|
type BuilderBlock$1 = {
|
|
128
152
|
blockType: string;
|
|
129
153
|
[key: string]: unknown;
|
|
@@ -203,10 +227,18 @@ type index_BuilderRenderWithSectionShell = BuilderRenderWithSectionShell;
|
|
|
203
227
|
type index_BuilderSettingsPanelMode = BuilderSettingsPanelMode;
|
|
204
228
|
type index_BuilderThemeTokenOverrides = BuilderThemeTokenOverrides;
|
|
205
229
|
type index_BuilderThemeTokens = BuilderThemeTokens;
|
|
230
|
+
type index_CreateStudioPageFieldsOptions = CreateStudioPageFieldsOptions;
|
|
231
|
+
type index_CreateStudioPagesCollectionOptions = CreateStudioPagesCollectionOptions;
|
|
232
|
+
declare const index_DEFAULT_LEGACY_HERO_BACKGROUND_COLORS: typeof DEFAULT_LEGACY_HERO_BACKGROUND_COLORS;
|
|
206
233
|
type index_SectionPreset = SectionPreset;
|
|
234
|
+
type index_StudioRelationshipHydrationMap = StudioRelationshipHydrationMap;
|
|
235
|
+
type index_StudioRelationshipHydrationRule = StudioRelationshipHydrationRule;
|
|
207
236
|
declare const index_createDefaultStudioDocument: typeof createDefaultStudioDocument;
|
|
237
|
+
declare const index_createStudioPageFields: typeof createStudioPageFields;
|
|
208
238
|
declare const index_createStudioPageService: typeof createStudioPageService;
|
|
239
|
+
declare const index_createStudioPagesCollection: typeof createStudioPagesCollection;
|
|
209
240
|
declare const index_defaultBuilderThemeTokens: typeof defaultBuilderThemeTokens;
|
|
241
|
+
declare const index_defaultRelationshipHydrationMap: typeof defaultRelationshipHydrationMap;
|
|
210
242
|
declare const index_getStudioDocumentFromPage: typeof getStudioDocumentFromPage;
|
|
211
243
|
declare const index_layoutToStudioDocument: typeof layoutToStudioDocument;
|
|
212
244
|
declare const index_pageInspectorPanels: typeof pageInspectorPanels;
|
|
@@ -217,7 +249,7 @@ declare const index_resolveBuilderThemeTokens: typeof resolveBuilderThemeTokens;
|
|
|
217
249
|
declare const index_studioDocumentToLayout: typeof studioDocumentToLayout;
|
|
218
250
|
declare const index_toEditorInitialDoc: typeof toEditorInitialDoc;
|
|
219
251
|
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 };
|
|
252
|
+
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_CreateStudioPageFieldsOptions as CreateStudioPageFieldsOptions, type index_CreateStudioPagesCollectionOptions as CreateStudioPagesCollectionOptions, index_DEFAULT_LEGACY_HERO_BACKGROUND_COLORS as DEFAULT_LEGACY_HERO_BACKGROUND_COLORS, type index_SectionPreset as SectionPreset, type index_StudioRelationshipHydrationMap as StudioRelationshipHydrationMap, type index_StudioRelationshipHydrationRule as StudioRelationshipHydrationRule, index_createDefaultStudioDocument as createDefaultStudioDocument, index_createStudioPageFields as createStudioPageFields, index_createStudioPageService as createStudioPageService, index_createStudioPagesCollection as createStudioPagesCollection, index_defaultBuilderThemeTokens as defaultBuilderThemeTokens, index_defaultRelationshipHydrationMap as defaultRelationshipHydrationMap, 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
253
|
}
|
|
222
254
|
|
|
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,
|
|
255
|
+
export { resolveBuilderThemeTokens as A, type BuilderBlock$1 as B, type CreateStudioPageFieldsOptions as C, DEFAULT_LEGACY_HERO_BACKGROUND_COLORS as D, studioDocumentToLayout as E, toEditorInitialDoc as F, 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, type CreateStudioPagesCollectionOptions as l, type StudioRelationshipHydrationMap as m, type StudioRelationshipHydrationRule as n, createDefaultStudioDocument as o, createStudioPageFields as p, createStudioPageService as q, createStudioPagesCollection as r, defaultBuilderThemeTokens as s, defaultRelationshipHydrationMap as t, getStudioDocumentFromPage as u, layoutToStudioDocument as v, pageInspectorPanels as w, pageNodeTypes as x, pagePaletteGroups as y, pageStudioModuleManifest as z };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { S as StudioDocumentV1, a as StudioModuleManifest, b as StudioPageService, c as StudioNodeTypeDefinition } from './index-DWmudwDm.mjs';
|
|
2
|
-
import { Payload } from 'payload';
|
|
2
|
+
import { Payload, Block, Field, CollectionConfig } from 'payload';
|
|
3
3
|
import { ComponentType, CSSProperties, ReactNode } from 'react';
|
|
4
4
|
|
|
5
|
-
type InspectorGroupKey = 'advanced' | 'basics' | 'media' | 'typography';
|
|
5
|
+
type InspectorGroupKey = 'advanced' | 'basics' | 'layout' | 'media' | 'typography';
|
|
6
6
|
type InspectorFieldType = 'checkbox' | 'color' | 'number' | 'search' | 'select' | 'text' | 'textarea';
|
|
7
7
|
|
|
8
8
|
type BuilderSettingsPanelMode = 'advanced' | 'basic';
|
|
@@ -21,7 +21,9 @@ type BuilderLayoutSettingsV2 = {
|
|
|
21
21
|
};
|
|
22
22
|
type BuilderTypographySettingsV2 = {
|
|
23
23
|
bodyAlign?: BuilderTextAlign;
|
|
24
|
+
bodySizePt?: number | null;
|
|
24
25
|
headingAlign?: BuilderTextAlign;
|
|
26
|
+
headingSizePt?: number | null;
|
|
25
27
|
letterSpacingPreset?: BuilderTypographySpacingPreset;
|
|
26
28
|
lineHeightPreset?: BuilderTypographySpacingPreset;
|
|
27
29
|
maxTextWidth?: 'auto' | 'full' | 'lg' | 'md' | 'sm';
|
|
@@ -105,14 +107,23 @@ type StudioPagePayloadDoc = {
|
|
|
105
107
|
studioDocument?: unknown;
|
|
106
108
|
title?: unknown;
|
|
107
109
|
};
|
|
110
|
+
type StudioRelationshipHydrationRule = {
|
|
111
|
+
fields?: string[];
|
|
112
|
+
arrays?: Record<string, string[]>;
|
|
113
|
+
};
|
|
114
|
+
type StudioRelationshipHydrationMap = Record<string, StudioRelationshipHydrationRule>;
|
|
115
|
+
declare const defaultRelationshipHydrationMap: StudioRelationshipHydrationMap;
|
|
108
116
|
type CreateStudioPageServiceArgs = {
|
|
109
117
|
collectionSlug?: string;
|
|
118
|
+
legacyHeroBackgroundColors?: string[];
|
|
110
119
|
modules: StudioModuleManifest[];
|
|
111
120
|
payload: Payload;
|
|
121
|
+
relationshipHydration?: StudioRelationshipHydrationMap;
|
|
112
122
|
user: Record<string, unknown>;
|
|
113
123
|
};
|
|
114
|
-
declare const
|
|
115
|
-
declare const
|
|
124
|
+
declare const DEFAULT_LEGACY_HERO_BACKGROUND_COLORS: string[];
|
|
125
|
+
declare const getStudioDocumentFromPage: (doc: StudioPagePayloadDoc, relationshipHydration?: StudioRelationshipHydrationMap) => StudioDocumentV1;
|
|
126
|
+
declare const createStudioPageService: ({ collectionSlug, legacyHeroBackgroundColors, modules, payload, relationshipHydration, user, }: CreateStudioPageServiceArgs) => StudioPageService;
|
|
116
127
|
declare const toEditorInitialDoc: (payloadPage: {
|
|
117
128
|
slug?: string;
|
|
118
129
|
studioDocument: StudioDocumentV1;
|
|
@@ -124,6 +135,19 @@ declare const toEditorInitialDoc: (payloadPage: {
|
|
|
124
135
|
title: string;
|
|
125
136
|
};
|
|
126
137
|
|
|
138
|
+
type CreateStudioPageFieldsOptions = {
|
|
139
|
+
blocks?: Block[];
|
|
140
|
+
mediaCollectionSlug?: string;
|
|
141
|
+
additionalFields?: Field[];
|
|
142
|
+
};
|
|
143
|
+
declare function createStudioPageFields(options?: CreateStudioPageFieldsOptions): Field[];
|
|
144
|
+
type CreateStudioPagesCollectionOptions = CreateStudioPageFieldsOptions & {
|
|
145
|
+
slug?: string;
|
|
146
|
+
access?: CollectionConfig['access'];
|
|
147
|
+
overrides?: Partial<CollectionConfig>;
|
|
148
|
+
};
|
|
149
|
+
declare function createStudioPagesCollection(options?: CreateStudioPagesCollectionOptions): CollectionConfig;
|
|
150
|
+
|
|
127
151
|
type BuilderBlock$1 = {
|
|
128
152
|
blockType: string;
|
|
129
153
|
[key: string]: unknown;
|
|
@@ -203,10 +227,18 @@ type index_BuilderRenderWithSectionShell = BuilderRenderWithSectionShell;
|
|
|
203
227
|
type index_BuilderSettingsPanelMode = BuilderSettingsPanelMode;
|
|
204
228
|
type index_BuilderThemeTokenOverrides = BuilderThemeTokenOverrides;
|
|
205
229
|
type index_BuilderThemeTokens = BuilderThemeTokens;
|
|
230
|
+
type index_CreateStudioPageFieldsOptions = CreateStudioPageFieldsOptions;
|
|
231
|
+
type index_CreateStudioPagesCollectionOptions = CreateStudioPagesCollectionOptions;
|
|
232
|
+
declare const index_DEFAULT_LEGACY_HERO_BACKGROUND_COLORS: typeof DEFAULT_LEGACY_HERO_BACKGROUND_COLORS;
|
|
206
233
|
type index_SectionPreset = SectionPreset;
|
|
234
|
+
type index_StudioRelationshipHydrationMap = StudioRelationshipHydrationMap;
|
|
235
|
+
type index_StudioRelationshipHydrationRule = StudioRelationshipHydrationRule;
|
|
207
236
|
declare const index_createDefaultStudioDocument: typeof createDefaultStudioDocument;
|
|
237
|
+
declare const index_createStudioPageFields: typeof createStudioPageFields;
|
|
208
238
|
declare const index_createStudioPageService: typeof createStudioPageService;
|
|
239
|
+
declare const index_createStudioPagesCollection: typeof createStudioPagesCollection;
|
|
209
240
|
declare const index_defaultBuilderThemeTokens: typeof defaultBuilderThemeTokens;
|
|
241
|
+
declare const index_defaultRelationshipHydrationMap: typeof defaultRelationshipHydrationMap;
|
|
210
242
|
declare const index_getStudioDocumentFromPage: typeof getStudioDocumentFromPage;
|
|
211
243
|
declare const index_layoutToStudioDocument: typeof layoutToStudioDocument;
|
|
212
244
|
declare const index_pageInspectorPanels: typeof pageInspectorPanels;
|
|
@@ -217,7 +249,7 @@ declare const index_resolveBuilderThemeTokens: typeof resolveBuilderThemeTokens;
|
|
|
217
249
|
declare const index_studioDocumentToLayout: typeof studioDocumentToLayout;
|
|
218
250
|
declare const index_toEditorInitialDoc: typeof toEditorInitialDoc;
|
|
219
251
|
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 };
|
|
252
|
+
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_CreateStudioPageFieldsOptions as CreateStudioPageFieldsOptions, type index_CreateStudioPagesCollectionOptions as CreateStudioPagesCollectionOptions, index_DEFAULT_LEGACY_HERO_BACKGROUND_COLORS as DEFAULT_LEGACY_HERO_BACKGROUND_COLORS, type index_SectionPreset as SectionPreset, type index_StudioRelationshipHydrationMap as StudioRelationshipHydrationMap, type index_StudioRelationshipHydrationRule as StudioRelationshipHydrationRule, index_createDefaultStudioDocument as createDefaultStudioDocument, index_createStudioPageFields as createStudioPageFields, index_createStudioPageService as createStudioPageService, index_createStudioPagesCollection as createStudioPagesCollection, index_defaultBuilderThemeTokens as defaultBuilderThemeTokens, index_defaultRelationshipHydrationMap as defaultRelationshipHydrationMap, 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
253
|
}
|
|
222
254
|
|
|
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,
|
|
255
|
+
export { resolveBuilderThemeTokens as A, type BuilderBlock$1 as B, type CreateStudioPageFieldsOptions as C, DEFAULT_LEGACY_HERO_BACKGROUND_COLORS as D, studioDocumentToLayout as E, toEditorInitialDoc as F, 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, type CreateStudioPagesCollectionOptions as l, type StudioRelationshipHydrationMap as m, type StudioRelationshipHydrationRule as n, createDefaultStudioDocument as o, createStudioPageFields as p, createStudioPageService as q, createStudioPagesCollection as r, defaultBuilderThemeTokens as s, defaultRelationshipHydrationMap as t, getStudioDocumentFromPage as u, layoutToStudioDocument as v, pageInspectorPanels as w, pageNodeTypes as x, pagePaletteGroups as y, pageStudioModuleManifest as z };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Field, CollectionConfig, GlobalConfig } from 'payload';
|
|
2
|
-
import { a as AdminNavIcon, e as SitePreviewLink, f as SitePreviewLocationSummary } from './sitePreviewTypes-
|
|
2
|
+
import { a as AdminNavIcon, e as SitePreviewLink, f as SitePreviewLocationSummary } from './sitePreviewTypes-BrJwGzJj.mjs';
|
|
3
3
|
import { a as SocialMediaPlatform, b as SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM, c as SOCIAL_MEDIA_ICON_OPTIONS, d as SOCIAL_MEDIA_PLATFORMS, e as SOCIAL_MEDIA_PLATFORM_LABELS, S as SocialMediaGlobalData, f as SocialMediaIconLibrary, g as SocialMediaIconOption, h as SocialMediaProfileData, i as SocialMediaProfilesData } from './socialMedia-C05Iy-SV.mjs';
|
|
4
4
|
|
|
5
5
|
type ThemeOption = 'light' | 'dark' | 'brand-light' | 'brand-dark';
|
|
6
6
|
declare const createThemePreferenceField: (defaultTheme?: ThemeOption) => Field;
|
|
7
7
|
declare const themePreferenceField: Field;
|
|
8
8
|
|
|
9
|
-
type StudioSectionRole = 'admin' | 'editor' | 'client';
|
|
9
|
+
type StudioSectionRole = 'admin' | 'developer' | 'editor' | 'client';
|
|
10
10
|
type StudioSectionCard = {
|
|
11
11
|
description?: string;
|
|
12
12
|
title: string;
|
|
@@ -59,6 +59,7 @@ type ResolvedStudioDashboardPanel = {
|
|
|
59
59
|
|
|
60
60
|
type StudioGlobalLink = {
|
|
61
61
|
description?: string;
|
|
62
|
+
group?: string;
|
|
62
63
|
href?: string;
|
|
63
64
|
label: string;
|
|
64
65
|
slug: string;
|
|
@@ -104,6 +105,7 @@ interface AdminConfig {
|
|
|
104
105
|
brandPrimary?: string;
|
|
105
106
|
brandSecondary?: string;
|
|
106
107
|
defaultTheme?: ThemeOption;
|
|
108
|
+
logoOnDarkUrl?: string;
|
|
107
109
|
logoUrl?: string;
|
|
108
110
|
basePath?: string;
|
|
109
111
|
studio?: AdminStudioConfig;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Payload } from 'payload';
|
|
1
|
+
import { SanitizedConfig, Payload } from 'payload';
|
|
3
2
|
import { S as SocialMediaGlobalData, a as SocialMediaPlatform } from './socialMedia-C05Iy-SV.mjs';
|
|
4
3
|
|
|
5
4
|
declare const WEBSITE_CONTENT_TAG = "website-content";
|
|
6
|
-
|
|
5
|
+
type PayloadConfigInput = SanitizedConfig | Promise<SanitizedConfig>;
|
|
6
|
+
declare function createPayloadClient(config: PayloadConfigInput): () => Promise<Payload>;
|
|
7
7
|
|
|
8
8
|
type MaybePage = Record<string, unknown> & {
|
|
9
9
|
id?: string;
|
|
@@ -20,7 +20,12 @@ type MaybePage = Record<string, unknown> & {
|
|
|
20
20
|
noIndex?: boolean;
|
|
21
21
|
noFollow?: boolean;
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
type PageQueriesOptions = {
|
|
24
|
+
contentTag?: string;
|
|
25
|
+
pagesCollectionSlug?: string;
|
|
26
|
+
homeSlug?: string;
|
|
27
|
+
};
|
|
28
|
+
declare function createPageQueries(getPayloadClient: () => Promise<Payload>, contentTagOrOptions?: string | PageQueriesOptions): {
|
|
24
29
|
getPageBySegments: (segments?: string[], draft?: boolean) => Promise<MaybePage | null>;
|
|
25
30
|
listPublishedPagePaths: () => Promise<string[]>;
|
|
26
31
|
pathToSegments: (path: string) => string[];
|
|
@@ -52,7 +57,14 @@ type FooterData = {
|
|
|
52
57
|
contactPhone?: string;
|
|
53
58
|
};
|
|
54
59
|
|
|
55
|
-
|
|
60
|
+
type SiteQueriesOptions = {
|
|
61
|
+
contentTag?: string;
|
|
62
|
+
siteSettingsSlug?: string;
|
|
63
|
+
headerSlug?: string;
|
|
64
|
+
footerSlug?: string;
|
|
65
|
+
socialMediaSlug?: string;
|
|
66
|
+
};
|
|
67
|
+
declare function createSiteQueries(getPayloadClient: () => Promise<Payload>, contentTagOrOptions?: string | SiteQueriesOptions): {
|
|
56
68
|
getSiteSettings: (draft?: boolean) => Promise<SiteSettingsData>;
|
|
57
69
|
getHeader: (draft?: boolean) => Promise<HeaderData>;
|
|
58
70
|
getFooter: (draft?: boolean) => Promise<FooterData>;
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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-BrJwGzJj.js';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
|
|
5
5
|
type AdminBreadcrumbsProps = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Field, CollectionConfig, GlobalConfig } from 'payload';
|
|
2
|
-
import { a as AdminNavIcon, e as SitePreviewLink, f as SitePreviewLocationSummary } from './sitePreviewTypes-
|
|
2
|
+
import { a as AdminNavIcon, e as SitePreviewLink, f as SitePreviewLocationSummary } from './sitePreviewTypes-BrJwGzJj.js';
|
|
3
3
|
import { a as SocialMediaPlatform, b as SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM, c as SOCIAL_MEDIA_ICON_OPTIONS, d as SOCIAL_MEDIA_PLATFORMS, e as SOCIAL_MEDIA_PLATFORM_LABELS, S as SocialMediaGlobalData, f as SocialMediaIconLibrary, g as SocialMediaIconOption, h as SocialMediaProfileData, i as SocialMediaProfilesData } from './socialMedia-C05Iy-SV.js';
|
|
4
4
|
|
|
5
5
|
type ThemeOption = 'light' | 'dark' | 'brand-light' | 'brand-dark';
|
|
6
6
|
declare const createThemePreferenceField: (defaultTheme?: ThemeOption) => Field;
|
|
7
7
|
declare const themePreferenceField: Field;
|
|
8
8
|
|
|
9
|
-
type StudioSectionRole = 'admin' | 'editor' | 'client';
|
|
9
|
+
type StudioSectionRole = 'admin' | 'developer' | 'editor' | 'client';
|
|
10
10
|
type StudioSectionCard = {
|
|
11
11
|
description?: string;
|
|
12
12
|
title: string;
|
|
@@ -59,6 +59,7 @@ type ResolvedStudioDashboardPanel = {
|
|
|
59
59
|
|
|
60
60
|
type StudioGlobalLink = {
|
|
61
61
|
description?: string;
|
|
62
|
+
group?: string;
|
|
62
63
|
href?: string;
|
|
63
64
|
label: string;
|
|
64
65
|
slug: string;
|
|
@@ -104,6 +105,7 @@ interface AdminConfig {
|
|
|
104
105
|
brandPrimary?: string;
|
|
105
106
|
brandSecondary?: string;
|
|
106
107
|
defaultTheme?: ThemeOption;
|
|
108
|
+
logoOnDarkUrl?: string;
|
|
107
109
|
logoUrl?: string;
|
|
108
110
|
basePath?: string;
|
|
109
111
|
studio?: AdminStudioConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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-BrJwGzJj.mjs';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
|
|
5
5
|
type AdminBreadcrumbsProps = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Payload } from 'payload';
|
|
1
|
+
import { SanitizedConfig, Payload } from 'payload';
|
|
3
2
|
import { S as SocialMediaGlobalData, a as SocialMediaPlatform } from './socialMedia-C05Iy-SV.js';
|
|
4
3
|
|
|
5
4
|
declare const WEBSITE_CONTENT_TAG = "website-content";
|
|
6
|
-
|
|
5
|
+
type PayloadConfigInput = SanitizedConfig | Promise<SanitizedConfig>;
|
|
6
|
+
declare function createPayloadClient(config: PayloadConfigInput): () => Promise<Payload>;
|
|
7
7
|
|
|
8
8
|
type MaybePage = Record<string, unknown> & {
|
|
9
9
|
id?: string;
|
|
@@ -20,7 +20,12 @@ type MaybePage = Record<string, unknown> & {
|
|
|
20
20
|
noIndex?: boolean;
|
|
21
21
|
noFollow?: boolean;
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
type PageQueriesOptions = {
|
|
24
|
+
contentTag?: string;
|
|
25
|
+
pagesCollectionSlug?: string;
|
|
26
|
+
homeSlug?: string;
|
|
27
|
+
};
|
|
28
|
+
declare function createPageQueries(getPayloadClient: () => Promise<Payload>, contentTagOrOptions?: string | PageQueriesOptions): {
|
|
24
29
|
getPageBySegments: (segments?: string[], draft?: boolean) => Promise<MaybePage | null>;
|
|
25
30
|
listPublishedPagePaths: () => Promise<string[]>;
|
|
26
31
|
pathToSegments: (path: string) => string[];
|
|
@@ -52,7 +57,14 @@ type FooterData = {
|
|
|
52
57
|
contactPhone?: string;
|
|
53
58
|
};
|
|
54
59
|
|
|
55
|
-
|
|
60
|
+
type SiteQueriesOptions = {
|
|
61
|
+
contentTag?: string;
|
|
62
|
+
siteSettingsSlug?: string;
|
|
63
|
+
headerSlug?: string;
|
|
64
|
+
footerSlug?: string;
|
|
65
|
+
socialMediaSlug?: string;
|
|
66
|
+
};
|
|
67
|
+
declare function createSiteQueries(getPayloadClient: () => Promise<Payload>, contentTagOrOptions?: string | SiteQueriesOptions): {
|
|
56
68
|
getSiteSettings: (draft?: boolean) => Promise<SiteSettingsData>;
|
|
57
69
|
getHeader: (draft?: boolean) => Promise<HeaderData>;
|
|
58
70
|
getFooter: (draft?: boolean) => Promise<FooterData>;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { i as admin } from './index-
|
|
2
|
-
export { i as adminApp } from './index-
|
|
1
|
+
export { i as admin } from './index-BbTcimgH.mjs';
|
|
2
|
+
export { i as adminApp } from './index-G_uTNffQ.mjs';
|
|
3
3
|
export { i as blocks } from './index-CluwY0ZQ.mjs';
|
|
4
|
-
export { i as nextjs } from './index-
|
|
4
|
+
export { i as nextjs } from './index-Cen-9wcc.mjs';
|
|
5
5
|
export { i as studio } from './index-DWmudwDm.mjs';
|
|
6
|
-
export { i as studioPages } from './index-
|
|
6
|
+
export { i as studioPages } from './index-BU82akSL.mjs';
|
|
7
7
|
import 'payload';
|
|
8
|
-
import './sitePreviewTypes-
|
|
8
|
+
import './sitePreviewTypes-BrJwGzJj.mjs';
|
|
9
9
|
import './socialMedia-C05Iy-SV.mjs';
|
|
10
10
|
import 'react/jsx-runtime';
|
|
11
11
|
import 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { i as admin } from './index-
|
|
2
|
-
export { i as adminApp } from './index-
|
|
1
|
+
export { i as admin } from './index-DV-nW43e.js';
|
|
2
|
+
export { i as adminApp } from './index-DAdN56fM.js';
|
|
3
3
|
export { i as blocks } from './index-CluwY0ZQ.js';
|
|
4
|
-
export { i as nextjs } from './index-
|
|
4
|
+
export { i as nextjs } from './index-gxcMPpm-.js';
|
|
5
5
|
export { i as studio } from './index-DWmudwDm.js';
|
|
6
|
-
export { i as studioPages } from './index-
|
|
6
|
+
export { i as studioPages } from './index-0xXWuOuz.js';
|
|
7
7
|
import 'payload';
|
|
8
|
-
import './sitePreviewTypes-
|
|
8
|
+
import './sitePreviewTypes-BrJwGzJj.js';
|
|
9
9
|
import './socialMedia-C05Iy-SV.js';
|
|
10
10
|
import 'react/jsx-runtime';
|
|
11
11
|
import 'react';
|