vdc-editor 0.1.13 → 0.1.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vdc-editor",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "A modern WYSIWYG rich-text editor using tiptap + Vue.js for SBS",
@@ -46,7 +46,6 @@
46
46
  "dependencies": {
47
47
  "@iconify/vue": "^4.1.2",
48
48
  "@radix-icons/vue": "^1.0.0",
49
- "@saplingai/sapling-js": "^1.0.33",
50
49
  "@tiptap/core": "^2.6.6",
51
50
  "@tiptap/extension-blockquote": "^2.6.6",
52
51
  "@tiptap/extension-bold": "^2.6.6",
@@ -95,10 +94,7 @@
95
94
  "axios": "^1.7.7",
96
95
  "class-variance-authority": "^0.7.0",
97
96
  "clsx": "^2.1.1",
98
- "echo-drag-handle-plugin": "^0.0.2",
99
- "file-saver": "latest",
100
97
  "hotkeys-js": "^3.13.7",
101
- "hunspell-asm": "^4.0.2",
102
98
  "lodash": "^4.17.21",
103
99
  "lowlight": "^3.1.0",
104
100
  "lucide-vue-next": "^0.439.0",
@@ -121,8 +117,6 @@
121
117
  "zeed-dom": "^0.15.1"
122
118
  },
123
119
  "devDependencies": {
124
- "@commitlint/cli": "^19.3.0",
125
- "@commitlint/config-conventional": "^19.2.2",
126
120
  "@commitlint/cz-commitlint": "^19.2.0",
127
121
  "@iconify/vue": "^4.1.2",
128
122
  "@types/express": "^4.17.21",
@@ -166,10 +160,12 @@
166
160
  "scripts": {
167
161
  "dev": "vite",
168
162
  "build:lib": "vite build",
169
- "preview": "vite preview",
170
163
  "prettier": "prettier --write .",
171
164
  "lint": "eslint --ext .js,.jsx,.ts,.tsx,.vue src",
172
165
  "lint:fix": "eslint --ext .js,.jsx,.ts,.tsx,.vue src --fix",
173
- "push": "pnpm build:lib && pnpm publish --no-git-checks --registry https://registry.npmjs.org/"
166
+ "push": "pnpm build:lib && pnpm publish --no-git-checks --registry https://registry.npmjs.org/",
167
+ "version:patch": "npm version patch && git add package.json && git commit -m \"chore: bump version to $(node -p 'require(\"./package.json\").version')\" && git push",
168
+ "version:minor": "npm version minor && git add package.json && git commit -m \"chore: bump version to $(node -p 'require(\"./package.json\").version')\" && git push",
169
+ "version:major": "npm version major && git add package.json && git commit -m \"chore: bump version to $(node -p 'require(\"./package.json\").version')\" && git push"
174
170
  }
175
171
  }
@@ -1,31 +0,0 @@
1
- import { HTMLAttributes } from 'vue';
2
- import { CheckboxRootProps } 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<CheckboxRootProps & {
8
- class?: HTMLAttributes["class"];
9
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
- "update:checked": (value: boolean) => void;
11
- }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<CheckboxRootProps & {
12
- class?: HTMLAttributes["class"];
13
- }>>> & Readonly<{
14
- "onUpdate:checked"?: ((value: boolean) => any) | undefined;
15
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
17
- export default _default;
18
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
- type __VLS_TypePropsToRuntimeProps<T> = {
20
- [K in keyof T]-?: {} extends Pick<T, K> ? {
21
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
- } : {
23
- type: import('vue').PropType<T[K]>;
24
- required: true;
25
- };
26
- };
27
- type __VLS_WithTemplateSlots<T, S> = T & {
28
- new (): {
29
- $slots: S;
30
- };
31
- };
@@ -1,21 +0,0 @@
1
- export interface ITextWithPosition {
2
- startIndex: number;
3
- length: number;
4
- wrongWord: string;
5
- }
6
- export interface ITransferSpellData {
7
- errorText: ITextWithPosition;
8
- spellData: SpellCheckDataType;
9
- }
10
- export type SpellCheckDataType = {
11
- correctWord: string[];
12
- startIndex: number;
13
- endIndex: number;
14
- wrongWordIndex: number;
15
- wrongWord: string;
16
- };
17
- export interface IProofreaderInterface {
18
- proofreadText(sentence: string): Promise<ITextWithPosition[]>;
19
- getSuggestions(word: string): Promise<string[]>;
20
- normalizeTextForLanguage(text: string): string;
21
- }