@orion-studios/payload-studio 0.5.0-beta.11 → 0.5.0-beta.111

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 (77) hide show
  1. package/README.md +54 -0
  2. package/dist/admin/client.d.mts +3 -0
  3. package/dist/admin/client.d.ts +3 -0
  4. package/dist/admin/client.js +1745 -200
  5. package/dist/admin/client.mjs +1756 -214
  6. package/dist/admin/index.d.mts +2 -1
  7. package/dist/admin/index.d.ts +2 -1
  8. package/dist/admin/index.js +424 -11
  9. package/dist/admin/index.mjs +19 -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 +1270 -3
  13. package/dist/admin-app/client.mjs +1172 -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 +247 -0
  19. package/dist/admin.css +8 -0
  20. package/dist/blocks/index.js +1011 -191
  21. package/dist/blocks/index.mjs +2 -2
  22. package/dist/chunk-ADIIWIYL.mjs +322 -0
  23. package/dist/{chunk-ZLLNO5FM.mjs → chunk-BET2YLAS.mjs} +104 -15
  24. package/dist/chunk-DAIZDGHL.mjs +614 -0
  25. package/dist/chunk-GKMBYYXF.mjs +776 -0
  26. package/dist/chunk-JQAHXYAM.mjs +1829 -0
  27. package/dist/chunk-OQSEJXC4.mjs +166 -0
  28. package/dist/chunk-PF3EBZXF.mjs +326 -0
  29. package/dist/chunk-ROTPP5CU.mjs +99 -0
  30. package/dist/chunk-XVH5SCBD.mjs +234 -0
  31. package/dist/chunk-ZTXJG4K5.mjs +85 -0
  32. package/dist/index-7lxTrxSG.d.mts +128 -0
  33. package/dist/index-7lxTrxSG.d.ts +128 -0
  34. package/dist/index-B7QvY3yF.d.mts +245 -0
  35. package/dist/index-BK03FiEM.d.ts +245 -0
  36. package/dist/{index-CmR6NInu.d.ts → index-BzKOThsI.d.mts} +30 -3
  37. package/dist/{index-CmR6NInu.d.mts → index-BzKOThsI.d.ts} +30 -3
  38. package/dist/{index-DbH0Ljwp.d.mts → index-D8BNfUJb.d.mts} +17 -2
  39. package/dist/{index-DbH0Ljwp.d.ts → index-DD_E2UfJ.d.ts} +17 -2
  40. package/dist/index-DUi_XND6.d.ts +193 -0
  41. package/dist/index-gLl_358v.d.mts +193 -0
  42. package/dist/index.d.mts +6 -5
  43. package/dist/index.d.ts +6 -5
  44. package/dist/index.js +2876 -460
  45. package/dist/index.mjs +12 -10
  46. package/dist/nextjs/index.d.mts +2 -1
  47. package/dist/nextjs/index.d.ts +2 -1
  48. package/dist/nextjs/index.js +497 -16
  49. package/dist/nextjs/index.mjs +8 -3
  50. package/dist/socialMedia-C05Iy-SV.d.mts +21 -0
  51. package/dist/socialMedia-C05Iy-SV.d.ts +21 -0
  52. package/dist/studio/index.d.mts +2 -1
  53. package/dist/studio/index.d.ts +2 -1
  54. package/dist/studio/index.js +171 -5
  55. package/dist/studio/index.mjs +7 -3
  56. package/dist/studio-pages/builder.css +517 -32
  57. package/dist/studio-pages/client.d.mts +75 -1
  58. package/dist/studio-pages/client.d.ts +75 -1
  59. package/dist/studio-pages/client.js +5662 -2759
  60. package/dist/studio-pages/client.mjs +5578 -2767
  61. package/dist/studio-pages/index.d.mts +4 -2
  62. package/dist/studio-pages/index.d.ts +4 -2
  63. package/dist/studio-pages/index.js +859 -71
  64. package/dist/studio-pages/index.mjs +10 -4
  65. package/package.json +35 -13
  66. package/dist/chunk-AAOHJDNS.mjs +0 -67
  67. package/dist/chunk-ETRRXURT.mjs +0 -141
  68. package/dist/chunk-J7W5EE3B.mjs +0 -278
  69. package/dist/chunk-N67KVM2S.mjs +0 -156
  70. package/dist/chunk-NESLJZFE.mjs +0 -303
  71. package/dist/chunk-U5BSPWAD.mjs +0 -1034
  72. package/dist/index-B9N5MyjF.d.mts +0 -39
  73. package/dist/index-BallJs-K.d.mts +0 -43
  74. package/dist/index-BallJs-K.d.ts +0 -43
  75. package/dist/index-DJFhANvJ.d.mts +0 -128
  76. package/dist/index-DJFhANvJ.d.ts +0 -128
  77. package/dist/index-g8tBHLKD.d.ts +0 -39
