@flamingo-stack/openframe-frontend-core 0.0.651 → 0.0.652-2252.6520.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-RRIJPDW2.cjs → chunk-27OZEE3E.cjs} +3 -3
- package/dist/{chunk-RRIJPDW2.cjs.map → chunk-27OZEE3E.cjs.map} +1 -1
- package/dist/{chunk-W6XVMTJX.js → chunk-2FWS52HR.js} +3 -3
- package/dist/{chunk-765P644V.cjs → chunk-4T7E2SWL.cjs} +13 -13
- package/dist/{chunk-765P644V.cjs.map → chunk-4T7E2SWL.cjs.map} +1 -1
- package/dist/{chunk-K4HT2U2O.js → chunk-74EGKPX3.js} +2 -2
- package/dist/{chunk-RRKQL65P.cjs → chunk-AAITIXRL.cjs} +17 -17
- package/dist/{chunk-RRKQL65P.cjs.map → chunk-AAITIXRL.cjs.map} +1 -1
- package/dist/{chunk-7G6SBEX5.js → chunk-ADXTLFG7.js} +5 -5
- package/dist/{chunk-JTBLAQPZ.js → chunk-AGQZRNYV.js} +4 -4
- package/dist/{chunk-S7NRYXGG.js → chunk-BRIJIC6E.js} +4 -4
- package/dist/{chunk-YWAZDKPP.cjs → chunk-BXE3DLIC.cjs} +17 -17
- package/dist/{chunk-YWAZDKPP.cjs.map → chunk-BXE3DLIC.cjs.map} +1 -1
- package/dist/{chunk-ITQCUJW7.cjs → chunk-DVT5JCLD.cjs} +3 -3
- package/dist/{chunk-ITQCUJW7.cjs.map → chunk-DVT5JCLD.cjs.map} +1 -1
- package/dist/{chunk-TD3K7HLZ.cjs → chunk-ERFHLMWM.cjs} +182 -146
- package/dist/chunk-ERFHLMWM.cjs.map +1 -0
- package/dist/{chunk-TVUKPILJ.cjs → chunk-EY2OVL3Z.cjs} +10 -10
- package/dist/{chunk-TVUKPILJ.cjs.map → chunk-EY2OVL3Z.cjs.map} +1 -1
- package/dist/{chunk-VSE47UQ4.cjs → chunk-FBKB4HCZ.cjs} +3 -3
- package/dist/{chunk-VSE47UQ4.cjs.map → chunk-FBKB4HCZ.cjs.map} +1 -1
- package/dist/{chunk-KXKRR6GZ.js → chunk-HM6D2YHS.js} +2 -2
- package/dist/{chunk-OL7PTXX5.js → chunk-HSPLCV56.js} +2 -2
- package/dist/{chunk-P2BO5XWB.cjs → chunk-I3KD7T6K.cjs} +36 -36
- package/dist/{chunk-P2BO5XWB.cjs.map → chunk-I3KD7T6K.cjs.map} +1 -1
- package/dist/{chunk-SIYE64HI.cjs → chunk-I5Y6ZALR.cjs} +51 -51
- package/dist/{chunk-SIYE64HI.cjs.map → chunk-I5Y6ZALR.cjs.map} +1 -1
- package/dist/{chunk-WYF5TVYX.cjs → chunk-JCVGQDQV.cjs} +33 -33
- package/dist/{chunk-WYF5TVYX.cjs.map → chunk-JCVGQDQV.cjs.map} +1 -1
- package/dist/{chunk-OU6VI2QH.cjs → chunk-JWY5ES3H.cjs} +4 -4
- package/dist/{chunk-OU6VI2QH.cjs.map → chunk-JWY5ES3H.cjs.map} +1 -1
- package/dist/{chunk-R54B74M4.js → chunk-LDC37FG4.js} +2 -2
- package/dist/{chunk-PAY4RZPD.js → chunk-LECSFMGM.js} +183 -147
- package/dist/{chunk-PAY4RZPD.js.map → chunk-LECSFMGM.js.map} +1 -1
- package/dist/{chunk-RDNO3KCF.js → chunk-LUEURQOY.js} +5 -5
- package/dist/{chunk-DAOL4ZRO.js → chunk-N4RVPWPM.js} +2 -2
- package/dist/{chunk-O4J4V5YL.js → chunk-NTJUFHX2.js} +2 -2
- package/dist/{chunk-JAMRFKAS.js → chunk-QUNY6URW.js} +2 -2
- package/dist/{chunk-XRMFLKI5.js → chunk-QZJ4K7SG.js} +2 -2
- package/dist/{chunk-QWCWFAGZ.js → chunk-TGHSQUTD.js} +2 -2
- package/dist/{chunk-PQZH3476.cjs → chunk-UEFHMMJX.cjs} +18 -18
- package/dist/{chunk-PQZH3476.cjs.map → chunk-UEFHMMJX.cjs.map} +1 -1
- package/dist/{chunk-GKSPWGB2.cjs → chunk-VIHX7ADQ.cjs} +3 -3
- package/dist/{chunk-GKSPWGB2.cjs.map → chunk-VIHX7ADQ.cjs.map} +1 -1
- package/dist/{chunk-SH7SZZC4.cjs → chunk-ZVLOG2AV.cjs} +4 -4
- package/dist/{chunk-SH7SZZC4.cjs.map → chunk-ZVLOG2AV.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +11 -11
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/features/section-selector.d.ts +13 -0
- package/dist/components/features/section-selector.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +31 -31
- package/dist/components/index.js +12 -12
- package/dist/components/meeting-scheduler/index.cjs +21 -21
- package/dist/components/meeting-scheduler/index.js +1 -1
- package/dist/components/navigation/index.cjs +5 -5
- package/dist/components/navigation/index.js +4 -4
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/src/components/features/section-selector.tsx +79 -6
- package/dist/chunk-TD3K7HLZ.cjs.map +0 -1
- /package/dist/{chunk-W6XVMTJX.js.map → chunk-2FWS52HR.js.map} +0 -0
- /package/dist/{chunk-K4HT2U2O.js.map → chunk-74EGKPX3.js.map} +0 -0
- /package/dist/{chunk-7G6SBEX5.js.map → chunk-ADXTLFG7.js.map} +0 -0
- /package/dist/{chunk-JTBLAQPZ.js.map → chunk-AGQZRNYV.js.map} +0 -0
- /package/dist/{chunk-S7NRYXGG.js.map → chunk-BRIJIC6E.js.map} +0 -0
- /package/dist/{chunk-KXKRR6GZ.js.map → chunk-HM6D2YHS.js.map} +0 -0
- /package/dist/{chunk-OL7PTXX5.js.map → chunk-HSPLCV56.js.map} +0 -0
- /package/dist/{chunk-R54B74M4.js.map → chunk-LDC37FG4.js.map} +0 -0
- /package/dist/{chunk-RDNO3KCF.js.map → chunk-LUEURQOY.js.map} +0 -0
- /package/dist/{chunk-DAOL4ZRO.js.map → chunk-N4RVPWPM.js.map} +0 -0
- /package/dist/{chunk-O4J4V5YL.js.map → chunk-NTJUFHX2.js.map} +0 -0
- /package/dist/{chunk-JAMRFKAS.js.map → chunk-QUNY6URW.js.map} +0 -0
- /package/dist/{chunk-XRMFLKI5.js.map → chunk-QZJ4K7SG.js.map} +0 -0
- /package/dist/{chunk-QWCWFAGZ.js.map → chunk-TGHSQUTD.js.map} +0 -0
|
@@ -19779,15 +19779,17 @@ var ErrorBoundary = class extends Component2 {
|
|
|
19779
19779
|
};
|
|
19780
19780
|
|
|
19781
19781
|
// src/components/features/figma-prototype-viewer.tsx
|
|
19782
|
-
import { useState as useState50, useRef as
|
|
19782
|
+
import { useState as useState50, useRef as useRef28, useEffect as useEffect27, useCallback as useCallback18, useMemo as useMemo18 } from "react";
|
|
19783
19783
|
|
|
19784
19784
|
// src/components/features/section-selector.tsx
|
|
19785
|
+
import { useEffect as useEffect26, useRef as useRef27 } from "react";
|
|
19785
19786
|
import { jsx as jsx188, jsxs as jsxs149 } from "react/jsx-runtime";
|
|
19786
19787
|
var SectionButton = ({
|
|
19787
19788
|
section,
|
|
19788
19789
|
isActive,
|
|
19789
19790
|
disabled,
|
|
19790
19791
|
onClick,
|
|
19792
|
+
isTabStop,
|
|
19791
19793
|
layout,
|
|
19792
19794
|
widthClasses,
|
|
19793
19795
|
buttonClassName,
|
|
@@ -19805,16 +19807,24 @@ var SectionButton = ({
|
|
|
19805
19807
|
onClick,
|
|
19806
19808
|
disabled: isDisabled,
|
|
19807
19809
|
variant: "outline",
|
|
19810
|
+
role: "tab",
|
|
19811
|
+
"aria-selected": isActive,
|
|
19812
|
+
tabIndex: isTabStop ? 0 : -1,
|
|
19808
19813
|
className: cn(
|
|
19809
19814
|
"!items-start !justify-start bg-ods-card !text-left shadow-ods-card hover:bg-ods-card-hover",
|
|
19810
19815
|
isActive && "border-ods-accent",
|
|
19811
19816
|
widthClasses,
|
|
19812
19817
|
buttonClassName,
|
|
19813
19818
|
isActive && activeButtonClassName,
|
|
19814
|
-
layout === "vertical" ?
|
|
19819
|
+
layout === "vertical" ? (
|
|
19820
|
+
// Strip below lg: a compact, non-shrinking tab. Side list from lg: the full card.
|
|
19821
|
+
"!h-auto !min-h-12 shrink-0 !px-[var(--spacing-system-mf)] !py-[var(--spacing-system-sf)] lg:!min-h-[var(--section-min-height)] lg:shrink lg:!py-[var(--spacing-system-mf)]"
|
|
19822
|
+
) : "!h-auto !min-h-[76px] !whitespace-normal !text-left"
|
|
19815
19823
|
),
|
|
19816
19824
|
style: {
|
|
19817
|
-
|
|
19825
|
+
// The side list's height is a CSS variable so the strip can ignore it; an
|
|
19826
|
+
// inline `minHeight` would make every strip tab as tall as a side card.
|
|
19827
|
+
...layout === "vertical" ? { "--section-min-height": minHeight } : { minHeight },
|
|
19818
19828
|
touchAction: "manipulation",
|
|
19819
19829
|
WebkitTapHighlightColor: "transparent",
|
|
19820
19830
|
textAlign: "left",
|
|
@@ -19828,7 +19838,7 @@ var SectionButton = ({
|
|
|
19828
19838
|
section.number && /* @__PURE__ */ jsx188("span", { className: cn(numberClasses, "shrink-0 text-h3"), children: section.number }),
|
|
19829
19839
|
/* @__PURE__ */ jsxs149("div", { className: "min-w-0 flex-1 text-left", children: [
|
|
19830
19840
|
/* @__PURE__ */ jsxs149("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
19831
|
-
/* @__PURE__ */ jsx188("p", { className: cn(titleClasses, "whitespace-normal break-words
|
|
19841
|
+
/* @__PURE__ */ jsx188("p", { className: cn(titleClasses, "whitespace-nowrap text-h4 lg:whitespace-normal lg:break-words"), children: section.title }),
|
|
19832
19842
|
section.badge && /* @__PURE__ */ jsx188(
|
|
19833
19843
|
StatusBadge,
|
|
19834
19844
|
{
|
|
@@ -19838,7 +19848,7 @@ var SectionButton = ({
|
|
|
19838
19848
|
}
|
|
19839
19849
|
)
|
|
19840
19850
|
] }),
|
|
19841
|
-
section.description && showDescription && /* @__PURE__ */ jsx188("p", { className: cn(subtitleClasses, "mt-1 whitespace-normal break-words text-h6"), children: section.description })
|
|
19851
|
+
section.description && showDescription && /* @__PURE__ */ jsx188("p", { className: cn(subtitleClasses, "mt-1 hidden whitespace-normal break-words text-h6 lg:block"), children: section.description })
|
|
19842
19852
|
] })
|
|
19843
19853
|
] })
|
|
19844
19854
|
) : (
|
|
@@ -19878,9 +19888,34 @@ var SectionSelector = ({
|
|
|
19878
19888
|
showDescription = true
|
|
19879
19889
|
}) => {
|
|
19880
19890
|
const containerClasses = cn(
|
|
19881
|
-
layout === "wrap" ? "flex flex-wrap gap-2 md:gap-4 lg:gap-6" : "flex flex-
|
|
19891
|
+
layout === "wrap" ? "flex flex-wrap gap-2 md:gap-4 lg:gap-6" : "flex flex-row gap-[var(--spacing-system-xsf)] overflow-x-auto [scrollbar-width:none] lg:flex-col lg:overflow-visible [&::-webkit-scrollbar]:hidden",
|
|
19882
19892
|
className
|
|
19883
19893
|
);
|
|
19894
|
+
const listRef = useRef27(null);
|
|
19895
|
+
useEffect26(() => {
|
|
19896
|
+
const list = listRef.current;
|
|
19897
|
+
const active = list?.querySelector('[role="tab"][aria-selected="true"]');
|
|
19898
|
+
if (!list || !active || list.scrollWidth <= list.clientWidth) return;
|
|
19899
|
+
const offset = active.getBoundingClientRect().left - list.getBoundingClientRect().left;
|
|
19900
|
+
list.scrollLeft += offset - (list.clientWidth - active.clientWidth) / 2;
|
|
19901
|
+
}, [activeSection]);
|
|
19902
|
+
const enabled = sections.filter((section) => !section.disabled && !disabled);
|
|
19903
|
+
const tabStopId = enabled.some((section) => section.id === activeSection) ? activeSection : enabled[0]?.id;
|
|
19904
|
+
const onKeyDown = (event) => {
|
|
19905
|
+
const step = event.key === "ArrowRight" || event.key === "ArrowDown" ? 1 : event.key === "ArrowLeft" || event.key === "ArrowUp" ? -1 : 0;
|
|
19906
|
+
if (!step && event.key !== "Home" && event.key !== "End") return;
|
|
19907
|
+
if (enabled.length === 0) return;
|
|
19908
|
+
event.preventDefault();
|
|
19909
|
+
const at = Math.max(
|
|
19910
|
+
0,
|
|
19911
|
+
enabled.findIndex((section) => section.id === activeSection)
|
|
19912
|
+
);
|
|
19913
|
+
const next = event.key === "Home" ? enabled[0] : event.key === "End" ? enabled[enabled.length - 1] : enabled[(at + step + enabled.length) % enabled.length];
|
|
19914
|
+
onSectionChange(next.id);
|
|
19915
|
+
requestAnimationFrame(
|
|
19916
|
+
() => listRef.current?.querySelector('[role="tab"][aria-selected="true"]')?.focus()
|
|
19917
|
+
);
|
|
19918
|
+
};
|
|
19884
19919
|
const getButtonWidthClasses = () => {
|
|
19885
19920
|
switch (buttonWidth) {
|
|
19886
19921
|
case "full":
|
|
@@ -19892,7 +19927,7 @@ var SectionSelector = ({
|
|
|
19892
19927
|
}
|
|
19893
19928
|
};
|
|
19894
19929
|
const widthClasses = getButtonWidthClasses();
|
|
19895
|
-
return /* @__PURE__ */ jsx188("div", { className: containerClasses, children: sections.map((section) => /* @__PURE__ */ jsx188(
|
|
19930
|
+
return /* @__PURE__ */ jsx188("div", { ref: listRef, role: "tablist", onKeyDown, className: containerClasses, children: sections.map((section) => /* @__PURE__ */ jsx188(
|
|
19896
19931
|
SectionButton,
|
|
19897
19932
|
{
|
|
19898
19933
|
section,
|
|
@@ -19904,7 +19939,8 @@ var SectionSelector = ({
|
|
|
19904
19939
|
buttonClassName,
|
|
19905
19940
|
activeButtonClassName,
|
|
19906
19941
|
minHeight,
|
|
19907
|
-
showDescription
|
|
19942
|
+
showDescription,
|
|
19943
|
+
isTabStop: section.id === tabStopId
|
|
19908
19944
|
},
|
|
19909
19945
|
section.id
|
|
19910
19946
|
)) });
|
|
@@ -20166,10 +20202,10 @@ var FigmaPrototypeViewer = ({
|
|
|
20166
20202
|
const { sections: configSections, onSectionChange } = config;
|
|
20167
20203
|
const clientId = process.env.NEXT_PUBLIC_FIGMA_CLIENT_ID || "UTQPwZHR9OZp68TTGPFFi5";
|
|
20168
20204
|
const showDebugPanel = process.env.NEXT_PUBLIC_FIGMA_DEBUG === "true";
|
|
20169
|
-
const iframeRef =
|
|
20170
|
-
const containerRef =
|
|
20171
|
-
const navTimerRef =
|
|
20172
|
-
const touchTimerRef =
|
|
20205
|
+
const iframeRef = useRef28(null);
|
|
20206
|
+
const containerRef = useRef28(null);
|
|
20207
|
+
const navTimerRef = useRef28(null);
|
|
20208
|
+
const touchTimerRef = useRef28(null);
|
|
20173
20209
|
const [screenWidth, setScreenWidth] = useState50(
|
|
20174
20210
|
typeof window !== "undefined" ? window.innerWidth : DESKTOP_BREAKPOINT
|
|
20175
20211
|
);
|
|
@@ -20235,7 +20271,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20235
20271
|
iframeKey
|
|
20236
20272
|
]
|
|
20237
20273
|
);
|
|
20238
|
-
|
|
20274
|
+
useEffect27(() => {
|
|
20239
20275
|
const handleResize = () => {
|
|
20240
20276
|
const newWidth = window.innerWidth;
|
|
20241
20277
|
setScreenWidth(newWidth);
|
|
@@ -20256,7 +20292,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20256
20292
|
setIframeKey((prev) => prev + 1);
|
|
20257
20293
|
}
|
|
20258
20294
|
}
|
|
20259
|
-
|
|
20295
|
+
useEffect27(() => {
|
|
20260
20296
|
const handleVisibilityChange = () => {
|
|
20261
20297
|
if (document.visibilityState === "visible" && iframeState === "READY") {
|
|
20262
20298
|
console.log("[Sleep Recovery] Reloading iframe after sleep");
|
|
@@ -20267,7 +20303,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20267
20303
|
document.addEventListener("visibilitychange", handleVisibilityChange);
|
|
20268
20304
|
return () => document.removeEventListener("visibilitychange", handleVisibilityChange);
|
|
20269
20305
|
}, [iframeState]);
|
|
20270
|
-
|
|
20306
|
+
useEffect27(() => {
|
|
20271
20307
|
const handleMessage = (event) => {
|
|
20272
20308
|
if (event.origin !== "https://www.figma.com") return;
|
|
20273
20309
|
const figmaEvent = toFigmaEvent(event.data);
|
|
@@ -20356,12 +20392,12 @@ var FigmaPrototypeViewer = ({
|
|
|
20356
20392
|
}
|
|
20357
20393
|
}, 500);
|
|
20358
20394
|
}, []);
|
|
20359
|
-
|
|
20395
|
+
useEffect27(() => {
|
|
20360
20396
|
if (externalActiveSection && externalActiveSection !== activeSection && isInitialized) {
|
|
20361
20397
|
navigateToSection(externalActiveSection);
|
|
20362
20398
|
}
|
|
20363
20399
|
}, [externalActiveSection, activeSection, isInitialized, navigateToSection]);
|
|
20364
|
-
|
|
20400
|
+
useEffect27(() => {
|
|
20365
20401
|
return () => {
|
|
20366
20402
|
if (navTimerRef.current) clearTimeout(navTimerRef.current);
|
|
20367
20403
|
if (touchTimerRef.current) clearTimeout(touchTimerRef.current);
|
|
@@ -20471,7 +20507,7 @@ var FigmaPrototypeViewer = ({
|
|
|
20471
20507
|
};
|
|
20472
20508
|
|
|
20473
20509
|
// src/components/features/filters-dropdown.tsx
|
|
20474
|
-
import { useEffect as
|
|
20510
|
+
import { useEffect as useEffect28, useRef as useRef29, useState as useState51 } from "react";
|
|
20475
20511
|
import { jsx as jsx190, jsxs as jsxs151 } from "react/jsx-runtime";
|
|
20476
20512
|
var FilterCheckbox = ({ checked, disabled = false, className }) => {
|
|
20477
20513
|
return /* @__PURE__ */ jsx190(
|
|
@@ -20508,12 +20544,12 @@ var FiltersDropdown = ({
|
|
|
20508
20544
|
const [isVisible, setIsVisible] = useState51(false);
|
|
20509
20545
|
const [measuredMobile, setIsMobile] = useState51(false);
|
|
20510
20546
|
const [actualPlacement, setActualPlacement] = useState51(placement);
|
|
20511
|
-
const dropdownRef =
|
|
20512
|
-
const triggerRef =
|
|
20513
|
-
const containerRef =
|
|
20547
|
+
const dropdownRef = useRef29(null);
|
|
20548
|
+
const triggerRef = useRef29(null);
|
|
20549
|
+
const containerRef = useRef29(null);
|
|
20514
20550
|
if (isOpen && !shouldRender) setShouldRender(true);
|
|
20515
20551
|
if (!isOpen && isVisible) setIsVisible(false);
|
|
20516
|
-
|
|
20552
|
+
useEffect28(() => {
|
|
20517
20553
|
if (isOpen) {
|
|
20518
20554
|
let id2 = 0;
|
|
20519
20555
|
const id1 = requestAnimationFrame(() => {
|
|
@@ -20528,7 +20564,7 @@ var FiltersDropdown = ({
|
|
|
20528
20564
|
return () => clearTimeout(t);
|
|
20529
20565
|
}, [isOpen]);
|
|
20530
20566
|
const isMobile = responsive && measuredMobile;
|
|
20531
|
-
|
|
20567
|
+
useEffect28(() => {
|
|
20532
20568
|
if (!responsive) return void 0;
|
|
20533
20569
|
const checkMobile = () => {
|
|
20534
20570
|
setIsMobile(window.innerWidth < 640);
|
|
@@ -20537,7 +20573,7 @@ var FiltersDropdown = ({
|
|
|
20537
20573
|
window.addEventListener("resize", checkMobile);
|
|
20538
20574
|
return () => window.removeEventListener("resize", checkMobile);
|
|
20539
20575
|
}, [responsive]);
|
|
20540
|
-
|
|
20576
|
+
useEffect28(() => {
|
|
20541
20577
|
if (!isOpen || isMobile || !triggerRef.current) return void 0;
|
|
20542
20578
|
const calculateOptimalPlacement = () => {
|
|
20543
20579
|
const trigger = triggerRef.current;
|
|
@@ -20589,7 +20625,7 @@ var FiltersDropdown = ({
|
|
|
20589
20625
|
setSelectedFilters(JSON.parse(currentFiltersStr));
|
|
20590
20626
|
}
|
|
20591
20627
|
}
|
|
20592
|
-
|
|
20628
|
+
useEffect28(() => {
|
|
20593
20629
|
const handleClickOutside = (event) => {
|
|
20594
20630
|
if (containerRef.current && !containerRef.current.contains(event.target)) {
|
|
20595
20631
|
setIsOpen(false);
|
|
@@ -20604,7 +20640,7 @@ var FiltersDropdown = ({
|
|
|
20604
20640
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
20605
20641
|
};
|
|
20606
20642
|
}, [isOpen]);
|
|
20607
|
-
|
|
20643
|
+
useEffect28(() => {
|
|
20608
20644
|
const handleEscape = (e) => {
|
|
20609
20645
|
if (e.key === "Escape" && isOpen) {
|
|
20610
20646
|
setIsOpen(false);
|
|
@@ -20835,7 +20871,7 @@ function KnowledgeBaseLinksManager({ links, onChange, className = "" }) {
|
|
|
20835
20871
|
}
|
|
20836
20872
|
|
|
20837
20873
|
// src/components/features/loading-provider.tsx
|
|
20838
|
-
import { createContext as createContext5, useContext as useContext5, useState as useState52, useEffect as
|
|
20874
|
+
import { createContext as createContext5, useContext as useContext5, useState as useState52, useEffect as useEffect29 } from "react";
|
|
20839
20875
|
import { jsx as jsx193, jsxs as jsxs152 } from "react/jsx-runtime";
|
|
20840
20876
|
var LoadingContext = createContext5(void 0);
|
|
20841
20877
|
function LoadingProvider({ children }) {
|
|
@@ -20846,7 +20882,7 @@ function LoadingProvider({ children }) {
|
|
|
20846
20882
|
setProgressFor(isLoading);
|
|
20847
20883
|
setProgress(isLoading ? 10 : 100);
|
|
20848
20884
|
}
|
|
20849
|
-
|
|
20885
|
+
useEffect29(() => {
|
|
20850
20886
|
if (isLoading) {
|
|
20851
20887
|
const interval = setInterval(() => {
|
|
20852
20888
|
setProgress((prevProgress) => {
|
|
@@ -20886,7 +20922,7 @@ function useLoading() {
|
|
|
20886
20922
|
|
|
20887
20923
|
// src/components/features/media-gallery-manager.tsx
|
|
20888
20924
|
import { Upload as Upload2, Image as ImageIcon2, Video as VideoIcon, Trash2 as Trash23, Loader2 as Loader26, GripVertical, Plus as Plus4 } from "lucide-react";
|
|
20889
|
-
import { useState as useState53, useRef as
|
|
20925
|
+
import { useState as useState53, useRef as useRef30, useCallback as useCallback19 } from "react";
|
|
20890
20926
|
import { jsx as jsx194, jsxs as jsxs153 } from "react/jsx-runtime";
|
|
20891
20927
|
function MediaGalleryManager({
|
|
20892
20928
|
media,
|
|
@@ -20895,7 +20931,7 @@ function MediaGalleryManager({
|
|
|
20895
20931
|
isUploading = false,
|
|
20896
20932
|
className = ""
|
|
20897
20933
|
}) {
|
|
20898
|
-
const fileInputRef =
|
|
20934
|
+
const fileInputRef = useRef30(null);
|
|
20899
20935
|
const [deletingIndex, setDeletingIndex] = useState53(null);
|
|
20900
20936
|
const [draggedIndex, setDraggedIndex] = useState53(null);
|
|
20901
20937
|
const handleFileSelect = useCallback19(
|
|
@@ -21101,7 +21137,7 @@ function OSTypeBadgeGroup({ osTypes, className = "", iconSize = "w-5 h-5", maxDi
|
|
|
21101
21137
|
|
|
21102
21138
|
// src/components/features/parallax-image-showcase.tsx
|
|
21103
21139
|
import { motion, useScroll, useTransform, useMotionValue, useSpring } from "framer-motion";
|
|
21104
|
-
import { useEffect as
|
|
21140
|
+
import { useEffect as useEffect30, useState as useState54, useRef as useRef31 } from "react";
|
|
21105
21141
|
import { jsx as jsx197, jsxs as jsxs155 } from "react/jsx-runtime";
|
|
21106
21142
|
var ParallaxImageShowcase = ({
|
|
21107
21143
|
images,
|
|
@@ -21119,8 +21155,8 @@ var ParallaxImageShowcase = ({
|
|
|
21119
21155
|
const mouseXSpring = useSpring(mouseX, springConfig);
|
|
21120
21156
|
const mouseYSpring = useSpring(mouseY, springConfig);
|
|
21121
21157
|
const [componentRect, setComponentRect] = useState54(null);
|
|
21122
|
-
const componentRef =
|
|
21123
|
-
|
|
21158
|
+
const componentRef = useRef31(null);
|
|
21159
|
+
useEffect30(() => {
|
|
21124
21160
|
const updateRect = () => {
|
|
21125
21161
|
if (componentRef.current) {
|
|
21126
21162
|
setComponentRect(componentRef.current.getBoundingClientRect());
|
|
@@ -21134,7 +21170,7 @@ var ParallaxImageShowcase = ({
|
|
|
21134
21170
|
window.removeEventListener("scroll", updateRect);
|
|
21135
21171
|
};
|
|
21136
21172
|
}, []);
|
|
21137
|
-
|
|
21173
|
+
useEffect30(() => {
|
|
21138
21174
|
const handleGlobalMouseMove = (e) => {
|
|
21139
21175
|
if (!componentRect) return;
|
|
21140
21176
|
const centerX = componentRect.left + componentRect.width / 2;
|
|
@@ -21447,7 +21483,7 @@ function PlatformFilterComponent({
|
|
|
21447
21483
|
|
|
21448
21484
|
// src/components/features/push-button-selector.tsx
|
|
21449
21485
|
import { Check as Check2 } from "lucide-react";
|
|
21450
|
-
import { useEffect as
|
|
21486
|
+
import { useEffect as useEffect31, useRef as useRef32 } from "react";
|
|
21451
21487
|
|
|
21452
21488
|
// src/components/loading/unified-skeleton.tsx
|
|
21453
21489
|
import { jsx as jsx200 } from "react/jsx-runtime";
|
|
@@ -23148,13 +23184,13 @@ function PushButtonSelector({
|
|
|
23148
23184
|
emptyMessage,
|
|
23149
23185
|
footer
|
|
23150
23186
|
}) {
|
|
23151
|
-
const scrollRef =
|
|
23152
|
-
const sentinelRef =
|
|
23187
|
+
const scrollRef = useRef32(null);
|
|
23188
|
+
const sentinelRef = useRef32(null);
|
|
23153
23189
|
const lazyHasMore = lazyLoad?.hasMore ?? false;
|
|
23154
23190
|
const lazyFetching = lazyLoad?.isFetchingMore ?? false;
|
|
23155
23191
|
const onLoadMore = lazyLoad?.onLoadMore;
|
|
23156
23192
|
const optionCount = options.length;
|
|
23157
|
-
|
|
23193
|
+
useEffect31(() => {
|
|
23158
23194
|
const sentinel = sentinelRef.current;
|
|
23159
23195
|
const root = scrollRef.current;
|
|
23160
23196
|
if (!sentinel || !root || !onLoadMore || !lazyHasMore) return void 0;
|
|
@@ -23317,10 +23353,10 @@ function PushButtonSelector({
|
|
|
23317
23353
|
|
|
23318
23354
|
// src/components/features/release-media-manager.tsx
|
|
23319
23355
|
import { Trash2 as Trash24, Plus as Plus5, Image as ImageIcon3, Video as VideoIcon2, Upload as Upload3, Loader2 as Loader27, GripVertical as GripVertical2 } from "lucide-react";
|
|
23320
|
-
import { useState as useState55, useRef as
|
|
23356
|
+
import { useState as useState55, useRef as useRef33 } from "react";
|
|
23321
23357
|
import { jsx as jsx217, jsxs as jsxs173 } from "react/jsx-runtime";
|
|
23322
23358
|
function ReleaseMediaManager({ media, onChange, onUpload, className = "" }) {
|
|
23323
|
-
const fileInputRef =
|
|
23359
|
+
const fileInputRef = useRef33(null);
|
|
23324
23360
|
const [uploadingIndex, setUploadingIndex] = useState55(null);
|
|
23325
23361
|
const handleFileSelect = async (event) => {
|
|
23326
23362
|
const file = event.target.files?.[0];
|
|
@@ -24458,7 +24494,7 @@ function VideoBitesDisplay({
|
|
|
24458
24494
|
|
|
24459
24495
|
// src/components/features/walkthrough-video.tsx
|
|
24460
24496
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
|
24461
|
-
import { useCallback as useCallback20, useEffect as
|
|
24497
|
+
import { useCallback as useCallback20, useEffect as useEffect32, useLayoutEffect as useLayoutEffect2, useMemo as useMemo19, useRef as useRef34, useState as useState58 } from "react";
|
|
24462
24498
|
import { Fragment as Fragment37, jsx as jsx228, jsxs as jsxs182 } from "react/jsx-runtime";
|
|
24463
24499
|
var isAtEnd = (duration, time) => duration > 0 && duration - time < 1;
|
|
24464
24500
|
function theaterSeedFromLive(live, fallbackTime, fallbackMuted) {
|
|
@@ -24500,7 +24536,7 @@ function WalkthroughVideo({
|
|
|
24500
24536
|
const [dismissed, setDismissed] = useState58(false);
|
|
24501
24537
|
const hasVideo = video != null;
|
|
24502
24538
|
const videoId = video?.id;
|
|
24503
|
-
|
|
24539
|
+
useEffect32(() => {
|
|
24504
24540
|
let idleHandle = null;
|
|
24505
24541
|
if (!hasVideo) return void 0;
|
|
24506
24542
|
const timer = setTimeout(() => {
|
|
@@ -24545,13 +24581,13 @@ function WalkthroughVideo({
|
|
|
24545
24581
|
const [openState, setOpenState] = useState58(Boolean(defaultOpen) || deepLinkHit);
|
|
24546
24582
|
const open = openProp !== void 0 ? openProp : openState;
|
|
24547
24583
|
const [pausedOpenSession, setPausedOpenSession] = useState58(Boolean(defaultOpen && defaultOpenPaused) || deepLinkHit);
|
|
24548
|
-
const previewHandleRef =
|
|
24549
|
-
const theaterHandleRef =
|
|
24550
|
-
const theaterForcedMuteRef =
|
|
24551
|
-
const resumeHandleRef =
|
|
24552
|
-
const closeButtonRef =
|
|
24553
|
-
const userMutedRef =
|
|
24554
|
-
const endedLatchRef =
|
|
24584
|
+
const previewHandleRef = useRef34(null);
|
|
24585
|
+
const theaterHandleRef = useRef34(null);
|
|
24586
|
+
const theaterForcedMuteRef = useRef34(false);
|
|
24587
|
+
const resumeHandleRef = useRef34(null);
|
|
24588
|
+
const closeButtonRef = useRef34(null);
|
|
24589
|
+
const userMutedRef = useRef34(false);
|
|
24590
|
+
const endedLatchRef = useRef34(false);
|
|
24555
24591
|
const [hovered, setHovered] = useState58(false);
|
|
24556
24592
|
const [handoff, setHandoff] = useState58(null);
|
|
24557
24593
|
const [suspended, setSuspended] = useState58(false);
|
|
@@ -24566,7 +24602,7 @@ function WalkthroughVideo({
|
|
|
24566
24602
|
const previewAllowed = !previewSuppressed && !isYouTube;
|
|
24567
24603
|
const footerFadeKey = `${mounted ? 1 : 0}|${inline ? 1 : 0}|${hideNearSelector}|${pathname}`;
|
|
24568
24604
|
const footerHidden = footerObservation?.key === footerFadeKey && footerObservation.hidden;
|
|
24569
|
-
|
|
24605
|
+
useEffect32(() => {
|
|
24570
24606
|
if (!mounted) return void 0;
|
|
24571
24607
|
if (inline) return void 0;
|
|
24572
24608
|
const el = typeof document !== "undefined" ? document.querySelector(hideNearSelector) : null;
|
|
@@ -24578,7 +24614,7 @@ function WalkthroughVideo({
|
|
|
24578
24614
|
io.observe(el);
|
|
24579
24615
|
return () => io.disconnect();
|
|
24580
24616
|
}, [mounted, inline, hideNearSelector, pathname, footerFadeKey]);
|
|
24581
|
-
|
|
24617
|
+
useEffect32(() => {
|
|
24582
24618
|
if (!resumeMode) return void 0;
|
|
24583
24619
|
const onVis = () => {
|
|
24584
24620
|
if (document.visibilityState === "hidden") {
|
|
@@ -24594,7 +24630,7 @@ function WalkthroughVideo({
|
|
|
24594
24630
|
}, [resumeMode]);
|
|
24595
24631
|
if (footerHidden && !cardPaused) setCardPaused(true);
|
|
24596
24632
|
if (footerHidden && hovered) setHovered(false);
|
|
24597
|
-
|
|
24633
|
+
useEffect32(() => {
|
|
24598
24634
|
if (!footerHidden) return;
|
|
24599
24635
|
const h = resumeHandleRef.current ?? previewHandleRef.current;
|
|
24600
24636
|
try {
|
|
@@ -24602,10 +24638,10 @@ function WalkthroughVideo({
|
|
|
24602
24638
|
} catch {
|
|
24603
24639
|
}
|
|
24604
24640
|
}, [footerHidden, resumeMode, hovered]);
|
|
24605
|
-
const cardModeRef =
|
|
24641
|
+
const cardModeRef = useRef34("poster");
|
|
24606
24642
|
const [selfDrivenFor, setSelfDrivenFor] = useState58(null);
|
|
24607
|
-
const justClosedRef =
|
|
24608
|
-
const justClosedTimerRef =
|
|
24643
|
+
const justClosedRef = useRef34(false);
|
|
24644
|
+
const justClosedTimerRef = useRef34(null);
|
|
24609
24645
|
const commitOpen = useCallback20(
|
|
24610
24646
|
(next) => {
|
|
24611
24647
|
if (!next) {
|
|
@@ -24677,7 +24713,7 @@ function WalkthroughVideo({
|
|
|
24677
24713
|
}
|
|
24678
24714
|
}
|
|
24679
24715
|
}
|
|
24680
|
-
const prevOpenCommittedRef =
|
|
24716
|
+
const prevOpenCommittedRef = useRef34(open);
|
|
24681
24717
|
useLayoutEffect2(() => {
|
|
24682
24718
|
if (prevOpenCommittedRef.current === open) return;
|
|
24683
24719
|
prevOpenCommittedRef.current = open;
|
|
@@ -24748,11 +24784,11 @@ function WalkthroughVideo({
|
|
|
24748
24784
|
},
|
|
24749
24785
|
[setCardFallback, setCardMuted]
|
|
24750
24786
|
);
|
|
24751
|
-
const handoffRef =
|
|
24752
|
-
|
|
24787
|
+
const handoffRef = useRef34(handoff);
|
|
24788
|
+
useEffect32(() => {
|
|
24753
24789
|
handoffRef.current = handoff;
|
|
24754
24790
|
});
|
|
24755
|
-
|
|
24791
|
+
useEffect32(() => {
|
|
24756
24792
|
if (resumeMode) {
|
|
24757
24793
|
setCardMuted(handoffRef.current?.muted ?? false);
|
|
24758
24794
|
setCardPaused(handoffRef.current?.playing === false);
|
|
@@ -24845,7 +24881,7 @@ function WalkthroughVideo({
|
|
|
24845
24881
|
);
|
|
24846
24882
|
const cardActive = !open && previewAllowed && hovered && !resumeMode;
|
|
24847
24883
|
const cardMode = resumeMode ? "resume" : cardActive ? "preview" : "poster";
|
|
24848
|
-
|
|
24884
|
+
useEffect32(() => {
|
|
24849
24885
|
cardModeRef.current = cardMode;
|
|
24850
24886
|
});
|
|
24851
24887
|
if (!video || !video.mainVideoUrl && !video.youtubeUrl) return null;
|
|
@@ -26708,7 +26744,7 @@ PolicyConfigurationPanel.displayName = "PolicyConfigurationPanel";
|
|
|
26708
26744
|
|
|
26709
26745
|
// src/components/features/waitlist-form.tsx
|
|
26710
26746
|
import { getCountries as getCountries2 } from "libphonenumber-js";
|
|
26711
|
-
import { useEffect as
|
|
26747
|
+
import { useEffect as useEffect33, useState as useState62 } from "react";
|
|
26712
26748
|
import { Fragment as Fragment39, jsx as jsx248, jsxs as jsxs198 } from "react/jsx-runtime";
|
|
26713
26749
|
function WaitlistForm({
|
|
26714
26750
|
id = "waitlist-form",
|
|
@@ -26745,7 +26781,7 @@ function WaitlistForm({
|
|
|
26745
26781
|
setEmail(defaultEmail);
|
|
26746
26782
|
}
|
|
26747
26783
|
}
|
|
26748
|
-
|
|
26784
|
+
useEffect33(() => {
|
|
26749
26785
|
if (!geoApiUrl) return;
|
|
26750
26786
|
const supportedCountries = new Set(getCountries2());
|
|
26751
26787
|
const isSupportedCountry = (value) => supportedCountries.has(value);
|
|
@@ -26903,10 +26939,10 @@ import {
|
|
|
26903
26939
|
createContext as createContext6,
|
|
26904
26940
|
useCallback as useCallback22,
|
|
26905
26941
|
useContext as useContext6,
|
|
26906
|
-
useEffect as
|
|
26942
|
+
useEffect as useEffect34,
|
|
26907
26943
|
useMemo as useMemo20,
|
|
26908
26944
|
useReducer,
|
|
26909
|
-
useRef as
|
|
26945
|
+
useRef as useRef35,
|
|
26910
26946
|
useState as useState63
|
|
26911
26947
|
} from "react";
|
|
26912
26948
|
import { jsx as jsx249 } from "react/jsx-runtime";
|
|
@@ -26994,8 +27030,8 @@ function NotificationsProvider({
|
|
|
26994
27030
|
const [showPopups, setShowPopupsState] = useState63(defaultShowPopups);
|
|
26995
27031
|
const [showDesktopPopups, setShowDesktopPopupsState] = useState63(defaultShowDesktopPopups);
|
|
26996
27032
|
const desktopPopupsConfigured = onShowDesktopPopupsChange !== void 0;
|
|
26997
|
-
const actionsRef =
|
|
26998
|
-
|
|
27033
|
+
const actionsRef = useRef35(actions);
|
|
27034
|
+
useEffect34(() => {
|
|
26999
27035
|
actionsRef.current = actions;
|
|
27000
27036
|
}, [actions]);
|
|
27001
27037
|
const addNotification = useCallback22(
|
|
@@ -27133,7 +27169,7 @@ function useOptionalNotifications() {
|
|
|
27133
27169
|
}
|
|
27134
27170
|
|
|
27135
27171
|
// src/components/features/notifications/notification-drawer.tsx
|
|
27136
|
-
import { useEffect as
|
|
27172
|
+
import { useEffect as useEffect37, useRef as useRef37 } from "react";
|
|
27137
27173
|
|
|
27138
27174
|
// src/components/navigation/app-layout-context.ts
|
|
27139
27175
|
import { createContext as createContext7, useContext as useContext7 } from "react";
|
|
@@ -27154,8 +27190,8 @@ import {
|
|
|
27154
27190
|
forwardRef as forwardRef30,
|
|
27155
27191
|
useCallback as useCallback23,
|
|
27156
27192
|
useContext as useContext8,
|
|
27157
|
-
useEffect as
|
|
27158
|
-
useRef as
|
|
27193
|
+
useEffect as useEffect35,
|
|
27194
|
+
useRef as useRef36,
|
|
27159
27195
|
useState as useState64
|
|
27160
27196
|
} from "react";
|
|
27161
27197
|
import { jsx as jsx250, jsxs as jsxs199 } from "react/jsx-runtime";
|
|
@@ -27179,9 +27215,9 @@ var AppLayoutDrawerRoot = ({
|
|
|
27179
27215
|
[isControlled, onOpenChange]
|
|
27180
27216
|
);
|
|
27181
27217
|
const coordination = useAppLayoutDrawerCoordination();
|
|
27182
|
-
const openRef =
|
|
27183
|
-
const handleOpenChangeRef =
|
|
27184
|
-
|
|
27218
|
+
const openRef = useRef36(open);
|
|
27219
|
+
const handleOpenChangeRef = useRef36(handleOpenChange);
|
|
27220
|
+
useEffect35(() => {
|
|
27185
27221
|
openRef.current = open;
|
|
27186
27222
|
handleOpenChangeRef.current = handleOpenChange;
|
|
27187
27223
|
});
|
|
@@ -27190,10 +27226,10 @@ var AppLayoutDrawerRoot = ({
|
|
|
27190
27226
|
if (openRef.current) handleOpenChangeRef.current(false);
|
|
27191
27227
|
}
|
|
27192
27228
|
}));
|
|
27193
|
-
|
|
27229
|
+
useEffect35(() => {
|
|
27194
27230
|
if (open) coordination?.notifyDrawerDidOpen(selfHandle);
|
|
27195
27231
|
}, [open, coordination, selfHandle]);
|
|
27196
|
-
|
|
27232
|
+
useEffect35(() => coordination?.registerDrawer(selfHandle), [coordination, selfHandle]);
|
|
27197
27233
|
return /* @__PURE__ */ jsx250(DrawerOpenContext.Provider, { value: open, children: /* @__PURE__ */ jsx250(DialogPrimitive3.Root, { ...rest, open, onOpenChange: handleOpenChange, modal, children }) });
|
|
27198
27234
|
};
|
|
27199
27235
|
AppLayoutDrawerRoot.displayName = "AppLayoutDrawer";
|
|
@@ -27269,7 +27305,7 @@ function useContainedResizableSize({
|
|
|
27269
27305
|
container
|
|
27270
27306
|
}) {
|
|
27271
27307
|
const [available, setAvailable] = useState64(0);
|
|
27272
|
-
|
|
27308
|
+
useEffect35(() => {
|
|
27273
27309
|
if (!enabled || !container) return void 0;
|
|
27274
27310
|
const update = () => {
|
|
27275
27311
|
setAvailable(isHorizontal ? container.clientWidth : container.clientHeight);
|
|
@@ -27303,7 +27339,7 @@ function useContainedResizableSize({
|
|
|
27303
27339
|
const [rawSize, setSizeRaw] = useState64(readInitial);
|
|
27304
27340
|
const size = enabled ? clampToContainer(rawSize) : rawSize;
|
|
27305
27341
|
const setSize = useCallback23((next) => setSizeRaw(clampToContainer(next)), [clampToContainer]);
|
|
27306
|
-
|
|
27342
|
+
useEffect35(() => {
|
|
27307
27343
|
if (!enabled || !storageKey || typeof window === "undefined") return;
|
|
27308
27344
|
try {
|
|
27309
27345
|
window.localStorage.setItem(storageKey, String(Math.round(size)));
|
|
@@ -27321,7 +27357,7 @@ function AppLayoutDrawerResizeHandle({
|
|
|
27321
27357
|
ariaLabel
|
|
27322
27358
|
}) {
|
|
27323
27359
|
const isHorizontal = HORIZONTAL_SIDES.has(side);
|
|
27324
|
-
const startRef =
|
|
27360
|
+
const startRef = useRef36(null);
|
|
27325
27361
|
const direction = side === "right" || side === "bottom" ? -1 : 1;
|
|
27326
27362
|
const handlePointerDown = (e) => {
|
|
27327
27363
|
if (e.button !== 0 && e.pointerType === "mouse") return;
|
|
@@ -27434,7 +27470,7 @@ var AppLayoutDrawerContent = forwardRef30(
|
|
|
27434
27470
|
const [hasOpened, setHasOpened] = useState64(Boolean(open));
|
|
27435
27471
|
if (open && !hasOpened) setHasOpened(true);
|
|
27436
27472
|
const persist = keepMounted && hasOpened;
|
|
27437
|
-
|
|
27473
|
+
useEffect35(() => {
|
|
27438
27474
|
if (!debugLayoutShift) return void 0;
|
|
27439
27475
|
if (!open) return void 0;
|
|
27440
27476
|
if (typeof window === "undefined") return void 0;
|
|
@@ -27486,7 +27522,7 @@ var AppLayoutDrawerContent = forwardRef30(
|
|
|
27486
27522
|
const isHorizontal = HORIZONTAL_SIDES.has(resolvedSide);
|
|
27487
27523
|
const initialSize = defaultSize ?? (isHorizontal ? 560 : 480);
|
|
27488
27524
|
const [isMobile, setIsMobile] = useState64(false);
|
|
27489
|
-
|
|
27525
|
+
useEffect35(() => {
|
|
27490
27526
|
if (typeof window === "undefined") return void 0;
|
|
27491
27527
|
const mq = window.matchMedia(`(max-width: ${mobileBreakpoint - 1}px)`);
|
|
27492
27528
|
const update = () => setIsMobile(mq.matches);
|
|
@@ -27597,7 +27633,7 @@ var AppLayoutDrawerBody = DrawerBody;
|
|
|
27597
27633
|
var AppLayoutDrawerFooter = DrawerFooter;
|
|
27598
27634
|
|
|
27599
27635
|
// src/components/features/notifications/notification-tile.tsx
|
|
27600
|
-
import { useEffect as
|
|
27636
|
+
import { useEffect as useEffect36, useState as useState65 } from "react";
|
|
27601
27637
|
import { jsx as jsx251, jsxs as jsxs200 } from "react/jsx-runtime";
|
|
27602
27638
|
var variantBySeverity = {
|
|
27603
27639
|
INFO: "info",
|
|
@@ -27645,7 +27681,7 @@ function NotificationTile({
|
|
|
27645
27681
|
const [initialElapsed] = useState65(() => Date.now() - createdAt);
|
|
27646
27682
|
const isLive = !read && !settled && initialElapsed < liveDurationMs;
|
|
27647
27683
|
const counting = isLive && !paused;
|
|
27648
|
-
|
|
27684
|
+
useEffect36(() => {
|
|
27649
27685
|
if (!counting) return void 0;
|
|
27650
27686
|
const remaining = Math.max(0, liveDurationMs - initialElapsed);
|
|
27651
27687
|
const timer = window.setTimeout(() => {
|
|
@@ -27874,13 +27910,13 @@ function DrawerScrollList({
|
|
|
27874
27910
|
loadMoreRootMargin,
|
|
27875
27911
|
renderTile
|
|
27876
27912
|
}) {
|
|
27877
|
-
const scrollRef =
|
|
27878
|
-
const sentinelRef =
|
|
27879
|
-
const loadMoreRef =
|
|
27880
|
-
|
|
27913
|
+
const scrollRef = useRef37(null);
|
|
27914
|
+
const sentinelRef = useRef37(null);
|
|
27915
|
+
const loadMoreRef = useRef37(loadMore);
|
|
27916
|
+
useEffect37(() => {
|
|
27881
27917
|
loadMoreRef.current = loadMore;
|
|
27882
27918
|
});
|
|
27883
|
-
|
|
27919
|
+
useEffect37(() => {
|
|
27884
27920
|
if (!loadMore || !hasMore || isLoadingMore) return void 0;
|
|
27885
27921
|
const sentinel = sentinelRef.current;
|
|
27886
27922
|
const root = scrollRef.current;
|
|
@@ -28004,7 +28040,7 @@ function NotificationsHistoryButton({ onClick, historyHref }) {
|
|
|
28004
28040
|
}
|
|
28005
28041
|
|
|
28006
28042
|
// src/components/features/notifications/notification-popups.tsx
|
|
28007
|
-
import { useEffect as
|
|
28043
|
+
import { useEffect as useEffect38, useState as useState66 } from "react";
|
|
28008
28044
|
import { jsx as jsx253 } from "react/jsx-runtime";
|
|
28009
28045
|
var positionClasses = {
|
|
28010
28046
|
"top-right": "top-4 right-4",
|
|
@@ -28023,7 +28059,7 @@ function NotificationPopups({
|
|
|
28023
28059
|
const ctx = useOptionalNotifications();
|
|
28024
28060
|
const [now, setNow] = useState66(() => Date.now());
|
|
28025
28061
|
const hasAgeingNotifications = Boolean(ctx?.notifications.some((n) => !n.read && !n.settled));
|
|
28026
|
-
|
|
28062
|
+
useEffect38(() => {
|
|
28027
28063
|
if (!hasAgeingNotifications) return void 0;
|
|
28028
28064
|
const id = setInterval(() => setNow(Date.now()), 500);
|
|
28029
28065
|
return () => clearInterval(id);
|
|
@@ -28302,7 +28338,7 @@ function useOptionalTimeTracker() {
|
|
|
28302
28338
|
import { useState as useState70 } from "react";
|
|
28303
28339
|
|
|
28304
28340
|
// src/components/features/time-tracker/use-tracker-clock.ts
|
|
28305
|
-
import { useEffect as
|
|
28341
|
+
import { useEffect as useEffect39, useState as useState69 } from "react";
|
|
28306
28342
|
function formatElapsed(totalMs) {
|
|
28307
28343
|
const totalSeconds = Math.max(0, Math.floor(totalMs / 1e3));
|
|
28308
28344
|
const hours = Math.floor(totalSeconds / 3600);
|
|
@@ -28313,7 +28349,7 @@ function formatElapsed(totalMs) {
|
|
|
28313
28349
|
}
|
|
28314
28350
|
function useTrackerClock({ status, runningSince, accumulatedMs = 0 }) {
|
|
28315
28351
|
const [now, setNow] = useState69(() => Date.now());
|
|
28316
|
-
|
|
28352
|
+
useEffect39(() => {
|
|
28317
28353
|
if (status !== "tracking") return void 0;
|
|
28318
28354
|
const tick = () => setNow(Date.now());
|
|
28319
28355
|
tick();
|
|
@@ -28634,7 +28670,7 @@ function LastEntryRow({ entry, onClick }) {
|
|
|
28634
28670
|
|
|
28635
28671
|
// src/components/features/time-tracker/time-tracker-header-button.tsx
|
|
28636
28672
|
import * as PopoverPrimitive7 from "@radix-ui/react-popover";
|
|
28637
|
-
import { useEffect as
|
|
28673
|
+
import { useEffect as useEffect40, useRef as useRef38, useState as useState71 } from "react";
|
|
28638
28674
|
|
|
28639
28675
|
// src/components/navigation/unread-dot.tsx
|
|
28640
28676
|
import { jsx as jsx257 } from "react/jsx-runtime";
|
|
@@ -28713,9 +28749,9 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28713
28749
|
const layoutContainer = useAppLayoutDrawerContainer();
|
|
28714
28750
|
const coordination = useAppLayoutDrawerCoordination();
|
|
28715
28751
|
const isOpen = ctx?.isOpen ?? false;
|
|
28716
|
-
const isOpenRef =
|
|
28717
|
-
const closeRef =
|
|
28718
|
-
|
|
28752
|
+
const isOpenRef = useRef38(isOpen);
|
|
28753
|
+
const closeRef = useRef38(ctx?.close);
|
|
28754
|
+
useEffect40(() => {
|
|
28719
28755
|
isOpenRef.current = isOpen;
|
|
28720
28756
|
closeRef.current = ctx?.close;
|
|
28721
28757
|
});
|
|
@@ -28724,10 +28760,10 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28724
28760
|
if (isOpenRef.current) closeRef.current?.();
|
|
28725
28761
|
}
|
|
28726
28762
|
}));
|
|
28727
|
-
|
|
28763
|
+
useEffect40(() => {
|
|
28728
28764
|
if (isOpen) coordination?.notifyDrawerDidOpen(selfHandle);
|
|
28729
28765
|
}, [isOpen, coordination, selfHandle]);
|
|
28730
|
-
|
|
28766
|
+
useEffect40(() => coordination?.registerDrawer(selfHandle), [coordination, selfHandle]);
|
|
28731
28767
|
if (!ctx) return null;
|
|
28732
28768
|
const { open, close, status } = ctx;
|
|
28733
28769
|
const isPaused = status === "paused";
|
|
@@ -28802,7 +28838,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28802
28838
|
import { combine as combine3 } from "@atlaskit/pragmatic-drag-and-drop/combine";
|
|
28803
28839
|
import { monitorForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
|
|
28804
28840
|
import { preventUnhandled } from "@atlaskit/pragmatic-drag-and-drop/utils/prevent-unhandled";
|
|
28805
|
-
import { Fragment as Fragment45, useCallback as useCallback27, useEffect as
|
|
28841
|
+
import { Fragment as Fragment45, useCallback as useCallback27, useEffect as useEffect44, useMemo as useMemo23, useRef as useRef43, useState as useState76 } from "react";
|
|
28806
28842
|
import { createPortal } from "react-dom";
|
|
28807
28843
|
|
|
28808
28844
|
// src/utils/auto-scroll-ancestors.ts
|
|
@@ -28915,7 +28951,7 @@ function aimToChange(columns, ticketId, aim) {
|
|
|
28915
28951
|
// src/components/features/board/board-column.tsx
|
|
28916
28952
|
import { attachClosestEdge as attachClosestEdge2 } from "@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge";
|
|
28917
28953
|
import { dropTargetForElements as dropTargetForElements2 } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
|
|
28918
|
-
import { memo as memo6, useCallback as useCallback25, useEffect as
|
|
28954
|
+
import { memo as memo6, useCallback as useCallback25, useEffect as useEffect42, useRef as useRef41, useState as useState74 } from "react";
|
|
28919
28955
|
|
|
28920
28956
|
// src/components/features/board/board-column-header.tsx
|
|
28921
28957
|
import { jsx as jsx260, jsxs as jsxs206 } from "react/jsx-runtime";
|
|
@@ -29027,7 +29063,7 @@ function isSameAim(a, b) {
|
|
|
29027
29063
|
}
|
|
29028
29064
|
|
|
29029
29065
|
// src/components/features/board/use-lane-scroll-anchor.ts
|
|
29030
|
-
import { useRef as
|
|
29066
|
+
import { useRef as useRef39 } from "react";
|
|
29031
29067
|
var TICKET_ID_ATTRIBUTE = "data-ticket-id";
|
|
29032
29068
|
function cardPositions(root) {
|
|
29033
29069
|
return Array.from(root.querySelectorAll(`[${TICKET_ID_ATTRIBUTE}]`)).map((element) => ({
|
|
@@ -29036,7 +29072,7 @@ function cardPositions(root) {
|
|
|
29036
29072
|
}));
|
|
29037
29073
|
}
|
|
29038
29074
|
function useLaneScrollAnchor(scrollRef, tickets) {
|
|
29039
|
-
const positionsRef =
|
|
29075
|
+
const positionsRef = useRef39([]);
|
|
29040
29076
|
useIsomorphicLayoutEffect(() => {
|
|
29041
29077
|
const root = scrollRef.current;
|
|
29042
29078
|
if (!root) return;
|
|
@@ -29087,9 +29123,9 @@ import { preserveOffsetOnSource } from "@atlaskit/pragmatic-drag-and-drop/elemen
|
|
|
29087
29123
|
import { setCustomNativeDragPreview } from "@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview";
|
|
29088
29124
|
import {
|
|
29089
29125
|
memo as memo5,
|
|
29090
|
-
useEffect as
|
|
29126
|
+
useEffect as useEffect41,
|
|
29091
29127
|
useMemo as useMemo22,
|
|
29092
|
-
useRef as
|
|
29128
|
+
useRef as useRef40,
|
|
29093
29129
|
useState as useState73
|
|
29094
29130
|
} from "react";
|
|
29095
29131
|
|
|
@@ -29320,9 +29356,9 @@ var TicketCard = memo5(function TicketCardImpl({
|
|
|
29320
29356
|
onApprove,
|
|
29321
29357
|
onReject
|
|
29322
29358
|
}) {
|
|
29323
|
-
const ref =
|
|
29324
|
-
const ticketRef =
|
|
29325
|
-
|
|
29359
|
+
const ref = useRef40(null);
|
|
29360
|
+
const ticketRef = useRef40(ticket);
|
|
29361
|
+
useEffect41(() => {
|
|
29326
29362
|
ticketRef.current = ticket;
|
|
29327
29363
|
});
|
|
29328
29364
|
const [isDragging, setIsDragging] = useState73(false);
|
|
@@ -29337,7 +29373,7 @@ var TicketCard = memo5(function TicketCardImpl({
|
|
|
29337
29373
|
lift(ticket.id);
|
|
29338
29374
|
};
|
|
29339
29375
|
const keyShortcuts = dragDisabled || !lift ? void 0 : "Space";
|
|
29340
|
-
|
|
29376
|
+
useEffect41(() => {
|
|
29341
29377
|
const element = ref.current;
|
|
29342
29378
|
if (!element || dragDisabled) return void 0;
|
|
29343
29379
|
const identity = { type: "ticket", ticketId: ticket.id, columnId };
|
|
@@ -29561,9 +29597,9 @@ var BoardColumn = memo6(function BoardColumnImpl({
|
|
|
29561
29597
|
touchMode = false,
|
|
29562
29598
|
className
|
|
29563
29599
|
}) {
|
|
29564
|
-
const laneRef =
|
|
29600
|
+
const laneRef = useRef41(null);
|
|
29565
29601
|
const [isOver, setIsOver] = useState74(false);
|
|
29566
|
-
|
|
29602
|
+
useEffect42(() => {
|
|
29567
29603
|
const element = laneRef.current;
|
|
29568
29604
|
if (!element || collapsed || touchMode || column.dropDisabled) return void 0;
|
|
29569
29605
|
return dropTargetForElements2({
|
|
@@ -29651,21 +29687,21 @@ function ColumnBody({
|
|
|
29651
29687
|
loadMoreRootMargin,
|
|
29652
29688
|
touchMode
|
|
29653
29689
|
}) {
|
|
29654
|
-
const scrollRef =
|
|
29655
|
-
const sentinelRef =
|
|
29690
|
+
const scrollRef = useRef41(null);
|
|
29691
|
+
const sentinelRef = useRef41(null);
|
|
29656
29692
|
useLaneScrollAnchor(scrollRef, column.tickets);
|
|
29657
|
-
|
|
29693
|
+
useEffect42(() => {
|
|
29658
29694
|
const element = scrollRef.current;
|
|
29659
29695
|
if (!element || touchMode) return void 0;
|
|
29660
29696
|
return autoScrollColumn(element);
|
|
29661
29697
|
}, [touchMode]);
|
|
29662
|
-
const loadMoreRef =
|
|
29663
|
-
const columnIdRef =
|
|
29664
|
-
|
|
29698
|
+
const loadMoreRef = useRef41(onLoadMore);
|
|
29699
|
+
const columnIdRef = useRef41(column.id);
|
|
29700
|
+
useEffect42(() => {
|
|
29665
29701
|
loadMoreRef.current = onLoadMore;
|
|
29666
29702
|
columnIdRef.current = column.id;
|
|
29667
29703
|
});
|
|
29668
|
-
|
|
29704
|
+
useEffect42(() => {
|
|
29669
29705
|
if (!column.hasMore || column.isLoadingMore) return void 0;
|
|
29670
29706
|
const sentinel = sentinelRef.current;
|
|
29671
29707
|
const root = scrollRef.current;
|
|
@@ -29741,14 +29777,14 @@ function resolveBoardDrop(columns, { source, target }) {
|
|
|
29741
29777
|
}
|
|
29742
29778
|
|
|
29743
29779
|
// src/components/features/board/use-board-collapse.ts
|
|
29744
|
-
import { useCallback as useCallback26, useEffect as
|
|
29780
|
+
import { useCallback as useCallback26, useEffect as useEffect43, useRef as useRef42, useState as useState75 } from "react";
|
|
29745
29781
|
function useBoardCollapse(storageKey) {
|
|
29746
29782
|
const [persisted, setPersisted] = useLocalStorage(storageKey ?? "__board_collapse_unused__", {});
|
|
29747
29783
|
const [memory, setMemory] = useState75({});
|
|
29748
29784
|
const collapsed = storageKey ? persisted : memory;
|
|
29749
29785
|
const setMap = storageKey ? setPersisted : setMemory;
|
|
29750
|
-
const setMapRef =
|
|
29751
|
-
|
|
29786
|
+
const setMapRef = useRef42(setMap);
|
|
29787
|
+
useEffect43(() => {
|
|
29752
29788
|
setMapRef.current = setMap;
|
|
29753
29789
|
});
|
|
29754
29790
|
const toggle = useCallback26((columnId) => {
|
|
@@ -29848,10 +29884,10 @@ function DragBoard({
|
|
|
29848
29884
|
onThumbPointerUp,
|
|
29849
29885
|
onThumbPointerCancel
|
|
29850
29886
|
} = useHorizontalScrollbar();
|
|
29851
|
-
const columnsRef =
|
|
29852
|
-
const onChangeRef =
|
|
29853
|
-
const boardRef =
|
|
29854
|
-
const scrollerRef =
|
|
29887
|
+
const columnsRef = useRef43(columns);
|
|
29888
|
+
const onChangeRef = useRef43(onChange);
|
|
29889
|
+
const boardRef = useRef43(null);
|
|
29890
|
+
const scrollerRef = useRef43(null);
|
|
29855
29891
|
const setScroller = useCallback27(
|
|
29856
29892
|
(node) => {
|
|
29857
29893
|
scrollerRef.current = node;
|
|
@@ -29862,19 +29898,19 @@ function DragBoard({
|
|
|
29862
29898
|
const [aim, setAim] = useState76(null);
|
|
29863
29899
|
const [lifted, setLifted] = useState76(null);
|
|
29864
29900
|
const [announcement, setAnnouncement] = useState76("");
|
|
29865
|
-
const dragGeometry =
|
|
29901
|
+
const dragGeometry = useRef43(null);
|
|
29866
29902
|
const [landingPreview, setLandingPreview] = useState76(null);
|
|
29867
|
-
const previewRef =
|
|
29903
|
+
const previewRef = useRef43(null);
|
|
29868
29904
|
const [reportedMove, setPendingMove] = useState76(null);
|
|
29869
29905
|
const pendingMove = reportedMove && !hasMoveSettled(columns, reportedMove) ? reportedMove : null;
|
|
29870
29906
|
const view = useMemo23(() => pendingMove ? applyPendingMove(columns, pendingMove) : columns, [columns, pendingMove]);
|
|
29871
|
-
|
|
29907
|
+
useEffect44(() => {
|
|
29872
29908
|
columnsRef.current = view;
|
|
29873
29909
|
onChangeRef.current = onChange;
|
|
29874
29910
|
});
|
|
29875
29911
|
const [landing, setLanding] = useState76(null);
|
|
29876
|
-
const landingTimer =
|
|
29877
|
-
const pointRef =
|
|
29912
|
+
const landingTimer = useRef43(null);
|
|
29913
|
+
const pointRef = useRef43({ x: 0, y: 0 });
|
|
29878
29914
|
const laneLabel = useCallback27((columnId) => view.find((c) => c.id === columnId)?.label ?? columnId, [view]);
|
|
29879
29915
|
const acceptsLifted = useCallback27(
|
|
29880
29916
|
(fromColumnId) => (column) => {
|
|
@@ -29925,7 +29961,7 @@ function DragBoard({
|
|
|
29925
29961
|
},
|
|
29926
29962
|
[lifted, view, acceptsLifted, laneLabel]
|
|
29927
29963
|
);
|
|
29928
|
-
|
|
29964
|
+
useEffect44(() => {
|
|
29929
29965
|
if (!lifted) return void 0;
|
|
29930
29966
|
const onKeyDown = (event) => {
|
|
29931
29967
|
if (event.key === "Escape") {
|
|
@@ -29943,7 +29979,7 @@ function DragBoard({
|
|
|
29943
29979
|
window.addEventListener("keydown", onKeyDown);
|
|
29944
29980
|
return () => window.removeEventListener("keydown", onKeyDown);
|
|
29945
29981
|
}, [lifted, drop, walk]);
|
|
29946
|
-
|
|
29982
|
+
useEffect44(() => {
|
|
29947
29983
|
if (!lifted) return;
|
|
29948
29984
|
boardRef.current?.querySelector(`[${DROP_LINE_ATTRIBUTE}]`)?.scrollIntoView({ block: "nearest", inline: "nearest" });
|
|
29949
29985
|
}, [lifted]);
|
|
@@ -29954,12 +29990,12 @@ function DragBoard({
|
|
|
29954
29990
|
const anchor = aimToChange(view, lifted.ticketId, lifted.aim) ? aimAnchor(view, lifted.ticketId, lifted.aim) : { ticketId: null, edge: null };
|
|
29955
29991
|
return { columnId: lifted.aim.columnId, ...anchor, ticket };
|
|
29956
29992
|
}, [lifted, view]);
|
|
29957
|
-
|
|
29993
|
+
useEffect44(() => {
|
|
29958
29994
|
if (!pendingMove) return void 0;
|
|
29959
29995
|
const timer = setTimeout(() => setPendingMove(null), PENDING_MOVE_TIMEOUT_MS);
|
|
29960
29996
|
return () => clearTimeout(timer);
|
|
29961
29997
|
}, [pendingMove]);
|
|
29962
|
-
|
|
29998
|
+
useEffect44(() => {
|
|
29963
29999
|
const scroller = scrollerRef.current;
|
|
29964
30000
|
const readAim = (source, target) => {
|
|
29965
30001
|
const ticket = source.data.ticket;
|
|
@@ -30259,10 +30295,10 @@ import {
|
|
|
30259
30295
|
createContext as createContext12,
|
|
30260
30296
|
useCallback as useCallback28,
|
|
30261
30297
|
useContext as useContext12,
|
|
30262
|
-
useEffect as
|
|
30298
|
+
useEffect as useEffect45,
|
|
30263
30299
|
useId as useId6,
|
|
30264
30300
|
useMemo as useMemo24,
|
|
30265
|
-
useRef as
|
|
30301
|
+
useRef as useRef44,
|
|
30266
30302
|
useState as useState77
|
|
30267
30303
|
} from "react";
|
|
30268
30304
|
import { jsx as jsx267, jsxs as jsxs212 } from "react/jsx-runtime";
|
|
@@ -30277,19 +30313,19 @@ function useSortableListContext() {
|
|
|
30277
30313
|
return context;
|
|
30278
30314
|
}
|
|
30279
30315
|
function SortableList({ onReorder, getItemLabel, disabled = false, className, children }) {
|
|
30280
|
-
const listRef =
|
|
30316
|
+
const listRef = useRef44(null);
|
|
30281
30317
|
const dragAndDropEnabled = useDragAndDropEnabled();
|
|
30282
30318
|
const dragType = useId6();
|
|
30283
30319
|
const [announcement, setAnnouncement] = useState77("");
|
|
30284
|
-
const onReorderRef =
|
|
30285
|
-
const getItemLabelRef =
|
|
30286
|
-
|
|
30320
|
+
const onReorderRef = useRef44(onReorder);
|
|
30321
|
+
const getItemLabelRef = useRef44(getItemLabel);
|
|
30322
|
+
useEffect45(() => {
|
|
30287
30323
|
onReorderRef.current = onReorder;
|
|
30288
30324
|
getItemLabelRef.current = getItemLabel;
|
|
30289
30325
|
});
|
|
30290
|
-
const flipFrom =
|
|
30326
|
+
const flipFrom = useRef44(null);
|
|
30291
30327
|
const [flipTick, setFlipTick] = useState77(0);
|
|
30292
|
-
const flipTimer =
|
|
30328
|
+
const flipTimer = useRef44(null);
|
|
30293
30329
|
const readItems = useCallback28(
|
|
30294
30330
|
() => [...listRef.current?.querySelectorAll(`[${SORTABLE_ITEM_ATTRIBUTE}]`) ?? []],
|
|
30295
30331
|
[]
|
|
@@ -30303,7 +30339,7 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
30303
30339
|
},
|
|
30304
30340
|
[readItems]
|
|
30305
30341
|
);
|
|
30306
|
-
|
|
30342
|
+
useEffect45(() => {
|
|
30307
30343
|
const list = listRef.current;
|
|
30308
30344
|
if (!list || disabled || !dragAndDropEnabled) return void 0;
|
|
30309
30345
|
let drag = null;
|
|
@@ -30394,7 +30430,7 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
30394
30430
|
for (const item of moving) item.style.transition = "";
|
|
30395
30431
|
}, DROP_MS2);
|
|
30396
30432
|
}, [flipTick, readItems]);
|
|
30397
|
-
|
|
30433
|
+
useEffect45(
|
|
30398
30434
|
() => () => {
|
|
30399
30435
|
if (flipTimer.current) clearTimeout(flipTimer.current);
|
|
30400
30436
|
},
|
|
@@ -30411,12 +30447,12 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
30411
30447
|
}
|
|
30412
30448
|
|
|
30413
30449
|
// src/components/features/sortable-list/sortable-move-buttons.tsx
|
|
30414
|
-
import { useRef as
|
|
30450
|
+
import { useRef as useRef45 } from "react";
|
|
30415
30451
|
import { jsx as jsx268, jsxs as jsxs213 } from "react/jsx-runtime";
|
|
30416
30452
|
function SortableMoveButtons({ index, count, label, className }) {
|
|
30417
30453
|
const { disabled, reorder } = useSortableListContext();
|
|
30418
|
-
const upRef =
|
|
30419
|
-
const downRef =
|
|
30454
|
+
const upRef = useRef45(null);
|
|
30455
|
+
const downRef = useRef45(null);
|
|
30420
30456
|
const move = (step) => {
|
|
30421
30457
|
const to = index + step;
|
|
30422
30458
|
if (to < 0 || to >= count) return;
|
|
@@ -30463,7 +30499,7 @@ function SortableMoveButtons({ index, count, label, className }) {
|
|
|
30463
30499
|
import { combine as combine5 } from "@atlaskit/pragmatic-drag-and-drop/combine";
|
|
30464
30500
|
import { draggable as draggable2 } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
|
|
30465
30501
|
import { disableNativeDragPreview } from "@atlaskit/pragmatic-drag-and-drop/element/disable-native-drag-preview";
|
|
30466
|
-
import { useCallback as useCallback29, useEffect as
|
|
30502
|
+
import { useCallback as useCallback29, useEffect as useEffect46, useState as useState78 } from "react";
|
|
30467
30503
|
function useSortableItem() {
|
|
30468
30504
|
const { dragType, disabled, dragAndDropEnabled, reorder, readItems } = useSortableListContext();
|
|
30469
30505
|
const inert = disabled || !dragAndDropEnabled;
|
|
@@ -30474,7 +30510,7 @@ function useSortableItem() {
|
|
|
30474
30510
|
node?.setAttribute(SORTABLE_ITEM_ATTRIBUTE, "");
|
|
30475
30511
|
setItem(node);
|
|
30476
30512
|
}, []);
|
|
30477
|
-
|
|
30513
|
+
useEffect46(() => {
|
|
30478
30514
|
if (!item || !handle || inert) return void 0;
|
|
30479
30515
|
return combine5(
|
|
30480
30516
|
// The drag has to start as a "move", or its first frame is drawn with the
|
|
@@ -31192,4 +31228,4 @@ export {
|
|
|
31192
31228
|
LazyMount,
|
|
31193
31229
|
IconTile
|
|
31194
31230
|
};
|
|
31195
|
-
//# sourceMappingURL=chunk-
|
|
31231
|
+
//# sourceMappingURL=chunk-LECSFMGM.js.map
|