@flamingo-stack/openframe-frontend-core 0.0.622 → 0.0.623-snapshot.20260914025439
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-F4GW2DPW.js → chunk-56CBPVCF.js} +5 -5
- package/dist/{chunk-CLPPOP5T.cjs → chunk-5JOKGJSG.cjs} +11 -11
- package/dist/{chunk-CLPPOP5T.cjs.map → chunk-5JOKGJSG.cjs.map} +1 -1
- package/dist/{chunk-C6Y5FZMJ.cjs → chunk-AO6CJFQU.cjs} +18 -18
- package/dist/{chunk-C6Y5FZMJ.cjs.map → chunk-AO6CJFQU.cjs.map} +1 -1
- package/dist/{chunk-2BJONQDE.cjs → chunk-BC4GLCNE.cjs} +42 -42
- package/dist/{chunk-2BJONQDE.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-QUL55PJP.js → chunk-CP4YNYQA.js} +4 -4
- package/dist/{chunk-KTYYH3JV.cjs → chunk-D3IW3CSH.cjs} +5 -5
- package/dist/{chunk-KTYYH3JV.cjs.map → chunk-D3IW3CSH.cjs.map} +1 -1
- package/dist/{chunk-6TML2UIF.cjs → chunk-DPFMA6JD.cjs} +63 -63
- package/dist/{chunk-6TML2UIF.cjs.map → chunk-DPFMA6JD.cjs.map} +1 -1
- package/dist/{chunk-ME4C6DYA.cjs → chunk-DY4XQFGC.cjs} +12 -12
- package/dist/{chunk-ME4C6DYA.cjs.map → chunk-DY4XQFGC.cjs.map} +1 -1
- package/dist/{chunk-43JQ3SJS.js → chunk-EW6PYGB3.js} +2 -2
- package/dist/{chunk-EQ7AOKFK.js → chunk-F2G5BTBR.js} +9 -9
- package/dist/{chunk-A7TZZQGS.js → chunk-GRZHXAX6.js} +2 -2
- package/dist/{chunk-CKL3UD5N.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-KDZLAUHJ.cjs → chunk-IUMRVY4I.cjs} +28 -28
- package/dist/{chunk-KDZLAUHJ.cjs.map → chunk-IUMRVY4I.cjs.map} +1 -1
- package/dist/{chunk-PDGVOZCD.cjs → chunk-JEMBYNOG.cjs} +6 -6
- package/dist/{chunk-PDGVOZCD.cjs.map → chunk-JEMBYNOG.cjs.map} +1 -1
- package/dist/{chunk-7E24VV6D.js → chunk-JT4FL2DK.js} +8 -8
- package/dist/{chunk-IQNG52SU.js → chunk-KEHI5NAD.js} +189 -140
- package/dist/{chunk-IQNG52SU.js.map → chunk-KEHI5NAD.js.map} +1 -1
- package/dist/{chunk-NFITQGUP.js → chunk-KKD35GSD.js} +4 -4
- package/dist/{chunk-EYFFIJEY.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-RGVXFAWM.cjs → chunk-N3CTSPDZ.cjs} +3 -3
- package/dist/{chunk-RGVXFAWM.cjs.map → chunk-N3CTSPDZ.cjs.map} +1 -1
- package/dist/{chunk-IZ5GI3FP.cjs → chunk-NOQDSRSK.cjs} +11 -11
- package/dist/{chunk-IZ5GI3FP.cjs.map → chunk-NOQDSRSK.cjs.map} +1 -1
- package/dist/{chunk-5QUBQ4WP.js → chunk-NULR47FR.js} +4 -4
- package/dist/{chunk-7EV2UHWQ.cjs → chunk-OKMMP5PU.cjs} +734 -685
- package/dist/chunk-OKMMP5PU.cjs.map +1 -0
- package/dist/{chunk-Q2NPL4FU.cjs → chunk-OYP7ZNHW.cjs} +24 -24
- package/dist/{chunk-Q2NPL4FU.cjs.map → chunk-OYP7ZNHW.cjs.map} +1 -1
- package/dist/{chunk-CFZUWKQF.js → chunk-Q6QF35QE.js} +6 -6
- package/dist/{chunk-L4FR7YIS.js → chunk-QHH2GXHS.js} +3 -3
- package/dist/{chunk-VRUJPZ2C.js → chunk-RFUYCKBZ.js} +3 -3
- package/dist/{chunk-QCZMCOAD.cjs → chunk-TTSGX6AB.cjs} +33 -33
- package/dist/{chunk-QCZMCOAD.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-7OYQ6RVB.cjs → chunk-WKDNZXJK.cjs} +94 -94
- package/dist/{chunk-7OYQ6RVB.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-YEIX26DQ.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-5YVZQVSR.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-OHJZD7QU.js → chunk-ZYPB57IM.js} +4 -4
- package/dist/{chunk-O3P2INXM.cjs → chunk-ZZECM2I2.cjs} +27 -27
- package/dist/{chunk-O3P2INXM.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 +11 -1
- 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 +2 -1
- package/src/components/features/command-box.tsx +36 -3
- 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-7EV2UHWQ.cjs.map +0 -1
- package/dist/chunk-CJBSU3XB.cjs.map +0 -1
- package/dist/chunk-XAUPFCIJ.js.map +0 -1
- /package/dist/{chunk-F4GW2DPW.js.map → chunk-56CBPVCF.js.map} +0 -0
- /package/dist/{chunk-QUL55PJP.js.map → chunk-CP4YNYQA.js.map} +0 -0
- /package/dist/{chunk-43JQ3SJS.js.map → chunk-EW6PYGB3.js.map} +0 -0
- /package/dist/{chunk-EQ7AOKFK.js.map → chunk-F2G5BTBR.js.map} +0 -0
- /package/dist/{chunk-A7TZZQGS.js.map → chunk-GRZHXAX6.js.map} +0 -0
- /package/dist/{chunk-CKL3UD5N.js.map → chunk-HAYYFOUU.js.map} +0 -0
- /package/dist/{chunk-7E24VV6D.js.map → chunk-JT4FL2DK.js.map} +0 -0
- /package/dist/{chunk-NFITQGUP.js.map → chunk-KKD35GSD.js.map} +0 -0
- /package/dist/{chunk-EYFFIJEY.js.map → chunk-LDR3QNOT.js.map} +0 -0
- /package/dist/{chunk-5QUBQ4WP.js.map → chunk-NULR47FR.js.map} +0 -0
- /package/dist/{chunk-CFZUWKQF.js.map → chunk-Q6QF35QE.js.map} +0 -0
- /package/dist/{chunk-L4FR7YIS.js.map → chunk-QHH2GXHS.js.map} +0 -0
- /package/dist/{chunk-VRUJPZ2C.js.map → chunk-RFUYCKBZ.js.map} +0 -0
- /package/dist/{chunk-YEIX26DQ.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-5YVZQVSR.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-OHJZD7QU.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
|
}
|
|
@@ -19536,22 +19574,33 @@ function CommandBox({
|
|
|
19536
19574
|
className,
|
|
19537
19575
|
commandClassName,
|
|
19538
19576
|
maxLines = 0,
|
|
19577
|
+
visibleLines,
|
|
19539
19578
|
onCopy,
|
|
19540
19579
|
copyAriaLabel = "Copy command"
|
|
19541
19580
|
}) {
|
|
19542
|
-
const
|
|
19543
|
-
const
|
|
19581
|
+
const fixedHeight = visibleLines !== void 0 && visibleLines > 0;
|
|
19582
|
+
const lineClampClass = !fixedHeight && maxLines > 0 ? lineClampClasses[maxLines] : void 0;
|
|
19583
|
+
const text = /* @__PURE__ */ jsx184(
|
|
19544
19584
|
"div",
|
|
19545
19585
|
{
|
|
19546
19586
|
className: cn(
|
|
19547
19587
|
"break-all text-ods-text-primary text-code",
|
|
19548
|
-
onCopy && "min-w-0 flex-1",
|
|
19588
|
+
!fixedHeight && onCopy && "min-w-0 flex-1",
|
|
19549
19589
|
lineClampClass,
|
|
19550
19590
|
commandClassName
|
|
19551
19591
|
),
|
|
19552
19592
|
children: command
|
|
19553
19593
|
}
|
|
19554
19594
|
);
|
|
19595
|
+
const commandText = fixedHeight ? /* @__PURE__ */ jsx184("div", { className: cn(onCopy && "min-w-0 flex-1"), children: /* @__PURE__ */ jsx184(
|
|
19596
|
+
FadePreview,
|
|
19597
|
+
{
|
|
19598
|
+
fixedHeight: true,
|
|
19599
|
+
collapsedHeight: `calc(${visibleLines} * var(--font-line-space-h6-caption))`,
|
|
19600
|
+
labels: { more: "Show all", less: "Show less" },
|
|
19601
|
+
children: text
|
|
19602
|
+
}
|
|
19603
|
+
) }) : text;
|
|
19555
19604
|
return /* @__PURE__ */ jsxs145("div", { className: cn("flex flex-col gap-2", className), children: [
|
|
19556
19605
|
title && /* @__PURE__ */ jsx184("div", { className: "text-ods-text-primary text-h4", children: title }),
|
|
19557
19606
|
/* @__PURE__ */ jsxs145("div", { className: "rounded-[6px] border border-ods-border bg-ods-bg p-4", children: [
|
|
@@ -19651,7 +19700,7 @@ var ErrorBoundary = class extends Component2 {
|
|
|
19651
19700
|
};
|
|
19652
19701
|
|
|
19653
19702
|
// src/components/features/figma-prototype-viewer.tsx
|
|
19654
|
-
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";
|
|
19655
19704
|
|
|
19656
19705
|
// src/components/features/section-selector.tsx
|
|
19657
19706
|
import { jsx as jsx186, jsxs as jsxs147 } from "react/jsx-runtime";
|
|
@@ -20107,7 +20156,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20107
20156
|
iframeKey
|
|
20108
20157
|
]
|
|
20109
20158
|
);
|
|
20110
|
-
|
|
20159
|
+
useEffect26(() => {
|
|
20111
20160
|
const handleResize = () => {
|
|
20112
20161
|
const newWidth = window.innerWidth;
|
|
20113
20162
|
setScreenWidth(newWidth);
|
|
@@ -20128,7 +20177,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20128
20177
|
setIframeKey((prev) => prev + 1);
|
|
20129
20178
|
}
|
|
20130
20179
|
}
|
|
20131
|
-
|
|
20180
|
+
useEffect26(() => {
|
|
20132
20181
|
const handleVisibilityChange = () => {
|
|
20133
20182
|
if (document.visibilityState === "visible" && iframeState === "READY") {
|
|
20134
20183
|
console.log("[Sleep Recovery] Reloading iframe after sleep");
|
|
@@ -20139,7 +20188,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20139
20188
|
document.addEventListener("visibilitychange", handleVisibilityChange);
|
|
20140
20189
|
return () => document.removeEventListener("visibilitychange", handleVisibilityChange);
|
|
20141
20190
|
}, [iframeState]);
|
|
20142
|
-
|
|
20191
|
+
useEffect26(() => {
|
|
20143
20192
|
const handleMessage = (event) => {
|
|
20144
20193
|
if (event.origin !== "https://www.figma.com") return;
|
|
20145
20194
|
const figmaEvent = toFigmaEvent(event.data);
|
|
@@ -20228,12 +20277,12 @@ var FigmaPrototypeViewer = ({
|
|
|
20228
20277
|
}
|
|
20229
20278
|
}, 500);
|
|
20230
20279
|
}, []);
|
|
20231
|
-
|
|
20280
|
+
useEffect26(() => {
|
|
20232
20281
|
if (externalActiveSection && externalActiveSection !== activeSection && isInitialized) {
|
|
20233
20282
|
navigateToSection(externalActiveSection);
|
|
20234
20283
|
}
|
|
20235
20284
|
}, [externalActiveSection, activeSection, isInitialized, navigateToSection]);
|
|
20236
|
-
|
|
20285
|
+
useEffect26(() => {
|
|
20237
20286
|
return () => {
|
|
20238
20287
|
if (navTimerRef.current) clearTimeout(navTimerRef.current);
|
|
20239
20288
|
if (touchTimerRef.current) clearTimeout(touchTimerRef.current);
|
|
@@ -20343,7 +20392,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20343
20392
|
};
|
|
20344
20393
|
|
|
20345
20394
|
// src/components/features/filters-dropdown.tsx
|
|
20346
|
-
import { useEffect as
|
|
20395
|
+
import { useEffect as useEffect27, useRef as useRef28, useState as useState51 } from "react";
|
|
20347
20396
|
import { jsx as jsx188, jsxs as jsxs149 } from "react/jsx-runtime";
|
|
20348
20397
|
var FilterCheckbox = ({ checked, disabled = false, className }) => {
|
|
20349
20398
|
return /* @__PURE__ */ jsx188(
|
|
@@ -20385,7 +20434,7 @@ var FiltersDropdown = ({
|
|
|
20385
20434
|
const containerRef = useRef28(null);
|
|
20386
20435
|
if (isOpen && !shouldRender) setShouldRender(true);
|
|
20387
20436
|
if (!isOpen && isVisible) setIsVisible(false);
|
|
20388
|
-
|
|
20437
|
+
useEffect27(() => {
|
|
20389
20438
|
if (isOpen) {
|
|
20390
20439
|
let id2 = 0;
|
|
20391
20440
|
const id1 = requestAnimationFrame(() => {
|
|
@@ -20400,7 +20449,7 @@ var FiltersDropdown = ({
|
|
|
20400
20449
|
return () => clearTimeout(t);
|
|
20401
20450
|
}, [isOpen]);
|
|
20402
20451
|
const isMobile = responsive && measuredMobile;
|
|
20403
|
-
|
|
20452
|
+
useEffect27(() => {
|
|
20404
20453
|
if (!responsive) return void 0;
|
|
20405
20454
|
const checkMobile = () => {
|
|
20406
20455
|
setIsMobile(window.innerWidth < 640);
|
|
@@ -20409,7 +20458,7 @@ var FiltersDropdown = ({
|
|
|
20409
20458
|
window.addEventListener("resize", checkMobile);
|
|
20410
20459
|
return () => window.removeEventListener("resize", checkMobile);
|
|
20411
20460
|
}, [responsive]);
|
|
20412
|
-
|
|
20461
|
+
useEffect27(() => {
|
|
20413
20462
|
if (!isOpen || isMobile || !triggerRef.current) return void 0;
|
|
20414
20463
|
const calculateOptimalPlacement = () => {
|
|
20415
20464
|
const trigger = triggerRef.current;
|
|
@@ -20461,7 +20510,7 @@ var FiltersDropdown = ({
|
|
|
20461
20510
|
setSelectedFilters(JSON.parse(currentFiltersStr));
|
|
20462
20511
|
}
|
|
20463
20512
|
}
|
|
20464
|
-
|
|
20513
|
+
useEffect27(() => {
|
|
20465
20514
|
const handleClickOutside = (event) => {
|
|
20466
20515
|
if (containerRef.current && !containerRef.current.contains(event.target)) {
|
|
20467
20516
|
setIsOpen(false);
|
|
@@ -20476,7 +20525,7 @@ var FiltersDropdown = ({
|
|
|
20476
20525
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
20477
20526
|
};
|
|
20478
20527
|
}, [isOpen]);
|
|
20479
|
-
|
|
20528
|
+
useEffect27(() => {
|
|
20480
20529
|
const handleEscape = (e) => {
|
|
20481
20530
|
if (e.key === "Escape" && isOpen) {
|
|
20482
20531
|
setIsOpen(false);
|
|
@@ -20707,7 +20756,7 @@ function KnowledgeBaseLinksManager({ links, onChange, className = "" }) {
|
|
|
20707
20756
|
}
|
|
20708
20757
|
|
|
20709
20758
|
// src/components/features/loading-provider.tsx
|
|
20710
|
-
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";
|
|
20711
20760
|
import { jsx as jsx191, jsxs as jsxs150 } from "react/jsx-runtime";
|
|
20712
20761
|
var LoadingContext = createContext5(void 0);
|
|
20713
20762
|
function LoadingProvider({ children }) {
|
|
@@ -20718,7 +20767,7 @@ function LoadingProvider({ children }) {
|
|
|
20718
20767
|
setProgressFor(isLoading);
|
|
20719
20768
|
setProgress(isLoading ? 10 : 100);
|
|
20720
20769
|
}
|
|
20721
|
-
|
|
20770
|
+
useEffect28(() => {
|
|
20722
20771
|
if (isLoading) {
|
|
20723
20772
|
const interval = setInterval(() => {
|
|
20724
20773
|
setProgress((prevProgress) => {
|
|
@@ -20973,7 +21022,7 @@ function OSTypeBadgeGroup({ osTypes, className = "", iconSize = "w-5 h-5", maxDi
|
|
|
20973
21022
|
|
|
20974
21023
|
// src/components/features/parallax-image-showcase.tsx
|
|
20975
21024
|
import { motion, useScroll, useTransform, useMotionValue, useSpring } from "framer-motion";
|
|
20976
|
-
import { useEffect as
|
|
21025
|
+
import { useEffect as useEffect29, useState as useState54, useRef as useRef30 } from "react";
|
|
20977
21026
|
import { jsx as jsx195, jsxs as jsxs153 } from "react/jsx-runtime";
|
|
20978
21027
|
var ParallaxImageShowcase = ({
|
|
20979
21028
|
images,
|
|
@@ -20992,7 +21041,7 @@ var ParallaxImageShowcase = ({
|
|
|
20992
21041
|
const mouseYSpring = useSpring(mouseY, springConfig);
|
|
20993
21042
|
const [componentRect, setComponentRect] = useState54(null);
|
|
20994
21043
|
const componentRef = useRef30(null);
|
|
20995
|
-
|
|
21044
|
+
useEffect29(() => {
|
|
20996
21045
|
const updateRect = () => {
|
|
20997
21046
|
if (componentRef.current) {
|
|
20998
21047
|
setComponentRect(componentRef.current.getBoundingClientRect());
|
|
@@ -21006,7 +21055,7 @@ var ParallaxImageShowcase = ({
|
|
|
21006
21055
|
window.removeEventListener("scroll", updateRect);
|
|
21007
21056
|
};
|
|
21008
21057
|
}, []);
|
|
21009
|
-
|
|
21058
|
+
useEffect29(() => {
|
|
21010
21059
|
const handleGlobalMouseMove = (e) => {
|
|
21011
21060
|
if (!componentRect) return;
|
|
21012
21061
|
const centerX = componentRect.left + componentRect.width / 2;
|
|
@@ -21319,7 +21368,7 @@ function PlatformFilterComponent({
|
|
|
21319
21368
|
|
|
21320
21369
|
// src/components/features/push-button-selector.tsx
|
|
21321
21370
|
import { Check as Check2 } from "lucide-react";
|
|
21322
|
-
import { useEffect as
|
|
21371
|
+
import { useEffect as useEffect30, useRef as useRef31 } from "react";
|
|
21323
21372
|
|
|
21324
21373
|
// src/components/loading/unified-skeleton.tsx
|
|
21325
21374
|
import { jsx as jsx198 } from "react/jsx-runtime";
|
|
@@ -23026,7 +23075,7 @@ function PushButtonSelector({
|
|
|
23026
23075
|
const lazyFetching = lazyLoad?.isFetchingMore ?? false;
|
|
23027
23076
|
const onLoadMore = lazyLoad?.onLoadMore;
|
|
23028
23077
|
const optionCount = options.length;
|
|
23029
|
-
|
|
23078
|
+
useEffect30(() => {
|
|
23030
23079
|
const sentinel = sentinelRef.current;
|
|
23031
23080
|
const root = scrollRef.current;
|
|
23032
23081
|
if (!sentinel || !root || !onLoadMore || !lazyHasMore) return void 0;
|
|
@@ -24330,7 +24379,7 @@ function VideoBitesDisplay({
|
|
|
24330
24379
|
|
|
24331
24380
|
// src/components/features/walkthrough-video.tsx
|
|
24332
24381
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
|
24333
|
-
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";
|
|
24334
24383
|
import { Fragment as Fragment36, jsx as jsx226, jsxs as jsxs180 } from "react/jsx-runtime";
|
|
24335
24384
|
var isAtEnd = (duration, time) => duration > 0 && duration - time < 1;
|
|
24336
24385
|
function theaterSeedFromLive(live, fallbackTime, fallbackMuted) {
|
|
@@ -24372,7 +24421,7 @@ function WalkthroughVideo({
|
|
|
24372
24421
|
const [dismissed, setDismissed] = useState58(false);
|
|
24373
24422
|
const hasVideo = video != null;
|
|
24374
24423
|
const videoId = video?.id;
|
|
24375
|
-
|
|
24424
|
+
useEffect31(() => {
|
|
24376
24425
|
let idleHandle = null;
|
|
24377
24426
|
if (!hasVideo) return void 0;
|
|
24378
24427
|
const timer = setTimeout(() => {
|
|
@@ -24438,7 +24487,7 @@ function WalkthroughVideo({
|
|
|
24438
24487
|
const previewAllowed = !previewSuppressed && !isYouTube;
|
|
24439
24488
|
const footerFadeKey = `${mounted ? 1 : 0}|${inline ? 1 : 0}|${hideNearSelector}|${pathname}`;
|
|
24440
24489
|
const footerHidden = footerObservation?.key === footerFadeKey && footerObservation.hidden;
|
|
24441
|
-
|
|
24490
|
+
useEffect31(() => {
|
|
24442
24491
|
if (!mounted) return void 0;
|
|
24443
24492
|
if (inline) return void 0;
|
|
24444
24493
|
const el = typeof document !== "undefined" ? document.querySelector(hideNearSelector) : null;
|
|
@@ -24450,7 +24499,7 @@ function WalkthroughVideo({
|
|
|
24450
24499
|
io.observe(el);
|
|
24451
24500
|
return () => io.disconnect();
|
|
24452
24501
|
}, [mounted, inline, hideNearSelector, pathname, footerFadeKey]);
|
|
24453
|
-
|
|
24502
|
+
useEffect31(() => {
|
|
24454
24503
|
if (!resumeMode) return void 0;
|
|
24455
24504
|
const onVis = () => {
|
|
24456
24505
|
if (document.visibilityState === "hidden") {
|
|
@@ -24466,7 +24515,7 @@ function WalkthroughVideo({
|
|
|
24466
24515
|
}, [resumeMode]);
|
|
24467
24516
|
if (footerHidden && !cardPaused) setCardPaused(true);
|
|
24468
24517
|
if (footerHidden && hovered) setHovered(false);
|
|
24469
|
-
|
|
24518
|
+
useEffect31(() => {
|
|
24470
24519
|
if (!footerHidden) return;
|
|
24471
24520
|
const h = resumeHandleRef.current ?? previewHandleRef.current;
|
|
24472
24521
|
try {
|
|
@@ -24621,10 +24670,10 @@ function WalkthroughVideo({
|
|
|
24621
24670
|
[setCardFallback, setCardMuted]
|
|
24622
24671
|
);
|
|
24623
24672
|
const handoffRef = useRef33(handoff);
|
|
24624
|
-
|
|
24673
|
+
useEffect31(() => {
|
|
24625
24674
|
handoffRef.current = handoff;
|
|
24626
24675
|
});
|
|
24627
|
-
|
|
24676
|
+
useEffect31(() => {
|
|
24628
24677
|
if (resumeMode) {
|
|
24629
24678
|
setCardMuted(handoffRef.current?.muted ?? false);
|
|
24630
24679
|
setCardPaused(handoffRef.current?.playing === false);
|
|
@@ -24717,7 +24766,7 @@ function WalkthroughVideo({
|
|
|
24717
24766
|
);
|
|
24718
24767
|
const cardActive = !open && previewAllowed && hovered && !resumeMode;
|
|
24719
24768
|
const cardMode = resumeMode ? "resume" : cardActive ? "preview" : "poster";
|
|
24720
|
-
|
|
24769
|
+
useEffect31(() => {
|
|
24721
24770
|
cardModeRef.current = cardMode;
|
|
24722
24771
|
});
|
|
24723
24772
|
if (!video || !video.mainVideoUrl && !video.youtubeUrl) return null;
|
|
@@ -26580,7 +26629,7 @@ PolicyConfigurationPanel.displayName = "PolicyConfigurationPanel";
|
|
|
26580
26629
|
|
|
26581
26630
|
// src/components/features/waitlist-form.tsx
|
|
26582
26631
|
import { getCountries as getCountries2 } from "libphonenumber-js";
|
|
26583
|
-
import { useEffect as
|
|
26632
|
+
import { useEffect as useEffect32, useState as useState62 } from "react";
|
|
26584
26633
|
import { Fragment as Fragment38, jsx as jsx246, jsxs as jsxs196 } from "react/jsx-runtime";
|
|
26585
26634
|
function WaitlistForm({
|
|
26586
26635
|
id = "waitlist-form",
|
|
@@ -26617,7 +26666,7 @@ function WaitlistForm({
|
|
|
26617
26666
|
setEmail(defaultEmail);
|
|
26618
26667
|
}
|
|
26619
26668
|
}
|
|
26620
|
-
|
|
26669
|
+
useEffect32(() => {
|
|
26621
26670
|
if (!geoApiUrl) return;
|
|
26622
26671
|
const supportedCountries = new Set(getCountries2());
|
|
26623
26672
|
const isSupportedCountry = (value) => supportedCountries.has(value);
|
|
@@ -26775,7 +26824,7 @@ import {
|
|
|
26775
26824
|
createContext as createContext6,
|
|
26776
26825
|
useCallback as useCallback22,
|
|
26777
26826
|
useContext as useContext6,
|
|
26778
|
-
useEffect as
|
|
26827
|
+
useEffect as useEffect33,
|
|
26779
26828
|
useMemo as useMemo20,
|
|
26780
26829
|
useReducer,
|
|
26781
26830
|
useRef as useRef34,
|
|
@@ -26867,7 +26916,7 @@ function NotificationsProvider({
|
|
|
26867
26916
|
const [showDesktopPopups, setShowDesktopPopupsState] = useState63(defaultShowDesktopPopups);
|
|
26868
26917
|
const desktopPopupsConfigured = onShowDesktopPopupsChange !== void 0;
|
|
26869
26918
|
const actionsRef = useRef34(actions);
|
|
26870
|
-
|
|
26919
|
+
useEffect33(() => {
|
|
26871
26920
|
actionsRef.current = actions;
|
|
26872
26921
|
}, [actions]);
|
|
26873
26922
|
const addNotification = useCallback22(
|
|
@@ -27005,7 +27054,7 @@ function useOptionalNotifications() {
|
|
|
27005
27054
|
}
|
|
27006
27055
|
|
|
27007
27056
|
// src/components/features/notifications/notification-drawer.tsx
|
|
27008
|
-
import { useEffect as
|
|
27057
|
+
import { useEffect as useEffect36, useRef as useRef36 } from "react";
|
|
27009
27058
|
|
|
27010
27059
|
// src/components/navigation/app-layout-context.ts
|
|
27011
27060
|
import { createContext as createContext7, useContext as useContext7 } from "react";
|
|
@@ -27026,7 +27075,7 @@ import {
|
|
|
27026
27075
|
forwardRef as forwardRef30,
|
|
27027
27076
|
useCallback as useCallback23,
|
|
27028
27077
|
useContext as useContext8,
|
|
27029
|
-
useEffect as
|
|
27078
|
+
useEffect as useEffect34,
|
|
27030
27079
|
useRef as useRef35,
|
|
27031
27080
|
useState as useState64
|
|
27032
27081
|
} from "react";
|
|
@@ -27053,7 +27102,7 @@ var AppLayoutDrawerRoot = ({
|
|
|
27053
27102
|
const coordination = useAppLayoutDrawerCoordination();
|
|
27054
27103
|
const openRef = useRef35(open);
|
|
27055
27104
|
const handleOpenChangeRef = useRef35(handleOpenChange);
|
|
27056
|
-
|
|
27105
|
+
useEffect34(() => {
|
|
27057
27106
|
openRef.current = open;
|
|
27058
27107
|
handleOpenChangeRef.current = handleOpenChange;
|
|
27059
27108
|
});
|
|
@@ -27062,10 +27111,10 @@ var AppLayoutDrawerRoot = ({
|
|
|
27062
27111
|
if (openRef.current) handleOpenChangeRef.current(false);
|
|
27063
27112
|
}
|
|
27064
27113
|
}));
|
|
27065
|
-
|
|
27114
|
+
useEffect34(() => {
|
|
27066
27115
|
if (open) coordination?.notifyDrawerDidOpen(selfHandle);
|
|
27067
27116
|
}, [open, coordination, selfHandle]);
|
|
27068
|
-
|
|
27117
|
+
useEffect34(() => coordination?.registerDrawer(selfHandle), [coordination, selfHandle]);
|
|
27069
27118
|
return /* @__PURE__ */ jsx248(DrawerOpenContext.Provider, { value: open, children: /* @__PURE__ */ jsx248(DialogPrimitive3.Root, { ...rest, open, onOpenChange: handleOpenChange, modal, children }) });
|
|
27070
27119
|
};
|
|
27071
27120
|
AppLayoutDrawerRoot.displayName = "AppLayoutDrawer";
|
|
@@ -27141,7 +27190,7 @@ function useContainedResizableSize({
|
|
|
27141
27190
|
container
|
|
27142
27191
|
}) {
|
|
27143
27192
|
const [available, setAvailable] = useState64(0);
|
|
27144
|
-
|
|
27193
|
+
useEffect34(() => {
|
|
27145
27194
|
if (!enabled || !container) return void 0;
|
|
27146
27195
|
const update = () => {
|
|
27147
27196
|
setAvailable(isHorizontal ? container.clientWidth : container.clientHeight);
|
|
@@ -27175,7 +27224,7 @@ function useContainedResizableSize({
|
|
|
27175
27224
|
const [rawSize, setSizeRaw] = useState64(readInitial);
|
|
27176
27225
|
const size = enabled ? clampToContainer(rawSize) : rawSize;
|
|
27177
27226
|
const setSize = useCallback23((next) => setSizeRaw(clampToContainer(next)), [clampToContainer]);
|
|
27178
|
-
|
|
27227
|
+
useEffect34(() => {
|
|
27179
27228
|
if (!enabled || !storageKey || typeof window === "undefined") return;
|
|
27180
27229
|
try {
|
|
27181
27230
|
window.localStorage.setItem(storageKey, String(Math.round(size)));
|
|
@@ -27306,7 +27355,7 @@ var AppLayoutDrawerContent = forwardRef30(
|
|
|
27306
27355
|
const [hasOpened, setHasOpened] = useState64(Boolean(open));
|
|
27307
27356
|
if (open && !hasOpened) setHasOpened(true);
|
|
27308
27357
|
const persist = keepMounted && hasOpened;
|
|
27309
|
-
|
|
27358
|
+
useEffect34(() => {
|
|
27310
27359
|
if (!debugLayoutShift) return void 0;
|
|
27311
27360
|
if (!open) return void 0;
|
|
27312
27361
|
if (typeof window === "undefined") return void 0;
|
|
@@ -27358,7 +27407,7 @@ var AppLayoutDrawerContent = forwardRef30(
|
|
|
27358
27407
|
const isHorizontal = HORIZONTAL_SIDES.has(resolvedSide);
|
|
27359
27408
|
const initialSize = defaultSize ?? (isHorizontal ? 560 : 480);
|
|
27360
27409
|
const [isMobile, setIsMobile] = useState64(false);
|
|
27361
|
-
|
|
27410
|
+
useEffect34(() => {
|
|
27362
27411
|
if (typeof window === "undefined") return void 0;
|
|
27363
27412
|
const mq = window.matchMedia(`(max-width: ${mobileBreakpoint - 1}px)`);
|
|
27364
27413
|
const update = () => setIsMobile(mq.matches);
|
|
@@ -27469,7 +27518,7 @@ var AppLayoutDrawerBody = DrawerBody;
|
|
|
27469
27518
|
var AppLayoutDrawerFooter = DrawerFooter;
|
|
27470
27519
|
|
|
27471
27520
|
// src/components/features/notifications/notification-tile.tsx
|
|
27472
|
-
import { useEffect as
|
|
27521
|
+
import { useEffect as useEffect35, useState as useState65 } from "react";
|
|
27473
27522
|
import { jsx as jsx249, jsxs as jsxs198 } from "react/jsx-runtime";
|
|
27474
27523
|
var variantBySeverity = {
|
|
27475
27524
|
INFO: "info",
|
|
@@ -27516,7 +27565,7 @@ function NotificationTile({
|
|
|
27516
27565
|
const [initialElapsed] = useState65(() => Date.now() - createdAt);
|
|
27517
27566
|
const isLive = !read && !settled && initialElapsed < liveDurationMs;
|
|
27518
27567
|
const counting = isLive && !paused;
|
|
27519
|
-
|
|
27568
|
+
useEffect35(() => {
|
|
27520
27569
|
if (!counting) return void 0;
|
|
27521
27570
|
const remaining = Math.max(0, liveDurationMs - initialElapsed);
|
|
27522
27571
|
const timer = window.setTimeout(() => {
|
|
@@ -27738,10 +27787,10 @@ function DrawerScrollList({
|
|
|
27738
27787
|
const scrollRef = useRef36(null);
|
|
27739
27788
|
const sentinelRef = useRef36(null);
|
|
27740
27789
|
const loadMoreRef = useRef36(loadMore);
|
|
27741
|
-
|
|
27790
|
+
useEffect36(() => {
|
|
27742
27791
|
loadMoreRef.current = loadMore;
|
|
27743
27792
|
});
|
|
27744
|
-
|
|
27793
|
+
useEffect36(() => {
|
|
27745
27794
|
if (!loadMore || !hasMore || isLoadingMore) return void 0;
|
|
27746
27795
|
const sentinel = sentinelRef.current;
|
|
27747
27796
|
const root = scrollRef.current;
|
|
@@ -27865,7 +27914,7 @@ function NotificationsHistoryButton({ onClick, historyHref }) {
|
|
|
27865
27914
|
}
|
|
27866
27915
|
|
|
27867
27916
|
// src/components/features/notifications/notification-popups.tsx
|
|
27868
|
-
import { useEffect as
|
|
27917
|
+
import { useEffect as useEffect37, useState as useState66 } from "react";
|
|
27869
27918
|
import { jsx as jsx251 } from "react/jsx-runtime";
|
|
27870
27919
|
var positionClasses = {
|
|
27871
27920
|
"top-right": "top-4 right-4",
|
|
@@ -27884,7 +27933,7 @@ function NotificationPopups({
|
|
|
27884
27933
|
const ctx = useOptionalNotifications();
|
|
27885
27934
|
const [now, setNow] = useState66(() => Date.now());
|
|
27886
27935
|
const hasAgeingNotifications = Boolean(ctx?.notifications.some((n) => !n.read && !n.settled));
|
|
27887
|
-
|
|
27936
|
+
useEffect37(() => {
|
|
27888
27937
|
if (!hasAgeingNotifications) return void 0;
|
|
27889
27938
|
const id = setInterval(() => setNow(Date.now()), 500);
|
|
27890
27939
|
return () => clearInterval(id);
|
|
@@ -28153,7 +28202,7 @@ function useOptionalTimeTracker() {
|
|
|
28153
28202
|
import { useState as useState70 } from "react";
|
|
28154
28203
|
|
|
28155
28204
|
// src/components/features/time-tracker/use-tracker-clock.ts
|
|
28156
|
-
import { useEffect as
|
|
28205
|
+
import { useEffect as useEffect38, useState as useState69 } from "react";
|
|
28157
28206
|
function formatElapsed(totalMs) {
|
|
28158
28207
|
const totalSeconds = Math.max(0, Math.floor(totalMs / 1e3));
|
|
28159
28208
|
const hours = Math.floor(totalSeconds / 3600);
|
|
@@ -28164,7 +28213,7 @@ function formatElapsed(totalMs) {
|
|
|
28164
28213
|
}
|
|
28165
28214
|
function useTrackerClock({ status, runningSince, accumulatedMs = 0 }) {
|
|
28166
28215
|
const [now, setNow] = useState69(() => Date.now());
|
|
28167
|
-
|
|
28216
|
+
useEffect38(() => {
|
|
28168
28217
|
if (status !== "tracking") return void 0;
|
|
28169
28218
|
const tick = () => setNow(Date.now());
|
|
28170
28219
|
tick();
|
|
@@ -28485,7 +28534,7 @@ function LastEntryRow({ entry, onClick }) {
|
|
|
28485
28534
|
|
|
28486
28535
|
// src/components/features/time-tracker/time-tracker-header-button.tsx
|
|
28487
28536
|
import * as PopoverPrimitive7 from "@radix-ui/react-popover";
|
|
28488
|
-
import { useEffect as
|
|
28537
|
+
import { useEffect as useEffect39, useRef as useRef37, useState as useState71 } from "react";
|
|
28489
28538
|
|
|
28490
28539
|
// src/components/navigation/unread-dot.tsx
|
|
28491
28540
|
import { jsx as jsx255 } from "react/jsx-runtime";
|
|
@@ -28566,7 +28615,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28566
28615
|
const isOpen = ctx?.isOpen ?? false;
|
|
28567
28616
|
const isOpenRef = useRef37(isOpen);
|
|
28568
28617
|
const closeRef = useRef37(ctx?.close);
|
|
28569
|
-
|
|
28618
|
+
useEffect39(() => {
|
|
28570
28619
|
isOpenRef.current = isOpen;
|
|
28571
28620
|
closeRef.current = ctx?.close;
|
|
28572
28621
|
});
|
|
@@ -28575,10 +28624,10 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28575
28624
|
if (isOpenRef.current) closeRef.current?.();
|
|
28576
28625
|
}
|
|
28577
28626
|
}));
|
|
28578
|
-
|
|
28627
|
+
useEffect39(() => {
|
|
28579
28628
|
if (isOpen) coordination?.notifyDrawerDidOpen(selfHandle);
|
|
28580
28629
|
}, [isOpen, coordination, selfHandle]);
|
|
28581
|
-
|
|
28630
|
+
useEffect39(() => coordination?.registerDrawer(selfHandle), [coordination, selfHandle]);
|
|
28582
28631
|
if (!ctx) return null;
|
|
28583
28632
|
const { open, close, status } = ctx;
|
|
28584
28633
|
const isPaused = status === "paused";
|
|
@@ -28653,7 +28702,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28653
28702
|
import { combine as combine3 } from "@atlaskit/pragmatic-drag-and-drop/combine";
|
|
28654
28703
|
import { monitorForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
|
|
28655
28704
|
import { preventUnhandled } from "@atlaskit/pragmatic-drag-and-drop/utils/prevent-unhandled";
|
|
28656
|
-
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";
|
|
28657
28706
|
import { createPortal } from "react-dom";
|
|
28658
28707
|
|
|
28659
28708
|
// src/utils/auto-scroll-ancestors.ts
|
|
@@ -28766,7 +28815,7 @@ function aimToChange(columns, ticketId, aim) {
|
|
|
28766
28815
|
// src/components/features/board/board-column.tsx
|
|
28767
28816
|
import { attachClosestEdge as attachClosestEdge2 } from "@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge";
|
|
28768
28817
|
import { dropTargetForElements as dropTargetForElements2 } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
|
|
28769
|
-
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";
|
|
28770
28819
|
|
|
28771
28820
|
// src/components/features/board/board-column-header.tsx
|
|
28772
28821
|
import { jsx as jsx258, jsxs as jsxs204 } from "react/jsx-runtime";
|
|
@@ -28938,7 +28987,7 @@ import { preserveOffsetOnSource } from "@atlaskit/pragmatic-drag-and-drop/elemen
|
|
|
28938
28987
|
import { setCustomNativeDragPreview } from "@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview";
|
|
28939
28988
|
import {
|
|
28940
28989
|
memo as memo5,
|
|
28941
|
-
useEffect as
|
|
28990
|
+
useEffect as useEffect40,
|
|
28942
28991
|
useMemo as useMemo22,
|
|
28943
28992
|
useRef as useRef39,
|
|
28944
28993
|
useState as useState73
|
|
@@ -29173,7 +29222,7 @@ var TicketCard = memo5(function TicketCardImpl({
|
|
|
29173
29222
|
}) {
|
|
29174
29223
|
const ref = useRef39(null);
|
|
29175
29224
|
const ticketRef = useRef39(ticket);
|
|
29176
|
-
|
|
29225
|
+
useEffect40(() => {
|
|
29177
29226
|
ticketRef.current = ticket;
|
|
29178
29227
|
});
|
|
29179
29228
|
const [isDragging, setIsDragging] = useState73(false);
|
|
@@ -29188,7 +29237,7 @@ var TicketCard = memo5(function TicketCardImpl({
|
|
|
29188
29237
|
lift(ticket.id);
|
|
29189
29238
|
};
|
|
29190
29239
|
const keyShortcuts = dragDisabled || !lift ? void 0 : "Space";
|
|
29191
|
-
|
|
29240
|
+
useEffect40(() => {
|
|
29192
29241
|
const element = ref.current;
|
|
29193
29242
|
if (!element || dragDisabled) return void 0;
|
|
29194
29243
|
const identity = { type: "ticket", ticketId: ticket.id, columnId };
|
|
@@ -29414,7 +29463,7 @@ var BoardColumn = memo6(function BoardColumnImpl({
|
|
|
29414
29463
|
}) {
|
|
29415
29464
|
const laneRef = useRef40(null);
|
|
29416
29465
|
const [isOver, setIsOver] = useState74(false);
|
|
29417
|
-
|
|
29466
|
+
useEffect41(() => {
|
|
29418
29467
|
const element = laneRef.current;
|
|
29419
29468
|
if (!element || collapsed || touchMode || column.dropDisabled) return void 0;
|
|
29420
29469
|
return dropTargetForElements2({
|
|
@@ -29505,18 +29554,18 @@ function ColumnBody({
|
|
|
29505
29554
|
const scrollRef = useRef40(null);
|
|
29506
29555
|
const sentinelRef = useRef40(null);
|
|
29507
29556
|
useLaneScrollAnchor(scrollRef, column.tickets);
|
|
29508
|
-
|
|
29557
|
+
useEffect41(() => {
|
|
29509
29558
|
const element = scrollRef.current;
|
|
29510
29559
|
if (!element || touchMode) return void 0;
|
|
29511
29560
|
return autoScrollColumn(element);
|
|
29512
29561
|
}, [touchMode]);
|
|
29513
29562
|
const loadMoreRef = useRef40(onLoadMore);
|
|
29514
29563
|
const columnIdRef = useRef40(column.id);
|
|
29515
|
-
|
|
29564
|
+
useEffect41(() => {
|
|
29516
29565
|
loadMoreRef.current = onLoadMore;
|
|
29517
29566
|
columnIdRef.current = column.id;
|
|
29518
29567
|
});
|
|
29519
|
-
|
|
29568
|
+
useEffect41(() => {
|
|
29520
29569
|
if (!column.hasMore || column.isLoadingMore) return void 0;
|
|
29521
29570
|
const sentinel = sentinelRef.current;
|
|
29522
29571
|
const root = scrollRef.current;
|
|
@@ -29592,14 +29641,14 @@ function resolveBoardDrop(columns, { source, target }) {
|
|
|
29592
29641
|
}
|
|
29593
29642
|
|
|
29594
29643
|
// src/components/features/board/use-board-collapse.ts
|
|
29595
|
-
import { useCallback as useCallback26, useEffect as
|
|
29644
|
+
import { useCallback as useCallback26, useEffect as useEffect42, useRef as useRef41, useState as useState75 } from "react";
|
|
29596
29645
|
function useBoardCollapse(storageKey) {
|
|
29597
29646
|
const [persisted, setPersisted] = useLocalStorage(storageKey ?? "__board_collapse_unused__", {});
|
|
29598
29647
|
const [memory, setMemory] = useState75({});
|
|
29599
29648
|
const collapsed = storageKey ? persisted : memory;
|
|
29600
29649
|
const setMap = storageKey ? setPersisted : setMemory;
|
|
29601
29650
|
const setMapRef = useRef41(setMap);
|
|
29602
|
-
|
|
29651
|
+
useEffect42(() => {
|
|
29603
29652
|
setMapRef.current = setMap;
|
|
29604
29653
|
});
|
|
29605
29654
|
const toggle = useCallback26((columnId) => {
|
|
@@ -29718,7 +29767,7 @@ function DragBoard({
|
|
|
29718
29767
|
const [reportedMove, setPendingMove] = useState76(null);
|
|
29719
29768
|
const pendingMove = reportedMove && !hasMoveSettled(columns, reportedMove) ? reportedMove : null;
|
|
29720
29769
|
const view = useMemo23(() => pendingMove ? applyPendingMove(columns, pendingMove) : columns, [columns, pendingMove]);
|
|
29721
|
-
|
|
29770
|
+
useEffect43(() => {
|
|
29722
29771
|
columnsRef.current = view;
|
|
29723
29772
|
onChangeRef.current = onChange;
|
|
29724
29773
|
});
|
|
@@ -29775,7 +29824,7 @@ function DragBoard({
|
|
|
29775
29824
|
},
|
|
29776
29825
|
[lifted, view, acceptsLifted, laneLabel]
|
|
29777
29826
|
);
|
|
29778
|
-
|
|
29827
|
+
useEffect43(() => {
|
|
29779
29828
|
if (!lifted) return void 0;
|
|
29780
29829
|
const onKeyDown = (event) => {
|
|
29781
29830
|
if (event.key === "Escape") {
|
|
@@ -29793,7 +29842,7 @@ function DragBoard({
|
|
|
29793
29842
|
window.addEventListener("keydown", onKeyDown);
|
|
29794
29843
|
return () => window.removeEventListener("keydown", onKeyDown);
|
|
29795
29844
|
}, [lifted, drop, walk]);
|
|
29796
|
-
|
|
29845
|
+
useEffect43(() => {
|
|
29797
29846
|
if (!lifted) return;
|
|
29798
29847
|
boardRef.current?.querySelector(`[${DROP_LINE_ATTRIBUTE}]`)?.scrollIntoView({ block: "nearest", inline: "nearest" });
|
|
29799
29848
|
}, [lifted]);
|
|
@@ -29804,12 +29853,12 @@ function DragBoard({
|
|
|
29804
29853
|
const anchor = aimToChange(view, lifted.ticketId, lifted.aim) ? aimAnchor(view, lifted.ticketId, lifted.aim) : { ticketId: null, edge: null };
|
|
29805
29854
|
return { columnId: lifted.aim.columnId, ...anchor, ticket };
|
|
29806
29855
|
}, [lifted, view]);
|
|
29807
|
-
|
|
29856
|
+
useEffect43(() => {
|
|
29808
29857
|
if (!pendingMove) return void 0;
|
|
29809
29858
|
const timer = setTimeout(() => setPendingMove(null), PENDING_MOVE_TIMEOUT_MS);
|
|
29810
29859
|
return () => clearTimeout(timer);
|
|
29811
29860
|
}, [pendingMove]);
|
|
29812
|
-
|
|
29861
|
+
useEffect43(() => {
|
|
29813
29862
|
const scroller = scrollerRef.current;
|
|
29814
29863
|
const readAim = (source, target) => {
|
|
29815
29864
|
const ticket = source.data.ticket;
|
|
@@ -30108,7 +30157,7 @@ import {
|
|
|
30108
30157
|
createContext as createContext12,
|
|
30109
30158
|
useCallback as useCallback28,
|
|
30110
30159
|
useContext as useContext12,
|
|
30111
|
-
useEffect as
|
|
30160
|
+
useEffect as useEffect44,
|
|
30112
30161
|
useId as useId6,
|
|
30113
30162
|
useMemo as useMemo24,
|
|
30114
30163
|
useRef as useRef43,
|
|
@@ -30132,7 +30181,7 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
30132
30181
|
const [announcement, setAnnouncement] = useState77("");
|
|
30133
30182
|
const onReorderRef = useRef43(onReorder);
|
|
30134
30183
|
const getItemLabelRef = useRef43(getItemLabel);
|
|
30135
|
-
|
|
30184
|
+
useEffect44(() => {
|
|
30136
30185
|
onReorderRef.current = onReorder;
|
|
30137
30186
|
getItemLabelRef.current = getItemLabel;
|
|
30138
30187
|
});
|
|
@@ -30152,7 +30201,7 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
30152
30201
|
},
|
|
30153
30202
|
[readItems]
|
|
30154
30203
|
);
|
|
30155
|
-
|
|
30204
|
+
useEffect44(() => {
|
|
30156
30205
|
const list = listRef.current;
|
|
30157
30206
|
if (!list || disabled || !dragAndDropEnabled) return void 0;
|
|
30158
30207
|
let drag = null;
|
|
@@ -30243,7 +30292,7 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
30243
30292
|
for (const item of moving) item.style.transition = "";
|
|
30244
30293
|
}, DROP_MS2);
|
|
30245
30294
|
}, [flipTick, readItems]);
|
|
30246
|
-
|
|
30295
|
+
useEffect44(
|
|
30247
30296
|
() => () => {
|
|
30248
30297
|
if (flipTimer.current) clearTimeout(flipTimer.current);
|
|
30249
30298
|
},
|
|
@@ -30312,7 +30361,7 @@ function SortableMoveButtons({ index, count, label, className }) {
|
|
|
30312
30361
|
import { combine as combine5 } from "@atlaskit/pragmatic-drag-and-drop/combine";
|
|
30313
30362
|
import { draggable as draggable2 } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
|
|
30314
30363
|
import { disableNativeDragPreview } from "@atlaskit/pragmatic-drag-and-drop/element/disable-native-drag-preview";
|
|
30315
|
-
import { useCallback as useCallback29, useEffect as
|
|
30364
|
+
import { useCallback as useCallback29, useEffect as useEffect45, useState as useState78 } from "react";
|
|
30316
30365
|
function useSortableItem() {
|
|
30317
30366
|
const { dragType, disabled, dragAndDropEnabled, reorder, readItems } = useSortableListContext();
|
|
30318
30367
|
const inert = disabled || !dragAndDropEnabled;
|
|
@@ -30323,7 +30372,7 @@ function useSortableItem() {
|
|
|
30323
30372
|
node?.setAttribute(SORTABLE_ITEM_ATTRIBUTE, "");
|
|
30324
30373
|
setItem(node);
|
|
30325
30374
|
}, []);
|
|
30326
|
-
|
|
30375
|
+
useEffect45(() => {
|
|
30327
30376
|
if (!item || !handle || inert) return void 0;
|
|
30328
30377
|
return combine5(
|
|
30329
30378
|
// The drag has to start as a "move", or its first frame is drawn with the
|
|
@@ -31036,4 +31085,4 @@ export {
|
|
|
31036
31085
|
LazyMount,
|
|
31037
31086
|
IconTile
|
|
31038
31087
|
};
|
|
31039
|
-
//# sourceMappingURL=chunk-
|
|
31088
|
+
//# sourceMappingURL=chunk-KEHI5NAD.js.map
|