tinacms 2.9.5 → 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.
@@ -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: {
@@ -7,6 +7,8 @@ interface ListFieldDefinititon extends Field {
7
7
  field: {
8
8
  component: 'text' | 'textarea' | 'number' | 'select' | 'image';
9
9
  };
10
+ min?: number;
11
+ max?: number;
10
12
  type?: string;
11
13
  list?: boolean;
12
14
  parentTypename?: string;
@@ -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;
@@ -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.9.5",
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,25 +116,21 @@
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",
@@ -141,9 +140,9 @@
141
140
  "webfontloader": "1.6.28",
142
141
  "yup": "^1.6.1",
143
142
  "zod": "^3.24.2",
144
- "@tinacms/mdx": "1.8.1",
145
- "@tinacms/search": "1.1.1",
146
- "@tinacms/schema-tools": "1.9.1"
143
+ "@tinacms/mdx": "1.8.2",
144
+ "@tinacms/schema-tools": "1.10.0",
145
+ "@tinacms/search": "1.1.2"
147
146
  },
148
147
  "devDependencies": {
149
148
  "@graphql-tools/utils": "^10.8.1",
@@ -154,20 +153,17 @@
154
153
  "@types/atob": "^2.1.4",
155
154
  "@types/codemirror": "^5.60.15",
156
155
  "@types/color-string": "^1.5.5",
157
- "@types/lodash.debounce": "^4.0.9",
158
- "@types/lodash.get": "^4.4.9",
159
156
  "@types/node": "^22.13.1",
160
157
  "@types/prop-types": "^15.7.14",
161
158
  "@types/react": "^18.3.18",
162
- "@types/react-beautiful-dnd": "^13.1.8",
163
159
  "@types/react-color": "^3.0.13",
164
160
  "@types/react-dom": "^18.3.5",
165
161
  "@types/yup": "^0.32.0",
166
- "lowlight": "^3.3.0",
167
162
  "happy-dom": "15.10.2",
168
163
  "identity-obj-proxy": "^3.0.0",
169
164
  "isomorphic-fetch": "^3.0.0",
170
165
  "jest-file-snapshot": "^0.7.0",
166
+ "lowlight": "^3.3.0",
171
167
  "next": "14.2.10",
172
168
  "react": "^18.3.1",
173
169
  "react-dom": "^18.3.1",
@@ -177,7 +173,7 @@
177
173
  "typescript": "^5.7.3",
178
174
  "vite": "^5.4.14",
179
175
  "vitest": "^2.1.9",
180
- "@tinacms/scripts": "1.4.0"
176
+ "@tinacms/scripts": "1.4.1"
181
177
  },
182
178
  "peerDependencies": {
183
179
  "react": ">=16.14.0",