@creatorsn/powereditor3 0.0.6 → 0.0.8
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/types/devC/index.d.ts +35 -0
- package/dist/types/devC/src/index.vue.d.ts +9 -0
- package/dist/types/editor/index.d.ts +2972 -0
- package/dist/types/editor/src/components/bubbleToolBar.vue.d.ts +360 -0
- package/dist/types/editor/src/components/custom/extension/codeBlockX.d.ts +2 -0
- package/dist/types/editor/src/components/custom/extension/drawingBlock.d.ts +3 -0
- package/dist/types/editor/src/components/custom/extension/embedBlock.d.ts +3 -0
- package/dist/types/editor/src/components/custom/extension/equationBlock.d.ts +3 -0
- package/dist/types/editor/src/components/custom/extension/formatPainter.d.ts +3 -0
- package/dist/types/editor/src/components/custom/extension/imageBlock.d.ts +3 -0
- package/dist/types/editor/src/components/custom/extension/inlineEquation.d.ts +3 -0
- package/dist/types/editor/src/components/custom/extension/mentionItem.d.ts +3 -0
- package/dist/types/editor/src/components/custom/extension/taskItem.d.ts +3 -0
- package/dist/types/editor/src/components/custom/extension/taskList.d.ts +3 -0
- package/dist/types/editor/src/components/custom/inputRules/nodeInputWithContentRules.d.ts +8 -0
- package/dist/types/editor/src/components/custom/pasteRules/nodePasteRules.d.ts +10 -0
- package/dist/types/editor/src/components/custom/source/codeBlockX.vue.d.ts +96 -0
- package/dist/types/editor/src/components/custom/source/drawingBlock.vue.d.ts +184 -0
- package/dist/types/editor/src/components/custom/source/embedBlock.vue.d.ts +164 -0
- package/dist/types/editor/src/components/custom/source/equationBase.vue.d.ts +91 -0
- package/dist/types/editor/src/components/custom/source/imageBlock.vue.d.ts +187 -0
- package/dist/types/editor/src/components/custom/source/mediaContainer.vue.d.ts +90 -0
- package/dist/types/editor/src/components/custom/source/mentionItem.vue.d.ts +92 -0
- package/dist/types/editor/src/components/custom/source/taskItem.vue.d.ts +88 -0
- package/dist/types/editor/src/components/menus/calloutBase.vue.d.ts +61 -0
- package/dist/types/editor/src/components/menus/colorCallout.vue.d.ts +143 -0
- package/dist/types/editor/src/components/menus/embedCallout.vue.d.ts +103 -0
- package/dist/types/editor/src/components/menus/emojiCallout.vue.d.ts +113 -0
- package/dist/types/editor/src/components/menus/headingCallout.vue.d.ts +128 -0
- package/dist/types/editor/src/components/menus/imageCallout.vue.d.ts +104 -0
- package/dist/types/editor/src/components/menus/linkCallout.vue.d.ts +104 -0
- package/dist/types/editor/src/components/menus/tableCallout.vue.d.ts +137 -0
- package/dist/types/editor/src/components/toolBar.vue.d.ts +928 -0
- package/dist/types/editor/src/index.vue.d.ts +1451 -0
- package/dist/types/editor/src/js/emojiList.d.ts +5 -0
- package/dist/types/editor/src/js/lowlight/index.d.ts +2 -0
- package/dist/types/editor/src/js/markdown/decoder.d.ts +66 -0
- package/dist/types/editor/src/js/markdown/encoder.d.ts +10 -0
- package/dist/types/editor/src/js/markdown/index.d.ts +3 -0
- package/dist/types/i18n/i18n.d.ts +2 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/install.d.ts +4 -0
- package/package.json +5 -3
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export class Decoder {
|
|
2
|
+
constructor(decNodeFuncsPlugins?: {}, flags?: {});
|
|
3
|
+
flags: {
|
|
4
|
+
inline: boolean;
|
|
5
|
+
inlineWrapper: boolean;
|
|
6
|
+
heading: boolean;
|
|
7
|
+
bulletList: boolean;
|
|
8
|
+
orderedList: boolean;
|
|
9
|
+
blockquote: boolean;
|
|
10
|
+
powerTaskItem: boolean;
|
|
11
|
+
powerTaskList: boolean;
|
|
12
|
+
tableHeader: boolean;
|
|
13
|
+
tableCell: boolean;
|
|
14
|
+
tableRow: boolean;
|
|
15
|
+
table: boolean;
|
|
16
|
+
};
|
|
17
|
+
DecNodeFuncs: {
|
|
18
|
+
heading(node: any, flags: any): string;
|
|
19
|
+
paragraph(node: any, flags: any): "" | "\n";
|
|
20
|
+
blockquote(node: any, flags: any): string;
|
|
21
|
+
horizontalRule(node: any, flags: any): string;
|
|
22
|
+
hardBreak(node: any, flags: any): string;
|
|
23
|
+
powerTaskItem(node: any, flags: any): string;
|
|
24
|
+
powerTaskList(node: any, flags: any): string;
|
|
25
|
+
listItem(node: any, flags: any): string;
|
|
26
|
+
bulletList(node: any, flags: any): string;
|
|
27
|
+
orderedList(node: any, flags: any): string;
|
|
28
|
+
codeBlock(node: any, flags: any): {
|
|
29
|
+
prefix: string;
|
|
30
|
+
suffix: string;
|
|
31
|
+
};
|
|
32
|
+
inlineEquation(node: any, flags: any): string;
|
|
33
|
+
equationBlock(node: any, flags: any): string;
|
|
34
|
+
drawingBlock(node: any, flags: any): string;
|
|
35
|
+
imageblock(node: any, flags: any): string;
|
|
36
|
+
tableHeader(node: any, flags: any): {
|
|
37
|
+
prefix: string;
|
|
38
|
+
suffix: string;
|
|
39
|
+
};
|
|
40
|
+
tableCell(node: any, flags: any): {
|
|
41
|
+
prefix: string;
|
|
42
|
+
suffix: string;
|
|
43
|
+
};
|
|
44
|
+
tableRow(node: any, flags: any): {
|
|
45
|
+
prefix: string;
|
|
46
|
+
suffix: string;
|
|
47
|
+
};
|
|
48
|
+
table(node: any, flags: any): {
|
|
49
|
+
prefix: string;
|
|
50
|
+
suffix: string;
|
|
51
|
+
};
|
|
52
|
+
mentionItem(node: any, flags: any): string;
|
|
53
|
+
embedblock(node: any, flags: any): string;
|
|
54
|
+
text(node: any, flags: any): any;
|
|
55
|
+
bold(text: any): string;
|
|
56
|
+
italic(text: any): string;
|
|
57
|
+
strike(text: any): string;
|
|
58
|
+
subscript(text: any): string;
|
|
59
|
+
superscript(text: any): string;
|
|
60
|
+
link(text: any, mark: any): string;
|
|
61
|
+
highlight(text: any): string;
|
|
62
|
+
code(text: any): string;
|
|
63
|
+
};
|
|
64
|
+
decode(doc: any): string;
|
|
65
|
+
renderNode(node: any): any;
|
|
66
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import PowerEditor from './editor';
|
|
3
|
+
import DevC from './devC';
|
|
4
|
+
export declare const PowerEditorPlugins: Plugin;
|
|
5
|
+
declare module 'vue' {
|
|
6
|
+
interface GlobalComponents {
|
|
7
|
+
DevC: typeof DevC;
|
|
8
|
+
PowerEditor: typeof PowerEditor;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export default PowerEditorPlugins;
|
package/package.json
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@creatorsn/powereditor3",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.8",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
11
12
|
"exports": {
|
|
12
13
|
".": {
|
|
13
14
|
"import": "./dist/powereditor3.js",
|
|
14
15
|
"require": "./dist/powereditor3.umd.cjs",
|
|
15
|
-
"types": "./dist/types/
|
|
16
|
+
"types": "./dist/types/index.d.ts"
|
|
16
17
|
},
|
|
17
18
|
"./powereditor3.css": "./dist/powereditor3.css"
|
|
18
19
|
},
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
"docs:dev": "vitepress dev docs",
|
|
24
25
|
"docs:build": "vitepress build docs",
|
|
25
26
|
"dev": "vite",
|
|
26
|
-
"build": "
|
|
27
|
+
"build": "vite build && vue-tsc --emitDeclarationOnly",
|
|
27
28
|
"preview": "vite preview"
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
@@ -65,6 +66,7 @@
|
|
|
65
66
|
"path": "^0.12.7",
|
|
66
67
|
"sass": "^1.89.2",
|
|
67
68
|
"simplify-js": "^1.2.4",
|
|
69
|
+
"unplugin-vue-define-options": "^3.0.0-beta.14",
|
|
68
70
|
"url": "^0.11.4",
|
|
69
71
|
"vue": "^3.5.13"
|
|
70
72
|
},
|