vdc-editor 0.1.62 → 0.1.63
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/README.md +62 -62
- package/lib/src/components/SelectContextMenuMobile.vue.d.ts +2 -0
- package/lib/src/components/SuperInputDialogMoblie.vue.d.ts +1 -0
- package/lib/src/components/ToolbarFormat.vue.d.ts +4 -0
- package/lib/src/components/ToolbarMobile.vue.d.ts +4 -0
- package/lib/src/components/ToolbarTitle.vue.d.ts +17 -0
- package/lib/src/components/editor/CoreEditorMoblie.vue.d.ts +18 -0
- package/lib/src/components/editor/EditorCommentMoblie.vue.d.ts +1 -0
- package/lib/src/components/editor/EditorFieldName.vue.d.ts +35 -0
- package/lib/src/components/icons/icons.d.ts +1 -0
- package/lib/src/components/ui/context-menu/ContextMenuShortcut.vue.d.ts +26 -0
- package/lib/src/components/ui/dialog/DialogScrollContent.vue.d.ts +41 -0
- package/lib/src/components/ui/dialog/DialogTrigger.vue.d.ts +22 -0
- package/lib/src/components/ui/textarea/Textarea.vue.d.ts +25 -0
- package/lib/src/extensions/BaseKit.d.ts +8 -0
- package/lib/src/extensions/ConfigPlan/ConfigPlan.d.ts +15 -0
- package/lib/src/extensions/ConfigPlan/components/ConfigPlan.vue.d.ts +92 -0
- package/lib/src/extensions/ConfigPlan/index.d.ts +1 -0
- package/lib/src/i18n.d.ts +8 -0
- package/lib/src/stores/EditorStore.d.ts +9 -0
- package/lib/src/type.d.ts +35 -1
- package/lib/src/utils/node-names.d.ts +3 -0
- package/lib/style.css +1 -1
- package/lib/vdc-editor.mjs +12233 -11740
- package/lib/vdc-editor.mjs.map +1 -1
- package/lib/vdc-editor.umd.js +80 -76
- package/lib/vdc-editor.umd.js.map +1 -1
- package/package.json +196 -196
package/README.md
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
# Gemiso Web Editor
|
|
2
|
-
|
|
3
|
-
A powerful Vue 3 based rich text editor library with extensive features and customization options.
|
|
4
|
-
|
|
5
|
-
## Tech Stack
|
|
6
|
-
|
|
7
|
-
- **Vue 3** - Progressive JavaScript framework for building user interfaces
|
|
8
|
-
- **TypeScript** - Typed superset of JavaScript that compiles to plain JavaScript
|
|
9
|
-
- **Tiptap** - Headless WYSIWYG text editor framework
|
|
10
|
-
- **Tailwind CSS** - Utility-first CSS framework
|
|
11
|
-
- **Vite** - Next generation frontend tooling
|
|
12
|
-
- **Shadcn UI** - Re-usable components built with Tailwind CSS
|
|
13
|
-
|
|
14
|
-
## Development
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
# Install dependencies
|
|
18
|
-
pnpm install
|
|
19
|
-
|
|
20
|
-
# Start development server
|
|
21
|
-
pnpm dev
|
|
22
|
-
|
|
23
|
-
# Build library
|
|
24
|
-
pnpm build:lib
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Available Scripts
|
|
28
|
-
|
|
29
|
-
In the project directory, you can run:
|
|
30
|
-
|
|
31
|
-
### Development
|
|
32
|
-
|
|
33
|
-
- `pnpm dev` - Starts the development server using Vite
|
|
34
|
-
- `pnpm build:lib` - Builds the library for production
|
|
35
|
-
|
|
36
|
-
### Code Quality
|
|
37
|
-
|
|
38
|
-
- `pnpm prettier` - Formats all files using Prettier
|
|
39
|
-
- `pnpm lint` - Runs ESLint to check for code issues
|
|
40
|
-
- `pnpm lint:fix` - Automatically fixes ESLint issues when possible
|
|
41
|
-
|
|
42
|
-
### Publishing
|
|
43
|
-
|
|
44
|
-
- `pnpm push` - Builds the library and publishes it to npm registry
|
|
45
|
-
|
|
46
|
-
### Version Management
|
|
47
|
-
|
|
48
|
-
- `pnpm version:patch` - Bumps patch version (0.0.x), creates git tag, and publishes
|
|
49
|
-
- `pnpm version:minor` - Bumps minor version (0.x.0), creates git tag, and publishes
|
|
50
|
-
- `pnpm version:major` - Bumps major version (x.0.0), creates git tag, and publishes
|
|
51
|
-
|
|
52
|
-
### Git Hooks
|
|
53
|
-
|
|
54
|
-
- `pnpm prepare` - Sets up Husky for git hooks
|
|
55
|
-
|
|
56
|
-
## License
|
|
57
|
-
|
|
58
|
-
[MIT License](LICENSE)
|
|
59
|
-
|
|
60
|
-
## Contributing
|
|
61
|
-
|
|
62
|
-
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
1
|
+
# Gemiso Web Editor
|
|
2
|
+
|
|
3
|
+
A powerful Vue 3 based rich text editor library with extensive features and customization options.
|
|
4
|
+
|
|
5
|
+
## Tech Stack
|
|
6
|
+
|
|
7
|
+
- **Vue 3** - Progressive JavaScript framework for building user interfaces
|
|
8
|
+
- **TypeScript** - Typed superset of JavaScript that compiles to plain JavaScript
|
|
9
|
+
- **Tiptap** - Headless WYSIWYG text editor framework
|
|
10
|
+
- **Tailwind CSS** - Utility-first CSS framework
|
|
11
|
+
- **Vite** - Next generation frontend tooling
|
|
12
|
+
- **Shadcn UI** - Re-usable components built with Tailwind CSS
|
|
13
|
+
|
|
14
|
+
## Development
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
# Install dependencies
|
|
18
|
+
pnpm install
|
|
19
|
+
|
|
20
|
+
# Start development server
|
|
21
|
+
pnpm dev
|
|
22
|
+
|
|
23
|
+
# Build library
|
|
24
|
+
pnpm build:lib
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Available Scripts
|
|
28
|
+
|
|
29
|
+
In the project directory, you can run:
|
|
30
|
+
|
|
31
|
+
### Development
|
|
32
|
+
|
|
33
|
+
- `pnpm dev` - Starts the development server using Vite
|
|
34
|
+
- `pnpm build:lib` - Builds the library for production
|
|
35
|
+
|
|
36
|
+
### Code Quality
|
|
37
|
+
|
|
38
|
+
- `pnpm prettier` - Formats all files using Prettier
|
|
39
|
+
- `pnpm lint` - Runs ESLint to check for code issues
|
|
40
|
+
- `pnpm lint:fix` - Automatically fixes ESLint issues when possible
|
|
41
|
+
|
|
42
|
+
### Publishing
|
|
43
|
+
|
|
44
|
+
- `pnpm push` - Builds the library and publishes it to npm registry
|
|
45
|
+
|
|
46
|
+
### Version Management
|
|
47
|
+
|
|
48
|
+
- `pnpm version:patch` - Bumps patch version (0.0.x), creates git tag, and publishes
|
|
49
|
+
- `pnpm version:minor` - Bumps minor version (0.x.0), creates git tag, and publishes
|
|
50
|
+
- `pnpm version:major` - Bumps major version (x.0.0), creates git tag, and publishes
|
|
51
|
+
|
|
52
|
+
### Git Hooks
|
|
53
|
+
|
|
54
|
+
- `pnpm prepare` - Sets up Husky for git hooks
|
|
55
|
+
|
|
56
|
+
## License
|
|
57
|
+
|
|
58
|
+
[MIT License](LICENSE)
|
|
59
|
+
|
|
60
|
+
## Contributing
|
|
61
|
+
|
|
62
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
@@ -6,6 +6,7 @@ interface Props {
|
|
|
6
6
|
superTextInit?: string;
|
|
7
7
|
superTextId?: string | number;
|
|
8
8
|
isViewMode?: boolean;
|
|
9
|
+
title?: string;
|
|
9
10
|
}
|
|
10
11
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
12
|
close: () => void;
|
|
@@ -5,13 +5,17 @@ interface Props {
|
|
|
5
5
|
editor: Editor;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
mode: EditorMode;
|
|
8
|
+
activeExtensions?: string[];
|
|
8
9
|
}
|
|
9
10
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
10
11
|
disabled: boolean;
|
|
12
|
+
activeExtensions: () => never[];
|
|
11
13
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
12
14
|
disabled: boolean;
|
|
15
|
+
activeExtensions: () => never[];
|
|
13
16
|
}>>> & Readonly<{}>, {
|
|
14
17
|
disabled: boolean;
|
|
18
|
+
activeExtensions: string[];
|
|
15
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
20
|
export default _default;
|
|
17
21
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -5,13 +5,17 @@ interface Props {
|
|
|
5
5
|
editor: Editor;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
mode: EditorMode;
|
|
8
|
+
activeExtensions?: string[];
|
|
8
9
|
}
|
|
9
10
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
10
11
|
disabled: boolean;
|
|
12
|
+
activeExtensions: () => string[];
|
|
11
13
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
12
14
|
disabled: boolean;
|
|
15
|
+
activeExtensions: () => string[];
|
|
13
16
|
}>>> & Readonly<{}>, {
|
|
14
17
|
disabled: boolean;
|
|
18
|
+
activeExtensions: string[];
|
|
15
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
20
|
export default _default;
|
|
17
21
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TitleBar } from '../type';
|
|
2
|
+
|
|
3
|
+
interface Props {
|
|
4
|
+
titleBar: TitleBar;
|
|
5
|
+
customClass?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -22,6 +22,12 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
22
22
|
fontSizeDefault: string;
|
|
23
23
|
fontFamilyDefault: string;
|
|
24
24
|
isShowFormatControlBar: boolean;
|
|
25
|
+
isScreenSplit: boolean;
|
|
26
|
+
isShowLineNumber: boolean;
|
|
27
|
+
fieldNameComment: null;
|
|
28
|
+
fieldNameContent: null;
|
|
29
|
+
titleBarComment: null;
|
|
30
|
+
titleBarContent: null;
|
|
25
31
|
}>>, {
|
|
26
32
|
editor: Editor;
|
|
27
33
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -52,6 +58,12 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
52
58
|
fontSizeDefault: string;
|
|
53
59
|
fontFamilyDefault: string;
|
|
54
60
|
isShowFormatControlBar: boolean;
|
|
61
|
+
isScreenSplit: boolean;
|
|
62
|
+
isShowLineNumber: boolean;
|
|
63
|
+
fieldNameComment: null;
|
|
64
|
+
fieldNameContent: null;
|
|
65
|
+
titleBarComment: null;
|
|
66
|
+
titleBarContent: null;
|
|
55
67
|
}>>> & Readonly<{
|
|
56
68
|
onChange?: ((value: import('../../type').SBSEditorOnChange) => any) | undefined;
|
|
57
69
|
onEnter?: (() => any) | undefined;
|
|
@@ -79,6 +91,12 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
79
91
|
dark: boolean;
|
|
80
92
|
hideToolbar: boolean;
|
|
81
93
|
isShowFormatControlBar: boolean;
|
|
94
|
+
titleBarComment: import('../../type').TitleBar | null;
|
|
95
|
+
titleBarContent: import('../../type').TitleBar | null;
|
|
96
|
+
fieldNameComment: import('../../type').FieldName | null;
|
|
97
|
+
fieldNameContent: import('../../type').FieldName | null;
|
|
98
|
+
isScreenSplit: any;
|
|
99
|
+
isShowLineNumber: boolean;
|
|
82
100
|
disableBubble: boolean;
|
|
83
101
|
hideBubble: boolean;
|
|
84
102
|
editorClass: string | string[] | Record<string, unknown>;
|
|
@@ -20,6 +20,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
20
20
|
isOpenSuperView: boolean;
|
|
21
21
|
}>>, {
|
|
22
22
|
editor: Editor;
|
|
23
|
+
isFocused: globalThis.Ref<boolean, boolean>;
|
|
23
24
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
25
|
enter: () => void;
|
|
25
26
|
change: (value: import('../../type').SBSEditorOnChange) => void;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EditorMode } from '../../constants';
|
|
2
|
+
import { FieldName } from '../../type';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
fieldName: FieldName;
|
|
6
|
+
mode: EditorMode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
10
|
+
isRequired: boolean;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
13
|
+
isRequired: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
}>>> & Readonly<{}>, {
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: import('vue').PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type __VLS_WithDefaults<P, D> = {
|
|
29
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
|
+
default: D[K];
|
|
31
|
+
}> : P[K];
|
|
32
|
+
};
|
|
33
|
+
type __VLS_Prettify<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
class?: HTMLAttributes["class"];
|
|
8
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
class?: HTMLAttributes["class"];
|
|
10
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { DialogContentProps } from 'radix-vue';
|
|
3
|
+
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DialogContentProps & {
|
|
8
|
+
class?: HTMLAttributes["class"];
|
|
9
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
closeAutoFocus: (event: Event) => void;
|
|
11
|
+
escapeKeyDown: (event: KeyboardEvent) => void;
|
|
12
|
+
pointerDownOutside: (event: import('radix-vue/dist/DismissableLayer').PointerDownOutsideEvent) => void;
|
|
13
|
+
openAutoFocus: (event: Event) => void;
|
|
14
|
+
focusOutside: (event: import('radix-vue/dist/DismissableLayer').FocusOutsideEvent) => void;
|
|
15
|
+
interactOutside: (event: import('radix-vue/dist/DismissableLayer').PointerDownOutsideEvent | import('radix-vue/dist/DismissableLayer').FocusOutsideEvent) => void;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DialogContentProps & {
|
|
17
|
+
class?: HTMLAttributes["class"];
|
|
18
|
+
}>>> & Readonly<{
|
|
19
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
20
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
21
|
+
onPointerDownOutside?: ((event: import('radix-vue/dist/DismissableLayer').PointerDownOutsideEvent) => any) | undefined;
|
|
22
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
23
|
+
onFocusOutside?: ((event: import('radix-vue/dist/DismissableLayer').FocusOutsideEvent) => any) | undefined;
|
|
24
|
+
onInteractOutside?: ((event: import('radix-vue/dist/DismissableLayer').PointerDownOutsideEvent | import('radix-vue/dist/DismissableLayer').FocusOutsideEvent) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
30
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
31
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
32
|
+
} : {
|
|
33
|
+
type: import('vue').PropType<T[K]>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DialogTriggerProps } from 'radix-vue';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DialogTriggerProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DialogTriggerProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
class?: HTMLAttributes["class"];
|
|
5
|
+
defaultValue?: string | number;
|
|
6
|
+
modelValue?: string | number;
|
|
7
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (payload: string | number) => void;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
class?: HTMLAttributes["class"];
|
|
11
|
+
defaultValue?: string | number;
|
|
12
|
+
modelValue?: string | number;
|
|
13
|
+
}>>> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -117,6 +117,14 @@ export interface BaseKitOptions {
|
|
|
117
117
|
superText: {
|
|
118
118
|
specialCharModal: any;
|
|
119
119
|
} | boolean;
|
|
120
|
+
/**
|
|
121
|
+
* configPlan options or false, indicating whether to enable the super text
|
|
122
|
+
*
|
|
123
|
+
* @default true
|
|
124
|
+
*/
|
|
125
|
+
configPlan: {
|
|
126
|
+
specialCharModal: any;
|
|
127
|
+
} | boolean;
|
|
120
128
|
/**
|
|
121
129
|
* Disable feature or extension
|
|
122
130
|
*
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Node } from '@tiptap/core';
|
|
2
|
+
|
|
3
|
+
declare module '@tiptap/core' {
|
|
4
|
+
interface Commands<ReturnType> {
|
|
5
|
+
configPlan: {
|
|
6
|
+
toggleConfigPlanInput: () => ReturnType;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
interface Options {
|
|
11
|
+
specialCharModal: any;
|
|
12
|
+
button: any;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: Node<Options, any>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
editor: {
|
|
3
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["editor"]>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
node: {
|
|
7
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["node"]>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
decorations: {
|
|
11
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["decorations"]>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
selected: {
|
|
15
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["selected"]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
extension: {
|
|
19
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["extension"]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
getPos: {
|
|
23
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["getPos"]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
updateAttributes: {
|
|
27
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["updateAttributes"]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
deleteNode: {
|
|
31
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["deleteNode"]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
view: {
|
|
35
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["view"]>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
innerDecorations: {
|
|
39
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["innerDecorations"]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
HTMLAttributes: {
|
|
43
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["HTMLAttributes"]>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
47
|
+
editor: {
|
|
48
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["editor"]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
node: {
|
|
52
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["node"]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
decorations: {
|
|
56
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["decorations"]>;
|
|
57
|
+
required: true;
|
|
58
|
+
};
|
|
59
|
+
selected: {
|
|
60
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["selected"]>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
extension: {
|
|
64
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["extension"]>;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
getPos: {
|
|
68
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["getPos"]>;
|
|
69
|
+
required: true;
|
|
70
|
+
};
|
|
71
|
+
updateAttributes: {
|
|
72
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["updateAttributes"]>;
|
|
73
|
+
required: true;
|
|
74
|
+
};
|
|
75
|
+
deleteNode: {
|
|
76
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["deleteNode"]>;
|
|
77
|
+
required: true;
|
|
78
|
+
};
|
|
79
|
+
view: {
|
|
80
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["view"]>;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
innerDecorations: {
|
|
84
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["innerDecorations"]>;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
HTMLAttributes: {
|
|
88
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["HTMLAttributes"]>;
|
|
89
|
+
required: true;
|
|
90
|
+
};
|
|
91
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
92
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ConfigPlan';
|
package/lib/src/i18n.d.ts
CHANGED
|
@@ -185,7 +185,11 @@ declare const _default: import('vue-i18n').I18n<{
|
|
|
185
185
|
"editor.delete": string;
|
|
186
186
|
"editor.super.edit": string;
|
|
187
187
|
"editor.super.delete": string;
|
|
188
|
+
"editor.configPlan.edit": string;
|
|
189
|
+
"editor.configPlan.delete": string;
|
|
188
190
|
"editor.super": string;
|
|
191
|
+
"editor.configPlan": string;
|
|
192
|
+
"editor.insertConfigPlan": string;
|
|
189
193
|
};
|
|
190
194
|
ko: {
|
|
191
195
|
"editor.remove": string;
|
|
@@ -373,7 +377,11 @@ declare const _default: import('vue-i18n').I18n<{
|
|
|
373
377
|
"editor.delete": string;
|
|
374
378
|
"editor.super.edit": string;
|
|
375
379
|
"editor.super.delete": string;
|
|
380
|
+
"editor.configPlan.edit": string;
|
|
381
|
+
"editor.configPlan.delete": string;
|
|
376
382
|
"editor.super": string;
|
|
383
|
+
"editor.configPlan": string;
|
|
384
|
+
"editor.insertConfigPlan": string;
|
|
377
385
|
};
|
|
378
386
|
}, {}, {}, string, false>;
|
|
379
387
|
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface EditorState {
|
|
2
|
+
superInputDialog: boolean;
|
|
3
|
+
contextMenuRef: any;
|
|
4
|
+
}
|
|
5
|
+
export declare const useEditorStore: import('pinia').StoreDefinition<"EditorStore", EditorState, {}, {
|
|
6
|
+
setContextMenuRef(contextMenuRef: any): void;
|
|
7
|
+
openSuperInput(): void;
|
|
8
|
+
}>;
|
|
9
|
+
export {};
|
package/lib/src/type.d.ts
CHANGED
|
@@ -177,6 +177,14 @@ export interface IProofreaderInterface {
|
|
|
177
177
|
}
|
|
178
178
|
export type KeyDownHandler = NonNullable<EditorOptions['editorProps']['handleKeyDown']>;
|
|
179
179
|
export type UpdateHandler = NonNullable<EditorOptions['onUpdate']>;
|
|
180
|
+
export interface FieldName {
|
|
181
|
+
label: string;
|
|
182
|
+
isRequired?: boolean;
|
|
183
|
+
}
|
|
184
|
+
export interface TitleBar {
|
|
185
|
+
title: string;
|
|
186
|
+
bgClass?: string;
|
|
187
|
+
}
|
|
180
188
|
export interface EditorProps {
|
|
181
189
|
/**
|
|
182
190
|
* moblie editor
|
|
@@ -245,11 +253,37 @@ export interface EditorProps {
|
|
|
245
253
|
*/
|
|
246
254
|
hideToolbar?: boolean;
|
|
247
255
|
/**
|
|
248
|
-
*
|
|
256
|
+
* Show Editor Format Toolbar
|
|
249
257
|
*
|
|
250
258
|
* @default false
|
|
251
259
|
*/
|
|
252
260
|
isShowFormatControlBar?: boolean;
|
|
261
|
+
/**
|
|
262
|
+
* Editor Title bar comment
|
|
263
|
+
*/
|
|
264
|
+
titleBarComment?: TitleBar | null;
|
|
265
|
+
/**
|
|
266
|
+
* Editor Title bar content
|
|
267
|
+
*/
|
|
268
|
+
titleBarContent?: TitleBar | null;
|
|
269
|
+
/**
|
|
270
|
+
* Editor Field name comment
|
|
271
|
+
*/
|
|
272
|
+
fieldNameComment?: FieldName | null;
|
|
273
|
+
/**
|
|
274
|
+
* Editor Field name content
|
|
275
|
+
*/
|
|
276
|
+
fieldNameContent?: FieldName | null;
|
|
277
|
+
/**
|
|
278
|
+
* Editor Screen Split
|
|
279
|
+
*
|
|
280
|
+
*/
|
|
281
|
+
isScreenSplit?: any;
|
|
282
|
+
/**
|
|
283
|
+
* Editor Line number
|
|
284
|
+
*
|
|
285
|
+
*/
|
|
286
|
+
isShowLineNumber?: boolean;
|
|
253
287
|
/**
|
|
254
288
|
* Hide Editor Menubar
|
|
255
289
|
*
|
|
@@ -42,6 +42,7 @@ export declare const HARD_BREAK = "hardBreak";
|
|
|
42
42
|
export declare const TEXT_STYLE = "textStyle";
|
|
43
43
|
export declare const SELECTION = "selection";
|
|
44
44
|
export declare const SUPER_TEXT = "superText";
|
|
45
|
+
export declare const CONFIG_PLAN = "configPlan";
|
|
45
46
|
export declare const FONT_SIZE = "fontSize";
|
|
46
47
|
export declare const FONT_FAMILY = "fontFamily";
|
|
47
48
|
export declare const BOLD = "bold";
|
|
@@ -56,3 +57,5 @@ export declare const INDENT = "indent";
|
|
|
56
57
|
export declare const LINE_HEIGHT = "lineHeight";
|
|
57
58
|
export declare const PAINTER = "painter";
|
|
58
59
|
export declare const CLEAR = "clear";
|
|
60
|
+
export declare const SPELLCHECKER = "spellchecker";
|
|
61
|
+
export declare const FONTSIZEINCREASEDECREASE = "fontSizeIncreaseDecrease";
|