tinacms 0.68.0 → 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 +29 -0
- package/dist/index.es.js +5 -8
- package/dist/index.js +5 -8
- package/dist/rich-text.es.js +1 -1
- package/dist/rich-text.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
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
|
+
|
|
16
|
+
## 0.68.2
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [e90647da3]
|
|
21
|
+
- @tinacms/toolkit@0.56.25
|
|
22
|
+
|
|
23
|
+
## 0.68.1
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- 41d666f9a: Styles list page overflow menu, removes unused prop
|
|
28
|
+
- e5a1152f2: Fix issue where pages that didnt use `useTina` would get a loading spinner that hangs
|
|
29
|
+
- Updated dependencies [41d666f9a]
|
|
30
|
+
- @tinacms/toolkit@0.56.24
|
|
31
|
+
|
|
3
32
|
## 0.68.0
|
|
4
33
|
|
|
5
34
|
### Minor Changes
|
package/dist/index.es.js
CHANGED
|
@@ -425,6 +425,9 @@ function useGraphqlForms({
|
|
|
425
425
|
eventList,
|
|
426
426
|
onSubmit
|
|
427
427
|
});
|
|
428
|
+
if (!query) {
|
|
429
|
+
return [state.data, false];
|
|
430
|
+
}
|
|
428
431
|
return [state.data, state.status !== "done"];
|
|
429
432
|
}
|
|
430
433
|
const transformDocumentIntoMutationRequestPayload = (document, instructions) => {
|
|
@@ -1602,16 +1605,11 @@ function reducer(state, action) {
|
|
|
1602
1605
|
const blueprint = getFormNodeBlueprint(formNode, state);
|
|
1603
1606
|
if (blueprint.hasValuesField) {
|
|
1604
1607
|
changeSets.push(__spreadValues({
|
|
1605
|
-
path: [formNodePath(formNode), "
|
|
1606
|
-
}, buildChangeSet(event, formNode)));
|
|
1607
|
-
}
|
|
1608
|
-
if (blueprint.hasDataJSONField) {
|
|
1609
|
-
changeSets.push(__spreadValues({
|
|
1610
|
-
path: [formNodePath(formNode), "dataJSON"].join(".")
|
|
1608
|
+
path: [formNodePath(formNode), "_values"].join(".")
|
|
1611
1609
|
}, buildChangeSet(event, formNode)));
|
|
1612
1610
|
}
|
|
1613
1611
|
changeSets.push(__spreadValues({
|
|
1614
|
-
path: [formNodePath(formNode)
|
|
1612
|
+
path: [formNodePath(formNode)].join(".")
|
|
1615
1613
|
}, buildChangeSet(event, formNode)));
|
|
1616
1614
|
});
|
|
1617
1615
|
return __spreadProps(__spreadValues({}, state), { changeSets });
|
|
@@ -3780,7 +3778,6 @@ const CollectionListPage = () => {
|
|
|
3780
3778
|
}, document.node._sys.template)), /* @__PURE__ */ React.createElement("td", {
|
|
3781
3779
|
className: "w-0"
|
|
3782
3780
|
}, /* @__PURE__ */ React.createElement(OverflowMenu, {
|
|
3783
|
-
showEmbed: true,
|
|
3784
3781
|
toolbarItems: [
|
|
3785
3782
|
{
|
|
3786
3783
|
name: "edit",
|
package/dist/index.js
CHANGED
|
@@ -444,6 +444,9 @@ var __objRest = (source, exclude) => {
|
|
|
444
444
|
eventList,
|
|
445
445
|
onSubmit
|
|
446
446
|
});
|
|
447
|
+
if (!query) {
|
|
448
|
+
return [state.data, false];
|
|
449
|
+
}
|
|
447
450
|
return [state.data, state.status !== "done"];
|
|
448
451
|
}
|
|
449
452
|
const transformDocumentIntoMutationRequestPayload = (document, instructions) => {
|
|
@@ -1621,16 +1624,11 @@ var __objRest = (source, exclude) => {
|
|
|
1621
1624
|
const blueprint = getFormNodeBlueprint(formNode, state);
|
|
1622
1625
|
if (blueprint.hasValuesField) {
|
|
1623
1626
|
changeSets.push(__spreadValues({
|
|
1624
|
-
path: [formNodePath(formNode), "
|
|
1625
|
-
}, buildChangeSet(event, formNode)));
|
|
1626
|
-
}
|
|
1627
|
-
if (blueprint.hasDataJSONField) {
|
|
1628
|
-
changeSets.push(__spreadValues({
|
|
1629
|
-
path: [formNodePath(formNode), "dataJSON"].join(".")
|
|
1627
|
+
path: [formNodePath(formNode), "_values"].join(".")
|
|
1630
1628
|
}, buildChangeSet(event, formNode)));
|
|
1631
1629
|
}
|
|
1632
1630
|
changeSets.push(__spreadValues({
|
|
1633
|
-
path: [formNodePath(formNode)
|
|
1631
|
+
path: [formNodePath(formNode)].join(".")
|
|
1634
1632
|
}, buildChangeSet(event, formNode)));
|
|
1635
1633
|
});
|
|
1636
1634
|
return __spreadProps(__spreadValues({}, state), { changeSets });
|
|
@@ -3799,7 +3797,6 @@ This will work when developing locally but NOT when deployed to production.
|
|
|
3799
3797
|
}, document.node._sys.template)), /* @__PURE__ */ React__default["default"].createElement("td", {
|
|
3800
3798
|
className: "w-0"
|
|
3801
3799
|
}, /* @__PURE__ */ React__default["default"].createElement(toolkit.OverflowMenu, {
|
|
3802
|
-
showEmbed: true,
|
|
3803
3800
|
toolbarItems: [
|
|
3804
3801
|
{
|
|
3805
3802
|
name: "edit",
|
package/dist/rich-text.es.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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",
|