@tinacms/app 0.0.0-f322e12-20250327003611 → 0.0.0-f608f48-20250617065117
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,11 +1,54 @@
|
|
|
1
1
|
# @tinacms/app
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-f608f48-20250617065117
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#5744](https://github.com/tinacms/tinacms/pull/5744) [`d774d98`](https://github.com/tinacms/tinacms/commit/d774d987933bcb2cd0a434eeb59aada05467276a) Thanks [@Ben0189](https://github.com/Ben0189)! - Upgrade Plate editor to v48 beta, integrating latest features and improvements.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#5741](https://github.com/tinacms/tinacms/pull/5741) [`0e9de37`](https://github.com/tinacms/tinacms/commit/0e9de379dab2970206b9b60eb014808662f67287) Thanks [@wicksipedia](https://github.com/wicksipedia)! - CMS admin UI - Refactor Sidebar and Branch Button Components
|
|
12
|
+
Forms header - Adds breadcrumb navigation
|
|
13
|
+
- Updated dependencies [[`d774d98`](https://github.com/tinacms/tinacms/commit/d774d987933bcb2cd0a434eeb59aada05467276a), [`2a3ed6c`](https://github.com/tinacms/tinacms/commit/2a3ed6c3ec3233fd90fd94f3dd3d0243aaad079a), [`bc47f93`](https://github.com/tinacms/tinacms/commit/bc47f938431c400714808613f633b05659a87be1), [`0e9de37`](https://github.com/tinacms/tinacms/commit/0e9de379dab2970206b9b60eb014808662f67287), [`dbef36f`](https://github.com/tinacms/tinacms/commit/dbef36f594b949024d5525184b6a9e1b9085b759), [`3ba6d78`](https://github.com/tinacms/tinacms/commit/3ba6d78f35f817d55bfc3d12b750e54b7e0d11f2)]:
|
|
14
|
+
- @tinacms/mdx@0.0.0-f608f48-20250617065117
|
|
15
|
+
- tinacms@0.0.0-f608f48-20250617065117
|
|
16
|
+
|
|
17
|
+
## 2.2.8
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [[`5e36123`](https://github.com/tinacms/tinacms/commit/5e361239a372e21dda624d17b4ff274bab23ce90), [`856e07a`](https://github.com/tinacms/tinacms/commit/856e07a0b8d742ee78d5eba565623cf081a61534), [`4d9c8ab`](https://github.com/tinacms/tinacms/commit/4d9c8abf6badd1bcc833bda432ab22dace4925ae), [`7346dc9`](https://github.com/tinacms/tinacms/commit/7346dc996fd81ecb395b62f373976512e8224c21)]:
|
|
22
|
+
- tinacms@2.7.8
|
|
23
|
+
- @tinacms/mdx@1.6.3
|
|
24
|
+
|
|
25
|
+
## 2.2.7
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
6
28
|
|
|
7
|
-
-
|
|
8
|
-
|
|
29
|
+
- [#5607](https://github.com/tinacms/tinacms/pull/5607) [`1965236`](https://github.com/tinacms/tinacms/commit/19652363784e48b065ec1924a9cd9611c8e79cae) Thanks [@jeffsee55](https://github.com/jeffsee55)! - Specify react and react-dom as peer deps
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [[`1965236`](https://github.com/tinacms/tinacms/commit/19652363784e48b065ec1924a9cd9611c8e79cae)]:
|
|
32
|
+
- tinacms@2.7.7
|
|
33
|
+
|
|
34
|
+
## 2.2.6
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies [[`65cee5d`](https://github.com/tinacms/tinacms/commit/65cee5d6ae16c7320a4a14f0d9a82dc5f9103e34)]:
|
|
39
|
+
- tinacms@2.7.6
|
|
40
|
+
|
|
41
|
+
## 2.2.5
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- [#5602](https://github.com/tinacms/tinacms/pull/5602) [`ab43169`](https://github.com/tinacms/tinacms/commit/ab43169af5a95f31fa27bb0236623a031883a1fd) Thanks [@wicksipedia](https://github.com/wicksipedia)! - fix naming of TinaCloud
|
|
46
|
+
|
|
47
|
+
- [#5588](https://github.com/tinacms/tinacms/pull/5588) [`fd664d8`](https://github.com/tinacms/tinacms/commit/fd664d8f4e83941ed1b1f234668ab6341a6178f8) Thanks [@JackDevAU](https://github.com/JackDevAU)! - - Fix server-side branch queries by storing the active branch in a cookie and passing it via the x-branch header.
|
|
48
|
+
- Ensure GraphQL playground correctly updates when switching branches.
|
|
49
|
+
- Updated dependencies [[`921f235`](https://github.com/tinacms/tinacms/commit/921f2356e4615d532d02eefa7103fdb70f83b97a), [`ab43169`](https://github.com/tinacms/tinacms/commit/ab43169af5a95f31fa27bb0236623a031883a1fd), [`b551232`](https://github.com/tinacms/tinacms/commit/b5512326ad0ad9855bc75e2073a3ab2a8ec4c064), [`ea204c9`](https://github.com/tinacms/tinacms/commit/ea204c9045451f3ebea04f503e6158d2016613e4), [`fd664d8`](https://github.com/tinacms/tinacms/commit/fd664d8f4e83941ed1b1f234668ab6341a6178f8)]:
|
|
50
|
+
- tinacms@2.7.5
|
|
51
|
+
- @tinacms/mdx@1.6.2
|
|
9
52
|
|
|
10
53
|
## 2.2.3
|
|
11
54
|
|
|
@@ -468,7 +511,7 @@
|
|
|
468
511
|
|
|
469
512
|
fix: Use clean page-sizes on media manager (to make pagination more obvious)
|
|
470
513
|
|
|
471
|
-
Fix issue with uploading media in a folder with
|
|
514
|
+
Fix issue with uploading media in a folder with TinaCloud
|
|
472
515
|
|
|
473
516
|
- Updated dependencies [9c27087fb]
|
|
474
517
|
- Updated dependencies [65d0a701f]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/app",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-f608f48-20250617065117",
|
|
4
4
|
"main": "src/main.tsx",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"devDependencies": {
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
"@types/react-dom": "^18.3.5",
|
|
9
9
|
"typescript": "^5.7.3"
|
|
10
10
|
},
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"react": ">=18.3.1 <20.0.0",
|
|
13
|
+
"react-dom": ">=18.3.1 <20.0.0"
|
|
14
|
+
},
|
|
11
15
|
"dependencies": {
|
|
12
16
|
"@graphiql/toolkit": "0.8.4",
|
|
13
17
|
"@headlessui/react": "2.1.8",
|
|
@@ -22,7 +26,7 @@
|
|
|
22
26
|
"react-router-dom": "6.3.0",
|
|
23
27
|
"typescript": "^5.7.3",
|
|
24
28
|
"zod": "^3.24.2",
|
|
25
|
-
"@tinacms/mdx": "
|
|
26
|
-
"tinacms": "0.0.0-
|
|
29
|
+
"@tinacms/mdx": "0.0.0-f608f48-20250617065117",
|
|
30
|
+
"tinacms": "0.0.0-f608f48-20250617065117"
|
|
27
31
|
}
|
|
28
32
|
}
|
package/src/Playground.tsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createGraphiQLFetcher } from '@graphiql/toolkit';
|
|
2
|
+
import { FolderIcon } from '@heroicons/react/outline';
|
|
3
|
+
import { queries } from 'CLIENT_IMPORT';
|
|
2
4
|
import { GraphiQL } from 'graphiql';
|
|
3
5
|
import { parse, print } from 'graphql';
|
|
4
6
|
import React from 'react';
|
|
5
7
|
import { useCMS } from 'tinacms';
|
|
6
|
-
import { FolderIcon } from '@heroicons/react/outline';
|
|
7
|
-
import { queries } from 'CLIENT_IMPORT';
|
|
8
8
|
|
|
9
9
|
import 'graphiql/graphiql.min.css';
|
|
10
10
|
|
|
@@ -100,7 +100,7 @@ const Playground = () => {
|
|
|
100
100
|
false
|
|
101
101
|
? 'bg-gray-100 text-gray-900'
|
|
102
102
|
: 'text-gray-600 hover:bg-gray-50 hover:text-gray-900',
|
|
103
|
-
'flex items-center rounded
|
|
103
|
+
'flex items-center rounded px-3 py-2 text-sm font-medium w-full text-left'
|
|
104
104
|
)}
|
|
105
105
|
onClick={async () => {
|
|
106
106
|
if (typeof value === 'function') {
|
|
@@ -134,7 +134,7 @@ const Playground = () => {
|
|
|
134
134
|
<GraphiQL
|
|
135
135
|
fetcher={async (params, options) => {
|
|
136
136
|
const fetcher = createGraphiQLFetcher({
|
|
137
|
-
url: __API_URL__,
|
|
137
|
+
url: cms.api.tina.contentApiUrl || __API_URL__,
|
|
138
138
|
headers: { Authorization: `Bearer ${getToken()}` },
|
|
139
139
|
});
|
|
140
140
|
return fetcher(params, options);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { XCircleIcon } from '@heroicons/react/solid';
|
|
8
1
|
import {
|
|
9
2
|
Popover,
|
|
10
3
|
PopoverButton,
|
|
11
4
|
PopoverPanel,
|
|
12
5
|
Transition,
|
|
13
6
|
} from '@headlessui/react';
|
|
7
|
+
import { XCircleIcon } from '@heroicons/react/solid';
|
|
8
|
+
/**
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
*/
|
|
13
|
+
import React from 'react';
|
|
14
14
|
import { Fragment } from 'react';
|
|
15
15
|
// import { InvalidMarkdownElement } from '@tinacms/mdx/src/parse/plate'
|
|
16
16
|
export type EmptyTextElement = { type: 'text'; text: '' };
|
|
@@ -93,7 +93,7 @@ export function ErrorMessage({ error }: { error: InvalidMarkdownElement }) {
|
|
|
93
93
|
>
|
|
94
94
|
<PopoverPanel className='absolute top-8 w-[300px] -right-3 z-10 mt-3 px-4 sm:px-0'>
|
|
95
95
|
<div className='overflow-hidden rounded-lg shadow-lg ring-1 ring-black ring-opacity-5'>
|
|
96
|
-
<div className='rounded
|
|
96
|
+
<div className='rounded bg-red-50 p-4 overflow-scroll'>
|
|
97
97
|
<div className='flex'>
|
|
98
98
|
<div className='flex-shrink-0'>
|
|
99
99
|
<XCircleIcon
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
1
|
import React from 'react';
|
|
8
2
|
import MonacoEditor, { useMonaco, loader } from '@monaco-editor/react';
|
|
9
3
|
/**
|
|
@@ -13,14 +7,14 @@ import MonacoEditor, { useMonaco, loader } from '@monaco-editor/react';
|
|
|
13
7
|
* (when we're working in the monorepo, or working with a tagged npm version)
|
|
14
8
|
*/
|
|
15
9
|
import { parseMDX, stringifyMDX } from '@tinacms/mdx';
|
|
16
|
-
import { useDebounce } from './use-debounce';
|
|
17
10
|
import type * as monaco from 'monaco-editor';
|
|
11
|
+
import { RichTextType } from 'tinacms';
|
|
18
12
|
import {
|
|
19
|
-
buildError,
|
|
20
13
|
ErrorMessage,
|
|
21
14
|
InvalidMarkdownElement,
|
|
15
|
+
buildError,
|
|
22
16
|
} from './error-message';
|
|
23
|
-
import {
|
|
17
|
+
import { useDebounce } from './use-debounce';
|
|
24
18
|
|
|
25
19
|
export const uuid = () => {
|
|
26
20
|
// @ts-ignore
|
|
@@ -34,11 +28,6 @@ export const uuid = () => {
|
|
|
34
28
|
|
|
35
29
|
type Monaco = typeof monaco;
|
|
36
30
|
|
|
37
|
-
// 0.33.0 has a bug https://github.com/microsoft/monaco-editor/issues/2947
|
|
38
|
-
loader.config({
|
|
39
|
-
paths: { vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.31.1/min/vs' },
|
|
40
|
-
});
|
|
41
|
-
|
|
42
31
|
/**
|
|
43
32
|
* Since monaco lazy-loads we may have a delay from when the block is inserted
|
|
44
33
|
* to when monaco has intantiated, keep trying to focus on it.
|
|
@@ -149,13 +138,17 @@ export const RawEditor = (props: RichTextType) => {
|
|
|
149
138
|
monacoEditor: monaco.editor.IStandaloneCodeEditor,
|
|
150
139
|
monaco: Monaco
|
|
151
140
|
) {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
141
|
+
if (monacoEditor) {
|
|
142
|
+
monacoEditorRef.current = monacoEditor;
|
|
143
|
+
monacoEditor.onDidContentSizeChange(() => {
|
|
144
|
+
// FIXME: if the window is too tall the performance degrades, come up with a nice
|
|
145
|
+
// balance between the two
|
|
146
|
+
setHeight(
|
|
147
|
+
Math.min(Math.max(100, monacoEditor.getContentHeight()), 1000)
|
|
148
|
+
);
|
|
149
|
+
monacoEditor.layout();
|
|
150
|
+
});
|
|
151
|
+
}
|
|
159
152
|
}
|
|
160
153
|
|
|
161
154
|
return (
|
|
@@ -168,6 +161,9 @@ export const RawEditor = (props: RichTextType) => {
|
|
|
168
161
|
</div>
|
|
169
162
|
<div style={{ height: `${height}px` }}>
|
|
170
163
|
<MonacoEditor
|
|
164
|
+
beforeMount={() => {}}
|
|
165
|
+
height='100%'
|
|
166
|
+
width='100%'
|
|
171
167
|
path={id}
|
|
172
168
|
onMount={handleEditorDidMount}
|
|
173
169
|
// Setting a custom theme is kind of buggy because it doesn't get defined until monaco has mounted.
|
|
@@ -219,10 +215,8 @@ const Button = (props) => {
|
|
|
219
215
|
return (
|
|
220
216
|
<button
|
|
221
217
|
className={`${
|
|
222
|
-
props.align === 'left'
|
|
223
|
-
|
|
224
|
-
: 'rounded-r-md border-l-0'
|
|
225
|
-
} flex justify-center w-full shadow rounded-md bg-white cursor-pointer relative inline-flex items-center px-2 py-2 border border-gray-200 hover:text-white text-sm font-medium transition-all ease-out duration-150 hover:bg-blue-500 focus:z-10 focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500`}
|
|
218
|
+
props.align === 'left' ? 'rounded-l border-r-0' : 'rounded-r border-l-0'
|
|
219
|
+
} flex justify-center w-full shadow rounded bg-white cursor-pointer relative inline-flex items-center px-2 py-2 border border-gray-200 hover:text-white text-sm font-medium transition-all ease-out duration-150 hover:bg-blue-500 focus:z-10 focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500`}
|
|
226
220
|
type='button'
|
|
227
221
|
onClick={props.onClick}
|
|
228
222
|
>
|