glitchgrab 1.66.1 → 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.js CHANGED
@@ -1731,7 +1731,7 @@ function AnnotationCanvas({ imageSrc, onSave, onCancel }) {
1731
1731
  const imgRef = (0, import_react2.useRef)(null);
1732
1732
  const dragRef = (0, import_react2.useRef)(null);
1733
1733
  const [ready, setReady] = (0, import_react2.useState)(false);
1734
- const [tool, setTool] = (0, import_react2.useState)("pen");
1734
+ const [tool, setTool] = (0, import_react2.useState)("rect");
1735
1735
  const [settings, setSettings] = (0, import_react2.useState)(TOOL_DEFAULTS);
1736
1736
  const [strokes, setStrokes] = (0, import_react2.useState)([]);
1737
1737
  const [currentStroke, setCurrentStroke] = (0, import_react2.useState)(null);
@@ -9555,6 +9555,11 @@ function BookingDialog({
9555
9555
  return () => document.removeEventListener("keydown", onKey, true);
9556
9556
  }, [open, onClose]);
9557
9557
  const zones = (0, import_react5.useMemo)(() => open ? zoneList(zone) : [zone], [open, zone]);
9558
+ (0, import_react5.useEffect)(() => {
9559
+ if (!toast) return;
9560
+ const id = setTimeout(() => setToast(null), 4500);
9561
+ return () => clearTimeout(id);
9562
+ }, [toast]);
9558
9563
  if (!open) return null;
9559
9564
  const today = dayKeyIn(Date.now(), zone);
9560
9565
  const grid = monthGrid(month);
@@ -9585,11 +9590,6 @@ function BookingDialog({
9585
9590
  ...unanswered.map((q) => `an answer to \u201C${q.label}\u201D`),
9586
9591
  ...selected ? [] : ["a day and time"]
9587
9592
  ];
9588
- (0, import_react5.useEffect)(() => {
9589
- if (!toast) return;
9590
- const id = setTimeout(() => setToast(null), 4500);
9591
- return () => clearTimeout(id);
9592
- }, [toast]);
9593
9593
  const roomy = step === "pick";
9594
9594
  async function startBooking() {
9595
9595
  var _a2, _b2, _c2, _d2;