@masters-union/union-stack 0.3.14 → 0.3.15
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/cdn/loader.v1.global.js +2 -2
- package/dist/cdn/loader.v1.global.js.map +1 -1
- package/dist/{chunk-A6QABSM5.js → chunk-IX6AZKPO.js} +3 -3
- package/dist/{chunk-A6QABSM5.js.map → chunk-IX6AZKPO.js.map} +1 -1
- package/dist/{chunk-LOOZO22K.js → chunk-U5MLTERT.js} +15 -3
- package/dist/chunk-U5MLTERT.js.map +1 -0
- package/dist/{chunk-P32VSH6B.cjs → chunk-WQ5VYKST.cjs} +7 -7
- package/dist/{chunk-P32VSH6B.cjs.map → chunk-WQ5VYKST.cjs.map} +1 -1
- package/dist/{chunk-24FXFOLY.cjs → chunk-ZOJLHPVE.cjs} +15 -3
- package/dist/chunk-ZOJLHPVE.cjs.map +1 -0
- package/dist/index.cjs +4 -4
- package/dist/index.js +3 -3
- package/dist/node.cjs +7 -7
- package/dist/node.js +1 -1
- package/dist/picker.cjs +14 -0
- package/dist/picker.cjs.map +1 -1
- package/dist/picker.js +14 -0
- package/dist/picker.js.map +1 -1
- package/dist/react.cjs +3 -3
- package/dist/react.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-24FXFOLY.cjs.map +0 -1
- package/dist/chunk-LOOZO22K.js.map +0 -1
package/dist/picker.js
CHANGED
|
@@ -1699,6 +1699,20 @@ var Picker = class {
|
|
|
1699
1699
|
if (overCap > 0) notices.push(`${overCap} file${overCap > 1 ? "s" : ""} skipped \u2014 max ${cap} allowed`);
|
|
1700
1700
|
if (notices.length) this.flashNotice(notices.join(" \xB7 "));
|
|
1701
1701
|
for (const file of chosen) {
|
|
1702
|
+
if (file.size === 0) {
|
|
1703
|
+
const item2 = {
|
|
1704
|
+
uploadId: cryptoId(),
|
|
1705
|
+
file,
|
|
1706
|
+
originalFile: file,
|
|
1707
|
+
edited: false,
|
|
1708
|
+
state: "failed",
|
|
1709
|
+
progress: 0,
|
|
1710
|
+
error: "File is empty (0 bytes) \u2014 if it lives in iCloud/Drive, open it once to download it, then re-add"
|
|
1711
|
+
};
|
|
1712
|
+
this.items.push(item2);
|
|
1713
|
+
this.renderItem(item2);
|
|
1714
|
+
continue;
|
|
1715
|
+
}
|
|
1702
1716
|
if (this.opts.maxFileSize && file.size > this.opts.maxFileSize) {
|
|
1703
1717
|
const item2 = {
|
|
1704
1718
|
uploadId: cryptoId(),
|