@orion-studios/payload-studio 0.5.0-beta.85 → 0.5.0-beta.86
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/index.mjs +6 -6
- package/dist/studio-pages/client.js +17 -17
- package/dist/studio-pages/client.mjs +17 -17
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
admin_exports
|
|
3
3
|
} from "./chunk-HCEPGEAI.mjs";
|
|
4
|
+
import {
|
|
5
|
+
admin_app_exports
|
|
6
|
+
} from "./chunk-XVH5SCBD.mjs";
|
|
7
|
+
import {
|
|
8
|
+
blocks_exports
|
|
9
|
+
} from "./chunk-XK3K5GRP.mjs";
|
|
4
10
|
import {
|
|
5
11
|
nextjs_exports
|
|
6
12
|
} from "./chunk-AFLEATYB.mjs";
|
|
@@ -10,13 +16,7 @@ import {
|
|
|
10
16
|
import {
|
|
11
17
|
studio_pages_exports
|
|
12
18
|
} from "./chunk-FWVVRZ32.mjs";
|
|
13
|
-
import {
|
|
14
|
-
blocks_exports
|
|
15
|
-
} from "./chunk-XK3K5GRP.mjs";
|
|
16
19
|
import "./chunk-SIL2J5MF.mjs";
|
|
17
|
-
import {
|
|
18
|
-
admin_app_exports
|
|
19
|
-
} from "./chunk-XVH5SCBD.mjs";
|
|
20
20
|
import "./chunk-6BWS3CLP.mjs";
|
|
21
21
|
export {
|
|
22
22
|
admin_exports as admin,
|
|
@@ -447,7 +447,7 @@ function ImageControls({
|
|
|
447
447
|
)
|
|
448
448
|
] }),
|
|
449
449
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
450
|
-
"Focus
|
|
450
|
+
"Horizontal Image Focus (%)",
|
|
451
451
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "orion-builder-settings-input-split", children: [
|
|
452
452
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
453
453
|
"input",
|
|
@@ -473,7 +473,7 @@ function ImageControls({
|
|
|
473
473
|
] })
|
|
474
474
|
] }),
|
|
475
475
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("label", { className: "orion-builder-settings-label", children: [
|
|
476
|
-
"Focus
|
|
476
|
+
"Vertical Image Focus (%)",
|
|
477
477
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "orion-builder-settings-input-split", children: [
|
|
478
478
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
479
479
|
"input",
|
|
@@ -3404,25 +3404,25 @@ function ArrayItemsEditor({
|
|
|
3404
3404
|
minHeight: blockType === "logoWall" ? 24 : blockType === "beforeAfter" ? 60 : 40,
|
|
3405
3405
|
onChange: (field, value) => {
|
|
3406
3406
|
if (field === "height") {
|
|
3407
|
-
|
|
3407
|
+
onUpdateItemSetting(itemIndex, "media.height", value);
|
|
3408
3408
|
return;
|
|
3409
3409
|
}
|
|
3410
3410
|
if (field === "fit") {
|
|
3411
|
-
|
|
3411
|
+
onUpdateItemSetting(itemIndex, "media.fit", value);
|
|
3412
3412
|
return;
|
|
3413
3413
|
}
|
|
3414
3414
|
if (field === "cornerStyle") {
|
|
3415
|
-
|
|
3415
|
+
onUpdateItemSetting(itemIndex, "media.cornerStyle", value);
|
|
3416
3416
|
return;
|
|
3417
3417
|
}
|
|
3418
3418
|
if (field === "position") {
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3419
|
+
onUpdateItemSetting(itemIndex, "media.position", value);
|
|
3420
|
+
onUpdateItemSetting(itemIndex, "media.positionX", null);
|
|
3421
|
+
onUpdateItemSetting(itemIndex, "media.positionY", null);
|
|
3422
3422
|
return;
|
|
3423
3423
|
}
|
|
3424
3424
|
if (field === "positionX" || field === "positionY") {
|
|
3425
|
-
|
|
3425
|
+
onUpdateItemSetting(itemIndex, `media.${field}`, value);
|
|
3426
3426
|
}
|
|
3427
3427
|
},
|
|
3428
3428
|
position: normalizeImagePosition(item.imagePosition),
|
|
@@ -4458,29 +4458,29 @@ function BuilderPageEditor({ featureFlags: _featureFlags, initialDoc, pageID, si
|
|
|
4458
4458
|
return;
|
|
4459
4459
|
}
|
|
4460
4460
|
if (field === "height") {
|
|
4461
|
-
|
|
4461
|
+
updateArrayItemSettingField(selectedIndex, "items", selectedItemIndex, "media.height", value);
|
|
4462
4462
|
return;
|
|
4463
4463
|
}
|
|
4464
4464
|
if (field === "fit") {
|
|
4465
|
-
|
|
4465
|
+
updateArrayItemSettingField(selectedIndex, "items", selectedItemIndex, "media.fit", value);
|
|
4466
4466
|
return;
|
|
4467
4467
|
}
|
|
4468
4468
|
if (field === "cornerStyle") {
|
|
4469
|
-
|
|
4469
|
+
updateArrayItemSettingField(selectedIndex, "items", selectedItemIndex, "media.cornerStyle", value);
|
|
4470
4470
|
return;
|
|
4471
4471
|
}
|
|
4472
4472
|
if (field === "position") {
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4473
|
+
updateArrayItemSettingField(selectedIndex, "items", selectedItemIndex, "media.position", value);
|
|
4474
|
+
updateArrayItemSettingField(selectedIndex, "items", selectedItemIndex, "media.positionX", null);
|
|
4475
|
+
updateArrayItemSettingField(selectedIndex, "items", selectedItemIndex, "media.positionY", null);
|
|
4476
4476
|
return;
|
|
4477
4477
|
}
|
|
4478
4478
|
if (field === "positionX") {
|
|
4479
|
-
|
|
4479
|
+
updateArrayItemSettingField(selectedIndex, "items", selectedItemIndex, "media.positionX", value);
|
|
4480
4480
|
return;
|
|
4481
4481
|
}
|
|
4482
4482
|
if (field === "positionY") {
|
|
4483
|
-
|
|
4483
|
+
updateArrayItemSettingField(selectedIndex, "items", selectedItemIndex, "media.positionY", value);
|
|
4484
4484
|
}
|
|
4485
4485
|
};
|
|
4486
4486
|
const uploadItemMediaFromV2 = (itemIndex, field, file) => {
|
|
@@ -421,7 +421,7 @@ function ImageControls({
|
|
|
421
421
|
)
|
|
422
422
|
] }),
|
|
423
423
|
/* @__PURE__ */ jsxs2("label", { className: "orion-builder-settings-label", children: [
|
|
424
|
-
"Focus
|
|
424
|
+
"Horizontal Image Focus (%)",
|
|
425
425
|
/* @__PURE__ */ jsxs2("div", { className: "orion-builder-settings-input-split", children: [
|
|
426
426
|
/* @__PURE__ */ jsx2(
|
|
427
427
|
"input",
|
|
@@ -447,7 +447,7 @@ function ImageControls({
|
|
|
447
447
|
] })
|
|
448
448
|
] }),
|
|
449
449
|
/* @__PURE__ */ jsxs2("label", { className: "orion-builder-settings-label", children: [
|
|
450
|
-
"Focus
|
|
450
|
+
"Vertical Image Focus (%)",
|
|
451
451
|
/* @__PURE__ */ jsxs2("div", { className: "orion-builder-settings-input-split", children: [
|
|
452
452
|
/* @__PURE__ */ jsx2(
|
|
453
453
|
"input",
|
|
@@ -3285,25 +3285,25 @@ function ArrayItemsEditor({
|
|
|
3285
3285
|
minHeight: blockType === "logoWall" ? 24 : blockType === "beforeAfter" ? 60 : 40,
|
|
3286
3286
|
onChange: (field, value) => {
|
|
3287
3287
|
if (field === "height") {
|
|
3288
|
-
|
|
3288
|
+
onUpdateItemSetting(itemIndex, "media.height", value);
|
|
3289
3289
|
return;
|
|
3290
3290
|
}
|
|
3291
3291
|
if (field === "fit") {
|
|
3292
|
-
|
|
3292
|
+
onUpdateItemSetting(itemIndex, "media.fit", value);
|
|
3293
3293
|
return;
|
|
3294
3294
|
}
|
|
3295
3295
|
if (field === "cornerStyle") {
|
|
3296
|
-
|
|
3296
|
+
onUpdateItemSetting(itemIndex, "media.cornerStyle", value);
|
|
3297
3297
|
return;
|
|
3298
3298
|
}
|
|
3299
3299
|
if (field === "position") {
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3300
|
+
onUpdateItemSetting(itemIndex, "media.position", value);
|
|
3301
|
+
onUpdateItemSetting(itemIndex, "media.positionX", null);
|
|
3302
|
+
onUpdateItemSetting(itemIndex, "media.positionY", null);
|
|
3303
3303
|
return;
|
|
3304
3304
|
}
|
|
3305
3305
|
if (field === "positionX" || field === "positionY") {
|
|
3306
|
-
|
|
3306
|
+
onUpdateItemSetting(itemIndex, `media.${field}`, value);
|
|
3307
3307
|
}
|
|
3308
3308
|
},
|
|
3309
3309
|
position: normalizeImagePosition(item.imagePosition),
|
|
@@ -4339,29 +4339,29 @@ function BuilderPageEditor({ featureFlags: _featureFlags, initialDoc, pageID, si
|
|
|
4339
4339
|
return;
|
|
4340
4340
|
}
|
|
4341
4341
|
if (field === "height") {
|
|
4342
|
-
|
|
4342
|
+
updateArrayItemSettingField(selectedIndex, "items", selectedItemIndex, "media.height", value);
|
|
4343
4343
|
return;
|
|
4344
4344
|
}
|
|
4345
4345
|
if (field === "fit") {
|
|
4346
|
-
|
|
4346
|
+
updateArrayItemSettingField(selectedIndex, "items", selectedItemIndex, "media.fit", value);
|
|
4347
4347
|
return;
|
|
4348
4348
|
}
|
|
4349
4349
|
if (field === "cornerStyle") {
|
|
4350
|
-
|
|
4350
|
+
updateArrayItemSettingField(selectedIndex, "items", selectedItemIndex, "media.cornerStyle", value);
|
|
4351
4351
|
return;
|
|
4352
4352
|
}
|
|
4353
4353
|
if (field === "position") {
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4354
|
+
updateArrayItemSettingField(selectedIndex, "items", selectedItemIndex, "media.position", value);
|
|
4355
|
+
updateArrayItemSettingField(selectedIndex, "items", selectedItemIndex, "media.positionX", null);
|
|
4356
|
+
updateArrayItemSettingField(selectedIndex, "items", selectedItemIndex, "media.positionY", null);
|
|
4357
4357
|
return;
|
|
4358
4358
|
}
|
|
4359
4359
|
if (field === "positionX") {
|
|
4360
|
-
|
|
4360
|
+
updateArrayItemSettingField(selectedIndex, "items", selectedItemIndex, "media.positionX", value);
|
|
4361
4361
|
return;
|
|
4362
4362
|
}
|
|
4363
4363
|
if (field === "positionY") {
|
|
4364
|
-
|
|
4364
|
+
updateArrayItemSettingField(selectedIndex, "items", selectedItemIndex, "media.positionY", value);
|
|
4365
4365
|
}
|
|
4366
4366
|
};
|
|
4367
4367
|
const uploadItemMediaFromV2 = (itemIndex, field, file) => {
|