vkedit 3.2.6 → 4.0.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 (97) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/LICENSE +21 -21
  3. package/README.en.md +38 -36
  4. package/README.md +32 -28
  5. package/dist/commands/change-layer-order-command.d.ts +1 -0
  6. package/dist/commands/index.d.ts +1 -0
  7. package/dist/commands/reorder-elements-command.d.ts +19 -0
  8. package/dist/components/BaseElementPropertyPanel.vue.d.ts +28 -1
  9. package/dist/components/TextProperty.vue.d.ts +2 -0
  10. package/dist/components/ui/VkButton.vue.d.ts +2 -2
  11. package/dist/components/ui/VkColorPicker.vue.d.ts +26 -0
  12. package/dist/components/ui/VkTextarea.vue.d.ts +20 -0
  13. package/dist/components/ui/index.d.ts +2 -1
  14. package/dist/core/ContentLayer.vue.d.ts +0 -2
  15. package/dist/core/Editor.vue.d.ts +1 -0
  16. package/dist/{plugins/rect/Tool.vue.d.ts → core/GraphicToolRenderer.vue.d.ts} +6 -1
  17. package/dist/core/HelpGuide.vue.d.ts +3 -1
  18. package/dist/{plugins/table/CellsBorder.vue.d.ts → core/TransformOverlay.vue.d.ts} +2 -2
  19. package/dist/core/editor-host.d.ts +2 -11
  20. package/dist/favicon.ico +0 -0
  21. package/dist/favicon.svg +8 -0
  22. package/dist/hooks/index.d.ts +1 -0
  23. package/dist/hooks/use-content-layer.d.ts +6 -6
  24. package/dist/hooks/use-host-state.d.ts +1 -0
  25. package/dist/hooks/use-ruler-layer.d.ts +24 -0
  26. package/dist/hooks/use-selection-layer.d.ts +2 -3
  27. package/dist/hooks/use-stage-event.d.ts +1 -0
  28. package/dist/hooks/use-transform-overlay.d.ts +108 -0
  29. package/dist/index-CSKpw1uX.js +25597 -0
  30. package/dist/{index.es-CEBX1sXY.js → index.es-Dswe047Z.js} +1 -1
  31. package/dist/plugins/barcode/Shape.vue.d.ts +1 -1
  32. package/dist/plugins/barcode/barcode.d.ts +12 -13
  33. package/dist/plugins/barcode/index.d.ts +0 -1
  34. package/dist/plugins/export/export.d.ts +1 -2
  35. package/dist/plugins/graphic-registry/graphic-registry.d.ts +43 -0
  36. package/dist/plugins/graphic-registry/index.d.ts +1 -0
  37. package/dist/plugins/import/import.d.ts +1 -2
  38. package/dist/plugins/index.d.ts +2 -6
  39. package/dist/plugins/keydown.d.ts +6 -0
  40. package/dist/plugins/{table/ContextMenu.vue.d.ts → layer-manager/LayerPanel.vue.d.ts} +5 -4
  41. package/dist/plugins/layer-manager/index.d.ts +2 -0
  42. package/dist/plugins/layer-manager/layer-manager.d.ts +16 -0
  43. package/dist/plugins/line/Shape.vue.d.ts +1 -1
  44. package/dist/plugins/line/index.d.ts +0 -1
  45. package/dist/plugins/line/line.d.ts +12 -13
  46. package/dist/plugins/qrcode/Shape.vue.d.ts +1 -1
  47. package/dist/plugins/qrcode/index.d.ts +0 -1
  48. package/dist/plugins/qrcode/qrcode.d.ts +12 -13
  49. package/dist/plugins/rect/Shape.vue.d.ts +1 -1
  50. package/dist/plugins/rect/index.d.ts +0 -1
  51. package/dist/plugins/rect/rect.d.ts +11 -13
  52. package/dist/plugins/selection.d.ts +5 -1
  53. package/dist/plugins/text/Shape.vue.d.ts +1 -1
  54. package/dist/plugins/text/index.d.ts +0 -1
  55. package/dist/plugins/text/text.d.ts +16 -13
  56. package/dist/types/base-graphic-element.d.ts +10 -3
  57. package/dist/types/base.d.ts +5 -18
  58. package/dist/types/event-data.d.ts +17 -0
  59. package/dist/types/event-map.d.ts +8 -1
  60. package/dist/types/graphic-plugin.d.ts +27 -0
  61. package/dist/types/index.d.ts +1 -3
  62. package/dist/utils/color.d.ts +40 -0
  63. package/dist/utils/css-var.d.ts +14 -0
  64. package/dist/utils/index.d.ts +4 -0
  65. package/dist/utils/readability.d.ts +22 -0
  66. package/dist/utils/theme.d.ts +2 -0
  67. package/dist/utils/transform-geometry.d.ts +62 -0
  68. package/dist/utils/transform-overlay.d.ts +62 -0
  69. package/dist/vkedit.css +1 -1
  70. package/dist/vkedit.es.js +81 -96
  71. package/package.json +5 -5
  72. package/dist/components/ui/VkIcon.vue.d.ts +0 -8
  73. package/dist/index-Bisex1w7.js +0 -72850
  74. package/dist/plugins/barcode/Tool.vue.d.ts +0 -6
  75. package/dist/plugins/chart/PropertyPanel.vue.d.ts +0 -9
  76. package/dist/plugins/chart/Shape.vue.d.ts +0 -23
  77. package/dist/plugins/chart/Tool.vue.d.ts +0 -6
  78. package/dist/plugins/chart/chart.d.ts +0 -38
  79. package/dist/plugins/chart/index.d.ts +0 -4
  80. package/dist/plugins/element-manager.d.ts +0 -24
  81. package/dist/plugins/graphic-manager/graphic-manager.d.ts +0 -31
  82. package/dist/plugins/graphic-manager/index.d.ts +0 -1
  83. package/dist/plugins/graphic-tool-manager.d.ts +0 -16
  84. package/dist/plugins/line/Tool.vue.d.ts +0 -7
  85. package/dist/plugins/property-panel-manager/index.d.ts +0 -1
  86. package/dist/plugins/property-panel-manager/property-panel-manager.d.ts +0 -32
  87. package/dist/plugins/qrcode/Tool.vue.d.ts +0 -6
  88. package/dist/plugins/table/PropertyPanel.vue.d.ts +0 -9
  89. package/dist/plugins/table/Shape.vue.d.ts +0 -26
  90. package/dist/plugins/table/Tool.vue.d.ts +0 -7
  91. package/dist/plugins/table/cell.d.ts +0 -61
  92. package/dist/plugins/table/index.d.ts +0 -6
  93. package/dist/plugins/table/table.d.ts +0 -92
  94. package/dist/plugins/text/Tool.vue.d.ts +0 -6
  95. package/dist/types/base-graphic-type.d.ts +0 -9
  96. package/dist/types/element-type-map.d.ts +0 -12
  97. package/dist/types/plugin-map.d.ts +0 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vkedit",
