eddev 0.3.30 → 0.3.32

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.
@@ -34,11 +34,12 @@ var react_2 = require("@stitches/react");
34
34
  var remoteProps_1 = require("../routing/remoteProps");
35
35
  var routing_1 = require("../routing");
36
36
  function EditableText(_a) {
37
+ var _b;
37
38
  var id = _a.id, as = _a.as, appendOnEnter = _a.appendOnEnter, props = __rest(_a, ["id", "as", "appendOnEnter"]);
38
39
  if (process.admin) {
39
- var _b = (0, blockAttributes_1.useInlineEditableValue)(id), value = _b[0], setValue = _b[1];
40
+ var _c = (0, blockAttributes_1.useInlineEditableValue)(id), value = _c[0], setValue = _c[1];
40
41
  var appendBlocks_1 = (0, blockAttributes_1.useBlockAppender)();
41
- return ((0, jsx_runtime_1.jsx)(block_editor_1.RichText, __assign({}, props, { tagName: as, value: value || "", onChange: setValue, disableLineBreaks: props.disableLineBreaks, onKeyDownCapture: function (e) {
42
+ return ((0, jsx_runtime_1.jsx)(block_editor_1.RichText, __assign({}, props, { placeholder: (_b = props.placeholder) !== null && _b !== void 0 ? _b : props.defaultValue, tagName: as, value: value || "", onChange: setValue, disableLineBreaks: props.disableLineBreaks, onKeyDownCapture: function (e) {
42
43
  if (e.key === "Enter" && appendOnEnter && appendBlocks_1) {
43
44
  appendBlocks_1([(0, blocks_1.createBlock)("core/paragraph")]);
44
45
  e.preventDefault();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "0.3.30",
3
+ "version": "0.3.32",
4
4
  "main": "./index.js",
5
5
  "license": "MIT",
6
6
  "bin": {