@agilehub/agile-editor 1.5.0 → 1.7.0

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 (33) hide show
  1. package/README.md +142 -0
  2. package/dist/agile-editor.css +1 -1
  3. package/dist/agile-editor.js +7300 -5262
  4. package/dist/types/components/editor/index.vue.d.ts +2 -2
  5. package/dist/types/components/index.d.ts +4 -2
  6. package/dist/types/components/index.vue.d.ts +151 -5
  7. package/dist/types/components/menus/toolbar/insert/bookmark.vue.d.ts +24 -0
  8. package/dist/types/components/preview-toolbar/annotation-shape.vue.d.ts +58 -0
  9. package/dist/types/components/preview-toolbar/drawing-layer.vue.d.ts +91 -0
  10. package/dist/types/components/preview-toolbar/geometry.d.ts +56 -0
  11. package/dist/types/components/preview-toolbar/index.vue.d.ts +200 -0
  12. package/dist/types/components/preview-toolbar/types.d.ts +48 -0
  13. package/dist/types/components/statusbar/countdown.vue.d.ts +19 -7
  14. package/dist/types/components/toolbar/classic.vue.d.ts +16 -8
  15. package/dist/types/components/toolbar/ribbon.vue.d.ts +16 -8
  16. package/dist/types/composables/i18n.d.ts +144 -3
  17. package/dist/types/extensions/bookmark.d.ts +8 -5
  18. package/dist/types/extensions/bubble-note.d.ts +2 -0
  19. package/dist/types/extensions/element-style.d.ts +0 -1
  20. package/dist/types/i18n.d.ts +144 -3
  21. package/dist/types/options/config/index.d.ts +2 -0
  22. package/dist/types/utils/html-element-id.d.ts +9 -0
  23. package/dist/types/utils/html-id.d.ts +1 -0
  24. package/dist/types/utils/iframe.d.ts +5 -0
  25. package/dist/types/utils/style-target.d.ts +49 -0
  26. package/docs/SECONDARY_DEVELOPMENT.md +1 -1
  27. package/docs/api.md +43 -0
  28. package/docs/configuration.md +57 -0
  29. package/docs/custom-components.md +150 -0
  30. package/docs/development.md +6 -2
  31. package/docs/menu-extension.md +26 -1
  32. package/package.json +25 -15
  33. package/dist/types/components/menus/toolbar/view/preview.vue.d.ts +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agilehub/agile-editor",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "description": "Rich text editor based on Vue 3 and Tiptap 3",
5
5
  "author": "lytdev <lytdev@outlook.com>",
6
6
  "keywords": [
@@ -18,7 +18,7 @@
18
18
  "web office",
19
19
  "word editor"
20
20
  ],
21
- "license": "Apache 2.0",
21
+ "license": "Apache-2.0",
22
22
  "repository": {
23
23
  "type": "git",
24
24
  "url": "https://github.com/lytdev/agile-editor.git"
@@ -43,16 +43,19 @@
43
43
  },
44
44
  "scripts": {
45
45
  "build": "vue-tsc --noEmit && vite build && vue-tsc -p tsconfig.types.json",
46
+ "test:style-target": "node --test tests/style-target.test.mjs tests/style-schema.test.mjs tests/iframe.test.mjs",
46
47
  "typecheck": "vue-tsc --noEmit",
47
48
  "dev": "vite --port 9000 --open --force",
48
49
  "format": "oxfmt --write .",
49
50
  "lint": "oxlint --fix src",
51
+ "lint:style": "stylelint \"src/**/*.{vue,less}\" \"dev/**/*.{vue,less}\"",
52
+ "lint:style:fix": "stylelint \"src/**/*.{vue,less}\" \"dev/**/*.{vue,less}\" --fix",
50
53
  "analyzer": "vite-bundle-visualizer",
51
54
  "prepare": "husky",
52
55
  "prepublishOnly": "npm run build"
53
56
  },
