tinacms 0.0.0-d9672bc-20250218033222 → 0.0.0-db8aa8e-20250228034006
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/api.d.ts +1 -0
- package/dist/index.js +1381 -168
- package/dist/index.mjs +1383 -170
- package/dist/react.d.ts +1 -0
- package/dist/react.js +10 -1
- package/dist/react.mjs +10 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/indent-list-toolbar-button.d.ts +17 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mark-toolbar-button.d.ts +4 -18
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/components.d.ts +6 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-overrides.d.ts +1 -1
- package/package.json +36 -34
package/dist/react.d.ts
CHANGED
package/dist/react.js
CHANGED
|
@@ -100,7 +100,16 @@
|
|
|
100
100
|
}
|
|
101
101
|
}, [quickEditEnabled, isInTinaIframe]);
|
|
102
102
|
React.useEffect(() => {
|
|
103
|
-
|
|
103
|
+
if (props == null ? void 0 : props.experimental___selectFormByFormId) {
|
|
104
|
+
parent.postMessage({
|
|
105
|
+
type: "user-select-form",
|
|
106
|
+
formId: props.experimental___selectFormByFormId()
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}, [id]);
|
|
110
|
+
React.useEffect(() => {
|
|
111
|
+
const { experimental___selectFormByFormId, ...rest } = props;
|
|
112
|
+
parent.postMessage({ type: "open", ...rest, id }, window.location.origin);
|
|
104
113
|
window.addEventListener("message", (event) => {
|
|
105
114
|
if (event.data.type === "quickEditEnabled") {
|
|
106
115
|
setQuickEditEnabled(event.data.value);
|
package/dist/react.mjs
CHANGED
|
@@ -97,7 +97,16 @@ function useTina(props) {
|
|
|
97
97
|
}
|
|
98
98
|
}, [quickEditEnabled, isInTinaIframe]);
|
|
99
99
|
React.useEffect(() => {
|
|
100
|
-
|
|
100
|
+
if (props == null ? void 0 : props.experimental___selectFormByFormId) {
|
|
101
|
+
parent.postMessage({
|
|
102
|
+
type: "user-select-form",
|
|
103
|
+
formId: props.experimental___selectFormByFormId()
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}, [id]);
|
|
107
|
+
React.useEffect(() => {
|
|
108
|
+
const { experimental___selectFormByFormId, ...rest } = props;
|
|
109
|
+
parent.postMessage({ type: "open", ...rest, id }, window.location.origin);
|
|
101
110
|
window.addEventListener("message", (event) => {
|
|
102
111
|
if (event.data.type === "quickEditEnabled") {
|
|
103
112
|
setQuickEditEnabled(event.data.value);
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const IndentListToolbarButton: React.ForwardRefExoticComponent<{
|
|
4
|
-
nodeType?: typeof ELEMENT_UL | typeof ELEMENT_OL;
|
|
5
|
-
} & Omit<Omit<{
|
|
2
|
+
export declare const UnorderedListToolbarButton: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
6
3
|
tooltip?: React.ReactNode;
|
|
7
4
|
tooltipContentProps?: Omit<React.ComponentPropsWithoutRef<React.ForwardRefExoticComponent<import("@radix-ui/react-tooltip").TooltipContentProps & React.RefAttributes<HTMLDivElement>>>, "children">;
|
|
8
5
|
tooltipProps?: Omit<React.ComponentPropsWithoutRef<React.FC<import("@radix-ui/react-tooltip").TooltipProps>>, "children">;
|
|
@@ -16,4 +13,19 @@ export declare const IndentListToolbarButton: React.ForwardRefExoticComponent<{
|
|
|
16
13
|
} & import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>, "ref">, "value" | "asChild"> & import("class-variance-authority").VariantProps<(props?: {
|
|
17
14
|
size?: "default" | "sm" | "lg";
|
|
18
15
|
variant?: "default" | "outline";
|
|
19
|
-
} & import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref">,
|
|
16
|
+
} & import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref">, never> & React.RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
export declare const OrderedListToolbarButton: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
18
|
+
tooltip?: React.ReactNode;
|
|
19
|
+
tooltipContentProps?: Omit<React.ComponentPropsWithoutRef<React.ForwardRefExoticComponent<import("@radix-ui/react-tooltip").TooltipContentProps & React.RefAttributes<HTMLDivElement>>>, "children">;
|
|
20
|
+
tooltipProps?: Omit<React.ComponentPropsWithoutRef<React.FC<import("@radix-ui/react-tooltip").TooltipProps>>, "children">;
|
|
21
|
+
} & Omit<{
|
|
22
|
+
isDropdown?: boolean;
|
|
23
|
+
pressed?: boolean;
|
|
24
|
+
showArrow?: boolean;
|
|
25
|
+
} & Omit<Omit<Omit<import("@radix-ui/react-toolbar").ToolbarToggleItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: {
|
|
26
|
+
size?: "default" | "sm" | "lg";
|
|
27
|
+
variant?: "default" | "outline";
|
|
28
|
+
} & import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>, "ref">, "value" | "asChild"> & import("class-variance-authority").VariantProps<(props?: {
|
|
29
|
+
size?: "default" | "sm" | "lg";
|
|
30
|
+
variant?: "default" | "outline";
|
|
31
|
+
} & import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref">, never> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
tooltip?: React.ReactNode;
|
|
7
|
-
tooltipContentProps?: Omit<React.ComponentPropsWithoutRef<React.ForwardRefExoticComponent<import("@radix-ui/react-tooltip").TooltipContentProps & React.RefAttributes<HTMLDivElement>>>, "children">;
|
|
8
|
-
tooltipProps?: Omit<React.ComponentPropsWithoutRef<React.FC<import("@radix-ui/react-tooltip").TooltipProps>>, "children">;
|
|
9
|
-
} & Omit<{
|
|
10
|
-
isDropdown?: boolean;
|
|
11
|
-
pressed?: boolean;
|
|
12
|
-
showArrow?: boolean;
|
|
13
|
-
} & Omit<Omit<Omit<import("@radix-ui/react-toolbar").ToolbarToggleItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: {
|
|
14
|
-
size?: "default" | "sm" | "lg";
|
|
15
|
-
variant?: "default" | "outline";
|
|
16
|
-
} & import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>, "ref">, "value" | "asChild"> & import("class-variance-authority").VariantProps<(props?: {
|
|
17
|
-
size?: "default" | "sm" | "lg";
|
|
18
|
-
variant?: "default" | "outline";
|
|
19
|
-
} & import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref">, "clear" | "nodeType"> & React.RefAttributes<HTMLButtonElement>>;
|
|
2
|
+
export declare const BoldToolbarButton: () => React.JSX.Element;
|
|
3
|
+
export declare const StrikethroughToolbarButton: () => React.JSX.Element;
|
|
4
|
+
export declare const ItalicToolbarButton: () => React.JSX.Element;
|
|
5
|
+
export declare const CodeToolbarButton: () => React.JSX.Element;
|
|
@@ -189,17 +189,12 @@ export declare const Components: () => {
|
|
|
189
189
|
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
|
|
190
190
|
ref?: React.Ref<any>;
|
|
191
191
|
} & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<any>>;
|
|
192
|
-
strikethrough:
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
leaf:
|
|
196
|
-
text:
|
|
197
|
-
}
|
|
198
|
-
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
199
|
-
asChild?: boolean | undefined;
|
|
200
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
|
|
201
|
-
ref?: React.Ref<any>;
|
|
202
|
-
} & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<any>>;
|
|
192
|
+
strikethrough: ({ editor, leaf, text, ...props }: {
|
|
193
|
+
[x: string]: any;
|
|
194
|
+
editor: any;
|
|
195
|
+
leaf: any;
|
|
196
|
+
text: any;
|
|
197
|
+
}) => React.JSX.Element;
|
|
203
198
|
italic: React.ForwardRefExoticComponent<Omit<{
|
|
204
199
|
leafToAttributes?: (leaf: import("@udecode/plate-common").TText) => any;
|
|
205
200
|
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & Omit<import("slate-react").RenderLeafProps, "text" | "leaf"> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ToolbarOverrideType = 'heading' | 'link' | 'image' | 'quote' | 'ul' | 'ol' | 'code' | 'codeBlock' | 'bold' | 'italic' | 'mermaid' | 'raw' | 'embed' | 'table';
|
|
1
|
+
export type ToolbarOverrideType = 'heading' | 'link' | 'image' | 'quote' | 'ul' | 'ol' | 'code' | 'codeBlock' | 'bold' | 'strikethrough' | 'italic' | 'mermaid' | 'raw' | 'embed' | 'table';
|
|
2
2
|
export declare const STANDARD_ICON_WIDTH = 32;
|
|
3
3
|
export declare const HEADING_ICON_WITH_TEXT = 127;
|
|
4
4
|
export declare const HEADING_ICON_ONLY = 58;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-db8aa8e-20250228034006",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -60,21 +60,21 @@
|
|
|
60
60
|
"typings": "dist/index.d.ts",
|
|
61
61
|
"license": "Apache-2.0",
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@ariakit/react": "^0.4.
|
|
64
|
-
"@floating-ui/dom": "^1.6.
|
|
63
|
+
"@ariakit/react": "^0.4.15",
|
|
64
|
+
"@floating-ui/dom": "^1.6.13",
|
|
65
65
|
"@floating-ui/react-dom": "^2.1.2",
|
|
66
|
-
"@graphql-inspector/core": "^6.2.
|
|
66
|
+
"@graphql-inspector/core": "^6.2.1",
|
|
67
67
|
"@headlessui/react": "2.1.8",
|
|
68
68
|
"@heroicons/react": "^1.0.6",
|
|
69
69
|
"@monaco-editor/react": "4.4.5",
|
|
70
|
-
"@radix-ui/react-checkbox": "^1.1.
|
|
71
|
-
"@radix-ui/react-dialog": "^1.1.
|
|
72
|
-
"@radix-ui/react-dropdown-menu": "^2.1.
|
|
73
|
-
"@radix-ui/react-popover": "^1.1.
|
|
74
|
-
"@radix-ui/react-separator": "^1.1.
|
|
75
|
-
"@radix-ui/react-slot": "^1.1.
|
|
76
|
-
"@radix-ui/react-toolbar": "^1.1.
|
|
77
|
-
"@radix-ui/react-tooltip": "^1.1.
|
|
70
|
+
"@radix-ui/react-checkbox": "^1.1.4",
|
|
71
|
+
"@radix-ui/react-dialog": "^1.1.6",
|
|
72
|
+
"@radix-ui/react-dropdown-menu": "^2.1.6",
|
|
73
|
+
"@radix-ui/react-popover": "^1.1.6",
|
|
74
|
+
"@radix-ui/react-separator": "^1.1.2",
|
|
75
|
+
"@radix-ui/react-slot": "^1.1.2",
|
|
76
|
+
"@radix-ui/react-toolbar": "^1.1.2",
|
|
77
|
+
"@radix-ui/react-tooltip": "^1.1.8",
|
|
78
78
|
"@react-hook/window-size": "^3.1.1",
|
|
79
79
|
"@udecode/cn": "^33.0.0",
|
|
80
80
|
"@udecode/plate": "^36.5.9",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@udecode/plate-slash-command": "^36.0.0",
|
|
94
94
|
"@udecode/plate-table": "36.5.8",
|
|
95
95
|
"async-lock": "^1.4.1",
|
|
96
|
-
"class-variance-authority": "^0.7.
|
|
96
|
+
"class-variance-authority": "^0.7.1",
|
|
97
97
|
"clsx": "^2.1.1",
|
|
98
98
|
"cmdk": "^1.0.4",
|
|
99
99
|
"color-string": "^1.9.1",
|
|
@@ -111,45 +111,47 @@
|
|
|
111
111
|
"mermaid": "9.3.0",
|
|
112
112
|
"moment": "2.29.4",
|
|
113
113
|
"monaco-editor": "0.31.0",
|
|
114
|
-
"prism-react-renderer": "^2.4.
|
|
114
|
+
"prism-react-renderer": "^2.4.1",
|
|
115
115
|
"prop-types": "15.7.2",
|
|
116
116
|
"react-beautiful-dnd": "^13.1.1",
|
|
117
117
|
"react-color": "^2.19.3",
|
|
118
|
-
"react-datetime": "^3.
|
|
118
|
+
"react-datetime": "^3.3.1",
|
|
119
119
|
"react-dropzone": "14.2.3",
|
|
120
120
|
"react-final-form": "^6.5.9",
|
|
121
|
-
"react-icons": "^5.
|
|
121
|
+
"react-icons": "^5.4.0",
|
|
122
122
|
"react-router-dom": "6.3.0",
|
|
123
123
|
"react-use": "^17.6.0",
|
|
124
124
|
"slate": "^0.103.0",
|
|
125
125
|
"slate-history": "^0.100.0",
|
|
126
126
|
"slate-hyperscript": "^0.100.0",
|
|
127
127
|
"slate-react": "^0.107.1",
|
|
128
|
-
"tailwind-merge": "^2.
|
|
128
|
+
"tailwind-merge": "^2.6.0",
|
|
129
129
|
"webfontloader": "1.6.28",
|
|
130
|
-
"yup": "^1.
|
|
131
|
-
"zod": "^3.
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"@tinacms/
|
|
130
|
+
"yup": "^1.6.1",
|
|
131
|
+
"zod": "^3.24.2",
|
|
132
|
+
"react": "^18.3.1",
|
|
133
|
+
"react-dom": "^18.3.1",
|
|
134
|
+
"@tinacms/mdx": "0.0.0-db8aa8e-20250228034006",
|
|
135
|
+
"@tinacms/schema-tools": "0.0.0-db8aa8e-20250228034006",
|
|
136
|
+
"@tinacms/search": "0.0.0-db8aa8e-20250228034006"
|
|
135
137
|
},
|
|
136
138
|
"devDependencies": {
|
|
137
|
-
"@graphql-tools/utils": "^10.
|
|
139
|
+
"@graphql-tools/utils": "^10.8.1",
|
|
138
140
|
"@testing-library/dom": "^10.4.0",
|
|
139
141
|
"@testing-library/jest-dom": "^6.6.3",
|
|
140
|
-
"@testing-library/react": "^16.0
|
|
141
|
-
"@testing-library/user-event": "^14.
|
|
142
|
+
"@testing-library/react": "^16.2.0",
|
|
143
|
+
"@testing-library/user-event": "^14.6.1",
|
|
142
144
|
"@types/atob": "^2.1.4",
|
|
143
145
|
"@types/codemirror": "^5.60.15",
|
|
144
146
|
"@types/color-string": "^1.5.5",
|
|
145
147
|
"@types/lodash.debounce": "^4.0.9",
|
|
146
148
|
"@types/lodash.get": "^4.4.9",
|
|
147
|
-
"@types/node": "^22.
|
|
148
|
-
"@types/prop-types": "^15.7.
|
|
149
|
-
"@types/react": "^18.3.
|
|
149
|
+
"@types/node": "^22.13.1",
|
|
150
|
+
"@types/prop-types": "^15.7.14",
|
|
151
|
+
"@types/react": "^18.3.18",
|
|
150
152
|
"@types/react-beautiful-dnd": "^13.1.8",
|
|
151
|
-
"@types/react-color": "^3.0.
|
|
152
|
-
"@types/react-dom": "^18.3.
|
|
153
|
+
"@types/react-color": "^3.0.13",
|
|
154
|
+
"@types/react-dom": "^18.3.5",
|
|
153
155
|
"@types/yup": "^0.32.0",
|
|
154
156
|
"happy-dom": "15.10.2",
|
|
155
157
|
"identity-obj-proxy": "^3.0.0",
|
|
@@ -161,10 +163,10 @@
|
|
|
161
163
|
"react-is": "^18.3.1",
|
|
162
164
|
"tsc-alias": "^1.8.10",
|
|
163
165
|
"tslib": "^2.8.1",
|
|
164
|
-
"typescript": "^5.
|
|
165
|
-
"vite": "^5.4.
|
|
166
|
-
"vitest": "^2.1.
|
|
167
|
-
"@tinacms/scripts": "
|
|
166
|
+
"typescript": "^5.7.3",
|
|
167
|
+
"vite": "^5.4.14",
|
|
168
|
+
"vitest": "^2.1.9",
|
|
169
|
+
"@tinacms/scripts": "0.0.0-db8aa8e-20250228034006"
|
|
168
170
|
},
|
|
169
171
|
"peerDependencies": {
|
|
170
172
|
"react": ">=16.14.0",
|