@kopexa/file-upload 17.0.2 → 17.0.6
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/dist/avatar-upload.js +5 -1
- package/dist/avatar-upload.mjs +2 -2
- package/dist/{chunk-2CE3OJJ3.mjs → chunk-74SL426Y.mjs} +1 -1
- package/dist/{chunk-NJELZJVE.mjs → chunk-DTDUBF5J.mjs} +5 -1
- package/dist/index.js +5 -1
- package/dist/index.mjs +2 -2
- package/dist/utils/format-accept-types.js +5 -1
- package/dist/utils/format-accept-types.mjs +1 -1
- package/package.json +11 -11
package/dist/avatar-upload.js
CHANGED
|
@@ -132,7 +132,11 @@ function formatAcceptedTypes(accept) {
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
const seen = /* @__PURE__ */ new Set();
|
|
135
|
-
return labels.filter((x) =>
|
|
135
|
+
return labels.filter((x) => {
|
|
136
|
+
if (seen.has(x)) return false;
|
|
137
|
+
seen.add(x);
|
|
138
|
+
return true;
|
|
139
|
+
}).join(", ");
|
|
136
140
|
}
|
|
137
141
|
|
|
138
142
|
// src/utils/is-image-like.ts
|
package/dist/avatar-upload.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
AvatarUpload
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-74SL426Y.mjs";
|
|
5
5
|
import "./chunk-5XSHVYAW.mjs";
|
|
6
6
|
import "./chunk-3DBIA5JL.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-DTDUBF5J.mjs";
|
|
8
8
|
import "./chunk-MZR4XP7N.mjs";
|
|
9
9
|
export {
|
|
10
10
|
AvatarUpload
|
|
@@ -47,7 +47,11 @@ function formatAcceptedTypes(accept) {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
const seen = /* @__PURE__ */ new Set();
|
|
50
|
-
return labels.filter((x) =>
|
|
50
|
+
return labels.filter((x) => {
|
|
51
|
+
if (seen.has(x)) return false;
|
|
52
|
+
seen.add(x);
|
|
53
|
+
return true;
|
|
54
|
+
}).join(", ");
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
export {
|
package/dist/index.js
CHANGED
|
@@ -134,7 +134,11 @@ function formatAcceptedTypes(accept) {
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
const seen = /* @__PURE__ */ new Set();
|
|
137
|
-
return labels.filter((x) =>
|
|
137
|
+
return labels.filter((x) => {
|
|
138
|
+
if (seen.has(x)) return false;
|
|
139
|
+
seen.add(x);
|
|
140
|
+
return true;
|
|
141
|
+
}).join(", ");
|
|
138
142
|
}
|
|
139
143
|
|
|
140
144
|
// src/utils/is-image-like.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
AvatarUpload
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-74SL426Y.mjs";
|
|
5
5
|
import "./chunk-5XSHVYAW.mjs";
|
|
6
6
|
import "./chunk-3DBIA5JL.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-DTDUBF5J.mjs";
|
|
8
8
|
import "./chunk-MZR4XP7N.mjs";
|
|
9
9
|
export {
|
|
10
10
|
AvatarUpload
|
|
@@ -70,7 +70,11 @@ function formatAcceptedTypes(accept) {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
const seen = /* @__PURE__ */ new Set();
|
|
73
|
-
return labels.filter((x) =>
|
|
73
|
+
return labels.filter((x) => {
|
|
74
|
+
if (seen.has(x)) return false;
|
|
75
|
+
seen.add(x);
|
|
76
|
+
return true;
|
|
77
|
+
}).join(", ");
|
|
74
78
|
}
|
|
75
79
|
// Annotate the CommonJS export names for ESM import in node:
|
|
76
80
|
0 && (module.exports = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kopexa/file-upload",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.6",
|
|
4
4
|
"description": "A file Upload component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"file-upload"
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
"react": ">=19.0.0-rc.0",
|
|
29
29
|
"react-dom": ">=19.0.0-rc.0",
|
|
30
30
|
"motion": ">=12.23.6",
|
|
31
|
-
"@kopexa/theme": "17.0
|
|
31
|
+
"@kopexa/theme": "17.2.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@kopexa/
|
|
35
|
-
"@kopexa/
|
|
36
|
-
"@kopexa/
|
|
37
|
-
"@kopexa/icons": "17.0.
|
|
38
|
-
"@kopexa/
|
|
39
|
-
"@kopexa/
|
|
40
|
-
"@kopexa/
|
|
41
|
-
"@kopexa/image-crop": "17.0.
|
|
42
|
-
"@kopexa/dialog": "17.0.
|
|
34
|
+
"@kopexa/shared-utils": "17.0.6",
|
|
35
|
+
"@kopexa/use-file-upload": "17.0.6",
|
|
36
|
+
"@kopexa/react-utils": "17.0.6",
|
|
37
|
+
"@kopexa/icons": "17.0.6",
|
|
38
|
+
"@kopexa/callout": "17.0.6",
|
|
39
|
+
"@kopexa/i18n": "17.0.6",
|
|
40
|
+
"@kopexa/button": "17.0.6",
|
|
41
|
+
"@kopexa/image-crop": "17.0.6",
|
|
42
|
+
"@kopexa/dialog": "17.0.6"
|
|
43
43
|
},
|
|
44
44
|
"clean-package": "../../../clean-package.config.json",
|
|
45
45
|
"module": "dist/index.mjs",
|