@orion-studios/payload-studio 0.6.0-beta.2 → 0.6.0-beta.21
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.d.mts +1 -1
- package/dist/admin/client.d.ts +1 -1
- package/dist/admin/client.js +4026 -1943
- package/dist/admin/client.mjs +3804 -1727
- package/dist/admin/index.d.mts +2 -2
- package/dist/admin/index.d.ts +2 -2
- package/dist/admin/index.js +140 -17
- package/dist/admin/index.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 +466 -41
- package/dist/admin.css +18 -2
- package/dist/{chunk-PF3EBZXF.mjs → chunk-4LSIUED5.mjs} +7 -2
- package/dist/{chunk-XKUTZ7IU.mjs → chunk-EDW7DPXW.mjs} +1 -1
- package/dist/{chunk-OTHERBGX.mjs → chunk-H4GTEY24.mjs} +1 -1
- package/dist/{chunk-QJAWO6K3.mjs → chunk-JC3UV74N.mjs} +140 -17
- package/dist/index-BV0vEGl6.d.ts +188 -0
- package/dist/{index-52HdVLQq.d.ts → index-DAdN56fM.d.ts} +1 -1
- package/dist/index-DLfPOqYA.d.mts +188 -0
- package/dist/{index-DEQC3Dwj.d.mts → index-G_uTNffQ.d.mts} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +147 -19
- package/dist/index.mjs +6 -6
- package/dist/nextjs/index.js +7 -2
- 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 +18 -5
- package/dist/studio-pages/client.js +11 -3
- package/dist/studio-pages/client.mjs +11 -3
- package/dist/studio-pages/index.js +7 -2
- package/dist/studio-pages/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/index-B6_D4Hm4.d.ts +0 -439
- package/dist/index-CYaWadBl.d.mts +0 -439
|
@@ -53,7 +53,7 @@ var createThemePreferenceField = (defaultTheme = "brand-light") => ({
|
|
|
53
53
|
var themePreferenceField = createThemePreferenceField("brand-light");
|
|
54
54
|
|
|
55
55
|
// src/shared/studioSections.ts
|
|
56
|
-
var studioRoles = /* @__PURE__ */ new Set(["admin", "editor", "client"]);
|
|
56
|
+
var studioRoles = /* @__PURE__ */ new Set(["admin", "developer", "editor", "client"]);
|
|
57
57
|
var studioIcons = new Set(adminNavIcons);
|
|
58
58
|
var isRecord = (value) => Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
59
59
|
var isAbsoluteExternalURL = (value) => /^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(value) || value.startsWith("//");
|
|
@@ -186,8 +186,10 @@ function configureAdmin(config) {
|
|
|
186
186
|
brandPrimary = "#3b82f6",
|
|
187
187
|
brandSecondary = "#8b5cf6",
|
|
188
188
|
defaultTheme = "brand-light",
|
|
189
|
+
logoOnDarkUrl,
|
|
189
190
|
logoUrl,
|
|
190
|
-
allowThemePreference = false
|
|
191
|
+
allowThemePreference = false,
|
|
192
|
+
userSessionDurationSeconds = 60 * 60 * 24
|
|
191
193
|
} = config;
|
|
192
194
|
const studioEnabled = config.studio?.enabled ?? true;
|
|
193
195
|
const formsEnabled = config.studio?.forms?.enabled ?? false;
|
|
@@ -292,6 +294,49 @@ function configureAdmin(config) {
|
|
|
292
294
|
}
|
|
293
295
|
};
|
|
294
296
|
};
|
|
297
|
+
const attachStudioEditRedirectToCollection = (collection, options) => {
|
|
298
|
+
if (!studioEnabled) {
|
|
299
|
+
return collection;
|
|
300
|
+
}
|
|
301
|
+
const collectionWithBreadcrumb = attachStudioBackBreadcrumbToCollection(collection);
|
|
302
|
+
const existingViews = collectionWithBreadcrumb.admin?.components?.views;
|
|
303
|
+
const existingEditViews = existingViews?.edit;
|
|
304
|
+
const hasCustomEditView = Boolean(
|
|
305
|
+
existingEditViews?.root || existingEditViews?.default && typeof existingEditViews.default === "object" && existingEditViews.default.Component
|
|
306
|
+
);
|
|
307
|
+
if (hasCustomEditView) {
|
|
308
|
+
return collectionWithBreadcrumb;
|
|
309
|
+
}
|
|
310
|
+
return {
|
|
311
|
+
...collectionWithBreadcrumb,
|
|
312
|
+
admin: {
|
|
313
|
+
...collectionWithBreadcrumb.admin,
|
|
314
|
+
components: {
|
|
315
|
+
...collectionWithBreadcrumb.admin?.components,
|
|
316
|
+
views: {
|
|
317
|
+
...existingViews,
|
|
318
|
+
edit: {
|
|
319
|
+
...existingEditViews,
|
|
320
|
+
default: {
|
|
321
|
+
...typeof existingEditViews?.default === "object" ? existingEditViews.default : {},
|
|
322
|
+
Component: {
|
|
323
|
+
exportName: "StudioDocumentRedirect",
|
|
324
|
+
path: clientPath,
|
|
325
|
+
clientProps: {
|
|
326
|
+
description: options.description,
|
|
327
|
+
...options.emptyHref ? { emptyHref: options.emptyHref } : {},
|
|
328
|
+
...options.emptyLabel ? { emptyLabel: options.emptyLabel } : {},
|
|
329
|
+
pathBase: options.pathBase,
|
|
330
|
+
title: options.title
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
};
|
|
295
340
|
return {
|
|
296
341
|
admin: {
|
|
297
342
|
css: cssPath,
|
|
@@ -309,6 +354,7 @@ function configureAdmin(config) {
|
|
|
309
354
|
path: clientPath,
|
|
310
355
|
clientProps: {
|
|
311
356
|
brandName,
|
|
357
|
+
logoOnDarkUrl,
|
|
312
358
|
logoUrl
|
|
313
359
|
}
|
|
314
360
|
},
|
|
@@ -317,6 +363,7 @@ function configureAdmin(config) {
|
|
|
317
363
|
path: clientPath,
|
|
318
364
|
clientProps: {
|
|
319
365
|
brandName,
|
|
366
|
+
logoOnDarkUrl,
|
|
320
367
|
logoUrl
|
|
321
368
|
}
|
|
322
369
|
}
|
|
@@ -331,6 +378,7 @@ function configureAdmin(config) {
|
|
|
331
378
|
},
|
|
332
379
|
...studioEnabled ? {
|
|
333
380
|
studioGlobals: {
|
|
381
|
+
exact: true,
|
|
334
382
|
path: globalsBasePath,
|
|
335
383
|
Component: {
|
|
336
384
|
exportName: "AdminStudioGlobalsView",
|
|
@@ -342,10 +390,11 @@ function configureAdmin(config) {
|
|
|
342
390
|
}
|
|
343
391
|
}
|
|
344
392
|
},
|
|
345
|
-
|
|
346
|
-
|
|
393
|
+
studioPageNew: {
|
|
394
|
+
exact: true,
|
|
395
|
+
path: `${pagesBasePath}/new`,
|
|
347
396
|
Component: {
|
|
348
|
-
exportName: "
|
|
397
|
+
exportName: "AdminStudioNewPageView",
|
|
349
398
|
path: clientPath,
|
|
350
399
|
clientProps: {
|
|
351
400
|
...studioNavClientProps,
|
|
@@ -354,6 +403,7 @@ function configureAdmin(config) {
|
|
|
354
403
|
}
|
|
355
404
|
},
|
|
356
405
|
studioPageEditor: {
|
|
406
|
+
exact: true,
|
|
357
407
|
path: `${pagesBasePath}/:id`,
|
|
358
408
|
Component: {
|
|
359
409
|
exportName: "AdminStudioPageEditView",
|
|
@@ -364,10 +414,11 @@ function configureAdmin(config) {
|
|
|
364
414
|
}
|
|
365
415
|
}
|
|
366
416
|
},
|
|
367
|
-
|
|
368
|
-
|
|
417
|
+
studioPages: {
|
|
418
|
+
exact: true,
|
|
419
|
+
path: pagesBasePath,
|
|
369
420
|
Component: {
|
|
370
|
-
exportName: "
|
|
421
|
+
exportName: "AdminStudioPagesListView",
|
|
371
422
|
path: clientPath,
|
|
372
423
|
clientProps: {
|
|
373
424
|
...studioNavClientProps,
|
|
@@ -376,6 +427,7 @@ function configureAdmin(config) {
|
|
|
376
427
|
}
|
|
377
428
|
},
|
|
378
429
|
studioContactForm: {
|
|
430
|
+
exact: true,
|
|
379
431
|
path: contactFormStudioPath,
|
|
380
432
|
Component: {
|
|
381
433
|
exportName: "AdminStudioContactFormView",
|
|
@@ -388,7 +440,47 @@ function configureAdmin(config) {
|
|
|
388
440
|
}
|
|
389
441
|
},
|
|
390
442
|
...formsEnabled ? {
|
|
443
|
+
studioFormSubmission: {
|
|
444
|
+
exact: true,
|
|
445
|
+
path: `${formsBasePath}/submissions/:id`,
|
|
446
|
+
Component: {
|
|
447
|
+
exportName: "AdminStudioFormSubmissionView",
|
|
448
|
+
path: clientPath,
|
|
449
|
+
clientProps: {
|
|
450
|
+
...studioNavClientProps,
|
|
451
|
+
formsCollectionSlug,
|
|
452
|
+
formSubmissionsCollectionSlug,
|
|
453
|
+
formUploadsCollectionSlug
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
studioFormUpload: {
|
|
458
|
+
exact: true,
|
|
459
|
+
path: `${formsBasePath}/uploads/:id`,
|
|
460
|
+
Component: {
|
|
461
|
+
exportName: "AdminStudioFormUploadView",
|
|
462
|
+
path: clientPath,
|
|
463
|
+
clientProps: {
|
|
464
|
+
...studioNavClientProps,
|
|
465
|
+
formUploadsCollectionSlug
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
studioFormDetail: {
|
|
470
|
+
exact: true,
|
|
471
|
+
path: `${formsBasePath}/:id`,
|
|
472
|
+
Component: {
|
|
473
|
+
exportName: "AdminStudioFormDetailView",
|
|
474
|
+
path: clientPath,
|
|
475
|
+
clientProps: {
|
|
476
|
+
...studioNavClientProps,
|
|
477
|
+
formsCollectionSlug,
|
|
478
|
+
formSubmissionsCollectionSlug
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
},
|
|
391
482
|
studioForms: {
|
|
483
|
+
exact: true,
|
|
392
484
|
path: formsBasePath,
|
|
393
485
|
Component: {
|
|
394
486
|
exportName: "AdminStudioFormsView",
|
|
@@ -402,10 +494,11 @@ function configureAdmin(config) {
|
|
|
402
494
|
}
|
|
403
495
|
}
|
|
404
496
|
} : {},
|
|
405
|
-
|
|
406
|
-
|
|
497
|
+
studioMediaItem: {
|
|
498
|
+
exact: true,
|
|
499
|
+
path: `${mediaBasePath}/:id`,
|
|
407
500
|
Component: {
|
|
408
|
-
exportName: "
|
|
501
|
+
exportName: "AdminStudioMediaItemView",
|
|
409
502
|
path: clientPath,
|
|
410
503
|
clientProps: {
|
|
411
504
|
...studioNavClientProps,
|
|
@@ -413,10 +506,11 @@ function configureAdmin(config) {
|
|
|
413
506
|
}
|
|
414
507
|
}
|
|
415
508
|
},
|
|
416
|
-
|
|
417
|
-
|
|
509
|
+
studioMedia: {
|
|
510
|
+
exact: true,
|
|
511
|
+
path: mediaBasePath,
|
|
418
512
|
Component: {
|
|
419
|
-
exportName: "
|
|
513
|
+
exportName: "AdminStudioMediaView",
|
|
420
514
|
path: clientPath,
|
|
421
515
|
clientProps: {
|
|
422
516
|
...studioNavClientProps,
|
|
@@ -425,6 +519,7 @@ function configureAdmin(config) {
|
|
|
425
519
|
}
|
|
426
520
|
},
|
|
427
521
|
studioTools: {
|
|
522
|
+
exact: true,
|
|
428
523
|
path: toolsBasePath,
|
|
429
524
|
Component: {
|
|
430
525
|
exportName: "AdminStudioToolsView",
|
|
@@ -469,6 +564,7 @@ function configureAdmin(config) {
|
|
|
469
564
|
path: clientPath,
|
|
470
565
|
clientProps: {
|
|
471
566
|
brandName,
|
|
567
|
+
logoOnDarkUrl,
|
|
472
568
|
logoUrl
|
|
473
569
|
}
|
|
474
570
|
}
|
|
@@ -505,8 +601,17 @@ function configureAdmin(config) {
|
|
|
505
601
|
const hasThemePreference = existingFields.some(
|
|
506
602
|
(field) => typeof field === "object" && field !== null && "name" in field && field.name === "themePreference"
|
|
507
603
|
);
|
|
604
|
+
const normalizedAuth = usersCollection.auth === true ? {
|
|
605
|
+
tokenExpiration: userSessionDurationSeconds,
|
|
606
|
+
useSessions: true
|
|
607
|
+
} : usersCollection.auth && typeof usersCollection.auth === "object" ? {
|
|
608
|
+
...usersCollection.auth,
|
|
609
|
+
tokenExpiration: usersCollection.auth.tokenExpiration ?? userSessionDurationSeconds,
|
|
610
|
+
useSessions: usersCollection.auth.useSessions ?? true
|
|
611
|
+
} : usersCollection.auth;
|
|
508
612
|
const nextCollection = {
|
|
509
613
|
...usersCollection,
|
|
614
|
+
auth: normalizedAuth,
|
|
510
615
|
fields: !allowThemePreference || hasThemePreference ? existingFields : [...existingFields, createThemePreferenceField(defaultTheme)]
|
|
511
616
|
};
|
|
512
617
|
return attachStudioBackBreadcrumbToCollection(nextCollection);
|
|
@@ -568,13 +673,31 @@ function configureAdmin(config) {
|
|
|
568
673
|
return attachStudioBackBreadcrumbToCollection(mediaCollection);
|
|
569
674
|
},
|
|
570
675
|
wrapFormsCollection(formsCollection) {
|
|
571
|
-
return
|
|
676
|
+
return attachStudioEditRedirectToCollection(formsCollection, {
|
|
677
|
+
description: "Redirecting to the Studio form workspace.",
|
|
678
|
+
emptyHref: formsBasePath,
|
|
679
|
+
emptyLabel: "Open Forms",
|
|
680
|
+
pathBase: formsBasePath,
|
|
681
|
+
title: "Opening Form..."
|
|
682
|
+
});
|
|
572
683
|
},
|
|
573
684
|
wrapFormSubmissionsCollection(formSubmissionsCollection) {
|
|
574
|
-
return
|
|
685
|
+
return attachStudioEditRedirectToCollection(formSubmissionsCollection, {
|
|
686
|
+
description: "Redirecting to the Studio submission workspace.",
|
|
687
|
+
emptyHref: formsBasePath,
|
|
688
|
+
emptyLabel: "Open Forms",
|
|
689
|
+
pathBase: `${formsBasePath}/submissions`,
|
|
690
|
+
title: "Opening Submission..."
|
|
691
|
+
});
|
|
575
692
|
},
|
|
576
693
|
wrapFormUploadsCollection(formUploadsCollection) {
|
|
577
|
-
return
|
|
694
|
+
return attachStudioEditRedirectToCollection(formUploadsCollection, {
|
|
695
|
+
description: "Redirecting to the Studio upload workspace.",
|
|
696
|
+
emptyHref: formsBasePath,
|
|
697
|
+
emptyLabel: "Open Forms",
|
|
698
|
+
pathBase: `${formsBasePath}/uploads`,
|
|
699
|
+
title: "Opening Upload..."
|
|
700
|
+
});
|
|
578
701
|
},
|
|
579
702
|
wrapGlobals(globals2) {
|
|
580
703
|
const labelMap = {
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { Field, CollectionConfig, GlobalConfig } from 'payload';
|
|
2
|
+
import { a as AdminNavIcon, e as SitePreviewLink, f as SitePreviewLocationSummary } from './sitePreviewTypes-BrJwGzJj.js';
|
|
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
|
+
|
|
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' | 'developer' | '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 StudioDashboardPanelSpan = 'full' | 'half';
|
|
24
|
+
type StudioDashboardPanel = {
|
|
25
|
+
Component: StudioSectionComponent;
|
|
26
|
+
priority?: number;
|
|
27
|
+
roles?: StudioSectionRole[];
|
|
28
|
+
span?: StudioDashboardPanelSpan;
|
|
29
|
+
};
|
|
30
|
+
type StudioSection = {
|
|
31
|
+
card?: StudioSectionCard;
|
|
32
|
+
dashboard?: StudioDashboardPanel;
|
|
33
|
+
href?: string;
|
|
34
|
+
id: string;
|
|
35
|
+
icon?: AdminNavIcon;
|
|
36
|
+
label: string;
|
|
37
|
+
matchPrefixes?: string[];
|
|
38
|
+
roles?: StudioSectionRole[];
|
|
39
|
+
view?: StudioSectionView;
|
|
40
|
+
};
|
|
41
|
+
type ResolvedStudioSection = {
|
|
42
|
+
card?: StudioSectionCard;
|
|
43
|
+
href: string;
|
|
44
|
+
id: string;
|
|
45
|
+
icon?: AdminNavIcon;
|
|
46
|
+
label: string;
|
|
47
|
+
matchPrefixes: string[];
|
|
48
|
+
roles?: StudioSectionRole[];
|
|
49
|
+
};
|
|
50
|
+
type ResolvedStudioDashboardPanel = {
|
|
51
|
+
Component: StudioSectionComponent;
|
|
52
|
+
href: string;
|
|
53
|
+
id: string;
|
|
54
|
+
label: string;
|
|
55
|
+
priority: number;
|
|
56
|
+
roles?: StudioSectionRole[];
|
|
57
|
+
span: StudioDashboardPanelSpan;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
type StudioGlobalLink = {
|
|
61
|
+
description?: string;
|
|
62
|
+
href?: string;
|
|
63
|
+
label: string;
|
|
64
|
+
slug: string;
|
|
65
|
+
};
|
|
66
|
+
type AdminStudioHeaderPreviewConfig = {
|
|
67
|
+
actionHref?: string;
|
|
68
|
+
actionLabel?: string;
|
|
69
|
+
};
|
|
70
|
+
type AdminStudioFooterPreviewConfig = {
|
|
71
|
+
builtByHref?: string;
|
|
72
|
+
builtByLabel?: string;
|
|
73
|
+
description?: string;
|
|
74
|
+
footerCategories?: string[];
|
|
75
|
+
footerLinks?: SitePreviewLink[];
|
|
76
|
+
};
|
|
77
|
+
type AdminStudioSitePreviewConfig = {
|
|
78
|
+
footer?: AdminStudioFooterPreviewConfig;
|
|
79
|
+
header?: AdminStudioHeaderPreviewConfig;
|
|
80
|
+
locationSummary?: SitePreviewLocationSummary;
|
|
81
|
+
};
|
|
82
|
+
interface AdminStudioConfig {
|
|
83
|
+
enabled?: boolean;
|
|
84
|
+
forms?: {
|
|
85
|
+
collectionSlug?: string;
|
|
86
|
+
enabled?: boolean;
|
|
87
|
+
submissionsCollectionSlug?: string;
|
|
88
|
+
uploadsCollectionSlug?: string;
|
|
89
|
+
};
|
|
90
|
+
globals?: StudioGlobalLink[];
|
|
91
|
+
media?: {
|
|
92
|
+
collectionSlug?: string;
|
|
93
|
+
};
|
|
94
|
+
pages?: {
|
|
95
|
+
builderBasePath?: string;
|
|
96
|
+
collectionSlug?: string;
|
|
97
|
+
};
|
|
98
|
+
sitePreview?: AdminStudioSitePreviewConfig;
|
|
99
|
+
sections?: StudioSection[];
|
|
100
|
+
}
|
|
101
|
+
interface AdminConfig {
|
|
102
|
+
allowThemePreference?: boolean;
|
|
103
|
+
brandName: string;
|
|
104
|
+
brandPrimary?: string;
|
|
105
|
+
brandSecondary?: string;
|
|
106
|
+
defaultTheme?: ThemeOption;
|
|
107
|
+
logoOnDarkUrl?: string;
|
|
108
|
+
logoUrl?: string;
|
|
109
|
+
basePath?: string;
|
|
110
|
+
studio?: AdminStudioConfig;
|
|
111
|
+
userSessionDurationSeconds?: number;
|
|
112
|
+
}
|
|
113
|
+
type ConfiguredAdmin = {
|
|
114
|
+
admin: Record<string, unknown>;
|
|
115
|
+
brandName: string;
|
|
116
|
+
brandPrimary: string;
|
|
117
|
+
brandSecondary: string;
|
|
118
|
+
defaultTheme: ThemeOption;
|
|
119
|
+
wrapUsers(usersCollection: CollectionConfig): CollectionConfig;
|
|
120
|
+
wrapPagesCollection(pagesCollection: CollectionConfig): CollectionConfig;
|
|
121
|
+
wrapMediaCollection(mediaCollection: CollectionConfig): CollectionConfig;
|
|
122
|
+
wrapFormsCollection(formsCollection: CollectionConfig): CollectionConfig;
|
|
123
|
+
wrapFormSubmissionsCollection(formSubmissionsCollection: CollectionConfig): CollectionConfig;
|
|
124
|
+
wrapFormUploadsCollection(formUploadsCollection: CollectionConfig): CollectionConfig;
|
|
125
|
+
wrapGlobals(globals: GlobalConfig[]): GlobalConfig[];
|
|
126
|
+
};
|
|
127
|
+
declare function configureAdmin(config: AdminConfig): ConfiguredAdmin;
|
|
128
|
+
|
|
129
|
+
declare function withTooltips(fields: Field[], customTooltips?: Record<string, string>): Field[];
|
|
130
|
+
|
|
131
|
+
declare const createHeaderNavItemsField: () => Field;
|
|
132
|
+
|
|
133
|
+
type CreateSocialMediaConnectionsFieldOptions = {
|
|
134
|
+
description?: string;
|
|
135
|
+
label?: string;
|
|
136
|
+
name?: string;
|
|
137
|
+
platforms?: SocialMediaPlatform[];
|
|
138
|
+
};
|
|
139
|
+
declare const createSocialMediaConnectionsField: (options?: CreateSocialMediaConnectionsFieldOptions) => Field;
|
|
140
|
+
declare const socialMediaConnectionsField: Field;
|
|
141
|
+
|
|
142
|
+
type CreateSocialMediaGlobalOptions = {
|
|
143
|
+
description?: string;
|
|
144
|
+
fieldOptions?: Omit<CreateSocialMediaConnectionsFieldOptions, 'label' | 'name'>;
|
|
145
|
+
slug?: string;
|
|
146
|
+
};
|
|
147
|
+
declare const createSocialMediaGlobal: (options?: CreateSocialMediaGlobalOptions) => GlobalConfig;
|
|
148
|
+
|
|
149
|
+
type index_AdminConfig = AdminConfig;
|
|
150
|
+
type index_AdminStudioConfig = AdminStudioConfig;
|
|
151
|
+
type index_AdminStudioFooterPreviewConfig = AdminStudioFooterPreviewConfig;
|
|
152
|
+
type index_AdminStudioHeaderPreviewConfig = AdminStudioHeaderPreviewConfig;
|
|
153
|
+
type index_AdminStudioSitePreviewConfig = AdminStudioSitePreviewConfig;
|
|
154
|
+
type index_CreateSocialMediaConnectionsFieldOptions = CreateSocialMediaConnectionsFieldOptions;
|
|
155
|
+
type index_CreateSocialMediaGlobalOptions = CreateSocialMediaGlobalOptions;
|
|
156
|
+
type index_ResolvedStudioDashboardPanel = ResolvedStudioDashboardPanel;
|
|
157
|
+
type index_ResolvedStudioSection = ResolvedStudioSection;
|
|
158
|
+
declare const index_SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM: typeof SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM;
|
|
159
|
+
declare const index_SOCIAL_MEDIA_ICON_OPTIONS: typeof SOCIAL_MEDIA_ICON_OPTIONS;
|
|
160
|
+
declare const index_SOCIAL_MEDIA_PLATFORMS: typeof SOCIAL_MEDIA_PLATFORMS;
|
|
161
|
+
declare const index_SOCIAL_MEDIA_PLATFORM_LABELS: typeof SOCIAL_MEDIA_PLATFORM_LABELS;
|
|
162
|
+
declare const index_SocialMediaGlobalData: typeof SocialMediaGlobalData;
|
|
163
|
+
declare const index_SocialMediaIconLibrary: typeof SocialMediaIconLibrary;
|
|
164
|
+
declare const index_SocialMediaIconOption: typeof SocialMediaIconOption;
|
|
165
|
+
declare const index_SocialMediaPlatform: typeof SocialMediaPlatform;
|
|
166
|
+
declare const index_SocialMediaProfileData: typeof SocialMediaProfileData;
|
|
167
|
+
declare const index_SocialMediaProfilesData: typeof SocialMediaProfilesData;
|
|
168
|
+
type index_StudioDashboardPanel = StudioDashboardPanel;
|
|
169
|
+
type index_StudioDashboardPanelSpan = StudioDashboardPanelSpan;
|
|
170
|
+
type index_StudioGlobalLink = StudioGlobalLink;
|
|
171
|
+
type index_StudioSection = StudioSection;
|
|
172
|
+
type index_StudioSectionCard = StudioSectionCard;
|
|
173
|
+
type index_StudioSectionComponent = StudioSectionComponent;
|
|
174
|
+
type index_StudioSectionRole = StudioSectionRole;
|
|
175
|
+
type index_StudioSectionView = StudioSectionView;
|
|
176
|
+
declare const index_configureAdmin: typeof configureAdmin;
|
|
177
|
+
declare const index_createHeaderNavItemsField: typeof createHeaderNavItemsField;
|
|
178
|
+
declare const index_createSocialMediaConnectionsField: typeof createSocialMediaConnectionsField;
|
|
179
|
+
declare const index_createSocialMediaGlobal: typeof createSocialMediaGlobal;
|
|
180
|
+
declare const index_createThemePreferenceField: typeof createThemePreferenceField;
|
|
181
|
+
declare const index_socialMediaConnectionsField: typeof socialMediaConnectionsField;
|
|
182
|
+
declare const index_themePreferenceField: typeof themePreferenceField;
|
|
183
|
+
declare const index_withTooltips: typeof withTooltips;
|
|
184
|
+
declare namespace index {
|
|
185
|
+
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_ResolvedStudioDashboardPanel as ResolvedStudioDashboardPanel, 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_StudioDashboardPanel as StudioDashboardPanel, type index_StudioDashboardPanelSpan as StudioDashboardPanelSpan, 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 };
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export { type AdminConfig as A, type CreateSocialMediaConnectionsFieldOptions as C, type ResolvedStudioDashboardPanel as R, type StudioDashboardPanel as S, type AdminStudioConfig as a, type AdminStudioFooterPreviewConfig as b, type AdminStudioHeaderPreviewConfig as c, type AdminStudioSitePreviewConfig as d, type CreateSocialMediaGlobalOptions as e, type ResolvedStudioSection as f, type StudioDashboardPanelSpan as g, type StudioGlobalLink as h, index as i, type StudioSection as j, type StudioSectionCard as k, type StudioSectionComponent as l, type StudioSectionRole as m, type StudioSectionView as n, configureAdmin as o, createHeaderNavItemsField as p, createSocialMediaConnectionsField as q, createSocialMediaGlobal as r, createThemePreferenceField as s, socialMediaConnectionsField as t, themePreferenceField as u, withTooltips as w };
|
|
@@ -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 = {
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { Field, CollectionConfig, GlobalConfig } from 'payload';
|
|
2
|
+
import { a as AdminNavIcon, e as SitePreviewLink, f as SitePreviewLocationSummary } from './sitePreviewTypes-BrJwGzJj.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' | 'developer' | '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 StudioDashboardPanelSpan = 'full' | 'half';
|
|
24
|
+
type StudioDashboardPanel = {
|
|
25
|
+
Component: StudioSectionComponent;
|
|
26
|
+
priority?: number;
|
|
27
|
+
roles?: StudioSectionRole[];
|
|
28
|
+
span?: StudioDashboardPanelSpan;
|
|
29
|
+
};
|
|
30
|
+
type StudioSection = {
|
|
31
|
+
card?: StudioSectionCard;
|
|
32
|
+
dashboard?: StudioDashboardPanel;
|
|
33
|
+
href?: string;
|
|
34
|
+
id: string;
|
|
35
|
+
icon?: AdminNavIcon;
|
|
36
|
+
label: string;
|
|
37
|
+
matchPrefixes?: string[];
|
|
38
|
+
roles?: StudioSectionRole[];
|
|
39
|
+
view?: StudioSectionView;
|
|
40
|
+
};
|
|
41
|
+
type ResolvedStudioSection = {
|
|
42
|
+
card?: StudioSectionCard;
|
|
43
|
+
href: string;
|
|
44
|
+
id: string;
|
|
45
|
+
icon?: AdminNavIcon;
|
|
46
|
+
label: string;
|
|
47
|
+
matchPrefixes: string[];
|
|
48
|
+
roles?: StudioSectionRole[];
|
|
49
|
+
};
|
|
50
|
+
type ResolvedStudioDashboardPanel = {
|
|
51
|
+
Component: StudioSectionComponent;
|
|
52
|
+
href: string;
|
|
53
|
+
id: string;
|
|
54
|
+
label: string;
|
|
55
|
+
priority: number;
|
|
56
|
+
roles?: StudioSectionRole[];
|
|
57
|
+
span: StudioDashboardPanelSpan;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
type StudioGlobalLink = {
|
|
61
|
+
description?: string;
|
|
62
|
+
href?: string;
|
|
63
|
+
label: string;
|
|
64
|
+
slug: string;
|
|
65
|
+
};
|
|
66
|
+
type AdminStudioHeaderPreviewConfig = {
|
|
67
|
+
actionHref?: string;
|
|
68
|
+
actionLabel?: string;
|
|
69
|
+
};
|
|
70
|
+
type AdminStudioFooterPreviewConfig = {
|
|
71
|
+
builtByHref?: string;
|
|
72
|
+
builtByLabel?: string;
|
|
73
|
+
description?: string;
|
|
74
|
+
footerCategories?: string[];
|
|
75
|
+
footerLinks?: SitePreviewLink[];
|
|
76
|
+
};
|
|
77
|
+
type AdminStudioSitePreviewConfig = {
|
|
78
|
+
footer?: AdminStudioFooterPreviewConfig;
|
|
79
|
+
header?: AdminStudioHeaderPreviewConfig;
|
|
80
|
+
locationSummary?: SitePreviewLocationSummary;
|
|
81
|
+
};
|
|
82
|
+
interface AdminStudioConfig {
|
|
83
|
+
enabled?: boolean;
|
|
84
|
+
forms?: {
|
|
85
|
+
collectionSlug?: string;
|
|
86
|
+
enabled?: boolean;
|
|
87
|
+
submissionsCollectionSlug?: string;
|
|
88
|
+
uploadsCollectionSlug?: string;
|
|
89
|
+
};
|
|
90
|
+
globals?: StudioGlobalLink[];
|
|
91
|
+
media?: {
|
|
92
|
+
collectionSlug?: string;
|
|
93
|
+
};
|
|
94
|
+
pages?: {
|
|
95
|
+
builderBasePath?: string;
|
|
96
|
+
collectionSlug?: string;
|
|
97
|
+
};
|
|
98
|
+
sitePreview?: AdminStudioSitePreviewConfig;
|
|
99
|
+
sections?: StudioSection[];
|
|
100
|
+
}
|
|
101
|
+
interface AdminConfig {
|
|
102
|
+
allowThemePreference?: boolean;
|
|
103
|
+
brandName: string;
|
|
104
|
+
brandPrimary?: string;
|
|
105
|
+
brandSecondary?: string;
|
|
106
|
+
defaultTheme?: ThemeOption;
|
|
107
|
+
logoOnDarkUrl?: string;
|
|
108
|
+
logoUrl?: string;
|
|
109
|
+
basePath?: string;
|
|
110
|
+
studio?: AdminStudioConfig;
|
|
111
|
+
userSessionDurationSeconds?: number;
|
|
112
|
+
}
|
|
113
|
+
type ConfiguredAdmin = {
|
|
114
|
+
admin: Record<string, unknown>;
|
|
115
|
+
brandName: string;
|
|
116
|
+
brandPrimary: string;
|
|
117
|
+
brandSecondary: string;
|
|
118
|
+
defaultTheme: ThemeOption;
|
|
119
|
+
wrapUsers(usersCollection: CollectionConfig): CollectionConfig;
|
|
120
|
+
wrapPagesCollection(pagesCollection: CollectionConfig): CollectionConfig;
|
|
121
|
+
wrapMediaCollection(mediaCollection: CollectionConfig): CollectionConfig;
|
|
122
|
+
wrapFormsCollection(formsCollection: CollectionConfig): CollectionConfig;
|
|
123
|
+
wrapFormSubmissionsCollection(formSubmissionsCollection: CollectionConfig): CollectionConfig;
|
|
124
|
+
wrapFormUploadsCollection(formUploadsCollection: CollectionConfig): CollectionConfig;
|
|
125
|
+
wrapGlobals(globals: GlobalConfig[]): GlobalConfig[];
|
|
126
|
+
};
|
|
127
|
+
declare function configureAdmin(config: AdminConfig): ConfiguredAdmin;
|
|
128
|
+
|
|
129
|
+
declare function withTooltips(fields: Field[], customTooltips?: Record<string, string>): Field[];
|
|
130
|
+
|
|
131
|
+
declare const createHeaderNavItemsField: () => Field;
|
|
132
|
+
|
|
133
|
+
type CreateSocialMediaConnectionsFieldOptions = {
|
|
134
|
+
description?: string;
|
|
135
|
+
label?: string;
|
|
136
|
+
name?: string;
|
|
137
|
+
platforms?: SocialMediaPlatform[];
|
|
138
|
+
};
|
|
139
|
+
declare const createSocialMediaConnectionsField: (options?: CreateSocialMediaConnectionsFieldOptions) => Field;
|
|
140
|
+
declare const socialMediaConnectionsField: Field;
|
|
141
|
+
|
|
142
|
+
type CreateSocialMediaGlobalOptions = {
|
|
143
|
+
description?: string;
|
|
144
|
+
fieldOptions?: Omit<CreateSocialMediaConnectionsFieldOptions, 'label' | 'name'>;
|
|
145
|
+
slug?: string;
|
|
146
|
+
};
|
|
147
|
+
declare const createSocialMediaGlobal: (options?: CreateSocialMediaGlobalOptions) => GlobalConfig;
|
|
148
|
+
|
|
149
|
+
type index_AdminConfig = AdminConfig;
|
|
150
|
+
type index_AdminStudioConfig = AdminStudioConfig;
|
|
151
|
+
type index_AdminStudioFooterPreviewConfig = AdminStudioFooterPreviewConfig;
|
|
152
|
+
type index_AdminStudioHeaderPreviewConfig = AdminStudioHeaderPreviewConfig;
|
|
153
|
+
type index_AdminStudioSitePreviewConfig = AdminStudioSitePreviewConfig;
|
|
154
|
+
type index_CreateSocialMediaConnectionsFieldOptions = CreateSocialMediaConnectionsFieldOptions;
|
|
155
|
+
type index_CreateSocialMediaGlobalOptions = CreateSocialMediaGlobalOptions;
|
|
156
|
+
type index_ResolvedStudioDashboardPanel = ResolvedStudioDashboardPanel;
|
|
157
|
+
type index_ResolvedStudioSection = ResolvedStudioSection;
|
|
158
|
+
declare const index_SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM: typeof SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM;
|
|
159
|
+
declare const index_SOCIAL_MEDIA_ICON_OPTIONS: typeof SOCIAL_MEDIA_ICON_OPTIONS;
|
|
160
|
+
declare const index_SOCIAL_MEDIA_PLATFORMS: typeof SOCIAL_MEDIA_PLATFORMS;
|
|
161
|
+
declare const index_SOCIAL_MEDIA_PLATFORM_LABELS: typeof SOCIAL_MEDIA_PLATFORM_LABELS;
|
|
162
|
+
declare const index_SocialMediaGlobalData: typeof SocialMediaGlobalData;
|
|
163
|
+
declare const index_SocialMediaIconLibrary: typeof SocialMediaIconLibrary;
|
|
164
|
+
declare const index_SocialMediaIconOption: typeof SocialMediaIconOption;
|
|
165
|
+
declare const index_SocialMediaPlatform: typeof SocialMediaPlatform;
|
|
166
|
+
declare const index_SocialMediaProfileData: typeof SocialMediaProfileData;
|
|
167
|
+
declare const index_SocialMediaProfilesData: typeof SocialMediaProfilesData;
|
|
168
|
+
type index_StudioDashboardPanel = StudioDashboardPanel;
|
|
169
|
+
type index_StudioDashboardPanelSpan = StudioDashboardPanelSpan;
|
|
170
|
+
type index_StudioGlobalLink = StudioGlobalLink;
|
|
171
|
+
type index_StudioSection = StudioSection;
|
|
172
|
+
type index_StudioSectionCard = StudioSectionCard;
|
|
173
|
+
type index_StudioSectionComponent = StudioSectionComponent;
|
|
174
|
+
type index_StudioSectionRole = StudioSectionRole;
|
|
175
|
+
type index_StudioSectionView = StudioSectionView;
|
|
176
|
+
declare const index_configureAdmin: typeof configureAdmin;
|
|
177
|
+
declare const index_createHeaderNavItemsField: typeof createHeaderNavItemsField;
|
|
178
|
+
declare const index_createSocialMediaConnectionsField: typeof createSocialMediaConnectionsField;
|
|
179
|
+
declare const index_createSocialMediaGlobal: typeof createSocialMediaGlobal;
|
|
180
|
+
declare const index_createThemePreferenceField: typeof createThemePreferenceField;
|
|
181
|
+
declare const index_socialMediaConnectionsField: typeof socialMediaConnectionsField;
|
|
182
|
+
declare const index_themePreferenceField: typeof themePreferenceField;
|
|
183
|
+
declare const index_withTooltips: typeof withTooltips;
|
|
184
|
+
declare namespace index {
|
|
185
|
+
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_ResolvedStudioDashboardPanel as ResolvedStudioDashboardPanel, 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_StudioDashboardPanel as StudioDashboardPanel, type index_StudioDashboardPanelSpan as StudioDashboardPanelSpan, 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 };
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export { type AdminConfig as A, type CreateSocialMediaConnectionsFieldOptions as C, type ResolvedStudioDashboardPanel as R, type StudioDashboardPanel as S, type AdminStudioConfig as a, type AdminStudioFooterPreviewConfig as b, type AdminStudioHeaderPreviewConfig as c, type AdminStudioSitePreviewConfig as d, type CreateSocialMediaGlobalOptions as e, type ResolvedStudioSection as f, type StudioDashboardPanelSpan as g, type StudioGlobalLink as h, index as i, type StudioSection as j, type StudioSectionCard as k, type StudioSectionComponent as l, type StudioSectionRole as m, type StudioSectionView as n, configureAdmin as o, createHeaderNavItemsField as p, createSocialMediaConnectionsField as q, createSocialMediaGlobal as r, createThemePreferenceField as s, socialMediaConnectionsField as t, themePreferenceField as u, withTooltips as w };
|
|
@@ -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 = {
|