@oyat/editor 1.7.10 → 1.7.11

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.
Files changed (36) hide show
  1. package/dist/components/editor/editor-base-kit.d.ts +300 -1
  2. package/dist/components/editor/editor-base-kit.d.ts.map +1 -1
  3. package/dist/components/editor/editor-kit.d.ts +632 -1
  4. package/dist/components/editor/editor-kit.d.ts.map +1 -1
  5. package/dist/components/editor/plugins/align-base-kit.d.ts +1 -1
  6. package/dist/components/editor/plugins/align-base-kit.d.ts.map +1 -1
  7. package/dist/components/editor/plugins/align-kit.d.ts +1 -1
  8. package/dist/components/editor/plugins/align-kit.d.ts.map +1 -1
  9. package/dist/components/editor/plugins/autoformat-kit.d.ts +1 -1
  10. package/dist/components/editor/plugins/autoformat-kit.d.ts.map +1 -1
  11. package/dist/components/editor/plugins/block-menu-kit.d.ts +165 -1
  12. package/dist/components/editor/plugins/block-menu-kit.d.ts.map +1 -1
  13. package/dist/components/editor/plugins/block-selection-kit.d.ts +137 -1
  14. package/dist/components/editor/plugins/block-selection-kit.d.ts.map +1 -1
  15. package/dist/components/editor/plugins/cursor-overlay-kit.d.ts +11 -1
  16. package/dist/components/editor/plugins/cursor-overlay-kit.d.ts.map +1 -1
  17. package/dist/components/editor/plugins/emoji-kit.d.ts +1 -1
  18. package/dist/components/editor/plugins/line-height-base-kit.d.ts +1 -1
  19. package/dist/components/editor/plugins/line-height-base-kit.d.ts.map +1 -1
  20. package/dist/components/editor/plugins/line-height-kit.d.ts +1 -1
  21. package/dist/components/editor/plugins/line-height-kit.d.ts.map +1 -1
  22. package/dist/components/editor/plugins/media-kit.d.ts.map +1 -1
  23. package/dist/components/editor/plugins/table-base-kit.d.ts +94 -1
  24. package/dist/components/editor/plugins/table-base-kit.d.ts.map +1 -1
  25. package/dist/components/editor/plugins/table-kit.d.ts +162 -1
  26. package/dist/components/editor/plugins/table-kit.d.ts.map +1 -1
  27. package/dist/components/editor/plugins/toggle-kit.d.ts +1 -1
  28. package/dist/components/editor/plugins/toggle-kit.d.ts.map +1 -1
  29. package/dist/components/ui/block-context-menu.d.ts.map +1 -1
  30. package/dist/components/ui/block-suggestion.d.ts.map +1 -1
  31. package/dist/components/ui/caption.d.ts +21 -1
  32. package/dist/components/ui/caption.d.ts.map +1 -1
  33. package/dist/components/ui/comment.d.ts.map +1 -1
  34. package/dist/index.js +843 -843
  35. package/dist/index.js.map +1 -1
  36. package/package.json +44 -44
@@ -1 +1 @@
1
- {"version":3,"file":"align-base-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/align-base-kit.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;gFAayzD,CAAC;UADl1D,CAAC"}
1
+ {"version":3,"file":"align-base-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/align-base-kit.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;wEAaoxD,CAAC;UAD7yD,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export declare const AlignKit: import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"textAlign", {}, {}, Record<"textAlign", {
2
- setNodes: (value: import('@platejs/basic-styles').Alignment, setNodesOptions?: import('platejs').SetNodesOptions | undefined) => void;
2
+ setNodes: (value: import('@platejs/basic-styles').Alignment, options?: import('platejs').SetNodesOptions) => void;
3
3
  }>, {}>>[];
4
4
  //# sourceMappingURL=align-kit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"align-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/align-kit.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;gFAa6hC,CAAC;UADljC,CAAC"}
