handy-uploader 2.0.2 → 3.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 (41) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +183 -297
  3. package/dist/components/InsertButton.vue.d.ts +5 -13
  4. package/dist/components/SelectFileIconType.vue.d.ts +3 -23
  5. package/dist/components/SimpleUploader.vue.d.ts +7 -35
  6. package/dist/components/TableUploader.vue.d.ts +6 -38
  7. package/dist/components/ThumbnailUploader.vue.d.ts +8 -44
  8. package/dist/components/handyUploader.vue.d.ts +21 -79
  9. package/dist/composables/deprecation.d.ts +2 -0
  10. package/dist/composables/useErrorHandler.d.ts +8 -4
  11. package/dist/composables/useFileUpload.d.ts +7 -2
  12. package/dist/core/attachments.d.ts +91 -0
  13. package/dist/core/fileUtils.d.ts +56 -0
  14. package/dist/core/index.d.ts +3 -0
  15. package/dist/core/videoThumbnail.d.ts +32 -0
  16. package/dist/handy-uploader.cjs +1 -0
  17. package/dist/handy-uploader.css +1 -0
  18. package/dist/handy-uploader.mjs +1110 -0
  19. package/dist/language-CYpPw-mk.mjs +551 -0
  20. package/dist/language-fvWXvWRx.js +1 -0
  21. package/dist/lib/index.d.ts +10 -712
  22. package/dist/lib/language.d.ts +3 -0
  23. package/dist/lib/shared.d.ts +5 -0
  24. package/dist/lib/vuetify.d.ts +15 -0
  25. package/dist/logo.png +0 -0
  26. package/dist/types/index.d.ts +4 -0
  27. package/dist/utils/fileUtils.d.ts +1 -41
  28. package/dist/vue/components/HandyDialog.vue.d.ts +31 -0
  29. package/dist/vue/components/HandyDropzone.vue.d.ts +38 -0
  30. package/dist/vue/components/HandyFileIcon.vue.d.ts +9 -0
  31. package/dist/vue/components/HandyFileList.vue.d.ts +65 -0
  32. package/dist/vue/components/HandyIcon.vue.d.ts +10 -0
  33. package/dist/vue/components/HandyUploader.vue.d.ts +137 -0
  34. package/dist/vue/index.d.ts +9 -0
  35. package/dist/vue/types.d.ts +5 -0
  36. package/dist/vue/useUploader.d.ts +46 -0
  37. package/dist/vuetify.cjs +1 -0
  38. package/dist/vuetify.mjs +1870 -0
  39. package/package.json +66 -26
  40. package/dist/handy-uploader.es.js +0 -2407
  41. package/dist/handy-uploader.umd.js +0 -1
package/package.json CHANGED
@@ -1,16 +1,22 @@
1
1
  {
2
2
  "name": "handy-uploader",
3
- "version": "2.0.2",
4
- "description": "A comprehensive Vue 3 file uploader component library with video thumbnail generation and multiple upload styles",
5
- "main": "dist/handy-uploader.umd.js",
6
- "module": "dist/handy-uploader.es.js",
3
+ "version": "3.0.0",
4
+ "description": "A Vue 3 file uploader with video thumbnails, image compression and i18n. Works with any CSS framework; Vuetify components available from handy-uploader/vuetify.",
5
+ "main": "dist/handy-uploader.cjs",
6
+ "module": "dist/handy-uploader.mjs",
7
7
  "types": "dist/lib/index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
- "import": "./dist/handy-uploader.es.js",
11
- "require": "./dist/handy-uploader.umd.js",
12
- "types": "./dist/lib/index.d.ts"
13
- }
10
+ "types": "./dist/lib/index.d.ts",
11
+ "import": "./dist/handy-uploader.mjs",
12
+ "require": "./dist/handy-uploader.cjs"
13
+ },
14
+ "./vuetify": {
15
+ "types": "./dist/lib/vuetify.d.ts",
16
+ "import": "./dist/vuetify.mjs",
17
+ "require": "./dist/vuetify.cjs"
18
+ },
19
+ "./style.css": "./dist/handy-uploader.css"
14
20
  },
