@orion-studios/payload-studio 0.6.0-beta.150 → 0.6.0-beta.152
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/index.mjs +2 -2
- package/dist/builder-v2/client.js +20 -2
- package/dist/builder-v2/client.mjs +20 -2
- package/dist/builder-v2/styles.css +13 -2
- package/dist/index.mjs +9 -9
- package/dist/studio-pages/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/{chunk-NGLIA2OE.mjs → chunk-276KAPGM.mjs} +3 -3
- package/dist/{chunk-JC3UV74N.mjs → chunk-KHK6RTGC.mjs} +3 -3
package/dist/admin/index.mjs
CHANGED
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
socialMediaConnectionsField,
|
|
8
8
|
themePreferenceField,
|
|
9
9
|
withTooltips
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-W2UOCJDX.mjs";
|
|
10
|
+
} from "../chunk-KHK6RTGC.mjs";
|
|
12
11
|
import {
|
|
13
12
|
SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM,
|
|
14
13
|
SOCIAL_MEDIA_ICON_OPTIONS,
|
|
15
14
|
SOCIAL_MEDIA_PLATFORMS,
|
|
16
15
|
SOCIAL_MEDIA_PLATFORM_LABELS
|
|
17
16
|
} from "../chunk-ZTXJG4K5.mjs";
|
|
17
|
+
import "../chunk-W2UOCJDX.mjs";
|
|
18
18
|
import "../chunk-6BWS3CLP.mjs";
|
|
19
19
|
export {
|
|
20
20
|
SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM,
|
|
@@ -1165,10 +1165,12 @@ var registerProjectDynamicComponents = (editor, adapter) => {
|
|
|
1165
1165
|
this.model.addAttributes?.({ "data-orion-background-color": backgroundColor });
|
|
1166
1166
|
}
|
|
1167
1167
|
this.model.components(previewForDefinition(definition, props));
|
|
1168
|
-
hoistPreviewSpacingToModel(this);
|
|
1169
1168
|
lockPreviewChildren(this.model);
|
|
1170
1169
|
});
|
|
1171
|
-
queueMicrotask(() =>
|
|
1170
|
+
queueMicrotask(() => {
|
|
1171
|
+
hoistPreviewSpacingToModel(this);
|
|
1172
|
+
bindEditablePreview(this, editor);
|
|
1173
|
+
});
|
|
1172
1174
|
refreshProjectPreviewLayout(editor);
|
|
1173
1175
|
}
|
|
1174
1176
|
}
|
|
@@ -1397,6 +1399,14 @@ var decorateBuilderNumericSteppers = (root = document) => {
|
|
|
1397
1399
|
field.querySelector("select")?.setAttribute("tabindex", "-1");
|
|
1398
1400
|
const stepper = document.createElement("span");
|
|
1399
1401
|
stepper.className = "orion-builder-v2-stepper";
|
|
1402
|
+
stepper.addEventListener("pointerdown", (event) => {
|
|
1403
|
+
event.preventDefault();
|
|
1404
|
+
event.stopPropagation();
|
|
1405
|
+
});
|
|
1406
|
+
stepper.addEventListener("mousedown", (event) => {
|
|
1407
|
+
event.preventDefault();
|
|
1408
|
+
event.stopPropagation();
|
|
1409
|
+
});
|
|
1400
1410
|
const updateValue = (direction) => {
|
|
1401
1411
|
const current = Number.parseFloat(input.value || "0");
|
|
1402
1412
|
const next = Number.isFinite(current) ? current + direction : direction;
|
|
@@ -1414,6 +1424,14 @@ var decorateBuilderNumericSteppers = (root = document) => {
|
|
|
1414
1424
|
button.setAttribute("aria-label", `${step.label} ${property.replace(/-/g, " ")}`);
|
|
1415
1425
|
button.tabIndex = -1;
|
|
1416
1426
|
button.textContent = step.text;
|
|
1427
|
+
button.addEventListener("pointerdown", (event) => {
|
|
1428
|
+
event.preventDefault();
|
|
1429
|
+
event.stopPropagation();
|
|
1430
|
+
});
|
|
1431
|
+
button.addEventListener("mousedown", (event) => {
|
|
1432
|
+
event.preventDefault();
|
|
1433
|
+
event.stopPropagation();
|
|
1434
|
+
});
|
|
1417
1435
|
button.addEventListener("click", (event) => {
|
|
1418
1436
|
event.preventDefault();
|
|
1419
1437
|
event.stopPropagation();
|
|
@@ -1041,10 +1041,12 @@ var registerProjectDynamicComponents = (editor, adapter) => {
|
|
|
1041
1041
|
this.model.addAttributes?.({ "data-orion-background-color": backgroundColor });
|
|
1042
1042
|
}
|
|
1043
1043
|
this.model.components(previewForDefinition(definition, props));
|
|
1044
|
-
hoistPreviewSpacingToModel(this);
|
|
1045
1044
|
lockPreviewChildren(this.model);
|
|
1046
1045
|
});
|
|
1047
|
-
queueMicrotask(() =>
|
|
1046
|
+
queueMicrotask(() => {
|
|
1047
|
+
hoistPreviewSpacingToModel(this);
|
|
1048
|
+
bindEditablePreview(this, editor);
|
|
1049
|
+
});
|
|
1048
1050
|
refreshProjectPreviewLayout(editor);
|
|
1049
1051
|
}
|
|
1050
1052
|
}
|
|
@@ -1273,6 +1275,14 @@ var decorateBuilderNumericSteppers = (root = document) => {
|
|
|
1273
1275
|
field.querySelector("select")?.setAttribute("tabindex", "-1");
|
|
1274
1276
|
const stepper = document.createElement("span");
|
|
1275
1277
|
stepper.className = "orion-builder-v2-stepper";
|
|
1278
|
+
stepper.addEventListener("pointerdown", (event) => {
|
|
1279
|
+
event.preventDefault();
|
|
1280
|
+
event.stopPropagation();
|
|
1281
|
+
});
|
|
1282
|
+
stepper.addEventListener("mousedown", (event) => {
|
|
1283
|
+
event.preventDefault();
|
|
1284
|
+
event.stopPropagation();
|
|
1285
|
+
});
|
|
1276
1286
|
const updateValue = (direction) => {
|
|
1277
1287
|
const current = Number.parseFloat(input.value || "0");
|
|
1278
1288
|
const next = Number.isFinite(current) ? current + direction : direction;
|
|
@@ -1290,6 +1300,14 @@ var decorateBuilderNumericSteppers = (root = document) => {
|
|
|
1290
1300
|
button.setAttribute("aria-label", `${step.label} ${property.replace(/-/g, " ")}`);
|
|
1291
1301
|
button.tabIndex = -1;
|
|
1292
1302
|
button.textContent = step.text;
|
|
1303
|
+
button.addEventListener("pointerdown", (event) => {
|
|
1304
|
+
event.preventDefault();
|
|
1305
|
+
event.stopPropagation();
|
|
1306
|
+
});
|
|
1307
|
+
button.addEventListener("mousedown", (event) => {
|
|
1308
|
+
event.preventDefault();
|
|
1309
|
+
event.stopPropagation();
|
|
1310
|
+
});
|
|
1293
1311
|
button.addEventListener("click", (event) => {
|
|
1294
1312
|
event.preventDefault();
|
|
1295
1313
|
event.stopPropagation();
|
|
@@ -1578,6 +1578,7 @@
|
|
|
1578
1578
|
align-items: stretch;
|
|
1579
1579
|
display: grid !important;
|
|
1580
1580
|
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
1581
|
+
overflow: hidden;
|
|
1581
1582
|
}
|
|
1582
1583
|
|
|
1583
1584
|
.orion-builder-v2-editor .gjs-field.has-orion-builder-stepper input {
|
|
@@ -1585,8 +1586,10 @@
|
|
|
1585
1586
|
}
|
|
1586
1587
|
|
|
1587
1588
|
.orion-builder-v2-editor .gjs-field.has-orion-builder-stepper .gjs-input-unit {
|
|
1589
|
+
pointer-events: none;
|
|
1588
1590
|
padding-left: 8px;
|
|
1589
|
-
padding-right:
|
|
1591
|
+
padding-right: 24px;
|
|
1592
|
+
user-select: none;
|
|
1590
1593
|
}
|
|
1591
1594
|
|
|
1592
1595
|
.orion-builder-v2-stepper {
|
|
@@ -1595,7 +1598,11 @@
|
|
|
1595
1598
|
display: grid;
|
|
1596
1599
|
grid-template-rows: 1fr 1fr;
|
|
1597
1600
|
min-height: 34px;
|
|
1598
|
-
|
|
1601
|
+
pointer-events: auto;
|
|
1602
|
+
position: relative;
|
|
1603
|
+
user-select: none;
|
|
1604
|
+
width: 30px;
|
|
1605
|
+
z-index: 2;
|
|
1599
1606
|
}
|
|
1600
1607
|
|
|
1601
1608
|
.orion-builder-v2-stepper-button {
|
|
@@ -1610,6 +1617,10 @@
|
|
|
1610
1617
|
justify-content: center;
|
|
1611
1618
|
min-height: 0;
|
|
1612
1619
|
padding: 0;
|
|
1620
|
+
pointer-events: auto;
|
|
1621
|
+
touch-action: manipulation;
|
|
1622
|
+
user-select: none;
|
|
1623
|
+
width: 30px;
|
|
1613
1624
|
}
|
|
1614
1625
|
|
|
1615
1626
|
.orion-builder-v2-stepper-button + .orion-builder-v2-stepper-button {
|
package/dist/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
admin_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KHK6RTGC.mjs";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
nextjs_exports
|
|
6
|
+
} from "./chunk-ZADL33R6.mjs";
|
|
7
|
+
import "./chunk-ZTXJG4K5.mjs";
|
|
8
8
|
import {
|
|
9
9
|
blocks_exports
|
|
10
10
|
} from "./chunk-JQAHXYAM.mjs";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
admin_app_exports
|
|
13
|
+
} from "./chunk-RKTIFEUY.mjs";
|
|
14
|
+
import "./chunk-W2UOCJDX.mjs";
|
|
15
15
|
import {
|
|
16
16
|
studio_pages_exports
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-OQSEJXC4.mjs";
|
|
17
|
+
} from "./chunk-276KAPGM.mjs";
|
|
19
18
|
import "./chunk-7ZMXZRBP.mjs";
|
|
19
|
+
import "./chunk-OQSEJXC4.mjs";
|
|
20
20
|
import {
|
|
21
21
|
studio_exports
|
|
22
22
|
} from "./chunk-ADIIWIYL.mjs";
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
pageStudioModuleManifest,
|
|
8
8
|
resolveBuilderThemeTokens,
|
|
9
9
|
toEditorInitialDoc
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-OQSEJXC4.mjs";
|
|
10
|
+
} from "../chunk-276KAPGM.mjs";
|
|
12
11
|
import {
|
|
13
12
|
createDefaultStudioDocument,
|
|
14
13
|
defaultBuilderThemeTokens,
|
|
15
14
|
layoutToStudioDocument,
|
|
16
15
|
studioDocumentToLayout
|
|
17
16
|
} from "../chunk-7ZMXZRBP.mjs";
|
|
17
|
+
import "../chunk-OQSEJXC4.mjs";
|
|
18
18
|
import "../chunk-ADIIWIYL.mjs";
|
|
19
19
|
import "../chunk-6BWS3CLP.mjs";
|
|
20
20
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
sectionStyleDefaults
|
|
3
|
-
} from "./chunk-OQSEJXC4.mjs";
|
|
4
1
|
import {
|
|
5
2
|
createDefaultStudioDocument,
|
|
6
3
|
defaultBuilderThemeTokens,
|
|
@@ -8,6 +5,9 @@ import {
|
|
|
8
5
|
migrateBlockToSettingsV2,
|
|
9
6
|
studioDocumentToLayout
|
|
10
7
|
} from "./chunk-7ZMXZRBP.mjs";
|
|
8
|
+
import {
|
|
9
|
+
sectionStyleDefaults
|
|
10
|
+
} from "./chunk-OQSEJXC4.mjs";
|
|
11
11
|
import {
|
|
12
12
|
assertStudioDocumentV1,
|
|
13
13
|
compileStudioDocument,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
adminNavIcons
|
|
3
|
-
} from "./chunk-W2UOCJDX.mjs";
|
|
4
1
|
import {
|
|
5
2
|
SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM,
|
|
6
3
|
SOCIAL_MEDIA_ICON_OPTIONS,
|
|
7
4
|
SOCIAL_MEDIA_PLATFORMS,
|
|
8
5
|
SOCIAL_MEDIA_PLATFORM_LABELS
|
|
9
6
|
} from "./chunk-ZTXJG4K5.mjs";
|
|
7
|
+
import {
|
|
8
|
+
adminNavIcons
|
|
9
|
+
} from "./chunk-W2UOCJDX.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__export,
|
|
12
12
|
__require
|