1
+ {"version":3,"file":"align-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/align-kit.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;wEAa8/B,CAAC;UADnhC,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const AutoformatKit: any[];
1
+ export declare const AutoformatKit: import('platejs').SlatePlugin<import('@platejs/autoformat').AutoformatConfig>[];
2
2
  //# sourceMappingURL=autoformat-kit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"autoformat-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/autoformat-kit.tsx"],"names":[],"mappings":"AAkNA,eAAO,MAAM,aAAa,OAyBzB,CAAC"}
1
+ {"version":3,"file":"autoformat-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/autoformat-kit.tsx"],"names":[],"mappings":"AAkNA,eAAO,MAAM,aAAa,iFAyBzB,CAAC"}
@@ -1,2 +1,166 @@
1
- export declare const BlockMenuKit: any[];
1
+ export declare const BlockMenuKit: (import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"blockMenu", {
2
+ openId: ((string & {}) | "context") | null;
3
+ position: {
4
+ x: number;
5
+ y: number;
6
+ };
7
+ }, {
8
+ blockMenu: {
9
+ hide: () => void;
10
+ show: (id: (string & {}) | "context", position?: {
11
+ x: number;
12
+ y: number;
13
+ }) => void;
14
+ showContextMenu: (blockId: string, position: {
15
+ x: number;
16
+ y: number;
17
+ }) => void;
18
+ };
19
+ } & Record<"blockMenu", Partial<{
20
+ hide: () => void;
21
+ show: (id: (string & {}) | "context", position?: {
22
+ x: number;
23
+ y: number;
24
+ }) => void;
25
+ showContextMenu: (blockId: string, position: {
26
+ x: number;
27
+ y: number;
28
+ }) => void;
29
+ }>>, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"blockSelection", {
30
+ anchorId?: string | null;
31
+ areaOptions?: {
32
+ document?: Document;
33
+ } & {
34
+ container?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
35
+ behaviour?: {
36
+ intersect?: ("center" | "cover" | "touch") | undefined;
37
+ overlap?: ("drop" | "invert" | "keep") | undefined;
38
+ scrolling?: {
39
+ manualSpeed?: number | undefined;
40
+ speedDivider?: number | undefined;
41
+ startScrollMargins?: {
42
+ x?: number | undefined;
43
+ y?: number | undefined;
44
+ } | undefined;
45
+ } | undefined;
46
+ startThreshold?: number | {
47
+ x?: number | undefined;
48
+ y?: number | undefined;
49
+ } | undefined;
50
+ triggers?: ((0 | 1 | 2 | 3 | 4) | {
51
+ button: 0 | 1 | 2 | 3 | 4;
52
+ modifiers: ("shift" | "alt" | "ctrl")[];
53
+ })[] | undefined;
54
+ } | undefined;
55
+ boundaries?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
56
+ features?: {
57
+ range?: boolean | undefined;
58
+ singleTap?: {
59
+ allow?: boolean | undefined;
60
+ intersect?: ("touch" | "native") | undefined;
61
+ } | undefined;
62
+ touch?: boolean | undefined;
63
+ } | undefined;
64
+ selectables?: (string | string[]) | undefined;
65
+ selectionAreaClass?: string | undefined;
66
+ startAreas?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
67
+ };
68
+ editorPaddingRight?: import('react').CSSProperties["width"];
69
+ enableContextMenu?: boolean;
70
+ disableSelectAll?: boolean;
71
+ isSelecting?: boolean;
72
+ isSelectionAreaVisible?: boolean;
73
+ rightSelectionAreaClassName?: string;
74
+ selectedIds?: Set<string>;
75
+ shadowInputRef?: React.RefObject<HTMLInputElement | null>;
76
+ isSelectable?: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
77
+ onKeyDownSelecting?: (editor: import('platejs').SlateEditor, e: KeyboardEvent) => void;
78
+ }, {
79
+ blockSelection: {
80
+ addOnContextMenu: import('platejs').OmitFirst<(editor: import('platejs/react').PlateEditor, { disabledWhenFocused, element, event }: {
81
+ element: import('platejs').TElement;
82
+ event: React.MouseEvent<HTMLDivElement, MouseEvent>;
83
+ disabledWhenFocused?: boolean;
84
+ }) => void>;
85
+ setSelectedIds: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { added, ids, removed }: Partial<{
86
+ added: Element[];
87
+ removed: Element[];
88
+ }> & {
89
+ ids?: string[];
90
+ }) => void>;
91
+ add: (id: string[] | string) => void;
92
+ addSelectedRow: (id: string, options?: {
93
+ clear?: boolean;
94
+ delay?: number;
95
+ }) => void;
96
+ clear: () => void;
97
+ delete: (id: string[] | string) => void;
98
+ deselect: () => void;
99
+ first: () => import('platejs').NodeEntry<import('platejs').TIdElement> | null;
100
+ focus: () => void;
101
+ getNodes: (options?: {
102
+ collapseTableRows?: boolean;
103
+ selectionFallback?: boolean;
104
+ sort?: boolean;
105
+ }) => import('platejs').NodeEntry<import('platejs').TIdElement>[];
106
+ has: (id: string[] | string) => boolean;
107
+ isSelectable: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
108
+ moveSelection: (direction: "down" | "up") => void;
109
+ resetSelectedIds: () => void;
110
+ selectAll: () => void;
111
+ set: (id: string[] | string) => void;
112
+ shiftSelection: (direction: "down" | "up") => void;
113
+ unselect: () => void;
114
+ };
115
+ } & Record<"blockSelection", Partial<{
116
+ addOnContextMenu: import('platejs').OmitFirst<(editor: import('platejs/react').PlateEditor, { disabledWhenFocused, element, event }: {
117
+ element: import('platejs').TElement;
118
+ event: React.MouseEvent<HTMLDivElement, MouseEvent>;
119
+ disabledWhenFocused?: boolean;
120
+ }) => void>;
121
+ setSelectedIds: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { added, ids, removed }: Partial<{
122
+ added: Element[];
123
+ removed: Element[];
124
+ }> & {
125
+ ids?: string[];
126
+ }) => void>;
127
+ add: (id: string[] | string) => void;
128
+ addSelectedRow: (id: string, options?: {
129
+ clear?: boolean;
130
+ delay?: number;
131
+ }) => void;
132
+ clear: () => void;
133
+ delete: (id: string[] | string) => void;
134
+ deselect: () => void;
135
+ first: () => import('platejs').NodeEntry<import('platejs').TIdElement> | null;
136
+ focus: () => void;
137
+ getNodes: (options?: {
138
+ collapseTableRows?: boolean;
139
+ selectionFallback?: boolean;
140
+ sort?: boolean;
141
+ }) => import('platejs').NodeEntry<import('platejs').TIdElement>[];
142
+ has: (id: string[] | string) => boolean;
143
+ isSelectable: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
144
+ moveSelection: (direction: "down" | "up") => void;
145
+ resetSelectedIds: () => void;
146
+ selectAll: () => void;
147
+ set: (id: string[] | string) => void;
148
+ shiftSelection: (direction: "down" | "up") => void;
149
+ unselect: () => void;
150
+ }>>, Record<"blockSelection", {
151
+ duplicate: () => void;
152
+ insertBlocksAndSelect: (nodes: import('platejs').TElement[], args_1: {
153
+ at: import('platejs').Path;
154
+ insertedCallback?: () => void;
155
+ }) => void;
156
+ removeNodes: () => void;
157
+ select: () => void;
158
+ selectBlocks: (at: import('platejs').Path | import('platejs').TNode) => void;
159
+ setIndent: (indent: number, options?: import('platejs').SetNodesOptions | undefined) => void;
160
+ setNodes: (props: Partial<Omit<import('platejs').TElement, "children">>, options?: import('platejs').SetNodesOptions | undefined) => void;
161
+ setTexts: (props: Partial<Omit<import('platejs').TText, "text">>, options?: Omit<import('platejs').SetNodesOptions, "at"> | undefined) => void;
162
+ }>, {
163
+ isSelected?: (id?: string) => boolean;
164
+ isSelectingSome?: () => boolean;
165
+ }>>)[];
2
166
  //# sourceMappingURL=block-menu-kit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"block-menu-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/block-menu-kit.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY,OAKxB,CAAC"}
