@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.
- package/dist/admin/client.d.mts +2 -1
- package/dist/admin/client.d.ts +2 -1
- package/dist/admin/client.js +2262 -1415
- package/dist/admin/client.mjs +1821 -977
- package/dist/admin/index.d.mts +1 -1
- package/dist/admin/index.d.ts +1 -1
- package/dist/admin/index.js +21 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin-app/styles.css +505 -40
- package/dist/{chunk-Q2HGC67S.mjs → chunk-T4OH6KI6.mjs} +21 -1
- package/dist/index-Xt3Ep8WV.d.mts +188 -0
- package/dist/index-yhpAgqDS.d.ts +188 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +21 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/index-BMitiKK8.d.ts +0 -435
- package/dist/index-D_b24Gef.d.mts +0 -435
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 ResolvedStudioSection, S as StudioGlobalLink,
|
|
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-Xt3Ep8WV.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 ResolvedStudioSection, S as StudioGlobalLink,
|
|
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-yhpAgqDS.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
|
@@ -215,8 +215,10 @@ function configureAdmin(config) {
|
|
|
215
215
|
brandPrimary = "#3b82f6",
|
|
216
216
|
brandSecondary = "#8b5cf6",
|
|
217
217
|
defaultTheme = "brand-light",
|
|
218
|
+
logoOnDarkUrl,
|
|
218
219
|
logoUrl,
|
|
219
|
-
allowThemePreference = false
|
|
220
|
+
allowThemePreference = false,
|
|
221
|
+
userSessionDurationSeconds = 60 * 60 * 24
|
|
220
222
|
} = config;
|
|
221
223
|
const studioEnabled = config.studio?.enabled ?? true;
|
|
222
224
|
const formsEnabled = config.studio?.forms?.enabled ?? false;
|
|
@@ -338,6 +340,7 @@ function configureAdmin(config) {
|
|
|
338
340
|
path: clientPath,
|
|
339
341
|
clientProps: {
|
|
340
342
|
brandName,
|
|
343
|
+
logoOnDarkUrl,
|
|
341
344
|
logoUrl
|
|
342
345
|
}
|
|
343
346
|
},
|
|
@@ -346,6 +349,7 @@ function configureAdmin(config) {
|
|
|
346
349
|
path: clientPath,
|
|
347
350
|
clientProps: {
|
|
348
351
|
brandName,
|
|
352
|
+
logoOnDarkUrl,
|
|
349
353
|
logoUrl
|
|
350
354
|
}
|
|
351
355
|
}
|
|
@@ -498,10 +502,17 @@ function configureAdmin(config) {
|
|
|
498
502
|
path: clientPath,
|
|
499
503
|
clientProps: {
|
|
500
504
|
brandName,
|
|
505
|
+
logoOnDarkUrl,
|
|
501
506
|
logoUrl
|
|
502
507
|
}
|
|
503
508
|
}
|
|
504
509
|
],
|
|
510
|
+
afterLogin: [
|
|
511
|
+
{
|
|
512
|
+
exportName: "AdminLoginPasswordToggle",
|
|
513
|
+
path: clientPath
|
|
514
|
+
}
|
|
515
|
+
],
|
|
505
516
|
...allowThemePreference ? {
|
|
506
517
|
afterNavLinks: [
|
|
507
518
|
{
|
|
@@ -528,8 +539,17 @@ function configureAdmin(config) {
|
|
|
528
539
|
const hasThemePreference = existingFields.some(
|
|
529
540
|
(field) => typeof field === "object" && field !== null && "name" in field && field.name === "themePreference"
|
|
530
541
|
);
|
|
542
|
+
const normalizedAuth = usersCollection.auth === true ? {
|
|
543
|
+
tokenExpiration: userSessionDurationSeconds,
|
|
544
|
+
useSessions: true
|
|
545
|
+
} : usersCollection.auth && typeof usersCollection.auth === "object" ? {
|
|
546
|
+
...usersCollection.auth,
|
|
547
|
+
tokenExpiration: usersCollection.auth.tokenExpiration ?? userSessionDurationSeconds,
|
|
548
|
+
useSessions: usersCollection.auth.useSessions ?? true
|
|
549
|
+
} : usersCollection.auth;
|
|
531
550
|
const nextCollection = {
|
|
532
551
|
...usersCollection,
|
|
552
|
+
auth: normalizedAuth,
|
|
533
553
|
fields: !allowThemePreference || hasThemePreference ? existingFields : [...existingFields, createThemePreferenceField(defaultTheme)]
|
|
534
554
|
};
|
|
535
555
|
return attachStudioBackBreadcrumbToCollection(nextCollection);
|
package/dist/admin/index.mjs
CHANGED