@orion-studios/payload-studio 0.6.0-beta.154 → 0.6.0-beta.156

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.
@@ -1399,6 +1399,16 @@ var decorateBuilderNumericSteppers = (root = document) => {
1399
1399
  input.type = "text";
1400
1400
  input.inputMode = "decimal";
1401
1401
  field.querySelector("select")?.setAttribute("tabindex", "-1");
1402
+ if (property.startsWith("padding-")) {
1403
+ const keepNegativePaddingValue = (event) => {
1404
+ if (!input.value.trim().startsWith("-")) {
1405
+ return;
1406
+ }
1407
+ event.stopPropagation();
1408
+ };
1409
+ input.addEventListener("input", keepNegativePaddingValue, true);
1410
+ input.addEventListener("change", keepNegativePaddingValue, true);
1411
+ }
1402
1412
  input.addEventListener(
1403
1413
  "keydown",
1404
1414
  (event) => {
@@ -1414,6 +1424,7 @@ var decorateBuilderNumericSteppers = (root = document) => {
1414
1424
  input.value = nextValue;
1415
1425
  const nextCursor = Math.min(selectionStart + 1, nextValue.length);
1416
1426
  input.setSelectionRange(nextCursor, nextCursor);
1427
+ input.dispatchEvent(new InputEvent("input", { bubbles: true, inputType: "insertText" }));
1417
1428
  },
1418
1429
  true
1419
1430
  );
@@ -1275,6 +1275,16 @@ var decorateBuilderNumericSteppers = (root = document) => {
1275
1275
  input.type = "text";
1276
1276
  input.inputMode = "decimal";
1277
1277
  field.querySelector("select")?.setAttribute("tabindex", "-1");
1278
+ if (property.startsWith("padding-")) {
1279
+ const keepNegativePaddingValue = (event) => {
1280
+ if (!input.value.trim().startsWith("-")) {
1281
+ return;
1282
+ }
1283
+ event.stopPropagation();
1284
+ };
1285
+ input.addEventListener("input", keepNegativePaddingValue, true);
1286
+ input.addEventListener("change", keepNegativePaddingValue, true);
1287
+ }
1278
1288
  input.addEventListener(
1279
1289
  "keydown",
1280
1290
  (event) => {
@@ -1290,6 +1300,7 @@ var decorateBuilderNumericSteppers = (root = document) => {
1290
1300
  input.value = nextValue;
1291
1301
  const nextCursor = Math.min(selectionStart + 1, nextValue.length);
1292
1302
  input.setSelectionRange(nextCursor, nextCursor);
1303
+ input.dispatchEvent(new InputEvent("input", { bubbles: true, inputType: "insertText" }));
1293
1304
  },
1294
1305
  true
1295
1306
  );
package/dist/index.mjs CHANGED
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  admin_exports
3
3
  } from "./chunk-KHK6RTGC.mjs";
4
- import {
5
- blocks_exports
6
- } from "./chunk-JQAHXYAM.mjs";
7
4
  import {
8
5
  nextjs_exports
9
6
  } from "./chunk-ZADL33R6.mjs";
10
7
  import "./chunk-ZTXJG4K5.mjs";
8
+ import {
9
+ blocks_exports
10
+ } from "./chunk-JQAHXYAM.mjs";
11
11
  import {
12
12
  studio_pages_exports
13
- } from "./chunk-NGLIA2OE.mjs";
14
- import "./chunk-OQSEJXC4.mjs";
13
+ } from "./chunk-276KAPGM.mjs";
15
14
  import "./chunk-7ZMXZRBP.mjs";
15
+ import "./chunk-OQSEJXC4.mjs";
16
16
  import {
17
17
  studio_exports
18
18
  } from "./chunk-ADIIWIYL.mjs";
@@ -7,14 +7,14 @@ import {
7
7
  pageStudioModuleManifest,
8
8
  resolveBuilderThemeTokens,
9
9
  toEditorInitialDoc
10
- } from "../chunk-NGLIA2OE.mjs";
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,6 @@
1
1
  {
2
2
  "name": "@orion-studios/payload-studio",
3
- "version": "0.6.0-beta.154",
3
+ "version": "0.6.0-beta.156",
4
4
  "description": "Base CMS, builder, and custom admin toolkit for Orion Studios websites",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
@@ -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,