@tinacms/app 1.2.27 → 1.2.29
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 +23 -0
- package/LICENSE +1 -9
- package/package.json +3 -3
- package/src/Playground.tsx +2 -1
- package/src/lib/graphql-reducer.ts +6 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @tinacms/app
|
|
2
2
|
|
|
3
|
+
## 1.2.29
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [b6fbab887]
|
|
8
|
+
- Updated dependencies [4ae43fdde]
|
|
9
|
+
- Updated dependencies [aec44a7dc]
|
|
10
|
+
- @tinacms/mdx@1.3.20
|
|
11
|
+
- tinacms@1.5.22
|
|
12
|
+
|
|
13
|
+
## 1.2.28
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 841456237: Fix issue where an error would occur if the folder button was clicked in the playground
|
|
18
|
+
- Updated dependencies [5040fc7cb]
|
|
19
|
+
- Updated dependencies [177002715]
|
|
20
|
+
- Updated dependencies [e69a3ef81]
|
|
21
|
+
- Updated dependencies [c925786ef]
|
|
22
|
+
- Updated dependencies [9f01550dd]
|
|
23
|
+
- @tinacms/mdx@1.3.19
|
|
24
|
+
- tinacms@1.5.21
|
|
25
|
+
|
|
3
26
|
## 1.2.27
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/LICENSE
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Portions of the TinaCMS software are licensed as follows:
|
|
4
|
-
|
|
5
|
-
* All software that resides under the "packages/@tinacms/datalayer/" and the "packages/@tinacms/graphql/" directories (the "Tina Data Layer"), is licensed under the license defined in "packages/@tinacms/datalayer/LICENSE".
|
|
6
|
-
|
|
7
|
-
* All software outside of the above-mentioned directories is available under the "Apache 2.0" license as set forth below.
|
|
8
|
-
|
|
9
|
-
Apache License
|
|
1
|
+
Apache License
|
|
10
2
|
Version 2.0, January 2004
|
|
11
3
|
http://www.apache.org/licenses/
|
|
12
4
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/app",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.29",
|
|
4
4
|
"main": "src/main.tsx",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"devDependencies": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@headlessui/react": "1.6.6",
|
|
15
15
|
"@heroicons/react": "1.0.6",
|
|
16
16
|
"@monaco-editor/react": "4.4.5",
|
|
17
|
-
"@tinacms/mdx": "1.3.
|
|
17
|
+
"@tinacms/mdx": "1.3.20",
|
|
18
18
|
"@xstate/react": "3.0.0",
|
|
19
19
|
"final-form": "4.20.7",
|
|
20
20
|
"graphiql": "3.0.0-alpha.1",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"react-dom": "17.0.2",
|
|
26
26
|
"react-router-dom": "6.3.0",
|
|
27
27
|
"tailwindcss": "^3.2.7",
|
|
28
|
-
"tinacms": "1.5.
|
|
28
|
+
"tinacms": "1.5.22",
|
|
29
29
|
"typescript": "^4.6.4",
|
|
30
30
|
"zod": "^3.14.3"
|
|
31
31
|
}
|
package/src/Playground.tsx
CHANGED
|
@@ -89,7 +89,8 @@ const Playground = () => {
|
|
|
89
89
|
let relativePath = ''
|
|
90
90
|
if (collection) {
|
|
91
91
|
relativePath =
|
|
92
|
-
collection
|
|
92
|
+
collection?.documents?.edges[0]?.node?._sys.relativePath ||
|
|
93
|
+
''
|
|
93
94
|
variables = JSON.stringify({ relativePath }, null, 2)
|
|
94
95
|
}
|
|
95
96
|
return (
|
|
@@ -271,14 +271,12 @@ export const useGraphQLReducer = (
|
|
|
271
271
|
}
|
|
272
272
|
})
|
|
273
273
|
let value = source[fieldName] as unknown
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
})
|
|
281
|
-
}
|
|
274
|
+
aliases.forEach((alias) => {
|
|
275
|
+
const aliasValue = source[alias]
|
|
276
|
+
if (aliasValue) {
|
|
277
|
+
value = aliasValue
|
|
278
|
+
}
|
|
279
|
+
})
|
|
282
280
|
if (fieldName === '_sys') {
|
|
283
281
|
return source._internalSys
|
|
284
282
|
}
|