tinacms 3.11.0 → 3.12.1
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/dist/admin/components/AnnouncementsBanner.d.ts +13 -0
- package/dist/admin/components/GetDocument.d.ts +1 -1
- package/dist/admin/components/UnableToLoadModal.d.ts +4 -0
- package/dist/auth/AuthModal.d.ts +3 -1
- package/dist/auth/authenticate.d.ts +7 -9
- package/dist/auth/pkce.d.ts +3 -0
- package/dist/auth/useTinaAuthRedirect.d.ts +6 -4
- package/dist/client.js +25 -3
- package/dist/index.js +4208 -3611
- package/dist/internalClient/authProvider.d.ts +8 -6
- package/dist/internalClient/index.d.ts +9 -2
- package/dist/react.js +5 -10
- package/dist/rich-text/index.js +1 -1
- package/dist/rich-text/static.js +1 -1
- package/dist/toolkit/components/media/media-item.d.ts +1 -0
- package/dist/toolkit/components/media/modal.d.ts +6 -0
- package/dist/toolkit/components/media/utils.d.ts +22 -0
- package/dist/toolkit/components/resize-overlay.d.ts +10 -0
- package/dist/toolkit/components/tina-ui.d.ts +1 -1
- package/dist/toolkit/components/transition.d.ts +23 -0
- package/dist/toolkit/core/media-store.default.d.ts +23 -0
- package/dist/toolkit/core/media.d.ts +31 -4
- package/dist/toolkit/fields/plugins/blocks-field-plugin/block-selector-big.d.ts +2 -1
- package/dist/toolkit/fields/plugins/blocks-field-plugin/block-selector.d.ts +2 -1
- package/dist/toolkit/fields/plugins/blocks-field-plugin/index.d.ts +1 -1
- package/dist/toolkit/fields/plugins/field-props.d.ts +12 -1
- package/dist/toolkit/fields/plugins/group-list-field-plugin.d.ts +3 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/{monaco/error-message.d.ts → error-message.d.ts} +0 -15
- package/dist/toolkit/fields/plugins/mdx-field-plugin/index.d.ts +5 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/formatting.d.ts +1 -17
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/component.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/editor-plugins.d.ts +2 -519
- package/dist/toolkit/form-builder/branch-deleted-modal.d.ts +1 -1
- package/dist/toolkit/form-builder/create-branch-modal.d.ts +1 -1
- package/dist/toolkit/plugin-branch-switcher/branch-switcher-legacy.d.ts +1 -1
- package/dist/toolkit/plugin-branch-switcher/branch-switcher.d.ts +6 -2
- package/dist/toolkit/plugin-branch-switcher/plugin.d.ts +2 -2
- package/dist/toolkit/react-cloud-config/cloud-config-plugin.d.ts +2 -2
- package/dist/toolkit/react-sidebar/components/sidebar.d.ts +1 -0
- package/dist/unifiedClient/asyncLock.d.ts +35 -0
- package/dist/unifiedClient/index.d.ts +2 -1
- package/dist/utils/branch-name.d.ts +3 -0
- package/package.json +11 -18
- package/dist/auth/useGenerator.d.ts +0 -8
- package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/index.d.ts +0 -4
- package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/use-debounce.d.ts +0 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/autocomplete.d.ts +0 -14
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/dropdown.d.ts +0 -9
- package/dist/toolkit/plugin-branch-switcher/format-branch-name.d.ts +0 -8
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The MIT License (MIT)
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2016 Rogier Schouten <github@workingcode.ninja>
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Vendored subset of async-lock (https://github.com/rogierschouten/async-lock),
|
|
26
|
+
* trimmed to the API surface TinaCMS uses: promise-mode `acquire(key, fn)` on a
|
|
27
|
+
* single string key. Preserves the upstream semantics — per-key serialization,
|
|
28
|
+
* FIFO ordering, and a rejected `fn` rejects the caller without wedging the
|
|
29
|
+
* queue for that key. Lives in this package (rather than a shared util) so it
|
|
30
|
+
* inlines into `dist/client.js` without dragging in a bundler-hostile CJS dep.
|
|
31
|
+
*/
|
|
32
|
+
export declare class AsyncLock {
|
|
33
|
+
private queues;
|
|
34
|
+
acquire<T>(key: string, fn: () => Promise<T>): Promise<T>;
|
|
35
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Config } from '@tinacms/schema-tools';
|
|
2
|
-
import AsyncLock from 'async-lock';
|
|
3
2
|
import type { GraphQLError } from 'graphql';
|
|
4
3
|
import type { Cache } from '../cache/index';
|
|
4
|
+
import { AsyncLock } from './asyncLock';
|
|
5
|
+
export { AsyncLock } from './asyncLock';
|
|
5
6
|
export declare const TINA_HOST = "content.tinajs.io";
|
|
6
7
|
export interface TinaClientArgs<GenQueries = Record<string, unknown>> {
|
|
7
8
|
url: string;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "tinacms",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"typings": "dist/index.d.ts",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.12.1",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
8
|
"exports": {
|
|
@@ -42,9 +42,6 @@
|
|
|
42
42
|
"@floating-ui/dom": "^1.6.13",
|
|
43
43
|
"@floating-ui/react-dom": "^2.1.2",
|
|
44
44
|
"@graphql-inspector/core": "^6.2.1",
|
|
45
|
-
"@headlessui/react": "2.1.8",
|
|
46
|
-
"@heroicons/react": "^1.0.6",
|
|
47
|
-
"@monaco-editor/react": "4.7.0-rc.0",
|
|
48
45
|
"@radix-ui/react-dialog": "^1.1.18",
|
|
49
46
|
"@radix-ui/react-dropdown-menu": "^2.1.19",
|
|
50
47
|
"@radix-ui/react-popover": "^1.1.18",
|
|
@@ -79,23 +76,20 @@
|
|
|
79
76
|
"@udecode/plate-slash-command": "^48.0.0",
|
|
80
77
|
"@udecode/plate-table": "^48.0.0",
|
|
81
78
|
"@udecode/plate-trailing-block": "^48.0.0",
|
|
82
|
-
"async-lock": "^1.4.1",
|
|
83
79
|
"class-variance-authority": "^0.7.1",
|
|
84
80
|
"clsx": "^2.1.1",
|
|
85
81
|
"cmdk": "^1.0.4",
|
|
86
82
|
"color-string": "^1.9.1",
|
|
87
|
-
"crypto-js": "^4.2.0",
|
|
88
83
|
"date-fns": "4.1.0",
|
|
89
84
|
"es-toolkit": "^1.42.0",
|
|
90
|
-
"final-form": "
|
|
91
|
-
"final-form-arrays": "^
|
|
85
|
+
"final-form": "^5.0.1",
|
|
86
|
+
"final-form-arrays": "^4.0.1",
|
|
92
87
|
"final-form-set-field-data": "^1.0.2",
|
|
93
88
|
"graphql": "15.8.0",
|
|
94
89
|
"graphql-tag": "^2.12.6",
|
|
95
90
|
"is-hotkey": "^0.2.0",
|
|
96
91
|
"lucide-react": "^0.424.0",
|
|
97
|
-
"mermaid": "^11.
|
|
98
|
-
"monaco-editor": "0.31.0",
|
|
92
|
+
"mermaid": "^11.16.1",
|
|
99
93
|
"posthog-js": "^1.347.1",
|
|
100
94
|
"prism-react-renderer": "^2.4.1",
|
|
101
95
|
"prop-types": "15.7.2",
|
|
@@ -104,18 +98,17 @@
|
|
|
104
98
|
"react-dnd": "^16.0.1",
|
|
105
99
|
"react-dnd-html5-backend": "^16.0.1",
|
|
106
100
|
"react-dropzone": "14.2.3",
|
|
107
|
-
"react-final-form": "^
|
|
108
|
-
"react-icons": "^5.4.0",
|
|
101
|
+
"react-final-form": "^7.0.1",
|
|
109
102
|
"react-router-dom": "^6.30.3",
|
|
110
103
|
"react-use": "^17.6.0",
|
|
111
104
|
"tailwind-merge": "^2.6.0",
|
|
112
105
|
"webfontloader": "1.6.28",
|
|
113
106
|
"yup": "^1.6.1",
|
|
114
107
|
"zod": "^3.24.2",
|
|
115
|
-
"@tinacms/
|
|
116
|
-
"@tinacms/
|
|
117
|
-
"@tinacms/
|
|
118
|
-
"@tinacms/
|
|
108
|
+
"@tinacms/search": "^1.2.24",
|
|
109
|
+
"@tinacms/schema-tools": "^2.9.0",
|
|
110
|
+
"@tinacms/mdx": "^2.2.1",
|
|
111
|
+
"@tinacms/bridge": "^0.3.1"
|
|
119
112
|
},
|
|
120
113
|
"devDependencies": {
|
|
121
114
|
"@graphql-tools/utils": "^10.8.1",
|
|
@@ -134,7 +127,7 @@
|
|
|
134
127
|
"identity-obj-proxy": "^3.0.0",
|
|
135
128
|
"jest-file-snapshot": "^0.7.0",
|
|
136
129
|
"lowlight": "^3.3.0",
|
|
137
|
-
"next": "
|
|
130
|
+
"next": "15.5.21",
|
|
138
131
|
"react": "^18.3.1",
|
|
139
132
|
"react-dom": "^18.3.1",
|
|
140
133
|
"react-is": "^18.3.1",
|
|
@@ -143,7 +136,7 @@
|
|
|
143
136
|
"typescript": "^5.7.3",
|
|
144
137
|
"vite": "^5.4.14",
|
|
145
138
|
"vitest": "^2.1.9",
|
|
146
|
-
"@tinacms/scripts": "1.6.
|
|
139
|
+
"@tinacms/scripts": "1.6.4"
|
|
147
140
|
},
|
|
148
141
|
"peerDependencies": {
|
|
149
142
|
"react": ">=16.14.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDebounce(value: any, delay: any): any;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface AutocompleteItem {
|
|
3
|
-
key: string;
|
|
4
|
-
label: string;
|
|
5
|
-
render: (item: Omit<AutocompleteItem, 'render'>) => string | JSX.Element;
|
|
6
|
-
}
|
|
7
|
-
interface AutocompleteProps {
|
|
8
|
-
value: Omit<AutocompleteItem, 'render'>;
|
|
9
|
-
defaultQuery?: string;
|
|
10
|
-
onChange: (item: AutocompleteItem) => void;
|
|
11
|
-
items: AutocompleteItem[];
|
|
12
|
-
}
|
|
13
|
-
export declare const Autocomplete: React.FC<AutocompleteProps>;
|
|
14
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare function Dropdown({ label, items, }: {
|
|
3
|
-
label: string | JSX.Element;
|
|
4
|
-
items: {
|
|
5
|
-
key: string;
|
|
6
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
7
|
-
render: string | JSX.Element;
|
|
8
|
-
}[];
|
|
9
|
-
}): React.JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Normalizes user-supplied strings into git-ref-safe branch segments.
|
|
3
|
-
* Kept in its own file (no React or workspace-internal imports) so
|
|
4
|
-
* non-React callers like `core/media-store.default.ts` can import it
|
|
5
|
-
* without dragging in the rest of `plugin-branch-switcher` and creating
|
|
6
|
-
* a cycle through `@toolkit/core`.
|
|
7
|
-
*/
|
|
8
|
-
export declare function formatBranchName(str: string): string;
|