54
57
  "dependencies": {
55
- "@agilehub/docx-converter": "1.2.0",
58
+ "@agilehub/docx-converter": "1.2.1",
56
59
  "@agilehub/latex-formula": "1.2.0",
57
60
  "@eslint/object-schema": "3.0.5",
58
61
  "@floating-ui/dom": "1.8.0",
@@ -71,7 +74,6 @@
71
74
  "@tiptap/extension-invisible-characters": "3.32.0",
72
75
  "@tiptap/extension-link": "3.32.0",
73
76
  "@tiptap/extension-list": "3.32.0",
74
- "@tiptap/extension-mention": "3.32.0",
75
77
  "@tiptap/extension-node-range": "3.32.0",
76
78
  "@tiptap/extension-paragraph": "3.32.0",
77
79
  "@tiptap/extension-subscript": "3.32.0",
@@ -85,7 +87,6 @@
85
87
  "@tiptap/extensions": "3.32.0",
86
88
  "@tiptap/pm": "3.32.0",
87
89
  "@tiptap/starter-kit": "3.32.0",
88
- "@tiptap/suggestion": "3.32.0",
89
90
  "@tiptap/vue-3": "3.32.0",
90
91
  "@tiptap/y-tiptap": "3.0.10",
91
92
  "@tool-belt/type-predicates": "1.4.1",
@@ -94,23 +95,18 @@
94
95
  "cropperjs": "^2.3.1",
95
96
  "dom-to-image-more": "3.11.0",
96
97
  "es-drager": "1.3.4",
97
- "fast-glob": "3.3.3",
98
98
  "file-saver": "2.0.5",
99
99
  "flowchart.js": "1.18.0",
100
100
  "hotkeys-js": "4.0.8",
101
- "jsbarcode": "3.12.3",
102
101
  "lowlight": "3.3.0",
103
102
  "mermaid": "12.2.0",
104
103
  "nzh": "1.0.14",
105
104
  "plantuml-encoder": "1.4.0",
106
105
  "plyr": "3.8.5",
107
106
  "pretty-bytes": "7.2.0",
108
- "pure-svg-code": "1.0.6",
109
- "smooth-signature": "1.1.0",
110
107
  "swiper": "14.3.0",
111
108
  "tdesign-vue-next": "1.20.10",
112
109
  "vue-i18n": "11.4.16",
113
- "y-prosemirror": "1.3.7",
114
110
  "y-protocols": "1.0.7",
115
111
  "yjs": "13.6.33"
116
112
  },
@@ -119,17 +115,22 @@
119
115
  "@vitejs/plugin-vue": "^6.0.10",
120
116
  "@vue-macros/reactivity-transform": "^3.1.4",
121
117
  "esbuild": "^0.28.2",
118
+ "fast-glob": "3.3.3",
122
119
  "husky": "^9.1.7",
123
120
  "less": "^4.9.1",
124
- "less-loader": "^13.0.0",
125
121
  "lint-staged": "^17.6.0",
126
122
  "oxfmt": "^0.74.0",
127
123
  "oxlint": "^1.89.0",
128
124
  "postcss": "^8.5.31",
129
125
  "postcss-html": "^2.0.0",
126
+ "stylelint": "^18.0.0",
127
+ "stylelint-config-html": "^2.0.0",
128
+ "stylelint-config-recommended": "^19.0.0",
129
+ "stylelint-config-recommended-less": "^5.0.0",
130
+ "stylelint-config-recommended-vue": "^2.0.0",
131
+ "stylelint-less": "^5.0.0",
130
132
  "typescript": "~6.0.3",
131
133
  "unplugin-auto-import": "^21.1.0",
132
- "unplugin-vue": "^8.0.0",
133
134
  "unplugin-vue-components": "^32.1.0",
134
135
  "vite": "^8.3.4",
135
136
  "vite-bundle-visualizer": "^1.2.1",
@@ -142,9 +143,18 @@
142
143
  "prosemirror-model": "1.25.12"
143
144
  },
144
145
  "lint-staged": {
145
- "*.{ts,vue,less}": [
146
- "oxfmt --write src",
147
- "oxlint --fix src"
146
+ "*.ts": [
147
+ "oxfmt --write",
148
+ "oxlint --fix"
149
+ ],
150
+ "*.vue": [
151
+ "oxfmt --write",
152
+ "oxlint --fix",
153
+ "stylelint --fix"
154
+ ],
155
+ "*.less": [
156
+ "oxfmt --write",
157
+ "stylelint --fix"
148
158
  ]
149
159
  },
150
160
  "engines": {
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;