@tinacms/app 0.0.0-e623534-20250401065516 → 0.0.0-e999254-20250610011143
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 +43 -4
- package/package.json +5 -3
- package/src/Playground.tsx +3 -3
- package/src/fields/rich-text/monaco/index.tsx +12 -18
- package/src/index.css +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,52 @@
|
|
|
1
1
|
# @tinacms/app
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-e999254-20250610011143
|
|
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
|
+
- 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)]:
|
|
12
|
+
- @tinacms/mdx@0.0.0-e999254-20250610011143
|
|
13
|
+
- tinacms@0.0.0-e999254-20250610011143
|
|
14
|
+
|
|
15
|
+
## 2.2.8
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 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)]:
|
|
20
|
+
- tinacms@2.7.8
|
|
21
|
+
- @tinacms/mdx@1.6.3
|
|
22
|
+
|
|
23
|
+
## 2.2.7
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- [#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
|
|
28
|
+
|
|
29
|
+
- Updated dependencies [[`1965236`](https://github.com/tinacms/tinacms/commit/19652363784e48b065ec1924a9cd9611c8e79cae)]:
|
|
30
|
+
- tinacms@2.7.7
|
|
31
|
+
|
|
32
|
+
## 2.2.6
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- Updated dependencies [[`65cee5d`](https://github.com/tinacms/tinacms/commit/65cee5d6ae16c7320a4a14f0d9a82dc5f9103e34)]:
|
|
37
|
+
- tinacms@2.7.6
|
|
38
|
+
|
|
39
|
+
## 2.2.5
|
|
4
40
|
|
|
5
41
|
### Patch Changes
|
|
6
42
|
|
|
7
|
-
- [#
|
|
43
|
+
- [#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
|
|
8
44
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
45
|
+
- [#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.
|
|
46
|
+
- Ensure GraphQL playground correctly updates when switching branches.
|
|
47
|
+
- 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)]:
|
|
48
|
+
- tinacms@2.7.5
|
|
49
|
+
- @tinacms/mdx@1.6.2
|
|
11
50
|
|
|
12
51
|
## 2.2.3
|
|
13
52
|
|
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-e999254-20250610011143",
|
|
4
4
|
"main": "src/main.tsx",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"devDependencies": {
|
|
@@ -21,10 +21,12 @@
|
|
|
21
21
|
"graphiql": "3.0.0-alpha.1",
|
|
22
22
|
"graphql": "15.8.0",
|
|
23
23
|
"monaco-editor": "0.31.0",
|
|
24
|
+
"react": "^18.3.1",
|
|
25
|
+
"react-dom": "^18.3.1",
|
|
24
26
|
"react-router-dom": "6.3.0",
|
|
25
27
|
"typescript": "^5.7.3",
|
|
26
28
|
"zod": "^3.24.2",
|
|
27
|
-
"@tinacms/mdx": "
|
|
28
|
-
"tinacms": "0.0.0-
|
|
29
|
+
"@tinacms/mdx": "0.0.0-e999254-20250610011143",
|
|
30
|
+
"tinacms": "0.0.0-e999254-20250610011143"
|
|
29
31
|
}
|
|
30
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
|
|
|
@@ -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,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
|
/**
|
|
@@ -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,7 @@ export const RawEditor = (props: RichTextType) => {
|
|
|
168
161
|
</div>
|
|
169
162
|
<div style={{ height: `${height}px` }}>
|
|
170
163
|
<MonacoEditor
|
|
164
|
+
beforeMount={() => {}}
|
|
171
165
|
path={id}
|
|
172
166
|
onMount={handleEditorDidMount}
|
|
173
167
|
// Setting a custom theme is kind of buggy because it doesn't get defined until monaco has mounted.
|