@orion-studios/payload-studio 0.5.0-beta.98 → 0.6.0-beta.1
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/README.md +58 -68
- package/dist/admin/client.d.mts +5 -0
- package/dist/admin/client.d.ts +5 -0
- package/dist/admin/client.js +4491 -736
- package/dist/admin/client.mjs +3367 -752
- package/dist/admin/index.d.mts +2 -1
- package/dist/admin/index.d.ts +2 -1
- package/dist/admin/index.js +498 -53
- package/dist/admin/index.mjs +2 -1
- package/dist/admin-app/client.d.mts +1 -0
- package/dist/admin-app/client.d.ts +1 -0
- package/dist/admin-app/client.js +285 -109
- package/dist/admin-app/client.mjs +59 -871
- package/dist/admin-app/index.d.mts +2 -1
- package/dist/admin-app/index.d.ts +2 -1
- package/dist/admin-app/index.mjs +5 -3
- package/dist/admin-app/styles.css +1708 -56
- package/dist/admin.css +158 -35
- package/dist/blocks/index.js +415 -200
- package/dist/blocks/index.mjs +2 -2
- package/dist/{chunk-XK3K5GRP.mjs → chunk-JQAHXYAM.mjs} +271 -67
- package/dist/chunk-KPIX7OSV.mjs +1051 -0
- package/dist/chunk-OQSEJXC4.mjs +166 -0
- package/dist/{chunk-XHWQJUX5.mjs → chunk-OTHERBGX.mjs} +3 -3
- package/dist/chunk-PF3EBZXF.mjs +326 -0
- package/dist/chunk-Q2HGC67S.mjs +904 -0
- package/dist/{chunk-XVH5SCBD.mjs → chunk-RKTIFEUY.mjs} +4 -19
- package/dist/chunk-W2UOCJDX.mjs +32 -0
- package/dist/{chunk-C4J35SPJ.mjs → chunk-XKUTZ7IU.mjs} +257 -452
- package/dist/{index-ZbOx4OCF.d.ts → index-52HdVLQq.d.ts} +12 -22
- package/dist/index-BMitiKK8.d.ts +435 -0
- package/dist/index-Crx_MtPw.d.ts +223 -0
- package/dist/index-Cv-6qnrw.d.mts +223 -0
- package/dist/{index-ZbOx4OCF.d.mts → index-DEQC3Dwj.d.mts} +12 -22
- package/dist/{index-BIwu3qIH.d.mts → index-DWmudwDm.d.mts} +2 -1
- package/dist/{index-BIwu3qIH.d.ts → index-DWmudwDm.d.ts} +2 -1
- package/dist/index-D_b24Gef.d.mts +435 -0
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +1968 -1198
- package/dist/index.mjs +10 -8
- package/dist/nextjs/index.js +5 -684
- package/dist/nextjs/index.mjs +2 -3
- package/dist/sitePreviewTypes-BkHCWxNW.d.mts +58 -0
- package/dist/sitePreviewTypes-BkHCWxNW.d.ts +58 -0
- package/dist/studio/index.d.mts +1 -1
- package/dist/studio/index.d.ts +1 -1
- package/dist/studio-pages/builder.css +125 -83
- package/dist/studio-pages/client.d.mts +58 -1
- package/dist/studio-pages/client.d.ts +58 -1
- package/dist/studio-pages/client.js +450 -241
- package/dist/studio-pages/client.mjs +455 -247
- package/dist/studio-pages/index.d.mts +3 -2
- package/dist/studio-pages/index.d.ts +3 -2
- package/dist/studio-pages/index.js +418 -183
- package/dist/studio-pages/index.mjs +15 -6
- package/package.json +19 -5
- package/dist/chunk-2FO2ROW4.mjs +0 -468
- package/dist/chunk-SIL2J5MF.mjs +0 -155
- package/dist/index-BFXZue5i.d.ts +0 -178
- package/dist/index-CoYRBbf6.d.mts +0 -178
- package/dist/index-R7hA134j.d.mts +0 -140
- package/dist/index-vjrjy0P4.d.ts +0 -140
package/dist/chunk-SIL2J5MF.mjs
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
// src/blocks/blocks/sectionStyleFields.ts
|
|
2
|
-
var sectionStyleDefaults = {
|
|
3
|
-
contentBackgroundColor: "#ffffff",
|
|
4
|
-
contentBackgroundMode: "none",
|
|
5
|
-
contentGradientAngle: "135",
|
|
6
|
-
contentGradientFrom: "#ffffff",
|
|
7
|
-
contentGradientPreset: "none",
|
|
8
|
-
contentGradientTo: "#f4f6f2",
|
|
9
|
-
contentWidth: "inherit",
|
|
10
|
-
sectionPaddingX: "inherit",
|
|
11
|
-
sectionBackgroundColor: "#ffffff",
|
|
12
|
-
sectionBackgroundMode: "none",
|
|
13
|
-
sectionGradientAngle: "135",
|
|
14
|
-
sectionGradientFrom: "#124a37",
|
|
15
|
-
sectionGradientPreset: "forest",
|
|
16
|
-
sectionGradientTo: "#1f684f",
|
|
17
|
-
sectionPaddingY: "md",
|
|
18
|
-
sectionWidth: "content"
|
|
19
|
-
};
|
|
20
|
-
var sectionStyleFields = () => [
|
|
21
|
-
{
|
|
22
|
-
name: "sectionWidth",
|
|
23
|
-
type: "select",
|
|
24
|
-
defaultValue: sectionStyleDefaults.sectionWidth,
|
|
25
|
-
options: [
|
|
26
|
-
{ label: "Content", value: "content" },
|
|
27
|
-
{ label: "Wide", value: "wide" },
|
|
28
|
-
{ label: "Full", value: "full" }
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
name: "contentWidth",
|
|
33
|
-
type: "select",
|
|
34
|
-
defaultValue: sectionStyleDefaults.contentWidth,
|
|
35
|
-
options: [
|
|
36
|
-
{ label: "Inherit", value: "inherit" },
|
|
37
|
-
{ label: "Narrow", value: "narrow" },
|
|
38
|
-
{ label: "Content", value: "content" },
|
|
39
|
-
{ label: "Wide", value: "wide" },
|
|
40
|
-
{ label: "Full", value: "full" }
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
name: "sectionPaddingY",
|
|
45
|
-
type: "select",
|
|
46
|
-
defaultValue: sectionStyleDefaults.sectionPaddingY,
|
|
47
|
-
options: [
|
|
48
|
-
{ label: "None", value: "none" },
|
|
49
|
-
{ label: "Small", value: "sm" },
|
|
50
|
-
{ label: "Medium", value: "md" },
|
|
51
|
-
{ label: "Large", value: "lg" }
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
name: "sectionPaddingX",
|
|
56
|
-
type: "select",
|
|
57
|
-
defaultValue: sectionStyleDefaults.sectionPaddingX,
|
|
58
|
-
options: [
|
|
59
|
-
{ label: "Inherit", value: "inherit" },
|
|
60
|
-
{ label: "None", value: "none" },
|
|
61
|
-
{ label: "Small", value: "sm" },
|
|
62
|
-
{ label: "Medium", value: "md" },
|
|
63
|
-
{ label: "Large", value: "lg" }
|
|
64
|
-
]
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
name: "sectionBackgroundMode",
|
|
68
|
-
type: "select",
|
|
69
|
-
defaultValue: sectionStyleDefaults.sectionBackgroundMode,
|
|
70
|
-
options: [
|
|
71
|
-
{ label: "None", value: "none" },
|
|
72
|
-
{ label: "Color", value: "color" },
|
|
73
|
-
{ label: "Gradient", value: "gradient" }
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
name: "sectionBackgroundColor",
|
|
78
|
-
type: "text",
|
|
79
|
-
defaultValue: sectionStyleDefaults.sectionBackgroundColor
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
name: "sectionGradientPreset",
|
|
83
|
-
type: "select",
|
|
84
|
-
defaultValue: sectionStyleDefaults.sectionGradientPreset,
|
|
85
|
-
options: [
|
|
86
|
-
{ label: "None", value: "none" },
|
|
87
|
-
{ label: "Forest", value: "forest" },
|
|
88
|
-
{ label: "Moss", value: "moss" },
|
|
89
|
-
{ label: "Cream", value: "cream" },
|
|
90
|
-
{ label: "Slate", value: "slate" }
|
|
91
|
-
]
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
name: "sectionGradientFrom",
|
|
95
|
-
type: "text",
|
|
96
|
-
defaultValue: sectionStyleDefaults.sectionGradientFrom
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
name: "sectionGradientTo",
|
|
100
|
-
type: "text",
|
|
101
|
-
defaultValue: sectionStyleDefaults.sectionGradientTo
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
name: "sectionGradientAngle",
|
|
105
|
-
type: "text",
|
|
106
|
-
defaultValue: sectionStyleDefaults.sectionGradientAngle
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
name: "contentBackgroundMode",
|
|
110
|
-
type: "select",
|
|
111
|
-
defaultValue: sectionStyleDefaults.contentBackgroundMode,
|
|
112
|
-
options: [
|
|
113
|
-
{ label: "None", value: "none" },
|
|
114
|
-
{ label: "Color", value: "color" },
|
|
115
|
-
{ label: "Gradient", value: "gradient" }
|
|
116
|
-
]
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name: "contentBackgroundColor",
|
|
120
|
-
type: "text",
|
|
121
|
-
defaultValue: sectionStyleDefaults.contentBackgroundColor
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
name: "contentGradientPreset",
|
|
125
|
-
type: "select",
|
|
126
|
-
defaultValue: sectionStyleDefaults.contentGradientPreset,
|
|
127
|
-
options: [
|
|
128
|
-
{ label: "None", value: "none" },
|
|
129
|
-
{ label: "Cloud", value: "cloud" },
|
|
130
|
-
{ label: "Sand", value: "sand" },
|
|
131
|
-
{ label: "Mint", value: "mint" },
|
|
132
|
-
{ label: "Night", value: "night" }
|
|
133
|
-
]
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
name: "contentGradientFrom",
|
|
137
|
-
type: "text",
|
|
138
|
-
defaultValue: sectionStyleDefaults.contentGradientFrom
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
name: "contentGradientTo",
|
|
142
|
-
type: "text",
|
|
143
|
-
defaultValue: sectionStyleDefaults.contentGradientTo
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
name: "contentGradientAngle",
|
|
147
|
-
type: "text",
|
|
148
|
-
defaultValue: sectionStyleDefaults.contentGradientAngle
|
|
149
|
-
}
|
|
150
|
-
];
|
|
151
|
-
|
|
152
|
-
export {
|
|
153
|
-
sectionStyleDefaults,
|
|
154
|
-
sectionStyleFields
|
|
155
|
-
};
|
package/dist/index-BFXZue5i.d.ts
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { Field, CollectionConfig, GlobalConfig } from 'payload';
|
|
2
|
-
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';
|
|
3
|
-
|
|
4
|
-
type ThemeOption = 'light' | 'dark' | 'brand-light' | 'brand-dark';
|
|
5
|
-
declare const createThemePreferenceField: (defaultTheme?: ThemeOption) => Field;
|
|
6
|
-
declare const themePreferenceField: Field;
|
|
7
|
-
|
|
8
|
-
type StudioGlobalLink = {
|
|
9
|
-
description?: string;
|
|
10
|
-
href?: string;
|
|
11
|
-
label: string;
|
|
12
|
-
slug: string;
|
|
13
|
-
};
|
|
14
|
-
interface AdminStudioConfig {
|
|
15
|
-
enabled?: boolean;
|
|
16
|
-
globals?: StudioGlobalLink[];
|
|
17
|
-
media?: {
|
|
18
|
-
collectionSlug?: string;
|
|
19
|
-
};
|
|
20
|
-
pages?: {
|
|
21
|
-
builderBasePath?: string;
|
|
22
|
-
collectionSlug?: string;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
interface AdminConfig {
|
|
26
|
-
brandName: string;
|
|
27
|
-
brandPrimary?: string;
|
|
28
|
-
brandSecondary?: string;
|
|
29
|
-
defaultTheme?: ThemeOption;
|
|
30
|
-
logoUrl?: string;
|
|
31
|
-
basePath?: string;
|
|
32
|
-
studio?: AdminStudioConfig;
|
|
33
|
-
}
|
|
34
|
-
declare function configureAdmin(config: AdminConfig): {
|
|
35
|
-
admin: {
|
|
36
|
-
css: string;
|
|
37
|
-
components: {
|
|
38
|
-
graphics: {
|
|
39
|
-
Logo: {
|
|
40
|
-
exportName: string;
|
|
41
|
-
path: string;
|
|
42
|
-
clientProps: {
|
|
43
|
-
brandName: string;
|
|
44
|
-
logoUrl: string | undefined;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
Icon: {
|
|
48
|
-
exportName: string;
|
|
49
|
-
path: string;
|
|
50
|
-
clientProps: {
|
|
51
|
-
brandName: string;
|
|
52
|
-
logoUrl: string | undefined;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
views: {
|
|
57
|
-
studioGlobals?: {
|
|
58
|
-
path: "/studio-globals";
|
|
59
|
-
Component: {
|
|
60
|
-
exportName: string;
|
|
61
|
-
path: string;
|
|
62
|
-
clientProps: {
|
|
63
|
-
globals: StudioGlobalLink[];
|
|
64
|
-
globalsBasePath: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
} | undefined;
|
|
68
|
-
studioContactForm?: {
|
|
69
|
-
path: "/studio-contact-form";
|
|
70
|
-
Component: {
|
|
71
|
-
exportName: string;
|
|
72
|
-
path: string;
|
|
73
|
-
clientProps: {
|
|
74
|
-
globalSlug: string;
|
|
75
|
-
globalsBasePath: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
} | undefined;
|
|
79
|
-
dashboard: {
|
|
80
|
-
Component: {
|
|
81
|
-
exportName: string;
|
|
82
|
-
path: string;
|
|
83
|
-
clientProps: {
|
|
84
|
-
brandName: string;
|
|
85
|
-
logoUrl: string | undefined;
|
|
86
|
-
globalsBasePath: string;
|
|
87
|
-
globalsExtraMatchPrefixes: string[];
|
|
88
|
-
mediaCollectionSlug: string;
|
|
89
|
-
pagesCollectionSlug: string;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
providers: {
|
|
95
|
-
exportName: string;
|
|
96
|
-
path: string;
|
|
97
|
-
clientProps: {
|
|
98
|
-
defaultTheme: ThemeOption;
|
|
99
|
-
};
|
|
100
|
-
}[];
|
|
101
|
-
afterNavLinks: {
|
|
102
|
-
exportName: string;
|
|
103
|
-
path: string;
|
|
104
|
-
clientProps: {
|
|
105
|
-
defaultTheme: ThemeOption;
|
|
106
|
-
};
|
|
107
|
-
}[];
|
|
108
|
-
Nav?: {
|
|
109
|
-
exportName: string;
|
|
110
|
-
path: string;
|
|
111
|
-
clientProps: {
|
|
112
|
-
brandName: string;
|
|
113
|
-
logoUrl: string | undefined;
|
|
114
|
-
globalsBasePath: string;
|
|
115
|
-
globalsExtraMatchPrefixes: string[];
|
|
116
|
-
mediaCollectionSlug: string;
|
|
117
|
-
pagesCollectionSlug: string;
|
|
118
|
-
};
|
|
119
|
-
} | undefined;
|
|
120
|
-
};
|
|
121
|
-
meta: {
|
|
122
|
-
titleSuffix: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
brandName: string;
|
|
126
|
-
brandPrimary: string;
|
|
127
|
-
brandSecondary: string;
|
|
128
|
-
defaultTheme: ThemeOption;
|
|
129
|
-
wrapUsers(usersCollection: CollectionConfig): CollectionConfig;
|
|
130
|
-
wrapGlobals(globals: GlobalConfig[]): GlobalConfig[];
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
declare function withTooltips(fields: Field[], customTooltips?: Record<string, string>): Field[];
|
|
134
|
-
|
|
135
|
-
declare const createHeaderNavItemsField: () => Field;
|
|
136
|
-
|
|
137
|
-
type CreateSocialMediaConnectionsFieldOptions = {
|
|
138
|
-
description?: string;
|
|
139
|
-
label?: string;
|
|
140
|
-
name?: string;
|
|
141
|
-
platforms?: SocialMediaPlatform[];
|
|
142
|
-
};
|
|
143
|
-
declare const createSocialMediaConnectionsField: (options?: CreateSocialMediaConnectionsFieldOptions) => Field;
|
|
144
|
-
declare const socialMediaConnectionsField: Field;
|
|
145
|
-
|
|
146
|
-
type CreateSocialMediaGlobalOptions = {
|
|
147
|
-
description?: string;
|
|
148
|
-
fieldOptions?: Omit<CreateSocialMediaConnectionsFieldOptions, 'label' | 'name'>;
|
|
149
|
-
slug?: string;
|
|
150
|
-
};
|
|
151
|
-
declare const createSocialMediaGlobal: (options?: CreateSocialMediaGlobalOptions) => GlobalConfig;
|
|
152
|
-
|
|
153
|
-
type index_AdminConfig = AdminConfig;
|
|
154
|
-
type index_CreateSocialMediaConnectionsFieldOptions = CreateSocialMediaConnectionsFieldOptions;
|
|
155
|
-
type index_CreateSocialMediaGlobalOptions = CreateSocialMediaGlobalOptions;
|
|
156
|
-
declare const index_SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM: typeof SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM;
|
|
157
|
-
declare const index_SOCIAL_MEDIA_ICON_OPTIONS: typeof SOCIAL_MEDIA_ICON_OPTIONS;
|
|
158
|
-
declare const index_SOCIAL_MEDIA_PLATFORMS: typeof SOCIAL_MEDIA_PLATFORMS;
|
|
159
|
-
declare const index_SOCIAL_MEDIA_PLATFORM_LABELS: typeof SOCIAL_MEDIA_PLATFORM_LABELS;
|
|
160
|
-
declare const index_SocialMediaGlobalData: typeof SocialMediaGlobalData;
|
|
161
|
-
declare const index_SocialMediaIconLibrary: typeof SocialMediaIconLibrary;
|
|
162
|
-
declare const index_SocialMediaIconOption: typeof SocialMediaIconOption;
|
|
163
|
-
declare const index_SocialMediaPlatform: typeof SocialMediaPlatform;
|
|
164
|
-
declare const index_SocialMediaProfileData: typeof SocialMediaProfileData;
|
|
165
|
-
declare const index_SocialMediaProfilesData: typeof SocialMediaProfilesData;
|
|
166
|
-
declare const index_configureAdmin: typeof configureAdmin;
|
|
167
|
-
declare const index_createHeaderNavItemsField: typeof createHeaderNavItemsField;
|
|
168
|
-
declare const index_createSocialMediaConnectionsField: typeof createSocialMediaConnectionsField;
|
|
169
|
-
declare const index_createSocialMediaGlobal: typeof createSocialMediaGlobal;
|
|
170
|
-
declare const index_createThemePreferenceField: typeof createThemePreferenceField;
|
|
171
|
-
declare const index_socialMediaConnectionsField: typeof socialMediaConnectionsField;
|
|
172
|
-
declare const index_themePreferenceField: typeof themePreferenceField;
|
|
173
|
-
declare const index_withTooltips: typeof withTooltips;
|
|
174
|
-
declare namespace index {
|
|
175
|
-
export { type index_AdminConfig as AdminConfig, type index_CreateSocialMediaConnectionsFieldOptions as CreateSocialMediaConnectionsFieldOptions, type index_CreateSocialMediaGlobalOptions as CreateSocialMediaGlobalOptions, 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, 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 };
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export { type AdminConfig as A, type CreateSocialMediaConnectionsFieldOptions as C, type CreateSocialMediaGlobalOptions as a, createHeaderNavItemsField as b, configureAdmin as c, createSocialMediaConnectionsField as d, createSocialMediaGlobal as e, createThemePreferenceField as f, index as i, socialMediaConnectionsField as s, themePreferenceField as t, withTooltips as w };
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { Field, CollectionConfig, GlobalConfig } from 'payload';
|
|
2
|
-
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';
|
|
3
|
-
|
|
4
|
-
type ThemeOption = 'light' | 'dark' | 'brand-light' | 'brand-dark';
|
|
5
|
-
declare const createThemePreferenceField: (defaultTheme?: ThemeOption) => Field;
|
|
6
|
-
declare const themePreferenceField: Field;
|
|
7
|
-
|
|
8
|
-
type StudioGlobalLink = {
|
|
9
|
-
description?: string;
|
|
10
|
-
href?: string;
|
|
11
|
-
label: string;
|
|
12
|
-
slug: string;
|
|
13
|
-
};
|
|
14
|
-
interface AdminStudioConfig {
|
|
15
|
-
enabled?: boolean;
|
|
16
|
-
globals?: StudioGlobalLink[];
|
|
17
|
-
media?: {
|
|
18
|
-
collectionSlug?: string;
|
|
19
|
-
};
|
|
20
|
-
pages?: {
|
|
21
|
-
builderBasePath?: string;
|
|
22
|
-
collectionSlug?: string;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
interface AdminConfig {
|
|
26
|
-
brandName: string;
|
|
27
|
-
brandPrimary?: string;
|
|
28
|
-
brandSecondary?: string;
|
|
29
|
-
defaultTheme?: ThemeOption;
|
|
30
|
-
logoUrl?: string;
|
|
31
|
-
basePath?: string;
|
|
32
|
-
studio?: AdminStudioConfig;
|
|
33
|
-
}
|
|
34
|
-
declare function configureAdmin(config: AdminConfig): {
|
|
35
|
-
admin: {
|
|
36
|
-
css: string;
|
|
37
|
-
components: {
|
|
38
|
-
graphics: {
|
|
39
|
-
Logo: {
|
|
40
|
-
exportName: string;
|
|
41
|
-
path: string;
|
|
42
|
-
clientProps: {
|
|
43
|
-
brandName: string;
|
|
44
|
-
logoUrl: string | undefined;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
Icon: {
|
|
48
|
-
exportName: string;
|
|
49
|
-
path: string;
|
|
50
|
-
clientProps: {
|
|
51
|
-
brandName: string;
|
|
52
|
-
logoUrl: string | undefined;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
views: {
|
|
57
|
-
studioGlobals?: {
|
|
58
|
-
path: "/studio-globals";
|
|
59
|
-
Component: {
|
|
60
|
-
exportName: string;
|
|
61
|
-
path: string;
|
|
62
|
-
clientProps: {
|
|
63
|
-
globals: StudioGlobalLink[];
|
|
64
|
-
globalsBasePath: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
} | undefined;
|
|
68
|
-
studioContactForm?: {
|
|
69
|
-
path: "/studio-contact-form";
|
|
70
|
-
Component: {
|
|
71
|
-
exportName: string;
|
|
72
|
-
path: string;
|
|
73
|
-
clientProps: {
|
|
74
|
-
globalSlug: string;
|
|
75
|
-
globalsBasePath: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
} | undefined;
|
|
79
|
-
dashboard: {
|
|
80
|
-
Component: {
|
|
81
|
-
exportName: string;
|
|
82
|
-
path: string;
|
|
83
|
-
clientProps: {
|
|
84
|
-
brandName: string;
|
|
85
|
-
logoUrl: string | undefined;
|
|
86
|
-
globalsBasePath: string;
|
|
87
|
-
globalsExtraMatchPrefixes: string[];
|
|
88
|
-
mediaCollectionSlug: string;
|
|
89
|
-
pagesCollectionSlug: string;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
providers: {
|
|
95
|
-
exportName: string;
|
|
96
|
-
path: string;
|
|
97
|
-
clientProps: {
|
|
98
|
-
defaultTheme: ThemeOption;
|
|
99
|
-
};
|
|
100
|
-
}[];
|
|
101
|
-
afterNavLinks: {
|
|
102
|
-
exportName: string;
|
|
103
|
-
path: string;
|
|
104
|
-
clientProps: {
|
|
105
|
-
defaultTheme: ThemeOption;
|
|
106
|
-
};
|
|
107
|
-
}[];
|
|
108
|
-
Nav?: {
|
|
109
|
-
exportName: string;
|
|
110
|
-
path: string;
|
|
111
|
-
clientProps: {
|
|
112
|
-
brandName: string;
|
|
113
|
-
logoUrl: string | undefined;
|
|
114
|
-
globalsBasePath: string;
|
|
115
|
-
globalsExtraMatchPrefixes: string[];
|
|
116
|
-
mediaCollectionSlug: string;
|
|
117
|
-
pagesCollectionSlug: string;
|
|
118
|
-
};
|
|
119
|
-
} | undefined;
|
|
120
|
-
};
|
|
121
|
-
meta: {
|
|
122
|
-
titleSuffix: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
brandName: string;
|
|
126
|
-
brandPrimary: string;
|
|
127
|
-
brandSecondary: string;
|
|
128
|
-
defaultTheme: ThemeOption;
|
|
129
|
-
wrapUsers(usersCollection: CollectionConfig): CollectionConfig;
|
|
130
|
-
wrapGlobals(globals: GlobalConfig[]): GlobalConfig[];
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
declare function withTooltips(fields: Field[], customTooltips?: Record<string, string>): Field[];
|
|
134
|
-
|
|
135
|
-
declare const createHeaderNavItemsField: () => Field;
|
|
136
|
-
|
|
137
|
-
type CreateSocialMediaConnectionsFieldOptions = {
|
|
138
|
-
description?: string;
|
|
139
|
-
label?: string;
|
|
140
|
-
name?: string;
|
|
141
|
-
platforms?: SocialMediaPlatform[];
|
|
142
|
-
};
|
|
143
|
-
declare const createSocialMediaConnectionsField: (options?: CreateSocialMediaConnectionsFieldOptions) => Field;
|
|
144
|
-
declare const socialMediaConnectionsField: Field;
|
|
145
|
-
|
|
146
|
-
type CreateSocialMediaGlobalOptions = {
|
|
147
|
-
description?: string;
|
|
148
|
-
fieldOptions?: Omit<CreateSocialMediaConnectionsFieldOptions, 'label' | 'name'>;
|
|
149
|
-
slug?: string;
|
|
150
|
-
};
|
|
151
|
-
declare const createSocialMediaGlobal: (options?: CreateSocialMediaGlobalOptions) => GlobalConfig;
|
|
152
|
-
|
|
153
|
-
type index_AdminConfig = AdminConfig;
|
|
154
|
-
type index_CreateSocialMediaConnectionsFieldOptions = CreateSocialMediaConnectionsFieldOptions;
|
|
155
|
-
type index_CreateSocialMediaGlobalOptions = CreateSocialMediaGlobalOptions;
|
|
156
|
-
declare const index_SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM: typeof SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM;
|
|
157
|
-
declare const index_SOCIAL_MEDIA_ICON_OPTIONS: typeof SOCIAL_MEDIA_ICON_OPTIONS;
|
|
158
|
-
declare const index_SOCIAL_MEDIA_PLATFORMS: typeof SOCIAL_MEDIA_PLATFORMS;
|
|
159
|
-
declare const index_SOCIAL_MEDIA_PLATFORM_LABELS: typeof SOCIAL_MEDIA_PLATFORM_LABELS;
|
|
160
|
-
declare const index_SocialMediaGlobalData: typeof SocialMediaGlobalData;
|
|
161
|
-
declare const index_SocialMediaIconLibrary: typeof SocialMediaIconLibrary;
|
|
162
|
-
declare const index_SocialMediaIconOption: typeof SocialMediaIconOption;
|
|
163
|
-
declare const index_SocialMediaPlatform: typeof SocialMediaPlatform;
|
|
164
|
-
declare const index_SocialMediaProfileData: typeof SocialMediaProfileData;
|
|
165
|
-
declare const index_SocialMediaProfilesData: typeof SocialMediaProfilesData;
|
|
166
|
-
declare const index_configureAdmin: typeof configureAdmin;
|
|
167
|
-
declare const index_createHeaderNavItemsField: typeof createHeaderNavItemsField;
|
|
168
|
-
declare const index_createSocialMediaConnectionsField: typeof createSocialMediaConnectionsField;
|
|
169
|
-
declare const index_createSocialMediaGlobal: typeof createSocialMediaGlobal;
|
|
170
|
-
declare const index_createThemePreferenceField: typeof createThemePreferenceField;
|
|
171
|
-
declare const index_socialMediaConnectionsField: typeof socialMediaConnectionsField;
|
|
172
|
-
declare const index_themePreferenceField: typeof themePreferenceField;
|
|
173
|
-
declare const index_withTooltips: typeof withTooltips;
|
|
174
|
-
declare namespace index {
|
|
175
|
-
export { type index_AdminConfig as AdminConfig, type index_CreateSocialMediaConnectionsFieldOptions as CreateSocialMediaConnectionsFieldOptions, type index_CreateSocialMediaGlobalOptions as CreateSocialMediaGlobalOptions, 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, 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 };
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export { type AdminConfig as A, type CreateSocialMediaConnectionsFieldOptions as C, type CreateSocialMediaGlobalOptions as a, createHeaderNavItemsField as b, configureAdmin as c, createSocialMediaConnectionsField as d, createSocialMediaGlobal as e, createThemePreferenceField as f, index as i, socialMediaConnectionsField as s, themePreferenceField as t, withTooltips as w };
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { S as StudioDocumentV1, a as StudioNodeTypeDefinition, b as StudioModuleManifest } from './index-BIwu3qIH.mjs';
|
|
2
|
-
|
|
3
|
-
type InspectorGroupKey = 'advanced' | 'basics' | 'layout' | 'media' | 'style' | 'typography';
|
|
4
|
-
type InspectorFieldType = 'checkbox' | 'color' | 'number' | 'search' | 'select' | 'text' | 'textarea';
|
|
5
|
-
|
|
6
|
-
type BuilderSettingsPanelMode = 'advanced' | 'basic';
|
|
7
|
-
type BuilderTextAlign = 'center' | 'justify' | 'left' | 'right';
|
|
8
|
-
type BuilderTypographySpacingPreset = 'normal' | 'relaxed' | 'tight';
|
|
9
|
-
type BuilderLayoutSettingsV2 = {
|
|
10
|
-
contentWidth?: 'content' | 'full' | 'inherit' | 'narrow' | 'wide';
|
|
11
|
-
linkHorizontalPadding?: boolean;
|
|
12
|
-
linkVerticalPadding?: boolean;
|
|
13
|
-
paddingBottomPt?: number | null;
|
|
14
|
-
paddingLeftPt?: number | null;
|
|
15
|
-
paddingRightPt?: number | null;
|
|
16
|
-
paddingTopPt?: number | null;
|
|
17
|
-
sectionPaddingX?: 'inherit' | 'lg' | 'md' | 'none' | 'sm';
|
|
18
|
-
sectionPaddingY?: 'lg' | 'md' | 'none' | 'sm';
|
|
19
|
-
};
|
|
20
|
-
type BuilderTypographySettingsV2 = {
|
|
21
|
-
bodyAlign?: BuilderTextAlign;
|
|
22
|
-
headingAlign?: BuilderTextAlign;
|
|
23
|
-
letterSpacingPreset?: BuilderTypographySpacingPreset;
|
|
24
|
-
lineHeightPreset?: BuilderTypographySpacingPreset;
|
|
25
|
-
maxTextWidth?: 'auto' | 'full' | 'lg' | 'md' | 'sm';
|
|
26
|
-
};
|
|
27
|
-
type BuilderMediaSettingsV2 = {
|
|
28
|
-
cornerStyle?: 'rounded' | 'square';
|
|
29
|
-
fit?: 'contain' | 'cover';
|
|
30
|
-
height?: number | null;
|
|
31
|
-
position?: 'bottom' | 'center' | 'left' | 'right' | 'top';
|
|
32
|
-
positionX?: number | null;
|
|
33
|
-
positionY?: number | null;
|
|
34
|
-
};
|
|
35
|
-
type BuilderAppearanceSettingsV2 = {
|
|
36
|
-
contentBackgroundColor?: string;
|
|
37
|
-
contentBackgroundMode?: 'color' | 'gradient' | 'none';
|
|
38
|
-
contentGradientAngle?: string;
|
|
39
|
-
contentGradientFrom?: string;
|
|
40
|
-
contentGradientPreset?: string;
|
|
41
|
-
contentGradientTo?: string;
|
|
42
|
-
sectionBackgroundColor?: string;
|
|
43
|
-
sectionBackgroundMode?: 'color' | 'gradient' | 'none';
|
|
44
|
-
sectionGradientAngle?: string;
|
|
45
|
-
sectionGradientFrom?: string;
|
|
46
|
-
sectionGradientPreset?: string;
|
|
47
|
-
sectionGradientTo?: string;
|
|
48
|
-
};
|
|
49
|
-
type BuilderAdvancedSettingsV2 = {
|
|
50
|
-
customClassName?: string;
|
|
51
|
-
editCopyInPanel?: boolean;
|
|
52
|
-
hideOnMobile?: boolean;
|
|
53
|
-
};
|
|
54
|
-
type BuilderBlockSettingsV2 = {
|
|
55
|
-
advanced: BuilderAdvancedSettingsV2;
|
|
56
|
-
appearance: BuilderAppearanceSettingsV2;
|
|
57
|
-
layout: BuilderLayoutSettingsV2;
|
|
58
|
-
media: BuilderMediaSettingsV2;
|
|
59
|
-
typography: BuilderTypographySettingsV2;
|
|
60
|
-
version: 2;
|
|
61
|
-
};
|
|
62
|
-
type BuilderThemeScale = 'lg' | 'md' | 'sm' | 'xl';
|
|
63
|
-
type BuilderThemeTokens = {
|
|
64
|
-
colors: {
|
|
65
|
-
accent: string;
|
|
66
|
-
bodyText: string;
|
|
67
|
-
headingText: string;
|
|
68
|
-
surface: string;
|
|
69
|
-
};
|
|
70
|
-
radii: {
|
|
71
|
-
card: number;
|
|
72
|
-
panel: number;
|
|
73
|
-
};
|
|
74
|
-
spacing: {
|
|
75
|
-
sectionGap: BuilderThemeScale;
|
|
76
|
-
sectionPadding: BuilderThemeScale;
|
|
77
|
-
};
|
|
78
|
-
typography: {
|
|
79
|
-
bodySize: BuilderThemeScale;
|
|
80
|
-
headingSize: BuilderThemeScale;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
type BuilderThemeTokenOverrides = {
|
|
84
|
-
[K in keyof BuilderThemeTokens]?: BuilderThemeTokens[K] extends Record<string, unknown> ? Partial<BuilderThemeTokens[K]> : BuilderThemeTokens[K];
|
|
85
|
-
};
|
|
86
|
-
type BuilderThemeTokenLayers = {
|
|
87
|
-
block?: BuilderThemeTokenOverrides;
|
|
88
|
-
page?: BuilderThemeTokenOverrides;
|
|
89
|
-
site?: BuilderThemeTokenOverrides;
|
|
90
|
-
};
|
|
91
|
-
declare const defaultBuilderThemeTokens: BuilderThemeTokens;
|
|
92
|
-
|
|
93
|
-
declare const resolveBuilderThemeTokens: (layers: BuilderThemeTokenLayers) => BuilderThemeTokens;
|
|
94
|
-
|
|
95
|
-
declare const pageNodeTypes: StudioNodeTypeDefinition[];
|
|
96
|
-
declare const pagePaletteGroups: {
|
|
97
|
-
id: string;
|
|
98
|
-
label: string;
|
|
99
|
-
items: {
|
|
100
|
-
nodeType: string;
|
|
101
|
-
title: string;
|
|
102
|
-
description: string;
|
|
103
|
-
}[];
|
|
104
|
-
}[];
|
|
105
|
-
declare const pageInspectorPanels: {
|
|
106
|
-
fields: {
|
|
107
|
-
advanced: boolean | undefined;
|
|
108
|
-
group: InspectorGroupKey;
|
|
109
|
-
inlineEditable: boolean | undefined;
|
|
110
|
-
key: string;
|
|
111
|
-
label: string;
|
|
112
|
-
type: InspectorFieldType;
|
|
113
|
-
}[];
|
|
114
|
-
id: string;
|
|
115
|
-
label: string;
|
|
116
|
-
nodeType: string;
|
|
117
|
-
}[];
|
|
118
|
-
declare const pageStudioModuleManifest: StudioModuleManifest;
|
|
119
|
-
declare const layoutToStudioDocument: (layout: Array<Record<string, unknown>>, title?: string, metadata?: Record<string, unknown>) => StudioDocumentV1;
|
|
120
|
-
declare const studioDocumentToLayout: (document: StudioDocumentV1) => Array<Record<string, unknown>>;
|
|
121
|
-
declare const createDefaultStudioDocument: (title?: string) => StudioDocumentV1;
|
|
122
|
-
|
|
123
|
-
type index_BuilderBlockSettingsV2 = BuilderBlockSettingsV2;
|
|
124
|
-
type index_BuilderSettingsPanelMode = BuilderSettingsPanelMode;
|
|
125
|
-
type index_BuilderThemeTokenOverrides = BuilderThemeTokenOverrides;
|
|
126
|
-
type index_BuilderThemeTokens = BuilderThemeTokens;
|
|
127
|
-
declare const index_createDefaultStudioDocument: typeof createDefaultStudioDocument;
|
|
128
|
-
declare const index_defaultBuilderThemeTokens: typeof defaultBuilderThemeTokens;
|
|
129
|
-
declare const index_layoutToStudioDocument: typeof layoutToStudioDocument;
|
|
130
|
-
declare const index_pageInspectorPanels: typeof pageInspectorPanels;
|
|
131
|
-
declare const index_pageNodeTypes: typeof pageNodeTypes;
|
|
132
|
-
declare const index_pagePaletteGroups: typeof pagePaletteGroups;
|
|
133
|
-
declare const index_pageStudioModuleManifest: typeof pageStudioModuleManifest;
|
|
134
|
-
declare const index_resolveBuilderThemeTokens: typeof resolveBuilderThemeTokens;
|
|
135
|
-
declare const index_studioDocumentToLayout: typeof studioDocumentToLayout;
|
|
136
|
-
declare namespace index {
|
|
137
|
-
export { type index_BuilderBlockSettingsV2 as BuilderBlockSettingsV2, type index_BuilderSettingsPanelMode as BuilderSettingsPanelMode, type index_BuilderThemeTokenOverrides as BuilderThemeTokenOverrides, type index_BuilderThemeTokens as BuilderThemeTokens, index_createDefaultStudioDocument as createDefaultStudioDocument, index_defaultBuilderThemeTokens as defaultBuilderThemeTokens, index_layoutToStudioDocument as layoutToStudioDocument, index_pageInspectorPanels as pageInspectorPanels, index_pageNodeTypes as pageNodeTypes, index_pagePaletteGroups as pagePaletteGroups, index_pageStudioModuleManifest as pageStudioModuleManifest, index_resolveBuilderThemeTokens as resolveBuilderThemeTokens, index_studioDocumentToLayout as studioDocumentToLayout };
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export { type BuilderBlockSettingsV2 as B, type BuilderSettingsPanelMode as a, type BuilderThemeTokenOverrides as b, type BuilderThemeTokens as c, createDefaultStudioDocument as d, defaultBuilderThemeTokens as e, pageNodeTypes as f, pagePaletteGroups as g, pageStudioModuleManifest as h, index as i, layoutToStudioDocument as l, pageInspectorPanels as p, resolveBuilderThemeTokens as r, studioDocumentToLayout as s };
|