tinacms 2.9.4 → 2.10.0
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/index.js +697 -416
- package/dist/index.mjs +697 -417
- package/dist/toolkit/fields/components/select.d.ts +1 -1
- package/dist/toolkit/fields/plugins/dnd-kit-wrapper.d.ts +49 -0
- package/dist/toolkit/fields/plugins/group-list-field-plugin.d.ts +2 -1
- package/dist/toolkit/fields/plugins/list-field-plugin.d.ts +2 -0
- package/dist/toolkit/react-sidebar/components/badge.d.ts +2 -1
- package/dist/utils/index.d.ts +1 -0
- package/package.json +9 -15
- package/dist/toolkit/components/ui/sonner.d.ts +0 -12
|
@@ -18,6 +18,6 @@ export interface SelectProps {
|
|
|
18
18
|
options?: (Option | string)[];
|
|
19
19
|
className?: string;
|
|
20
20
|
}
|
|
21
|
-
export declare const selectFieldClasses = "shadow appearance-none bg-white block pl-3 pr-8 py-2 truncate w-full text-base cursor-pointer border border-gray-200 focus:outline-none focus:shadow-outline focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded";
|
|
21
|
+
export declare const selectFieldClasses = "shadow appearance-none h-full bg-white block pl-3 pr-8 py-2 truncate w-full text-base cursor-pointer border border-gray-200 focus:outline-none focus:shadow-outline focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded";
|
|
22
22
|
export declare const Select: React.FC<SelectProps>;
|
|
23
23
|
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DropResult {
|
|
3
|
+
destination: {
|
|
4
|
+
index: number;
|
|
5
|
+
} | null;
|
|
6
|
+
source: {
|
|
7
|
+
index: number;
|
|
8
|
+
};
|
|
9
|
+
type: string;
|
|
10
|
+
}
|
|
11
|
+
export interface DragDropContextProps {
|
|
12
|
+
onDragEnd: (result: DropResult) => void;
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export interface DroppableProps {
|
|
16
|
+
droppableId: string;
|
|
17
|
+
type: string;
|
|
18
|
+
children: (provided: {
|
|
19
|
+
innerRef: React.RefObject<HTMLDivElement>;
|
|
20
|
+
placeholder: React.ReactNode;
|
|
21
|
+
}) => React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export interface DraggableProps {
|
|
24
|
+
draggableId: string;
|
|
25
|
+
index: number;
|
|
26
|
+
children: (provided: {
|
|
27
|
+
innerRef: React.RefObject<HTMLElement>;
|
|
28
|
+
draggableProps: {
|
|
29
|
+
style?: React.CSSProperties;
|
|
30
|
+
ref?: any;
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
dragHandleProps: {
|
|
34
|
+
style?: React.CSSProperties;
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
};
|
|
37
|
+
}, snapshot: {
|
|
38
|
+
isDragging: boolean;
|
|
39
|
+
}) => React.ReactNode;
|
|
40
|
+
}
|
|
41
|
+
export declare const DragDropContext: React.FC<DragDropContextProps>;
|
|
42
|
+
export declare const Droppable: React.FC<DroppableProps>;
|
|
43
|
+
export declare const Draggable: React.FC<DraggableProps>;
|
|
44
|
+
interface SortableProviderProps {
|
|
45
|
+
items: string[];
|
|
46
|
+
children: React.ReactNode;
|
|
47
|
+
}
|
|
48
|
+
export declare const SortableProvider: React.FC<SortableProviderProps>;
|
|
49
|
+
export {};
|
|
@@ -51,8 +51,9 @@ export declare const ItemDeleteButton: ({ onClick, disabled }: {
|
|
|
51
51
|
onClick: any;
|
|
52
52
|
disabled?: boolean;
|
|
53
53
|
}) => React.JSX.Element;
|
|
54
|
-
export declare const DragHandle: ({ isDragging }: {
|
|
54
|
+
export declare const DragHandle: ({ isDragging, dragHandleProps, }: {
|
|
55
55
|
isDragging: boolean;
|
|
56
|
+
dragHandleProps?: any;
|
|
56
57
|
}) => React.JSX.Element;
|
|
57
58
|
export declare const GroupListField: ({ tinaForm, form, field, input, meta, index }: GroupProps) => React.JSX.Element;
|
|
58
59
|
export declare const GroupListFieldPlugin: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare const Badge: ({ children, calloutStyle, className, ...props }: {
|
|
2
|
+
export declare const Badge: ({ children, calloutStyle, className, displayIcon, ...props }: {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
calloutStyle?: "warning" | "info" | "success" | "error";
|
|
5
|
+
displayIcon?: boolean;
|
|
5
6
|
} & React.HTMLProps<HTMLDivElement>) => React.JSX.Element;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -20,3 +20,4 @@ export interface CreateClientProps {
|
|
|
20
20
|
export declare const createClient: ({ clientId, isLocalClient, branch, tinaioConfig, schema, apiUrl, tinaGraphQLVersion, }: CreateClientProps) => Client;
|
|
21
21
|
export declare function assertShape<T>(value: unknown, yupSchema: (args: typeof yup) => yup.AnySchema, errorMessage?: string): asserts value is T;
|
|
22
22
|
export declare function safeAssertShape<T>(value: unknown, yupSchema: (args: typeof yup) => yup.AnySchema): boolean;
|
|
23
|
+
export declare const get: (obj: any, path: any, defaultValue?: any) => any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -67,6 +67,9 @@
|
|
|
67
67
|
"license": "Apache-2.0",
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@ariakit/react": "^0.4.15",
|
|
70
|
+
"@dnd-kit/core": "^6.1.0",
|
|
71
|
+
"@dnd-kit/sortable": "^8.0.0",
|
|
72
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
70
73
|
"@floating-ui/dom": "^1.6.13",
|
|
71
74
|
"@floating-ui/react-dom": "^2.1.2",
|
|
72
75
|
"@graphql-inspector/core": "^6.2.1",
|
|
@@ -113,39 +116,33 @@
|
|
|
113
116
|
"color-string": "^1.9.1",
|
|
114
117
|
"crypto-js": "^4.2.0",
|
|
115
118
|
"date-fns": "2.30.0",
|
|
119
|
+
"es-toolkit": "^1.42.0",
|
|
116
120
|
"final-form": "4.20.10",
|
|
117
121
|
"final-form-arrays": "^3.1.0",
|
|
118
122
|
"final-form-set-field-data": "^1.0.2",
|
|
119
123
|
"graphql": "15.8.0",
|
|
120
124
|
"graphql-tag": "^2.12.6",
|
|
121
125
|
"is-hotkey": "^0.2.0",
|
|
122
|
-
"lodash.get": "^4.4.2",
|
|
123
|
-
"lodash.set": "^4.3.2",
|
|
124
126
|
"lucide-react": "^0.424.0",
|
|
125
127
|
"mermaid": "9.3.0",
|
|
126
128
|
"moment": "2.29.4",
|
|
127
129
|
"monaco-editor": "0.31.0",
|
|
128
130
|
"prism-react-renderer": "^2.4.1",
|
|
129
131
|
"prop-types": "15.7.2",
|
|
130
|
-
"react-beautiful-dnd": "^13.1.1",
|
|
131
132
|
"react-color": "^2.19.3",
|
|
132
133
|
"react-datetime": "^3.3.1",
|
|
133
|
-
"react-dnd": "^16.0.1",
|
|
134
|
-
"react-dnd-html5-backend": "^16.0.1",
|
|
135
134
|
"react-dropzone": "14.2.3",
|
|
136
135
|
"react-final-form": "^6.5.9",
|
|
137
136
|
"react-icons": "^5.4.0",
|
|
138
137
|
"react-router-dom": "6.3.0",
|
|
139
138
|
"react-use": "^17.6.0",
|
|
140
|
-
"sonner": "^2.0.7",
|
|
141
139
|
"tailwind-merge": "^2.6.0",
|
|
142
140
|
"webfontloader": "1.6.28",
|
|
143
141
|
"yup": "^1.6.1",
|
|
144
142
|
"zod": "^3.24.2",
|
|
145
|
-
"
|
|
146
|
-
"@tinacms/schema-tools": "1.
|
|
147
|
-
"@tinacms/search": "1.1.
|
|
148
|
-
"@tinacms/mdx": "1.8.1"
|
|
143
|
+
"@tinacms/mdx": "1.8.2",
|
|
144
|
+
"@tinacms/schema-tools": "1.10.0",
|
|
145
|
+
"@tinacms/search": "1.1.2"
|
|
149
146
|
},
|
|
150
147
|
"devDependencies": {
|
|
151
148
|
"@graphql-tools/utils": "^10.8.1",
|
|
@@ -156,12 +153,9 @@
|
|
|
156
153
|
"@types/atob": "^2.1.4",
|
|
157
154
|
"@types/codemirror": "^5.60.15",
|
|
158
155
|
"@types/color-string": "^1.5.5",
|
|
159
|
-
"@types/lodash.debounce": "^4.0.9",
|
|
160
|
-
"@types/lodash.get": "^4.4.9",
|
|
161
156
|
"@types/node": "^22.13.1",
|
|
162
157
|
"@types/prop-types": "^15.7.14",
|
|
163
158
|
"@types/react": "^18.3.18",
|
|
164
|
-
"@types/react-beautiful-dnd": "^13.1.8",
|
|
165
159
|
"@types/react-color": "^3.0.13",
|
|
166
160
|
"@types/react-dom": "^18.3.5",
|
|
167
161
|
"@types/yup": "^0.32.0",
|
|
@@ -179,7 +173,7 @@
|
|
|
179
173
|
"typescript": "^5.7.3",
|
|
180
174
|
"vite": "^5.4.14",
|
|
181
175
|
"vitest": "^2.1.9",
|
|
182
|
-
"@tinacms/scripts": "1.4.
|
|
176
|
+
"@tinacms/scripts": "1.4.1"
|
|
183
177
|
},
|
|
184
178
|
"peerDependencies": {
|
|
185
179
|
"react": ">=16.14.0",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Toaster as Sonner } from 'sonner';
|
|
3
|
-
type ToasterProps = React.ComponentProps<typeof Sonner>;
|
|
4
|
-
declare const toast: {
|
|
5
|
-
success: (message: string | React.ReactNode, options?: any) => string | number;
|
|
6
|
-
error: (message: string | React.ReactNode, options?: any) => string | number;
|
|
7
|
-
warning: (message: string | React.ReactNode, options?: any) => string | number;
|
|
8
|
-
info: (message: string | React.ReactNode, options?: any) => string | number;
|
|
9
|
-
dismiss: (id?: number | string) => string | number;
|
|
10
|
-
};
|
|
11
|
-
declare const Toaster: ({ ...props }: ToasterProps) => React.JSX.Element;
|
|
12
|
-
export { toast, Toaster };
|