@orion-studios/payload-studio 0.5.0-beta.113 → 0.5.0-beta.114
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/dist/admin/client.js +1915 -490
- package/dist/admin/client.mjs +1327 -445
- package/dist/admin/index.d.mts +2 -1
- package/dist/admin/index.d.ts +2 -1
- package/dist/admin/index.js +253 -50
- package/dist/admin/index.mjs +1 -1
- package/dist/admin-app/client.d.mts +1 -0
- package/dist/admin-app/client.d.ts +1 -0
- package/dist/admin-app/client.js +266 -105
- package/dist/admin-app/client.mjs +105 -456
- package/dist/admin-app/index.d.mts +2 -1
- package/dist/admin-app/index.d.ts +2 -1
- package/dist/admin-app/styles.css +351 -0
- package/dist/admin.css +9 -0
- package/dist/{chunk-DAIZDGHL.mjs → chunk-4YPHQYRR.mjs} +253 -50
- package/dist/chunk-6NE7GIVT.mjs +555 -0
- package/dist/{chunk-3T2P6SDM.mjs → chunk-XKUTZ7IU.mjs} +215 -6
- package/dist/{index-DUi_XND6.d.ts → index-Crx_MtPw.d.ts} +33 -3
- package/dist/{index-gLl_358v.d.mts → index-Cv-6qnrw.d.mts} +33 -3
- package/dist/index-D5yjivF7.d.ts +382 -0
- package/dist/index-DH9KGEZ8.d.mts +382 -0
- package/dist/{index-BzKOThsI.d.mts → index-DWmudwDm.d.mts} +1 -1
- package/dist/{index-BzKOThsI.d.ts → index-DWmudwDm.d.ts} +1 -1
- package/dist/{index-7lxTrxSG.d.mts → index-c5-qTRbH.d.mts} +7 -1
- package/dist/{index-7lxTrxSG.d.ts → index-yfpxsgUu.d.ts} +7 -1
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +459 -56
- package/dist/index.mjs +9 -9
- package/dist/nextjs/index.mjs +2 -2
- package/dist/sitePreviewTypes-BECnq9xI.d.mts +41 -0
- package/dist/sitePreviewTypes-BECnq9xI.d.ts +41 -0
- package/dist/studio/index.d.mts +1 -1
- package/dist/studio/index.d.ts +1 -1
- package/dist/studio-pages/index.d.mts +3 -3
- package/dist/studio-pages/index.d.ts +3 -3
- package/dist/studio-pages/index.js +330 -7
- package/dist/studio-pages/index.mjs +10 -3
- package/package.json +1 -1
- package/dist/index-B7QvY3yF.d.mts +0 -245
- package/dist/index-BK03FiEM.d.ts +0 -245
- package/dist/{chunk-BET2YLAS.mjs → chunk-OTHERBGX.mjs} +3 -3
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
import { Field, CollectionConfig, GlobalConfig } from 'payload';
|
|
2
|
+
import { S as SitePreviewLink, a as SitePreviewLocationSummary } from './sitePreviewTypes-BECnq9xI.mjs';
|
|
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
|
+
|
|
5
|
+
type ThemeOption = 'light' | 'dark' | 'brand-light' | 'brand-dark';
|
|
6
|
+
declare const createThemePreferenceField: (defaultTheme?: ThemeOption) => Field;
|
|
7
|
+
declare const themePreferenceField: Field;
|
|
8
|
+
|
|
9
|
+
type StudioSectionRole = 'admin' | 'editor' | 'client';
|
|
10
|
+
type StudioSectionCard = {
|
|
11
|
+
description?: string;
|
|
12
|
+
title: string;
|
|
13
|
+
};
|
|
14
|
+
type StudioSectionComponent = {
|
|
15
|
+
clientProps?: Record<string, unknown>;
|
|
16
|
+
exportName: string;
|
|
17
|
+
path: string;
|
|
18
|
+
};
|
|
19
|
+
type StudioSectionView = {
|
|
20
|
+
Component: StudioSectionComponent;
|
|
21
|
+
path: string;
|
|
22
|
+
};
|
|
23
|
+
type StudioSection = {
|
|
24
|
+
card?: StudioSectionCard;
|
|
25
|
+
href?: string;
|
|
26
|
+
id: string;
|
|
27
|
+
label: string;
|
|
28
|
+
matchPrefixes?: string[];
|
|
29
|
+
roles?: StudioSectionRole[];
|
|
30
|
+
view?: StudioSectionView;
|
|
31
|
+
};
|
|
32
|
+
type ResolvedStudioSection = {
|
|
33
|
+
card?: StudioSectionCard;
|
|
34
|
+
href: string;
|
|
35
|
+
id: string;
|
|
36
|
+
label: string;
|
|
37
|
+
matchPrefixes: string[];
|
|
38
|
+
roles?: StudioSectionRole[];
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
type StudioGlobalLink = {
|
|
42
|
+
description?: string;
|
|
43
|
+
href?: string;
|
|
44
|
+
label: string;
|
|
45
|
+
slug: string;
|
|
46
|
+
};
|
|
47
|
+
type AdminStudioHeaderPreviewConfig = {
|
|
48
|
+
actionHref?: string;
|
|
49
|
+
actionLabel?: string;
|
|
50
|
+
};
|
|
51
|
+
type AdminStudioFooterPreviewConfig = {
|
|
52
|
+
builtByHref?: string;
|
|
53
|
+
builtByLabel?: string;
|
|
54
|
+
description?: string;
|
|
55
|
+
footerCategories?: string[];
|
|
56
|
+
footerLinks?: SitePreviewLink[];
|
|
57
|
+
};
|
|
58
|
+
type AdminStudioSitePreviewConfig = {
|
|
59
|
+
footer?: AdminStudioFooterPreviewConfig;
|
|
60
|
+
header?: AdminStudioHeaderPreviewConfig;
|
|
61
|
+
locationSummary?: SitePreviewLocationSummary;
|
|
62
|
+
};
|
|
63
|
+
interface AdminStudioConfig {
|
|
64
|
+
enabled?: boolean;
|
|
65
|
+
forms?: {
|
|
66
|
+
collectionSlug?: string;
|
|
67
|
+
enabled?: boolean;
|
|
68
|
+
submissionsCollectionSlug?: string;
|
|
69
|
+
uploadsCollectionSlug?: string;
|
|
70
|
+
};
|
|
71
|
+
globals?: StudioGlobalLink[];
|
|
72
|
+
media?: {
|
|
73
|
+
collectionSlug?: string;
|
|
74
|
+
};
|
|
75
|
+
pages?: {
|
|
76
|
+
builderBasePath?: string;
|
|
77
|
+
collectionSlug?: string;
|
|
78
|
+
};
|
|
79
|
+
sitePreview?: AdminStudioSitePreviewConfig;
|
|
80
|
+
sections?: StudioSection[];
|
|
81
|
+
}
|
|
82
|
+
interface AdminConfig {
|
|
83
|
+
brandName: string;
|
|
84
|
+
brandPrimary?: string;
|
|
85
|
+
brandSecondary?: string;
|
|
86
|
+
defaultTheme?: ThemeOption;
|
|
87
|
+
logoUrl?: string;
|
|
88
|
+
basePath?: string;
|
|
89
|
+
studio?: AdminStudioConfig;
|
|
90
|
+
}
|
|
91
|
+
declare function configureAdmin(config: AdminConfig): {
|
|
92
|
+
admin: {
|
|
93
|
+
css: string;
|
|
94
|
+
components: {
|
|
95
|
+
graphics: {
|
|
96
|
+
Logo: {
|
|
97
|
+
exportName: string;
|
|
98
|
+
path: string;
|
|
99
|
+
clientProps: {
|
|
100
|
+
brandName: string;
|
|
101
|
+
logoUrl: string | undefined;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
Icon: {
|
|
105
|
+
exportName: string;
|
|
106
|
+
path: string;
|
|
107
|
+
clientProps: {
|
|
108
|
+
brandName: string;
|
|
109
|
+
logoUrl: string | undefined;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
views: {
|
|
114
|
+
studioMedia?: {
|
|
115
|
+
path: `/${string}`;
|
|
116
|
+
Component: {
|
|
117
|
+
exportName: string;
|
|
118
|
+
path: string;
|
|
119
|
+
clientProps: {
|
|
120
|
+
mediaCollectionSlug: string;
|
|
121
|
+
brandName: string;
|
|
122
|
+
formSubmissionsCollectionSlug: string;
|
|
123
|
+
formsCollectionSlug: string;
|
|
124
|
+
formsEnabled: boolean;
|
|
125
|
+
formUploadsCollectionSlug: string;
|
|
126
|
+
globalsBasePath: `/${string}`;
|
|
127
|
+
globalsExtraMatchPrefixes: `/${string}`[];
|
|
128
|
+
logoUrl: string | undefined;
|
|
129
|
+
pagesCollectionSlug: string;
|
|
130
|
+
sections: ResolvedStudioSection[];
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
} | undefined;
|
|
134
|
+
studioTools?: {
|
|
135
|
+
path: `/${string}`;
|
|
136
|
+
Component: {
|
|
137
|
+
exportName: string;
|
|
138
|
+
path: string;
|
|
139
|
+
clientProps: {
|
|
140
|
+
mediaCollectionSlug: string;
|
|
141
|
+
pagesCollectionSlug: string;
|
|
142
|
+
brandName: string;
|
|
143
|
+
formSubmissionsCollectionSlug: string;
|
|
144
|
+
formsCollectionSlug: string;
|
|
145
|
+
formsEnabled: boolean;
|
|
146
|
+
formUploadsCollectionSlug: string;
|
|
147
|
+
globalsBasePath: `/${string}`;
|
|
148
|
+
globalsExtraMatchPrefixes: `/${string}`[];
|
|
149
|
+
logoUrl: string | undefined;
|
|
150
|
+
sections: ResolvedStudioSection[];
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
} | undefined;
|
|
154
|
+
studioForms?: {
|
|
155
|
+
path: `/${string}`;
|
|
156
|
+
Component: {
|
|
157
|
+
exportName: string;
|
|
158
|
+
path: string;
|
|
159
|
+
clientProps: {
|
|
160
|
+
formsCollectionSlug: string;
|
|
161
|
+
formSubmissionsCollectionSlug: string;
|
|
162
|
+
formUploadsCollectionSlug: string;
|
|
163
|
+
brandName: string;
|
|
164
|
+
formsEnabled: boolean;
|
|
165
|
+
globalsBasePath: `/${string}`;
|
|
166
|
+
globalsExtraMatchPrefixes: `/${string}`[];
|
|
167
|
+
logoUrl: string | undefined;
|
|
168
|
+
mediaCollectionSlug: string;
|
|
169
|
+
pagesCollectionSlug: string;
|
|
170
|
+
sections: ResolvedStudioSection[];
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
} | undefined;
|
|
174
|
+
studioGlobals?: {
|
|
175
|
+
path: `/${string}`;
|
|
176
|
+
Component: {
|
|
177
|
+
exportName: string;
|
|
178
|
+
path: string;
|
|
179
|
+
clientProps: {
|
|
180
|
+
globals: StudioGlobalLink[];
|
|
181
|
+
globalsBasePath: `/${string}`;
|
|
182
|
+
brandName: string;
|
|
183
|
+
formSubmissionsCollectionSlug: string;
|
|
184
|
+
formsCollectionSlug: string;
|
|
185
|
+
formsEnabled: boolean;
|
|
186
|
+
formUploadsCollectionSlug: string;
|
|
187
|
+
globalsExtraMatchPrefixes: `/${string}`[];
|
|
188
|
+
logoUrl: string | undefined;
|
|
189
|
+
mediaCollectionSlug: string;
|
|
190
|
+
pagesCollectionSlug: string;
|
|
191
|
+
sections: ResolvedStudioSection[];
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
} | undefined;
|
|
195
|
+
studioPages?: {
|
|
196
|
+
path: `/${string}`;
|
|
197
|
+
Component: {
|
|
198
|
+
exportName: string;
|
|
199
|
+
path: string;
|
|
200
|
+
clientProps: {
|
|
201
|
+
pagesCollectionSlug: string;
|
|
202
|
+
brandName: string;
|
|
203
|
+
formSubmissionsCollectionSlug: string;
|
|
204
|
+
formsCollectionSlug: string;
|
|
205
|
+
formsEnabled: boolean;
|
|
206
|
+
formUploadsCollectionSlug: string;
|
|
207
|
+
globalsBasePath: `/${string}`;
|
|
208
|
+
globalsExtraMatchPrefixes: `/${string}`[];
|
|
209
|
+
logoUrl: string | undefined;
|
|
210
|
+
mediaCollectionSlug: string;
|
|
211
|
+
sections: ResolvedStudioSection[];
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
} | undefined;
|
|
215
|
+
studioPageEditor?: {
|
|
216
|
+
path: `/${string}`;
|
|
217
|
+
Component: {
|
|
218
|
+
exportName: string;
|
|
219
|
+
path: string;
|
|
220
|
+
clientProps: {
|
|
221
|
+
builderBasePath: string;
|
|
222
|
+
brandName: string;
|
|
223
|
+
formSubmissionsCollectionSlug: string;
|
|
224
|
+
formsCollectionSlug: string;
|
|
225
|
+
formsEnabled: boolean;
|
|
226
|
+
formUploadsCollectionSlug: string;
|
|
227
|
+
globalsBasePath: `/${string}`;
|
|
228
|
+
globalsExtraMatchPrefixes: `/${string}`[];
|
|
229
|
+
logoUrl: string | undefined;
|
|
230
|
+
mediaCollectionSlug: string;
|
|
231
|
+
pagesCollectionSlug: string;
|
|
232
|
+
sections: ResolvedStudioSection[];
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
} | undefined;
|
|
236
|
+
studioContactForm?: {
|
|
237
|
+
path: `/${string}`;
|
|
238
|
+
Component: {
|
|
239
|
+
exportName: string;
|
|
240
|
+
path: string;
|
|
241
|
+
clientProps: {
|
|
242
|
+
globalSlug: string;
|
|
243
|
+
globalsBasePath: `/${string}`;
|
|
244
|
+
brandName: string;
|
|
245
|
+
formSubmissionsCollectionSlug: string;
|
|
246
|
+
formsCollectionSlug: string;
|
|
247
|
+
formsEnabled: boolean;
|
|
248
|
+
formUploadsCollectionSlug: string;
|
|
249
|
+
globalsExtraMatchPrefixes: `/${string}`[];
|
|
250
|
+
logoUrl: string | undefined;
|
|
251
|
+
mediaCollectionSlug: string;
|
|
252
|
+
pagesCollectionSlug: string;
|
|
253
|
+
sections: ResolvedStudioSection[];
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
} | undefined;
|
|
257
|
+
dashboard: {
|
|
258
|
+
Component: {
|
|
259
|
+
exportName: string;
|
|
260
|
+
path: string;
|
|
261
|
+
clientProps: {
|
|
262
|
+
brandName: string;
|
|
263
|
+
formSubmissionsCollectionSlug: string;
|
|
264
|
+
formsCollectionSlug: string;
|
|
265
|
+
formsEnabled: boolean;
|
|
266
|
+
formUploadsCollectionSlug: string;
|
|
267
|
+
globalsBasePath: `/${string}`;
|
|
268
|
+
globalsExtraMatchPrefixes: `/${string}`[];
|
|
269
|
+
logoUrl: string | undefined;
|
|
270
|
+
mediaCollectionSlug: string;
|
|
271
|
+
pagesCollectionSlug: string;
|
|
272
|
+
sections: ResolvedStudioSection[];
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
providers: {
|
|
278
|
+
exportName: string;
|
|
279
|
+
path: string;
|
|
280
|
+
clientProps: {
|
|
281
|
+
defaultTheme: ThemeOption;
|
|
282
|
+
};
|
|
283
|
+
}[];
|
|
284
|
+
afterNavLinks: {
|
|
285
|
+
exportName: string;
|
|
286
|
+
path: string;
|
|
287
|
+
clientProps: {
|
|
288
|
+
defaultTheme: ThemeOption;
|
|
289
|
+
};
|
|
290
|
+
}[];
|
|
291
|
+
Nav?: {
|
|
292
|
+
exportName: string;
|
|
293
|
+
path: string;
|
|
294
|
+
clientProps: {
|
|
295
|
+
brandName: string;
|
|
296
|
+
formSubmissionsCollectionSlug: string;
|
|
297
|
+
formsCollectionSlug: string;
|
|
298
|
+
formsEnabled: boolean;
|
|
299
|
+
formUploadsCollectionSlug: string;
|
|
300
|
+
globalsBasePath: `/${string}`;
|
|
301
|
+
globalsExtraMatchPrefixes: `/${string}`[];
|
|
302
|
+
logoUrl: string | undefined;
|
|
303
|
+
mediaCollectionSlug: string;
|
|
304
|
+
pagesCollectionSlug: string;
|
|
305
|
+
sections: ResolvedStudioSection[];
|
|
306
|
+
};
|
|
307
|
+
} | undefined;
|
|
308
|
+
};
|
|
309
|
+
meta: {
|
|
310
|
+
titleSuffix: string;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
brandName: string;
|
|
314
|
+
brandPrimary: string;
|
|
315
|
+
brandSecondary: string;
|
|
316
|
+
defaultTheme: ThemeOption;
|
|
317
|
+
wrapUsers(usersCollection: CollectionConfig): CollectionConfig;
|
|
318
|
+
wrapPagesCollection(pagesCollection: CollectionConfig): CollectionConfig;
|
|
319
|
+
wrapMediaCollection(mediaCollection: CollectionConfig): CollectionConfig;
|
|
320
|
+
wrapFormsCollection(formsCollection: CollectionConfig): CollectionConfig;
|
|
321
|
+
wrapFormSubmissionsCollection(formSubmissionsCollection: CollectionConfig): CollectionConfig;
|
|
322
|
+
wrapFormUploadsCollection(formUploadsCollection: CollectionConfig): CollectionConfig;
|
|
323
|
+
wrapGlobals(globals: GlobalConfig[]): GlobalConfig[];
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
declare function withTooltips(fields: Field[], customTooltips?: Record<string, string>): Field[];
|
|
327
|
+
|
|
328
|
+
declare const createHeaderNavItemsField: () => Field;
|
|
329
|
+
|
|
330
|
+
type CreateSocialMediaConnectionsFieldOptions = {
|
|
331
|
+
description?: string;
|
|
332
|
+
label?: string;
|
|
333
|
+
name?: string;
|
|
334
|
+
platforms?: SocialMediaPlatform[];
|
|
335
|
+
};
|
|
336
|
+
declare const createSocialMediaConnectionsField: (options?: CreateSocialMediaConnectionsFieldOptions) => Field;
|
|
337
|
+
declare const socialMediaConnectionsField: Field;
|
|
338
|
+
|
|
339
|
+
type CreateSocialMediaGlobalOptions = {
|
|
340
|
+
description?: string;
|
|
341
|
+
fieldOptions?: Omit<CreateSocialMediaConnectionsFieldOptions, 'label' | 'name'>;
|
|
342
|
+
slug?: string;
|
|
343
|
+
};
|
|
344
|
+
declare const createSocialMediaGlobal: (options?: CreateSocialMediaGlobalOptions) => GlobalConfig;
|
|
345
|
+
|
|
346
|
+
type index_AdminConfig = AdminConfig;
|
|
347
|
+
type index_AdminStudioConfig = AdminStudioConfig;
|
|
348
|
+
type index_AdminStudioFooterPreviewConfig = AdminStudioFooterPreviewConfig;
|
|
349
|
+
type index_AdminStudioHeaderPreviewConfig = AdminStudioHeaderPreviewConfig;
|
|
350
|
+
type index_AdminStudioSitePreviewConfig = AdminStudioSitePreviewConfig;
|
|
351
|
+
type index_CreateSocialMediaConnectionsFieldOptions = CreateSocialMediaConnectionsFieldOptions;
|
|
352
|
+
type index_CreateSocialMediaGlobalOptions = CreateSocialMediaGlobalOptions;
|
|
353
|
+
type index_ResolvedStudioSection = ResolvedStudioSection;
|
|
354
|
+
declare const index_SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM: typeof SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM;
|
|
355
|
+
declare const index_SOCIAL_MEDIA_ICON_OPTIONS: typeof SOCIAL_MEDIA_ICON_OPTIONS;
|
|
356
|
+
declare const index_SOCIAL_MEDIA_PLATFORMS: typeof SOCIAL_MEDIA_PLATFORMS;
|
|
357
|
+
declare const index_SOCIAL_MEDIA_PLATFORM_LABELS: typeof SOCIAL_MEDIA_PLATFORM_LABELS;
|
|
358
|
+
declare const index_SocialMediaGlobalData: typeof SocialMediaGlobalData;
|
|
359
|
+
declare const index_SocialMediaIconLibrary: typeof SocialMediaIconLibrary;
|
|
360
|
+
declare const index_SocialMediaIconOption: typeof SocialMediaIconOption;
|
|
361
|
+
declare const index_SocialMediaPlatform: typeof SocialMediaPlatform;
|
|
362
|
+
declare const index_SocialMediaProfileData: typeof SocialMediaProfileData;
|
|
363
|
+
declare const index_SocialMediaProfilesData: typeof SocialMediaProfilesData;
|
|
364
|
+
type index_StudioGlobalLink = StudioGlobalLink;
|
|
365
|
+
type index_StudioSection = StudioSection;
|
|
366
|
+
type index_StudioSectionCard = StudioSectionCard;
|
|
367
|
+
type index_StudioSectionComponent = StudioSectionComponent;
|
|
368
|
+
type index_StudioSectionRole = StudioSectionRole;
|
|
369
|
+
type index_StudioSectionView = StudioSectionView;
|
|
370
|
+
declare const index_configureAdmin: typeof configureAdmin;
|
|
371
|
+
declare const index_createHeaderNavItemsField: typeof createHeaderNavItemsField;
|
|
372
|
+
declare const index_createSocialMediaConnectionsField: typeof createSocialMediaConnectionsField;
|
|
373
|
+
declare const index_createSocialMediaGlobal: typeof createSocialMediaGlobal;
|
|
374
|
+
declare const index_createThemePreferenceField: typeof createThemePreferenceField;
|
|
375
|
+
declare const index_socialMediaConnectionsField: typeof socialMediaConnectionsField;
|
|
376
|
+
declare const index_themePreferenceField: typeof themePreferenceField;
|
|
377
|
+
declare const index_withTooltips: typeof withTooltips;
|
|
378
|
+
declare namespace index {
|
|
379
|
+
export { type index_AdminConfig as AdminConfig, type index_AdminStudioConfig as AdminStudioConfig, type index_AdminStudioFooterPreviewConfig as AdminStudioFooterPreviewConfig, type index_AdminStudioHeaderPreviewConfig as AdminStudioHeaderPreviewConfig, type index_AdminStudioSitePreviewConfig as AdminStudioSitePreviewConfig, type index_CreateSocialMediaConnectionsFieldOptions as CreateSocialMediaConnectionsFieldOptions, type index_CreateSocialMediaGlobalOptions as CreateSocialMediaGlobalOptions, type index_ResolvedStudioSection as ResolvedStudioSection, index_SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM as SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM, index_SOCIAL_MEDIA_ICON_OPTIONS as SOCIAL_MEDIA_ICON_OPTIONS, index_SOCIAL_MEDIA_PLATFORMS as SOCIAL_MEDIA_PLATFORMS, index_SOCIAL_MEDIA_PLATFORM_LABELS as SOCIAL_MEDIA_PLATFORM_LABELS, index_SocialMediaGlobalData as SocialMediaGlobalData, index_SocialMediaIconLibrary as SocialMediaIconLibrary, index_SocialMediaIconOption as SocialMediaIconOption, index_SocialMediaPlatform as SocialMediaPlatform, index_SocialMediaProfileData as SocialMediaProfileData, index_SocialMediaProfilesData as SocialMediaProfilesData, type index_StudioGlobalLink as StudioGlobalLink, type index_StudioSection as StudioSection, type index_StudioSectionCard as StudioSectionCard, type index_StudioSectionComponent as StudioSectionComponent, type index_StudioSectionRole as StudioSectionRole, type index_StudioSectionView as StudioSectionView, index_configureAdmin as configureAdmin, index_createHeaderNavItemsField as createHeaderNavItemsField, index_createSocialMediaConnectionsField as createSocialMediaConnectionsField, index_createSocialMediaGlobal as createSocialMediaGlobal, index_createThemePreferenceField as createThemePreferenceField, index_socialMediaConnectionsField as socialMediaConnectionsField, index_themePreferenceField as themePreferenceField, index_withTooltips as withTooltips };
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export { type AdminConfig as A, type CreateSocialMediaConnectionsFieldOptions as C, type ResolvedStudioSection as R, type StudioGlobalLink as S, type AdminStudioConfig as a, type AdminStudioFooterPreviewConfig as b, type AdminStudioHeaderPreviewConfig as c, type AdminStudioSitePreviewConfig as d, type CreateSocialMediaGlobalOptions as e, type StudioSection as f, type StudioSectionCard as g, type StudioSectionComponent as h, index as i, type StudioSectionRole as j, type StudioSectionView as k, configureAdmin as l, createHeaderNavItemsField as m, createSocialMediaConnectionsField as n, createSocialMediaGlobal as o, createThemePreferenceField as p, socialMediaConnectionsField as s, themePreferenceField as t, withTooltips as w };
|
|
@@ -154,4 +154,4 @@ declare namespace index {
|
|
|
154
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 };
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
export { type ImageUploadOptimizationOptions as I, type StudioDocumentV1 as S, type
|
|
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 };
|
|
@@ -154,4 +154,4 @@ declare namespace index {
|
|
|
154
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 };
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
export { type ImageUploadOptimizationOptions as I, type StudioDocumentV1 as S, type
|
|
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 };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import { b as SiteFooterPreviewData, c as SiteHeaderPreviewData, S as SitePreviewLink, a as SitePreviewLocationSummary, d as SitePreviewSocialLink } from './sitePreviewTypes-BECnq9xI.mjs';
|
|
3
4
|
|
|
4
5
|
type AdminRole = 'admin' | 'editor' | 'client';
|
|
5
6
|
type AdminNavIcon = 'dashboard' | 'pages' | 'forms' | 'globals' | 'media' | 'tools' | 'account';
|
|
@@ -113,6 +114,11 @@ type index_MediaListItemProps = MediaListItemProps;
|
|
|
113
114
|
type index_NestedNavItem = NestedNavItem;
|
|
114
115
|
type index_NestedNavItemInput = NestedNavItemInput;
|
|
115
116
|
type index_NestedNavTree = NestedNavTree;
|
|
117
|
+
declare const index_SiteFooterPreviewData: typeof SiteFooterPreviewData;
|
|
118
|
+
declare const index_SiteHeaderPreviewData: typeof SiteHeaderPreviewData;
|
|
119
|
+
declare const index_SitePreviewLink: typeof SitePreviewLink;
|
|
120
|
+
declare const index_SitePreviewLocationSummary: typeof SitePreviewLocationSummary;
|
|
121
|
+
declare const index_SitePreviewSocialLink: typeof SitePreviewSocialLink;
|
|
116
122
|
declare const index_buildAdminPageLinkOptions: typeof buildAdminPageLinkOptions;
|
|
117
123
|
declare const index_buildNestedNavTree: typeof buildNestedNavTree;
|
|
118
124
|
declare const index_getAdminNavRows: typeof getAdminNavRows;
|
|
@@ -122,7 +128,7 @@ declare const index_normalizeNestedNavItems: typeof normalizeNestedNavItems;
|
|
|
122
128
|
declare const index_parseAdminHeaderNavFromForm: typeof parseAdminHeaderNavFromForm;
|
|
123
129
|
declare const index_roleCanAccessNav: typeof roleCanAccessNav;
|
|
124
130
|
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 };
|
|
131
|
+
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_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
132
|
}
|
|
127
133
|
|
|
128
134
|
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 };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import { b as SiteFooterPreviewData, c as SiteHeaderPreviewData, S as SitePreviewLink, a as SitePreviewLocationSummary, d as SitePreviewSocialLink } from './sitePreviewTypes-BECnq9xI.js';
|
|
3
4
|
|
|
4
5
|
type AdminRole = 'admin' | 'editor' | 'client';
|
|
5
6
|
type AdminNavIcon = 'dashboard' | 'pages' | 'forms' | 'globals' | 'media' | 'tools' | 'account';
|
|
@@ -113,6 +114,11 @@ type index_MediaListItemProps = MediaListItemProps;
|
|
|
113
114
|
type index_NestedNavItem = NestedNavItem;
|
|
114
115
|
type index_NestedNavItemInput = NestedNavItemInput;
|
|
115
116
|
type index_NestedNavTree = NestedNavTree;
|
|
117
|
+
declare const index_SiteFooterPreviewData: typeof SiteFooterPreviewData;
|
|
118
|
+
declare const index_SiteHeaderPreviewData: typeof SiteHeaderPreviewData;
|
|
119
|
+
declare const index_SitePreviewLink: typeof SitePreviewLink;
|
|
120
|
+
declare const index_SitePreviewLocationSummary: typeof SitePreviewLocationSummary;
|
|
121
|
+
declare const index_SitePreviewSocialLink: typeof SitePreviewSocialLink;
|
|
116
122
|
declare const index_buildAdminPageLinkOptions: typeof buildAdminPageLinkOptions;
|
|
117
123
|
declare const index_buildNestedNavTree: typeof buildNestedNavTree;
|
|
118
124
|
declare const index_getAdminNavRows: typeof getAdminNavRows;
|
|
@@ -122,7 +128,7 @@ declare const index_normalizeNestedNavItems: typeof normalizeNestedNavItems;
|
|
|
122
128
|
declare const index_parseAdminHeaderNavFromForm: typeof parseAdminHeaderNavFromForm;
|
|
123
129
|
declare const index_roleCanAccessNav: typeof roleCanAccessNav;
|
|
124
130
|
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 };
|
|
131
|
+
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_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
132
|
}
|
|
127
133
|
|
|
128
134
|
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 };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export { i as admin } from './index-
|
|
2
|
-
export { i as adminApp } from './index-
|
|
1
|
+
export { i as admin } from './index-DH9KGEZ8.mjs';
|
|
2
|
+
export { i as adminApp } from './index-c5-qTRbH.mjs';
|
|
3
3
|
export { i as blocks } from './index-CluwY0ZQ.mjs';
|
|
4
4
|
export { i as nextjs } from './index-D8BNfUJb.mjs';
|
|
5
|
-
export { i as studio } from './index-
|
|
6
|
-
export { i as studioPages } from './index-
|
|
5
|
+
export { i as studio } from './index-DWmudwDm.mjs';
|
|
6
|
+
export { i as studioPages } from './index-Cv-6qnrw.mjs';
|
|
7
7
|
import 'payload';
|
|
8
|
+
import './sitePreviewTypes-BECnq9xI.mjs';
|
|
8
9
|
import './socialMedia-C05Iy-SV.mjs';
|
|
9
10
|
import 'react/jsx-runtime';
|
|
10
11
|
import 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export { i as admin } from './index-
|
|
2
|
-
export { i as adminApp } from './index-
|
|
1
|
+
export { i as admin } from './index-D5yjivF7.js';
|
|
2
|
+
export { i as adminApp } from './index-yfpxsgUu.js';
|
|
3
3
|
export { i as blocks } from './index-CluwY0ZQ.js';
|
|
4
4
|
export { i as nextjs } from './index-DD_E2UfJ.js';
|
|
5
|
-
export { i as studio } from './index-
|
|
6
|
-
export { i as studioPages } from './index-
|
|
5
|
+
export { i as studio } from './index-DWmudwDm.js';
|
|
6
|
+
export { i as studioPages } from './index-Crx_MtPw.js';
|
|
7
7
|
import 'payload';
|
|
8
|
+
import './sitePreviewTypes-BECnq9xI.js';
|
|
8
9
|
import './socialMedia-C05Iy-SV.js';
|
|
9
10
|
import 'react/jsx-runtime';
|
|
10
11
|
import 'react';
|