@@ -1,39 +0,0 @@
1
- import { S as StudioDocumentV1, a as StudioNodeTypeDefinition, b as StudioModuleManifest } from './index-CmR6NInu.mjs';
2
-
3
- declare const pageNodeTypes: StudioNodeTypeDefinition[];
4
- declare const pagePaletteGroups: {
5
- id: string;
6
- label: string;
7
- items: {
8
- nodeType: string;
9
- title: string;
10
- description: string;
11
- }[];
12
- }[];
13
- declare const pageInspectorPanels: {
14
- id: string;
15
- label: string;
16
- nodeType: string;
17
- fields: {
18
- key: string;
19
- label: string;
20
- type: "text";
21
- }[];
22
- }[];
23
- declare const pageStudioModuleManifest: StudioModuleManifest;
24
- declare const layoutToStudioDocument: (layout: Array<Record<string, unknown>>, title?: string, metadata?: Record<string, unknown>) => StudioDocumentV1;
25
- declare const studioDocumentToLayout: (document: StudioDocumentV1) => Array<Record<string, unknown>>;
26
- declare const createDefaultStudioDocument: (title?: string) => StudioDocumentV1;
27
-
28
- declare const index_createDefaultStudioDocument: typeof createDefaultStudioDocument;
29
- declare const index_layoutToStudioDocument: typeof layoutToStudioDocument;
30
- declare const index_pageInspectorPanels: typeof pageInspectorPanels;
31
- declare const index_pageNodeTypes: typeof pageNodeTypes;
32
- declare const index_pagePaletteGroups: typeof pagePaletteGroups;
33
- declare const index_pageStudioModuleManifest: typeof pageStudioModuleManifest;
34
- declare const index_studioDocumentToLayout: typeof studioDocumentToLayout;
35
- declare namespace index {
36
- export { index_createDefaultStudioDocument as createDefaultStudioDocument, index_layoutToStudioDocument as layoutToStudioDocument, index_pageInspectorPanels as pageInspectorPanels, index_pageNodeTypes as pageNodeTypes, index_pagePaletteGroups as pagePaletteGroups, index_pageStudioModuleManifest as pageStudioModuleManifest, index_studioDocumentToLayout as studioDocumentToLayout };
37
- }
38
-
39
- export { pageNodeTypes as a, pagePaletteGroups as b, createDefaultStudioDocument as c, pageStudioModuleManifest as d, index as i, layoutToStudioDocument as l, pageInspectorPanels as p, studioDocumentToLayout as s };
@@ -1,43 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
-
4
- type AdminRole = 'admin' | 'editor' | 'client';
5
- type AdminNavItem = {
6
- href: string;
7
- label: string;
8
- matchPrefixes: string[];
9
- roles?: AdminRole[];
10
- };
11
- type AdminBreadcrumbItem = {
12
- label: string;
13
- href?: string;
14
- };
15
- declare const roleCanAccessNav: (role: string | undefined, item: AdminNavItem) => boolean;
16
- declare const navItemIsActive: (pathname: string, item: AdminNavItem) => boolean;
17
-
18
- type AdminBreadcrumbsProps = {
19
- items: AdminBreadcrumbItem[];
20
- };
21
- declare function AdminBreadcrumbs({ items }: AdminBreadcrumbsProps): react_jsx_runtime.JSX.Element;
22
-
23
- type AdminPageProps = {
24
- title: string;
25
- description?: string;
26
- breadcrumbs: AdminBreadcrumbItem[];
27
- actions?: ReactNode;
28
- children: ReactNode;
29
- };
30
- declare function AdminPage({ title, description, breadcrumbs, actions, children }: AdminPageProps): react_jsx_runtime.JSX.Element;
31
-
32
- type index_AdminBreadcrumbItem = AdminBreadcrumbItem;
33
- declare const index_AdminBreadcrumbs: typeof AdminBreadcrumbs;
34
- type index_AdminNavItem = AdminNavItem;
35
- declare const index_AdminPage: typeof AdminPage;
36
- type index_AdminRole = AdminRole;
37
- declare const index_navItemIsActive: typeof navItemIsActive;
38
- declare const index_roleCanAccessNav: typeof roleCanAccessNav;
39
- declare namespace index {
40
- export { type index_AdminBreadcrumbItem as AdminBreadcrumbItem, index_AdminBreadcrumbs as AdminBreadcrumbs, type index_AdminNavItem as AdminNavItem, index_AdminPage as AdminPage, type index_AdminRole as AdminRole, index_navItemIsActive as navItemIsActive, index_roleCanAccessNav as roleCanAccessNav };
41
- }
42
-
43
- export { type AdminBreadcrumbItem as A, AdminBreadcrumbs as a, type AdminNavItem as b, AdminPage as c, type AdminRole as d, index as i, navItemIsActive as n, roleCanAccessNav as r };
@@ -1,43 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
-
4
- type AdminRole = 'admin' | 'editor' | 'client';
5
- type AdminNavItem = {
6
- href: string;
7
- label: string;
8
- matchPrefixes: string[];
9
- roles?: AdminRole[];
10
- };
11
- type AdminBreadcrumbItem = {
12
- label: string;
13
- href?: string;
14
- };
15
- declare const roleCanAccessNav: (role: string | undefined, item: AdminNavItem) => boolean;
16
- declare const navItemIsActive: (pathname: string, item: AdminNavItem) => boolean;
17
-
18
- type AdminBreadcrumbsProps = {
19
- items: AdminBreadcrumbItem[];
20
- };
21
- declare function AdminBreadcrumbs({ items }: AdminBreadcrumbsProps): react_jsx_runtime.JSX.Element;
22
-
23
- type AdminPageProps = {
24
- title: string;
25
- description?: string;
26
- breadcrumbs: AdminBreadcrumbItem[];
27
- actions?: ReactNode;
28
- children: ReactNode;
29
- };
30
- declare function AdminPage({ title, description, breadcrumbs, actions, children }: AdminPageProps): react_jsx_runtime.JSX.Element;
31
-
32
- type index_AdminBreadcrumbItem = AdminBreadcrumbItem;
33
- declare const index_AdminBreadcrumbs: typeof AdminBreadcrumbs;
34
- type index_AdminNavItem = AdminNavItem;
35
- declare const index_AdminPage: typeof AdminPage;
36
- type index_AdminRole = AdminRole;
37
- declare const index_navItemIsActive: typeof navItemIsActive;
38
- declare const index_roleCanAccessNav: typeof roleCanAccessNav;
39
- declare namespace index {
40
- export { type index_AdminBreadcrumbItem as AdminBreadcrumbItem, index_AdminBreadcrumbs as AdminBreadcrumbs, type index_AdminNavItem as AdminNavItem, index_AdminPage as AdminPage, type index_AdminRole as AdminRole, index_navItemIsActive as navItemIsActive, index_roleCanAccessNav as roleCanAccessNav };
41
- }
42
-
43
- export { type AdminBreadcrumbItem as A, AdminBreadcrumbs as a, type AdminNavItem as b, AdminPage as c, type AdminRole as d, index as i, navItemIsActive as n, roleCanAccessNav as r };
@@ -1,128 +0,0 @@
1
- import { Field, CollectionConfig, GlobalConfig } from 'payload';
2
-
3
- type ThemeOption = 'light' | 'dark' | 'brand-light' | 'brand-dark';
4
- declare const createThemePreferenceField: (defaultTheme?: ThemeOption) => Field;
5
- declare const themePreferenceField: Field;
6
-
7
- type StudioGlobalLink = {
8
- label: string;
9
- slug: string;
10
- };
11
- interface AdminStudioConfig {
12
- enabled?: boolean;
13
- globals?: StudioGlobalLink[];
14
- media?: {
15
- collectionSlug?: string;
16
- };
17
- pages?: {
18
- builderBasePath?: string;
19
- collectionSlug?: string;
20
- };
21
- }
22
- interface AdminConfig {
23
- brandName: string;
24
- brandPrimary?: string;
25
- brandSecondary?: string;
26
- defaultTheme?: ThemeOption;
27
- logoUrl?: string;
28
- basePath?: string;
29
- studio?: AdminStudioConfig;
30
- }
31
- declare function configureAdmin(config: AdminConfig): {
32
- admin: {
33
- css: string;
34
- components: {
35
- graphics: {
36
- Logo: {
37
- exportName: string;
38
- path: string;
39
- clientProps: {
40
- brandName: string;
41
- logoUrl: string | undefined;
42
- };
43
- };
44
- Icon: {
45
- exportName: string;
46
- path: string;
47
- clientProps: {
48
- brandName: string;
49
- logoUrl: string | undefined;
50
- };
51
- };
52
- };
53
- views: {
54
- studioGlobals?: {
55
- path: "/studio-globals";
56
- Component: {
57
- exportName: string;
58
- path: string;
59
- clientProps: {
60
- globals: StudioGlobalLink[];
61
- globalsBasePath: string;
62
- };
63
- };
64
- } | undefined;
65
- dashboard: {
66
- Component: {
67
- exportName: string;
68
- path: string;
69
- clientProps: {
70
- brandName: string;
71
- logoUrl: string | undefined;
72
- globalsBasePath: string;
73
- mediaCollectionSlug: string;
74
- pagesCollectionSlug: string;
75
- };
76
- };
77
- };
78
- };
79
- providers: {
80
- exportName: string;
81
- path: string;
82
- clientProps: {
83
- defaultTheme: ThemeOption;
84
- };
85
- }[];
86
- afterNavLinks: {
87
- exportName: string;
88
- path: string;
89
- clientProps: {
90
- defaultTheme: ThemeOption;
91
- };
92
- }[];
93
- Nav?: {
94
- exportName: string;
95
- path: string;
96
- clientProps: {
97
- brandName: string;
98
- logoUrl: string | undefined;
99
- globalsBasePath: string;
100
- mediaCollectionSlug: string;
101
- pagesCollectionSlug: string;
102
- };
103
- } | undefined;
104
- };
105
- meta: {
106
- titleSuffix: string;
107
- };
108
- };
109
- brandName: string;
110
- brandPrimary: string;
111
- brandSecondary: string;
112
- defaultTheme: ThemeOption;
113
- wrapUsers(usersCollection: CollectionConfig): CollectionConfig;
114
- wrapGlobals(globals: GlobalConfig[]): GlobalConfig[];
115
- };
116
-
117
- declare function withTooltips(fields: Field[], customTooltips?: Record<string, string>): Field[];
118
-
119
- type index_AdminConfig = AdminConfig;
120
- declare const index_configureAdmin: typeof configureAdmin;
121
- declare const index_createThemePreferenceField: typeof createThemePreferenceField;
122
- declare const index_themePreferenceField: typeof themePreferenceField;
123
- declare const index_withTooltips: typeof withTooltips;
124
- 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 };
126
- }
127
-
128
- export { type AdminConfig as A, createThemePreferenceField as a, configureAdmin as c, index as i, themePreferenceField as t, withTooltips as w };
@@ -1,128 +0,0 @@
1
- import { Field, CollectionConfig, GlobalConfig } from 'payload';
2
-
3
- type ThemeOption = 'light' | 'dark' | 'brand-light' | 'brand-dark';
4
- declare const createThemePreferenceField: (defaultTheme?: ThemeOption) => Field;
5
- declare const themePreferenceField: Field;
6
-
7
- type StudioGlobalLink = {
8
- label: string;
9
- slug: string;
10
- };
11
- interface AdminStudioConfig {
12
- enabled?: boolean;
13
- globals?: StudioGlobalLink[];
14
- media?: {
15
- collectionSlug?: string;
16
- };
17
- pages?: {
18
- builderBasePath?: string;
19
- collectionSlug?: string;
20
- };
21
- }
22
- interface AdminConfig {
23
- brandName: string;
24
- brandPrimary?: string;
25
- brandSecondary?: string;
26
- defaultTheme?: ThemeOption;
27
- logoUrl?: string;
28
- basePath?: string;
29
- studio?: AdminStudioConfig;
30
- }
31
- declare function configureAdmin(config: AdminConfig): {
32
- admin: {
33
- css: string;
34
- components: {
35
- graphics: {
36
- Logo: {
37
- exportName: string;
38
- path: string;
39
- clientProps: {
40
- brandName: string;
41
- logoUrl: string | undefined;
42
- };
43
- };
44
- Icon: {
45
- exportName: string;
46
- path: string;
47
- clientProps: {
48
- brandName: string;
49
- logoUrl: string | undefined;
50
- };
51
- };
52
- };
53
- views: {
54
- studioGlobals?: {
55
- path: "/studio-globals";
56
- Component: {
57
- exportName: string;
58
- path: string;
59
- clientProps: {
60
- globals: StudioGlobalLink[];
61
- globalsBasePath: string;
62
- };
63
- };
64
- } | undefined;
65
- dashboard: {
66
- Component: {
67
- exportName: string;
68
- path: string;
69
- clientProps: {
70
- brandName: string;
71
- logoUrl: string | undefined;
72
- globalsBasePath: string;
73
- mediaCollectionSlug: string;
74
- pagesCollectionSlug: string;
75
- };
76
- };
77
- };
78
- };
79
- providers: {
80
- exportName: string;
81
- path: string;
82
- clientProps: {
83
- defaultTheme: ThemeOption;
84
- };
85
- }[];
86
- afterNavLinks: {
87
- exportName: string;
88
- path: string;
89
- clientProps: {
90
- defaultTheme: ThemeOption;
91
- };
92
- }[];
93
- Nav?: {
94
- exportName: string;
95
- path: string;
96
- clientProps: {
97
- brandName: string;
98
- logoUrl: string | undefined;
99
- globalsBasePath: string;
100
- mediaCollectionSlug: string;
101
- pagesCollectionSlug: string;
102
- };
103
- } | undefined;
104
- };
105
- meta: {
106
- titleSuffix: string;
107
- };
108
- };
109
- brandName: string;
110
- brandPrimary: string;
111
- brandSecondary: string;
112
- defaultTheme: ThemeOption;
113
- wrapUsers(usersCollection: CollectionConfig): CollectionConfig;
114
- wrapGlobals(globals: GlobalConfig[]): GlobalConfig[];
115
- };
116
-
117
- declare function withTooltips(fields: Field[], customTooltips?: Record<string, string>): Field[];
118
-
119
- type index_AdminConfig = AdminConfig;
120
- declare const index_configureAdmin: typeof configureAdmin;
121
- declare const index_createThemePreferenceField: typeof createThemePreferenceField;
122
- declare const index_themePreferenceField: typeof themePreferenceField;
123
- declare const index_withTooltips: typeof withTooltips;
124
- 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 };
126
- }
127
-
128
- export { type AdminConfig as A, createThemePreferenceField as a, configureAdmin as c, index as i, themePreferenceField as t, withTooltips as w };
@@ -1,39 +0,0 @@
1
- import { S as StudioDocumentV1, a as StudioNodeTypeDefinition, b as StudioModuleManifest } from './index-CmR6NInu.js';
2
-
3
- declare const pageNodeTypes: StudioNodeTypeDefinition[];
4
- declare const pagePaletteGroups: {
5
- id: string;
6
- label: string;
7
- items: {
8
- nodeType: string;
9
- title: string;
10
- description: string;
11
- }[];
12
- }[];
13
- declare const pageInspectorPanels: {
14
- id: string;
15
- label: string;
16
- nodeType: string;
17
- fields: {
18
- key: string;
19
- label: string;
20
- type: "text";
21
- }[];
22
- }[];
23
- declare const pageStudioModuleManifest: StudioModuleManifest;
24
- declare const layoutToStudioDocument: (layout: Array<Record<string, unknown>>, title?: string, metadata?: Record<string, unknown>) => StudioDocumentV1;
25
- declare const studioDocumentToLayout: (document: StudioDocumentV1) => Array<Record<string, unknown>>;
26
- declare const createDefaultStudioDocument: (title?: string) => StudioDocumentV1;
27
-
28
- declare const index_createDefaultStudioDocument: typeof createDefaultStudioDocument;
29
- declare const index_layoutToStudioDocument: typeof layoutToStudioDocument;
30
- declare const index_pageInspectorPanels: typeof pageInspectorPanels;
31
- declare const index_pageNodeTypes: typeof pageNodeTypes;
32
- declare const index_pagePaletteGroups: typeof pagePaletteGroups;
33
- declare const index_pageStudioModuleManifest: typeof pageStudioModuleManifest;
34
- declare const index_studioDocumentToLayout: typeof studioDocumentToLayout;
35
- declare namespace index {
36
- export { index_createDefaultStudioDocument as createDefaultStudioDocument, index_layoutToStudioDocument as layoutToStudioDocument, index_pageInspectorPanels as pageInspectorPanels, index_pageNodeTypes as pageNodeTypes, index_pagePaletteGroups as pagePaletteGroups, index_pageStudioModuleManifest as pageStudioModuleManifest, index_studioDocumentToLayout as studioDocumentToLayout };
37
- }
38
-
39
- export { pageNodeTypes as a, pagePaletteGroups as b, createDefaultStudioDocument as c, pageStudioModuleManifest as d, index as i, layoutToStudioDocument as l, pageInspectorPanels as p, studioDocumentToLayout as s };