@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.
@@ -132,7 +132,11 @@ function formatAcceptedTypes(accept) {
132
132
  }
133
133
  }
134
134
  const seen = /* @__PURE__ */ new Set();
135
- return labels.filter((x) => seen.has(x) ? false : (seen.add(x), true)).join(", ");
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
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  AvatarUpload
4
- } from "./chunk-2CE3OJJ3.mjs";
4
+ } from "./chunk-74SL426Y.mjs";
5
5
  import "./chunk-5XSHVYAW.mjs";
6
6
  import "./chunk-3DBIA5JL.mjs";
7
- import "./chunk-NJELZJVE.mjs";
7
+ import "./chunk-DTDUBF5J.mjs";
8
8
  import "./chunk-MZR4XP7N.mjs";
9
9
  export {
10
10
  AvatarUpload
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-3DBIA5JL.mjs";
8
8
  import {
9
9
  formatAcceptedTypes
10
- } from "./chunk-NJELZJVE.mjs";
10
+ } from "./chunk-DTDUBF5J.mjs";
11
11
  import {
12
12
  isImageLike
13
13
  } from "./chunk-MZR4XP7N.mjs";
@@ -47,7 +47,11 @@ function formatAcceptedTypes(accept) {
47
47
  }
48
48
  }
49
49
  const seen = /* @__PURE__ */ new Set();
50
- return labels.filter((x) => seen.has(x) ? false : (seen.add(x), true)).join(", ");
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) => seen.has(x) ? false : (seen.add(x), true)).join(", ");
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-2CE3OJJ3.mjs";
4
+ } from "./chunk-74SL426Y.mjs";
5
5
  import "./chunk-5XSHVYAW.mjs";
6
6
  import "./chunk-3DBIA5JL.mjs";
7
- import "./chunk-NJELZJVE.mjs";
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) => seen.has(x) ? false : (seen.add(x), true)).join(", ");
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 = {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  formatAcceptedTypes
4
- } from "../chunk-NJELZJVE.mjs";
4
+ } from "../chunk-DTDUBF5J.mjs";
5
5
  export {
6
6
  formatAcceptedTypes
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kopexa/file-upload",
3
- "version": "17.0.2",
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.2"
31
+ "@kopexa/theme": "17.2.0"
32
32
  },
33
33
  "dependencies": {
34
- "@kopexa/use-file-upload": "17.0.2",
35
- "@kopexa/shared-utils": "17.0.2",
36
- "@kopexa/button": "17.0.2",
37
- "@kopexa/icons": "17.0.2",
38
- "@kopexa/react-utils": "17.0.2",
39
- "@kopexa/callout": "17.0.2",
40
- "@kopexa/i18n": "17.0.2",
41
- "@kopexa/image-crop": "17.0.2",
42
- "@kopexa/dialog": "17.0.2"
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",