@orion-studios/payload-studio 0.6.0-beta.7 → 0.6.0-beta.9
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/index.d.mts +1 -1
- package/dist/admin/index.d.ts +1 -1
- package/dist/admin/index.js +11 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/{chunk-5FNTVRCR.mjs → chunk-WLOPFFN2.mjs} +11 -1
- package/dist/{index-DyMmaRfI.d.mts → index-Bm2SaC3r.d.mts} +1 -0
- package/dist/{index-QPDAedIX.d.ts → index-CkT_eyhK.d.ts} +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/admin/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AdminConfig, a as AdminStudioConfig, b as AdminStudioFooterPreviewConfig, c as AdminStudioHeaderPreviewConfig, d as AdminStudioSitePreviewConfig, C as CreateSocialMediaConnectionsFieldOptions, e as CreateSocialMediaGlobalOptions, R as ResolvedStudioDashboardPanel, f as ResolvedStudioSection, S as StudioDashboardPanel, g as StudioDashboardPanelSpan, h as StudioGlobalLink, j as StudioSection, k as StudioSectionCard, l as StudioSectionComponent, m as StudioSectionRole, n as StudioSectionView, o as configureAdmin, p as createHeaderNavItemsField, q as createSocialMediaConnectionsField, r as createSocialMediaGlobal, s as createThemePreferenceField, t as socialMediaConnectionsField, u as themePreferenceField, w as withTooltips } from '../index-
|
|
1
|
+
export { A as AdminConfig, a as AdminStudioConfig, b as AdminStudioFooterPreviewConfig, c as AdminStudioHeaderPreviewConfig, d as AdminStudioSitePreviewConfig, C as CreateSocialMediaConnectionsFieldOptions, e as CreateSocialMediaGlobalOptions, R as ResolvedStudioDashboardPanel, f as ResolvedStudioSection, S as StudioDashboardPanel, g as StudioDashboardPanelSpan, h as StudioGlobalLink, j as StudioSection, k as StudioSectionCard, l as StudioSectionComponent, m as StudioSectionRole, n as StudioSectionView, o as configureAdmin, p as createHeaderNavItemsField, q as createSocialMediaConnectionsField, r as createSocialMediaGlobal, s as createThemePreferenceField, t as socialMediaConnectionsField, u as themePreferenceField, w as withTooltips } from '../index-Bm2SaC3r.mjs';
|
|
2
2
|
export { 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, a as SocialMediaPlatform, h as SocialMediaProfileData, i as SocialMediaProfilesData } from '../socialMedia-C05Iy-SV.mjs';
|
|
3
3
|
import 'payload';
|
|
4
4
|
import '../sitePreviewTypes-BkHCWxNW.mjs';
|
package/dist/admin/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AdminConfig, a as AdminStudioConfig, b as AdminStudioFooterPreviewConfig, c as AdminStudioHeaderPreviewConfig, d as AdminStudioSitePreviewConfig, C as CreateSocialMediaConnectionsFieldOptions, e as CreateSocialMediaGlobalOptions, R as ResolvedStudioDashboardPanel, f as ResolvedStudioSection, S as StudioDashboardPanel, g as StudioDashboardPanelSpan, h as StudioGlobalLink, j as StudioSection, k as StudioSectionCard, l as StudioSectionComponent, m as StudioSectionRole, n as StudioSectionView, o as configureAdmin, p as createHeaderNavItemsField, q as createSocialMediaConnectionsField, r as createSocialMediaGlobal, s as createThemePreferenceField, t as socialMediaConnectionsField, u as themePreferenceField, w as withTooltips } from '../index-
|
|
1
|
+
export { A as AdminConfig, a as AdminStudioConfig, b as AdminStudioFooterPreviewConfig, c as AdminStudioHeaderPreviewConfig, d as AdminStudioSitePreviewConfig, C as CreateSocialMediaConnectionsFieldOptions, e as CreateSocialMediaGlobalOptions, R as ResolvedStudioDashboardPanel, f as ResolvedStudioSection, S as StudioDashboardPanel, g as StudioDashboardPanelSpan, h as StudioGlobalLink, j as StudioSection, k as StudioSectionCard, l as StudioSectionComponent, m as StudioSectionRole, n as StudioSectionView, o as configureAdmin, p as createHeaderNavItemsField, q as createSocialMediaConnectionsField, r as createSocialMediaGlobal, s as createThemePreferenceField, t as socialMediaConnectionsField, u as themePreferenceField, w as withTooltips } from '../index-CkT_eyhK.js';
|
|
2
2
|
export { 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, a as SocialMediaPlatform, h as SocialMediaProfileData, i as SocialMediaProfilesData } from '../socialMedia-C05Iy-SV.js';
|
|
3
3
|
import 'payload';
|
|
4
4
|
import '../sitePreviewTypes-BkHCWxNW.js';
|
package/dist/admin/index.js
CHANGED
|
@@ -216,7 +216,8 @@ function configureAdmin(config) {
|
|
|
216
216
|
brandSecondary = "#8b5cf6",
|
|
217
217
|
defaultTheme = "brand-light",
|
|
218
218
|
logoUrl,
|
|
219
|
-
allowThemePreference = false
|
|
219
|
+
allowThemePreference = false,
|
|
220
|
+
userSessionDurationSeconds = 60 * 60 * 24
|
|
220
221
|
} = config;
|
|
221
222
|
const studioEnabled = config.studio?.enabled ?? true;
|
|
222
223
|
const formsEnabled = config.studio?.forms?.enabled ?? false;
|
|
@@ -534,8 +535,17 @@ function configureAdmin(config) {
|
|
|
534
535
|
const hasThemePreference = existingFields.some(
|
|
535
536
|
(field) => typeof field === "object" && field !== null && "name" in field && field.name === "themePreference"
|
|
536
537
|
);
|
|
538
|
+
const normalizedAuth = usersCollection.auth === true ? {
|
|
539
|
+
tokenExpiration: userSessionDurationSeconds,
|
|
540
|
+
useSessions: true
|
|
541
|
+
} : usersCollection.auth && typeof usersCollection.auth === "object" ? {
|
|
542
|
+
...usersCollection.auth,
|
|
543
|
+
tokenExpiration: usersCollection.auth.tokenExpiration ?? userSessionDurationSeconds,
|
|
544
|
+
useSessions: usersCollection.auth.useSessions ?? true
|
|
545
|
+
} : usersCollection.auth;
|
|
537
546
|
const nextCollection = {
|
|
538
547
|
...usersCollection,
|
|
548
|
+
auth: normalizedAuth,
|
|
539
549
|
fields: !allowThemePreference || hasThemePreference ? existingFields : [...existingFields, createThemePreferenceField(defaultTheme)]
|
|
540
550
|
};
|
|
541
551
|
return attachStudioBackBreadcrumbToCollection(nextCollection);
|
package/dist/admin/index.mjs
CHANGED
|
@@ -187,7 +187,8 @@ function configureAdmin(config) {
|
|
|
187
187
|
brandSecondary = "#8b5cf6",
|
|
188
188
|
defaultTheme = "brand-light",
|
|
189
189
|
logoUrl,
|
|
190
|
-
allowThemePreference = false
|
|
190
|
+
allowThemePreference = false,
|
|
191
|
+
userSessionDurationSeconds = 60 * 60 * 24
|
|
191
192
|
} = config;
|
|
192
193
|
const studioEnabled = config.studio?.enabled ?? true;
|
|
193
194
|
const formsEnabled = config.studio?.forms?.enabled ?? false;
|
|
@@ -505,8 +506,17 @@ function configureAdmin(config) {
|
|
|
505
506
|
const hasThemePreference = existingFields.some(
|
|
506
507
|
(field) => typeof field === "object" && field !== null && "name" in field && field.name === "themePreference"
|
|
507
508
|
);
|
|
509
|
+
const normalizedAuth = usersCollection.auth === true ? {
|
|
510
|
+
tokenExpiration: userSessionDurationSeconds,
|
|
511
|
+
useSessions: true
|
|
512
|
+
} : usersCollection.auth && typeof usersCollection.auth === "object" ? {
|
|
513
|
+
...usersCollection.auth,
|
|
514
|
+
tokenExpiration: usersCollection.auth.tokenExpiration ?? userSessionDurationSeconds,
|
|
515
|
+
useSessions: usersCollection.auth.useSessions ?? true
|
|
516
|
+
} : usersCollection.auth;
|
|
508
517
|
const nextCollection = {
|
|
509
518
|
...usersCollection,
|
|
519
|
+
auth: normalizedAuth,
|
|
510
520
|
fields: !allowThemePreference || hasThemePreference ? existingFields : [...existingFields, createThemePreferenceField(defaultTheme)]
|
|
511
521
|
};
|
|
512
522
|
return attachStudioBackBreadcrumbToCollection(nextCollection);
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -242,7 +242,8 @@ function configureAdmin(config) {
|
|
|
242
242
|
brandSecondary = "#8b5cf6",
|
|
243
243
|
defaultTheme = "brand-light",
|
|
244
244
|
logoUrl,
|
|
245
|
-
allowThemePreference = false
|
|
245
|
+
allowThemePreference = false,
|
|
246
|
+
userSessionDurationSeconds = 60 * 60 * 24
|
|
246
247
|
} = config;
|
|
247
248
|
const studioEnabled = config.studio?.enabled ?? true;
|
|
248
249
|
const formsEnabled = config.studio?.forms?.enabled ?? false;
|
|
@@ -560,8 +561,17 @@ function configureAdmin(config) {
|
|
|
560
561
|
const hasThemePreference = existingFields.some(
|
|
561
562
|
(field) => typeof field === "object" && field !== null && "name" in field && field.name === "themePreference"
|
|
562
563
|
);
|
|
564
|
+
const normalizedAuth = usersCollection.auth === true ? {
|
|
565
|
+
tokenExpiration: userSessionDurationSeconds,
|
|
566
|
+
useSessions: true
|
|
567
|
+
} : usersCollection.auth && typeof usersCollection.auth === "object" ? {
|
|
568
|
+
...usersCollection.auth,
|
|
569
|
+
tokenExpiration: usersCollection.auth.tokenExpiration ?? userSessionDurationSeconds,
|
|
570
|
+
useSessions: usersCollection.auth.useSessions ?? true
|
|
571
|
+
} : usersCollection.auth;
|
|
563
572
|
const nextCollection = {
|
|
564
573
|
...usersCollection,
|
|
574
|
+
auth: normalizedAuth,
|
|
565
575
|
fields: !allowThemePreference || hasThemePreference ? existingFields : [...existingFields, createThemePreferenceField(defaultTheme)]
|
|
566
576
|
};
|
|
567
577
|
return attachStudioBackBreadcrumbToCollection(nextCollection);
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED