@orion-studios/payload-studio 0.5.0-beta.8 → 0.5.0-beta.80

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.
Files changed (67) hide show
  1. package/README.md +20 -0
  2. package/dist/admin/client.d.mts +2 -0
  3. package/dist/admin/client.d.ts +2 -0
  4. package/dist/admin/client.js +779 -137
  5. package/dist/admin/client.mjs +769 -129
  6. package/dist/admin/index.d.mts +1 -1
  7. package/dist/admin/index.d.ts +1 -1
  8. package/dist/admin/index.js +100 -8
  9. package/dist/admin/index.mjs +3 -1
  10. package/dist/admin-app/client.d.mts +7 -0
  11. package/dist/admin-app/client.d.ts +7 -0
  12. package/dist/admin-app/client.js +1262 -3
  13. package/dist/admin-app/client.mjs +1164 -2
  14. package/dist/admin-app/index.d.mts +1 -1
  15. package/dist/admin-app/index.d.ts +1 -1
  16. package/dist/admin-app/index.js +167 -0
  17. package/dist/admin-app/index.mjs +13 -1
  18. package/dist/admin-app/styles.css +229 -0
  19. package/dist/blocks/index.js +633 -8
  20. package/dist/blocks/index.mjs +2 -2
  21. package/dist/chunk-ADIIWIYL.mjs +322 -0
  22. package/dist/{chunk-ZLLNO5FM.mjs → chunk-AFLEATYB.mjs} +44 -13
  23. package/dist/chunk-FWVVRZ32.mjs +1143 -0
  24. package/dist/{chunk-J7W5EE3B.mjs → chunk-HCEPGEAI.mjs} +100 -8
  25. package/dist/chunk-ROTPP5CU.mjs +99 -0
  26. package/dist/{chunk-ETRRXURT.mjs → chunk-SIL2J5MF.mjs} +14 -0
  27. package/dist/{chunk-PC5622T7.mjs → chunk-XK3K5GRP.mjs} +620 -9
  28. package/dist/chunk-XVH5SCBD.mjs +234 -0
  29. package/dist/index-BBp-3l6M.d.ts +134 -0
  30. package/dist/{index-CmR6NInu.d.ts → index-BIwu3qIH.d.mts} +29 -3
  31. package/dist/{index-CmR6NInu.d.mts → index-BIwu3qIH.d.ts} +29 -3
  32. package/dist/{index-DbH0Ljwp.d.ts → index-CpG3UHcS.d.mts} +1 -0
  33. package/dist/{index-DbH0Ljwp.d.mts → index-CpG3UHcS.d.ts} +1 -0
  34. package/dist/index-DT_Vorvh.d.mts +134 -0
  35. package/dist/index-ZbOx4OCF.d.mts +128 -0
  36. package/dist/index-ZbOx4OCF.d.ts +128 -0
  37. package/dist/{index-DJFhANvJ.d.mts → index-cDYkEj29.d.mts} +20 -2
  38. package/dist/{index-DJFhANvJ.d.ts → index-cDYkEj29.d.ts} +20 -2
  39. package/dist/index.d.mts +5 -5
  40. package/dist/index.d.ts +5 -5
  41. package/dist/index.js +2232 -324
  42. package/dist/index.mjs +7 -7
  43. package/dist/nextjs/index.d.mts +1 -1
  44. package/dist/nextjs/index.d.ts +1 -1
  45. package/dist/nextjs/index.js +1002 -13
  46. package/dist/nextjs/index.mjs +4 -1
  47. package/dist/studio/index.d.mts +2 -1
  48. package/dist/studio/index.d.ts +2 -1
  49. package/dist/studio/index.js +171 -5
  50. package/dist/studio/index.mjs +7 -3
  51. package/dist/studio-pages/builder.css +472 -8
  52. package/dist/studio-pages/client.d.mts +17 -0
  53. package/dist/studio-pages/client.d.ts +17 -0
  54. package/dist/studio-pages/client.js +5057 -2546
  55. package/dist/studio-pages/client.mjs +4972 -2552
  56. package/dist/studio-pages/index.d.mts +3 -2
  57. package/dist/studio-pages/index.d.ts +3 -2
  58. package/dist/studio-pages/index.js +873 -32
  59. package/dist/studio-pages/index.mjs +6 -2
  60. package/package.json +26 -12
  61. package/dist/chunk-AAOHJDNS.mjs +0 -67
  62. package/dist/chunk-N67KVM2S.mjs +0 -156
  63. package/dist/chunk-TVDMZNKU.mjs +0 -301
  64. package/dist/index-B9N5MyjF.d.mts +0 -39
  65. package/dist/index-BallJs-K.d.mts +0 -43
  66. package/dist/index-BallJs-K.d.ts +0 -43
  67. package/dist/index-g8tBHLKD.d.ts +0 -39
@@ -0,0 +1,128 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ type AdminRole = 'admin' | 'editor' | 'client';
5
+ type AdminNavIcon = 'dashboard' | 'pages' | 'globals' | 'media' | 'tools' | 'account';
6
+ type AdminNavItem = {
7
+ href: string;
8
+ icon?: AdminNavIcon;
9
+ label: string;
10
+ matchPrefixes: string[];
11
+ roles?: AdminRole[];
12
+ };
13
+ type AdminBreadcrumbItem = {
14
+ label: string;
15
+ href?: string;
16
+ };
17
+ declare const roleCanAccessNav: (role: string | undefined, item: AdminNavItem) => boolean;
18
+ declare const navItemIsActive: (pathname: string, item: AdminNavItem) => boolean;
19
+
20
+ type AdminBreadcrumbsProps = {
21
+ items: AdminBreadcrumbItem[];
22
+ };
23
+ declare function AdminBreadcrumbs({ items }: AdminBreadcrumbsProps): react_jsx_runtime.JSX.Element;
24
+
25
+ type AdminPageProps = {
26
+ title: string;
27
+ description?: string;
28
+ breadcrumbs: AdminBreadcrumbItem[];
29
+ actions?: ReactNode;
30
+ children: ReactNode;
31
+ };
32
+ declare function AdminPage({ title, description, breadcrumbs, actions, children }: AdminPageProps): react_jsx_runtime.JSX.Element;
33
+
34
+ type MediaDetailPanelProps = {
35
+ id: string;
36
+ filename?: string;
37
+ alt?: string;
38
+ url?: string;
39
+ filesize?: number;
40
+ width?: number;
41
+ height?: number;
42
+ mimeType?: string;
43
+ createdAt?: string;
44
+ updateAction: (formData: FormData) => void;
45
+ deleteAction: (formData: FormData) => void;
46
+ };
47
+
48
+ type MediaListItemProps = {
49
+ id: string;
50
+ filename?: string;
51
+ alt?: string;
52
+ url?: string;
53
+ filesize?: number;
54
+ width?: number;
55
+ height?: number;
56
+ mimeType?: string;
57
+ href: string;
58
+ };
59
+
60
+ type NestedNavItemInput = {
61
+ href?: string;
62
+ label?: string;
63
+ parentHref?: string;
64
+ };
65
+ type NestedNavItem = {
66
+ href: string;
67
+ label: string;
68
+ parentHref?: string;
69
+ };
70
+ type NestedNavTree = {
71
+ topLevel: NestedNavItem[];
72
+ childrenByParent: Map<string, NestedNavItem[]>;
73
+ };
74
+ declare const normalizeNestedNavItems: <T extends NestedNavItemInput>(items: T[]) => NestedNavItem[];
75
+ declare const buildNestedNavTree: (items: NestedNavItem[]) => NestedNavTree;
76
+
77
+ type AdminNavLinkItem = {
78
+ href: string;
79
+ label: string;
80
+ parentHref?: string;
81
+ };
82
+ type AdminPageRecord = {
83
+ path?: string;
84
+ title?: string;
85
+ };
86
+ type AdminPageLinkOption = {
87
+ href: string;
88
+ label: string;
89
+ title: string;
90
+ };
91
+ declare const buildAdminPageLinkOptions: (pages: AdminPageRecord[]) => AdminPageLinkOption[];
92
+ declare const getAdminNavRows: (navItems: AdminNavLinkItem[], pageOptions: AdminPageLinkOption[], minRows?: number, maxRows?: number) => number;
93
+ type AdminNavInput = {
94
+ href?: string;
95
+ label?: string;
96
+ parentHref?: string;
97
+ };
98
+ declare const normalizeAdminNavInputs: (rows: AdminNavInput[], pageOptions: AdminPageLinkOption[]) => AdminNavLinkItem[];
99
+ declare const parseAdminHeaderNavFromForm: (formData: FormData, pageOptions: AdminPageLinkOption[], maxRows?: number) => AdminNavLinkItem[];
100
+
101
+ type index_AdminBreadcrumbItem = AdminBreadcrumbItem;
102
+ declare const index_AdminBreadcrumbs: typeof AdminBreadcrumbs;
103
+ type index_AdminNavIcon = AdminNavIcon;
104
+ type index_AdminNavInput = AdminNavInput;
105
+ type index_AdminNavItem = AdminNavItem;
106
+ type index_AdminNavLinkItem = AdminNavLinkItem;
107
+ declare const index_AdminPage: typeof AdminPage;
108
+ type index_AdminPageLinkOption = AdminPageLinkOption;
109
+ type index_AdminPageRecord = AdminPageRecord;
110
+ type index_AdminRole = AdminRole;
111
+ type index_MediaDetailPanelProps = MediaDetailPanelProps;
112
+ type index_MediaListItemProps = MediaListItemProps;
113
+ type index_NestedNavItem = NestedNavItem;
114
+ type index_NestedNavItemInput = NestedNavItemInput;
115
+ type index_NestedNavTree = NestedNavTree;
116
+ declare const index_buildAdminPageLinkOptions: typeof buildAdminPageLinkOptions;
117
+ declare const index_buildNestedNavTree: typeof buildNestedNavTree;
118
+ declare const index_getAdminNavRows: typeof getAdminNavRows;
119
+ declare const index_navItemIsActive: typeof navItemIsActive;
120
+ declare const index_normalizeAdminNavInputs: typeof normalizeAdminNavInputs;
121
+ declare const index_normalizeNestedNavItems: typeof normalizeNestedNavItems;
122
+ declare const index_parseAdminHeaderNavFromForm: typeof parseAdminHeaderNavFromForm;
123
+ declare const index_roleCanAccessNav: typeof roleCanAccessNav;
124
+ 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 };
126
+ }
127
+
128
+ 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 };
@@ -0,0 +1,128 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ type AdminRole = 'admin' | 'editor' | 'client';
5
+ type AdminNavIcon = 'dashboard' | 'pages' | 'globals' | 'media' | 'tools' | 'account';
6
+ type AdminNavItem = {
7
+ href: string;
8
+ icon?: AdminNavIcon;
9
+ label: string;
10
+ matchPrefixes: string[];
11
+ roles?: AdminRole[];
12
+ };
13
+ type AdminBreadcrumbItem = {
14
+ label: string;
15
+ href?: string;
16
+ };
17
+ declare const roleCanAccessNav: (role: string | undefined, item: AdminNavItem) => boolean;
18
+ declare const navItemIsActive: (pathname: string, item: AdminNavItem) => boolean;
19
+
20
+ type AdminBreadcrumbsProps = {
21
+ items: AdminBreadcrumbItem[];
22
+ };
23
+ declare function AdminBreadcrumbs({ items }: AdminBreadcrumbsProps): react_jsx_runtime.JSX.Element;
24
+
25
+ type AdminPageProps = {
26
+ title: string;
27
+ description?: string;
28
+ breadcrumbs: AdminBreadcrumbItem[];
29
+ actions?: ReactNode;
30
+ children: ReactNode;
31
+ };
32
+ declare function AdminPage({ title, description, breadcrumbs, actions, children }: AdminPageProps): react_jsx_runtime.JSX.Element;
33
+
34
+ type MediaDetailPanelProps = {
35
+ id: string;
36
+ filename?: string;
37
+ alt?: string;
38
+ url?: string;
39
+ filesize?: number;
40
+ width?: number;
41
+ height?: number;
42
+ mimeType?: string;
43
+ createdAt?: string;
44
+ updateAction: (formData: FormData) => void;
45
+ deleteAction: (formData: FormData) => void;
46
+ };
47
+
48
+ type MediaListItemProps = {
49
+ id: string;
50
+ filename?: string;
51
+ alt?: string;
52
+ url?: string;
53
+ filesize?: number;
54
+ width?: number;
55
+ height?: number;
56
+ mimeType?: string;
57
+ href: string;
58
+ };
59
+
60
+ type NestedNavItemInput = {
61
+ href?: string;
62
+ label?: string;
63
+ parentHref?: string;
64
+ };
65
+ type NestedNavItem = {
66
+ href: string;
67
+ label: string;
68
+ parentHref?: string;
69
+ };
70
+ type NestedNavTree = {
71
+ topLevel: NestedNavItem[];
72
+ childrenByParent: Map<string, NestedNavItem[]>;
73
+ };
74
+ declare const normalizeNestedNavItems: <T extends NestedNavItemInput>(items: T[]) => NestedNavItem[];
75
+ declare const buildNestedNavTree: (items: NestedNavItem[]) => NestedNavTree;
76
+
77
+ type AdminNavLinkItem = {
78
+ href: string;
79
+ label: string;
80
+ parentHref?: string;
81
+ };
82
+ type AdminPageRecord = {
83
+ path?: string;
84
+ title?: string;
85
+ };
86
+ type AdminPageLinkOption = {
87
+ href: string;
88
+ label: string;
89
+ title: string;
90
+ };
91
+ declare const buildAdminPageLinkOptions: (pages: AdminPageRecord[]) => AdminPageLinkOption[];
92
+ declare const getAdminNavRows: (navItems: AdminNavLinkItem[], pageOptions: AdminPageLinkOption[], minRows?: number, maxRows?: number) => number;
93
+ type AdminNavInput = {
94
+ href?: string;
95
+ label?: string;
96
+ parentHref?: string;
97
+ };
98
+ declare const normalizeAdminNavInputs: (rows: AdminNavInput[], pageOptions: AdminPageLinkOption[]) => AdminNavLinkItem[];
99
+ declare const parseAdminHeaderNavFromForm: (formData: FormData, pageOptions: AdminPageLinkOption[], maxRows?: number) => AdminNavLinkItem[];
100
+
101
+ type index_AdminBreadcrumbItem = AdminBreadcrumbItem;
102
+ declare const index_AdminBreadcrumbs: typeof AdminBreadcrumbs;
103
+ type index_AdminNavIcon = AdminNavIcon;
104
+ type index_AdminNavInput = AdminNavInput;
105
+ type index_AdminNavItem = AdminNavItem;
106
+ type index_AdminNavLinkItem = AdminNavLinkItem;
107
+ declare const index_AdminPage: typeof AdminPage;
108
+ type index_AdminPageLinkOption = AdminPageLinkOption;
109
+ type index_AdminPageRecord = AdminPageRecord;
110
+ type index_AdminRole = AdminRole;
111
+ type index_MediaDetailPanelProps = MediaDetailPanelProps;
112
+ type index_MediaListItemProps = MediaListItemProps;
113
+ type index_NestedNavItem = NestedNavItem;
114
+ type index_NestedNavItemInput = NestedNavItemInput;
115
+ type index_NestedNavTree = NestedNavTree;
116
+ declare const index_buildAdminPageLinkOptions: typeof buildAdminPageLinkOptions;
117
+ declare const index_buildNestedNavTree: typeof buildNestedNavTree;
118
+ declare const index_getAdminNavRows: typeof getAdminNavRows;
119
+ declare const index_navItemIsActive: typeof navItemIsActive;
120
+ declare const index_normalizeAdminNavInputs: typeof normalizeAdminNavInputs;
121
+ declare const index_normalizeNestedNavItems: typeof normalizeNestedNavItems;
122
+ declare const index_parseAdminHeaderNavFromForm: typeof parseAdminHeaderNavFromForm;
123
+ declare const index_roleCanAccessNav: typeof roleCanAccessNav;
124
+ 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 };
126
+ }
127
+
128
+ 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 };
@@ -5,6 +5,8 @@ declare const createThemePreferenceField: (defaultTheme?: ThemeOption) => Field;
5
5
  declare const themePreferenceField: Field;
