handy-uploader 2.0.3 → 3.1.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 (38) hide show
  1. package/README.md +290 -292
  2. package/dist/components/handyUploader.vue.d.ts +3 -3
  3. package/dist/composables/deprecation.d.ts +2 -0
  4. package/dist/composables/useErrorHandler.d.ts +4 -0
  5. package/dist/composables/useFileUpload.d.ts +5 -0
  6. package/dist/core/attachments.d.ts +91 -0
  7. package/dist/core/fileUtils.d.ts +56 -0
  8. package/dist/core/index.d.ts +3 -0
  9. package/dist/core/videoThumbnail.d.ts +32 -0
  10. package/dist/element/HandyUploaderElement.d.ts +20 -0
  11. package/dist/element/index.d.ts +21 -0
  12. package/dist/element/types.d.ts +108 -0
  13. package/dist/element.mjs +6178 -0
  14. package/dist/handy-uploader.cjs +1 -0
  15. package/dist/handy-uploader.css +1 -1
  16. package/dist/handy-uploader.mjs +1110 -0
  17. package/dist/language-CYpPw-mk.mjs +551 -0
  18. package/dist/language-fvWXvWRx.js +1 -0
  19. package/dist/lib/index.d.ts +8 -19
  20. package/dist/lib/language.d.ts +3 -0
  21. package/dist/lib/shared.d.ts +5 -0
  22. package/dist/lib/vuetify.d.ts +15 -0
  23. package/dist/types/index.d.ts +4 -0
  24. package/dist/utils/fileUtils.d.ts +1 -56
  25. package/dist/vue/components/HandyDialog.vue.d.ts +31 -0
  26. package/dist/vue/components/HandyDropzone.vue.d.ts +38 -0
  27. package/dist/vue/components/HandyFileIcon.vue.d.ts +9 -0
  28. package/dist/vue/components/HandyFileList.vue.d.ts +65 -0
  29. package/dist/vue/components/HandyIcon.vue.d.ts +10 -0
  30. package/dist/vue/components/HandyUploader.vue.d.ts +137 -0
  31. package/dist/vue/index.d.ts +9 -0
  32. package/dist/vue/types.d.ts +5 -0
  33. package/dist/vue/useUploader.d.ts +46 -0
  34. package/dist/vuetify.cjs +1 -0
  35. package/dist/vuetify.mjs +1875 -0
  36. package/package.json +59 -16
  37. package/dist/handy-uploader.es.js +0 -2308
  38. package/dist/handy-uploader.umd.js +0 -1
package/package.json CHANGED
@@ -1,32 +1,48 @@
1
1
  {
2
2
  "name": "handy-uploader",
3
- "version": "2.0.3",
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.1.0",
4
+ "description": "A file uploader for Vue, React, Svelte, Angular and plain HTML, with video thumbnails, image compression and i18n. Vue component, Vuetify components and a <handy-uploader> Web Component.",
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
10
  "types": "./dist/lib/index.d.ts",
11
- "import": "./dist/handy-uploader.es.js",
12
- "require": "./dist/handy-uploader.umd.js"
13
- }
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
+ "./element": {
20
+ "types": "./dist/element/index.d.ts",
21
+ "import": "./dist/element.mjs",
22
+ "default": "./dist/element.mjs"
23
+ },
24
+ "./style.css": "./dist/handy-uploader.css"
14
25
  },
15
26
  "files": [
16
27
  "dist"
17
28
  ],
18
29
  "keywords": [
30
+ "file-upload",
31
+ "uploader",
19
32
  "vue",
20
33
  "vue3",
21
- "uploader",
22
- "file-upload",
34
+ "vuetify",
35
+ "react",
36
+ "svelte",
37
+ "angular",
38
+ "web-component",
39
+ "custom-element",
23
40
  "video-thumbnail",
41
+ "image-compression",
24
42
  "drag-drop",
25
- "vuetify",
26
- "typescript",
27
- "component-library"
43
+ "typescript"
28
44
  ],