1
+ {"version":3,"file":"block-menu-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/block-menu-kit.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY;;;;;;;;;sDAM2vB,CAAC;;;;;;;;;;;kDAAmP,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAA26D,CAAC;;;;;;eAAod,CAAC;;;4CAA+5I,CAAC;iBAAe,CAAC;iBAAsB,CAAC;;;;;;;0BAA8sB,CAAC;6BAA2B,CAAC;6BAAsK,CAAC;gBAAqB,CAAC;;;;;;;;;;;;;;;2BAAr0L,CAAC;;;;;;WAAod,CAAC;;;wCAAimN,CAAC;aAAa,CAAC;aAAoB,CAAC;;;;;;;sBAAsqB,CAAC;yBAAyB,CAAC;yBAA4J,CAAC;YAAmB,CAAC;;;;;;;;;;;;;;wBAAg8B,CAAC;;;;;uCAAioB,CAAC;oFAAuJ,CAAC;6EAAyJ,CAAC;;oBAAiI,CAAC;;MADv3Z,CAAC"}
@@ -1,2 +1,138 @@
1
- export declare const BlockSelectionKit: any[];
1
+ export declare const BlockSelectionKit: import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"blockSelection", {
2
+ anchorId?: string | null;
3
+ areaOptions?: {
4
+ document?: Document;
5
+ } & {
6
+ container?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
7
+ behaviour?: {
8
+ intersect?: ("center" | "cover" | "touch") | undefined;
9
+ overlap?: ("drop" | "invert" | "keep") | undefined;
10
+ scrolling?: {
11
+ manualSpeed?: number | undefined;
12
+ speedDivider?: number | undefined;
13
+ startScrollMargins?: {
14
+ x?: number | undefined;
15
+ y?: number | undefined;
16
+ } | undefined;
17
+ } | undefined;
18
+ startThreshold?: number | {
19
+ x?: number | undefined;
20
+ y?: number | undefined;
21
+ } | undefined;
22
+ triggers?: ((0 | 1 | 2 | 3 | 4) | {
23
+ button: 0 | 1 | 2 | 3 | 4;
24
+ modifiers: ("shift" | "alt" | "ctrl")[];
25
+ })[] | undefined;
26
+ } | undefined;
27
+ boundaries?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
28
+ features?: {
29
+ range?: boolean | undefined;
30
+ singleTap?: {
31
+ allow?: boolean | undefined;
32
+ intersect?: ("touch" | "native") | undefined;
33
+ } | undefined;
34
+ touch?: boolean | undefined;
35
+ } | undefined;
36
+ selectables?: (string | string[]) | undefined;
37
+ selectionAreaClass?: string | undefined;
38
+ startAreas?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
39
+ };
40
+ editorPaddingRight?: import('react').CSSProperties["width"];
41
+ enableContextMenu?: boolean;
42
+ disableSelectAll?: boolean;
43
+ isSelecting?: boolean;
44
+ isSelectionAreaVisible?: boolean;
45
+ rightSelectionAreaClassName?: string;
46
+ selectedIds?: Set<string>;
47
+ shadowInputRef?: React.RefObject<HTMLInputElement | null>;
48
+ isSelectable?: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
49
+ onKeyDownSelecting?: (editor: import('platejs').SlateEditor, e: KeyboardEvent) => void;
50
+ }, {
51
+ blockSelection: {
52
+ addOnContextMenu: import('platejs').OmitFirst<(editor: import('platejs/react').PlateEditor, { disabledWhenFocused, element, event }: {
53
+ element: import('platejs').TElement;
54
+ event: React.MouseEvent<HTMLDivElement, MouseEvent>;
55
+ disabledWhenFocused?: boolean;
56
+ }) => void>;
57
+ setSelectedIds: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { added, ids, removed }: Partial<{
58
+ added: Element[];
59
+ removed: Element[];
60
+ }> & {
61
+ ids?: string[];
62
+ }) => void>;
63
+ add: (id: string[] | string) => void;
64
+ addSelectedRow: (id: string, options?: {
65
+ clear?: boolean;
66
+ delay?: number;
67
+ }) => void;
68
+ clear: () => void;
69
+ delete: (id: string[] | string) => void;
70
+ deselect: () => void;
71
+ first: () => import('platejs').NodeEntry<import('platejs').TIdElement> | null;
72
+ focus: () => void;
73
+ getNodes: (options?: {
74
+ collapseTableRows?: boolean;
75
+ selectionFallback?: boolean;
76
+ sort?: boolean;
77
+ }) => import('platejs').NodeEntry<import('platejs').TIdElement>[];
78
+ has: (id: string[] | string) => boolean;
79
+ isSelectable: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
80
+ moveSelection: (direction: "down" | "up") => void;
81
+ resetSelectedIds: () => void;
82
+ selectAll: () => void;
83
+ set: (id: string[] | string) => void;
84
+ shiftSelection: (direction: "down" | "up") => void;
85
+ unselect: () => void;
86
+ };
87
+ } & Record<"blockSelection", Partial<{
88
+ addOnContextMenu: import('platejs').OmitFirst<(editor: import('platejs/react').PlateEditor, { disabledWhenFocused, element, event }: {
89
+ element: import('platejs').TElement;
90
+ event: React.MouseEvent<HTMLDivElement, MouseEvent>;
91
+ disabledWhenFocused?: boolean;
92
+ }) => void>;
93
+ setSelectedIds: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { added, ids, removed }: Partial<{
94
+ added: Element[];
95
+ removed: Element[];
96
+ }> & {
97
+ ids?: string[];
98
+ }) => void>;
99
+ add: (id: string[] | string) => void;
100
+ addSelectedRow: (id: string, options?: {
101
+ clear?: boolean;
102
+ delay?: number;
103
+ }) => void;
104
+ clear: () => void;
105
+ delete: (id: string[] | string) => void;
106
+ deselect: () => void;
107
+ first: () => import('platejs').NodeEntry<import('platejs').TIdElement> | null;
108
+ focus: () => void;
109
+ getNodes: (options?: {
110
+ collapseTableRows?: boolean;
111
+ selectionFallback?: boolean;
112
+ sort?: boolean;
113
+ }) => import('platejs').NodeEntry<import('platejs').TIdElement>[];
114
+ has: (id: string[] | string) => boolean;
115
+ isSelectable: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
116
+ moveSelection: (direction: "down" | "up") => void;
117
+ resetSelectedIds: () => void;
118
+ selectAll: () => void;
119
+ set: (id: string[] | string) => void;
120
+ shiftSelection: (direction: "down" | "up") => void;
121
+ unselect: () => void;
122
+ }>>, Record<"blockSelection", {
123
+ duplicate: () => void;
124
+ insertBlocksAndSelect: (nodes: import('platejs').TElement[], args_1: {
125
+ at: import('platejs').Path;
126
+ insertedCallback?: () => void;
127
+ }) => void;
128
+ removeNodes: () => void;
129
+ select: () => void;
130
+ selectBlocks: (at: import('platejs').Path | import('platejs').TNode) => void;
131
+ setIndent: (indent: number, options?: import('platejs').SetNodesOptions | undefined) => void;
132
+ setNodes: (props: Partial<Omit<import('platejs').TElement, "children">>, options?: import('platejs').SetNodesOptions | undefined) => void;
133
+ setTexts: (props: Partial<Omit<import('platejs').TText, "text">>, options?: Omit<import('platejs').SetNodesOptions, "at"> | undefined) => void;
134
+ }>, {
135
+ isSelected?: (id?: string) => boolean;
136
+ isSelectingSome?: () => boolean;
137
+ }>>[];
2
138
  //# sourceMappingURL=block-selection-kit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"block-selection-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/block-selection-kit.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB,OAuB7B,CAAC"}
