@orion-studios/payload-studio 0.6.0-beta.4 → 0.6.0-beta.40
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 +1 -0
- package/dist/admin/client.d.ts +1 -0
- package/dist/admin/client.js +3924 -1355
- package/dist/admin/client.mjs +4090 -1533
- package/dist/admin/index.d.mts +2 -3
- package/dist/admin/index.d.ts +2 -3
- package/dist/admin/index.js +141 -1522
- package/dist/admin/index.mjs +2 -4
- package/dist/admin-app/client.js +11 -4
- package/dist/admin-app/client.mjs +1 -1
- package/dist/admin-app/index.d.mts +2 -2
- package/dist/admin-app/index.d.ts +2 -2
- package/dist/admin-app/index.mjs +4 -4
- package/dist/admin-app/styles.css +343 -41
- package/dist/admin.css +18 -2
- package/dist/{chunk-KPIX7OSV.mjs → chunk-2XH7X34N.mjs} +11 -4
- package/dist/{chunk-OTHERBGX.mjs → chunk-AWL7TIEI.mjs} +1 -1
- package/dist/{chunk-PF3EBZXF.mjs → chunk-CUPMTHGX.mjs} +19 -3
- package/dist/chunk-JC3UV74N.mjs +1033 -0
- package/dist/{chunk-XKUTZ7IU.mjs → chunk-LUF62ZWF.mjs} +31 -5
- package/dist/{chunk-EHUE4LCT.mjs → chunk-RKTIFEUY.mjs} +33 -3
- package/dist/chunk-W2UOCJDX.mjs +32 -0
- package/dist/{index-bbA3HSxa.d.ts → index-BV0vEGl6.d.ts} +6 -9
- package/dist/{index-52HdVLQq.d.ts → index-DAdN56fM.d.ts} +1 -1
- package/dist/{index-DEkV-sMs.d.mts → index-DLfPOqYA.d.mts} +6 -9
- package/dist/{index-Cv-6qnrw.d.mts → index-DRu4fKxf.d.mts} +1 -1
- package/dist/{index-DEQC3Dwj.d.mts → index-G_uTNffQ.d.mts} +1 -1
- package/dist/{index-Crx_MtPw.d.ts → index-vkEwwsoC.d.ts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +249 -1542
- package/dist/index.mjs +10 -10
- package/dist/nextjs/index.js +19 -3
- package/dist/nextjs/index.mjs +2 -2
- package/dist/{sitePreviewTypes-BkHCWxNW.d.mts → sitePreviewTypes-BrJwGzJj.d.mts} +1 -1
- package/dist/{sitePreviewTypes-BkHCWxNW.d.ts → sitePreviewTypes-BrJwGzJj.d.ts} +1 -1
- package/dist/studio-pages/builder.css +24 -5
- package/dist/studio-pages/client.js +455 -63
- package/dist/studio-pages/client.mjs +455 -63
- package/dist/studio-pages/index.d.mts +1 -1
- package/dist/studio-pages/index.d.ts +1 -1
- package/dist/studio-pages/index.js +46 -4
- package/dist/studio-pages/index.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-DYXSAVUQ.mjs +0 -2372
- package/dist/chunk-Z6L5K5MH.mjs +0 -64
package/dist/index.mjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
admin_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JC3UV74N.mjs";
|
|
4
4
|
import {
|
|
5
5
|
admin_app_exports
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
blocks_exports
|
|
10
|
-
} from "./chunk-JQAHXYAM.mjs";
|
|
6
|
+
} from "./chunk-RKTIFEUY.mjs";
|
|
7
|
+
import "./chunk-W2UOCJDX.mjs";
|
|
11
8
|
import {
|
|
12
9
|
nextjs_exports
|
|
13
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AWL7TIEI.mjs";
|
|
14
11
|
import "./chunk-ZTXJG4K5.mjs";
|
|
15
12
|
import {
|
|
16
13
|
studio_pages_exports
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-PF3EBZXF.mjs";
|
|
14
|
+
} from "./chunk-LUF62ZWF.mjs";
|
|
15
|
+
import "./chunk-CUPMTHGX.mjs";
|
|
20
16
|
import {
|
|
21
17
|
studio_exports
|
|
22
18
|
} from "./chunk-ADIIWIYL.mjs";
|
|
19
|
+
import {
|
|
20
|
+
blocks_exports
|
|
21
|
+
} from "./chunk-JQAHXYAM.mjs";
|
|
22
|
+
import "./chunk-OQSEJXC4.mjs";
|
|
23
23
|
import "./chunk-6BWS3CLP.mjs";
|
|
24
24
|
export {
|
|
25
25
|
admin_exports as admin,
|
package/dist/nextjs/index.js
CHANGED
|
@@ -166,6 +166,7 @@ var defaultBuilderItemSettingsV2 = {
|
|
|
166
166
|
|
|
167
167
|
// src/studio-pages/builder/adapters/settingsV2.ts
|
|
168
168
|
var isRecord2 = (value) => Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
169
|
+
var isTextAlign = (value) => value === "left" || value === "center" || value === "right" || value === "justify";
|
|
169
170
|
var parsePercent = (value) => {
|
|
170
171
|
if (typeof value === "number" && Number.isFinite(value)) {
|
|
171
172
|
return Math.max(0, Math.min(100, value));
|
|
@@ -208,6 +209,10 @@ var mergeSettings = (defaults, input) => {
|
|
|
208
209
|
};
|
|
209
210
|
var legacyBlockToV2Settings = (block) => {
|
|
210
211
|
const current = structuredClone(defaultBuilderBlockSettingsV2);
|
|
212
|
+
if (block.blockType === "hero" && block.variant === "centered") {
|
|
213
|
+
current.typography.headingAlign = "center";
|
|
214
|
+
current.typography.bodyAlign = "center";
|
|
215
|
+
}
|
|
211
216
|
current.layout.contentWidth = block.contentWidth === "narrow" || block.contentWidth === "content" || block.contentWidth === "wide" || block.contentWidth === "full" || block.contentWidth === "inherit" ? block.contentWidth : current.layout.contentWidth;
|
|
212
217
|
current.layout.sectionPaddingX = block.sectionPaddingX === "none" || block.sectionPaddingX === "sm" || block.sectionPaddingX === "md" || block.sectionPaddingX === "lg" || block.sectionPaddingX === "inherit" ? block.sectionPaddingX : current.layout.sectionPaddingX;
|
|
213
218
|
current.layout.sectionPaddingY = block.sectionPaddingY === "none" || block.sectionPaddingY === "sm" || block.sectionPaddingY === "lg" ? block.sectionPaddingY : current.layout.sectionPaddingY;
|
|
@@ -244,15 +249,26 @@ var legacyBlockToV2Settings = (block) => {
|
|
|
244
249
|
current.media.positionX = parsePercent(block.imagePositionX ?? block.backgroundImagePositionX);
|
|
245
250
|
current.media.positionY = parsePercent(block.imagePositionY ?? block.backgroundImagePositionY);
|
|
246
251
|
current.media.height = parsePixel(block.imageHeight);
|
|
247
|
-
current.typography.headingAlign = block.textHeadingAlign
|
|
248
|
-
current.typography.bodyAlign = block.textBodyAlign
|
|
252
|
+
current.typography.headingAlign = isTextAlign(block.textHeadingAlign) ? block.textHeadingAlign : current.typography.headingAlign;
|
|
253
|
+
current.typography.bodyAlign = isTextAlign(block.textBodyAlign) ? block.textBodyAlign : current.typography.bodyAlign;
|
|
249
254
|
current.typography.maxTextWidth = block.textMaxWidth === "auto" || block.textMaxWidth === "sm" || block.textMaxWidth === "md" || block.textMaxWidth === "lg" || block.textMaxWidth === "full" ? block.textMaxWidth : current.typography.maxTextWidth;
|
|
250
255
|
current.typography.lineHeightPreset = block.textLineHeightPreset === "tight" || block.textLineHeightPreset === "normal" || block.textLineHeightPreset === "relaxed" ? block.textLineHeightPreset : current.typography.lineHeightPreset;
|
|
251
256
|
current.typography.letterSpacingPreset = block.textLetterSpacingPreset === "tight" || block.textLetterSpacingPreset === "normal" || block.textLetterSpacingPreset === "relaxed" ? block.textLetterSpacingPreset : current.typography.letterSpacingPreset;
|
|
252
257
|
current.advanced.editCopyInPanel = Boolean(block.editCopyInPanel ?? current.advanced.editCopyInPanel);
|
|
253
258
|
current.advanced.customClassName = typeof block.customClassName === "string" ? block.customClassName : current.advanced.customClassName;
|
|
254
259
|
current.advanced.hideOnMobile = Boolean(block.hideOnMobile ?? current.advanced.hideOnMobile);
|
|
255
|
-
|
|
260
|
+
const settings = mergeSettings(current, block.settings);
|
|
261
|
+
if (block.blockType === "hero") {
|
|
262
|
+
const top = settings.layout.paddingTopPt;
|
|
263
|
+
const bottom = settings.layout.paddingBottomPt;
|
|
264
|
+
const hasLegacyLinkedHeroPadding = settings.layout.linkVerticalPadding !== false && (top === null || typeof top === "undefined" || top === 30) && (bottom === null || typeof bottom === "undefined" || bottom === 30 || bottom === 20);
|
|
265
|
+
if (hasLegacyLinkedHeroPadding) {
|
|
266
|
+
settings.layout.linkVerticalPadding = false;
|
|
267
|
+
settings.layout.paddingTopPt = 30;
|
|
268
|
+
settings.layout.paddingBottomPt = 20;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
return settings;
|
|
256
272
|
};
|
|
257
273
|
var v2SettingsToLegacyBlock = (blockWithSettings) => {
|
|
258
274
|
const settings = legacyBlockToV2Settings(blockWithSettings);
|
package/dist/nextjs/index.mjs
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
createSiteQueries,
|
|
6
6
|
resolveMedia,
|
|
7
7
|
resolveSocialMediaLinks
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-AWL7TIEI.mjs";
|
|
9
9
|
import "../chunk-ZTXJG4K5.mjs";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-CUPMTHGX.mjs";
|
|
11
11
|
import "../chunk-ADIIWIYL.mjs";
|
|
12
12
|
import "../chunk-6BWS3CLP.mjs";
|
|
13
13
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type AdminRole = 'admin' | 'editor' | 'client';
|
|
1
|
+
type AdminRole = 'admin' | 'developer' | 'editor' | 'client';
|
|
2
2
|
declare const adminNavIcons: readonly ["dashboard", "pages", "forms", "globals", "media", "tools", "account", "analytics"];
|
|
3
3
|
type AdminNavIcon = (typeof adminNavIcons)[number];
|
|
4
4
|
type AdminNavItem = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type AdminRole = 'admin' | 'editor' | 'client';
|
|
1
|
+
type AdminRole = 'admin' | 'developer' | 'editor' | 'client';
|
|
2
2
|
declare const adminNavIcons: readonly ["dashboard", "pages", "forms", "globals", "media", "tools", "account", "analytics"];
|
|
3
3
|
type AdminNavIcon = (typeof adminNavIcons)[number];
|
|
4
4
|
type AdminNavItem = {
|
|
@@ -116,6 +116,12 @@ h4 {
|
|
|
116
116
|
--orion-shell-max: 100%;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
+
@media (max-width: 767px) {
|
|
120
|
+
.orion-builder-hide-mobile {
|
|
121
|
+
display: none !important;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
119
125
|
.orion-builder-content {
|
|
120
126
|
width: min(var(--orion-shell-max), calc(100% - (var(--orion-shell-inline) * 2)));
|
|
121
127
|
margin-inline: auto;
|
|
@@ -256,36 +262,44 @@ h4 {
|
|
|
256
262
|
}
|
|
257
263
|
|
|
258
264
|
.hero-content {
|
|
259
|
-
position: absolute;
|
|
260
|
-
inset: 0;
|
|
261
265
|
display: flex;
|
|
262
266
|
flex-direction: column;
|
|
263
267
|
justify-content: center;
|
|
264
|
-
|
|
268
|
+
inset: 0;
|
|
265
269
|
max-width: 610px;
|
|
270
|
+
padding: 2rem;
|
|
271
|
+
position: absolute;
|
|
272
|
+
text-align: var(--orion-builder-body-align, left);
|
|
266
273
|
}
|
|
267
274
|
|
|
268
275
|
.hero h1 {
|
|
269
276
|
font-size: clamp(2rem, 4vw, 3.1rem);
|
|
270
277
|
letter-spacing: -0.02em;
|
|
271
278
|
margin: 0;
|
|
279
|
+
text-align: var(--orion-builder-heading-align, var(--orion-builder-body-align, left));
|
|
272
280
|
}
|
|
273
281
|
|
|
274
282
|
.hero p {
|
|
283
|
+
color: color-mix(in srgb, var(--orion-studio-accent-contrast) 90%, transparent);
|
|
275
284
|
margin-top: 0.75rem;
|
|
276
285
|
max-width: 48ch;
|
|
277
|
-
|
|
286
|
+
text-align: var(--orion-builder-body-align, left);
|
|
278
287
|
}
|
|
279
288
|
|
|
280
289
|
.hero-actions {
|
|
281
290
|
display: flex;
|
|
282
291
|
flex-wrap: wrap;
|
|
283
292
|
gap: 0.75rem;
|
|
293
|
+
justify-content: var(--orion-builder-actions-align, flex-start);
|
|
284
294
|
margin-top: 1.1rem;
|
|
285
295
|
}
|
|
286
296
|
|
|
287
297
|
.hero-centered .hero-content {
|
|
288
|
-
text-align: center;
|
|
298
|
+
text-align: var(--orion-builder-body-align, center);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.hero .kicker {
|
|
302
|
+
text-align: var(--orion-builder-heading-align, var(--orion-builder-body-align, left));
|
|
289
303
|
}
|
|
290
304
|
|
|
291
305
|
.features {
|
|
@@ -984,6 +998,11 @@ h4 {
|
|
|
984
998
|
text-align: var(--orion-builder-heading-align, inherit);
|
|
985
999
|
}
|
|
986
1000
|
|
|
1001
|
+
.orion-builder-content p,
|
|
1002
|
+
.orion-builder-content li {
|
|
1003
|
+
text-align: var(--orion-builder-body-align, inherit);
|
|
1004
|
+
}
|
|
1005
|
+
|
|
987
1006
|
/* Builder-only override: show full testimonial copy even if host app globals clamp it. */
|
|
988
1007
|
.orion-builder-shell .orion-builder-content .testimonial-quote {
|
|
989
1008
|
-webkit-box-orient: initial;
|