tinacms 1.4.3 → 1.4.5

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/dist/index.es.js CHANGED
@@ -3153,7 +3153,8 @@ const CollectionListPage = () => {
3153
3153
  order: "asc",
3154
3154
  name: ""
3155
3155
  }));
3156
- const [sortOrder, setSortOrder] = useState("asc");
3156
+ const { order = "asc" } = JSON.parse(sortKey || "{}");
3157
+ const [sortOrder, setSortOrder] = useState(order);
3157
3158
  const loc = useLocation();
3158
3159
  useEffect(() => {
3159
3160
  setSortKey(window.localStorage.getItem(`${LOCAL_STORAGE_KEY}.${collectionName}`) || JSON.stringify({
package/dist/index.js CHANGED
@@ -3168,7 +3168,8 @@ This will work when developing locally but NOT when deployed to production.
3168
3168
  order: "asc",
3169
3169
  name: ""
3170
3170
  }));
3171
- const [sortOrder, setSortOrder] = React.useState("asc");
3171
+ const { order = "asc" } = JSON.parse(sortKey || "{}");
3172
+ const [sortOrder, setSortOrder] = React.useState(order);
3172
3173
  const loc = reactRouterDom.useLocation();
3173
3174
  React.useEffect(() => {
3174
3175
  setSortKey(window.localStorage.getItem(`${LOCAL_STORAGE_KEY}.${collectionName}`) || JSON.stringify({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinacms",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "main": "dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "exports": {
@@ -56,6 +56,9 @@
56
56
  "@headlessui/react": "^1.5.0",
57
57
  "@heroicons/react": "^1.0.4",
58
58
  "@react-hook/window-size": "^3.0.7",
59
+ "@tinacms/schema-tools": "1.4.2",
60
+ "@tinacms/sharedctx": "1.0.1",
61
+ "@tinacms/toolkit": "1.6.3",
59
62
  "crypto-js": "^4.0.0",
60
63
  "encoding": "0.1.13",
61
64
  "fetch-ponyfill": "^7.1.0",
@@ -67,10 +70,7 @@
67
70
  "react-icons": "^4.3.1",
68
71
  "react-router-dom": "6",
69
72
  "yup": "^0.32.0",
70
- "zod": "^3.14.3",
71
- "@tinacms/schema-tools": "1.4.2",
72
- "@tinacms/sharedctx": "1.0.1",
73
- "@tinacms/toolkit": "1.6.2"
73
+ "zod": "^3.14.3"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@graphql-tools/utils": "^8.6.1",
@@ -78,6 +78,7 @@
78
78
  "@testing-library/react": "^12.0.0",
79
79
  "@testing-library/react-hooks": "^7.0.2",
80
80
  "@testing-library/user-event": "^12.7.0",
81
+ "@tinacms/scripts": "1.1.0",
81
82
  "@types/jest": "^27.0.1",
82
83
  "@types/lodash": "^4.14.169",
83
84
  "@types/node": "^14.0.13",
@@ -91,8 +92,7 @@
91
92
  "react": "17.0.2",
92
93
  "react-dom": "17.0.2",
93
94
  "react-is": "^17.0.2",
94
- "typescript": "4.3.5",
95
- "@tinacms/scripts": "1.1.0"
95
+ "typescript": "4.3.5"
96
96
  },
97
97
  "peerDependencies": {
98
98
  "react": ">=16.14.0",