6
6
 
7
7
  type StudioGlobalLink = {
8
+ description?: string;
9
+ href?: string;
8
10
  label: string;
9
11
  slug: string;
10
12
  };
@@ -62,6 +64,17 @@ declare function configureAdmin(config: AdminConfig): {
62
64
  };
63
65
  };
64
66
  } | undefined;
67
+ studioContactForm?: {
68
+ path: "/studio-contact-form";
69
+ Component: {
70
+ exportName: string;
71
+ path: string;
72
+ clientProps: {
73
+ globalSlug: string;
74
+ globalsBasePath: string;
75
+ };
76
+ };
77
+ } | undefined;
65
78
  dashboard: {
66
79
  Component: {
67
80
  exportName: string;
@@ -70,6 +83,7 @@ declare function configureAdmin(config: AdminConfig): {
70
83
  brandName: string;
71
84
  logoUrl: string | undefined;
72
85
  globalsBasePath: string;
86
+ globalsExtraMatchPrefixes: string[];
73
87
  mediaCollectionSlug: string;
74
88
  pagesCollectionSlug: string;
75
89
  };
@@ -97,6 +111,7 @@ declare function configureAdmin(config: AdminConfig): {
97
111
  brandName: string;
98
112
  logoUrl: string | undefined;
99
113
  globalsBasePath: string;
114
+ globalsExtraMatchPrefixes: string[];
100
115
  mediaCollectionSlug: string;
101
116
  pagesCollectionSlug: string;
102
117
  };
@@ -116,13 +131,16 @@ declare function configureAdmin(config: AdminConfig): {
116
131
 
117
132
  declare function withTooltips(fields: Field[], customTooltips?: Record<string, string>): Field[];
118
133
 
134
+ declare const createHeaderNavItemsField: () => Field;
135
+
119
136
  type index_AdminConfig = AdminConfig;
120
137
  declare const index_configureAdmin: typeof configureAdmin;
138
+ declare const index_createHeaderNavItemsField: typeof createHeaderNavItemsField;
121
139
  declare const index_createThemePreferenceField: typeof createThemePreferenceField;
122
140
  declare const index_themePreferenceField: typeof themePreferenceField;
123
141
  declare const index_withTooltips: typeof withTooltips;
124
142
  declare namespace index {
125
- export { type index_AdminConfig as AdminConfig, index_configureAdmin as configureAdmin, index_createThemePreferenceField as createThemePreferenceField, index_themePreferenceField as themePreferenceField, index_withTooltips as withTooltips };
143
+ export { type index_AdminConfig as AdminConfig, index_configureAdmin as configureAdmin, index_createHeaderNavItemsField as createHeaderNavItemsField, index_createThemePreferenceField as createThemePreferenceField, index_themePreferenceField as themePreferenceField, index_withTooltips as withTooltips };
126
144
  }
127
145
 
128
- export { type AdminConfig as A, createThemePreferenceField as a, configureAdmin as c, index as i, themePreferenceField as t, withTooltips as w };
146
+ export { type AdminConfig as A, createHeaderNavItemsField as a, createThemePreferenceField as b, configureAdmin as c, index as i, themePreferenceField as t, withTooltips as w };
@@ -5,6 +5,8 @@ declare const createThemePreferenceField: (defaultTheme?: ThemeOption) => Field;
5
5
  declare const themePreferenceField: Field;
6
6
 
7
7
  type StudioGlobalLink = {
8
+ description?: string;
9
+ href?: string;
8
10
  label: string;
9
11
  slug: string;
10
12
  };
@@ -62,6 +64,17 @@ declare function configureAdmin(config: AdminConfig): {
62
64
  };
63
65
  };
64
66
  } | undefined;
67
+ studioContactForm?: {
68
+ path: "/studio-contact-form";
69
+ Component: {
70
+ exportName: string;
71
+ path: string;
72
+ clientProps: {
73
+ globalSlug: string;
74
+ globalsBasePath: string;
75
+ };
76
+ };
77
+ } | undefined;
65
78
  dashboard: {
66
79
  Component: {
67
80
  exportName: string;
@@ -70,6 +83,7 @@ declare function configureAdmin(config: AdminConfig): {
70
83
  brandName: string;
71
84
  logoUrl: string | undefined;
72
85
  globalsBasePath: string;
86
+ globalsExtraMatchPrefixes: string[];
73
87
  mediaCollectionSlug: string;
74
88
  pagesCollectionSlug: string;
75
89
  };
@@ -97,6 +111,7 @@ declare function configureAdmin(config: AdminConfig): {
97
111
  brandName: string;
98
112
  logoUrl: string | undefined;
99
113
  globalsBasePath: string;
114
+ globalsExtraMatchPrefixes: string[];
100
115
  mediaCollectionSlug: string;
101
116
  pagesCollectionSlug: string;
102
117
  };
@@ -116,13 +131,16 @@ declare function configureAdmin(config: AdminConfig): {
116
131
 
117
132
  declare function withTooltips(fields: Field[], customTooltips?: Record<string, string>): Field[];
118
133
 
134
+ declare const createHeaderNavItemsField: () => Field;
135
+
119
136
  type index_AdminConfig = AdminConfig;
120
137
  declare const index_configureAdmin: typeof configureAdmin;
138
+ declare const index_createHeaderNavItemsField: typeof createHeaderNavItemsField;
121
139
  declare const index_createThemePreferenceField: typeof createThemePreferenceField;
122
140
  declare const index_themePreferenceField: typeof themePreferenceField;
123
141
  declare const index_withTooltips: typeof withTooltips;
124
142
  declare namespace index {
125
- export { type index_AdminConfig as AdminConfig, index_configureAdmin as configureAdmin, index_createThemePreferenceField as createThemePreferenceField, index_themePreferenceField as themePreferenceField, index_withTooltips as withTooltips };
143
+ export { type index_AdminConfig as AdminConfig, index_configureAdmin as configureAdmin, index_createHeaderNavItemsField as createHeaderNavItemsField, index_createThemePreferenceField as createThemePreferenceField, index_themePreferenceField as themePreferenceField, index_withTooltips as withTooltips };
126
144
  }
127
145
 
128
- export { type AdminConfig as A, createThemePreferenceField as a, configureAdmin as c, index as i, themePreferenceField as t, withTooltips as w };
146
+ export { type AdminConfig as A, createHeaderNavItemsField as a, createThemePreferenceField as b, configureAdmin as c, index as i, themePreferenceField as t, withTooltips as w };
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
- export { i as admin } from './index-DJFhANvJ.mjs';
2
- export { i as adminApp } from './index-BallJs-K.mjs';
1
+ export { i as admin } from './index-cDYkEj29.mjs';
2
+ export { i as adminApp } from './index-ZbOx4OCF.mjs';
3
3
  export { i as blocks } from './index-CluwY0ZQ.mjs';
4
- export { i as nextjs } from './index-DbH0Ljwp.mjs';
5
- export { i as studio } from './index-CmR6NInu.mjs';
6
- export { i as studioPages } from './index-B9N5MyjF.mjs';
4
+ export { i as nextjs } from './index-CpG3UHcS.mjs';
5
+ export { i as studio } from './index-BIwu3qIH.mjs';
6
+ export { i as studioPages } from './index-DT_Vorvh.mjs';
7
7
  import 'payload';
8
8
  import 'react/jsx-runtime';
9
9
  import 'react';
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export { i as admin } from './index-DJFhANvJ.js';
2
- export { i as adminApp } from './index-BallJs-K.js';
1
+ export { i as admin } from './index-cDYkEj29.js';
2
+ export { i as adminApp } from './index-ZbOx4OCF.js';
3
3
  export { i as blocks } from './index-CluwY0ZQ.js';
4
- export { i as nextjs } from './index-DbH0Ljwp.js';
5
- export { i as studio } from './index-CmR6NInu.js';
6
- export { i as studioPages } from './index-g8tBHLKD.js';
4
+ export { i as nextjs } from './index-CpG3UHcS.js';
5
+ export { i as studio } from './index-BIwu3qIH.js';
6
+ export { i as studioPages } from './index-BBp-3l6M.js';
7
7
  import 'payload';
8
8
  import 'react/jsx-runtime';
9
9
  import 'react';