glitchgrab 1.66.0 → 1.66.2

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.mjs CHANGED
@@ -1671,7 +1671,7 @@ function AnnotationCanvas({ imageSrc, onSave, onCancel }) {
1671
1671
  const imgRef = useRef(null);
1672
1672
  const dragRef = useRef(null);
1673
1673
  const [ready, setReady] = useState(false);
1674
- const [tool, setTool] = useState("pen");
1674
+ const [tool, setTool] = useState("rect");
1675
1675
  const [settings, setSettings] = useState(TOOL_DEFAULTS);
1676
1676
  const [strokes, setStrokes] = useState([]);
1677
1677
  const [currentStroke, setCurrentStroke] = useState(null);
@@ -9495,6 +9495,11 @@ function BookingDialog({
9495
9495
  return () => document.removeEventListener("keydown", onKey, true);
9496
9496
  }, [open, onClose]);
9497
9497
  const zones = useMemo3(() => open ? zoneList(zone) : [zone], [open, zone]);
9498
+ useEffect5(() => {
9499
+ if (!toast) return;
9500
+ const id = setTimeout(() => setToast(null), 4500);
9501
+ return () => clearTimeout(id);
9502
+ }, [toast]);
9498
9503
  if (!open) return null;
9499
9504
  const today = dayKeyIn(Date.now(), zone);
9500
9505
  const grid = monthGrid(month);
@@ -9525,11 +9530,6 @@ function BookingDialog({
9525
9530
  ...unanswered.map((q) => `an answer to \u201C${q.label}\u201D`),
9526
9531
  ...selected ? [] : ["a day and time"]
9527
9532
  ];
9528
- useEffect5(() => {
9529
- if (!toast) return;
9530
- const id = setTimeout(() => setToast(null), 4500);
9531
- return () => clearTimeout(id);
9532
- }, [toast]);
9533
9533
  const roomy = step === "pick";
9534
9534
  async function startBooking() {
9535
9535
  var _a2, _b2, _c2, _d2;