eddev 0.3.30 → 0.3.33

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();
@@ -198,7 +198,7 @@ function prepareValuesPayload(form, state, data) {
198
198
  data.append("".concat(key, "_1"), value ? "1" : "");
199
199
  data.append("".concat(key, ".1"), value ? "1" : "");
200
200
  data.append("".concat(key, ".2"), (_b = (_a = field === null || field === void 0 ? void 0 : field.consentText) !== null && _a !== void 0 ? _a : field === null || field === void 0 ? void 0 : field.checkboxLabel) !== null && _b !== void 0 ? _b : "");
201
- data.append("".concat(key, ".3"), "2");
201
+ data.append("".concat(key, ".3"), field.formId);
202
202
  }
203
203
  else if (field.type === "name") {
204
204
  data.append("".concat(key, "_2"), (_c = value === null || value === void 0 ? void 0 : value.prefix) !== null && _c !== void 0 ? _c : "");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "0.3.30",
3
+ "version": "0.3.33",
4
4
  "main": "./index.js",
5
5
  "license": "MIT",
6
6
  "bin": {