3
- "version": "3.2.6",
3
+ "version": "4.0.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "engines": {
@@ -10,6 +10,7 @@
10
10
  "module": "dist/vkedit.es.js",
11
11
  "files": [
12
12
  "dist",
13
+ "CHANGELOG.md",
13
14
  "README.md",
14
15
  "README.en.md",
15
16
  "LICENSE"
@@ -18,6 +19,7 @@
18
19
  "scripts": {
19
20
  "dev": "vite",
20
21
  "build": "vue-tsc --noEmit && vite build && pnpm pack",
22
+ "build:playground": "vue-tsc --noEmit && vite build --config vite.playground.config.ts",
21
23
  "prepublishOnly": "npm run build",
22
24
  "preview": "vite preview",
23
25
  "build-only": "vite build",
@@ -75,7 +77,7 @@
75
77
  "url": "https://github.com/pwg-code/vkedit/issues"
76
78
  },
77
79
  "devDependencies": {
78
- "@iconify/vue": "^5.0.0",
80
+ "@iconify-json/material-symbols-light": "^1.2.86",
79
81
  "@tsconfig/node22": "^22.0.2",
80
82
  "@types/lodash": "^4.17.20",
81
83
  "@types/node": "^22.16.5",
@@ -86,12 +88,12 @@
86
88
  "eslint": "^9.31.0",
87
89
  "eslint-plugin-vue": "~10.3.0",
88
90
  "jiti": "^2.4.2",
89
- "lucide-vue-next": "^0.546.0",
90
91
  "npm-run-all2": "^8.0.4",
91
92
  "prettier": "3.6.2",
92
93
  "primevue": "^4.4.1",
93
94
  "sass-embedded": "^1.83.0",
94
95
  "typescript": "~5.8.0",
96
+ "unplugin-icons": "^23.0.1",
95
97
  "vite": "^7.0.6",
96
98
  "vite-plugin-css-injected-by-js": "^3.5.2",
97
99
  "vite-plugin-dts": "^4.5.4",
@@ -101,8 +103,6 @@
101
103
  "dependencies": {
102
104
  "@types/qrcode": "^1.5.6",
103
105
  "@vueuse/core": "^14.0.0",
104
- "echarts": "^6.0.0",
105
- "exceljs": "^4.4.0",
106
106
  "jsbarcode": "^3.11.5",
107
107
  "jspdf": "^3.0.3",
108
108
  "lodash": "^4.17.21",
@@ -1,8 +0,0 @@
1
- interface Props {
2
- name: string;
3
- size?: string | number;
4
- }
5
- declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
6
- size: string | number;
7
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
8
- export default _default;