@flamingo-stack/openframe-frontend-core 0.0.705 → 0.0.706-snapshot.20261006181108
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/chat-protocol/index.cjs +23 -14
- package/dist/chat-protocol/index.js +23 -14
- package/dist/chat-protocol/nats-decoder.d.ts.map +1 -1
- package/dist/chat-protocol/source-metadata.d.ts +11 -2
- package/dist/chat-protocol/source-metadata.d.ts.map +1 -1
- package/dist/{chunk-QFXRPRFT.js → chunk-2YHNQAMU.js} +3 -3
- package/dist/{chunk-YHM5AWTT.js → chunk-3FZP73R4.js} +6 -6
- package/dist/{chunk-VR2ZLFCP.js → chunk-4IBPRIQH.js} +1 -1
- package/dist/{chunk-AQWZNP6A.js → chunk-4RVC6TCE.js} +4 -4
- package/dist/{chunk-OUY3HHW6.cjs → chunk-4UMOD5NU.cjs} +928 -539
- package/dist/{chunk-IKTQ3ZAG.cjs → chunk-54L6NMKQ.cjs} +6 -6
- package/dist/{chunk-A75QY6CD.cjs → chunk-56LOCS37.cjs} +21 -21
- package/dist/{chunk-WA6GUYQ4.cjs → chunk-5CMYEGHE.cjs} +104 -104
- package/dist/{chunk-VA5T32XA.js → chunk-632NGOIH.js} +2 -2
- package/dist/{chunk-MMOODW57.cjs → chunk-6NTPY5QA.cjs} +1887 -94
- package/dist/{chunk-VESKITRQ.cjs → chunk-7XVBJDH7.cjs} +728 -732
- package/dist/{chunk-3MX5S4CF.cjs → chunk-AGNG62O2.cjs} +905 -2564
- package/dist/{chunk-ZSAO2HBW.js → chunk-BETJB7UV.js} +15 -15
- package/dist/{chunk-MP2C3LJ4.js → chunk-CUME3VTQ.js} +1 -1
- package/dist/{chunk-PDWVPI3S.js → chunk-CZ7Y7UG4.js} +4 -72
- package/dist/{chunk-F6I6XZMN.js → chunk-E2TQZIOJ.js} +5 -5
- package/dist/{chunk-X5MQ7JRP.js → chunk-ECXW3RIH.js} +9 -9
- package/dist/{chunk-JEZKGCZI.cjs → chunk-EUSDLX5W.cjs} +26 -26
- package/dist/{chunk-6NJKKO73.cjs → chunk-F4E3L3KV.cjs} +15 -15
- package/dist/{chunk-MFFCUVWG.js → chunk-F57ECE2I.js} +1 -1
- package/dist/{chunk-F6AFPNDF.js → chunk-FBY4V3YS.js} +15 -15
- package/dist/{chunk-CH5232HV.js → chunk-FI6GMDO7.js} +2455 -662
- package/dist/{chunk-NDESEPW5.js → chunk-FXJ3WWUB.js} +68 -0
- package/dist/{chunk-FCGC42TS.js → chunk-HTBN3XYF.js} +57 -61
- package/dist/{chunk-ZSAGLQOD.cjs → chunk-I43ZVJRL.cjs} +17 -17
- package/dist/{chunk-7VVFKJY5.js → chunk-IBQZMRWO.js} +1796 -3455
- package/dist/{chunk-4KX6OED2.cjs → chunk-JFSLQ2XS.cjs} +46 -46
- package/dist/{chunk-5HBHO5TB.js → chunk-JPG7OHEG.js} +1 -1
- package/dist/{chunk-MKXO4Q5P.js → chunk-KUC673HM.js} +383 -142
- package/dist/{chunk-4I45Y3DN.cjs → chunk-L3Q7R7CQ.cjs} +6 -6
- package/dist/{chunk-X72J4ACL.cjs → chunk-LLSUVPQC.cjs} +252 -8
- package/dist/{chunk-RKV5B7EU.cjs → chunk-LM7TXMLU.cjs} +72 -4
- package/dist/{chunk-PN2RKPDF.js → chunk-LSQPH73L.js} +10 -10
- package/dist/{chunk-HPWWNJE7.cjs → chunk-MY3JYZQY.cjs} +89 -89
- package/dist/{chunk-2YXVWZVF.js → chunk-N45D4ZXQ.js} +959 -715
- package/dist/{chunk-Z2VNQQ74.js → chunk-NCPTID44.js} +978 -942
- package/dist/{chunk-KOWVJD4V.cjs → chunk-O6WNIA6W.cjs} +56 -56
- package/dist/{chunk-ABU3TGXA.cjs → chunk-OF6GEI5A.cjs} +3 -3
- package/dist/{chunk-OHFS7VOU.cjs → chunk-PLYEKV3N.cjs} +2 -2
- package/dist/{chunk-VHCACDKP.cjs → chunk-RQRX4YC3.cjs} +39 -39
- package/dist/{chunk-DW7G4KG3.js → chunk-RZNRVXHH.js} +3 -3
- package/dist/{chunk-G5A3PSPV.js → chunk-SGJP2WKD.js} +1080 -691
- package/dist/{chunk-7LS22BZU.cjs → chunk-STXYW25T.cjs} +14 -14
- package/dist/{chunk-YFBM2K6X.cjs → chunk-TB5EDWRC.cjs} +4 -4
- package/dist/{chunk-RBDP4WDE.js → chunk-U6BWEKJC.js} +6 -6
- package/dist/{chunk-XOYH2YQE.cjs → chunk-UDFRUKLC.cjs} +2 -2
- package/dist/{chunk-TYWLNCNH.cjs → chunk-UVTD52MD.cjs} +14 -82
- package/dist/{chunk-N3COXDBH.cjs → chunk-VX4E6YSB.cjs} +41 -5
- package/dist/{chunk-2QEUFXNS.cjs → chunk-WCVZCGK5.cjs} +312 -71
- package/dist/{chunk-6XIF2Z7I.js → chunk-WMX26HB5.js} +3 -3
- package/dist/{chunk-IHERL5V4.cjs → chunk-WXAT5C4C.cjs} +34 -34
- package/dist/{chunk-D7BTSVMS.cjs → chunk-Y2GSOUCS.cjs} +2 -2
- package/dist/{chunk-6SEANMOU.js → chunk-Y5VSOYPS.js} +11 -11
- package/dist/{chunk-DENB2XJC.js → chunk-YQWTGQG5.js} +2 -2
- package/dist/components/case-studies/index.cjs +30 -32
- package/dist/components/case-studies/index.js +14 -16
- package/dist/components/chat/entity-cards/case-study-card.d.ts +11 -4
- package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +9 -11
- package/dist/components/chat/index.js +14 -16
- package/dist/components/chat/types/message.types.d.ts +20 -16
- package/dist/components/chat/types/message.types.d.ts.map +1 -1
- package/dist/components/chat/types/unified-chat-state.types.d.ts +1 -1
- package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
- package/dist/components/chat/utils/process-historical-messages.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +12 -14
- package/dist/components/contact/index.js +11 -13
- package/dist/components/docs/index.cjs +15 -17
- package/dist/components/docs/index.js +14 -16
- package/dist/components/embeds/index.cjs +12 -14
- package/dist/components/embeds/index.js +11 -13
- package/dist/components/faq/index.cjs +13 -15
- package/dist/components/faq/index.js +12 -14
- package/dist/components/features/index.cjs +12 -14
- package/dist/components/features/index.js +21 -23
- package/dist/components/help-center-pages/index.cjs +118 -120
- package/dist/components/help-center-pages/index.js +33 -35
- package/dist/components/icons/index.cjs +3 -5
- package/dist/components/icons/index.js +9 -11
- package/dist/components/icons-v2-generated/index.cjs +3 -5
- package/dist/components/icons-v2-generated/index.js +2 -4
- package/dist/components/index.cjs +86 -159
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +329 -402
- package/dist/components/loading/page-layout-skeleton.d.ts +1 -1
- package/dist/components/meeting-scheduler/index.cjs +62 -64
- package/dist/components/meeting-scheduler/index.js +12 -14
- package/dist/components/navigation/index.cjs +28 -16
- package/dist/components/navigation/index.d.ts +14 -10
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +38 -26
- package/dist/components/navigation/mingo-ai-button.d.ts +38 -3
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/mobile-nav-sheet-id.d.ts +3 -0
- package/dist/components/navigation/mobile-nav-sheet-id.d.ts.map +1 -0
- package/dist/components/navigation/mobile-nav-sheet.d.ts +48 -0
- package/dist/components/navigation/mobile-nav-sheet.d.ts.map +1 -0
- package/dist/components/navigation/nav-item-row.d.ts +27 -0
- package/dist/components/navigation/nav-item-row.d.ts.map +1 -0
- package/dist/components/navigation/nav-panel.d.ts +43 -0
- package/dist/components/navigation/nav-panel.d.ts.map +1 -0
- package/dist/components/navigation/navigation-sidebar-item.d.ts +1 -2
- package/dist/components/navigation/navigation-sidebar-item.d.ts.map +1 -1
- package/dist/components/navigation/site-footer.d.ts +28 -0
- package/dist/components/navigation/site-footer.d.ts.map +1 -0
- package/dist/components/navigation/site-header.d.ts +61 -0
- package/dist/components/navigation/site-header.d.ts.map +1 -0
- package/dist/components/navigation/site-nav-link.d.ts +26 -0
- package/dist/components/navigation/site-nav-link.d.ts.map +1 -0
- package/dist/components/navigation/top-navigation.d.ts +2 -2
- package/dist/components/navigation/top-navigation.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +15 -17
- package/dist/components/onboarding-guides/index.js +14 -16
- package/dist/components/related-content/index.cjs +10 -8
- package/dist/components/related-content/index.js +9 -7
- package/dist/components/tickets/index.cjs +16 -18
- package/dist/components/tickets/index.js +15 -17
- package/dist/components/ui/index.cjs +12 -14
- package/dist/components/ui/index.js +17 -19
- package/dist/hooks/index.cjs +19 -11
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +19 -11
- package/dist/hooks/ui/index.d.ts +3 -0
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/hooks/ui/use-active-section.d.ts +10 -0
- package/dist/hooks/ui/use-active-section.d.ts.map +1 -0
- package/dist/hooks/ui/use-nav-menus.d.ts +48 -0
- package/dist/hooks/ui/use-nav-menus.d.ts.map +1 -0
- package/dist/hooks/ui/use-visitor-os.d.ts +15 -0
- package/dist/hooks/ui/use-visitor-os.d.ts.map +1 -0
- package/dist/hooks/use-location-hash.d.ts +9 -0
- package/dist/hooks/use-location-hash.d.ts.map +1 -0
- package/dist/index.cjs +55 -22
- package/dist/index.js +229 -196
- package/dist/types/case-study.d.ts +9 -0
- package/dist/types/case-study.d.ts.map +1 -1
- package/dist/types/navigation.d.ts +95 -65
- package/dist/types/navigation.d.ts.map +1 -1
- package/dist/utils/index.cjs +55 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +50 -1
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/dist/utils/visitor-os.d.ts +45 -0
- package/dist/utils/visitor-os.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/chat-protocol/nats-decoder.ts +10 -8
- package/src/chat-protocol/source-metadata.ts +25 -2
- package/src/components/chat/entity-cards/case-study-card.tsx +115 -5
- package/src/components/chat/types/message.types.ts +21 -15
- package/src/components/chat/types/unified-chat-state.types.ts +1 -1
- package/src/components/chat/utils/icon-library.tsx +35 -1
- package/src/components/chat/utils/process-historical-messages.ts +12 -4
- package/src/components/index.ts +0 -2
- package/src/components/loading/page-layout-skeleton.tsx +1 -1
- package/src/components/navigation/index.ts +21 -14
- package/src/components/navigation/mingo-ai-button.tsx +139 -63
- package/src/components/navigation/mobile-nav-sheet-id.ts +2 -0
- package/src/components/navigation/mobile-nav-sheet.tsx +241 -0
- package/src/components/navigation/nav-item-row.tsx +129 -0
- package/src/components/navigation/nav-panel.tsx +196 -0
- package/src/components/navigation/navigation-sidebar-item.tsx +1 -2
- package/src/components/navigation/site-footer.tsx +256 -0
- package/src/components/navigation/site-header.tsx +339 -0
- package/src/components/navigation/site-nav-link.tsx +41 -0
- package/src/components/navigation/ticket-alerts-button.tsx +2 -2
- package/src/components/navigation/top-navigation.tsx +2 -2
- package/src/hooks/index.ts +1 -0
- package/src/hooks/ui/index.ts +3 -0
- package/src/hooks/ui/use-active-section.ts +44 -0
- package/src/hooks/ui/use-nav-menus.ts +200 -0
- package/src/hooks/ui/use-visitor-os.ts +33 -0
- package/src/hooks/use-location-hash.ts +34 -0
- package/src/styles/chat-animations.css +57 -2
- package/src/types/case-study.ts +16 -0
- package/src/types/navigation.ts +80 -66
- package/src/utils/index.ts +1 -0
- package/src/utils/source-icons.ts +13 -0
- package/src/utils/visitor-os.ts +84 -0
- package/dist/chunk-LMBC5FFP.js +0 -43
- package/dist/chunk-O43V3EOS.js +0 -252
- package/dist/chunk-QZVSJF2K.cjs +0 -252
- package/dist/chunk-RALRPFDW.cjs +0 -43
- package/dist/components/footer-waitlist-button.d.ts +0 -29
- package/dist/components/footer-waitlist-button.d.ts.map +0 -1
- package/dist/components/footer.d.ts +0 -47
- package/dist/components/footer.d.ts.map +0 -1
- package/dist/components/navigation/client-only-header.d.ts +0 -8
- package/dist/components/navigation/client-only-header.d.ts.map +0 -1
- package/dist/components/navigation/header-skeleton.d.ts +0 -12
- package/dist/components/navigation/header-skeleton.d.ts.map +0 -1
- package/dist/components/navigation/header.d.ts +0 -9
- package/dist/components/navigation/header.d.ts.map +0 -1
- package/dist/components/navigation/mobile-nav-panel.d.ts +0 -10
- package/dist/components/navigation/mobile-nav-panel.d.ts.map +0 -1
- package/src/components/footer-waitlist-button.tsx +0 -53
- package/src/components/footer.tsx +0 -195
- package/src/components/navigation/client-only-header.tsx +0 -22
- package/src/components/navigation/header-skeleton.tsx +0 -74
- package/src/components/navigation/header.tsx +0 -429
- package/src/components/navigation/mobile-nav-panel.tsx +0 -155
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
PersistentPaginationWrapper
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JPG7OHEG.js";
|
|
5
5
|
import {
|
|
6
6
|
DeliveryRow,
|
|
7
7
|
ListEmptyState
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RZNRVXHH.js";
|
|
9
9
|
import {
|
|
10
10
|
EmptyState
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-F57ECE2I.js";
|
|
12
12
|
import {
|
|
13
13
|
DetailPageSkeleton
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-632NGOIH.js";
|
|
15
15
|
import {
|
|
16
16
|
useSelfFetch
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4IBPRIQH.js";
|
|
18
18
|
import {
|
|
19
19
|
Accordion,
|
|
20
20
|
AccordionContent,
|
|
@@ -30,34 +30,30 @@ import {
|
|
|
30
30
|
RichMarkdownRenderer,
|
|
31
31
|
devSectionAnchorId,
|
|
32
32
|
resolveContentHref
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-HTBN3XYF.js";
|
|
34
34
|
import {
|
|
35
35
|
useHumanitySignals,
|
|
36
36
|
useScrollToHash
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-KUC673HM.js";
|
|
38
38
|
import {
|
|
39
39
|
contentFetch,
|
|
40
40
|
pageCount,
|
|
41
41
|
positiveInt
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-CUME3VTQ.js";
|
|
43
43
|
import {
|
|
44
|
-
Video,
|
|
45
44
|
executeNavigationImperative,
|
|
46
45
|
isModifierClick,
|
|
47
46
|
useCaptions,
|
|
48
47
|
useIsHydrated
|
|
49
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-IBQZMRWO.js";
|
|
50
49
|
import {
|
|
51
50
|
STICKY_HEADER_OFFSET_PX
|
|
52
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-CZ7Y7UG4.js";
|
|
53
52
|
import {
|
|
54
53
|
usePathname,
|
|
55
54
|
useRouter,
|
|
56
55
|
useSearchParams
|
|
57
56
|
} from "./chunk-GY4IZG22.js";
|
|
58
|
-
import {
|
|
59
|
-
GitHubIcon
|
|
60
|
-
} from "./chunk-2YXVWZVF.js";
|
|
61
57
|
import {
|
|
62
58
|
CONTENT_CARD_SKELETON_FRAME_CLASS,
|
|
63
59
|
Card,
|
|
@@ -68,15 +64,19 @@ import {
|
|
|
68
64
|
ProductReleaseCard,
|
|
69
65
|
ProductReleaseCardSkeleton,
|
|
70
66
|
RoadmapCard,
|
|
67
|
+
Video,
|
|
71
68
|
buildProductReleaseCardProps,
|
|
72
69
|
formatLegalDate,
|
|
73
70
|
formatReleaseDate,
|
|
74
71
|
toStripProfile,
|
|
75
72
|
useEntityCardLink
|
|
76
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-FI6GMDO7.js";
|
|
77
74
|
import {
|
|
78
75
|
next_image_default
|
|
79
76
|
} from "./chunk-FBZMAPWO.js";
|
|
77
|
+
import {
|
|
78
|
+
GitHubIcon
|
|
79
|
+
} from "./chunk-N45D4ZXQ.js";
|
|
80
80
|
import {
|
|
81
81
|
useChatRuntime
|
|
82
82
|
} from "./chunk-E4ABZWTJ.js";
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
useMediaQuery
|
|
4
|
+
} from "./chunk-FXJ3WWUB.js";
|
|
2
5
|
import {
|
|
3
6
|
AuthentikLogoGreyIcon,
|
|
4
7
|
FleetMdmLogoGreyIcon,
|
|
@@ -7,10 +10,7 @@ import {
|
|
|
7
10
|
Office365LogoGreyIcon,
|
|
8
11
|
OpenframeLogoGreyIcon,
|
|
9
12
|
OsqueryLogoGreyIcon
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
useMediaQuery
|
|
13
|
-
} from "./chunk-NDESEPW5.js";
|
|
13
|
+
} from "./chunk-NCPTID44.js";
|
|
14
14
|
|
|
15
15
|
// src/hooks/ui/use-debounce.ts
|
|
16
16
|
import { useState, useEffect } from "react";
|
|
@@ -368,72 +368,6 @@ function pick(source, keys) {
|
|
|
368
368
|
}
|
|
369
369
|
var NO_CLIENT_CACHE = { staleTime: 0 };
|
|
370
370
|
|
|
371
|
-
// src/hooks/use-near-viewport.ts
|
|
372
|
-
import { useEffect as useEffect8, useRef as useRef4, useState as useState5, useCallback as useCallback3 } from "react";
|
|
373
|
-
var observers = /* @__PURE__ */ new Map();
|
|
374
|
-
var subscribers = /* @__PURE__ */ new WeakMap();
|
|
375
|
-
var THRESHOLD_EPSILON = 0.01;
|
|
376
|
-
function observerKey(rootMargin, threshold) {
|
|
377
|
-
return `${rootMargin}|${threshold}`;
|
|
378
|
-
}
|
|
379
|
-
function getObserverFor(rootMargin, threshold) {
|
|
380
|
-
const key = observerKey(rootMargin, threshold);
|
|
381
|
-
const existing = observers.get(key);
|
|
382
|
-
if (existing) return existing;
|
|
383
|
-
const io = new IntersectionObserver(
|
|
384
|
-
(entries) => {
|
|
385
|
-
entries.forEach((entry) => {
|
|
386
|
-
if (!entry.isIntersecting) return;
|
|
387
|
-
if (entry.intersectionRatio < threshold - THRESHOLD_EPSILON) return;
|
|
388
|
-
const cb = subscribers.get(entry.target);
|
|
389
|
-
if (cb) {
|
|
390
|
-
cb();
|
|
391
|
-
io.unobserve(entry.target);
|
|
392
|
-
subscribers.delete(entry.target);
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
},
|
|
396
|
-
{ rootMargin, threshold }
|
|
397
|
-
);
|
|
398
|
-
observers.set(key, io);
|
|
399
|
-
return io;
|
|
400
|
-
}
|
|
401
|
-
var NEAR_VIEWPORT_ROOT_MARGIN = "500px";
|
|
402
|
-
function useNearViewport(rootMargin = NEAR_VIEWPORT_ROOT_MARGIN, threshold = 0) {
|
|
403
|
-
const [isNear, setIsNear] = useState5(false);
|
|
404
|
-
const elRef = useRef4(null);
|
|
405
|
-
const key = observerKey(rootMargin, threshold);
|
|
406
|
-
const ref = useCallback3(
|
|
407
|
-
(node) => {
|
|
408
|
-
const prev = elRef.current;
|
|
409
|
-
if (prev) {
|
|
410
|
-
const stillOurs = subscribers.get(prev);
|
|
411
|
-
if (stillOurs) {
|
|
412
|
-
subscribers.delete(prev);
|
|
413
|
-
observers.get(key)?.unobserve(prev);
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
elRef.current = node;
|
|
417
|
-
if (!node) return;
|
|
418
|
-
const cb = () => setIsNear(true);
|
|
419
|
-
subscribers.set(node, cb);
|
|
420
|
-
getObserverFor(rootMargin, threshold).observe(node);
|
|
421
|
-
},
|
|
422
|
-
[key, rootMargin, threshold]
|
|
423
|
-
);
|
|
424
|
-
useEffect8(() => {
|
|
425
|
-
return () => {
|
|
426
|
-
const el = elRef.current;
|
|
427
|
-
if (!el) return;
|
|
428
|
-
if (subscribers.get(el)) {
|
|
429
|
-
subscribers.delete(el);
|
|
430
|
-
observers.get(key)?.unobserve(el);
|
|
431
|
-
}
|
|
432
|
-
};
|
|
433
|
-
}, [key]);
|
|
434
|
-
return { ref, isNear };
|
|
435
|
-
}
|
|
436
|
-
|
|
437
371
|
// src/utils/markdown-fences.ts
|
|
438
372
|
var FENCE_RE = /^ {0,3}(`{3,}|~{3,})([^\n]*?)\r?$/;
|
|
439
373
|
var BLANK_LINE_RE = /^[ \t\r]*$/;
|
|
@@ -778,8 +712,6 @@ export {
|
|
|
778
712
|
clamp,
|
|
779
713
|
pick,
|
|
780
714
|
NO_CLIENT_CACHE,
|
|
781
|
-
NEAR_VIEWPORT_ROOT_MARGIN,
|
|
782
|
-
useNearViewport,
|
|
783
715
|
isBlankLine,
|
|
784
716
|
createFenceTracker,
|
|
785
717
|
HEADING_EMOJI_RE,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
SearchInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HTBN3XYF.js";
|
|
5
5
|
import {
|
|
6
6
|
contentFetch
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CUME3VTQ.js";
|
|
8
8
|
import {
|
|
9
9
|
NEW_TAB_FEATURES,
|
|
10
10
|
getSourceLabel,
|
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
resolveExternalNavigation,
|
|
13
13
|
resolveSourceIcon,
|
|
14
14
|
stripSameOriginToPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IBQZMRWO.js";
|
|
16
16
|
import {
|
|
17
17
|
useDebounce
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CZ7Y7UG4.js";
|
|
19
19
|
import {
|
|
20
20
|
useRouter
|
|
21
21
|
} from "./chunk-GY4IZG22.js";
|
|
22
22
|
import {
|
|
23
23
|
decideNewTab
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-FI6GMDO7.js";
|
|
25
25
|
import {
|
|
26
26
|
useChatRuntime
|
|
27
27
|
} from "./chunk-E4ABZWTJ.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useSelfFetch
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4IBPRIQH.js";
|
|
5
5
|
import {
|
|
6
6
|
PageLayout,
|
|
7
7
|
PageShell
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HTBN3XYF.js";
|
|
9
9
|
import {
|
|
10
10
|
useScrollToHash
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KUC673HM.js";
|
|
12
12
|
import {
|
|
13
13
|
buildSuggestionUrl
|
|
14
14
|
} from "./chunk-UT4YHQZW.js";
|
|
@@ -16,21 +16,21 @@ import {
|
|
|
16
16
|
faqItemAnchor,
|
|
17
17
|
faqSectionSlug,
|
|
18
18
|
parseFaqHash
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IBQZMRWO.js";
|
|
20
20
|
import {
|
|
21
21
|
STICKY_HEADER_OFFSET_PX,
|
|
22
22
|
navigateSamePageHash,
|
|
23
23
|
serializeJsonLd
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CZ7Y7UG4.js";
|
|
25
25
|
import {
|
|
26
26
|
useRouter
|
|
27
27
|
} from "./chunk-GY4IZG22.js";
|
|
28
|
-
import {
|
|
29
|
-
Chevron02DownIcon
|
|
30
|
-
} from "./chunk-Z2VNQQ74.js";
|
|
31
28
|
import {
|
|
32
29
|
SECTION_HEADING_CLASS
|
|
33
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-FI6GMDO7.js";
|
|
31
|
+
import {
|
|
32
|
+
Chevron02DownIcon
|
|
33
|
+
} from "./chunk-NCPTID44.js";
|
|
34
34
|
import {
|
|
35
35
|
cn
|
|
36
36
|
} from "./chunk-7RXWKTAP.js";
|
|
@@ -8,21 +8,21 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk7XVBJDH7cjs = require('./chunk-7XVBJDH7.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkWCVZCGK5cjs = require('./chunk-WCVZCGK5.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkAGNG62O2cjs = require('./chunk-AGNG62O2.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk6NTPY5QAcjs = require('./chunk-6NTPY5QA.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -113,14 +113,14 @@ function ContactForm({
|
|
|
113
113
|
successToastMessage = "Redirecting you to join our community...",
|
|
114
114
|
rescue: rescueForm = null
|
|
115
115
|
} = {}) {
|
|
116
|
-
const attachments =
|
|
117
|
-
const builtInSubmission =
|
|
116
|
+
const attachments = _chunkAGNG62O2cjs.useChatAttachments.call(void 0, );
|
|
117
|
+
const builtInSubmission = _chunkWCVZCGK5cjs.useContactSubmission.call(void 0, {
|
|
118
118
|
userId,
|
|
119
119
|
successRedirectUrl,
|
|
120
120
|
successToastMessage
|
|
121
121
|
});
|
|
122
122
|
const [customSubmitting, setCustomSubmitting] = _react.useState.call(void 0, false);
|
|
123
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
123
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkWCVZCGK5cjs.useHumanitySignals.call(void 0, );
|
|
124
124
|
const isSubmitting = onCustomSubmit ? customSubmitting : builtInSubmission.isSubmitting;
|
|
125
125
|
const isSuccess = onCustomSubmit ? false : builtInSubmission.isSuccess;
|
|
126
126
|
const form = _reacthookform.useForm.call(void 0, {
|
|
@@ -146,7 +146,7 @@ function ContactForm({
|
|
|
146
146
|
),
|
|
147
147
|
[hideFields]
|
|
148
148
|
);
|
|
149
|
-
const rescue =
|
|
149
|
+
const rescue = _chunkWCVZCGK5cjs.useRescuedForm.call(void 0, form, { rescue: rescueForm, fields: rescueFieldNames, getSignals });
|
|
150
150
|
const handleFormSubmit = async (data) => {
|
|
151
151
|
if (isSubmitting) return;
|
|
152
152
|
if (attachmentsEnabled && attachments.hasInflightUploads) return;
|
|
@@ -184,7 +184,7 @@ function ContactForm({
|
|
|
184
184
|
className: `flex h-full flex-col ${!noBorder ? "rounded-2xl border border-ods-border content-md:rounded-3xl" : ""} ${!noPadding ? "p-6 content-md:p-8 content-lg:p-10" : ""}`,
|
|
185
185
|
children: [
|
|
186
186
|
(title || subtitle) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-6 content-md:mb-8", children: [
|
|
187
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
187
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunk6NTPY5QAcjs.SECTION_HEADING_CLASS} mb-3 content-md:mb-4`, children: _chunk6NTPY5QAcjs.accentSentenceMarks.call(void 0, title) }),
|
|
188
188
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: subtitle })
|
|
189
189
|
] }),
|
|
190
190
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -197,13 +197,13 @@ function ContactForm({
|
|
|
197
197
|
);
|
|
198
198
|
}),
|
|
199
199
|
className: "flex flex-grow flex-col space-y-4 content-md:space-y-6",
|
|
200
|
-
...
|
|
200
|
+
..._chunk7XVBJDH7cjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
201
201
|
children: [
|
|
202
202
|
!showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("name") }),
|
|
203
203
|
!showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
|
|
204
204
|
!showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
|
|
205
205
|
!showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
|
|
206
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
206
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XVBJDH7cjs.HoneypotField, { ...honeypotInputProps }),
|
|
207
207
|
extraTopField,
|
|
208
208
|
showNameEmailRow && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
|
|
209
209
|
showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
@@ -255,17 +255,17 @@ function ContactForm({
|
|
|
255
255
|
{
|
|
256
256
|
control,
|
|
257
257
|
name: "companySize",
|
|
258
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
258
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7XVBJDH7cjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
259
259
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
260
|
-
|
|
260
|
+
_chunk7XVBJDH7cjs.SelectTrigger,
|
|
261
261
|
{
|
|
262
262
|
id: "companySize",
|
|
263
263
|
"aria-label": "Company Size",
|
|
264
264
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
265
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
265
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XVBJDH7cjs.SelectValue, { placeholder: "Select company size" })
|
|
266
266
|
}
|
|
267
267
|
),
|
|
268
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
268
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XVBJDH7cjs.SelectContent, { children: companySizeOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XVBJDH7cjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
269
269
|
] })
|
|
270
270
|
}
|
|
271
271
|
),
|
|
@@ -278,17 +278,17 @@ function ContactForm({
|
|
|
278
278
|
{
|
|
279
279
|
control,
|
|
280
280
|
name: "referralSource",
|
|
281
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
281
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7XVBJDH7cjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
282
282
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
283
|
-
|
|
283
|
+
_chunk7XVBJDH7cjs.SelectTrigger,
|
|
284
284
|
{
|
|
285
285
|
id: "referralSource",
|
|
286
286
|
"aria-label": "Referral Source",
|
|
287
287
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
288
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
288
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XVBJDH7cjs.SelectValue, { placeholder: "Select an option" })
|
|
289
289
|
}
|
|
290
290
|
),
|
|
291
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
291
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XVBJDH7cjs.SelectContent, { children: referralSourceOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XVBJDH7cjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
292
292
|
] })
|
|
293
293
|
}
|
|
294
294
|
),
|
|
@@ -305,18 +305,18 @@ function ContactForm({
|
|
|
305
305
|
{
|
|
306
306
|
control,
|
|
307
307
|
name: "helpCategory",
|
|
308
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
308
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7XVBJDH7cjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
309
309
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
310
|
-
|
|
310
|
+
_chunk7XVBJDH7cjs.SelectTrigger,
|
|
311
311
|
{
|
|
312
312
|
id: "helpCategory",
|
|
313
313
|
"aria-label": "Help Category",
|
|
314
314
|
"aria-required": true,
|
|
315
315
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
316
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
316
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XVBJDH7cjs.SelectValue, { placeholder: "Choose your main interest" })
|
|
317
317
|
}
|
|
318
318
|
),
|
|
319
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
319
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XVBJDH7cjs.SelectContent, { children: helpCategoryOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XVBJDH7cjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
320
320
|
] })
|
|
321
321
|
}
|
|
322
322
|
),
|
|
@@ -328,7 +328,7 @@ function ContactForm({
|
|
|
328
328
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBM5MVGH3cjs.RequiredMark, {})
|
|
329
329
|
] }),
|
|
330
330
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
331
|
-
|
|
331
|
+
_chunk7XVBJDH7cjs.Textarea,
|
|
332
332
|
{
|
|
333
333
|
id: "message",
|
|
334
334
|
...register("message"),
|
|
@@ -343,7 +343,7 @@ function ContactForm({
|
|
|
343
343
|
] }),
|
|
344
344
|
attachmentsEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
345
345
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
346
|
-
|
|
346
|
+
_chunkAGNG62O2cjs.ChatAttachmentChipStrip,
|
|
347
347
|
{
|
|
348
348
|
attachments: attachments.attachments,
|
|
349
349
|
onRemove: attachments.removeAttachment,
|
|
@@ -352,7 +352,7 @@ function ContactForm({
|
|
|
352
352
|
),
|
|
353
353
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
354
354
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
355
|
-
|
|
355
|
+
_chunkAGNG62O2cjs.ChatAttachmentAddButton,
|
|
356
356
|
{
|
|
357
357
|
attachmentsEnabled: true,
|
|
358
358
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7XVBJDH7cjs = require('./chunk-7XVBJDH7.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkOF6GEI5Acjs = require('./chunk-OF6GEI5A.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -12,16 +12,16 @@ var _chunkABU3TGXAcjs = require('./chunk-ABU3TGXA.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkAGNG62O2cjs = require('./chunk-AGNG62O2.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkUVTD52MDcjs = require('./chunk-UVTD52MD.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunk6NTPY5QAcjs = require('./chunk-6NTPY5QA.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -39,7 +39,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
39
39
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
40
40
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
41
41
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
42
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
42
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkAGNG62O2cjs.resolveSourceIcon.call(void 0, {
|
|
43
43
|
sourceRepo,
|
|
44
44
|
documentType: docType
|
|
45
45
|
});
|
|
@@ -69,7 +69,7 @@ function DocSearchBar({
|
|
|
69
69
|
renderResult
|
|
70
70
|
}) {
|
|
71
71
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
72
|
-
|
|
72
|
+
_chunk7XVBJDH7cjs.SearchInput,
|
|
73
73
|
{
|
|
74
74
|
placeholder,
|
|
75
75
|
value: query,
|
|
@@ -119,7 +119,7 @@ function mapDocSearchResults(docs) {
|
|
|
119
119
|
results.push({
|
|
120
120
|
id: `group-${entry.repo}`,
|
|
121
121
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
122
|
-
title: `${
|
|
122
|
+
title: `${_chunkAGNG62O2cjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkAGNG62O2cjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
123
123
|
path: rows[0].path,
|
|
124
124
|
type: "file",
|
|
125
125
|
metadata: {
|
|
@@ -182,7 +182,7 @@ function resolveSearchResultAction(result, source, runtimeMode, composeContentUr
|
|
|
182
182
|
if (composed && !isAbsoluteHref(href)) {
|
|
183
183
|
return { kind: "navigate-same-tab", href };
|
|
184
184
|
}
|
|
185
|
-
const isNewTab =
|
|
185
|
+
const isNewTab = _chunk6NTPY5QAcjs.decideNewTab.call(void 0, {
|
|
186
186
|
href,
|
|
187
187
|
targetPlatform: composed ? composed.targetPlatform : targetPlatform,
|
|
188
188
|
surface: "useUnifiedNav",
|
|
@@ -254,7 +254,7 @@ function useDocSearch(config) {
|
|
|
254
254
|
const [query, setQuery] = _react.useState.call(void 0, "");
|
|
255
255
|
const [results, setResults] = _react.useState.call(void 0, NO_RESULTS);
|
|
256
256
|
const [isFetching, setIsFetching] = _react.useState.call(void 0, false);
|
|
257
|
-
const debouncedQuery =
|
|
257
|
+
const debouncedQuery = _chunkUVTD52MDcjs.useDebounce.call(void 0, query, 300);
|
|
258
258
|
const searchable = debouncedQuery.trim().length >= 2;
|
|
259
259
|
const [wasSearchable, setWasSearchable] = _react.useState.call(void 0, searchable);
|
|
260
260
|
if (wasSearchable !== searchable) {
|
|
@@ -276,7 +276,7 @@ function useDocSearch(config) {
|
|
|
276
276
|
limit: "10"
|
|
277
277
|
});
|
|
278
278
|
if (tableIdsKey) params.set("tableIds", tableIdsKey);
|
|
279
|
-
const response = await
|
|
279
|
+
const response = await _chunkOF6GEI5Acjs.contentFetch.call(void 0, `${resolvedSearchEndpoint}?${params.toString()}`);
|
|
280
280
|
if (!response.ok) {
|
|
281
281
|
throw new Error(`Search request failed: ${response.status}`);
|
|
282
282
|
}
|
|
@@ -311,27 +311,27 @@ function useDocSearch(config) {
|
|
|
311
311
|
case "navigate-same-tab": {
|
|
312
312
|
if (wantsNewTab) {
|
|
313
313
|
setKeepOpen(true);
|
|
314
|
-
window.open(action.href, "_blank",
|
|
314
|
+
window.open(action.href, "_blank", _chunkAGNG62O2cjs.NEW_TAB_FEATURES);
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
317
|
setKeepOpen(false);
|
|
318
318
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
319
319
|
if (path && _optionalChain([onInPageSwap, 'optionalCall', _16 => _16(path)])) return;
|
|
320
|
-
router.push(
|
|
320
|
+
router.push(_chunkAGNG62O2cjs.stripSameOriginToPath.call(void 0, action.href));
|
|
321
321
|
return;
|
|
322
322
|
}
|
|
323
323
|
case "navigate-new-tab":
|
|
324
324
|
setKeepOpen(true);
|
|
325
325
|
if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
|
|
326
326
|
const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
|
|
327
|
-
|
|
327
|
+
_chunkAGNG62O2cjs.resolveExternalNavigation.call(void 0, {
|
|
328
328
|
href: action.href,
|
|
329
329
|
targetPlatform,
|
|
330
330
|
runtime
|
|
331
331
|
}).open();
|
|
332
332
|
return;
|
|
333
333
|
}
|
|
334
|
-
window.open(action.href, "_blank",
|
|
334
|
+
window.open(action.href, "_blank", _chunkAGNG62O2cjs.NEW_TAB_FEATURES);
|
|
335
335
|
return;
|
|
336
336
|
case "ask-ai":
|
|
337
337
|
setKeepOpen(false);
|
|
@@ -4,13 +4,23 @@ import {
|
|
|
4
4
|
getOSLabel,
|
|
5
5
|
getShellLabel,
|
|
6
6
|
getToolLabel
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HTBN3XYF.js";
|
|
8
8
|
import {
|
|
9
9
|
useOnboardingState
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KUC673HM.js";
|
|
11
11
|
import {
|
|
12
12
|
ToolIcon
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CZ7Y7UG4.js";
|
|
14
|
+
import {
|
|
15
|
+
InteractiveCard,
|
|
16
|
+
SECTION_HEADING_CLASS,
|
|
17
|
+
StatusBadge,
|
|
18
|
+
accentSentenceMarks,
|
|
19
|
+
nameInitials
|
|
20
|
+
} from "./chunk-FI6GMDO7.js";
|
|
21
|
+
import {
|
|
22
|
+
next_image_default
|
|
23
|
+
} from "./chunk-FBZMAPWO.js";
|
|
14
24
|
import {
|
|
15
25
|
BashIcon,
|
|
16
26
|
CmdIcon,
|
|
@@ -22,23 +32,13 @@ import {
|
|
|
22
32
|
PackageIcon,
|
|
23
33
|
ShellIcon,
|
|
24
34
|
WindowsIcon
|
|
25
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-N45D4ZXQ.js";
|
|
26
36
|
import {
|
|
27
37
|
LockIcon,
|
|
28
38
|
PlusCircleIcon,
|
|
29
39
|
PowershellLogoGreyIcon,
|
|
30
40
|
PythonLogoIcon
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import {
|
|
33
|
-
InteractiveCard,
|
|
34
|
-
SECTION_HEADING_CLASS,
|
|
35
|
-
StatusBadge,
|
|
36
|
-
accentSentenceMarks,
|
|
37
|
-
nameInitials
|
|
38
|
-
} from "./chunk-CH5232HV.js";
|
|
39
|
-
import {
|
|
40
|
-
next_image_default
|
|
41
|
-
} from "./chunk-FBZMAPWO.js";
|
|
41
|
+
} from "./chunk-NCPTID44.js";
|
|
42
42
|
import {
|
|
43
43
|
Input,
|
|
44
44
|
Label
|