@umbraco-ui/uui-file-dropzone 1.10.0-rc.0 → 1.10.1

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 (2) hide show
  1. package/lib/index.js +5 -6
  2. package/package.json +4 -4
package/lib/index.js CHANGED
@@ -76,18 +76,17 @@ let UUIFileDropzoneElement = class extends LabelMixin("", LitElement) {
76
76
  const files = [];
77
77
  for (const entry of queue) {
78
78
  if (entry?.kind !== "file") continue;
79
- if (entry.type) {
79
+ const fileEntry = this._getEntry(entry);
80
+ if (!fileEntry) continue;
81
+ if (!fileEntry.isDirectory) {
80
82
  const file = entry.getAsFile();
81
83
  if (!file) continue;
82
84
  if (this._isAccepted(file)) {
83
85
  files.push(file);
84
86
  }
85
87
  } else if (!this.disallowFolderUpload && this.multiple) {
86
- const dir = this._getEntry(entry);
87
- if (dir) {
88
- const structure = await this._mkdir(dir);
89
- folders.push(structure);
90
- }
88
+ const structure = await this._mkdir(fileEntry);
89
+ folders.push(structure);
91
90
  }
92
91
  }
93
92
  return { files, folders };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ui/uui-file-dropzone",
3
- "version": "1.10.0-rc.0",
3
+ "version": "1.10.1",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Umbraco",
@@ -30,8 +30,8 @@
30
30
  "custom-elements.json"
31
31
  ],
32
32
  "dependencies": {
33
- "@umbraco-ui/uui-base": "1.10.0-rc.0",
34
- "@umbraco-ui/uui-symbol-file-dropzone": "1.10.0-rc.0"
33
+ "@umbraco-ui/uui-base": "1.10.0",
34
+ "@umbraco-ui/uui-symbol-file-dropzone": "1.10.0"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
@@ -42,5 +42,5 @@
42
42
  "access": "public"
43
43
  },
44
44
  "homepage": "https://uui.umbraco.com/?path=/story/uui-file-dropzone",
45
- "gitHead": "f7982264bca0f2db4109c638e458f10719b1c22f"
45
+ "gitHead": "33b3ec557232ea3dfa5d8d636a0a34efb34297dd"
46
46
  }