1
+ {"version":3,"file":"block-selection-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/block-selection-kit.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAwB41E,CAAC;;;;;;eAAod,CAAC;;;4CAA+5I,CAAC;iBAAe,CAAC;iBAAsB,CAAC;;;;;;;0BAA8sB,CAAC;6BAA2B,CAAC;6BAAsK,CAAC;gBAAqB,CAAC;;;;;;;;;;;;;;;2BAAr0L,CAAC;;;;;;WAAod,CAAC;;;wCAAimN,CAAC;aAAa,CAAC;aAAoB,CAAC;;;;;;;sBAAsqB,CAAC;yBAAyB,CAAC;yBAA4J,CAAC;YAAmB,CAAC;;;;;;;;;;;;;;wBAAg8B,CAAC;;;;;uCAAioB,CAAC;oFAAuJ,CAAC;6EAAyJ,CAAC;;oBAAiI,CAAC;;KAD7zY,CAAC"}
@@ -1,2 +1,12 @@
1
- export declare const CursorOverlayKit: any[];
1
+ export declare const CursorOverlayKit: import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"cursorOverlay", {
2
+ cursors: Record<string, import('@platejs/selection/react').CursorState<import('@platejs/selection/react').CursorData>>;
3
+ }, {
4
+ cursorOverlay: {
5
+ addCursor: (id: string, cursor: Omit<import('@platejs/selection/react').CursorState<import('@platejs/selection/react').CursorData>, "id">) => void;
6
+ removeCursor: (id: (string & {}) | "drag" | "selection") => void;
7
+ };
8
+ } & Record<"cursorOverlay", {
9
+ addCursor: (id: string, cursor: Omit<import('@platejs/selection/react').CursorState<import('@platejs/selection/react').CursorData>, "id">) => void;
10
+ removeCursor: (id: (string & {}) | "drag" | "selection") => void;
11
+ }>, {}, {}>>[];
2
12
  //# sourceMappingURL=cursor-overlay-kit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cursor-overlay-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/cursor-overlay-kit.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,OAM5B,CAAC"}
