@lax-wp/editor 0.3.6 → 0.3.10
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/components/redline/RedlineItem.d.ts +22 -1
- package/dist/components/toolbar/ResponsiveToolbar.d.ts +6 -0
- package/dist/components/toolbar/home/LineHeightSelector.d.ts +1 -0
- package/dist/components/toolbar/home/index.d.ts +1 -0
- package/dist/components/toolbar/index.d.ts +1 -0
- package/dist/components/toolbar/insert/LinkForm.d.ts +3 -1
- package/dist/config/EditorConfig.d.ts +30 -1
- package/dist/constants/Extensions.d.ts +1 -1
- package/dist/constants/Fonts.d.ts +4 -0
- package/dist/contexts/EditorShellContext.d.ts +2 -0
- package/dist/editor.css +1 -1
- package/dist/extensions/ListItemWithDepthLimit.d.ts +8 -0
- package/dist/extensions/Signature.d.ts +4 -0
- package/dist/extensions/TaskItemWithMarkerSize.d.ts +9 -0
- package/dist/extensions/UnorderedListWithType.d.ts +1 -1
- package/dist/extensions/VariableTable.d.ts +16 -1
- package/dist/extensions/index.d.ts +1 -1
- package/dist/extensions/marks/shared.d.ts +32 -0
- package/dist/extensions/plugins/RedlinePlugin.d.ts +1 -0
- package/dist/hooks/useLinks.d.ts +9 -1
- package/dist/hooks/useTiptapEditorState.d.ts +1 -0
- package/dist/index.es.js +14192 -11458
- package/dist/index.umd.js +87 -82
- package/dist/types/extensions/Table.d.ts +20 -1
- package/package.json +2 -2
|
@@ -2,9 +2,28 @@ export interface InsertTableOnEditorUsingDataOptions {
|
|
|
2
2
|
withHeaderRow?: boolean;
|
|
3
3
|
tableName?: string | null;
|
|
4
4
|
}
|
|
5
|
+
export interface TableColumn {
|
|
6
|
+
key: string;
|
|
7
|
+
label: string;
|
|
8
|
+
[extra: string]: unknown;
|
|
9
|
+
}
|
|
5
10
|
export interface InsertTableUsingDataProps {
|
|
6
11
|
tableType: string;
|
|
7
12
|
data: Record<string, unknown | undefined | null>[];
|
|
8
|
-
columns:
|
|
13
|
+
columns: TableColumn[];
|
|
9
14
|
options?: InsertTableOnEditorUsingDataOptions;
|
|
10
15
|
}
|
|
16
|
+
export interface InsertColumnsFromAgreementProps {
|
|
17
|
+
colIndex: number;
|
|
18
|
+
tableId: string;
|
|
19
|
+
columns: TableColumn[];
|
|
20
|
+
/** Optional: same variableTableData shape as EditorConfig. Used to pre-fill new cell values. */
|
|
21
|
+
variableTableData?: Record<string, Record<string, unknown | undefined | null>[]>;
|
|
22
|
+
}
|
|
23
|
+
export interface InsertRowsFromAgreementProps {
|
|
24
|
+
rowIndex: number;
|
|
25
|
+
tableId: string;
|
|
26
|
+
rowIds: string[];
|
|
27
|
+
/** Optional: same variableTableData shape as EditorConfig. Used to pre-fill new cell values. */
|
|
28
|
+
variableTableData?: Record<string, Record<string, unknown | undefined | null>[]>;
|
|
29
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lax-wp/editor",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.10",
|
|
4
4
|
"description": "A modern, feature-rich editor built with React and TipTap",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"editor",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@tiptap/extension-task-list": "^3.6.2",
|
|
74
74
|
"@tiptap/extension-text": "^3.6.5",
|
|
75
75
|
"@tiptap/extension-text-align": "^3.6.5",
|
|
76
|
-
"@tiptap/extension-text-style": "^3.
|
|
76
|
+
"@tiptap/extension-text-style": "^3.20.1",
|
|
77
77
|
"@tiptap/extension-typography": "^3.6.2",
|
|
78
78
|
"@tiptap/extension-underline": "^3.6.5",
|
|
79
79
|
"@tiptap/extensions": "^3.6.2",
|