@burdenoff/website-sdk 2026.829.6 → 2026.829.8

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/index.d.mts CHANGED
@@ -62,7 +62,7 @@ declare function CareersSubmissionForm({ productName, recaptchaSiteKey, postings
62
62
 
63
63
  declare const buttonVariants: (props?: ({
64
64
  variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
65
- size?: "icon" | "default" | "sm" | "lg" | null | undefined;
65
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
66
66
  } & class_variance_authority_types.ClassProp) | undefined) => string;
67
67
  interface ButtonProps extends react.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
68
68
  asChild?: boolean;
package/dist/index.d.ts CHANGED
@@ -62,7 +62,7 @@ declare function CareersSubmissionForm({ productName, recaptchaSiteKey, postings
62
62
 
63
63
  declare const buttonVariants: (props?: ({
64
64
  variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
65
- size?: "icon" | "default" | "sm" | "lg" | null | undefined;
65
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
66
66
  } & class_variance_authority_types.ClassProp) | undefined) => string;
67
67
  interface ButtonProps extends react.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
68
68
  asChild?: boolean;
package/dist/index.js CHANGED
@@ -7736,6 +7736,7 @@ function ExplorePage({
7736
7736
  const fileInputRef = React.useRef(null);
7737
7737
  const stagedRef = React.useRef([]);
7738
7738
  stagedRef.current = staged;
7739
+ const pickQueueRef = React.useRef(Promise.resolve());
7739
7740
  const [shareLabel, setShareLabel] = React.useState("Share");
7740
7741
  const [shareUrl, setShareUrl] = React.useState(null);
7741
7742
  const scrollRef = React.useRef(null);
@@ -7801,35 +7802,42 @@ function ExplorePage({
7801
7802
  setTimeout(() => setShareLabel("Share"), 2500);
7802
7803
  return;
7803
7804
  }
7804
- const base = (pageUrl ?? window.location.href).split("?")[0];
7805
- const url = `${base}?c=${encodeURIComponent(token)}`;
7805
+ const url = new URL(pageUrl ?? window.location.href);
7806
+ url.search = "";
7807
+ url.hash = "";
7808
+ url.searchParams.set("c", token);
7809
+ const shareable = url.toString();
7806
7810
  try {
7807
- await navigator.clipboard.writeText(url);
7811
+ await navigator.clipboard.writeText(shareable);
7808
7812
  setShareLabel("Copied");
7809
7813
  setTimeout(() => setShareLabel("Share"), 2500);
7810
7814
  } catch {
7811
- setShareUrl(url);
7815
+ setShareUrl(shareable);
7812
7816
  setShareLabel("Share");
7813
7817
  }
7814
7818
  }, [createShareLink, pageUrl]);
7815
7819
  const handleFilesPicked = React.useCallback(
7816
- async (picked) => {
7817
- if (!picked || picked.length === 0) return;
7818
- const { accepted, rejected } = await stageFiles(
7819
- Array.from(picked),
7820
- stagedRef.current
7821
- );
7822
- setStaged((prev) => [...prev, ...accepted]);
7823
- const first = rejected[0];
7824
- setAttachmentNotice(
7825
- first ? first.reason === "too-large" ? fill(T.attachmentTooLarge, {
7826
- name: first.name,
7827
- size: String(MAX_ATTACHMENT_BYTES / (1024 * 1024))
7828
- }) : fill(T.attachmentTooMany, {
7829
- name: first.name,
7830
- max: String(MAX_ATTACHMENTS)
7831
- }) : null
7832
- );
7820
+ (picked) => {
7821
+ if (!picked || picked.length === 0) return pickQueueRef.current;
7822
+ const files = Array.from(picked);
7823
+ pickQueueRef.current = pickQueueRef.current.then(async () => {
7824
+ const { accepted, rejected } = await stageFiles(
7825
+ files,
7826
+ stagedRef.current
7827
+ );
7828
+ setStaged((prev) => [...prev, ...accepted]);
7829
+ const first = rejected[0];
7830
+ setAttachmentNotice(
7831
+ first ? first.reason === "too-large" ? fill(T.attachmentTooLarge, {
7832
+ name: first.name,
7833
+ size: String(MAX_ATTACHMENT_BYTES / (1024 * 1024))
7834
+ }) : fill(T.attachmentTooMany, {
7835
+ name: first.name,
7836
+ max: String(MAX_ATTACHMENTS)
7837
+ }) : null
7838
+ );
7839
+ });
7840
+ return pickQueueRef.current;
7833
7841
  },
7834
7842
  [T]
7835
7843
  );