@creatorsn/powereditor3 0.0.6 → 0.0.7

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 (43) hide show
  1. package/dist/types/devC/index.d.ts +35 -0
  2. package/dist/types/devC/src/index.vue.d.ts +9 -0
  3. package/dist/types/editor/index.d.ts +2972 -0
  4. package/dist/types/editor/src/components/bubbleToolBar.vue.d.ts +360 -0
  5. package/dist/types/editor/src/components/custom/extension/codeBlockX.d.ts +2 -0
  6. package/dist/types/editor/src/components/custom/extension/drawingBlock.d.ts +3 -0
  7. package/dist/types/editor/src/components/custom/extension/embedBlock.d.ts +3 -0
  8. package/dist/types/editor/src/components/custom/extension/equationBlock.d.ts +3 -0
  9. package/dist/types/editor/src/components/custom/extension/formatPainter.d.ts +3 -0
  10. package/dist/types/editor/src/components/custom/extension/imageBlock.d.ts +3 -0
  11. package/dist/types/editor/src/components/custom/extension/inlineEquation.d.ts +3 -0
  12. package/dist/types/editor/src/components/custom/extension/mentionItem.d.ts +3 -0
  13. package/dist/types/editor/src/components/custom/extension/taskItem.d.ts +3 -0
  14. package/dist/types/editor/src/components/custom/extension/taskList.d.ts +3 -0
  15. package/dist/types/editor/src/components/custom/inputRules/nodeInputWithContentRules.d.ts +8 -0
  16. package/dist/types/editor/src/components/custom/pasteRules/nodePasteRules.d.ts +10 -0
  17. package/dist/types/editor/src/components/custom/source/codeBlockX.vue.d.ts +96 -0
  18. package/dist/types/editor/src/components/custom/source/drawingBlock.vue.d.ts +184 -0
  19. package/dist/types/editor/src/components/custom/source/embedBlock.vue.d.ts +164 -0
  20. package/dist/types/editor/src/components/custom/source/equationBase.vue.d.ts +91 -0
  21. package/dist/types/editor/src/components/custom/source/imageBlock.vue.d.ts +187 -0
  22. package/dist/types/editor/src/components/custom/source/mediaContainer.vue.d.ts +90 -0
  23. package/dist/types/editor/src/components/custom/source/mentionItem.vue.d.ts +92 -0
  24. package/dist/types/editor/src/components/custom/source/taskItem.vue.d.ts +88 -0
  25. package/dist/types/editor/src/components/menus/calloutBase.vue.d.ts +61 -0
  26. package/dist/types/editor/src/components/menus/colorCallout.vue.d.ts +143 -0
  27. package/dist/types/editor/src/components/menus/embedCallout.vue.d.ts +103 -0
  28. package/dist/types/editor/src/components/menus/emojiCallout.vue.d.ts +113 -0
  29. package/dist/types/editor/src/components/menus/headingCallout.vue.d.ts +128 -0
  30. package/dist/types/editor/src/components/menus/imageCallout.vue.d.ts +104 -0
  31. package/dist/types/editor/src/components/menus/linkCallout.vue.d.ts +104 -0
  32. package/dist/types/editor/src/components/menus/tableCallout.vue.d.ts +137 -0
  33. package/dist/types/editor/src/components/toolBar.vue.d.ts +928 -0
  34. package/dist/types/editor/src/index.vue.d.ts +1451 -0
  35. package/dist/types/editor/src/js/emojiList.d.ts +5 -0
  36. package/dist/types/editor/src/js/lowlight/index.d.ts +2 -0
  37. package/dist/types/editor/src/js/markdown/decoder.d.ts +66 -0
  38. package/dist/types/editor/src/js/markdown/encoder.d.ts +10 -0
  39. package/dist/types/editor/src/js/markdown/index.d.ts +3 -0
  40. package/dist/types/i18n/i18n.d.ts +2 -0
  41. package/dist/types/index.d.ts +11 -0
  42. package/dist/types/install.d.ts +4 -0
  43. package/package.json +4 -3