15
21
  "files": [
16
22
  "dist"
@@ -37,38 +43,72 @@
37
43
  "url": "https://github.com/alijahanpak/handy-uploader/issues"
38
44
  },
39
45
  "scripts": {
40
- "dev": "vite",
46
+ "dev": "storybook dev -p 6006",
47
+ "dev:vite": "vite",
41
48
  "build": "run-p type-check build-lib && npm run build-types",
42
49
  "build-lib": "vite build --mode lib",
43
50
  "build-types": "vue-tsc --project tsconfig.build.json",
44
51
  "preview": "vite preview",
45
52
  "build-only": "vite build",
46
53
  "type-check": "vue-tsc --noEmit",
47
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
54
+ "lint": "eslint --fix",
55
+ "test": "vitest run",
48
56
  "format": "prettier --write src/",
49
- "prepublishOnly": "npm run build"
57
+ "storybook": "storybook dev -p 6006",
58
+ "build-storybook": "storybook build",
59
+ "prepublishOnly": "npm run build",
60
+ "changeset": "changeset",
61
+ "version": "changeset version",
62
+ "release": "npm run build && changeset publish",
63
+ "prepare": "husky"
50
64
  },
51
65
  "peerDependencies": {
52
66
  "vue": "^3.0.0",
53
67
  "vuetify": "^3.0.0"
54
68
  },
55
69
  "devDependencies": {
70
+ "@changesets/cli": "^2.29.8",
56
71
  "@mdi/font": "^7.4.47",
57
- "@rushstack/eslint-patch": "^1.7.2",
58
- "@types/node": "^20.11.9",
59
- "@vitejs/plugin-vue": "^5.0.3",
60
- "@vitejs/plugin-vue-jsx": "^3.1.0",
61
- "@vue/eslint-config-prettier": "^9.0.0",
62
- "@vue/eslint-config-typescript": "^12.0.0",
63
- "@vue/tsconfig": "^0.5.1",
64
- "eslint": "^8.56.0",
65
- "eslint-plugin-vue": "^9.20.1",
72
+ "@rushstack/eslint-patch": "^1.15.0",
73
+ "@storybook/addon-docs": "^8.6.19",
74
+ "@storybook/addon-essentials": "^8.6.15",
75
+ "@storybook/addon-interactions": "^8.6.15",
76
+ "@storybook/addon-links": "^8.6.15",
77
+ "@storybook/blocks": "^8.6.15",
78
+ "@storybook/testing-library": "^0.2.2",
79
+ "@storybook/vue3-vite": "^8.6.15",
80
+ "@types/node": "^25.0.9",
81
+ "@vitejs/plugin-vue": "^6.0.3",
82
+ "@vitejs/plugin-vue-jsx": "^5.1.3",
83
+ "@vue/eslint-config-prettier": "^10.2.0",
84
+ "@vue/eslint-config-typescript": "^14.6.0",
85
+ "@vue/test-utils": "^2.6.0",
86
+ "@vue/tsconfig": "^0.8.1",
87
+ "eslint": "^9.39.2",
88
+ "eslint-plugin-vue": "^10.7.0",
89
+ "husky": "^9.1.7",
90
+ "jsdom": "^26.1.0",
66
91
  "npm-run-all": "^4.1.5",
67
- "prettier": "^3.2.4",
68
- "typescript": "~5.3.3",
69
- "vite": "^5.0.12",
70
- "vue": "^3.4.15",
71
- "vue-tsc": "^1.8.27",
72
- "vuetify": "^3.5.1"
92
+ "prettier": "^3.8.0",
93
+ "remark-gfm": "^4.0.1",
94
+ "storybook": "^8.6.15",
95
+ "typescript": "~5.9.3",
96
+ "vite": "^6.3.5",
97
+ "vitest": "^3.2.7",
98
+ "vue": "^3.5.26",
99
+ "vue-tsc": "^3.2.2",
100
+ "vuetify": "^3.11.6"
101
+ },
102
+ "peerDependenciesMeta": {
103
+ "vuetify": {
104
+ "optional": true
105
+ }
106
+ },
107
+ "typesVersions": {
108
+ "*": {
109
+ "vuetify": [
110
+ "dist/lib/vuetify.d.ts"
111
+ ]
112
+ }
73
113
  }
74
114
  }