@creatorsn/powereditor3 0.0.5 → 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,5 @@
1
+ declare const _default: {
2
+ name: string;
3
+ emojis: string[];
4
+ }[];
5
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { lowlight };
2
+ import { lowlight } from 'lowlight/lib/core';
@@ -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,10 @@
1
+ export class Encoder {
2
+ constructor(htmlParseNodes?: any[]);
3
+ md: MarkdownIt;
4
+ htmlParseNodes: any[];
5
+ encoder(text: any): {
6
+ type: string;
7
+ content: never[];
8
+ };
9
+ }
10
+ import MarkdownIt from "markdown-it";
@@ -0,0 +1,3 @@
1
+ import { Encoder } from "./encoder.js";
2
+ import { Decoder } from "./decoder.js";
3
+ export { Encoder, Decoder };
@@ -0,0 +1,2 @@
1
+ declare function _default(text: any, language?: string): any;
2
+ export default _default;
@@ -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;
@@ -0,0 +1,4 @@
1
+ import type { Plugin } from 'vue';
2
+ type ComponentPlugin<T> = T & Plugin;
3
+ export declare const convertPlugin: <T>(component: T) => ComponentPlugin<T>;
4
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@creatorsn/powereditor3",
3
3
  "private": false,
4
- "version": "0.0.5",
4
+ "version": "0.0.7",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -12,7 +12,7 @@
12
12
  ".": {
13
13
  "import": "./dist/powereditor3.js",
14
14
  "require": "./dist/powereditor3.umd.cjs",
15
- "types": "./dist/types/packages/index.d.ts"
15
+ "types": "./dist/types/index.d.ts"
16
16
  },
17
17
  "./powereditor3.css": "./dist/powereditor3.css"
18
18
  },
@@ -23,7 +23,7 @@
23
23
  "docs:dev": "vitepress dev docs",
24
24
  "docs:build": "vitepress build docs",
25
25
  "dev": "vite",
26
- "build": "vue-tsc -b && vite build",
26
+ "build": "vite build && vue-tsc --emitDeclarationOnly",
27
27
  "preview": "vite preview"
28
28
  },
29
29
  "dependencies": {
@@ -65,6 +65,7 @@
65
65
  "path": "^0.12.7",
66
66
  "sass": "^1.89.2",
67
67
  "simplify-js": "^1.2.4",
68
+ "unplugin-vue-define-options": "^3.0.0-beta.14",
68
69
  "url": "^0.11.4",
69
70
  "vue": "^3.5.13"
70
71
  },