tinacms 0.0.0-b1fe6d2-20241008011354 → 0.0.0-c5dad82-20241009225242
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 +651 -223
- package/dist/index.mjs +661 -230
- package/dist/rich-text/index.js +42 -11
- package/dist/rich-text/index.mjs +42 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/resizable.d.ts +39 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-cell-element.d.ts +27 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-dropdown-menu.d.ts +3 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-element.d.ts +14 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-row-element.d.ts +13 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/common.d.ts +1 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/components.d.ts +48 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-overrides.d.ts +1 -1
- package/package.json +7 -6
package/dist/rich-text/index.js
CHANGED
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
return MNode;
|
|
73
73
|
};
|
|
74
74
|
const Node = ({ components, child }) => {
|
|
75
|
-
var _a, _b, _c, _d, _e, _f;
|
|
75
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
76
76
|
const { children, ...props } = child;
|
|
77
77
|
switch (child.type) {
|
|
78
78
|
case "h1":
|
|
@@ -150,33 +150,33 @@
|
|
|
150
150
|
} else {
|
|
151
151
|
if (child.name === "table") {
|
|
152
152
|
const firstRowHeader = (_a = child.props) == null ? void 0 : _a.firstRowHeader;
|
|
153
|
-
const
|
|
153
|
+
const rows2 = (firstRowHeader ? (_b = child.props) == null ? void 0 : _b.tableRows.filter((_, i) => i !== 0) : (_c = child.props) == null ? void 0 : _c.tableRows) || [];
|
|
154
154
|
const header = (_e = (_d = child.props) == null ? void 0 : _d.tableRows) == null ? void 0 : _e.at(0);
|
|
155
|
-
const
|
|
156
|
-
const
|
|
155
|
+
const TableComponent2 = components["table"] || ((props2) => /* @__PURE__ */ React.createElement("table", { ...props2 }));
|
|
156
|
+
const TrComponent2 = components["tr"] || ((props2) => /* @__PURE__ */ React.createElement("tr", { ...props2 }));
|
|
157
157
|
const ThComponent = components["th"] || ((props2) => /* @__PURE__ */ React.createElement("th", { style: { textAlign: (props2 == null ? void 0 : props2.align) || "auto" }, ...props2 }));
|
|
158
|
-
const
|
|
159
|
-
const
|
|
160
|
-
return /* @__PURE__ */ React.createElement(
|
|
158
|
+
const TdComponent2 = components["td"] || ((props2) => /* @__PURE__ */ React.createElement("td", { style: { textAlign: (props2 == null ? void 0 : props2.align) || "auto" }, ...props2 }));
|
|
159
|
+
const align2 = ((_f = child.props) == null ? void 0 : _f.align) || [];
|
|
160
|
+
return /* @__PURE__ */ React.createElement(TableComponent2, null, firstRowHeader && /* @__PURE__ */ React.createElement("thead", null, /* @__PURE__ */ React.createElement(TrComponent2, null, header.tableCells.map((c, i) => {
|
|
161
161
|
return /* @__PURE__ */ React.createElement(
|
|
162
162
|
TinaMarkdown,
|
|
163
163
|
{
|
|
164
164
|
key: i,
|
|
165
165
|
components: {
|
|
166
|
-
p: (props2) => /* @__PURE__ */ React.createElement(ThComponent, { align:
|
|
166
|
+
p: (props2) => /* @__PURE__ */ React.createElement(ThComponent, { align: align2[i], ...props2 })
|
|
167
167
|
},
|
|
168
168
|
content: c.value
|
|
169
169
|
}
|
|
170
170
|
);
|
|
171
|
-
}))), /* @__PURE__ */ React.createElement("tbody", null,
|
|
171
|
+
}))), /* @__PURE__ */ React.createElement("tbody", null, rows2.map((row, i) => {
|
|
172
172
|
var _a2;
|
|
173
|
-
return /* @__PURE__ */ React.createElement(
|
|
173
|
+
return /* @__PURE__ */ React.createElement(TrComponent2, { key: i }, (_a2 = row == null ? void 0 : row.tableCells) == null ? void 0 : _a2.map((c, i2) => {
|
|
174
174
|
return /* @__PURE__ */ React.createElement(
|
|
175
175
|
TinaMarkdown,
|
|
176
176
|
{
|
|
177
177
|
key: i2,
|
|
178
178
|
components: {
|
|
179
|
-
p: (props2) => /* @__PURE__ */ React.createElement(
|
|
179
|
+
p: (props2) => /* @__PURE__ */ React.createElement(TdComponent2, { align: align2[i2], ...props2 })
|
|
180
180
|
},
|
|
181
181
|
content: c.value
|
|
182
182
|
}
|
|
@@ -191,6 +191,37 @@
|
|
|
191
191
|
return /* @__PURE__ */ React.createElement("span", null, `No component provided for ${child.name}`);
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
+
case "table":
|
|
195
|
+
const rows = child.children || [];
|
|
196
|
+
const TableComponent = components["table"] || ((props2) => /* @__PURE__ */ React.createElement("table", { style: { border: "1px solid #EDECF3" }, ...props2 }));
|
|
197
|
+
const TrComponent = components["tr"] || ((props2) => /* @__PURE__ */ React.createElement("tr", { ...props2 }));
|
|
198
|
+
const TdComponent = components["td"] || ((props2) => /* @__PURE__ */ React.createElement(
|
|
199
|
+
"td",
|
|
200
|
+
{
|
|
201
|
+
style: {
|
|
202
|
+
textAlign: (props2 == null ? void 0 : props2.align) || "auto",
|
|
203
|
+
border: "1px solid #EDECF3",
|
|
204
|
+
padding: "0.25rem"
|
|
205
|
+
},
|
|
206
|
+
...props2
|
|
207
|
+
}
|
|
208
|
+
));
|
|
209
|
+
const align = ((_g = child.props) == null ? void 0 : _g.align) || [];
|
|
210
|
+
return /* @__PURE__ */ React.createElement(TableComponent, null, /* @__PURE__ */ React.createElement("tbody", null, rows.map((row, i) => {
|
|
211
|
+
var _a2;
|
|
212
|
+
return /* @__PURE__ */ React.createElement(TrComponent, { key: i }, (_a2 = row.children) == null ? void 0 : _a2.map((cell, i2) => {
|
|
213
|
+
return /* @__PURE__ */ React.createElement(
|
|
214
|
+
TinaMarkdown,
|
|
215
|
+
{
|
|
216
|
+
key: i2,
|
|
217
|
+
components: {
|
|
218
|
+
p: (props2) => /* @__PURE__ */ React.createElement(TdComponent, { align: align[i2], ...props2 })
|
|
219
|
+
},
|
|
220
|
+
content: cell.children
|
|
221
|
+
}
|
|
222
|
+
);
|
|
223
|
+
}));
|
|
224
|
+
})));
|
|
194
225
|
case "maybe_mdx":
|
|
195
226
|
return null;
|
|
196
227
|
case "html":
|
package/dist/rich-text/index.mjs
CHANGED
|
@@ -69,7 +69,7 @@ const MemoNode = (props) => {
|
|
|
69
69
|
return MNode;
|
|
70
70
|
};
|
|
71
71
|
const Node = ({ components, child }) => {
|
|
72
|
-
var _a, _b, _c, _d, _e, _f;
|
|
72
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
73
73
|
const { children, ...props } = child;
|
|
74
74
|
switch (child.type) {
|
|
75
75
|
case "h1":
|
|
@@ -147,33 +147,33 @@ const Node = ({ components, child }) => {
|
|
|
147
147
|
} else {
|
|
148
148
|
if (child.name === "table") {
|
|
149
149
|
const firstRowHeader = (_a = child.props) == null ? void 0 : _a.firstRowHeader;
|
|
150
|
-
const
|
|
150
|
+
const rows2 = (firstRowHeader ? (_b = child.props) == null ? void 0 : _b.tableRows.filter((_, i) => i !== 0) : (_c = child.props) == null ? void 0 : _c.tableRows) || [];
|
|
151
151
|
const header = (_e = (_d = child.props) == null ? void 0 : _d.tableRows) == null ? void 0 : _e.at(0);
|
|
152
|
-
const
|
|
153
|
-
const
|
|
152
|
+
const TableComponent2 = components["table"] || ((props2) => /* @__PURE__ */ React.createElement("table", { ...props2 }));
|
|
153
|
+
const TrComponent2 = components["tr"] || ((props2) => /* @__PURE__ */ React.createElement("tr", { ...props2 }));
|
|
154
154
|
const ThComponent = components["th"] || ((props2) => /* @__PURE__ */ React.createElement("th", { style: { textAlign: (props2 == null ? void 0 : props2.align) || "auto" }, ...props2 }));
|
|
155
|
-
const
|
|
156
|
-
const
|
|
157
|
-
return /* @__PURE__ */ React.createElement(
|
|
155
|
+
const TdComponent2 = components["td"] || ((props2) => /* @__PURE__ */ React.createElement("td", { style: { textAlign: (props2 == null ? void 0 : props2.align) || "auto" }, ...props2 }));
|
|
156
|
+
const align2 = ((_f = child.props) == null ? void 0 : _f.align) || [];
|
|
157
|
+
return /* @__PURE__ */ React.createElement(TableComponent2, null, firstRowHeader && /* @__PURE__ */ React.createElement("thead", null, /* @__PURE__ */ React.createElement(TrComponent2, null, header.tableCells.map((c, i) => {
|
|
158
158
|
return /* @__PURE__ */ React.createElement(
|
|
159
159
|
TinaMarkdown,
|
|
160
160
|
{
|
|
161
161
|
key: i,
|
|
162
162
|
components: {
|
|
163
|
-
p: (props2) => /* @__PURE__ */ React.createElement(ThComponent, { align:
|
|
163
|
+
p: (props2) => /* @__PURE__ */ React.createElement(ThComponent, { align: align2[i], ...props2 })
|
|
164
164
|
},
|
|
165
165
|
content: c.value
|
|
166
166
|
}
|
|
167
167
|
);
|
|
168
|
-
}))), /* @__PURE__ */ React.createElement("tbody", null,
|
|
168
|
+
}))), /* @__PURE__ */ React.createElement("tbody", null, rows2.map((row, i) => {
|
|
169
169
|
var _a2;
|
|
170
|
-
return /* @__PURE__ */ React.createElement(
|
|
170
|
+
return /* @__PURE__ */ React.createElement(TrComponent2, { key: i }, (_a2 = row == null ? void 0 : row.tableCells) == null ? void 0 : _a2.map((c, i2) => {
|
|
171
171
|
return /* @__PURE__ */ React.createElement(
|
|
172
172
|
TinaMarkdown,
|
|
173
173
|
{
|
|
174
174
|
key: i2,
|
|
175
175
|
components: {
|
|
176
|
-
p: (props2) => /* @__PURE__ */ React.createElement(
|
|
176
|
+
p: (props2) => /* @__PURE__ */ React.createElement(TdComponent2, { align: align2[i2], ...props2 })
|
|
177
177
|
},
|
|
178
178
|
content: c.value
|
|
179
179
|
}
|
|
@@ -188,6 +188,37 @@ const Node = ({ components, child }) => {
|
|
|
188
188
|
return /* @__PURE__ */ React.createElement("span", null, `No component provided for ${child.name}`);
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
+
case "table":
|
|
192
|
+
const rows = child.children || [];
|
|
193
|
+
const TableComponent = components["table"] || ((props2) => /* @__PURE__ */ React.createElement("table", { style: { border: "1px solid #EDECF3" }, ...props2 }));
|
|
194
|
+
const TrComponent = components["tr"] || ((props2) => /* @__PURE__ */ React.createElement("tr", { ...props2 }));
|
|
195
|
+
const TdComponent = components["td"] || ((props2) => /* @__PURE__ */ React.createElement(
|
|
196
|
+
"td",
|
|
197
|
+
{
|
|
198
|
+
style: {
|
|
199
|
+
textAlign: (props2 == null ? void 0 : props2.align) || "auto",
|
|
200
|
+
border: "1px solid #EDECF3",
|
|
201
|
+
padding: "0.25rem"
|
|
202
|
+
},
|
|
203
|
+
...props2
|
|
204
|
+
}
|
|
205
|
+
));
|
|
206
|
+
const align = ((_g = child.props) == null ? void 0 : _g.align) || [];
|
|
207
|
+
return /* @__PURE__ */ React.createElement(TableComponent, null, /* @__PURE__ */ React.createElement("tbody", null, rows.map((row, i) => {
|
|
208
|
+
var _a2;
|
|
209
|
+
return /* @__PURE__ */ React.createElement(TrComponent, { key: i }, (_a2 = row.children) == null ? void 0 : _a2.map((cell, i2) => {
|
|
210
|
+
return /* @__PURE__ */ React.createElement(
|
|
211
|
+
TinaMarkdown,
|
|
212
|
+
{
|
|
213
|
+
key: i2,
|
|
214
|
+
components: {
|
|
215
|
+
p: (props2) => /* @__PURE__ */ React.createElement(TdComponent, { align: align[i2], ...props2 })
|
|
216
|
+
},
|
|
217
|
+
content: cell.children
|
|
218
|
+
}
|
|
219
|
+
);
|
|
220
|
+
}));
|
|
221
|
+
})));
|
|
191
222
|
case "maybe_mdx":
|
|
192
223
|
return null;
|
|
193
224
|
case "html":
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const mediaResizeHandleVariants: (props?: {
|
|
3
|
+
direction?: "left" | "right";
|
|
4
|
+
} & import("class-variance-authority/dist/types").ClassProp) => string;
|
|
5
|
+
export declare const ResizeHandle: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
6
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
7
|
+
asChild?: boolean | undefined;
|
|
8
|
+
className?: string | undefined;
|
|
9
|
+
options?: import("@udecode/plate-resizable").ResizeHandleOptions | undefined;
|
|
10
|
+
setProps?: ((hookProps: {
|
|
11
|
+
onMouseDown: React.MouseEventHandler<Element>;
|
|
12
|
+
onMouseOut: () => void;
|
|
13
|
+
onMouseOver: () => void;
|
|
14
|
+
onTouchEnd: () => void;
|
|
15
|
+
onTouchMove: () => void;
|
|
16
|
+
onTouchStart: React.TouchEventHandler<Element>;
|
|
17
|
+
}) => Omit<React.HTMLAttributes<HTMLDivElement>, "onResize">) | undefined;
|
|
18
|
+
state?: {
|
|
19
|
+
direction: import("@udecode/plate-resizable").ResizeDirection;
|
|
20
|
+
initialPosition: number;
|
|
21
|
+
initialSize: number;
|
|
22
|
+
isHorizontal: boolean;
|
|
23
|
+
isResizing: boolean;
|
|
24
|
+
onHover: (() => void) | undefined;
|
|
25
|
+
onHoverEnd: (() => void) | undefined;
|
|
26
|
+
onMouseDown: React.MouseEventHandler<Element> | undefined;
|
|
27
|
+
onResize: (event: import("@udecode/plate-resizable").ResizeEvent) => void;
|
|
28
|
+
onTouchStart: React.TouchEventHandler<Element> | undefined;
|
|
29
|
+
setInitialPosition: React.Dispatch<React.SetStateAction<number>>;
|
|
30
|
+
setInitialSize: React.Dispatch<React.SetStateAction<number>>;
|
|
31
|
+
setIsResizing: React.Dispatch<React.SetStateAction<boolean>>;
|
|
32
|
+
} | undefined;
|
|
33
|
+
style?: React.CSSProperties | undefined;
|
|
34
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "onResize"> & React.RefAttributes<any>, "ref">, never> & React.RefAttributes<any>>;
|
|
35
|
+
export declare const Resizable: React.ForwardRefExoticComponent<Omit<{
|
|
36
|
+
options: import("@udecode/plate-resizable").ResizableOptions;
|
|
37
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: {
|
|
38
|
+
align?: "center" | "left" | "right";
|
|
39
|
+
} & import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const TableCellElement: React.ForwardRefExoticComponent<{
|
|
3
|
+
hideBorder?: boolean;
|
|
4
|
+
isHeader?: boolean;
|
|
5
|
+
} & Omit<Omit<{
|
|
6
|
+
elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
|
|
7
|
+
} & Omit<{
|
|
8
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
9
|
+
asChild?: boolean | undefined;
|
|
10
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
|
|
11
|
+
ref?: React.Ref<any>;
|
|
12
|
+
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
|
|
13
|
+
element: import("@udecode/plate-common").TElement;
|
|
14
|
+
} & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref">, "hideBorder" | "isHeader"> & React.RefAttributes<any>>;
|
|
15
|
+
export declare const TableCellHeaderElement: React.ForwardRefExoticComponent<Omit<{
|
|
16
|
+
hideBorder?: boolean;
|
|
17
|
+
isHeader?: boolean;
|
|
18
|
+
} & Omit<Omit<{
|
|
19
|
+
elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
|
|
20
|
+
} & Omit<{
|
|
21
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
22
|
+
asChild?: boolean | undefined;
|
|
23
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
|
|
24
|
+
ref?: React.Ref<any>;
|
|
25
|
+
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
|
|
26
|
+
element: import("@udecode/plate-common").TElement;
|
|
27
|
+
} & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref">, "hideBorder" | "isHeader"> & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>;
|
package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-element.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
export declare const TableBordersDropdownMenuContent: React.ForwardRefExoticComponent<Omit<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref">, never> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export declare const TableFloatingToolbar: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("@radix-ui/react-popover").PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref">, never> & React.RefAttributes<HTMLDivElement>, "ref">, never> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export declare const TableElement: React.ForwardRefExoticComponent<Omit<Omit<Omit<{
|
|
6
|
+
elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
|
|
7
|
+
} & Omit<{
|
|
8
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
9
|
+
asChild?: boolean | undefined;
|
|
10
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
|
|
11
|
+
ref?: React.Ref<any>;
|
|
12
|
+
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
|
|
13
|
+
element: import("@udecode/plate-common").TElement;
|
|
14
|
+
} & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref">, never> & React.RefAttributes<any>, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const TableRowElement: React.ForwardRefExoticComponent<{
|
|
3
|
+
hideBorder?: boolean;
|
|
4
|
+
} & Omit<Omit<{
|
|
5
|
+
elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
|
|
6
|
+
} & Omit<{
|
|
7
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
8
|
+
asChild?: boolean | undefined;
|
|
9
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
|
|
10
|
+
ref?: React.Ref<any>;
|
|
11
|
+
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
|
|
12
|
+
element: import("@udecode/plate-common").TElement;
|
|
13
|
+
} & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref">, "hideBorder"> & React.RefAttributes<any>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type PlateEditor } from '@udecode/plate-common';
|
|
2
2
|
export declare const plugins: any[];
|
|
3
|
+
export declare const unsupportedItemsInTable: Set<string>;
|
|
3
4
|
export declare const insertInlineElement: (editor: any, inlineElement: any) => void;
|
|
4
5
|
export declare const insertBlockElement: (editor: any, blockElement: any) => void;
|
|
5
6
|
export declare const helpers: {
|
|
@@ -215,4 +215,52 @@ export declare const Components: () => {
|
|
|
215
215
|
element: any;
|
|
216
216
|
children: any;
|
|
217
217
|
}) => React.JSX.Element;
|
|
218
|
+
table: React.ForwardRefExoticComponent<Omit<Omit<Omit<{
|
|
219
|
+
elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
|
|
220
|
+
} & Omit<{
|
|
221
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
222
|
+
asChild?: boolean | undefined;
|
|
223
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
|
|
224
|
+
ref?: React.Ref<any>;
|
|
225
|
+
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
|
|
226
|
+
element: import("@udecode/plate-common").TElement;
|
|
227
|
+
} & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref">, never> & React.RefAttributes<any>, "ref"> & React.RefAttributes<unknown>>;
|
|
228
|
+
tr: React.ForwardRefExoticComponent<{
|
|
229
|
+
hideBorder?: boolean;
|
|
230
|
+
} & Omit<Omit<{
|
|
231
|
+
elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
|
|
232
|
+
} & Omit<{
|
|
233
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
234
|
+
asChild?: boolean | undefined;
|
|
235
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
|
|
236
|
+
ref?: React.Ref<any>;
|
|
237
|
+
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
|
|
238
|
+
element: import("@udecode/plate-common").TElement;
|
|
239
|
+
} & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref">, "hideBorder"> & React.RefAttributes<any>>;
|
|
240
|
+
td: React.ForwardRefExoticComponent<{
|
|
241
|
+
hideBorder?: boolean;
|
|
242
|
+
isHeader?: boolean;
|
|
243
|
+
} & Omit<Omit<{
|
|
244
|
+
elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
|
|
245
|
+
} & Omit<{
|
|
246
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
247
|
+
asChild?: boolean | undefined;
|
|
248
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
|
|
249
|
+
ref?: React.Ref<any>;
|
|
250
|
+
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
|
|
251
|
+
element: import("@udecode/plate-common").TElement;
|
|
252
|
+
} & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref">, "hideBorder" | "isHeader"> & React.RefAttributes<any>>;
|
|
253
|
+
th: React.ForwardRefExoticComponent<Omit<{
|
|
254
|
+
hideBorder?: boolean;
|
|
255
|
+
isHeader?: boolean;
|
|
256
|
+
} & Omit<Omit<{
|
|
257
|
+
elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
|
|
258
|
+
} & Omit<{
|
|
259
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
260
|
+
asChild?: boolean | undefined;
|
|
261
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
|
|
262
|
+
ref?: React.Ref<any>;
|
|
263
|
+
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
|
|
264
|
+
element: import("@udecode/plate-common").TElement;
|
|
265
|
+
} & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref">, "hideBorder" | "isHeader"> & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>;
|
|
218
266
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ToolbarOverrideType = 'heading' | 'link' | 'image' | 'quote' | 'ul' | 'ol' | 'code' | 'codeBlock' | 'bold' | 'italic' | 'raw' | 'embed';
|
|
1
|
+
export type ToolbarOverrideType = 'heading' | 'link' | 'image' | 'quote' | 'ul' | 'ol' | 'code' | 'codeBlock' | 'bold' | 'italic' | 'raw' | 'embed' | 'table';
|
|
2
2
|
export declare const ICON_WIDTH = 32;
|
|
3
3
|
export declare const EMBED_ICON_WIDTH = 78;
|
|
4
4
|
export declare const HEADING = 138;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-c5dad82-20241009225242",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -85,12 +85,13 @@
|
|
|
85
85
|
"@udecode/plate-common": "^36.5.9",
|
|
86
86
|
"@udecode/plate-floating": "^36.3.8",
|
|
87
87
|
"@udecode/plate-heading": "^36.0.12",
|
|
88
|
-
"@udecode/plate-indent": "^36.0.0",
|
|
89
88
|
"@udecode/plate-indent-list": "^36.5.2",
|
|
90
89
|
"@udecode/plate-link": "^36.5.9",
|
|
91
90
|
"@udecode/plate-list": "^36.5.2",
|
|
92
91
|
"@udecode/plate-paragraph": "^36.0.0",
|
|
92
|
+
"@udecode/plate-resizable": "36.0.0",
|
|
93
93
|
"@udecode/plate-slash-command": "^36.0.0",
|
|
94
|
+
"@udecode/plate-table": "36.5.8",
|
|
94
95
|
"class-variance-authority": "^0.7.0",
|
|
95
96
|
"clsx": "^2.1.1",
|
|
96
97
|
"cmdk": "^1.0.0",
|
|
@@ -127,9 +128,9 @@
|
|
|
127
128
|
"webfontloader": "1.6.28",
|
|
128
129
|
"yup": "^1.4.0",
|
|
129
130
|
"zod": "^3.23.8",
|
|
130
|
-
"@tinacms/mdx": "0.0.0-
|
|
131
|
-
"@tinacms/schema-tools": "
|
|
132
|
-
"@tinacms/search": "0.0.0-
|
|
131
|
+
"@tinacms/mdx": "0.0.0-c5dad82-20241009225242",
|
|
132
|
+
"@tinacms/schema-tools": "1.6.5",
|
|
133
|
+
"@tinacms/search": "0.0.0-c5dad82-20241009225242"
|
|
133
134
|
},
|
|
134
135
|
"devDependencies": {
|
|
135
136
|
"@graphql-tools/utils": "^10.5.4",
|
|
@@ -162,7 +163,7 @@
|
|
|
162
163
|
"typescript": "^5.6.2",
|
|
163
164
|
"vite": "^5.4.8",
|
|
164
165
|
"vitest": "^2.1.1",
|
|
165
|
-
"@tinacms/scripts": "
|
|
166
|
+
"@tinacms/scripts": "0.0.0-c5dad82-20241009225242"
|
|
166
167
|
},
|
|
167
168
|
"peerDependencies": {
|
|
168
169
|
"react": ">=16.14.0",
|