@orion-studios/payload-studio 0.6.0-beta.1 → 0.6.0-beta.11

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.
@@ -0,0 +1,188 @@
1
+ import { Field, CollectionConfig, GlobalConfig } from 'payload';
2
+ import { a as AdminNavIcon, e as SitePreviewLink, f as SitePreviewLocationSummary } from './sitePreviewTypes-BkHCWxNW.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 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 };
@@ -0,0 +1,188 @@
1
+ import { Field, CollectionConfig, GlobalConfig } from 'payload';
2
+ import { a as AdminNavIcon, e as SitePreviewLink, f as SitePreviewLocationSummary } from './sitePreviewTypes-BkHCWxNW.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' | '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 };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { i as admin } from './index-D_b24Gef.mjs';
1
+ export { i as admin } from './index-Xt3Ep8WV.mjs';
2
2
  export { i as adminApp } from './index-DEQC3Dwj.mjs';
3
3
  export { i as blocks } from './index-CluwY0ZQ.mjs';
4
4
  export { i as nextjs } from './index-D8BNfUJb.mjs';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { i as admin } from './index-BMitiKK8.js';
1
+ export { i as admin } from './index-yhpAgqDS.js';
2
2
  export { i as adminApp } from './index-52HdVLQq.js';
3
3
  export { i as blocks } from './index-CluwY0ZQ.js';
4
4
  export { i as nextjs } from './index-DD_E2UfJ.js';
package/dist/index.js CHANGED
@@ -241,8 +241,10 @@ function configureAdmin(config) {
241
241
  brandPrimary = "#3b82f6",
242
242
  brandSecondary = "#8b5cf6",
243
243
  defaultTheme = "brand-light",
244
+ logoOnDarkUrl,
244
245
  logoUrl,
245
- allowThemePreference = false
246
+ allowThemePreference = false,
247
+ userSessionDurationSeconds = 60 * 60 * 24
246
248
  } = config;
247
249
  const studioEnabled = config.studio?.enabled ?? true;
248
250
  const formsEnabled = config.studio?.forms?.enabled ?? false;
@@ -364,6 +366,7 @@ function configureAdmin(config) {
364
366
  path: clientPath,
365
367
  clientProps: {
366
368
  brandName,
369
+ logoOnDarkUrl,
367
370
  logoUrl
368
371
  }
369
372
  },
@@ -372,6 +375,7 @@ function configureAdmin(config) {
372
375
  path: clientPath,
373
376
  clientProps: {
374
377
  brandName,
378
+ logoOnDarkUrl,
375
379
  logoUrl
376
380
  }
377
381
  }
@@ -524,10 +528,17 @@ function configureAdmin(config) {
524
528
  path: clientPath,
525
529
  clientProps: {
526
530
  brandName,
531
+ logoOnDarkUrl,
527
532
  logoUrl
528
533
  }
529
534
  }
530
535
  ],
536
+ afterLogin: [
537
+ {
538
+ exportName: "AdminLoginPasswordToggle",
539
+ path: clientPath
540
+ }
541
+ ],
531
542
  ...allowThemePreference ? {
532
543
  afterNavLinks: [
533
544
  {
@@ -554,8 +565,17 @@ function configureAdmin(config) {
554
565
  const hasThemePreference = existingFields.some(
555
566
  (field) => typeof field === "object" && field !== null && "name" in field && field.name === "themePreference"
556
567
  );
568
+ const normalizedAuth = usersCollection.auth === true ? {
569
+ tokenExpiration: userSessionDurationSeconds,
570
+ useSessions: true
571
+ } : usersCollection.auth && typeof usersCollection.auth === "object" ? {
572
+ ...usersCollection.auth,
573
+ tokenExpiration: usersCollection.auth.tokenExpiration ?? userSessionDurationSeconds,
574
+ useSessions: usersCollection.auth.useSessions ?? true
575
+ } : usersCollection.auth;
557
576
  const nextCollection = {
558
577
  ...usersCollection,
578
+ auth: normalizedAuth,
559
579
  fields: !allowThemePreference || hasThemePreference ? existingFields : [...existingFields, createThemePreferenceField(defaultTheme)]
560
580
  };
561
581
  return attachStudioBackBreadcrumbToCollection(nextCollection);
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  admin_exports
3
- } from "./chunk-Q2HGC67S.mjs";
3
+ } from "./chunk-T4OH6KI6.mjs";
4
4
  import {
5
5
  admin_app_exports
6
6
  } from "./chunk-RKTIFEUY.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-studios/payload-studio",
3
- "version": "0.6.0-beta.1",
3
+ "version": "0.6.0-beta.11",
4
4
  "description": "Base CMS, builder, and custom admin toolkit for Orion Studios websites",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",