@tinacms/app 1.2.16 → 1.2.18
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 +21 -0
- package/package.json +4 -4
- package/src/lib/util.ts +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @tinacms/app
|
|
2
2
|
|
|
3
|
+
## 1.2.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1176d569a: Ensure tinaField links to references land on the select field instead of the referenced form
|
|
8
|
+
- Updated dependencies [c7fa6ddc0]
|
|
9
|
+
- Updated dependencies [8710dec4b]
|
|
10
|
+
- Updated dependencies [6e192cc38]
|
|
11
|
+
- Updated dependencies [5aaae9902]
|
|
12
|
+
- tinacms@1.5.11
|
|
13
|
+
- @tinacms/toolkit@1.7.7
|
|
14
|
+
- @tinacms/mdx@1.3.13
|
|
15
|
+
|
|
16
|
+
## 1.2.17
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- @tinacms/toolkit@1.7.6
|
|
21
|
+
- tinacms@1.5.10
|
|
22
|
+
- @tinacms/mdx@1.3.12
|
|
23
|
+
|
|
3
24
|
## 1.2.16
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/app",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.18",
|
|
4
4
|
"main": "src/main.tsx",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"devDependencies": {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"@headlessui/react": "1.6.6",
|
|
14
14
|
"@heroicons/react": "1.0.6",
|
|
15
15
|
"@monaco-editor/react": "4.4.5",
|
|
16
|
-
"@tinacms/mdx": "1.3.
|
|
17
|
-
"@tinacms/toolkit": "1.7.
|
|
16
|
+
"@tinacms/mdx": "1.3.13",
|
|
17
|
+
"@tinacms/toolkit": "1.7.7",
|
|
18
18
|
"@xstate/react": "3.0.0",
|
|
19
19
|
"final-form": "4.20.7",
|
|
20
20
|
"graphiql": "^2.4.0",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"react-is": "17.0.2",
|
|
28
28
|
"react-router-dom": "6.3.0",
|
|
29
29
|
"tailwindcss": "^3.2.7",
|
|
30
|
-
"tinacms": "1.5.
|
|
30
|
+
"tinacms": "1.5.11",
|
|
31
31
|
"typescript": "^4.6.4",
|
|
32
32
|
"zod": "^3.14.3"
|
|
33
33
|
}
|
package/src/lib/util.ts
CHANGED
|
@@ -93,7 +93,12 @@ export const getDeepestMetadata = (state: Object, complexKey: string): any => {
|
|
|
93
93
|
}
|
|
94
94
|
const value = current[key]
|
|
95
95
|
if (value?._tina_metadata) {
|
|
96
|
-
|
|
96
|
+
// We're at a reference field, we don't want to select the
|
|
97
|
+
// reference form, just the reference select field
|
|
98
|
+
if (complexKey === value._tina_metadata?.prefix && metadata) {
|
|
99
|
+
} else {
|
|
100
|
+
metadata = value._tina_metadata
|
|
101
|
+
}
|
|
97
102
|
}
|
|
98
103
|
current = value
|
|
99
104
|
}
|