1
+ {"version":3,"file":"cursor-overlay-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/cursor-overlay-kit.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB;;;;;;;;;;cAM5B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { default as emojiMartData } from '@emoji-mart/data';
2
2
  export declare const EmojiKit: (import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"emoji", {
3
3
  data?: emojiMartData.EmojiMartData;
4
- createEmojiNode?: (emoji: emojiMartData.Emoji) => import('platejs').Descendant;
4
+ createEmojiNode?: (emoji: emojiMartData.Emoji) => any;
5
5
  } & import('@platejs/combobox').TriggerComboboxPluginOptions, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"emoji_input", {}, {}, {}, {}>>)[];
6
6
  //# sourceMappingURL=emoji-kit.d.ts.map
@@ -1,4 +1,4 @@
1
1
  export declare const BaseLineHeightKit: import('platejs').SlatePlugin<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
  }>, {}>>[];
4
4
  //# sourceMappingURL=line-height-base-kit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"line-height-base-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/line-height-base-kit.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB;6CAWyqC,CAAC;UADvsC,CAAC"}
1
+ {"version":3,"file":"line-height-base-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/line-height-base-kit.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB;qCAWiqC,CAAC;UAD/rC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export declare const LineHeightKit: 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
  }>, {}>>[];
4
4
  //# sourceMappingURL=line-height-kit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"line-height-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/line-height-kit.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa;6CAWi3B,CAAC;UAD34B,CAAC"}
