@docyrus/ui-pro-ai-assistant 0.8.2 → 0.8.4

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.
@@ -1 +1 @@
1
- export declare const AutoformatKit: import("platejs").SlatePlugin<import("@platejs/autoformat").AutoformatConfig>[];
1
+ export declare const AutoformatKit: import("platejs").SlatePlugin<import("platejs").PluginConfig<"autoformatShortcuts", {}, {}, {}, {}>>[];
@@ -1 +1,5 @@
1
- export declare const BaseBasicBlocksKit: any[];
1
+ export declare const BaseBasicBlocksKit: (import("platejs").SlatePlugin<import("platejs").PluginConfig<"p", {}, {}, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<any, {}, {}, Record<any, {
2
+ toggle: () => void;
3
+ }>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"blockquote", {}, {}, Record<"blockquote", {
4
+ toggle: () => void;
5
+ }>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"hr", {}, {}, {}, {}>>)[];
@@ -1 +1,5 @@
1
- export declare const BasicBlocksKit: any[];
1
+ export declare const BasicBlocksKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"p", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<any, {}, {}, Record<any, {
2
+ toggle: () => void;
3
+ }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockquote", {}, {}, Record<"blockquote", {
4
+ toggle: () => void;
5
+ }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"hr", {}, {}, {}, {}>>)[];
@@ -1 +1,21 @@
1
- export declare const BasicNodesKit: any[];
1
+ export declare const BasicNodesKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"p", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<any, {}, {}, Record<any, {
2
+ toggle: () => void;
3
+ }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockquote", {}, {}, Record<"blockquote", {
4
+ toggle: () => void;
5
+ }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"hr", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"bold", {}, {}, Record<"bold", {
6
+ toggle: () => void;
7
+ }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"italic", {}, {}, Record<"italic", {
8
+ toggle: () => void;
9
+ }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"underline", {}, {}, Record<"underline", {
10
+ toggle: () => void;
11
+ }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"code", {}, {}, Record<"code", {
12
+ toggle: () => void;
13
+ }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"strikethrough", {}, {}, Record<"strikethrough", {
14
+ toggle: () => void;
15
+ }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"subscript", {}, {}, Record<"subscript", {
16
+ toggle: () => void;
17
+ }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"superscript", {}, {}, Record<"superscript", {
18
+ toggle: () => void;
19
+ }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"highlight", {}, {}, Record<"highlight", {
20
+ toggle: () => void;
21
+ }>, {}>>)[];
@@ -1 +1,14 @@
1
- export declare const BlockPlaceholderKit: any[];
1
+ export declare const BlockPlaceholderKit: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"blockPlaceholder", {
2
+ _target: {
3
+ node: import("platejs").TElement;
4
+ placeholder: string;
5
+ } | null;
6
+ placeholders: Record<string, string>;
7
+ query: (context: import("platejs/react").PlatePluginContext<import("platejs/react").BlockPlaceholderConfig> & {
8
+ node: import("platejs").TElement;
9
+ path: import("platejs").Path;
10
+ }) => boolean;
11
+ className?: string;
12
+ }, {}, {}, {
13
+ placeholder: (node: import("platejs").TElement) => string | undefined;
14
+ }>>[];
@@ -4,16 +4,13 @@
4
4
  * Uses DocxExportPlugin with custom DOCX-compatible components for elements
