@orion-studios/payload-studio 0.6.0-beta.184 → 0.6.0-beta.186

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 (44) hide show
  1. package/README.md +6 -1
  2. package/bin/init.js +329 -0
  3. package/dist/admin/index.d.mts +1 -1
  4. package/dist/admin/index.d.ts +1 -1
  5. package/dist/admin/index.js +61 -20
  6. package/dist/admin/index.mjs +1 -1
  7. package/dist/blocks/index.mjs +1 -2
  8. package/dist/builder-v2/client.js +21 -1
  9. package/dist/builder-v2/client.mjs +21 -1
  10. package/dist/builder-v2/index.js +33 -2
  11. package/dist/builder-v2/index.mjs +33 -2
  12. package/dist/{chunk-7HME6R2V.mjs → chunk-DTHBPJXU.mjs} +191 -21
  13. package/dist/{chunk-JQAHXYAM.mjs → chunk-KMYMSR7W.mjs} +163 -3
  14. package/dist/{chunk-KHK6RTGC.mjs → chunk-MMJNHBOF.mjs} +61 -20
  15. package/dist/{chunk-ZADL33R6.mjs → chunk-OF6BATTO.mjs} +56 -111
  16. package/dist/chunk-VA545CHJ.mjs +202 -0
  17. package/dist/forms/index.d.mts +25 -0
  18. package/dist/forms/index.d.ts +25 -0
  19. package/dist/forms/index.js +237 -0
  20. package/dist/forms/index.mjs +25 -0
  21. package/dist/forms/server.d.mts +35 -0
  22. package/dist/forms/server.d.ts +35 -0
  23. package/dist/forms/server.js +442 -0
  24. package/dist/forms/server.mjs +228 -0
  25. package/dist/{index-Dv-Alx4h.d.ts → index-0xXWuOuz.d.ts} +35 -5
  26. package/dist/{index-D5zrOdyv.d.mts → index-BU82akSL.d.mts} +35 -5
  27. package/dist/{index-DLfPOqYA.d.mts → index-BbTcimgH.d.mts} +1 -0
  28. package/dist/{index-D8BNfUJb.d.mts → index-Cen-9wcc.d.mts} +17 -5
  29. package/dist/{index-BV0vEGl6.d.ts → index-DV-nW43e.d.ts} +1 -0
  30. package/dist/{index-DD_E2UfJ.d.ts → index-gxcMPpm-.d.ts} +17 -5
  31. package/dist/index.d.mts +3 -3
  32. package/dist/index.d.ts +3 -3
  33. package/dist/index.js +302 -151
  34. package/dist/index.mjs +10 -11
  35. package/dist/nextjs/index.d.mts +1 -1
  36. package/dist/nextjs/index.d.ts +1 -1
  37. package/dist/nextjs/index.js +56 -111
  38. package/dist/nextjs/index.mjs +1 -1
  39. package/dist/studio-pages/index.d.mts +1 -1
  40. package/dist/studio-pages/index.d.ts +1 -1
  41. package/dist/studio-pages/index.js +1802 -20
  42. package/dist/studio-pages/index.mjs +10 -2
  43. package/package.json +18 -2
  44. package/dist/chunk-OQSEJXC4.mjs +0 -166
@@ -1,5 +1,5 @@
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
5
  type InspectorGroupKey = 'advanced' | 'basics' | 'layout' | 'media' | 'typography';
@@ -107,14 +107,23 @@ type StudioPagePayloadDoc = {
107
107
  studioDocument?: unknown;
108
108
  title?: unknown;
109
109
  };
110
+ type StudioRelationshipHydrationRule = {
111
+ fields?: string[];
112
+ arrays?: Record<string, string[]>;
113
+ };
114
+ type StudioRelationshipHydrationMap = Record<string, StudioRelationshipHydrationRule>;
115
+ declare const defaultRelationshipHydrationMap: StudioRelationshipHydrationMap;
110
116
  type CreateStudioPageServiceArgs = {
111
117
  collectionSlug?: string;
118
+ legacyHeroBackgroundColors?: string[];
112
119
  modules: StudioModuleManifest[];
113
120
  payload: Payload;
121
+ relationshipHydration?: StudioRelationshipHydrationMap;
114
122
  user: Record<string, unknown>;
115
123
  };
