tinacms 0.68.2 → 0.68.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # tinacms
2
2
 
3
+ ## 0.68.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 8b7ee346a: - Display label instead of name for mdx dropdown af306fa
8
+ - Fix issue where reset triggered chagnes to the wrong rich-text field 03f6191
9
+ - Fix issue where null children in a code block threw an error e454bce
10
+ - Updated dependencies [f6f56bcc0]
11
+ - Updated dependencies [59d33a74a]
12
+ - Updated dependencies [8b7ee346a]
13
+ - Updated dependencies [acb38bf9f]
14
+ - @tinacms/toolkit@0.56.26
15
+
3
16
  ## 0.68.2
4
17
 
5
18
  ### Patch Changes
package/dist/index.es.js CHANGED
@@ -1605,16 +1605,11 @@ function reducer(state, action) {
1605
1605
  const blueprint = getFormNodeBlueprint(formNode, state);
1606
1606
  if (blueprint.hasValuesField) {
1607
1607
  changeSets.push(__spreadValues({
1608
- path: [formNodePath(formNode), "values"].join(".")
1609
- }, buildChangeSet(event, formNode)));
1610
- }
1611
- if (blueprint.hasDataJSONField) {
1612
- changeSets.push(__spreadValues({
1613
- path: [formNodePath(formNode), "dataJSON"].join(".")
1608
+ path: [formNodePath(formNode), "_values"].join(".")
1614
1609
  }, buildChangeSet(event, formNode)));
1615
1610
  }
1616
1611
  changeSets.push(__spreadValues({
1617
- path: [formNodePath(formNode), "data"].join(".")
1612
+ path: [formNodePath(formNode)].join(".")
1618
1613
  }, buildChangeSet(event, formNode)));
1619
1614
  });
1620
1615
  return __spreadProps(__spreadValues({}, state), { changeSets });
package/dist/index.js CHANGED
@@ -1624,16 +1624,11 @@ var __objRest = (source, exclude) => {
1624
1624
  const blueprint = getFormNodeBlueprint(formNode, state);
1625
1625
  if (blueprint.hasValuesField) {
1626
1626
  changeSets.push(__spreadValues({
1627
- path: [formNodePath(formNode), "values"].join(".")
1628
- }, buildChangeSet(event, formNode)));
1629
- }
1630
- if (blueprint.hasDataJSONField) {
1631
- changeSets.push(__spreadValues({
1632
- path: [formNodePath(formNode), "dataJSON"].join(".")
1627
+ path: [formNodePath(formNode), "_values"].join(".")
1633
1628
  }, buildChangeSet(event, formNode)));
1634
1629
  }
1635
1630
  changeSets.push(__spreadValues({
1636
- path: [formNodePath(formNode), "data"].join(".")
1631
+ path: [formNodePath(formNode)].join(".")
1637
1632
  }, buildChangeSet(event, formNode)));
1638
1633
  });
1639
1634
  return __spreadProps(__spreadValues({}, state), { changeSets });
@@ -108,7 +108,7 @@ const TinaMarkdown = ({
108
108
  case "code_block":
109
109
  const value = child.children.map((item) => {
110
110
  var _a2;
111
- return ((_a2 = item.children[0]) == null ? void 0 : _a2.text) || "";
111
+ return item.children ? ((_a2 = item.children[0]) == null ? void 0 : _a2.text) || "" : "";
112
112
  }).join("\n");
113
113
  if (components[child.type]) {
114
114
  const Component2 = components[child.type];
package/dist/rich-text.js CHANGED
@@ -115,7 +115,7 @@ var __objRest = (source, exclude) => {
115
115
  case "code_block":
116
116
  const value = child.children.map((item) => {
117
117
  var _a2;
118
- return ((_a2 = item.children[0]) == null ? void 0 : _a2.text) || "";
118
+ return item.children ? ((_a2 = item.children[0]) == null ? void 0 : _a2.text) || "" : "";
119
119
  }).join("\n");
120
120
  if (components[child.type]) {
121
121
  const Component2 = components[child.type];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinacms",
3
- "version": "0.68.2",
3
+ "version": "0.68.3",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist"
@@ -26,7 +26,7 @@
26
26
  "@heroicons/react": "^1.0.4",
27
27
  "@tinacms/schema-tools": "0.0.3",
28
28
  "@tinacms/sharedctx": "0.1.1",
29
- "@tinacms/toolkit": "0.56.25",
29
+ "@tinacms/toolkit": "0.56.26",
30
30
  "crypto-js": "^4.0.0",
31
31
  "final-form": "4.20.1",
32
32
  "graphql": "^15.1.0",