@tinacms/app 2.1.3 → 2.1.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @tinacms/app
|
|
2
2
|
|
|
3
|
+
## 2.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ba5f7a3: ⬆️ Update @headlessui/react from v1 to v2
|
|
8
|
+
- Updated dependencies [cf1530d]
|
|
9
|
+
- Updated dependencies [2762994]
|
|
10
|
+
- Updated dependencies [ba5f7a3]
|
|
11
|
+
- tinacms@2.2.5
|
|
12
|
+
|
|
13
|
+
## 2.1.4
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [75cf194]
|
|
18
|
+
- Updated dependencies [198c280]
|
|
19
|
+
- tinacms@2.2.4
|
|
20
|
+
|
|
3
21
|
## 2.1.3
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/app",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"main": "src/main.tsx",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"devDependencies": {
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@graphiql/toolkit": "0.8.4",
|
|
13
|
-
"@headlessui/react": "1.
|
|
14
|
-
"@heroicons/react": "1.0.6",
|
|
13
|
+
"@headlessui/react": "^2.1.8",
|
|
14
|
+
"@heroicons/react": "^1.0.6",
|
|
15
15
|
"@monaco-editor/react": "4.4.5",
|
|
16
16
|
"final-form": "4.20.10",
|
|
17
17
|
"graphiql": "3.0.0-alpha.1",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"typescript": "^5.5.4",
|
|
24
24
|
"zod": "^3.14.3",
|
|
25
25
|
"@tinacms/mdx": "1.4.2",
|
|
26
|
-
"tinacms": "2.2.
|
|
26
|
+
"tinacms": "2.2.5"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -5,7 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react'
|
|
7
7
|
import { XCircleIcon } from '@heroicons/react/solid'
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
Popover,
|
|
10
|
+
PopoverButton,
|
|
11
|
+
PopoverPanel,
|
|
12
|
+
Transition,
|
|
13
|
+
} from '@headlessui/react'
|
|
9
14
|
import { Fragment } from 'react'
|
|
10
15
|
// import { InvalidMarkdownElement } from '@tinacms/mdx/src/parse/plate'
|
|
11
16
|
export type EmptyTextElement = { type: 'text'; text: '' }
|
|
@@ -70,14 +75,14 @@ export function ErrorMessage({ error }: { error: InvalidMarkdownElement }) {
|
|
|
70
75
|
<Popover className="relative">
|
|
71
76
|
{() => (
|
|
72
77
|
<>
|
|
73
|
-
<
|
|
78
|
+
<PopoverButton
|
|
74
79
|
className={`p-2 shaodw-lg border ${
|
|
75
80
|
error ? '' : ' opacity-0 hidden '
|
|
76
81
|
}`}
|
|
77
82
|
>
|
|
78
83
|
<span className="sr-only">Errors</span>
|
|
79
84
|
<XCircleIcon className="h-5 w-5 text-red-400" aria-hidden="true" />
|
|
80
|
-
</
|
|
85
|
+
</PopoverButton>
|
|
81
86
|
<Transition
|
|
82
87
|
as={Fragment}
|
|
83
88
|
enter="transition ease-out duration-200"
|
|
@@ -87,7 +92,7 @@ export function ErrorMessage({ error }: { error: InvalidMarkdownElement }) {
|
|
|
87
92
|
leaveFrom="opacity-100 translate-y-0"
|
|
88
93
|
leaveTo="opacity-0 translate-y-1"
|
|
89
94
|
>
|
|
90
|
-
<
|
|
95
|
+
<PopoverPanel className="absolute top-8 w-[300px] -right-3 z-10 mt-3 px-4 sm:px-0">
|
|
91
96
|
<div className="overflow-hidden rounded-lg shadow-lg ring-1 ring-black ring-opacity-5">
|
|
92
97
|
<div className="rounded-md bg-red-50 p-4 overflow-scroll">
|
|
93
98
|
<div className="flex">
|
|
@@ -105,7 +110,7 @@ export function ErrorMessage({ error }: { error: InvalidMarkdownElement }) {
|
|
|
105
110
|
</div>
|
|
106
111
|
</div>
|
|
107
112
|
</div>
|
|
108
|
-
</
|
|
113
|
+
</PopoverPanel>
|
|
109
114
|
</Transition>
|
|
110
115
|
</>
|
|
111
116
|
)}
|