116
- declare const getStudioDocumentFromPage: (doc: StudioPagePayloadDoc) => StudioDocumentV1;
117
- declare const createStudioPageService: ({ collectionSlug, modules, payload, user, }: CreateStudioPageServiceArgs) => StudioPageService;
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;
118
127
  declare const toEditorInitialDoc: (payloadPage: {
119
128
  slug?: string;
120
129
  studioDocument: StudioDocumentV1;
@@ -126,6 +135,19 @@ declare const toEditorInitialDoc: (payloadPage: {
126
135
  title: string;
127
136
  };
128
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
+
129
151
  type BuilderBlock$1 = {
130
152
  blockType: string;
131
153
  [key: string]: unknown;
@@ -205,10 +227,18 @@ type index_BuilderRenderWithSectionShell = BuilderRenderWithSectionShell;
205
227
  type index_BuilderSettingsPanelMode = BuilderSettingsPanelMode;
206
228
  type index_BuilderThemeTokenOverrides = BuilderThemeTokenOverrides;
207
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;
208
233
  type index_SectionPreset = SectionPreset;
234
+ type index_StudioRelationshipHydrationMap = StudioRelationshipHydrationMap;
235
+ type index_StudioRelationshipHydrationRule = StudioRelationshipHydrationRule;
209
236
  declare const index_createDefaultStudioDocument: typeof createDefaultStudioDocument;
237
+ declare const index_createStudioPageFields: typeof createStudioPageFields;
210
238
  declare const index_createStudioPageService: typeof createStudioPageService;
239
+ declare const index_createStudioPagesCollection: typeof createStudioPagesCollection;
211
240
  declare const index_defaultBuilderThemeTokens: typeof defaultBuilderThemeTokens;
241
+ declare const index_defaultRelationshipHydrationMap: typeof defaultRelationshipHydrationMap;
212
242
  declare const index_getStudioDocumentFromPage: typeof getStudioDocumentFromPage;
213
243
  declare const index_layoutToStudioDocument: typeof layoutToStudioDocument;
214
244
  declare const index_pageInspectorPanels: typeof pageInspectorPanels;
@@ -219,7 +249,7 @@ declare const index_resolveBuilderThemeTokens: typeof resolveBuilderThemeTokens;
219
249
  declare const index_studioDocumentToLayout: typeof studioDocumentToLayout;
220
250
  declare const index_toEditorInitialDoc: typeof toEditorInitialDoc;
221
251
  declare namespace index {
222
- 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 };
223
253
  }
224
254
 
225
- 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 };
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,5 +1,5 @@
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
5
  type InspectorGroupKey = 'advanced' | 'basics' | 'layout' | 'media' | 'typography';
@@ -107,14 +107,23 @@ type StudioPagePayloadDoc = {
107
107
  studioDocument?: unknown;
108
108
  title?: unknown;
109
109
  };
110
+ type StudioRelationshipHydrationRule = {
111
+ fields?: string[];
112
+ arrays?: Record<string, string[]>;
113
+ };
114
+ type StudioRelationshipHydrationMap = Record<string, StudioRelationshipHydrationRule>;
115
+ declare const defaultRelationshipHydrationMap: StudioRelationshipHydrationMap;
110
116
  type CreateStudioPageServiceArgs = {
111
117
  collectionSlug?: string;
118
+ legacyHeroBackgroundColors?: string[];
112
119
  modules: StudioModuleManifest[];
113
120
  payload: Payload;
121
+ relationshipHydration?: StudioRelationshipHydrationMap;
114
122
  user: Record<string, unknown>;
115
123
  };
116
- declare const getStudioDocumentFromPage: (doc: StudioPagePayloadDoc) => StudioDocumentV1;
117
- declare const createStudioPageService: ({ collectionSlug, modules, payload, user, }: CreateStudioPageServiceArgs) => StudioPageService;
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;
118
127
  declare const toEditorInitialDoc: (payloadPage: {
119
128
  slug?: string;
120
129
  studioDocument: StudioDocumentV1;
@@ -126,6 +135,19 @@ declare const toEditorInitialDoc: (payloadPage: {
126
135
  title: string;
127
136
  };
128
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
+
129
151
  type BuilderBlock$1 = {
130
152
  blockType: string;
131
153
  [key: string]: unknown;
@@ -205,10 +227,18 @@ type index_BuilderRenderWithSectionShell = BuilderRenderWithSectionShell;
205
227
  type index_BuilderSettingsPanelMode = BuilderSettingsPanelMode;
206
228
  type index_BuilderThemeTokenOverrides = BuilderThemeTokenOverrides;
207
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;
208
233
  type index_SectionPreset = SectionPreset;
234
+ type index_StudioRelationshipHydrationMap = StudioRelationshipHydrationMap;
235
+ type index_StudioRelationshipHydrationRule = StudioRelationshipHydrationRule;
209
236
  declare const index_createDefaultStudioDocument: typeof createDefaultStudioDocument;
237
+ declare const index_createStudioPageFields: typeof createStudioPageFields;
210
238
  declare const index_createStudioPageService: typeof createStudioPageService;
239
+ declare const index_createStudioPagesCollection: typeof createStudioPagesCollection;
211
240
  declare const index_defaultBuilderThemeTokens: typeof defaultBuilderThemeTokens;
241
+ declare const index_defaultRelationshipHydrationMap: typeof defaultRelationshipHydrationMap;
212
242
  declare const index_getStudioDocumentFromPage: typeof getStudioDocumentFromPage;
213
243
  declare const index_layoutToStudioDocument: typeof layoutToStudioDocument;
214
244
  declare const index_pageInspectorPanels: typeof pageInspectorPanels;
@@ -219,7 +249,7 @@ declare const index_resolveBuilderThemeTokens: typeof resolveBuilderThemeTokens;
219
249
  declare const index_studioDocumentToLayout: typeof studioDocumentToLayout;
220
250
  declare const index_toEditorInitialDoc: typeof toEditorInitialDoc;
221
251
  declare namespace index {
222
- 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 };
223
253
  }
224
254
 
225
- 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 };
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 };
@@ -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;
@@ -1,9 +1,9 @@
1
- import * as payload from 'payload';
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
- declare function createPayloadClient(config: any): () => Promise<payload.BasePayload>;
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
- declare function createPageQueries(getPayloadClient: () => Promise<Payload>, contentTag?: string): {
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
- declare function createSiteQueries(getPayloadClient: () => Promise<Payload>, contentTag?: string): {
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>;
@@ -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;
@@ -1,9 +1,9 @@
1
- import * as payload from 'payload';
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
- declare function createPayloadClient(config: any): () => Promise<payload.BasePayload>;
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
- declare function createPageQueries(getPayloadClient: () => Promise<Payload>, contentTag?: string): {
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
- declare function createSiteQueries(getPayloadClient: () => Promise<Payload>, contentTag?: string): {
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,9 +1,9 @@
1
- export { i as admin } from './index-DLfPOqYA.mjs';
1
+ export { i as admin } from './index-BbTcimgH.mjs';
2
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-D8BNfUJb.mjs';
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-D5zrOdyv.mjs';
6
+ export { i as studioPages } from './index-BU82akSL.mjs';
7
7
  import 'payload';
8
8
  import './sitePreviewTypes-BrJwGzJj.mjs';
9
9
  import './socialMedia-C05Iy-SV.mjs';
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export { i as admin } from './index-BV0vEGl6.js';
1
+ export { i as admin } from './index-DV-nW43e.js';
2
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-DD_E2UfJ.js';
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-Dv-Alx4h.js';
6
+ export { i as studioPages } from './index-0xXWuOuz.js';
7
7
  import 'payload';
8
8
  import './sitePreviewTypes-BrJwGzJj.js';
9
9
  import './socialMedia-C05Iy-SV.js';