handy-uploader 3.0.0 → 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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "handy-uploader",
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.",
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
5
  "main": "dist/handy-uploader.cjs",
6
6
  "module": "dist/handy-uploader.mjs",
7
7
  "types": "dist/lib/index.d.ts",
@@ -16,23 +16,33 @@
16
16
  "import": "./dist/vuetify.mjs",
17
17
  "require": "./dist/vuetify.cjs"
18
18
  },
19
+ "./element": {
20
+ "types": "./dist/element/index.d.ts",
21
+ "import": "./dist/element.mjs",
22
+ "default": "./dist/element.mjs"
23
+ },
19
24
  "./style.css": "./dist/handy-uploader.css"
20
25
  },
21
26
  "files": [
22
27
  "dist"
23
28
  ],
24
29
  "keywords": [
30
+ "file-upload",
31
+ "uploader",
25
32
  "vue",
26
33
  "vue3",
27
- "uploader",
28
- "file-upload",
34
+ "vuetify",
35
+ "react",
36
+ "svelte",
37
+ "angular",
38
+ "web-component",
39
+ "custom-element",
29
40
  "video-thumbnail",
41
+ "image-compression",
30
42
  "drag-drop",
31
- "vuetify",
32
- "typescript",
33
- "component-library"
43
+ "typescript"
34
44
  ],
35
- "author": "Your Name <your.email@example.com>",
45
+ "author": "Ali Jahanpak (https://github.com/alijahanpak)",
36
46
  "license": "MIT",
37
47
  "repository": {
38
48
  "type": "git",
@@ -45,12 +55,12 @@
45
55
  "scripts": {
46
56
  "dev": "storybook dev -p 6006",
47
57
  "dev:vite": "vite",
48
- "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",
49
59
  "build-lib": "vite build --mode lib",
50
60
  "build-types": "vue-tsc --project tsconfig.build.json",
51
61
  "preview": "vite preview",
52
62
  "build-only": "vite build",
53
- "type-check": "vue-tsc --noEmit",
63
+ "type-check": "vue-tsc --noEmit && vue-tsc --noEmit -p e2e/tsconfig.json",
54
64
  "lint": "eslint --fix",
55
65
  "test": "vitest run",
56
66
  "format": "prettier --write src/",
@@ -60,7 +70,12 @@
60
70
  "changeset": "changeset",
61
71
  "version": "changeset version",
62
72
  "release": "npm run build && changeset publish",
63
- "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"
64
79
  },
65
80
  "peerDependencies": {
66
81
  "vue": "^3.0.0",
@@ -69,6 +84,7 @@
69
84
  "devDependencies": {
70
85
  "@changesets/cli": "^2.29.8",
71
86
  "@mdi/font": "^7.4.47",
87
+ "@playwright/test": "~1.64.1",
72
88
  "@rushstack/eslint-patch": "^1.15.0",
73
89
  "@storybook/addon-docs": "^8.6.19",
74
90
  "@storybook/addon-essentials": "^8.6.15",
@@ -108,6 +124,9 @@
108
124
  "*": {
109
125
  "vuetify": [
110
126
  "dist/lib/vuetify.d.ts"
127
+ ],
128
+ "element": [
129
+ "dist/element/index.d.ts"
111
130
  ]
112
131
  }
113
132
  }