@orion-studios/payload-studio 0.5.0-beta.70 → 0.5.0-beta.71
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/{chunk-CKX5Y2HU.mjs → chunk-6H4JTVPY.mjs} +1 -1
- package/dist/{chunk-VDGSMD6H.mjs → chunk-C6VEFZVY.mjs} +4 -4
- package/dist/index.js +4 -4
- package/dist/index.mjs +5 -5
- package/dist/nextjs/index.js +4 -4
- package/dist/nextjs/index.mjs +2 -2
- package/dist/studio-pages/client.js +5 -5
- package/dist/studio-pages/client.mjs +5 -5
- package/dist/studio-pages/index.js +4 -4
- package/dist/studio-pages/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -149,7 +149,7 @@ var mergeSettings = (defaults, input) => {
|
|
|
149
149
|
return next;
|
|
150
150
|
};
|
|
151
151
|
var legacyBlockToV2Settings = (block) => {
|
|
152
|
-
const current =
|
|
152
|
+
const current = structuredClone(defaultBuilderBlockSettingsV2);
|
|
153
153
|
current.layout.contentWidth = block.contentWidth === "narrow" || block.contentWidth === "content" || block.contentWidth === "wide" || block.contentWidth === "full" || block.contentWidth === "inherit" ? block.contentWidth : current.layout.contentWidth;
|
|
154
154
|
current.layout.sectionPaddingX = block.sectionPaddingX === "none" || block.sectionPaddingX === "sm" || block.sectionPaddingX === "md" || block.sectionPaddingX === "lg" || block.sectionPaddingX === "inherit" ? block.sectionPaddingX : current.layout.sectionPaddingX;
|
|
155
155
|
current.layout.sectionPaddingY = block.sectionPaddingY === "none" || block.sectionPaddingY === "sm" || block.sectionPaddingY === "lg" ? block.sectionPaddingY : current.layout.sectionPaddingY;
|
|
@@ -194,7 +194,7 @@ var legacyBlockToV2Settings = (block) => {
|
|
|
194
194
|
current.advanced.editCopyInPanel = Boolean(block.editCopyInPanel ?? current.advanced.editCopyInPanel);
|
|
195
195
|
current.advanced.customClassName = typeof block.customClassName === "string" ? block.customClassName : current.advanced.customClassName;
|
|
196
196
|
current.advanced.hideOnMobile = Boolean(block.hideOnMobile ?? current.advanced.hideOnMobile);
|
|
197
|
-
return current;
|
|
197
|
+
return mergeSettings(current, block.settings);
|
|
198
198
|
};
|
|
199
199
|
var v2SettingsToLegacyBlock = (blockWithSettings) => {
|
|
200
200
|
const settings = legacyBlockToV2Settings(blockWithSettings);
|
|
@@ -245,7 +245,7 @@ var v2SettingsToLegacyBlock = (blockWithSettings) => {
|
|
|
245
245
|
return next;
|
|
246
246
|
};
|
|
247
247
|
var legacyItemToV2Settings = (item) => {
|
|
248
|
-
const current =
|
|
248
|
+
const current = structuredClone(defaultBuilderItemSettingsV2);
|
|
249
249
|
if (item.imageFit === "cover" || item.imageFit === "contain") {
|
|
250
250
|
current.media.fit = item.imageFit;
|
|
251
251
|
}
|
|
@@ -258,7 +258,7 @@ var legacyItemToV2Settings = (item) => {
|
|
|
258
258
|
current.media.positionX = parsePercent(item.imagePositionX);
|
|
259
259
|
current.media.positionY = parsePercent(item.imagePositionY);
|
|
260
260
|
current.media.height = parsePixel(item.imageHeight);
|
|
261
|
-
return current;
|
|
261
|
+
return mergeSettings(current, item.settings);
|
|
262
262
|
};
|
|
263
263
|
var v2SettingsToLegacyItem = (itemWithSettings) => {
|
|
264
264
|
const settings = legacyItemToV2Settings(itemWithSettings);
|
package/dist/index.js
CHANGED
|
@@ -2842,7 +2842,7 @@ var mergeSettings = (defaults, input) => {
|
|
|
2842
2842
|
return next;
|
|
2843
2843
|
};
|
|
2844
2844
|
var legacyBlockToV2Settings = (block) => {
|
|
2845
|
-
const current =
|
|
2845
|
+
const current = structuredClone(defaultBuilderBlockSettingsV2);
|
|
2846
2846
|
current.layout.contentWidth = block.contentWidth === "narrow" || block.contentWidth === "content" || block.contentWidth === "wide" || block.contentWidth === "full" || block.contentWidth === "inherit" ? block.contentWidth : current.layout.contentWidth;
|
|
2847
2847
|
current.layout.sectionPaddingX = block.sectionPaddingX === "none" || block.sectionPaddingX === "sm" || block.sectionPaddingX === "md" || block.sectionPaddingX === "lg" || block.sectionPaddingX === "inherit" ? block.sectionPaddingX : current.layout.sectionPaddingX;
|
|
2848
2848
|
current.layout.sectionPaddingY = block.sectionPaddingY === "none" || block.sectionPaddingY === "sm" || block.sectionPaddingY === "lg" ? block.sectionPaddingY : current.layout.sectionPaddingY;
|
|
@@ -2887,7 +2887,7 @@ var legacyBlockToV2Settings = (block) => {
|
|
|
2887
2887
|
current.advanced.editCopyInPanel = Boolean(block.editCopyInPanel ?? current.advanced.editCopyInPanel);
|
|
2888
2888
|
current.advanced.customClassName = typeof block.customClassName === "string" ? block.customClassName : current.advanced.customClassName;
|
|
2889
2889
|
current.advanced.hideOnMobile = Boolean(block.hideOnMobile ?? current.advanced.hideOnMobile);
|
|
2890
|
-
return current;
|
|
2890
|
+
return mergeSettings(current, block.settings);
|
|
2891
2891
|
};
|
|
2892
2892
|
var v2SettingsToLegacyBlock = (blockWithSettings) => {
|
|
2893
2893
|
const settings = legacyBlockToV2Settings(blockWithSettings);
|
|
@@ -2938,7 +2938,7 @@ var v2SettingsToLegacyBlock = (blockWithSettings) => {
|
|
|
2938
2938
|
return next;
|
|
2939
2939
|
};
|
|
2940
2940
|
var legacyItemToV2Settings = (item) => {
|
|
2941
|
-
const current =
|
|
2941
|
+
const current = structuredClone(defaultBuilderItemSettingsV2);
|
|
2942
2942
|
if (item.imageFit === "cover" || item.imageFit === "contain") {
|
|
2943
2943
|
current.media.fit = item.imageFit;
|
|
2944
2944
|
}
|
|
@@ -2951,7 +2951,7 @@ var legacyItemToV2Settings = (item) => {
|
|
|
2951
2951
|
current.media.positionX = parsePercent(item.imagePositionX);
|
|
2952
2952
|
current.media.positionY = parsePercent(item.imagePositionY);
|
|
2953
2953
|
current.media.height = parsePixel(item.imageHeight);
|
|
2954
|
-
return current;
|
|
2954
|
+
return mergeSettings(current, item.settings);
|
|
2955
2955
|
};
|
|
2956
2956
|
var v2SettingsToLegacyItem = (itemWithSettings) => {
|
|
2957
2957
|
const settings = legacyItemToV2Settings(itemWithSettings);
|
package/dist/index.mjs
CHANGED
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
admin_app_exports
|
|
6
6
|
} from "./chunk-XVH5SCBD.mjs";
|
|
7
|
+
import {
|
|
8
|
+
blocks_exports
|
|
9
|
+
} from "./chunk-XK3K5GRP.mjs";
|
|
7
10
|
import {
|
|
8
11
|
nextjs_exports
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6H4JTVPY.mjs";
|
|
10
13
|
import {
|
|
11
14
|
studio_exports
|
|
12
15
|
} from "./chunk-HXGAG6I7.mjs";
|
|
13
16
|
import {
|
|
14
17
|
studio_pages_exports
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
blocks_exports
|
|
18
|
-
} from "./chunk-XK3K5GRP.mjs";
|
|
18
|
+
} from "./chunk-C6VEFZVY.mjs";
|
|
19
19
|
import "./chunk-SIL2J5MF.mjs";
|
|
20
20
|
import "./chunk-6BWS3CLP.mjs";
|
|
21
21
|
export {
|
package/dist/nextjs/index.js
CHANGED
|
@@ -229,7 +229,7 @@ var mergeSettings = (defaults, input) => {
|
|
|
229
229
|
return next;
|
|
230
230
|
};
|
|
231
231
|
var legacyBlockToV2Settings = (block) => {
|
|
232
|
-
const current =
|
|
232
|
+
const current = structuredClone(defaultBuilderBlockSettingsV2);
|
|
233
233
|
current.layout.contentWidth = block.contentWidth === "narrow" || block.contentWidth === "content" || block.contentWidth === "wide" || block.contentWidth === "full" || block.contentWidth === "inherit" ? block.contentWidth : current.layout.contentWidth;
|
|
234
234
|
current.layout.sectionPaddingX = block.sectionPaddingX === "none" || block.sectionPaddingX === "sm" || block.sectionPaddingX === "md" || block.sectionPaddingX === "lg" || block.sectionPaddingX === "inherit" ? block.sectionPaddingX : current.layout.sectionPaddingX;
|
|
235
235
|
current.layout.sectionPaddingY = block.sectionPaddingY === "none" || block.sectionPaddingY === "sm" || block.sectionPaddingY === "lg" ? block.sectionPaddingY : current.layout.sectionPaddingY;
|
|
@@ -274,7 +274,7 @@ var legacyBlockToV2Settings = (block) => {
|
|
|
274
274
|
current.advanced.editCopyInPanel = Boolean(block.editCopyInPanel ?? current.advanced.editCopyInPanel);
|
|
275
275
|
current.advanced.customClassName = typeof block.customClassName === "string" ? block.customClassName : current.advanced.customClassName;
|
|
276
276
|
current.advanced.hideOnMobile = Boolean(block.hideOnMobile ?? current.advanced.hideOnMobile);
|
|
277
|
-
return current;
|
|
277
|
+
return mergeSettings(current, block.settings);
|
|
278
278
|
};
|
|
279
279
|
var v2SettingsToLegacyBlock = (blockWithSettings) => {
|
|
280
280
|
const settings = legacyBlockToV2Settings(blockWithSettings);
|
|
@@ -325,7 +325,7 @@ var v2SettingsToLegacyBlock = (blockWithSettings) => {
|
|
|
325
325
|
return next;
|
|
326
326
|
};
|
|
327
327
|
var legacyItemToV2Settings = (item) => {
|
|
328
|
-
const current =
|
|
328
|
+
const current = structuredClone(defaultBuilderItemSettingsV2);
|
|
329
329
|
if (item.imageFit === "cover" || item.imageFit === "contain") {
|
|
330
330
|
current.media.fit = item.imageFit;
|
|
331
331
|
}
|
|
@@ -338,7 +338,7 @@ var legacyItemToV2Settings = (item) => {
|
|
|
338
338
|
current.media.positionX = parsePercent(item.imagePositionX);
|
|
339
339
|
current.media.positionY = parsePercent(item.imagePositionY);
|
|
340
340
|
current.media.height = parsePixel(item.imageHeight);
|
|
341
|
-
return current;
|
|
341
|
+
return mergeSettings(current, item.settings);
|
|
342
342
|
};
|
|
343
343
|
var v2SettingsToLegacyItem = (itemWithSettings) => {
|
|
344
344
|
const settings = legacyItemToV2Settings(itemWithSettings);
|
package/dist/nextjs/index.mjs
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
createPayloadClient,
|
|
5
5
|
createSiteQueries,
|
|
6
6
|
resolveMedia
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-6H4JTVPY.mjs";
|
|
8
8
|
import "../chunk-HXGAG6I7.mjs";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-C6VEFZVY.mjs";
|
|
10
10
|
import "../chunk-SIL2J5MF.mjs";
|
|
11
11
|
import "../chunk-6BWS3CLP.mjs";
|
|
12
12
|
export {
|
|
@@ -184,7 +184,7 @@ var mergeSettings = (defaults, input) => {
|
|
|
184
184
|
return next;
|
|
185
185
|
};
|
|
186
186
|
var legacyBlockToV2Settings = (block) => {
|
|
187
|
-
const current =
|
|
187
|
+
const current = structuredClone(defaultBuilderBlockSettingsV2);
|
|
188
188
|
current.layout.contentWidth = block.contentWidth === "narrow" || block.contentWidth === "content" || block.contentWidth === "wide" || block.contentWidth === "full" || block.contentWidth === "inherit" ? block.contentWidth : current.layout.contentWidth;
|
|
189
189
|
current.layout.sectionPaddingX = block.sectionPaddingX === "none" || block.sectionPaddingX === "sm" || block.sectionPaddingX === "md" || block.sectionPaddingX === "lg" || block.sectionPaddingX === "inherit" ? block.sectionPaddingX : current.layout.sectionPaddingX;
|
|
190
190
|
current.layout.sectionPaddingY = block.sectionPaddingY === "none" || block.sectionPaddingY === "sm" || block.sectionPaddingY === "lg" ? block.sectionPaddingY : current.layout.sectionPaddingY;
|
|
@@ -229,7 +229,7 @@ var legacyBlockToV2Settings = (block) => {
|
|
|
229
229
|
current.advanced.editCopyInPanel = Boolean(block.editCopyInPanel ?? current.advanced.editCopyInPanel);
|
|
230
230
|
current.advanced.customClassName = typeof block.customClassName === "string" ? block.customClassName : current.advanced.customClassName;
|
|
231
231
|
current.advanced.hideOnMobile = Boolean(block.hideOnMobile ?? current.advanced.hideOnMobile);
|
|
232
|
-
return current;
|
|
232
|
+
return mergeSettings(current, block.settings);
|
|
233
233
|
};
|
|
234
234
|
var v2SettingsToLegacyBlock = (blockWithSettings) => {
|
|
235
235
|
const settings = legacyBlockToV2Settings(blockWithSettings);
|
|
@@ -280,7 +280,7 @@ var v2SettingsToLegacyBlock = (blockWithSettings) => {
|
|
|
280
280
|
return next;
|
|
281
281
|
};
|
|
282
282
|
var legacyItemToV2Settings = (item) => {
|
|
283
|
-
const current =
|
|
283
|
+
const current = structuredClone(defaultBuilderItemSettingsV2);
|
|
284
284
|
if (item.imageFit === "cover" || item.imageFit === "contain") {
|
|
285
285
|
current.media.fit = item.imageFit;
|
|
286
286
|
}
|
|
@@ -293,7 +293,7 @@ var legacyItemToV2Settings = (item) => {
|
|
|
293
293
|
current.media.positionX = parsePercent(item.imagePositionX);
|
|
294
294
|
current.media.positionY = parsePercent(item.imagePositionY);
|
|
295
295
|
current.media.height = parsePixel(item.imageHeight);
|
|
296
|
-
return current;
|
|
296
|
+
return mergeSettings(current, item.settings);
|
|
297
297
|
};
|
|
298
298
|
var v2SettingsToLegacyItem = (itemWithSettings) => {
|
|
299
299
|
const settings = legacyItemToV2Settings(itemWithSettings);
|
|
@@ -5359,7 +5359,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5359
5359
|
}
|
|
5360
5360
|
)
|
|
5361
5361
|
] }),
|
|
5362
|
-
|
|
5362
|
+
v2InspectorEnabledForSelected ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
5363
5363
|
BlockInspectorRenderer,
|
|
5364
5364
|
{
|
|
5365
5365
|
block: selectedBlock,
|
|
@@ -158,7 +158,7 @@ var mergeSettings = (defaults, input) => {
|
|
|
158
158
|
return next;
|
|
159
159
|
};
|
|
160
160
|
var legacyBlockToV2Settings = (block) => {
|
|
161
|
-
const current =
|
|
161
|
+
const current = structuredClone(defaultBuilderBlockSettingsV2);
|
|
162
162
|
current.layout.contentWidth = block.contentWidth === "narrow" || block.contentWidth === "content" || block.contentWidth === "wide" || block.contentWidth === "full" || block.contentWidth === "inherit" ? block.contentWidth : current.layout.contentWidth;
|
|
163
163
|
current.layout.sectionPaddingX = block.sectionPaddingX === "none" || block.sectionPaddingX === "sm" || block.sectionPaddingX === "md" || block.sectionPaddingX === "lg" || block.sectionPaddingX === "inherit" ? block.sectionPaddingX : current.layout.sectionPaddingX;
|
|
164
164
|
current.layout.sectionPaddingY = block.sectionPaddingY === "none" || block.sectionPaddingY === "sm" || block.sectionPaddingY === "lg" ? block.sectionPaddingY : current.layout.sectionPaddingY;
|
|
@@ -203,7 +203,7 @@ var legacyBlockToV2Settings = (block) => {
|
|
|
203
203
|
current.advanced.editCopyInPanel = Boolean(block.editCopyInPanel ?? current.advanced.editCopyInPanel);
|
|
204
204
|
current.advanced.customClassName = typeof block.customClassName === "string" ? block.customClassName : current.advanced.customClassName;
|
|
205
205
|
current.advanced.hideOnMobile = Boolean(block.hideOnMobile ?? current.advanced.hideOnMobile);
|
|
206
|
-
return current;
|
|
206
|
+
return mergeSettings(current, block.settings);
|
|
207
207
|
};
|
|
208
208
|
var v2SettingsToLegacyBlock = (blockWithSettings) => {
|
|
209
209
|
const settings = legacyBlockToV2Settings(blockWithSettings);
|
|
@@ -254,7 +254,7 @@ var v2SettingsToLegacyBlock = (blockWithSettings) => {
|
|
|
254
254
|
return next;
|
|
255
255
|
};
|
|
256
256
|
var legacyItemToV2Settings = (item) => {
|
|
257
|
-
const current =
|
|
257
|
+
const current = structuredClone(defaultBuilderItemSettingsV2);
|
|
258
258
|
if (item.imageFit === "cover" || item.imageFit === "contain") {
|
|
259
259
|
current.media.fit = item.imageFit;
|
|
260
260
|
}
|
|
@@ -267,7 +267,7 @@ var legacyItemToV2Settings = (item) => {
|
|
|
267
267
|
current.media.positionX = parsePercent(item.imagePositionX);
|
|
268
268
|
current.media.positionY = parsePercent(item.imagePositionY);
|
|
269
269
|
current.media.height = parsePixel(item.imageHeight);
|
|
270
|
-
return current;
|
|
270
|
+
return mergeSettings(current, item.settings);
|
|
271
271
|
};
|
|
272
272
|
var v2SettingsToLegacyItem = (itemWithSettings) => {
|
|
273
273
|
const settings = legacyItemToV2Settings(itemWithSettings);
|
|
@@ -5240,7 +5240,7 @@ function BuilderPageEditor({ featureFlags, initialDoc, pageID, siteThemeTokens }
|
|
|
5240
5240
|
}
|
|
5241
5241
|
)
|
|
5242
5242
|
] }),
|
|
5243
|
-
|
|
5243
|
+
v2InspectorEnabledForSelected ? /* @__PURE__ */ jsx4(
|
|
5244
5244
|
BlockInspectorRenderer,
|
|
5245
5245
|
{
|
|
5246
5246
|
block: selectedBlock,
|
|
@@ -182,7 +182,7 @@ var mergeSettings = (defaults, input) => {
|
|
|
182
182
|
return next;
|
|
183
183
|
};
|
|
184
184
|
var legacyBlockToV2Settings = (block) => {
|
|
185
|
-
const current =
|
|
185
|
+
const current = structuredClone(defaultBuilderBlockSettingsV2);
|
|
186
186
|
current.layout.contentWidth = block.contentWidth === "narrow" || block.contentWidth === "content" || block.contentWidth === "wide" || block.contentWidth === "full" || block.contentWidth === "inherit" ? block.contentWidth : current.layout.contentWidth;
|
|
187
187
|
current.layout.sectionPaddingX = block.sectionPaddingX === "none" || block.sectionPaddingX === "sm" || block.sectionPaddingX === "md" || block.sectionPaddingX === "lg" || block.sectionPaddingX === "inherit" ? block.sectionPaddingX : current.layout.sectionPaddingX;
|
|
188
188
|
current.layout.sectionPaddingY = block.sectionPaddingY === "none" || block.sectionPaddingY === "sm" || block.sectionPaddingY === "lg" ? block.sectionPaddingY : current.layout.sectionPaddingY;
|
|
@@ -227,7 +227,7 @@ var legacyBlockToV2Settings = (block) => {
|
|
|
227
227
|
current.advanced.editCopyInPanel = Boolean(block.editCopyInPanel ?? current.advanced.editCopyInPanel);
|
|
228
228
|
current.advanced.customClassName = typeof block.customClassName === "string" ? block.customClassName : current.advanced.customClassName;
|
|
229
229
|
current.advanced.hideOnMobile = Boolean(block.hideOnMobile ?? current.advanced.hideOnMobile);
|
|
230
|
-
return current;
|
|
230
|
+
return mergeSettings(current, block.settings);
|
|
231
231
|
};
|
|
232
232
|
var v2SettingsToLegacyBlock = (blockWithSettings) => {
|
|
233
233
|
const settings = legacyBlockToV2Settings(blockWithSettings);
|
|
@@ -278,7 +278,7 @@ var v2SettingsToLegacyBlock = (blockWithSettings) => {
|
|
|
278
278
|
return next;
|
|
279
279
|
};
|
|
280
280
|
var legacyItemToV2Settings = (item) => {
|
|
281
|
-
const current =
|
|
281
|
+
const current = structuredClone(defaultBuilderItemSettingsV2);
|
|
282
282
|
if (item.imageFit === "cover" || item.imageFit === "contain") {
|
|
283
283
|
current.media.fit = item.imageFit;
|
|
284
284
|
}
|
|
@@ -291,7 +291,7 @@ var legacyItemToV2Settings = (item) => {
|
|
|
291
291
|
current.media.positionX = parsePercent(item.imagePositionX);
|
|
292
292
|
current.media.positionY = parsePercent(item.imagePositionY);
|
|
293
293
|
current.media.height = parsePixel(item.imageHeight);
|
|
294
|
-
return current;
|
|
294
|
+
return mergeSettings(current, item.settings);
|
|
295
295
|
};
|
|
296
296
|
var v2SettingsToLegacyItem = (itemWithSettings) => {
|
|
297
297
|
const settings = legacyItemToV2Settings(itemWithSettings);
|