29
- "author": "Your Name <your.email@example.com>",
45
+ "author": "Ali Jahanpak (https://github.com/alijahanpak)",
30
46
  "license": "MIT",
31
47
  "repository": {
32
48
  "type": "git",
@@ -39,13 +55,14 @@
39
55
  "scripts": {
40
56
  "dev": "storybook dev -p 6006",
41
57
  "dev:vite": "vite",
42
- "build": "run-p type-check build-lib && npm run build-types",
58
+ "build": "run-p type-check build-lib && npm run build-element && npm run build-types",
43
59
  "build-lib": "vite build --mode lib",
44
60
  "build-types": "vue-tsc --project tsconfig.build.json",
45
61
  "preview": "vite preview",
46
62
  "build-only": "vite build",
47
- "type-check": "vue-tsc --noEmit",
63
+ "type-check": "vue-tsc --noEmit && vue-tsc --noEmit -p e2e/tsconfig.json",
48
64
  "lint": "eslint --fix",
65
+ "test": "vitest run",
49
66
  "format": "prettier --write src/",
50
67
  "storybook": "storybook dev -p 6006",
51
68
  "build-storybook": "storybook build",
@@ -53,7 +70,12 @@
53
70
  "changeset": "changeset",
54
71
  "version": "changeset version",
55
72
  "release": "npm run build && changeset publish",
56
- "prepare": "husky"
73
+ "prepare": "husky",
74
+ "build-element": "vite build --mode element",
75
+ "test:examples": "playwright test --project=examples",
76
+ "test:e2e": "npm run build-storybook && playwright test",
77
+ "test:e2e:run": "playwright test",
78
+ "test:e2e:components": "npm run build-storybook && playwright test --project=components"
57
79
  },
58
80
  "peerDependencies": {
59
81
  "vue": "^3.0.0",
@@ -62,7 +84,9 @@
62
84
  "devDependencies": {
63
85
  "@changesets/cli": "^2.29.8",
64
86
  "@mdi/font": "^7.4.47",
87
+ "@playwright/test": "~1.64.1",
65
88
  "@rushstack/eslint-patch": "^1.15.0",
89
+ "@storybook/addon-docs": "^8.6.19",
66
90
  "@storybook/addon-essentials": "^8.6.15",
67
91
  "@storybook/addon-interactions": "^8.6.15",
68
92
  "@storybook/addon-links": "^8.6.15",
@@ -74,17 +98,36 @@
74
98
  "@vitejs/plugin-vue-jsx": "^5.1.3",
75
99
  "@vue/eslint-config-prettier": "^10.2.0",
76
100
  "@vue/eslint-config-typescript": "^14.6.0",
101
+ "@vue/test-utils": "^2.6.0",
77
102
  "@vue/tsconfig": "^0.8.1",
78
103
  "eslint": "^9.39.2",
79
104
  "eslint-plugin-vue": "^10.7.0",
80
105
  "husky": "^9.1.7",
106
+ "jsdom": "^26.1.0",
81
107
  "npm-run-all": "^4.1.5",
82
108
  "prettier": "^3.8.0",
109
+ "remark-gfm": "^4.0.1",
83
110
  "storybook": "^8.6.15",
84
111
  "typescript": "~5.9.3",
85
112
  "vite": "^6.3.5",
113
+ "vitest": "^3.2.7",
86
114
  "vue": "^3.5.26",
87
115
  "vue-tsc": "^3.2.2",
88
116
  "vuetify": "^3.11.6"
117
+ },
118
+ "peerDependenciesMeta": {
119
+ "vuetify": {
120
+ "optional": true
121
+ }
122
+ },
123
+ "typesVersions": {
124
+ "*": {
125
+ "vuetify": [
126
+ "dist/lib/vuetify.d.ts"
127
+ ],
128
+ "element": [
129
+ "dist/element/index.d.ts"
130
+ ]
131
+ }
89
132
  }
90
133
  }