1
+ {"version":3,"file":"line-height-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/line-height-kit.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa;qCAWs2B,CAAC;UADh4B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"media-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/media-kit.tsx"],"names":[],"mappings":"AAsBA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;wCAqBqmnH,CAAC;cAA8C,CAAC;;;;;;;;;iDAdxqnH,CAFD;;;;;;;;;;;MAeA,CAAC"}
1
+ {"version":3,"file":"media-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/media-kit.tsx"],"names":[],"mappings":"AAsBA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;wCAqBi1/G,CAAC;cAA8C,CAAC;;;;;;;;;iDArBt5/G,CADA;;;;;;;;;;;MAqBC,CAAC"}
@@ -1,2 +1,95 @@
1
- export declare const BaseTableKit: any[];
1
+ export declare const BaseTableKit: (import('platejs').SlatePlugin<import('platejs').PluginConfig<"table", {
2
+ _cellIndices: Record<string, {
3
+ col: number;
4
+ row: number;
5
+ }>;
6
+ _selectedCellIds: string[] | null | undefined;
7
+ _selectedTableIds: string[] | null | undefined;
8
+ _selectionVersion: number;
9
+ selectedCells: import('platejs').TElement[] | null;
10
+ selectedTables: import('platejs').TElement[] | null;
11
+ disableExpandOnInsert?: boolean;
12
+ disableMarginLeft?: boolean;
13
+ disableMerge?: boolean;
14
+ enableUnsetSingleColSize?: boolean;
15
+ initialTableWidth?: number;
16
+ minColumnWidth?: number;
17
+ }, {
18
+ create: {
19
+ table: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { colCount, header, rowCount, ...cellOptions }?: import('@platejs/table').GetEmptyTableNodeOptions) => import('platejs').TTableElement>;
20
+ tableCell: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { children, header, row }?: import('@platejs/table').CreateCellOptions) => {
21
+ children: import('platejs').Descendant[];
22
+ type: string;
23
+ }>;
24
+ tableRow: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { colCount, ...cellOptions }?: import('@platejs/table').GetEmptyRowNodeOptions) => {
25
+ children: {
26
+ children: import('platejs').Descendant[];
27
+ type: string;
28
+ }[];
29
+ type: string;
30
+ }>;
31
+ };
32
+ table: {
33
+ getCellBorders: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { cellIndices, defaultBorder, element }: {
34
+ element: import('platejs').TTableCellElement;
35
+ cellIndices?: import('@platejs/table').CellIndices;
36
+ defaultBorder?: import('platejs').TTableCellBorder;
37
+ }) => import('@platejs/table').BorderStylesDefault>;
38
+ getCellSize: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { cellIndices, colSizes, element, rowSize }: {
39
+ element: import('platejs').TTableCellElement;
40
+ cellIndices?: import('@platejs/table').CellIndices;
41
+ colSizes?: number[];
42
+ rowSize?: number;
43
+ }) => {
44
+ minHeight: number;
45
+ width: number;
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>;
52
+ getColSpan: (cellElem: import('platejs').TTableCellElement) => number;
53
+ getRowSpan: (cellElem: import('platejs').TTableCellElement) => number;
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>;
57
+ };
58
+ }, {
59
+ insert: {
60
+ table: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { colCount, header, rowCount }?: import('@platejs/table').GetEmptyTableNodeOptions, { select: shouldSelect, ...options }?: import('platejs').InsertNodesOptions) => void>;
61
+ tableColumn: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, options?: {
62
+ at?: import('platejs').Path;
63
+ before?: boolean;
64
+ fromCell?: import('platejs').Path;
65
+ header?: boolean;
66
+ select?: boolean;
67
+ }) => void>;
68
+ tableRow: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, options?: {
69
+ at?: import('platejs').Path;
70
+ before?: boolean;
71
+ fromRow?: import('platejs').Path;
72
+ header?: boolean;
73
+ select?: boolean;
74
+ }) => void>;
75
+ };
76
+ remove: {
77
+ table: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
78
+ tableColumn: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
79
+ tableRow: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
80
+ };
81
+ table: {
82
+ merge: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
83
+ split: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor) => void>;
84
+ };
85
+ }, {
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;
94
+ }>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"tr", {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"td", {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"th", {}, {}, {}, {}>>)[];
2
95
  //# sourceMappingURL=table-base-kit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"table-base-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/table-base-kit.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,YAAY,OAKxB,CAAC"}
1
+ {"version":3,"file":"table-base-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/table-base-kit.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAMmyT,CAAC;yBAA8B,CAAC;;;;uBAAyT,CAAC;oBAAyB,CAAC;mBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;cAA43G,CAAC;kBAAsF,CAAC;oBAA0E,CAAC;kBAAgB,CAAC;kBAAmB,CAAC;;;cAA8S,CAAC;kBAAgF,CAAC;mBAAoB,CAAC;kBAAgB,CAAC;kBAAmB,CAAC;;;;;;;;;;;;;;wBAAqtQ,CAAC;;sBAAoF,CAAC;;;;;wQAD9+sB,CAAC"}