@measured/puck 0.20.1-canary.38076a94 → 0.20.1-canary.6c58995b
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.
|
@@ -5659,7 +5659,7 @@ var registerOverlayPortal = (el, opts = {}) => {
|
|
|
5659
5659
|
|
|
5660
5660
|
// css-module:/home/runner/work/puck/puck/packages/core/components/InlineTextField/styles.module.css#css-module
|
|
5661
5661
|
init_react_import();
|
|
5662
|
-
var styles_module_default13 = { "InlineTextField": "
|
|
5662
|
+
var styles_module_default13 = { "InlineTextField": "_InlineTextField_1xph6_1" };
|
|
5663
5663
|
|
|
5664
5664
|
// lib/data/set-deep.ts
|
|
5665
5665
|
init_react_import();
|
|
@@ -5741,7 +5741,11 @@ var InlineTextFieldInternal = ({
|
|
|
5741
5741
|
const index = (_a2 = appStore2.state.indexes.zones[zoneCompound]) == null ? void 0 : _a2.contentIds.indexOf(
|
|
5742
5742
|
componentId
|
|
5743
5743
|
);
|
|
5744
|
-
|
|
5744
|
+
let value2 = e.target.innerText;
|
|
5745
|
+
if (disableLineBreaks) {
|
|
5746
|
+
value2 = value2.replaceAll(/\n/gm, "");
|
|
5747
|
+
}
|
|
5748
|
+
const newProps = setDeep(node.data.props, propPath, value2);
|
|
5745
5749
|
const resolvedData = yield appStore2.resolveComponentData(
|
|
5746
5750
|
__spreadProps(__spreadValues({}, node.data), { props: newProps }),
|
|
5747
5751
|
"replace"
|
|
@@ -5760,7 +5764,7 @@ var InlineTextFieldInternal = ({
|
|
|
5760
5764
|
cleanupPortal == null ? void 0 : cleanupPortal();
|
|
5761
5765
|
};
|
|
5762
5766
|
}
|
|
5763
|
-
}, [appStoreApi, ref.current, value]);
|
|
5767
|
+
}, [appStoreApi, ref.current, value, disableLineBreaks]);
|
|
5764
5768
|
const [isHovering, setIsHovering] = useState16(false);
|
|
5765
5769
|
const [isFocused, setIsFocused] = useState16(false);
|
|
5766
5770
|
return /* @__PURE__ */ jsx24(
|
package/dist/index.css
CHANGED
|
@@ -1331,15 +1331,16 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1331
1331
|
}
|
|
1332
1332
|
|
|
1333
1333
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/InlineTextField/styles.module.css/#css-module-data */
|
|
1334
|
-
.
|
|
1334
|
+
._InlineTextField_1xph6_1 {
|
|
1335
1335
|
cursor: text;
|
|
1336
1336
|
display: inline-block;
|
|
1337
|
+
white-space: pre-wrap;
|
|
1337
1338
|
}
|
|
1338
|
-
[data-dnd-dragging] .
|
|
1339
|
+
[data-dnd-dragging] ._InlineTextField_1xph6_1 {
|
|
1339
1340
|
cursor: none;
|
|
1340
1341
|
caret-color: transparent;
|
|
1341
1342
|
}
|
|
1342
|
-
[data-dnd-dragging] .
|
|
1343
|
+
[data-dnd-dragging] ._InlineTextField_1xph6_1::selection {
|
|
1343
1344
|
display: none;
|
|
1344
1345
|
}
|
|
1345
1346
|
|
package/dist/index.js
CHANGED
|
@@ -5556,7 +5556,7 @@ var registerOverlayPortal = (el, opts = {}) => {
|
|
|
5556
5556
|
|
|
5557
5557
|
// css-module:/home/runner/work/puck/puck/packages/core/components/InlineTextField/styles.module.css#css-module
|
|
5558
5558
|
init_react_import();
|
|
5559
|
-
var styles_module_default13 = { "InlineTextField": "
|
|
5559
|
+
var styles_module_default13 = { "InlineTextField": "_InlineTextField_1xph6_1" };
|
|
5560
5560
|
|
|
5561
5561
|
// lib/data/set-deep.ts
|
|
5562
5562
|
init_react_import();
|
|
@@ -5638,7 +5638,11 @@ var InlineTextFieldInternal = ({
|
|
|
5638
5638
|
const index = (_a2 = appStore2.state.indexes.zones[zoneCompound]) == null ? void 0 : _a2.contentIds.indexOf(
|
|
5639
5639
|
componentId
|
|
5640
5640
|
);
|
|
5641
|
-
|
|
5641
|
+
let value2 = e.target.innerText;
|
|
5642
|
+
if (disableLineBreaks) {
|
|
5643
|
+
value2 = value2.replaceAll(/\n/gm, "");
|
|
5644
|
+
}
|
|
5645
|
+
const newProps = setDeep(node.data.props, propPath, value2);
|
|
5642
5646
|
const resolvedData = yield appStore2.resolveComponentData(
|
|
5643
5647
|
__spreadProps(__spreadValues({}, node.data), { props: newProps }),
|
|
5644
5648
|
"replace"
|
|
@@ -5657,7 +5661,7 @@ var InlineTextFieldInternal = ({
|
|
|
5657
5661
|
cleanupPortal == null ? void 0 : cleanupPortal();
|
|
5658
5662
|
};
|
|
5659
5663
|
}
|
|
5660
|
-
}, [appStoreApi, ref.current, value]);
|
|
5664
|
+
}, [appStoreApi, ref.current, value, disableLineBreaks]);
|
|
5661
5665
|
const [isHovering, setIsHovering] = (0, import_react33.useState)(false);
|
|
5662
5666
|
const [isFocused, setIsFocused] = (0, import_react33.useState)(false);
|
|
5663
5667
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
package/dist/index.mjs
CHANGED
package/dist/no-external.css
CHANGED
|
@@ -1329,15 +1329,16 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
|
|
1331
1331
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/InlineTextField/styles.module.css/#css-module-data */
|
|
1332
|
-
.
|
|
1332
|
+
._InlineTextField_1xph6_1 {
|
|
1333
1333
|
cursor: text;
|
|
1334
1334
|
display: inline-block;
|
|
1335
|
+
white-space: pre-wrap;
|
|
1335
1336
|
}
|
|
1336
|
-
[data-dnd-dragging] .
|
|
1337
|
+
[data-dnd-dragging] ._InlineTextField_1xph6_1 {
|
|
1337
1338
|
cursor: none;
|
|
1338
1339
|
caret-color: transparent;
|
|
1339
1340
|
}
|
|
1340
|
-
[data-dnd-dragging] .
|
|
1341
|
+
[data-dnd-dragging] ._InlineTextField_1xph6_1::selection {
|
|
1341
1342
|
display: none;
|
|
1342
1343
|
}
|
|
1343
1344
|
|
package/dist/no-external.js
CHANGED
|
@@ -5556,7 +5556,7 @@ var registerOverlayPortal = (el, opts = {}) => {
|
|
|
5556
5556
|
|
|
5557
5557
|
// css-module:/home/runner/work/puck/puck/packages/core/components/InlineTextField/styles.module.css#css-module
|
|
5558
5558
|
init_react_import();
|
|
5559
|
-
var styles_module_default13 = { "InlineTextField": "
|
|
5559
|
+
var styles_module_default13 = { "InlineTextField": "_InlineTextField_1xph6_1" };
|
|
5560
5560
|
|
|
5561
5561
|
// lib/data/set-deep.ts
|
|
5562
5562
|
init_react_import();
|
|
@@ -5638,7 +5638,11 @@ var InlineTextFieldInternal = ({
|
|
|
5638
5638
|
const index = (_a2 = appStore2.state.indexes.zones[zoneCompound]) == null ? void 0 : _a2.contentIds.indexOf(
|
|
5639
5639
|
componentId
|
|
5640
5640
|
);
|
|
5641
|
-
|
|
5641
|
+
let value2 = e.target.innerText;
|
|
5642
|
+
if (disableLineBreaks) {
|
|
5643
|
+
value2 = value2.replaceAll(/\n/gm, "");
|
|
5644
|
+
}
|
|
5645
|
+
const newProps = setDeep(node.data.props, propPath, value2);
|
|
5642
5646
|
const resolvedData = yield appStore2.resolveComponentData(
|
|
5643
5647
|
__spreadProps(__spreadValues({}, node.data), { props: newProps }),
|
|
5644
5648
|
"replace"
|
|
@@ -5657,7 +5661,7 @@ var InlineTextFieldInternal = ({
|
|
|
5657
5661
|
cleanupPortal == null ? void 0 : cleanupPortal();
|
|
5658
5662
|
};
|
|
5659
5663
|
}
|
|
5660
|
-
}, [appStoreApi, ref.current, value]);
|
|
5664
|
+
}, [appStoreApi, ref.current, value, disableLineBreaks]);
|
|
5661
5665
|
const [isHovering, setIsHovering] = (0, import_react33.useState)(false);
|
|
5662
5666
|
const [isFocused, setIsFocused] = (0, import_react33.useState)(false);
|
|
5663
5667
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
package/dist/no-external.mjs
CHANGED
package/package.json
CHANGED