@flamingo-stack/openframe-frontend-core 0.0.623 → 0.0.624-2166.6166.1
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/{chunk-DV7IBKJI.cjs → chunk-2MMEPNSX.cjs} +8 -8
- package/dist/{chunk-DV7IBKJI.cjs.map → chunk-2MMEPNSX.cjs.map} +1 -1
- package/dist/{chunk-SNWPBMPV.js → chunk-56CBPVCF.js} +5 -5
- package/dist/{chunk-CKLQVCDP.cjs → chunk-5JOKGJSG.cjs} +11 -11
- package/dist/{chunk-CKLQVCDP.cjs.map → chunk-5JOKGJSG.cjs.map} +1 -1
- package/dist/{chunk-XB7Z5ASO.cjs → chunk-AO6CJFQU.cjs} +18 -18
- package/dist/{chunk-XB7Z5ASO.cjs.map → chunk-AO6CJFQU.cjs.map} +1 -1
- package/dist/{chunk-NMCR5YGW.cjs → chunk-BC4GLCNE.cjs} +42 -42
- package/dist/{chunk-NMCR5YGW.cjs.map → chunk-BC4GLCNE.cjs.map} +1 -1
- package/dist/{chunk-XAUPFCIJ.js → chunk-BXKM4GFD.js} +9 -2
- package/dist/chunk-BXKM4GFD.js.map +1 -0
- package/dist/{chunk-IP4OYYDY.cjs → chunk-C4Y3TEKO.cjs} +174 -174
- package/dist/{chunk-IP4OYYDY.cjs.map → chunk-C4Y3TEKO.cjs.map} +1 -1
- package/dist/{chunk-V6QYKYY2.js → chunk-CP4YNYQA.js} +4 -4
- package/dist/{chunk-SEC6NRAV.cjs → chunk-D3IW3CSH.cjs} +5 -5
- package/dist/{chunk-SEC6NRAV.cjs.map → chunk-D3IW3CSH.cjs.map} +1 -1
- package/dist/{chunk-LWBLLL32.cjs → chunk-DPFMA6JD.cjs} +63 -63
- package/dist/{chunk-LWBLLL32.cjs.map → chunk-DPFMA6JD.cjs.map} +1 -1
- package/dist/{chunk-VQCEWQFV.cjs → chunk-DY4XQFGC.cjs} +12 -12
- package/dist/{chunk-VQCEWQFV.cjs.map → chunk-DY4XQFGC.cjs.map} +1 -1
- package/dist/{chunk-43JQ3SJS.js → chunk-EW6PYGB3.js} +2 -2
- package/dist/{chunk-MJJIQJGQ.js → chunk-F2G5BTBR.js} +9 -9
- package/dist/{chunk-CIPIND3J.js → chunk-GRZHXAX6.js} +2 -2
- package/dist/{chunk-DUI764J2.js → chunk-HAYYFOUU.js} +4 -4
- package/dist/{chunk-HC6FZJMM.cjs → chunk-ISXADEGT.cjs} +39 -39
- package/dist/{chunk-HC6FZJMM.cjs.map → chunk-ISXADEGT.cjs.map} +1 -1
- package/dist/{chunk-EVUDHIDB.cjs → chunk-IUMRVY4I.cjs} +28 -28
- package/dist/{chunk-EVUDHIDB.cjs.map → chunk-IUMRVY4I.cjs.map} +1 -1
- package/dist/{chunk-7CHG2DP2.cjs → chunk-JEMBYNOG.cjs} +6 -6
- package/dist/{chunk-7CHG2DP2.cjs.map → chunk-JEMBYNOG.cjs.map} +1 -1
- package/dist/{chunk-YU5PQOEU.js → chunk-JT4FL2DK.js} +8 -8
- package/dist/{chunk-KZ7AKNDM.js → chunk-KEHI5NAD.js} +181 -143
- package/dist/{chunk-KZ7AKNDM.js.map → chunk-KEHI5NAD.js.map} +1 -1
- package/dist/{chunk-V4OA6SVZ.js → chunk-KKD35GSD.js} +4 -4
- package/dist/{chunk-DTCNLA67.js → chunk-LDR3QNOT.js} +3 -3
- package/dist/{chunk-CS7MVDUF.cjs → chunk-MP2K44EK.cjs} +8 -8
- package/dist/{chunk-CS7MVDUF.cjs.map → chunk-MP2K44EK.cjs.map} +1 -1
- package/dist/{chunk-ORUOBIJT.cjs → chunk-N3CTSPDZ.cjs} +3 -3
- package/dist/{chunk-ORUOBIJT.cjs.map → chunk-N3CTSPDZ.cjs.map} +1 -1
- package/dist/{chunk-YXBY2MDO.cjs → chunk-NOQDSRSK.cjs} +11 -11
- package/dist/{chunk-YXBY2MDO.cjs.map → chunk-NOQDSRSK.cjs.map} +1 -1
- package/dist/{chunk-AOGRJ4FT.js → chunk-NULR47FR.js} +4 -4
- package/dist/{chunk-XFYPKN2D.cjs → chunk-OKMMP5PU.cjs} +726 -688
- package/dist/chunk-OKMMP5PU.cjs.map +1 -0
- package/dist/{chunk-EP2XHZ4Z.cjs → chunk-OYP7ZNHW.cjs} +24 -24
- package/dist/{chunk-EP2XHZ4Z.cjs.map → chunk-OYP7ZNHW.cjs.map} +1 -1
- package/dist/{chunk-6EHXQH7C.js → chunk-Q6QF35QE.js} +6 -6
- package/dist/{chunk-VW57GX5O.js → chunk-QHH2GXHS.js} +3 -3
- package/dist/{chunk-VRUJPZ2C.js → chunk-RFUYCKBZ.js} +3 -3
- package/dist/{chunk-D4Q7BB3N.cjs → chunk-TTSGX6AB.cjs} +33 -33
- package/dist/{chunk-D4Q7BB3N.cjs.map → chunk-TTSGX6AB.cjs.map} +1 -1
- package/dist/{chunk-5G3L6327.cjs → chunk-U7TTQV4N.cjs} +3 -3
- package/dist/{chunk-5G3L6327.cjs.map → chunk-U7TTQV4N.cjs.map} +1 -1
- package/dist/{chunk-YW7GPBB2.cjs → chunk-WKDNZXJK.cjs} +94 -94
- package/dist/{chunk-YW7GPBB2.cjs.map → chunk-WKDNZXJK.cjs.map} +1 -1
- package/dist/{chunk-CJBSU3XB.cjs → chunk-WRJVEB2J.cjs} +9 -2
- package/dist/chunk-WRJVEB2J.cjs.map +1 -0
- package/dist/{chunk-PQZGMNJQ.js → chunk-WSEDVYDY.js} +6 -6
- package/dist/{chunk-VBIFSOPQ.js → chunk-X3LC6R37.js} +3 -3
- package/dist/{chunk-5WGOAJ4B.js → chunk-X7LJRNMJ.js} +2 -2
- package/dist/{chunk-EG4IKWY4.cjs → chunk-YB6RCW77.cjs} +7 -7
- package/dist/{chunk-EG4IKWY4.cjs.map → chunk-YB6RCW77.cjs.map} +1 -1
- package/dist/{chunk-C7AWXFDL.js → chunk-YBEAX6QC.js} +5 -5
- package/dist/{chunk-FHR2JU2J.js → chunk-YQCA4ZEJ.js} +2 -2
- package/dist/{chunk-TMGTVVE2.js → chunk-YWFMYZ4G.js} +3 -3
- package/dist/{chunk-NIX7EG4G.js → chunk-ZYPB57IM.js} +4 -4
- package/dist/{chunk-RZPGGSSW.cjs → chunk-ZZECM2I2.cjs} +27 -27
- package/dist/{chunk-RZPGGSSW.cjs.map → chunk-ZZECM2I2.cjs.map} +1 -1
- package/dist/components/calendar.cjs +4 -4
- package/dist/components/calendar.js +1 -1
- package/dist/components/case-studies/index.cjs +12 -12
- package/dist/components/case-studies/index.js +6 -6
- package/dist/components/chat/index.cjs +4 -4
- package/dist/components/chat/index.js +3 -3
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/contact/index.js +6 -6
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/docs/index.js +9 -9
- package/dist/components/embeds/index.cjs +7 -7
- package/dist/components/embeds/index.js +6 -6
- package/dist/components/faq/index.cjs +7 -7
- package/dist/components/faq/index.js +6 -6
- package/dist/components/features/command-box.d.ts +7 -5
- package/dist/components/features/command-box.d.ts.map +1 -1
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/features/index.js +5 -5
- package/dist/components/help-center-pages/index.cjs +28 -28
- package/dist/components/help-center-pages/index.js +19 -19
- package/dist/components/index.cjs +70 -70
- package/dist/components/index.js +19 -19
- package/dist/components/meeting-scheduler/index.cjs +46 -46
- package/dist/components/meeting-scheduler/index.js +7 -7
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/navigation/index.js +8 -8
- package/dist/components/onboarding-guides/index.cjs +9 -9
- package/dist/components/onboarding-guides/index.js +8 -8
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/related-content/index.js +4 -4
- package/dist/components/tickets/index.cjs +11 -11
- package/dist/components/tickets/index.js +10 -10
- package/dist/components/ui/button/button-styles.d.ts +1 -0
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button.d.ts +1 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/fade-preview.d.ts +25 -7
- package/dist/components/ui/fade-preview.d.ts.map +1 -1
- package/dist/components/ui/file-manager/index.cjs +11 -11
- package/dist/components/ui/file-manager/index.js +1 -1
- package/dist/components/ui/index.cjs +6 -6
- package/dist/components/ui/index.js +5 -5
- package/dist/components/ui/page-actions.d.ts +2 -2
- package/dist/components/ui/page-actions.d.ts.map +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.js +9 -9
- package/package.json +1 -1
- package/src/components/features/.command-box.md +1 -1
- package/src/components/features/command-box.tsx +21 -13
- package/src/components/ui/.fade-preview.md +5 -1
- package/src/components/ui/button/button-styles.ts +6 -0
- package/src/components/ui/button/button.tsx +1 -0
- package/src/components/ui/fade-preview.tsx +92 -20
- package/src/components/ui/page-actions.tsx +2 -2
- package/src/stories/Button.stories.tsx +6 -1
- package/dist/chunk-CJBSU3XB.cjs.map +0 -1
- package/dist/chunk-XAUPFCIJ.js.map +0 -1
- package/dist/chunk-XFYPKN2D.cjs.map +0 -1
- /package/dist/{chunk-SNWPBMPV.js.map → chunk-56CBPVCF.js.map} +0 -0
- /package/dist/{chunk-V6QYKYY2.js.map → chunk-CP4YNYQA.js.map} +0 -0
- /package/dist/{chunk-43JQ3SJS.js.map → chunk-EW6PYGB3.js.map} +0 -0
- /package/dist/{chunk-MJJIQJGQ.js.map → chunk-F2G5BTBR.js.map} +0 -0
- /package/dist/{chunk-CIPIND3J.js.map → chunk-GRZHXAX6.js.map} +0 -0
- /package/dist/{chunk-DUI764J2.js.map → chunk-HAYYFOUU.js.map} +0 -0
- /package/dist/{chunk-YU5PQOEU.js.map → chunk-JT4FL2DK.js.map} +0 -0
- /package/dist/{chunk-V4OA6SVZ.js.map → chunk-KKD35GSD.js.map} +0 -0
- /package/dist/{chunk-DTCNLA67.js.map → chunk-LDR3QNOT.js.map} +0 -0
- /package/dist/{chunk-AOGRJ4FT.js.map → chunk-NULR47FR.js.map} +0 -0
- /package/dist/{chunk-6EHXQH7C.js.map → chunk-Q6QF35QE.js.map} +0 -0
- /package/dist/{chunk-VW57GX5O.js.map → chunk-QHH2GXHS.js.map} +0 -0
- /package/dist/{chunk-VRUJPZ2C.js.map → chunk-RFUYCKBZ.js.map} +0 -0
- /package/dist/{chunk-PQZGMNJQ.js.map → chunk-WSEDVYDY.js.map} +0 -0
- /package/dist/{chunk-VBIFSOPQ.js.map → chunk-X3LC6R37.js.map} +0 -0
- /package/dist/{chunk-5WGOAJ4B.js.map → chunk-X7LJRNMJ.js.map} +0 -0
- /package/dist/{chunk-C7AWXFDL.js.map → chunk-YBEAX6QC.js.map} +0 -0
- /package/dist/{chunk-FHR2JU2J.js.map → chunk-YQCA4ZEJ.js.map} +0 -0
- /package/dist/{chunk-TMGTVVE2.js.map → chunk-YWFMYZ4G.js.map} +0 -0
- /package/dist/{chunk-NIX7EG4G.js.map → chunk-ZYPB57IM.js.map} +0 -0
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-S6WBBSII.js";
|
|
26
26
|
import {
|
|
27
27
|
Pagination
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-X7LJRNMJ.js";
|
|
29
29
|
import {
|
|
30
30
|
Checkbox,
|
|
31
31
|
FieldWrapper,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
useCollapsible,
|
|
92
92
|
useIsHydrated,
|
|
93
93
|
useScrollFade
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-RFUYCKBZ.js";
|
|
95
95
|
import {
|
|
96
96
|
NEAR_VIEWPORT_ROOT_MARGIN,
|
|
97
97
|
ToolIcon,
|
|
@@ -231,7 +231,7 @@ import {
|
|
|
231
231
|
isVideoMedia,
|
|
232
232
|
personFirstName,
|
|
233
233
|
personInitials
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-EW6PYGB3.js";
|
|
235
235
|
import {
|
|
236
236
|
next_image_default
|
|
237
237
|
} from "./chunk-MDKCTSDS.js";
|
|
@@ -260,7 +260,7 @@ import {
|
|
|
260
260
|
Button,
|
|
261
261
|
SplitButton,
|
|
262
262
|
buttonVariants
|
|
263
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-BXKM4GFD.js";
|
|
264
264
|
import {
|
|
265
265
|
next_link_default
|
|
266
266
|
} from "./chunk-BTROSBHF.js";
|
|
@@ -362,7 +362,7 @@ function useThemeToggle() {
|
|
|
362
362
|
|
|
363
363
|
// src/components/features/array-entry-manager.tsx
|
|
364
364
|
import { Trash2, Plus as Plus2, Save, Loader2 as Loader25 } from "lucide-react";
|
|
365
|
-
import { useState as useState47, useEffect as
|
|
365
|
+
import { useState as useState47, useEffect as useEffect25 } from "react";
|
|
366
366
|
|
|
367
367
|
// src/components/ui/allowed-domains-input.tsx
|
|
368
368
|
import { PlusCircle, X } from "lucide-react";
|
|
@@ -5688,10 +5688,20 @@ function AIGeneratedBadge({ className }) {
|
|
|
5688
5688
|
|
|
5689
5689
|
// src/components/ui/fade-preview.tsx
|
|
5690
5690
|
import { ChevronDown as ChevronDown4 } from "lucide-react";
|
|
5691
|
-
import {
|
|
5691
|
+
import { useEffect as useEffect7, useRef as useRef8, useState as useState15 } from "react";
|
|
5692
5692
|
import { Fragment as Fragment6, jsx as jsx52, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
5693
|
-
|
|
5693
|
+
var cssLength = (value) => typeof value === "number" ? `${value}px` : value;
|
|
5694
|
+
function FadePreview({
|
|
5695
|
+
hiddenCount = 0,
|
|
5696
|
+
collapsedHeight = 120,
|
|
5697
|
+
resetKey,
|
|
5698
|
+
fixedHeight = false,
|
|
5699
|
+
labels,
|
|
5700
|
+
toggleClassName,
|
|
5701
|
+
children
|
|
5702
|
+
}) {
|
|
5694
5703
|
const [expanded, setExpanded] = useState15(false);
|
|
5704
|
+
const [overflows, setOverflows] = useState15(false);
|
|
5695
5705
|
const contentRef = useRef8(null);
|
|
5696
5706
|
const [collapsedFor, setCollapsedFor] = useState15(resetKey);
|
|
5697
5707
|
if (collapsedFor !== resetKey) {
|
|
@@ -5701,21 +5711,45 @@ function FadePreview({ hiddenCount, collapsedHeight = 120, resetKey, children })
|
|
|
5701
5711
|
useIsomorphicLayoutEffect(() => {
|
|
5702
5712
|
const el = contentRef.current;
|
|
5703
5713
|
if (!el) return;
|
|
5704
|
-
|
|
5714
|
+
if (!fixedHeight) {
|
|
5715
|
+
el.style.maxHeight = expanded ? `${el.scrollHeight}px` : cssLength(collapsedHeight);
|
|
5716
|
+
return;
|
|
5717
|
+
}
|
|
5718
|
+
el.style.height = expanded ? `${el.scrollHeight}px` : cssLength(collapsedHeight);
|
|
5719
|
+
if (!expanded) {
|
|
5720
|
+
const next = el.scrollHeight > el.clientHeight + 1;
|
|
5721
|
+
if (next !== overflows) setOverflows(next);
|
|
5722
|
+
}
|
|
5705
5723
|
});
|
|
5706
|
-
|
|
5707
|
-
|
|
5724
|
+
useEffect7(() => {
|
|
5725
|
+
const el = contentRef.current;
|
|
5726
|
+
if (!fixedHeight || !el || typeof ResizeObserver === "undefined") return void 0;
|
|
5727
|
+
const observer = new ResizeObserver(() => {
|
|
5728
|
+
if (expanded) return;
|
|
5729
|
+
setOverflows(el.scrollHeight > el.clientHeight + 1);
|
|
5730
|
+
});
|
|
5731
|
+
observer.observe(el);
|
|
5732
|
+
return () => observer.disconnect();
|
|
5733
|
+
}, [fixedHeight, expanded]);
|
|
5734
|
+
const needsFade = fixedHeight ? overflows : hiddenCount > 0;
|
|
5735
|
+
if (!fixedHeight && !needsFade) return /* @__PURE__ */ jsx52(Fragment6, { children });
|
|
5736
|
+
const showToggle = needsFade || expanded;
|
|
5737
|
+
const moreLabel = labels?.more ?? `Show ${hiddenCount} more`;
|
|
5738
|
+
const lessLabel = labels?.less ?? "Show less";
|
|
5708
5739
|
return /* @__PURE__ */ jsxs41("div", { className: "relative", children: [
|
|
5709
5740
|
/* @__PURE__ */ jsx52(
|
|
5710
5741
|
"div",
|
|
5711
5742
|
{
|
|
5712
5743
|
ref: contentRef,
|
|
5713
|
-
className: "overflow-hidden transition-[max-height] duration-500",
|
|
5744
|
+
className: "overflow-hidden transition-[max-height,height] duration-500",
|
|
5714
5745
|
style: {
|
|
5715
5746
|
transitionTimingFunction: "cubic-bezier(0.33, 1, 0.68, 1)",
|
|
5716
|
-
//
|
|
5717
|
-
//
|
|
5718
|
-
|
|
5747
|
+
// Fixed mode renders the collapsed height INTO the markup, so the
|
|
5748
|
+
// server-rendered block is already clamped and hydration never shrinks
|
|
5749
|
+
// it. The expanded value is a live DOM measurement, so the layout
|
|
5750
|
+
// effect above owns it (and `maxHeight` in the counted mode).
|
|
5751
|
+
...fixedHeight && !expanded ? { height: cssLength(collapsedHeight) } : {},
|
|
5752
|
+
...!expanded && needsFade ? {
|
|
5719
5753
|
maskImage: "linear-gradient(to bottom, black 30%, transparent 100%)",
|
|
5720
5754
|
WebkitMaskImage: "linear-gradient(to bottom, black 30%, transparent 100%)"
|
|
5721
5755
|
} : {}
|
|
@@ -5723,16 +5757,20 @@ function FadePreview({ hiddenCount, collapsedHeight = 120, resetKey, children })
|
|
|
5723
5757
|
children
|
|
5724
5758
|
}
|
|
5725
5759
|
),
|
|
5726
|
-
/* @__PURE__ */
|
|
5727
|
-
|
|
5760
|
+
/* @__PURE__ */ jsx52(
|
|
5761
|
+
Button,
|
|
5728
5762
|
{
|
|
5729
5763
|
type: "button",
|
|
5764
|
+
variant: "link",
|
|
5765
|
+
size: "compact",
|
|
5766
|
+
noPaddingX: true,
|
|
5730
5767
|
onClick: () => setExpanded(!expanded),
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
]
|
|
5768
|
+
"aria-expanded": expanded,
|
|
5769
|
+
"aria-hidden": showToggle ? void 0 : true,
|
|
5770
|
+
tabIndex: showToggle ? void 0 : -1,
|
|
5771
|
+
rightIcon: /* @__PURE__ */ jsx52(ChevronDown4, { className: cn("transition-transform duration-300", expanded && "rotate-180") }),
|
|
5772
|
+
className: cn("mt-[var(--spacing-system-mf)]", !showToggle && "invisible", toggleClassName),
|
|
5773
|
+
children: expanded ? lessLabel : moreLabel
|
|
5736
5774
|
}
|
|
5737
5775
|
)
|
|
5738
5776
|
] });
|
|
@@ -5803,7 +5841,7 @@ import { ExternalLink } from "lucide-react";
|
|
|
5803
5841
|
|
|
5804
5842
|
// src/components/embeds/embed-viewer-frame.tsx
|
|
5805
5843
|
import { Maximize2, Minimize2 } from "lucide-react";
|
|
5806
|
-
import { useEffect as
|
|
5844
|
+
import { useEffect as useEffect9, useRef as useRef10, useState as useState17 } from "react";
|
|
5807
5845
|
|
|
5808
5846
|
// src/utils/fullscreen-switch.ts
|
|
5809
5847
|
var fullscreenElementOf = (doc) => doc.fullscreenElement ?? doc.webkitFullscreenElement ?? null;
|
|
@@ -5903,7 +5941,7 @@ var FullscreenSwitchController = class {
|
|
|
5903
5941
|
};
|
|
5904
5942
|
|
|
5905
5943
|
// src/components/embeds/embed-iframe.tsx
|
|
5906
|
-
import { useState as useState16, useCallback as useCallback7, useRef as useRef9, useEffect as
|
|
5944
|
+
import { useState as useState16, useCallback as useCallback7, useRef as useRef9, useEffect as useEffect8 } from "react";
|
|
5907
5945
|
import { Fragment as Fragment7, jsx as jsx55, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
5908
5946
|
function EmbedLoadingSkeleton({ height }) {
|
|
5909
5947
|
return /* @__PURE__ */ jsx55(
|
|
@@ -5929,7 +5967,7 @@ function EmbedIframe({
|
|
|
5929
5967
|
const isLoaded = loadedSrc === src;
|
|
5930
5968
|
const iframeRef = useRef9(null);
|
|
5931
5969
|
const handleLoad = useCallback7(() => setLoadedSrc(src), [src]);
|
|
5932
|
-
|
|
5970
|
+
useEffect8(() => {
|
|
5933
5971
|
const iframe = iframeRef.current;
|
|
5934
5972
|
return () => {
|
|
5935
5973
|
if (iframe) {
|
|
@@ -5991,7 +6029,7 @@ function EmbedViewerFrame({
|
|
|
5991
6029
|
const frameRef = useRef10(null);
|
|
5992
6030
|
const [isFullscreen, setIsFullscreen] = useState17(false);
|
|
5993
6031
|
const controllerRef = useRef10(null);
|
|
5994
|
-
|
|
6032
|
+
useEffect9(() => {
|
|
5995
6033
|
if (!fullscreenControl) return void 0;
|
|
5996
6034
|
const controller = new FullscreenSwitchController({
|
|
5997
6035
|
target: () => frameRef.current,
|
|
@@ -6345,7 +6383,7 @@ function LinkedInEmbedClient({ url, height = 600 }) {
|
|
|
6345
6383
|
}
|
|
6346
6384
|
|
|
6347
6385
|
// src/components/embeds/markdown-image.tsx
|
|
6348
|
-
import { useEffect as
|
|
6386
|
+
import { useEffect as useEffect10, useState as useState20 } from "react";
|
|
6349
6387
|
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
6350
6388
|
var MAX_H_REM = 32;
|
|
6351
6389
|
var DISPLAY_W = 768;
|
|
@@ -6353,7 +6391,7 @@ function MarkdownImage({ src, alt }) {
|
|
|
6353
6391
|
const { transformImageSrc } = useRichMarkdownRuntime();
|
|
6354
6392
|
const [probed, setProbed] = useState20(null);
|
|
6355
6393
|
const ratio = probed?.src === src ? probed.ratio : null;
|
|
6356
|
-
|
|
6394
|
+
useEffect10(() => {
|
|
6357
6395
|
let cancelled = false;
|
|
6358
6396
|
const probeSrc = transformImageSrc(src, { width: 48, resize: "contain", quality: 20 }) ?? src;
|
|
6359
6397
|
const probe = new window.Image();
|
|
@@ -6396,7 +6434,7 @@ function MarkdownImage({ src, alt }) {
|
|
|
6396
6434
|
}
|
|
6397
6435
|
|
|
6398
6436
|
// src/components/embeds/og-link-preview.tsx
|
|
6399
|
-
import { useState as useState21, useEffect as
|
|
6437
|
+
import { useState as useState21, useEffect as useEffect11, Component } from "react";
|
|
6400
6438
|
import { jsx as jsx62, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
6401
6439
|
var OGLinkErrorBoundary = class extends Component {
|
|
6402
6440
|
constructor(props) {
|
|
@@ -6490,7 +6528,7 @@ var OGLinkPreview = ({
|
|
|
6490
6528
|
} catch {
|
|
6491
6529
|
isValidUrl = false;
|
|
6492
6530
|
}
|
|
6493
|
-
|
|
6531
|
+
useEffect11(() => {
|
|
6494
6532
|
if (!isValidUrl || isLocalhost) return void 0;
|
|
6495
6533
|
let cancelled = false;
|
|
6496
6534
|
const fetchOGData = async () => {
|
|
@@ -6794,7 +6832,7 @@ var OGLinkPreview = ({
|
|
|
6794
6832
|
};
|
|
6795
6833
|
|
|
6796
6834
|
// src/components/embeds/reddit-embed-client.tsx
|
|
6797
|
-
import { useState as useState23, useEffect as
|
|
6835
|
+
import { useState as useState23, useEffect as useEffect12, useRef as useRef12 } from "react";
|
|
6798
6836
|
|
|
6799
6837
|
// src/utils/social-embed-cache.ts
|
|
6800
6838
|
var dataCache = /* @__PURE__ */ new Map();
|
|
@@ -7143,7 +7181,7 @@ function RedditEmbedClient({ url, maxWidth = 700 }) {
|
|
|
7143
7181
|
const [loading, setLoading] = useState23(true);
|
|
7144
7182
|
const [error, setError] = useState23(null);
|
|
7145
7183
|
const fetchedForRef = useRef12(null);
|
|
7146
|
-
|
|
7184
|
+
useEffect12(() => {
|
|
7147
7185
|
const jsonUrl = url.endsWith(".json") ? url : `${url.replace(/\/$/, "")}.json`;
|
|
7148
7186
|
if (fetchedForRef.current === jsonUrl) return;
|
|
7149
7187
|
fetchedForRef.current = jsonUrl;
|
|
@@ -7444,7 +7482,7 @@ function RedditEmbedClient({ url, maxWidth = 700 }) {
|
|
|
7444
7482
|
}
|
|
7445
7483
|
|
|
7446
7484
|
// src/components/embeds/twitter-embed-client.tsx
|
|
7447
|
-
import { useState as useState24, useEffect as
|
|
7485
|
+
import { useState as useState24, useEffect as useEffect13, useRef as useRef13 } from "react";
|
|
7448
7486
|
import { jsx as jsx65, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
7449
7487
|
var MessageCircleIcon3 = () => /* @__PURE__ */ jsx65("svg", { width: "16", height: "16", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx65("path", { d: "M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z" }) });
|
|
7450
7488
|
var ExternalLinkIcon3 = () => /* @__PURE__ */ jsxs49("svg", { width: "16", height: "16", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
|
|
@@ -7478,7 +7516,7 @@ function TwitterEmbedClient({ url, tweetId, maxWidth = 700 }) {
|
|
|
7478
7516
|
const error = extractedTweetId ? fetchError : "Invalid tweet URL or ID";
|
|
7479
7517
|
const loading = extractedTweetId ? fetchLoading : false;
|
|
7480
7518
|
const tweetUrl = url.includes("twitter.com") || url.includes("x.com") ? url : `https://twitter.com/twitter/status/${extractedTweetId}`;
|
|
7481
|
-
|
|
7519
|
+
useEffect13(() => {
|
|
7482
7520
|
if (fetchedForRef.current === tweetUrl) return;
|
|
7483
7521
|
fetchedForRef.current = tweetUrl;
|
|
7484
7522
|
if (!extractedTweetId) return;
|
|
@@ -8345,7 +8383,7 @@ function BackButton({ label = "Back", className, type = "button", ...props }) {
|
|
|
8345
8383
|
}
|
|
8346
8384
|
|
|
8347
8385
|
// src/components/layout/list-page-layout.tsx
|
|
8348
|
-
import { useEffect as
|
|
8386
|
+
import { useEffect as useEffect15, useState as useState27 } from "react";
|
|
8349
8387
|
|
|
8350
8388
|
// src/components/ui/error-state.tsx
|
|
8351
8389
|
import { AlertTriangle, RefreshCw, Home } from "lucide-react";
|
|
@@ -8457,7 +8495,7 @@ function NotFoundError({
|
|
|
8457
8495
|
}
|
|
8458
8496
|
|
|
8459
8497
|
// src/components/ui/filter-modal.tsx
|
|
8460
|
-
import { useEffect as
|
|
8498
|
+
import { useEffect as useEffect14, useRef as useRef14, useState as useState26 } from "react";
|
|
8461
8499
|
|
|
8462
8500
|
// src/components/ui/filter-checkbox-item.tsx
|
|
8463
8501
|
import * as CheckboxPrimitive3 from "@radix-ui/react-checkbox";
|
|
@@ -8655,10 +8693,10 @@ function FilterModal({
|
|
|
8655
8693
|
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = useScrollFade();
|
|
8656
8694
|
const seedKey = `${JSON.stringify(currentFilters)}|${JSON.stringify(selectedTags ?? [])}`;
|
|
8657
8695
|
const seedSourceRef = useRef14({ currentFilters, selectedTags, dateFilter, dateDefaultSort });
|
|
8658
|
-
|
|
8696
|
+
useEffect14(() => {
|
|
8659
8697
|
seedSourceRef.current = { currentFilters, selectedTags, dateFilter, dateDefaultSort };
|
|
8660
8698
|
});
|
|
8661
|
-
|
|
8699
|
+
useEffect14(() => {
|
|
8662
8700
|
if (!isOpen) return;
|
|
8663
8701
|
const seed = seedSourceRef.current;
|
|
8664
8702
|
setSelectedFilters({ ...seed.currentFilters });
|
|
@@ -9265,7 +9303,7 @@ function ListPageLayout({
|
|
|
9265
9303
|
setSyncedSearchValue(searchValue);
|
|
9266
9304
|
setLocalSearchValue(searchValue);
|
|
9267
9305
|
}
|
|
9268
|
-
|
|
9306
|
+
useEffect15(() => {
|
|
9269
9307
|
if (debouncedSearchValue !== searchValue) {
|
|
9270
9308
|
onSearch(debouncedSearchValue);
|
|
9271
9309
|
}
|
|
@@ -12775,7 +12813,7 @@ var DetailLoader = (props) => /* @__PURE__ */ jsx112(ContentLoader, { ...props,
|
|
|
12775
12813
|
var ListLoader = (props) => /* @__PURE__ */ jsx112(ContentLoader, { ...props, variant: "list" });
|
|
12776
12814
|
|
|
12777
12815
|
// src/components/ui/table/table.tsx
|
|
12778
|
-
import { useEffect as
|
|
12816
|
+
import { useEffect as useEffect17, useRef as useRef16 } from "react";
|
|
12779
12817
|
|
|
12780
12818
|
// src/components/ui/cursor-pagination.tsx
|
|
12781
12819
|
import { ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight4, RotateCcw, Home as Home2 } from "lucide-react";
|
|
@@ -13556,10 +13594,10 @@ function TableRow({
|
|
|
13556
13594
|
}
|
|
13557
13595
|
|
|
13558
13596
|
// src/components/ui/table/use-table-motion.ts
|
|
13559
|
-
import { useEffect as
|
|
13597
|
+
import { useEffect as useEffect16, useState as useState30 } from "react";
|
|
13560
13598
|
function useTableMotion(enabled) {
|
|
13561
13599
|
const [runtime, setRuntime] = useState30(null);
|
|
13562
|
-
|
|
13600
|
+
useEffect16(() => {
|
|
13563
13601
|
if (!enabled || runtime) return void 0;
|
|
13564
13602
|
let active = true;
|
|
13565
13603
|
import("framer-motion").then((m) => {
|
|
@@ -13718,10 +13756,10 @@ function Table({
|
|
|
13718
13756
|
const someSelected = selectedRows.length > 0 && selectedRows.length < data.length;
|
|
13719
13757
|
const sentinelRef = useRef16(null);
|
|
13720
13758
|
const onLoadMoreRef = useRef16(infiniteScroll?.onLoadMore);
|
|
13721
|
-
|
|
13759
|
+
useEffect17(() => {
|
|
13722
13760
|
onLoadMoreRef.current = infiniteScroll?.onLoadMore;
|
|
13723
13761
|
});
|
|
13724
|
-
|
|
13762
|
+
useEffect17(() => {
|
|
13725
13763
|
if (!infiniteScroll?.hasNextPage || infiniteScroll.isFetchingNextPage) return void 0;
|
|
13726
13764
|
const sentinel = sentinelRef.current;
|
|
13727
13765
|
if (!sentinel) return void 0;
|
|
@@ -14706,7 +14744,7 @@ function resolveHeaderLabel(header) {
|
|
|
14706
14744
|
}
|
|
14707
14745
|
|
|
14708
14746
|
// src/components/ui/data-table/data-table-infinite-footer.tsx
|
|
14709
|
-
import { useEffect as
|
|
14747
|
+
import { useEffect as useEffect18, useRef as useRef20 } from "react";
|
|
14710
14748
|
import { Fragment as Fragment21, jsx as jsx135, jsxs as jsxs104 } from "react/jsx-runtime";
|
|
14711
14749
|
function DataTableInfiniteFooter({
|
|
14712
14750
|
hasNextPage,
|
|
@@ -14717,10 +14755,10 @@ function DataTableInfiniteFooter({
|
|
|
14717
14755
|
}) {
|
|
14718
14756
|
const sentinelRef = useRef20(null);
|
|
14719
14757
|
const onLoadMoreRef = useRef20(onLoadMore);
|
|
14720
|
-
|
|
14758
|
+
useEffect18(() => {
|
|
14721
14759
|
onLoadMoreRef.current = onLoadMore;
|
|
14722
14760
|
});
|
|
14723
|
-
|
|
14761
|
+
useEffect18(() => {
|
|
14724
14762
|
if (!hasNextPage || isFetchingNextPage) return void 0;
|
|
14725
14763
|
const sentinel = sentinelRef.current;
|
|
14726
14764
|
if (!sentinel) return void 0;
|
|
@@ -14846,7 +14884,7 @@ var PasswordInput = forwardRef27(({ disabled, className, ...props }, ref) => {
|
|
|
14846
14884
|
PasswordInput.displayName = "PasswordInput";
|
|
14847
14885
|
|
|
14848
14886
|
// src/components/ui/phone-input.tsx
|
|
14849
|
-
import { useCallback as useCallback15, useEffect as
|
|
14887
|
+
import { useCallback as useCallback15, useEffect as useEffect19, useMemo as useMemo14, useRef as useRef21, useState as useState34 } from "react";
|
|
14850
14888
|
import { jsx as jsx137, jsxs as jsxs106 } from "react/jsx-runtime";
|
|
14851
14889
|
function PhoneInput({
|
|
14852
14890
|
value,
|
|
@@ -14886,7 +14924,7 @@ function PhoneInput({
|
|
|
14886
14924
|
},
|
|
14887
14925
|
[runValidation]
|
|
14888
14926
|
);
|
|
14889
|
-
|
|
14927
|
+
useEffect19(() => {
|
|
14890
14928
|
return () => {
|
|
14891
14929
|
if (debounceRef.current) clearTimeout(debounceRef.current);
|
|
14892
14930
|
};
|
|
@@ -14954,7 +14992,7 @@ function CountryOption({ country }) {
|
|
|
14954
14992
|
import * as PopoverPrimitive5 from "@radix-ui/react-popover";
|
|
14955
14993
|
import * as ScrollAreaPrimitive3 from "@radix-ui/react-scroll-area";
|
|
14956
14994
|
import {
|
|
14957
|
-
useEffect as
|
|
14995
|
+
useEffect as useEffect20,
|
|
14958
14996
|
useMemo as useMemo15,
|
|
14959
14997
|
useRef as useRef22,
|
|
14960
14998
|
useState as useState35
|
|
@@ -15042,7 +15080,7 @@ function SearchInput({
|
|
|
15042
15080
|
const hiddenTagsRef = useRef22(null);
|
|
15043
15081
|
const hiddenTagsPopupRef = useRef22(null);
|
|
15044
15082
|
const [showHiddenTags, setShowHiddenTags] = useState35(false);
|
|
15045
|
-
|
|
15083
|
+
useEffect20(() => {
|
|
15046
15084
|
if (!showHiddenTags) return void 0;
|
|
15047
15085
|
const handleClick = (e) => {
|
|
15048
15086
|
const target = e.target;
|
|
@@ -15459,7 +15497,7 @@ function FilterList({
|
|
|
15459
15497
|
|
|
15460
15498
|
// src/components/ui/tag-search-input.tsx
|
|
15461
15499
|
import {
|
|
15462
|
-
useEffect as
|
|
15500
|
+
useEffect as useEffect21,
|
|
15463
15501
|
useRef as useRef23,
|
|
15464
15502
|
useState as useState36
|
|
15465
15503
|
} from "react";
|
|
@@ -15491,7 +15529,7 @@ function TagSearchInput({
|
|
|
15491
15529
|
const hiddenTagsRef = useRef23(null);
|
|
15492
15530
|
const hiddenTagsPopupRef = useRef23(null);
|
|
15493
15531
|
const [showHiddenTags, setShowHiddenTags] = useState36(false);
|
|
15494
|
-
|
|
15532
|
+
useEffect21(() => {
|
|
15495
15533
|
if (!showHiddenTags) return void 0;
|
|
15496
15534
|
const handleClick = (e) => {
|
|
15497
15535
|
const target = e.target;
|
|
@@ -15658,7 +15696,7 @@ function TagSearchInput({
|
|
|
15658
15696
|
|
|
15659
15697
|
// src/components/ui/markdown-editor.tsx
|
|
15660
15698
|
import { Loader2 as Loader22, Upload } from "lucide-react";
|
|
15661
|
-
import { useRef as useRef24, useCallback as useCallback16, useState as useState37, useEffect as
|
|
15699
|
+
import { useRef as useRef24, useCallback as useCallback16, useState as useState37, useEffect as useEffect22 } from "react";
|
|
15662
15700
|
import { jsx as jsx141, jsxs as jsxs110 } from "react/jsx-runtime";
|
|
15663
15701
|
var MDEditor = dynamic(() => import("@uiw/react-md-editor"), { ssr: false });
|
|
15664
15702
|
var MARKDOWN_EDITOR_STYLE_ID = "ods-markdown-editor-styles";
|
|
@@ -15729,7 +15767,7 @@ body .w-md-editor .w-md-editor-bar::after { content: '' !important; display: blo
|
|
|
15729
15767
|
body .w-md-editor .w-md-editor-bar:hover::after { border-color: var(--color-text-secondary) !important; }
|
|
15730
15768
|
`;
|
|
15731
15769
|
function MarkdownEditorStyles() {
|
|
15732
|
-
|
|
15770
|
+
useEffect22(() => {
|
|
15733
15771
|
if (document.getElementById(MARKDOWN_EDITOR_STYLE_ID)) return void 0;
|
|
15734
15772
|
const style = document.createElement("style");
|
|
15735
15773
|
style.id = MARKDOWN_EDITOR_STYLE_ID;
|
|
@@ -15757,7 +15795,7 @@ function MarkdownEditor({
|
|
|
15757
15795
|
const [isUploading, setIsUploading] = useState37(false);
|
|
15758
15796
|
const [uploadProgress, setUploadProgress] = useState37("");
|
|
15759
15797
|
const [defaultExtraCommands, setDefaultExtraCommands] = useState37([]);
|
|
15760
|
-
|
|
15798
|
+
useEffect22(() => {
|
|
15761
15799
|
let cancelled = false;
|
|
15762
15800
|
void (async () => {
|
|
15763
15801
|
try {
|
|
@@ -15889,7 +15927,7 @@ function MarkdownEditor({
|
|
|
15889
15927
|
}
|
|
15890
15928
|
rafRef.current = requestAnimationFrame(step);
|
|
15891
15929
|
}, []);
|
|
15892
|
-
|
|
15930
|
+
useEffect22(() => {
|
|
15893
15931
|
const wrapper = wrapperRef.current;
|
|
15894
15932
|
if (!wrapper) return void 0;
|
|
15895
15933
|
const onMouseMove = (e) => {
|
|
@@ -15976,7 +16014,7 @@ function MarkdownEditor({
|
|
|
15976
16014
|
// src/components/ui/file-upload.tsx
|
|
15977
16015
|
import { Loader2 as Loader23 } from "lucide-react";
|
|
15978
16016
|
import {
|
|
15979
|
-
useEffect as
|
|
16017
|
+
useEffect as useEffect23,
|
|
15980
16018
|
useMemo as useMemo16,
|
|
15981
16019
|
useRef as useRef25,
|
|
15982
16020
|
useState as useState38
|
|
@@ -16083,7 +16121,7 @@ function FileUpload({
|
|
|
16083
16121
|
}
|
|
16084
16122
|
};
|
|
16085
16123
|
const handleFilesRef = useRef25(handleFiles);
|
|
16086
|
-
|
|
16124
|
+
useEffect23(() => {
|
|
16087
16125
|
handleFilesRef.current = handleFiles;
|
|
16088
16126
|
});
|
|
16089
16127
|
const handleDrag = (e) => {
|
|
@@ -16105,7 +16143,7 @@ function FileUpload({
|
|
|
16105
16143
|
handleFiles(e.dataTransfer.files);
|
|
16106
16144
|
}
|
|
16107
16145
|
};
|
|
16108
|
-
|
|
16146
|
+
useEffect23(() => {
|
|
16109
16147
|
if (!acceptWindowDrops || disabled) return void 0;
|
|
16110
16148
|
let dragCounter = 0;
|
|
16111
16149
|
const onWindowDragEnter = (e) => {
|
|
@@ -16940,7 +16978,7 @@ function TicketStatusConfigRow({
|
|
|
16940
16978
|
}
|
|
16941
16979
|
|
|
16942
16980
|
// src/components/ui/test-run.tsx
|
|
16943
|
-
import { useMemo as useMemo17, useState as useState41, useEffect as
|
|
16981
|
+
import { useMemo as useMemo17, useState as useState41, useEffect as useEffect24, useCallback as useCallback17 } from "react";
|
|
16944
16982
|
import { jsx as jsx147, jsxs as jsxs115 } from "react/jsx-runtime";
|
|
16945
16983
|
function formatTestRunDuration(ms) {
|
|
16946
16984
|
const totalSeconds = Math.floor(ms / 1e3);
|
|
@@ -17055,7 +17093,7 @@ function useTestRunState(campaign) {
|
|
|
17055
17093
|
const [hasRun, setHasRun] = useState41(false);
|
|
17056
17094
|
const [isStarting, setIsStarting] = useState41(false);
|
|
17057
17095
|
const [durationMs, setDurationMs] = useState41(0);
|
|
17058
|
-
|
|
17096
|
+
useEffect24(() => {
|
|
17059
17097
|
const startedAt = campaign.startedAt;
|
|
17060
17098
|
if (!startedAt) return void 0;
|
|
17061
17099
|
const tick = () => setDurationMs(Date.now() - startedAt.getTime());
|
|
@@ -17891,7 +17929,7 @@ function ArrayEntryManager({
|
|
|
17891
17929
|
setDraftItems(items);
|
|
17892
17930
|
}
|
|
17893
17931
|
}
|
|
17894
|
-
|
|
17932
|
+
useEffect25(() => {
|
|
17895
17933
|
if (onDirtyChange) {
|
|
17896
17934
|
onDirtyChange(isDirty);
|
|
17897
17935
|
}
|
|
@@ -19554,15 +19592,15 @@ function CommandBox({
|
|
|
19554
19592
|
children: command
|
|
19555
19593
|
}
|
|
19556
19594
|
);
|
|
19557
|
-
const commandText = fixedHeight ? /* @__PURE__ */ jsx184(
|
|
19558
|
-
|
|
19595
|
+
const commandText = fixedHeight ? /* @__PURE__ */ jsx184("div", { className: cn(onCopy && "min-w-0 flex-1"), children: /* @__PURE__ */ jsx184(
|
|
19596
|
+
FadePreview,
|
|
19559
19597
|
{
|
|
19560
|
-
|
|
19561
|
-
|
|
19562
|
-
|
|
19598
|
+
fixedHeight: true,
|
|
19599
|
+
collapsedHeight: `calc(${visibleLines} * var(--font-line-space-h6-caption))`,
|
|
19600
|
+
labels: { more: "Show all", less: "Show less" },
|
|
19563
19601
|
children: text
|
|
19564
19602
|
}
|
|
19565
|
-
) : text;
|
|
19603
|
+
) }) : text;
|
|
19566
19604
|
return /* @__PURE__ */ jsxs145("div", { className: cn("flex flex-col gap-2", className), children: [
|
|
19567
19605
|
title && /* @__PURE__ */ jsx184("div", { className: "text-ods-text-primary text-h4", children: title }),
|
|
19568
19606
|
/* @__PURE__ */ jsxs145("div", { className: "rounded-[6px] border border-ods-border bg-ods-bg p-4", children: [
|
|
@@ -19662,7 +19700,7 @@ var ErrorBoundary = class extends Component2 {
|
|
|
19662
19700
|
};
|
|
19663
19701
|
|
|
19664
19702
|
// src/components/features/figma-prototype-viewer.tsx
|
|
19665
|
-
import { useState as useState50, useRef as useRef27, useEffect as
|
|
19703
|
+
import { useState as useState50, useRef as useRef27, useEffect as useEffect26, useCallback as useCallback18, useMemo as useMemo18 } from "react";
|
|
19666
19704
|
|
|
19667
19705
|
// src/components/features/section-selector.tsx
|
|
19668
19706
|
import { jsx as jsx186, jsxs as jsxs147 } from "react/jsx-runtime";
|
|
@@ -20118,7 +20156,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20118
20156
|
iframeKey
|
|
20119
20157
|
]
|
|
20120
20158
|
);
|
|
20121
|
-
|
|
20159
|
+
useEffect26(() => {
|
|
20122
20160
|
const handleResize = () => {
|
|
20123
20161
|
const newWidth = window.innerWidth;
|
|
20124
20162
|
setScreenWidth(newWidth);
|
|
@@ -20139,7 +20177,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20139
20177
|
setIframeKey((prev) => prev + 1);
|
|
20140
20178
|
}
|
|
20141
20179
|
}
|
|
20142
|
-
|
|
20180
|
+
useEffect26(() => {
|
|
20143
20181
|
const handleVisibilityChange = () => {
|
|
20144
20182
|
if (document.visibilityState === "visible" && iframeState === "READY") {
|
|
20145
20183
|
console.log("[Sleep Recovery] Reloading iframe after sleep");
|
|
@@ -20150,7 +20188,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20150
20188
|
document.addEventListener("visibilitychange", handleVisibilityChange);
|
|
20151
20189
|
return () => document.removeEventListener("visibilitychange", handleVisibilityChange);
|
|
20152
20190
|
}, [iframeState]);
|
|
20153
|
-
|
|
20191
|
+
useEffect26(() => {
|
|
20154
20192
|
const handleMessage = (event) => {
|
|
20155
20193
|
if (event.origin !== "https://www.figma.com") return;
|
|
20156
20194
|
const figmaEvent = toFigmaEvent(event.data);
|
|
@@ -20239,12 +20277,12 @@ var FigmaPrototypeViewer = ({
|
|
|
20239
20277
|
}
|
|
20240
20278
|
}, 500);
|
|
20241
20279
|
}, []);
|
|
20242
|
-
|
|
20280
|
+
useEffect26(() => {
|
|
20243
20281
|
if (externalActiveSection && externalActiveSection !== activeSection && isInitialized) {
|
|
20244
20282
|
navigateToSection(externalActiveSection);
|
|
20245
20283
|
}
|
|
20246
20284
|
}, [externalActiveSection, activeSection, isInitialized, navigateToSection]);
|
|
20247
|
-
|
|
20285
|
+
useEffect26(() => {
|
|
20248
20286
|
return () => {
|
|
20249
20287
|
if (navTimerRef.current) clearTimeout(navTimerRef.current);
|
|
20250
20288
|
if (touchTimerRef.current) clearTimeout(touchTimerRef.current);
|
|
@@ -20354,7 +20392,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20354
20392
|
};
|
|
20355
20393
|
|
|
20356
20394
|
// src/components/features/filters-dropdown.tsx
|
|
20357
|
-
import { useEffect as
|
|
20395
|
+
import { useEffect as useEffect27, useRef as useRef28, useState as useState51 } from "react";
|
|
20358
20396
|
import { jsx as jsx188, jsxs as jsxs149 } from "react/jsx-runtime";
|
|
20359
20397
|
var FilterCheckbox = ({ checked, disabled = false, className }) => {
|
|
20360
20398
|
return /* @__PURE__ */ jsx188(
|
|
@@ -20396,7 +20434,7 @@ var FiltersDropdown = ({
|
|
|
20396
20434
|
const containerRef = useRef28(null);
|
|
20397
20435
|
if (isOpen && !shouldRender) setShouldRender(true);
|
|
20398
20436
|
if (!isOpen && isVisible) setIsVisible(false);
|
|
20399
|
-
|
|
20437
|
+
useEffect27(() => {
|
|
20400
20438
|
if (isOpen) {
|
|
20401
20439
|
let id2 = 0;
|
|
20402
20440
|
const id1 = requestAnimationFrame(() => {
|
|
@@ -20411,7 +20449,7 @@ var FiltersDropdown = ({
|
|
|
20411
20449
|
return () => clearTimeout(t);
|
|
20412
20450
|
}, [isOpen]);
|
|
20413
20451
|
const isMobile = responsive && measuredMobile;
|
|
20414
|
-
|
|
20452
|
+
useEffect27(() => {
|
|
20415
20453
|
if (!responsive) return void 0;
|
|
20416
20454
|
const checkMobile = () => {
|
|
20417
20455
|
setIsMobile(window.innerWidth < 640);
|
|
@@ -20420,7 +20458,7 @@ var FiltersDropdown = ({
|
|
|
20420
20458
|
window.addEventListener("resize", checkMobile);
|
|
20421
20459
|
return () => window.removeEventListener("resize", checkMobile);
|
|
20422
20460
|
}, [responsive]);
|
|
20423
|
-
|
|
20461
|
+
useEffect27(() => {
|
|
20424
20462
|
if (!isOpen || isMobile || !triggerRef.current) return void 0;
|
|
20425
20463
|
const calculateOptimalPlacement = () => {
|
|
20426
20464
|
const trigger = triggerRef.current;
|
|
@@ -20472,7 +20510,7 @@ var FiltersDropdown = ({
|
|
|
20472
20510
|
setSelectedFilters(JSON.parse(currentFiltersStr));
|
|
20473
20511
|
}
|
|
20474
20512
|
}
|
|
20475
|
-
|
|
20513
|
+
useEffect27(() => {
|
|
20476
20514
|
const handleClickOutside = (event) => {
|
|
20477
20515
|
if (containerRef.current && !containerRef.current.contains(event.target)) {
|
|
20478
20516
|
setIsOpen(false);
|
|
@@ -20487,7 +20525,7 @@ var FiltersDropdown = ({
|
|
|
20487
20525
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
20488
20526
|
};
|
|
20489
20527
|
}, [isOpen]);
|
|
20490
|
-
|
|
20528
|
+
useEffect27(() => {
|
|
20491
20529
|
const handleEscape = (e) => {
|
|
20492
20530
|
if (e.key === "Escape" && isOpen) {
|
|
20493
20531
|
setIsOpen(false);
|
|
@@ -20718,7 +20756,7 @@ function KnowledgeBaseLinksManager({ links, onChange, className = "" }) {
|
|
|
20718
20756
|
}
|
|
20719
20757
|
|
|
20720
20758
|
// src/components/features/loading-provider.tsx
|
|
20721
|
-
import { createContext as createContext5, useContext as useContext5, useState as useState52, useEffect as
|
|
20759
|
+
import { createContext as createContext5, useContext as useContext5, useState as useState52, useEffect as useEffect28 } from "react";
|
|
20722
20760
|
import { jsx as jsx191, jsxs as jsxs150 } from "react/jsx-runtime";
|
|
20723
20761
|
var LoadingContext = createContext5(void 0);
|
|
20724
20762
|
function LoadingProvider({ children }) {
|
|
@@ -20729,7 +20767,7 @@ function LoadingProvider({ children }) {
|
|
|
20729
20767
|
setProgressFor(isLoading);
|
|
20730
20768
|
setProgress(isLoading ? 10 : 100);
|
|
20731
20769
|
}
|
|
20732
|
-
|
|
20770
|
+
useEffect28(() => {
|
|
20733
20771
|
if (isLoading) {
|
|
20734
20772
|
const interval = setInterval(() => {
|
|
20735
20773
|
setProgress((prevProgress) => {
|
|
@@ -20984,7 +21022,7 @@ function OSTypeBadgeGroup({ osTypes, className = "", iconSize = "w-5 h-5", maxDi
|
|
|
20984
21022
|
|
|
20985
21023
|
// src/components/features/parallax-image-showcase.tsx
|
|
20986
21024
|
import { motion, useScroll, useTransform, useMotionValue, useSpring } from "framer-motion";
|
|
20987
|
-
import { useEffect as
|
|
21025
|
+
import { useEffect as useEffect29, useState as useState54, useRef as useRef30 } from "react";
|
|
20988
21026
|
import { jsx as jsx195, jsxs as jsxs153 } from "react/jsx-runtime";
|
|
20989
21027
|
var ParallaxImageShowcase = ({
|
|
20990
21028
|
images,
|
|
@@ -21003,7 +21041,7 @@ var ParallaxImageShowcase = ({
|
|
|
21003
21041
|
const mouseYSpring = useSpring(mouseY, springConfig);
|
|
21004
21042
|
const [componentRect, setComponentRect] = useState54(null);
|
|
21005
21043
|
const componentRef = useRef30(null);
|
|
21006
|
-
|
|
21044
|
+
useEffect29(() => {
|
|
21007
21045
|
const updateRect = () => {
|
|
21008
21046
|
if (componentRef.current) {
|
|
21009
21047
|
setComponentRect(componentRef.current.getBoundingClientRect());
|
|
@@ -21017,7 +21055,7 @@ var ParallaxImageShowcase = ({
|
|
|
21017
21055
|
window.removeEventListener("scroll", updateRect);
|
|
21018
21056
|
};
|
|
21019
21057
|
}, []);
|
|
21020
|
-
|
|
21058
|
+
useEffect29(() => {
|
|
21021
21059
|
const handleGlobalMouseMove = (e) => {
|
|
21022
21060
|
if (!componentRect) return;
|
|
21023
21061
|
const centerX = componentRect.left + componentRect.width / 2;
|
|
@@ -21330,7 +21368,7 @@ function PlatformFilterComponent({
|
|
|
21330
21368
|
|
|
21331
21369
|
// src/components/features/push-button-selector.tsx
|
|
21332
21370
|
import { Check as Check2 } from "lucide-react";
|
|
21333
|
-
import { useEffect as
|
|
21371
|
+
import { useEffect as useEffect30, useRef as useRef31 } from "react";
|
|
21334
21372
|
|
|
21335
21373
|
// src/components/loading/unified-skeleton.tsx
|
|
21336
21374
|
import { jsx as jsx198 } from "react/jsx-runtime";
|
|
@@ -23037,7 +23075,7 @@ function PushButtonSelector({
|
|
|
23037
23075
|
const lazyFetching = lazyLoad?.isFetchingMore ?? false;
|
|
23038
23076
|
const onLoadMore = lazyLoad?.onLoadMore;
|
|
23039
23077
|
const optionCount = options.length;
|
|
23040
|
-
|
|
23078
|
+
useEffect30(() => {
|
|
23041
23079
|
const sentinel = sentinelRef.current;
|
|
23042
23080
|
const root = scrollRef.current;
|
|
23043
23081
|
if (!sentinel || !root || !onLoadMore || !lazyHasMore) return void 0;
|
|
@@ -24341,7 +24379,7 @@ function VideoBitesDisplay({
|
|
|
24341
24379
|
|
|
24342
24380
|
// src/components/features/walkthrough-video.tsx
|
|
24343
24381
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
|
24344
|
-
import { useCallback as useCallback20, useEffect as
|
|
24382
|
+
import { useCallback as useCallback20, useEffect as useEffect31, useLayoutEffect as useLayoutEffect2, useMemo as useMemo19, useRef as useRef33, useState as useState58 } from "react";
|
|
24345
24383
|
import { Fragment as Fragment36, jsx as jsx226, jsxs as jsxs180 } from "react/jsx-runtime";
|
|
24346
24384
|
var isAtEnd = (duration, time) => duration > 0 && duration - time < 1;
|
|
24347
24385
|
function theaterSeedFromLive(live, fallbackTime, fallbackMuted) {
|
|
@@ -24383,7 +24421,7 @@ function WalkthroughVideo({
|
|
|
24383
24421
|
const [dismissed, setDismissed] = useState58(false);
|
|
24384
24422
|
const hasVideo = video != null;
|
|
24385
24423
|
const videoId = video?.id;
|
|
24386
|
-
|
|
24424
|
+
useEffect31(() => {
|
|
24387
24425
|
let idleHandle = null;
|
|
24388
24426
|
if (!hasVideo) return void 0;
|
|
24389
24427
|
const timer = setTimeout(() => {
|
|
@@ -24449,7 +24487,7 @@ function WalkthroughVideo({
|
|
|
24449
24487
|
const previewAllowed = !previewSuppressed && !isYouTube;
|
|
24450
24488
|
const footerFadeKey = `${mounted ? 1 : 0}|${inline ? 1 : 0}|${hideNearSelector}|${pathname}`;
|
|
24451
24489
|
const footerHidden = footerObservation?.key === footerFadeKey && footerObservation.hidden;
|
|
24452
|
-
|
|
24490
|
+
useEffect31(() => {
|
|
24453
24491
|
if (!mounted) return void 0;
|
|
24454
24492
|
if (inline) return void 0;
|
|
24455
24493
|
const el = typeof document !== "undefined" ? document.querySelector(hideNearSelector) : null;
|
|
@@ -24461,7 +24499,7 @@ function WalkthroughVideo({
|
|
|
24461
24499
|
io.observe(el);
|
|
24462
24500
|
return () => io.disconnect();
|
|
24463
24501
|
}, [mounted, inline, hideNearSelector, pathname, footerFadeKey]);
|
|
24464
|
-
|
|
24502
|
+
useEffect31(() => {
|
|
24465
24503
|
if (!resumeMode) return void 0;
|
|
24466
24504
|
const onVis = () => {
|
|
24467
24505
|
if (document.visibilityState === "hidden") {
|
|
@@ -24477,7 +24515,7 @@ function WalkthroughVideo({
|
|
|
24477
24515
|
}, [resumeMode]);
|
|
24478
24516
|
if (footerHidden && !cardPaused) setCardPaused(true);
|
|
24479
24517
|
if (footerHidden && hovered) setHovered(false);
|
|
24480
|
-
|
|
24518
|
+
useEffect31(() => {
|
|
24481
24519
|
if (!footerHidden) return;
|
|
24482
24520
|
const h = resumeHandleRef.current ?? previewHandleRef.current;
|
|
24483
24521
|
try {
|
|
@@ -24632,10 +24670,10 @@ function WalkthroughVideo({
|
|
|
24632
24670
|
[setCardFallback, setCardMuted]
|
|
24633
24671
|
);
|
|
24634
24672
|
const handoffRef = useRef33(handoff);
|
|
24635
|
-
|
|
24673
|
+
useEffect31(() => {
|
|
24636
24674
|
handoffRef.current = handoff;
|
|
24637
24675
|
});
|
|
24638
|
-
|
|
24676
|
+
useEffect31(() => {
|
|
24639
24677
|
if (resumeMode) {
|
|
24640
24678
|
setCardMuted(handoffRef.current?.muted ?? false);
|
|
24641
24679
|
setCardPaused(handoffRef.current?.playing === false);
|
|
@@ -24728,7 +24766,7 @@ function WalkthroughVideo({
|
|
|
24728
24766
|
);
|
|
24729
24767
|
const cardActive = !open && previewAllowed && hovered && !resumeMode;
|
|
24730
24768
|
const cardMode = resumeMode ? "resume" : cardActive ? "preview" : "poster";
|
|
24731
|
-
|
|
24769
|
+
useEffect31(() => {
|
|
24732
24770
|
cardModeRef.current = cardMode;
|
|
24733
24771
|
});
|
|
24734
24772
|
if (!video || !video.mainVideoUrl && !video.youtubeUrl) return null;
|
|
@@ -26591,7 +26629,7 @@ PolicyConfigurationPanel.displayName = "PolicyConfigurationPanel";
|
|
|
26591
26629
|
|
|
26592
26630
|
// src/components/features/waitlist-form.tsx
|
|
26593
26631
|
import { getCountries as getCountries2 } from "libphonenumber-js";
|
|
26594
|
-
import { useEffect as
|
|
26632
|
+
import { useEffect as useEffect32, useState as useState62 } from "react";
|
|
26595
26633
|
import { Fragment as Fragment38, jsx as jsx246, jsxs as jsxs196 } from "react/jsx-runtime";
|
|
26596
26634
|
function WaitlistForm({
|
|
26597
26635
|
id = "waitlist-form",
|
|
@@ -26628,7 +26666,7 @@ function WaitlistForm({
|
|
|
26628
26666
|
setEmail(defaultEmail);
|
|
26629
26667
|
}
|
|
26630
26668
|
}
|
|
26631
|
-
|
|
26669
|
+
useEffect32(() => {
|
|
26632
26670
|
if (!geoApiUrl) return;
|
|
26633
26671
|
const supportedCountries = new Set(getCountries2());
|
|
26634
26672
|
const isSupportedCountry = (value) => supportedCountries.has(value);
|
|
@@ -26786,7 +26824,7 @@ import {
|
|
|
26786
26824
|
createContext as createContext6,
|
|
26787
26825
|
useCallback as useCallback22,
|
|
26788
26826
|
useContext as useContext6,
|
|
26789
|
-
useEffect as
|
|
26827
|
+
useEffect as useEffect33,
|
|
26790
26828
|
useMemo as useMemo20,
|
|
26791
26829
|
useReducer,
|
|
26792
26830
|
useRef as useRef34,
|
|
@@ -26878,7 +26916,7 @@ function NotificationsProvider({
|
|
|
26878
26916
|
const [showDesktopPopups, setShowDesktopPopupsState] = useState63(defaultShowDesktopPopups);
|
|
26879
26917
|
const desktopPopupsConfigured = onShowDesktopPopupsChange !== void 0;
|
|
26880
26918
|
const actionsRef = useRef34(actions);
|
|
26881
|
-
|
|
26919
|
+
useEffect33(() => {
|
|
26882
26920
|
actionsRef.current = actions;
|
|
26883
26921
|
}, [actions]);
|
|
26884
26922
|
const addNotification = useCallback22(
|
|
@@ -27016,7 +27054,7 @@ function useOptionalNotifications() {
|
|
|
27016
27054
|
}
|
|
27017
27055
|
|
|
27018
27056
|
// src/components/features/notifications/notification-drawer.tsx
|
|
27019
|
-
import { useEffect as
|
|
27057
|
+
import { useEffect as useEffect36, useRef as useRef36 } from "react";
|
|
27020
27058
|
|
|
27021
27059
|
// src/components/navigation/app-layout-context.ts
|
|
27022
27060
|
import { createContext as createContext7, useContext as useContext7 } from "react";
|
|
@@ -27037,7 +27075,7 @@ import {
|
|
|
27037
27075
|
forwardRef as forwardRef30,
|
|
27038
27076
|
useCallback as useCallback23,
|
|
27039
27077
|
useContext as useContext8,
|
|
27040
|
-
useEffect as
|
|
27078
|
+
useEffect as useEffect34,
|
|
27041
27079
|
useRef as useRef35,
|
|
27042
27080
|
useState as useState64
|
|
27043
27081
|
} from "react";
|
|
@@ -27064,7 +27102,7 @@ var AppLayoutDrawerRoot = ({
|
|
|
27064
27102
|
const coordination = useAppLayoutDrawerCoordination();
|
|
27065
27103
|
const openRef = useRef35(open);
|
|
27066
27104
|
const handleOpenChangeRef = useRef35(handleOpenChange);
|
|
27067
|
-
|
|
27105
|
+
useEffect34(() => {
|
|
27068
27106
|
openRef.current = open;
|
|
27069
27107
|
handleOpenChangeRef.current = handleOpenChange;
|
|
27070
27108
|
});
|
|
@@ -27073,10 +27111,10 @@ var AppLayoutDrawerRoot = ({
|
|
|
27073
27111
|
if (openRef.current) handleOpenChangeRef.current(false);
|
|
27074
27112
|
}
|
|
27075
27113
|
}));
|
|
27076
|
-
|
|
27114
|
+
useEffect34(() => {
|
|
27077
27115
|
if (open) coordination?.notifyDrawerDidOpen(selfHandle);
|
|
27078
27116
|
}, [open, coordination, selfHandle]);
|
|
27079
|
-
|
|
27117
|
+
useEffect34(() => coordination?.registerDrawer(selfHandle), [coordination, selfHandle]);
|
|
27080
27118
|
return /* @__PURE__ */ jsx248(DrawerOpenContext.Provider, { value: open, children: /* @__PURE__ */ jsx248(DialogPrimitive3.Root, { ...rest, open, onOpenChange: handleOpenChange, modal, children }) });
|
|
27081
27119
|
};
|
|
27082
27120
|
AppLayoutDrawerRoot.displayName = "AppLayoutDrawer";
|
|
@@ -27152,7 +27190,7 @@ function useContainedResizableSize({
|
|
|
27152
27190
|
container
|
|
27153
27191
|
}) {
|
|
27154
27192
|
const [available, setAvailable] = useState64(0);
|
|
27155
|
-
|
|
27193
|
+
useEffect34(() => {
|
|
27156
27194
|
if (!enabled || !container) return void 0;
|
|
27157
27195
|
const update = () => {
|
|
27158
27196
|
setAvailable(isHorizontal ? container.clientWidth : container.clientHeight);
|
|
@@ -27186,7 +27224,7 @@ function useContainedResizableSize({
|
|
|
27186
27224
|
const [rawSize, setSizeRaw] = useState64(readInitial);
|
|
27187
27225
|
const size = enabled ? clampToContainer(rawSize) : rawSize;
|
|
27188
27226
|
const setSize = useCallback23((next) => setSizeRaw(clampToContainer(next)), [clampToContainer]);
|
|
27189
|
-
|
|
27227
|
+
useEffect34(() => {
|
|
27190
27228
|
if (!enabled || !storageKey || typeof window === "undefined") return;
|
|
27191
27229
|
try {
|
|
27192
27230
|
window.localStorage.setItem(storageKey, String(Math.round(size)));
|
|
@@ -27317,7 +27355,7 @@ var AppLayoutDrawerContent = forwardRef30(
|
|
|
27317
27355
|
const [hasOpened, setHasOpened] = useState64(Boolean(open));
|
|
27318
27356
|
if (open && !hasOpened) setHasOpened(true);
|
|
27319
27357
|
const persist = keepMounted && hasOpened;
|
|
27320
|
-
|
|
27358
|
+
useEffect34(() => {
|
|
27321
27359
|
if (!debugLayoutShift) return void 0;
|
|
27322
27360
|
if (!open) return void 0;
|
|
27323
27361
|
if (typeof window === "undefined") return void 0;
|
|
@@ -27369,7 +27407,7 @@ var AppLayoutDrawerContent = forwardRef30(
|
|
|
27369
27407
|
const isHorizontal = HORIZONTAL_SIDES.has(resolvedSide);
|
|
27370
27408
|
const initialSize = defaultSize ?? (isHorizontal ? 560 : 480);
|
|
27371
27409
|
const [isMobile, setIsMobile] = useState64(false);
|
|
27372
|
-
|
|
27410
|
+
useEffect34(() => {
|
|
27373
27411
|
if (typeof window === "undefined") return void 0;
|
|
27374
27412
|
const mq = window.matchMedia(`(max-width: ${mobileBreakpoint - 1}px)`);
|
|
27375
27413
|
const update = () => setIsMobile(mq.matches);
|
|
@@ -27480,7 +27518,7 @@ var AppLayoutDrawerBody = DrawerBody;
|
|
|
27480
27518
|
var AppLayoutDrawerFooter = DrawerFooter;
|
|
27481
27519
|
|
|
27482
27520
|
// src/components/features/notifications/notification-tile.tsx
|
|
27483
|
-
import { useEffect as
|
|
27521
|
+
import { useEffect as useEffect35, useState as useState65 } from "react";
|
|
27484
27522
|
import { jsx as jsx249, jsxs as jsxs198 } from "react/jsx-runtime";
|
|
27485
27523
|
var variantBySeverity = {
|
|
27486
27524
|
INFO: "info",
|
|
@@ -27527,7 +27565,7 @@ function NotificationTile({
|
|
|
27527
27565
|
const [initialElapsed] = useState65(() => Date.now() - createdAt);
|
|
27528
27566
|
const isLive = !read && !settled && initialElapsed < liveDurationMs;
|
|
27529
27567
|
const counting = isLive && !paused;
|
|
27530
|
-
|
|
27568
|
+
useEffect35(() => {
|
|
27531
27569
|
if (!counting) return void 0;
|
|
27532
27570
|
const remaining = Math.max(0, liveDurationMs - initialElapsed);
|
|
27533
27571
|
const timer = window.setTimeout(() => {
|
|
@@ -27749,10 +27787,10 @@ function DrawerScrollList({
|
|
|
27749
27787
|
const scrollRef = useRef36(null);
|
|
27750
27788
|
const sentinelRef = useRef36(null);
|
|
27751
27789
|
const loadMoreRef = useRef36(loadMore);
|
|
27752
|
-
|
|
27790
|
+
useEffect36(() => {
|
|
27753
27791
|
loadMoreRef.current = loadMore;
|
|
27754
27792
|
});
|
|
27755
|
-
|
|
27793
|
+
useEffect36(() => {
|
|
27756
27794
|
if (!loadMore || !hasMore || isLoadingMore) return void 0;
|
|
27757
27795
|
const sentinel = sentinelRef.current;
|
|
27758
27796
|
const root = scrollRef.current;
|
|
@@ -27876,7 +27914,7 @@ function NotificationsHistoryButton({ onClick, historyHref }) {
|
|
|
27876
27914
|
}
|
|
27877
27915
|
|
|
27878
27916
|
// src/components/features/notifications/notification-popups.tsx
|
|
27879
|
-
import { useEffect as
|
|
27917
|
+
import { useEffect as useEffect37, useState as useState66 } from "react";
|
|
27880
27918
|
import { jsx as jsx251 } from "react/jsx-runtime";
|
|
27881
27919
|
var positionClasses = {
|
|
27882
27920
|
"top-right": "top-4 right-4",
|
|
@@ -27895,7 +27933,7 @@ function NotificationPopups({
|
|
|
27895
27933
|
const ctx = useOptionalNotifications();
|
|
27896
27934
|
const [now, setNow] = useState66(() => Date.now());
|
|
27897
27935
|
const hasAgeingNotifications = Boolean(ctx?.notifications.some((n) => !n.read && !n.settled));
|
|
27898
|
-
|
|
27936
|
+
useEffect37(() => {
|
|
27899
27937
|
if (!hasAgeingNotifications) return void 0;
|
|
27900
27938
|
const id = setInterval(() => setNow(Date.now()), 500);
|
|
27901
27939
|
return () => clearInterval(id);
|
|
@@ -28164,7 +28202,7 @@ function useOptionalTimeTracker() {
|
|
|
28164
28202
|
import { useState as useState70 } from "react";
|
|
28165
28203
|
|
|
28166
28204
|
// src/components/features/time-tracker/use-tracker-clock.ts
|
|
28167
|
-
import { useEffect as
|
|
28205
|
+
import { useEffect as useEffect38, useState as useState69 } from "react";
|
|
28168
28206
|
function formatElapsed(totalMs) {
|
|
28169
28207
|
const totalSeconds = Math.max(0, Math.floor(totalMs / 1e3));
|
|
28170
28208
|
const hours = Math.floor(totalSeconds / 3600);
|
|
@@ -28175,7 +28213,7 @@ function formatElapsed(totalMs) {
|
|
|
28175
28213
|
}
|
|
28176
28214
|
function useTrackerClock({ status, runningSince, accumulatedMs = 0 }) {
|
|
28177
28215
|
const [now, setNow] = useState69(() => Date.now());
|
|
28178
|
-
|
|
28216
|
+
useEffect38(() => {
|
|
28179
28217
|
if (status !== "tracking") return void 0;
|
|
28180
28218
|
const tick = () => setNow(Date.now());
|
|
28181
28219
|
tick();
|
|
@@ -28496,7 +28534,7 @@ function LastEntryRow({ entry, onClick }) {
|
|
|
28496
28534
|
|
|
28497
28535
|
// src/components/features/time-tracker/time-tracker-header-button.tsx
|
|
28498
28536
|
import * as PopoverPrimitive7 from "@radix-ui/react-popover";
|
|
28499
|
-
import { useEffect as
|
|
28537
|
+
import { useEffect as useEffect39, useRef as useRef37, useState as useState71 } from "react";
|
|
28500
28538
|
|
|
28501
28539
|
// src/components/navigation/unread-dot.tsx
|
|
28502
28540
|
import { jsx as jsx255 } from "react/jsx-runtime";
|
|
@@ -28577,7 +28615,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28577
28615
|
const isOpen = ctx?.isOpen ?? false;
|
|
28578
28616
|
const isOpenRef = useRef37(isOpen);
|
|
28579
28617
|
const closeRef = useRef37(ctx?.close);
|
|
28580
|
-
|
|
28618
|
+
useEffect39(() => {
|
|
28581
28619
|
isOpenRef.current = isOpen;
|
|
28582
28620
|
closeRef.current = ctx?.close;
|
|
28583
28621
|
});
|
|
@@ -28586,10 +28624,10 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28586
28624
|
if (isOpenRef.current) closeRef.current?.();
|
|
28587
28625
|
}
|
|
28588
28626
|
}));
|
|
28589
|
-
|
|
28627
|
+
useEffect39(() => {
|
|
28590
28628
|
if (isOpen) coordination?.notifyDrawerDidOpen(selfHandle);
|
|
28591
28629
|
}, [isOpen, coordination, selfHandle]);
|
|
28592
|
-
|
|
28630
|
+
useEffect39(() => coordination?.registerDrawer(selfHandle), [coordination, selfHandle]);
|
|
28593
28631
|
if (!ctx) return null;
|
|
28594
28632
|
const { open, close, status } = ctx;
|
|
28595
28633
|
const isPaused = status === "paused";
|
|
@@ -28664,7 +28702,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28664
28702
|
import { combine as combine3 } from "@atlaskit/pragmatic-drag-and-drop/combine";
|
|
28665
28703
|
import { monitorForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
|
|
28666
28704
|
import { preventUnhandled } from "@atlaskit/pragmatic-drag-and-drop/utils/prevent-unhandled";
|
|
28667
|
-
import { Fragment as Fragment44, useCallback as useCallback27, useEffect as
|
|
28705
|
+
import { Fragment as Fragment44, useCallback as useCallback27, useEffect as useEffect43, useMemo as useMemo23, useRef as useRef42, useState as useState76 } from "react";
|
|
28668
28706
|
import { createPortal } from "react-dom";
|
|
28669
28707
|
|
|
28670
28708
|
// src/utils/auto-scroll-ancestors.ts
|
|
@@ -28777,7 +28815,7 @@ function aimToChange(columns, ticketId, aim) {
|
|
|
28777
28815
|
// src/components/features/board/board-column.tsx
|
|
28778
28816
|
import { attachClosestEdge as attachClosestEdge2 } from "@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge";
|
|
28779
28817
|
import { dropTargetForElements as dropTargetForElements2 } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
|
|
28780
|
-
import { memo as memo6, useCallback as useCallback25, useEffect as
|
|
28818
|
+
import { memo as memo6, useCallback as useCallback25, useEffect as useEffect41, useRef as useRef40, useState as useState74 } from "react";
|
|
28781
28819
|
|
|
28782
28820
|
// src/components/features/board/board-column-header.tsx
|
|
28783
28821
|
import { jsx as jsx258, jsxs as jsxs204 } from "react/jsx-runtime";
|
|
@@ -28949,7 +28987,7 @@ import { preserveOffsetOnSource } from "@atlaskit/pragmatic-drag-and-drop/elemen
|
|
|
28949
28987
|
import { setCustomNativeDragPreview } from "@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview";
|
|
28950
28988
|
import {
|
|
28951
28989
|
memo as memo5,
|
|
28952
|
-
useEffect as
|
|
28990
|
+
useEffect as useEffect40,
|
|
28953
28991
|
useMemo as useMemo22,
|
|
28954
28992
|
useRef as useRef39,
|
|
28955
28993
|
useState as useState73
|
|
@@ -29184,7 +29222,7 @@ var TicketCard = memo5(function TicketCardImpl({
|
|
|
29184
29222
|
}) {
|
|
29185
29223
|
const ref = useRef39(null);
|
|
29186
29224
|
const ticketRef = useRef39(ticket);
|
|
29187
|
-
|
|
29225
|
+
useEffect40(() => {
|
|
29188
29226
|
ticketRef.current = ticket;
|
|
29189
29227
|
});
|
|
29190
29228
|
const [isDragging, setIsDragging] = useState73(false);
|
|
@@ -29199,7 +29237,7 @@ var TicketCard = memo5(function TicketCardImpl({
|
|
|
29199
29237
|
lift(ticket.id);
|
|
29200
29238
|
};
|
|
29201
29239
|
const keyShortcuts = dragDisabled || !lift ? void 0 : "Space";
|
|
29202
|
-
|
|
29240
|
+
useEffect40(() => {
|
|
29203
29241
|
const element = ref.current;
|
|
29204
29242
|
if (!element || dragDisabled) return void 0;
|
|
29205
29243
|
const identity = { type: "ticket", ticketId: ticket.id, columnId };
|
|
@@ -29425,7 +29463,7 @@ var BoardColumn = memo6(function BoardColumnImpl({
|
|
|
29425
29463
|
}) {
|
|
29426
29464
|
const laneRef = useRef40(null);
|
|
29427
29465
|
const [isOver, setIsOver] = useState74(false);
|
|
29428
|
-
|
|
29466
|
+
useEffect41(() => {
|
|
29429
29467
|
const element = laneRef.current;
|
|
29430
29468
|
if (!element || collapsed || touchMode || column.dropDisabled) return void 0;
|
|
29431
29469
|
return dropTargetForElements2({
|
|
@@ -29516,18 +29554,18 @@ function ColumnBody({
|
|
|
29516
29554
|
const scrollRef = useRef40(null);
|
|
29517
29555
|
const sentinelRef = useRef40(null);
|
|
29518
29556
|
useLaneScrollAnchor(scrollRef, column.tickets);
|
|
29519
|
-
|
|
29557
|
+
useEffect41(() => {
|
|
29520
29558
|
const element = scrollRef.current;
|
|
29521
29559
|
if (!element || touchMode) return void 0;
|
|
29522
29560
|
return autoScrollColumn(element);
|
|
29523
29561
|
}, [touchMode]);
|
|
29524
29562
|
const loadMoreRef = useRef40(onLoadMore);
|
|
29525
29563
|
const columnIdRef = useRef40(column.id);
|
|
29526
|
-
|
|
29564
|
+
useEffect41(() => {
|
|
29527
29565
|
loadMoreRef.current = onLoadMore;
|
|
29528
29566
|
columnIdRef.current = column.id;
|
|
29529
29567
|
});
|
|
29530
|
-
|
|
29568
|
+
useEffect41(() => {
|
|
29531
29569
|
if (!column.hasMore || column.isLoadingMore) return void 0;
|
|
29532
29570
|
const sentinel = sentinelRef.current;
|
|
29533
29571
|
const root = scrollRef.current;
|
|
@@ -29603,14 +29641,14 @@ function resolveBoardDrop(columns, { source, target }) {
|
|
|
29603
29641
|
}
|
|
29604
29642
|
|
|
29605
29643
|
// src/components/features/board/use-board-collapse.ts
|
|
29606
|
-
import { useCallback as useCallback26, useEffect as
|
|
29644
|
+
import { useCallback as useCallback26, useEffect as useEffect42, useRef as useRef41, useState as useState75 } from "react";
|
|
29607
29645
|
function useBoardCollapse(storageKey) {
|
|
29608
29646
|
const [persisted, setPersisted] = useLocalStorage(storageKey ?? "__board_collapse_unused__", {});
|
|
29609
29647
|
const [memory, setMemory] = useState75({});
|
|
29610
29648
|
const collapsed = storageKey ? persisted : memory;
|
|
29611
29649
|
const setMap = storageKey ? setPersisted : setMemory;
|
|
29612
29650
|
const setMapRef = useRef41(setMap);
|
|
29613
|
-
|
|
29651
|
+
useEffect42(() => {
|
|
29614
29652
|
setMapRef.current = setMap;
|
|
29615
29653
|
});
|
|
29616
29654
|
const toggle = useCallback26((columnId) => {
|
|
@@ -29729,7 +29767,7 @@ function DragBoard({
|
|
|
29729
29767
|
const [reportedMove, setPendingMove] = useState76(null);
|
|
29730
29768
|
const pendingMove = reportedMove && !hasMoveSettled(columns, reportedMove) ? reportedMove : null;
|
|
29731
29769
|
const view = useMemo23(() => pendingMove ? applyPendingMove(columns, pendingMove) : columns, [columns, pendingMove]);
|
|
29732
|
-
|
|
29770
|
+
useEffect43(() => {
|
|
29733
29771
|
columnsRef.current = view;
|
|
29734
29772
|
onChangeRef.current = onChange;
|
|
29735
29773
|
});
|
|
@@ -29786,7 +29824,7 @@ function DragBoard({
|
|
|
29786
29824
|
},
|
|
29787
29825
|
[lifted, view, acceptsLifted, laneLabel]
|
|
29788
29826
|
);
|
|
29789
|
-
|
|
29827
|
+
useEffect43(() => {
|
|
29790
29828
|
if (!lifted) return void 0;
|
|
29791
29829
|
const onKeyDown = (event) => {
|
|
29792
29830
|
if (event.key === "Escape") {
|
|
@@ -29804,7 +29842,7 @@ function DragBoard({
|
|
|
29804
29842
|
window.addEventListener("keydown", onKeyDown);
|
|
29805
29843
|
return () => window.removeEventListener("keydown", onKeyDown);
|
|
29806
29844
|
}, [lifted, drop, walk]);
|
|
29807
|
-
|
|
29845
|
+
useEffect43(() => {
|
|
29808
29846
|
if (!lifted) return;
|
|
29809
29847
|
boardRef.current?.querySelector(`[${DROP_LINE_ATTRIBUTE}]`)?.scrollIntoView({ block: "nearest", inline: "nearest" });
|
|
29810
29848
|
}, [lifted]);
|
|
@@ -29815,12 +29853,12 @@ function DragBoard({
|
|
|
29815
29853
|
const anchor = aimToChange(view, lifted.ticketId, lifted.aim) ? aimAnchor(view, lifted.ticketId, lifted.aim) : { ticketId: null, edge: null };
|
|
29816
29854
|
return { columnId: lifted.aim.columnId, ...anchor, ticket };
|
|
29817
29855
|
}, [lifted, view]);
|
|
29818
|
-
|
|
29856
|
+
useEffect43(() => {
|
|
29819
29857
|
if (!pendingMove) return void 0;
|
|
29820
29858
|
const timer = setTimeout(() => setPendingMove(null), PENDING_MOVE_TIMEOUT_MS);
|
|
29821
29859
|
return () => clearTimeout(timer);
|
|
29822
29860
|
}, [pendingMove]);
|
|
29823
|
-
|
|
29861
|
+
useEffect43(() => {
|
|
29824
29862
|
const scroller = scrollerRef.current;
|
|
29825
29863
|
const readAim = (source, target) => {
|
|
29826
29864
|
const ticket = source.data.ticket;
|
|
@@ -30119,7 +30157,7 @@ import {
|
|
|
30119
30157
|
createContext as createContext12,
|
|
30120
30158
|
useCallback as useCallback28,
|
|
30121
30159
|
useContext as useContext12,
|
|
30122
|
-
useEffect as
|
|
30160
|
+
useEffect as useEffect44,
|
|
30123
30161
|
useId as useId6,
|
|
30124
30162
|
useMemo as useMemo24,
|
|
30125
30163
|
useRef as useRef43,
|
|
@@ -30143,7 +30181,7 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
30143
30181
|
const [announcement, setAnnouncement] = useState77("");
|
|
30144
30182
|
const onReorderRef = useRef43(onReorder);
|
|
30145
30183
|
const getItemLabelRef = useRef43(getItemLabel);
|
|
30146
|
-
|
|
30184
|
+
useEffect44(() => {
|
|
30147
30185
|
onReorderRef.current = onReorder;
|
|
30148
30186
|
getItemLabelRef.current = getItemLabel;
|
|
30149
30187
|
});
|
|
@@ -30163,7 +30201,7 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
30163
30201
|
},
|
|
30164
30202
|
[readItems]
|
|
30165
30203
|
);
|
|
30166
|
-
|
|
30204
|
+
useEffect44(() => {
|
|
30167
30205
|
const list = listRef.current;
|
|
30168
30206
|
if (!list || disabled || !dragAndDropEnabled) return void 0;
|
|
30169
30207
|
let drag = null;
|
|
@@ -30254,7 +30292,7 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
30254
30292
|
for (const item of moving) item.style.transition = "";
|
|
30255
30293
|
}, DROP_MS2);
|
|
30256
30294
|
}, [flipTick, readItems]);
|
|
30257
|
-
|
|
30295
|
+
useEffect44(
|
|
30258
30296
|
() => () => {
|
|
30259
30297
|
if (flipTimer.current) clearTimeout(flipTimer.current);
|
|
30260
30298
|
},
|
|
@@ -30323,7 +30361,7 @@ function SortableMoveButtons({ index, count, label, className }) {
|
|
|
30323
30361
|
import { combine as combine5 } from "@atlaskit/pragmatic-drag-and-drop/combine";
|
|
30324
30362
|
import { draggable as draggable2 } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
|
|
30325
30363
|
import { disableNativeDragPreview } from "@atlaskit/pragmatic-drag-and-drop/element/disable-native-drag-preview";
|
|
30326
|
-
import { useCallback as useCallback29, useEffect as
|
|
30364
|
+
import { useCallback as useCallback29, useEffect as useEffect45, useState as useState78 } from "react";
|
|
30327
30365
|
function useSortableItem() {
|
|
30328
30366
|
const { dragType, disabled, dragAndDropEnabled, reorder, readItems } = useSortableListContext();
|
|
30329
30367
|
const inert = disabled || !dragAndDropEnabled;
|
|
@@ -30334,7 +30372,7 @@ function useSortableItem() {
|
|
|
30334
30372
|
node?.setAttribute(SORTABLE_ITEM_ATTRIBUTE, "");
|
|
30335
30373
|
setItem(node);
|
|
30336
30374
|
}, []);
|
|
30337
|
-
|
|
30375
|
+
useEffect45(() => {
|
|
30338
30376
|
if (!item || !handle || inert) return void 0;
|
|
30339
30377
|
return combine5(
|
|
30340
30378
|
// The drag has to start as a "move", or its first frame is drawn with the
|
|
@@ -31047,4 +31085,4 @@ export {
|
|
|
31047
31085
|
LazyMount,
|
|
31048
31086
|
IconTile
|
|
31049
31087
|
};
|
|
31050
|
-
//# sourceMappingURL=chunk-
|
|
31088
|
+
//# sourceMappingURL=chunk-KEHI5NAD.js.map
|