@@ -0,0 +1,360 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ editor: {
3
+ default: () => {};
4
+ };
5
+ showSave: {
6
+ default: boolean;
7
+ };
8
+ mobileMode: {
9
+ default: boolean;
10
+ };
11
+ foreground: {
12
+ default: string;
13
+ };
14
+ language: {
15
+ default: string;
16
+ };
17
+ theme: {
18
+ default: string;
19
+ };
20
+ }>, {}, {
21
+ thisTheme: string;
22
+ timer: {
23
+ formatPainter: null;
24
+ };
25
+ }, {
26
+ highlightColor(): {
27
+ f: string;
28
+ b: string;
29
+ };
30
+ }, {
31
+ getTitle(name: any): any;
32
+ getForeground(state: any, color?: {
33
+ light: string;
34
+ dark: string;
35
+ }): any;
36
+ getBackground(state: any): string;
37
+ exec(cmd: any): void;
38
+ execMore(name: any, params: any): void;
39
+ insert(html: any): void;
40
+ insertEmoji(emoji: any): void;
41
+ insertImg(base64_list: any): void;
42
+ insertLink(link: any): void;
43
+ insertEmbed(link: any): void;
44
+ insertInlineEquation(text?: string): void;
45
+ insertEquationBlock(): void;
46
+ insertEquation(): void;
47
+ insertDrawingBlock(): void;
48
+ formatPainterClick(): void;
49
+ formatPainterDoubleClick(): void;
50
+ save(): void;
51
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:theme" | "save-click")[], "update:theme" | "save-click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
52
+ editor: {
53
+ default: () => {};
54
+ };
55
+ showSave: {
56
+ default: boolean;
57
+ };
58
+ mobileMode: {
59
+ default: boolean;
60
+ };
61
+ foreground: {
62
+ default: string;
63
+ };
64
+ language: {
65
+ default: string;
66
+ };
67
+ theme: {
68
+ default: string;
69
+ };
70
+ }>> & Readonly<{
71
+ "onUpdate:theme"?: ((...args: any[]) => any) | undefined;
72
+ "onSave-click"?: ((...args: any[]) => any) | undefined;
73
+ }>, {
74
+ editor: {};
75
+ theme: string;
76
+ foreground: string;
77
+ mobileMode: boolean;
78
+ language: string;
79
+ showSave: boolean;
80
+ }, {}, {
81
+ colorCallout: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
82
+ foreground: {
83
+ default: string;
84
+ };
85
+ getBackground: {
86
+ default: () => void;
87
+ };
88
+ getForeground: {
89
+ default: () => void;
90
+ };
91
+ exec: {
92
+ default: () => void;
93
+ };
94
+ execMore: {
95
+ default: () => void;
96
+ };
97
+ editor: {
98
+ default: null;
99
+ };
100
+ mobileMode: {
101
+ default: boolean;
102
+ };
103
+ language: {
104
+ default: string;
105
+ };
106
+ theme: {
107
+ default: string;
108
+ };
109
+ }>, {}, {
110
+ show: boolean;
111
+ colorList: {
112
+ name: string;
113
+ color: string;
114
+ }[];
115
+ highlightList: {
116
+ name: string;
117
+ color: string;
118
+ }[];
119
+ }, {}, {
120
+ getTitle(name: any): any;
121
+ execX(a: any): void;
122
+ execMoreX(a: any, b: any): void;
123
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
124
+ foreground: {
125
+ default: string;
126
+ };
127
+ getBackground: {
128
+ default: () => void;
129
+ };
130
+ getForeground: {
131
+ default: () => void;
132
+ };
133
+ exec: {
134
+ default: () => void;
135
+ };
136
+ execMore: {
137
+ default: () => void;
138
+ };
139
+ editor: {
140
+ default: null;
141
+ };
142
+ mobileMode: {
143
+ default: boolean;
144
+ };
145
+ language: {
146
+ default: string;
147
+ };
148
+ theme: {
149
+ default: string;
150
+ };
151
+ }>> & Readonly<{}>, {
152
+ editor: null;
153
+ theme: string;
154
+ foreground: string;
155
+ mobileMode: boolean;
156
+ language: string;
157
+ getBackground: void;
158
+ getForeground: void;
159
+ exec: void;
160
+ execMore: void;
161
+ }, {}, {
162
+ calloutBase: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
163
+ popperClass: {
164
+ default: never[];
165
+ };
166
+ title: {
167
+ default: string;
168
+ };
169
+ show: {
170
+ default: boolean;
171
+ };
172
+ mobileMode: {
173
+ default: boolean;
174
+ };
175
+ foreground: {
176
+ default: string;
177
+ };
178
+ language: {
179
+ default: string;
180
+ };
181
+ theme: {
182
+ default: string;
183
+ };
184
+ }>, {}, {
185
+ thisShow: boolean;
186
+ }, {}, {
187
+ getTitle(name: any): any;
188
+ triggerShow(): void;
189
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
190
+ popperClass: {
191
+ default: never[];
192
+ };
193
+ title: {
194
+ default: string;
195
+ };
196
+ show: {
197
+ default: boolean;
198
+ };
199
+ mobileMode: {
200
+ default: boolean;
201
+ };
202
+ foreground: {
203
+ default: string;
204
+ };
205
+ language: {
206
+ default: string;
207
+ };
208
+ theme: {
209
+ default: string;
210
+ };
211
+ }>> & Readonly<{
212
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
213
+ }>, {
214
+ title: string;
215
+ theme: string;
216
+ foreground: string;
217
+ show: boolean;
218
+ popperClass: never[];
219
+ mobileMode: boolean;
220
+ language: string;
221
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
222
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
223
+ TableCallout: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
224
+ mobileMode: {
225
+ default: boolean;
226
+ };
227
+ foreground: {
228
+ default: string;
229
+ };
230
+ getBackground: {
231
+ default: () => void;
232
+ };
233
+ getForeground: {
234
+ default: () => void;
235
+ };
236
+ exec: {
237
+ default: () => void;
238
+ };
239
+ execMore: {
240
+ default: () => void;
241
+ };
242
+ editor: {
243
+ default: null;
244
+ };
245
+ language: {
246
+ default: string;
247
+ };
248
+ theme: {
249
+ default: string;
250
+ };
251
+ }>, {}, {
252
+ row: string;
253
+ column: string;
254
+ show: boolean;
255
+ }, {}, {
256
+ getTitle(name: any): any;
257
+ execX(a: any): void;
258
+ execMoreX(a: any, b: any): void;
259
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
260
+ mobileMode: {
261
+ default: boolean;
262
+ };
263
+ foreground: {
264
+ default: string;
265
+ };
266
+ getBackground: {
267
+ default: () => void;
268
+ };
269
+ getForeground: {
270
+ default: () => void;
271
+ };
272
+ exec: {
273
+ default: () => void;
274
+ };
275
+ execMore: {
276
+ default: () => void;
277
+ };
278
+ editor: {
279
+ default: null;
280
+ };
281
+ language: {
282
+ default: string;
283
+ };
284
+ theme: {
285
+ default: string;
286
+ };
287
+ }>> & Readonly<{}>, {
288
+ editor: null;
289
+ theme: string;
290
+ foreground: string;
291
+ mobileMode: boolean;
292
+ language: string;
293
+ getBackground: void;
294
+ getForeground: void;
295
+ exec: void;
296
+ execMore: void;
297
+ }, {}, {
298
+ calloutBase: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
299
+ popperClass: {
300
+ default: never[];
301
+ };
302
+ title: {
303
+ default: string;
304
+ };
305
+ show: {
306
+ default: boolean;
307
+ };
308
+ mobileMode: {
309
+ default: boolean;
310
+ };
311
+ foreground: {
312
+ default: string;
313
+ };
314
+ language: {
315
+ default: string;
316
+ };
317
+ theme: {
318
+ default: string;
319
+ };
320
+ }>, {}, {
321
+ thisShow: boolean;
322
+ }, {}, {
323
+ getTitle(name: any): any;
324
+ triggerShow(): void;
325
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
326
+ popperClass: {
327
+ default: never[];
328
+ };
329
+ title: {
330
+ default: string;
331
+ };
332
+ show: {
333
+ default: boolean;
334
+ };
335
+ mobileMode: {
336
+ default: boolean;
337
+ };
338
+ foreground: {
339
+ default: string;
340
+ };
341
+ language: {
342
+ default: string;
343
+ };
344
+ theme: {
345
+ default: string;
346
+ };
347
+ }>> & Readonly<{
348
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
349
+ }>, {
350
+ title: string;
351
+ theme: string;
352
+ foreground: string;
353
+ show: boolean;
354
+ popperClass: never[];
355
+ mobileMode: boolean;
356
+ language: string;
357
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
358
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
359
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
360
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@tiptap/core").Node<import("@tiptap/extension-code-block-lowlight").CodeBlockLowlightOptions, any>;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const _default: Node<any, any>;
2
+ export default _default;
3
+ import { Node } from '@tiptap/vue-3';
@@ -0,0 +1,3 @@
1
+ declare const _default: Node<any, any>;
2
+ export default _default;
3
+ import { Node } from '@tiptap/core';
@@ -0,0 +1,3 @@
1
+ declare const _default: Node<any, any>;
2
+ export default _default;
3
+ import { Node } from '@tiptap/core';
@@ -0,0 +1,3 @@
1
+ declare const _default: Extension<any, any>;
2
+ export default _default;
3
+ import { Extension } from '@tiptap/core';
@@ -0,0 +1,3 @@
1
+ declare const _default: Node<any, any>;
2
+ export default _default;
3
+ import { Node } from '@tiptap/core';
@@ -0,0 +1,3 @@
1
+ declare const _default: Node<any, any>;
2
+ export default _default;
3
+ import { Node } from '@tiptap/core';
@@ -0,0 +1,3 @@
1
+ declare const _default: Node<any, any>;
2
+ export default _default;
3
+ import { Node } from '@tiptap/core';
@@ -0,0 +1,3 @@
1
+ declare const _default: Node<any, any>;
2
+ export default _default;
3
+ import { Node } from '@tiptap/core';
@@ -0,0 +1,3 @@
1
+ declare const _default: Node<any, any>;
2
+ export default _default;
3
+ import { Node } from '@tiptap/core';
@@ -0,0 +1,8 @@
1
+ export function nodeInputWithContentRule({ find, type, getAttributes, content, overlapIgnore }: {
2
+ find: any;
3
+ type: any;
4
+ getAttributes: any;
5
+ content: any;
6
+ overlapIgnore?: never[] | undefined;
7
+ }): InputRule;
8
+ import { InputRule } from '@tiptap/core';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Build an paste rule that adds a node when the
3
+ * matched text is pasted into it.
4
+ */
5
+ export function nodePasteRule({ find, type, getAttributes }: {
6
+ find: any;
7
+ type: any;
8
+ getAttributes: any;
9
+ }): PasteRule;
10
+ import { PasteRule } from '@tiptap/core';
@@ -0,0 +1,96 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ editor: {
3
+ type: ObjectConstructor;
4
+ };
5
+ node: {
6
+ type: ObjectConstructor;
7
+ };
8
+ decorations: {
9
+ type: ArrayConstructor;
10
+ };
11
+ selected: {
12
+ type: BooleanConstructor;
13
+ };
14
+ extension: {
15
+ type: ObjectConstructor;
16
+ };
17
+ getPos: {
18
+ type: FunctionConstructor;
19
+ };
20
+ updateAttributes: {
21
+ type: FunctionConstructor;
22
+ };
23
+ deleteNode: {
24
+ type: FunctionConstructor;
25
+ };
26
+ }>, {}, {
27
+ selectedLanguage: {};
28
+ status: {
29
+ copy: boolean;
30
+ };
31
+ timer: {
32
+ copy: null;
33
+ };
34
+ }, {
35
+ languages(): {
36
+ key: any;
37
+ text: any;
38
+ }[];
39
+ }, {
40
+ copyCode(): void;
41
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
+ editor: {
43
+ type: ObjectConstructor;
44
+ };
45
+ node: {
46
+ type: ObjectConstructor;
47
+ };
48
+ decorations: {
49
+ type: ArrayConstructor;
50
+ };
51
+ selected: {
52
+ type: BooleanConstructor;
53
+ };
54
+ extension: {
55
+ type: ObjectConstructor;
56
+ };
57
+ getPos: {
58
+ type: FunctionConstructor;
59
+ };
60
+ updateAttributes: {
61
+ type: FunctionConstructor;
62
+ };
63
+ deleteNode: {
64
+ type: FunctionConstructor;
65
+ };
66
+ }>> & Readonly<{}>, {
67
+ selected: boolean;
68
+ }, {}, {
69
+ NodeViewWrapper: import("vue").DefineComponent<{
70
+ as: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
75
+ as: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ };
79
+ }>>, {
80
+ as: string;
81
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
82
+ NodeViewContent: import("vue").DefineComponent<{
83
+ as: {
84
+ type: StringConstructor;
85
+ default: string;
86
+ };
87
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
88
+ as: {
89
+ type: StringConstructor;
90
+ default: string;
91
+ };
92
+ }>>, {
93
+ as: string;
94
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
95
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
96
+ export default _default;