@burdenoff/website-sdk 2026.829.6 → 2026.829.7
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/components/explore.js +22 -17
- package/dist/components/explore.js.map +1 -1
- package/dist/components/explore.mjs +22 -17
- package/dist/components/explore.mjs.map +1 -1
- package/dist/index.js +22 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7706,6 +7706,7 @@ function ExplorePage({
|
|
|
7706
7706
|
const fileInputRef = useRef(null);
|
|
7707
7707
|
const stagedRef = useRef([]);
|
|
7708
7708
|
stagedRef.current = staged;
|
|
7709
|
+
const pickQueueRef = useRef(Promise.resolve());
|
|
7709
7710
|
const [shareLabel, setShareLabel] = useState("Share");
|
|
7710
7711
|
const [shareUrl, setShareUrl] = useState(null);
|
|
7711
7712
|
const scrollRef = useRef(null);
|
|
@@ -7783,23 +7784,27 @@ function ExplorePage({
|
|
|
7783
7784
|
}
|
|
7784
7785
|
}, [createShareLink, pageUrl]);
|
|
7785
7786
|
const handleFilesPicked = useCallback(
|
|
7786
|
-
|
|
7787
|
-
if (!picked || picked.length === 0) return;
|
|
7788
|
-
const
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7787
|
+
(picked) => {
|
|
7788
|
+
if (!picked || picked.length === 0) return pickQueueRef.current;
|
|
7789
|
+
const files = Array.from(picked);
|
|
7790
|
+
pickQueueRef.current = pickQueueRef.current.then(async () => {
|
|
7791
|
+
const { accepted, rejected } = await stageFiles(
|
|
7792
|
+
files,
|
|
7793
|
+
stagedRef.current
|
|
7794
|
+
);
|
|
7795
|
+
setStaged((prev) => [...prev, ...accepted]);
|
|
7796
|
+
const first = rejected[0];
|
|
7797
|
+
setAttachmentNotice(
|
|
7798
|
+
first ? first.reason === "too-large" ? fill(T.attachmentTooLarge, {
|
|
7799
|
+
name: first.name,
|
|
7800
|
+
size: String(MAX_ATTACHMENT_BYTES / (1024 * 1024))
|
|
7801
|
+
}) : fill(T.attachmentTooMany, {
|
|
7802
|
+
name: first.name,
|
|
7803
|
+
max: String(MAX_ATTACHMENTS)
|
|
7804
|
+
}) : null
|
|
7805
|
+
);
|
|
7806
|
+
});
|
|
7807
|
+
return pickQueueRef.current;
|
|
7803
7808
|
},
|
|
7804
7809
|
[T]
|
|
7805
7810
|
);
|