5
5
  * that need inline styles instead of Tailwind classes (which don't work in DOCX).
6
6
  */
7
- export declare const DocxExportKit: import("platejs").SlatePlugin<import("platejs").PluginConfig<"docxExport", {
8
- editorPlugins: import("platejs").SlatePlugin[] | undefined;
9
- editorStaticComponent: React.ComponentType<import("platejs/static").PlateStaticProps> | undefined;
10
- }, {
7
+ export declare const DocxExportKit: import("platejs").SlatePlugin<import("platejs").PluginConfig<"docxExport", import("@platejs/docx-io").DocxExportPluginOptions, {
11
8
  docxExport: {
12
- download: (blob: Blob, filename: string) => void;
13
- exportToBlob: (options?: import("@platejs/docx-io").DocxExportOperationOptions) => Promise<Blob>;
9
+ download: ((blob: Blob, filename: string) => void) & ((blob: Blob, filename: string) => void);
10
+ exportToBlob: ((options?: import("@platejs/docx-io").DocxExportOperationOptions) => Promise<Blob>) & ((options?: import("@platejs/docx-io").DocxExportOperationOptions) => Promise<Blob>);
14
11
  };
15
12
  }, {
16
13
  docxExport: {
17
- exportAndDownload: (filename: string, options?: import("@platejs/docx-io").DocxExportOperationOptions) => Promise<void>;
14
+ exportAndDownload: ((filename: string, options?: import("@platejs/docx-io").DocxExportOperationOptions) => Promise<void>) & ((filename: string, options?: import("@platejs/docx-io").DocxExportOperationOptions) => Promise<void>);
18
15
  };
19
16
  }, {}>>[];
@@ -1 +1,4 @@
1
- export declare const ExitBreakKit: any[];
1
+ export declare const ExitBreakKit: import("platejs").SlatePlugin<import("platejs").PluginConfig<"exitBreak", {}, {}, Record<"exitBreak", {
2
+ insert: (options: Omit<import("platejs").InsertExitBreakOptions, "reverse">) => true | undefined;
3
+ insertBefore: (options: Omit<import("platejs").InsertExitBreakOptions, "reverse">) => true | undefined;
4
+ }>, {}>>[];
@@ -1,7 +1,7 @@
1
1
  export declare const BaseFontKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"lineHeight", {}, {}, Record<"lineHeight", {
2
- setNodes: (value: number, setNodesOptions?: import("platejs").SetNodesOptions | undefined) => void;
2
+ setNodes: (value: number, options?: import("platejs").SetNodesOptions) => void;
3
3
  }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"textAlign", {}, {}, Record<"textAlign", {
4
- setNodes: (value: import("@platejs/basic-styles").Alignment, setNodesOptions?: import("platejs").SetNodesOptions | undefined) => void;
4
+ setNodes: (value: import("@platejs/basic-styles").Alignment, options?: import("platejs").SetNodesOptions) => void;
5
5
  }>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"color", {}, {}, Record<"color", {
6
6
  addMark: (value: string) => void;
7
7
  }>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"backgroundColor", {}, {}, Record<"backgroundColor", {
@@ -7,7 +7,7 @@ export declare const FontKit: (import("platejs/react").PlatePlugin<import("plate
7
7
  }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"fontFamily", {}, {}, Record<"fontFamily", {
8
8
  addMark: (value: string) => void;
9
9
  }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"lineHeight", {}, {}, Record<"lineHeight", {
10
- setNodes: (value: number, setNodesOptions?: import("platejs").SetNodesOptions | undefined) => void;
10
+ setNodes: (value: number, options?: import("platejs").SetNodesOptions) => void;
11
11
  }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"textAlign", {}, {}, Record<"textAlign", {
12
- setNodes: (value: import("@platejs/basic-styles").Alignment, setNodesOptions?: import("platejs").SetNodesOptions | undefined) => void;
12
+ setNodes: (value: import("@platejs/basic-styles").Alignment, options?: import("platejs").SetNodesOptions) => void;
13
13
  }>, {}>>)[];
@@ -3,6 +3,9 @@ export declare const BaseTableKit: (import("platejs").SlatePlugin<import("platej
3
3
  col: number;
4
4
  row: number;
5
5
  }>;
6
+ _selectedCellIds: string[] | null | undefined;
7
+ _selectedTableIds: string[] | null | undefined;
8
+ _selectionVersion: number;
6
9
  selectedCells: import("platejs").TElement[] | null;
7
10
  selectedTables: import("platejs").TElement[] | null;
8
11
  disableExpandOnInsert?: boolean;
@@ -38,12 +41,19 @@ export declare const BaseTableKit: (import("platejs").SlatePlugin<import("platej
38
41
  colSizes?: number[];
39
42
  rowSize?: number;
40
43
  }) => {
41
- minHeight: number | undefined;
44
+ minHeight: number;
42
45
  width: number;
43
46
  }>;
47
+ getSelectedCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => import("platejs").TElement | null>;
48
+ getSelectedCellIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
49
+ getSelectedCells: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
50
+ getSelectedTableIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
51
+ getSelectedTables: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
44
52
  getColSpan: (cellElem: import("platejs").TTableCellElement) => number;
45
53
  getRowSpan: (cellElem: import("platejs").TTableCellElement) => number;
46
54
  getCellChildren: (cell: import("platejs").TTableCellElement) => import("platejs").Descendant[];
55
+ isCellSelected: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => boolean>;
56
+ isSelectingCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => boolean>;
47
57
  };
48
58
  }, {
49
59
  insert: {
@@ -74,4 +84,11 @@ export declare const BaseTableKit: (import("platejs").SlatePlugin<import("platej
74
84
  };
75
85
  }, {
76
86
  cellIndices?: (id: string) => import("@platejs/table").CellIndices;
87
+ isCellSelected?: (id?: string | null) => boolean;
88
+ isSelectingCell?: () => boolean;
89
+ selectedCell?: (id?: string | null) => import("platejs").TElement | null;
90
+ selectedCellIds?: () => string[] | null;
91
+ selectedCells?: () => import("platejs").TElement[] | null;
92
+ selectedTableIds?: () => string[] | null;
93
+ selectedTables?: () => import("platejs").TElement[] | null;
77
94
  }>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"tr", {}, {}, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"td", {}, {}, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"th", {}, {}, {}, {}>>)[];
@@ -3,6 +3,9 @@ export declare const TableKit: (import("platejs/react").PlatePlugin<import("plat
3
3
  col: number;
4
4
  row: number;
5
5
  }>;
6
+ _selectedCellIds: string[] | null | undefined;
7
+ _selectedTableIds: string[] | null | undefined;
8
+ _selectionVersion: number;
6
9
  selectedCells: import("platejs").TElement[] | null;
7
10
  selectedTables: import("platejs").TElement[] | null;
8
11
  disableExpandOnInsert?: boolean;
@@ -38,12 +41,19 @@ export declare const TableKit: (import("platejs/react").PlatePlugin<import("plat
38
41
  colSizes?: number[];
39
42
  rowSize?: number;
40
43
  }) => {
41
- minHeight: number | undefined;
44
+ minHeight: number;
42
45
  width: number;
43
46
  }>;
47
+ getSelectedCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => import("platejs").TElement | null>;
48
+ getSelectedCellIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
49
+ getSelectedCells: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
50
+ getSelectedTableIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
51
+ getSelectedTables: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
44
52
  getColSpan: (cellElem: import("platejs").TTableCellElement) => number;
45
53
  getRowSpan: (cellElem: import("platejs").TTableCellElement) => number;
46
54
  getCellChildren: (cell: import("platejs").TTableCellElement) => import("platejs").Descendant[];
55
+ isCellSelected: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => boolean>;
56
+ isSelectingCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => boolean>;
47
57
  };
48
58
  } & {
49
59
  create: {
@@ -72,12 +82,19 @@ export declare const TableKit: (import("platejs/react").PlatePlugin<import("plat
72
82
  colSizes?: number[];
73
83
  rowSize?: number;
74
84
  }) => {
75
- minHeight: number | undefined;
85
+ minHeight: number;
76
86
  width: number;
77
87
  }>;
88
+ getSelectedCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => import("platejs").TElement | null>;
89
+ getSelectedCellIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
90
+ getSelectedCells: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
91
+ getSelectedTableIds: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => string[] | null>;
92
+ getSelectedTables: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => import("platejs").TElement[] | null>;
78
93
  getColSpan: (cellElem: import("platejs").TTableCellElement) => number;
79
94
  getRowSpan: (cellElem: import("platejs").TTableCellElement) => number;
80
95
  getCellChildren: (cell: import("platejs").TTableCellElement) => import("platejs").Descendant[];
96
+ isCellSelected: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, id?: string | null) => boolean>;
97
+ isSelectingCell: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor) => boolean>;
81
98
  };
82
99
  }, {
83
100
  insert: {
@@ -135,4 +152,11 @@ export declare const TableKit: (import("platejs/react").PlatePlugin<import("plat
135
152
  };
136
153
  }, {
137
154
  cellIndices?: (id: string) => import("@platejs/table").CellIndices;
155
+ isCellSelected?: (id?: string | null) => boolean;
156
+ isSelectingCell?: () => boolean;
157
+ selectedCell?: (id?: string | null) => import("platejs").TElement | null;
158
+ selectedCellIds?: () => string[] | null;
159
+ selectedCells?: () => import("platejs").TElement[] | null;
160
+ selectedTableIds?: () => string[] | null;
161
+ selectedTables?: () => import("platejs").TElement[] | null;
138
162
  }>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"tr", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"td", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"th", {}, {}, {}, {}>>)[];
@@ -5,7 +5,7 @@ export declare const ToggleKit: (import("platejs/react").PlatePlugin<import("pla
5
5
  }, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"toggle", {
6
6
  openIds?: Set<string>;
7
7
  } & {
8
- toggleIndex?: ReturnType<(elements: import("platejs").Value) => Map<string, string[]>>;
8
+ toggleIndex?: ReturnType<(elements: any[]) => Map<string, string[]>>;
9
9
  }, {
10
10
  toggle: {
11
11
  toggleIds: (ids: string[], force?: boolean | null) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docyrus/ui-pro-ai-assistant",
3
- "version": "0.8.2",
3
+ "version": "0.8.4",
4
4
  "description": "Docyrus AI Assistant component — full-featured chat UI with canvas, projects, and i18n support.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -34,38 +34,38 @@
34
34
  "@codesandbox/sandpack-react": "2.20.0",
35
35
  "@emoji-mart/data": "1.2.1",
36
36
  "@lottiefiles/dotlottie-react": "0.18.3",
37
- "@platejs/ai": "52.3.1",
38
- "@platejs/autoformat": "52.0.11",
39
- "@platejs/basic-nodes": "52.0.11",
40
- "@platejs/basic-styles": "52.0.11",
41
- "@platejs/callout": "52.0.11",
42
- "@platejs/caption": "52.0.11",
43
- "@platejs/code-block": "52.0.11",
44
- "@platejs/combobox": "52.0.15",
45
- "@platejs/comment": "52.0.11",
46
- "@platejs/date": "52.0.11",
47
- "@platejs/diff": "52.0.11",
48
- "@platejs/dnd": "52.0.11",
49
- "@platejs/docx": "52.0.11",
50
- "@platejs/docx-io": "52.2.0",
51
- "@platejs/emoji": "52.0.15",
52
- "@platejs/floating": "52.0.11",
53
- "@platejs/indent": "52.0.11",
54
- "@platejs/juice": "52.0.11",
55
- "@platejs/layout": "52.0.11",
56
- "@platejs/link": "52.0.11",
57
- "@platejs/list": "52.0.11",
58
- "@platejs/markdown": "52.3.1",
59
- "@platejs/math": "52.0.11",
60
- "@platejs/media": "52.0.11",
61
- "@platejs/mention": "52.0.15",
62
- "@platejs/resizable": "52.0.11",
63
- "@platejs/selection": "52.0.16",
64
- "@platejs/slash-command": "52.0.15",
65
- "@platejs/suggestion": "52.0.11",
66
- "@platejs/table": "52.0.11",
67
- "@platejs/toc": "52.0.11",
68
- "@platejs/toggle": "52.0.11",
37
+ "@platejs/ai": "53.2.2",
38
+ "@platejs/autoformat": "53.0.0",
39
+ "@platejs/basic-nodes": "53.0.0",
40
+ "@platejs/basic-styles": "53.0.0",
41
+ "@platejs/callout": "53.0.0",
42
+ "@platejs/caption": "53.0.0",
43
+ "@platejs/code-block": "53.0.0",
44
+ "@platejs/combobox": "53.0.0",
45
+ "@platejs/comment": "53.0.0",
46
+ "@platejs/date": "53.0.0",
47
+ "@platejs/diff": "53.0.0",
48
+ "@platejs/dnd": "53.1.0",
49
+ "@platejs/docx": "53.0.0",
50
+ "@platejs/docx-io": "53.1.0",
51
+ "@platejs/emoji": "53.1.7",
52
+ "@platejs/floating": "53.0.0",
53
+ "@platejs/indent": "53.0.0",
54
+ "@platejs/juice": "53.0.0",
55
+ "@platejs/layout": "53.0.0",
56
+ "@platejs/link": "53.0.3",
57
+ "@platejs/list": "53.1.3",
58
+ "@platejs/markdown": "53.2.2",
59
+ "@platejs/math": "53.0.0",
60
+ "@platejs/media": "53.1.4",
61
+ "@platejs/mention": "53.0.0",
62
+ "@platejs/resizable": "53.0.0",
63
+ "@platejs/selection": "53.1.6",
64
+ "@platejs/slash-command": "53.0.0",
65
+ "@platejs/suggestion": "53.2.3",
66
+ "@platejs/table": "53.0.9",
67
+ "@platejs/toc": "53.0.0",
68
+ "@platejs/toggle": "53.0.0",
69
69
  "@tanstack/react-form": "^1.28.4",
70
70
  "@univerjs/core": "0.16.1",
71
71
  "@univerjs/design": "0.16.1",
@@ -121,7 +121,7 @@
121
121
  "marked-highlight": "^2.2.4",
122
122
  "mermaid": "11.12.3",
123
123
  "pdf-lib": "1.17.1",
124
- "platejs": "^52.3.2",
124
+ "platejs": "^53.2.4",
125
125
  "radix-ui": "1.4.3",
126
126
  "react-day-picker": "9.14.0",
127
127
  "react-dnd": "16.0.1",