@qredence/fleet 0.8.0 → 0.10.0
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/CHANGELOG.md +90 -0
- package/dist/web/client/assets/DialogTitle-BlVq-tcv.js +1 -0
- package/dist/web/client/assets/FloatingPortal-D8-EPDs2.js +1 -0
- package/dist/web/client/assets/activity-BPIKUzOU.js +1 -0
- package/dist/web/client/assets/agents-BMQXA18L.js +2 -0
- package/dist/web/client/assets/agents-page-D2soW46O.js +1 -0
- package/dist/web/client/assets/alert-CzWGeumf.js +1 -0
- package/dist/web/client/assets/alert-dialog-D-e1Pr4q.js +1 -0
- package/dist/web/client/assets/artifacts-panel-6JEdy6jU.js +1 -0
- package/dist/web/client/assets/badge-CzQFgmVK.js +1 -0
- package/dist/web/client/assets/chat-command-palette-Bxr5EkO6.js +1 -0
- package/dist/web/client/assets/chat-hpzV6IA6.js +57 -0
- package/dist/web/client/assets/chat-queries-ty76G6rK.js +3 -0
- package/dist/web/client/assets/clock-3-BwWCSCm_.js +1 -0
- package/dist/web/client/assets/{command-imgUMV3r.js → command-xo-NK4xO.js} +1 -1
- package/dist/web/client/assets/connectors-E4KW6hBL.js +2 -0
- package/dist/web/client/assets/connectors-page-CDzzjCIJ.js +1 -0
- package/dist/web/client/assets/create-project-dialog-Db-WhUmP.js +1 -0
- package/dist/web/client/assets/dialog-CK8dym6z.js +1 -0
- package/dist/web/client/assets/{fork-picker-dialog-Cgi48NnT.js → fork-picker-dialog-DSaFeUii.js} +1 -1
- package/dist/web/client/assets/globals-DDDleTbS.css +2 -0
- package/dist/web/client/assets/index-Cf8tRpHL.js +13 -0
- package/dist/web/client/assets/{input-7g8_nw-Z.js → input-CBoTMPC_.js} +1 -1
- package/dist/web/client/assets/{input-group-Nq03Qums.js → input-group-BFubAtz9.js} +1 -1
- package/dist/web/client/assets/mcp-connections-section-BsNhp1b2.js +2 -0
- package/dist/web/client/assets/message-queue-Btjt9wK2.js +1 -0
- package/dist/web/client/assets/{model-selector-list-Cp687pdm.js → model-selector-list-CbDAT0Rw.js} +1 -1
- package/dist/web/client/assets/mutation-Da9zdeWr.js +1 -0
- package/dist/web/client/assets/notify-BIL0-CGy.js +1 -0
- package/dist/web/client/assets/open-panel-action-message-SdA1VU42.js +1 -0
- package/dist/web/client/assets/openui-renderer-DG-iML7M.js +291 -0
- package/dist/web/client/assets/pencil-Cbgq3ybX.js +1 -0
- package/dist/web/client/assets/plus-DUP2JPVG.js +1 -0
- package/dist/web/client/assets/product-page-header-Ck6I13CE.js +1 -0
- package/dist/web/client/assets/provider-catalog-CLEDlH_v.js +1 -0
- package/dist/web/client/assets/provider-label-BItazQ6H.js +1 -0
- package/dist/web/client/assets/right-panel-context-CjX-HkDO.js +1 -0
- package/dist/web/client/assets/right-panel-registry-BAJ6TuEY.js +2 -0
- package/dist/web/client/assets/rotate-ccw-DLkfsmG9.js +1 -0
- package/dist/web/client/assets/routes--tnF7d6H.js +14 -0
- package/dist/web/client/assets/select-DYh951qi.js +1 -0
- package/dist/web/client/assets/{session-activity-panel-Bc4-HSfb.js → session-activity-panel-DwaXiSrS.js} +1 -1
- package/dist/web/client/assets/{session-insights-panel-D0v_DKcb.js → session-insights-panel-BXEmuJKf.js} +1 -1
- package/dist/web/client/assets/{session-tool-renderer-C7mYeUOs.js → session-tool-renderer-DEABxZG3.js} +25 -25
- package/dist/web/client/assets/{session-tree-panel-By9m9tGB.js → session-tree-panel-5QgMvXoX.js} +1 -1
- package/dist/web/client/assets/settings-dialog-BomLOETY.js +3 -0
- package/dist/web/client/assets/sparkles-CASAe1AI.js +1 -0
- package/dist/web/client/assets/{subagent-chat-panel-DsPmLZSf.js → subagent-chat-panel-R2RoX1Yt.js} +1 -1
- package/dist/web/client/assets/subagent-transcript-DVZhMo7a.js +1 -0
- package/dist/web/client/assets/{subagents-panel-gQ9BLfV3.js → subagents-panel-CMMRUP8F.js} +1 -1
- package/dist/web/client/assets/switch-BrxDfsX6.js +1 -0
- package/dist/web/client/assets/toast-BNWkgZ0u.js +1 -0
- package/dist/web/client/assets/{tool-output-normalizer-CADgEiI4.js → tool-output-normalizer-DDU09Zc6.js} +1 -1
- package/dist/web/client/assets/tool-part-normalizer-CF6bmJ0s.js +4 -0
- package/dist/web/client/assets/tool-result-7qREIVv_.js +5 -0
- package/dist/web/client/assets/tool-timeline-CGhwMeNl.js +2 -0
- package/dist/web/client/assets/trash-sm2UyOxe.js +1 -0
- package/dist/web/client/assets/types-gIgIxnnG.js +1 -0
- package/dist/web/client/assets/useNavigate-CVhM7pag.js +1 -0
- package/dist/web/client/assets/useRender-CzJUrRlB.js +1 -0
- package/dist/web/client/assets/useScrollLock-BcsteNzT.js +1 -0
- package/dist/web/client/assets/with-selector-B_VDO56x.js +1 -0
- package/dist/web/client/bundle-budget.json +6 -6
- package/dist/web/server/{_tanstack-start-manifest_v-BiNPG4xt-BZTMSM2I.js → _tanstack-start-manifest_v-Io433TLr-YWPNQWQI.js} +44 -23
- package/dist/web/server/agents-DOgCHixY-KUZP2VDO.js +22 -0
- package/dist/web/server/agents-page-BdiR9H8w-M6X6SXMF.js +215 -0
- package/dist/web/server/{artifacts-panel-CqGBNU4q-UHNMC7PK.js → artifacts-panel-cYqS54cM-K6SF3K6W.js} +27 -17
- package/dist/web/server/{chat-command-palette-B94-zIEz-ES2ZB4ZF.js → chat-command-palette-BDnwcymZ-DSTFIAOD.js} +22 -13
- package/dist/web/server/chunk-2ETDIMNM.js +40 -0
- package/dist/web/server/{chunk-K67IDUAI.js → chunk-2OC2FKHR.js} +42 -32
- package/dist/web/server/{chunk-2VKVSL6Y.js → chunk-35RIM6VP.js} +128 -127
- package/dist/web/server/{chunk-5GUEYYYO.js → chunk-37EK2TYH.js} +4591 -13688
- package/dist/web/server/chunk-5MOXRFX6.js +826 -0
- package/dist/web/server/chunk-6GYLXDX3.js +588 -0
- package/dist/web/server/chunk-7DQQMT5V.js +8993 -0
- package/dist/web/server/chunk-APOS34PW.js +8965 -0
- package/dist/web/server/{chunk-YQO36OP6.js → chunk-AXN2OBPF.js} +2 -4
- package/dist/web/server/chunk-BD7YKYWL.js +1007 -0
- package/dist/web/server/chunk-BLGKLQJG.js +432 -0
- package/dist/web/server/{chunk-BAHZXA4D.js → chunk-BZ2EAUZZ.js} +10 -12
- package/dist/web/server/chunk-C5XHGLET.js +193 -0
- package/dist/web/server/chunk-CE7U5QB2.js +42 -0
- package/dist/web/server/{chunk-E6T36NM5.js → chunk-FI3UF2GW.js} +36 -353
- package/dist/web/server/{chunk-LTTBT3J7.js → chunk-FNV3WZXL.js} +5 -9
- package/dist/web/server/{chunk-2FHYWKDN.js → chunk-FSQWWR2M.js} +46 -16
- package/dist/web/server/chunk-FT7HNDR5.js +143 -0
- package/dist/web/server/chunk-GNXIDE26.js +44 -0
- package/dist/web/server/{chunk-EAKPTSWR.js → chunk-HAFELESQ.js} +5 -7
- package/dist/web/server/{chunk-WSK55TKE.js → chunk-KBMRRJQN.js} +96 -10
- package/dist/web/server/chunk-KSGGSGOA.js +50 -0
- package/dist/web/server/{chunk-SGAQVAYL.js → chunk-NSFKPEFI.js} +2 -2
- package/dist/web/server/chunk-NZCEQWK2.js +6891 -0
- package/dist/web/server/chunk-OO7NBFQQ.js +15 -0
- package/dist/web/server/{chunk-EL2JCDAM.js → chunk-PQVTLG3E.js} +9 -9
- package/dist/web/server/{chunk-LQM6QR7S.js → chunk-Q4ECIATK.js} +61 -47
- package/dist/web/server/chunk-QOZCYKMA.js +769 -0
- package/dist/web/server/{chunk-CZLGB3NE.js → chunk-R4BS3KYI.js} +2 -4
- package/dist/web/server/{chunk-FB2QLQTN.js → chunk-RHJEOG37.js} +12 -13
- package/dist/web/server/chunk-RX2ZJARF.js +73 -0
- package/dist/web/server/chunk-TXZDDJCT.js +5115 -0
- package/dist/web/server/{chunk-OAYEN3JV.js → chunk-VDEUVEWL.js} +2253 -1
- package/dist/web/server/{chunk-ABMGW6QH.js → chunk-W2GI7NRX.js} +16140 -15708
- package/dist/web/server/{chunk-SI5IQSG4.js → chunk-W7GGECTL.js} +8 -7
- package/dist/web/server/connectors-Dv_uPdv0-2X5VWQXK.js +22 -0
- package/dist/web/server/connectors-page-DW75T-uH-EKRHUZ6K.js +66 -0
- package/dist/web/server/{create-project-dialog-CFPX6Ihl-EO4XTINS.js → create-project-dialog-BS5Sva46-BO4RLW2Q.js} +25 -14
- package/dist/web/server/{fork-picker-dialog-B2RBFzoZ-R6GXPSPL.js → fork-picker-dialog-DFpKOdAw-JPLJSYYU.js} +7 -10
- package/dist/web/server/{markdown-BvCfOB26-VDH4YOQD.js → markdown-Cc8V9dOF-JTNTJKQU.js} +5 -6
- package/dist/web/server/{markdown-code-SYc-BQvp-MR4FXT5C.js → markdown-code-gaRnbgNM-V5LIRYCD.js} +7 -8
- package/dist/web/server/{message-queue-D32rLiJo-HEBRGH5B.js → message-queue-nQ2_kU82-KKSLYR4S.js} +7 -14
- package/dist/web/server/{model-selector-list-DKzt_xEN-5ZPU6XDY.js → model-selector-list-By_G7_Hr-GXT27BZO.js} +12 -14
- package/dist/web/server/{openui-renderer-CeVtOdYl-PY37PCJI.js → openui-renderer-Q31y65CQ-QNVSP4NN.js} +20 -13
- package/dist/web/server/{prompt-suggestions-CpTK_fHV-Q4ILLZKC.js → prompt-suggestions-B67Uy5Rk-5SMTSIFQ.js} +5 -4
- package/dist/web/server/{repl-panel-1kSS1UGd-DDM5ADGZ.js → repl-panel-1kSS1UGd-POXRYDDJ.js} +2 -3
- package/dist/web/server/{resources-panel-S4NHlpz7-NF7WYYSR.js → resources-panel-CH8sG0Od-4BZN6SLY.js} +18 -10
- package/dist/web/server/router-8EzTM9Eq-COVGJKKX.js +23 -0
- package/dist/web/server/routes-88H0fiN3-WIAZJ3RT.js +124 -0
- package/dist/web/server/server.js +3 -3
- package/dist/web/server/{session-activity-panel-Bz2GrdMk-PCOXG46X.js → session-activity-panel-CgSOde03-B5RCAGB4.js} +18 -10
- package/dist/web/server/{session-insights-panel-CfMX2NRu-6HWZTTAC.js → session-insights-panel-BiVObm_6-AP4FITT7.js} +2 -12
- package/dist/web/server/{session-reasoning-panel-CpiTdyQz-O3B5CDKS.js → session-reasoning-panel-Dmny6YTk-D3HQV2YB.js} +17 -9
- package/dist/web/server/session-tool-renderer-BrnTO2w3-V6EE6AB2.js +34 -0
- package/dist/web/server/{session-tree-panel-CzkE0RFB-P4KWA7S2.js → session-tree-panel-BEqR_cAJ-TZS7VRCB.js} +18 -11
- package/dist/web/server/{settings-dialog-BUgVNpr1-THSYIOZL.js → settings-dialog-DkesVBrS-BAAA3YNU.js} +238 -847
- package/dist/web/server/{subagent-chat-panel-mw3kEFfK-CDYX7LST.js → subagent-chat-panel-Bfmt1bCE-DKDVH3NJ.js} +23 -15
- package/dist/web/server/{subagents-panel-2ZJfYrXG-NDJKHJHD.js → subagents-panel-ChJDDvad-GNCHDTPB.js} +24 -17
- package/dist/web/server/{workspace-panel-xznrPDLt-QCJRZOF3.js → workspace-panel-Cij_JylD-WPYSV5FA.js} +23 -15
- package/package.json +1 -1
- package/dist/web/client/assets/DialogTitle-RY2UDuCY.js +0 -1
- package/dist/web/client/assets/FloatingPortal-XC0MCNnD.js +0 -1
- package/dist/web/client/assets/action-swap-BWRUNKQA.js +0 -1
- package/dist/web/client/assets/alert-dialog-DGNvg0B1.js +0 -1
- package/dist/web/client/assets/artifacts-panel-BGXpKRJ7.js +0 -1
- package/dist/web/client/assets/badge-DM06QVqB.js +0 -57
- package/dist/web/client/assets/chat-command-palette-PenyaZBw.js +0 -1
- package/dist/web/client/assets/create-project-dialog-C00d5yCq.js +0 -1
- package/dist/web/client/assets/dialog-zCNOQI63.js +0 -1
- package/dist/web/client/assets/globals-BuMuB_ea.css +0 -2
- package/dist/web/client/assets/index-BqBdQGWs.js +0 -13
- package/dist/web/client/assets/message-queue-sSljtjYz.js +0 -1
- package/dist/web/client/assets/mutation-DOi2Qgfa.js +0 -1
- package/dist/web/client/assets/notify-Cqdu6EV8.js +0 -1
- package/dist/web/client/assets/openui-renderer-BdYTcn-_.js +0 -291
- package/dist/web/client/assets/provider-label-QrVOwKBO.js +0 -1
- package/dist/web/client/assets/right-panel-context-DHKWoetk.js +0 -1
- package/dist/web/client/assets/right-panel-registry-BaLZiKny.js +0 -2
- package/dist/web/client/assets/routes-BkFkhfO3.js +0 -16
- package/dist/web/client/assets/select-BhV4ikeN.js +0 -1
- package/dist/web/client/assets/settings-dialog-Dpt4Ha_m.js +0 -2
- package/dist/web/client/assets/sparkles-BwVa9zQJ.js +0 -1
- package/dist/web/client/assets/subagent-transcript-CNQ9wGk2.js +0 -1
- package/dist/web/client/assets/switch-C7Myu-Dt.js +0 -1
- package/dist/web/client/assets/toast-DlbKi6K-.js +0 -1
- package/dist/web/client/assets/tool-part-normalizer-CYK62WZM.js +0 -4
- package/dist/web/client/assets/tool-result-bjAGZ2qm.js +0 -5
- package/dist/web/client/assets/tool-timeline-eNqH1zj7.js +0 -2
- package/dist/web/client/assets/types-D5hZ8IyV.js +0 -1
- package/dist/web/client/assets/useRender-Bbk_fl72.js +0 -1
- package/dist/web/server/chunk-2PAW6K4Q.js +0 -56
- package/dist/web/server/chunk-7L5PCCYR.js +0 -2287
- package/dist/web/server/chunk-FB3UHLLN.js +0 -49
- package/dist/web/server/chunk-OSPDNT7S.js +0 -25404
- package/dist/web/server/router-DVKxZik_-254GZAJW.js +0 -30
- package/dist/web/server/routes-BTxAklRp-UM7ZTLLP.js +0 -140
- package/dist/web/server/session-tool-renderer-BZiOxtt1-T3ZGAQKX.js +0 -26
|
@@ -6,16 +6,26 @@ import {
|
|
|
6
6
|
CommandItem,
|
|
7
7
|
CommandList,
|
|
8
8
|
CommandSeparator
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-BZ2EAUZZ.js";
|
|
10
|
+
import "./chunk-HAFELESQ.js";
|
|
11
11
|
import "./chunk-BC4GIC2P.js";
|
|
12
|
+
import "./chunk-FT7HNDR5.js";
|
|
12
13
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
14
|
+
RIGHT_PANEL_DEFINITIONS
|
|
15
|
+
} from "./chunk-37EK2TYH.js";
|
|
16
|
+
import "./chunk-QOZCYKMA.js";
|
|
17
|
+
import "./chunk-5MOXRFX6.js";
|
|
18
|
+
import "./chunk-RX2ZJARF.js";
|
|
19
|
+
import "./chunk-C5XHGLET.js";
|
|
20
|
+
import "./chunk-CE7U5QB2.js";
|
|
21
|
+
import "./chunk-6GYLXDX3.js";
|
|
22
|
+
import "./chunk-NZCEQWK2.js";
|
|
23
|
+
import "./chunk-7DQQMT5V.js";
|
|
24
|
+
import "./chunk-BD7YKYWL.js";
|
|
25
|
+
import "./chunk-TXZDDJCT.js";
|
|
26
|
+
import "./chunk-APOS34PW.js";
|
|
27
|
+
import "./chunk-OO7NBFQQ.js";
|
|
28
|
+
import "./chunk-FSQWWR2M.js";
|
|
19
29
|
import {
|
|
20
30
|
Keyboard,
|
|
21
31
|
Monitor,
|
|
@@ -24,14 +34,13 @@ import {
|
|
|
24
34
|
RotateCcwClock,
|
|
25
35
|
Square,
|
|
26
36
|
Sun
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-OAYEN3JV.js";
|
|
37
|
+
} from "./chunk-VDEUVEWL.js";
|
|
29
38
|
import "./chunk-6JOAWERA.js";
|
|
30
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-35RIM6VP.js";
|
|
31
40
|
import "./chunk-NXAVRSI5.js";
|
|
32
41
|
import "./chunk-CZ7CSFO4.js";
|
|
33
42
|
|
|
34
|
-
// web/app/dist/server/assets/chat-command-palette-
|
|
43
|
+
// web/app/dist/server/assets/chat-command-palette-BDnwcymZ.js
|
|
35
44
|
import { useState } from "react";
|
|
36
45
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
37
46
|
function ChatCommandPalette({ open, onOpenChange, onNewSession, onStop, onResumeSession, onSetRightPanel, onThemeChange, sessions, isStreaming, themePreference }) {
|
|
@@ -77,7 +86,7 @@ function ChatCommandPalette({ open, onOpenChange, onNewSession, onStop, onResume
|
|
|
77
86
|
/* @__PURE__ */ jsx(CommandSeparator, {}),
|
|
78
87
|
/* @__PURE__ */ jsx(CommandGroup, {
|
|
79
88
|
heading: "Panels",
|
|
80
|
-
children:
|
|
89
|
+
children: RIGHT_PANEL_DEFINITIONS.map((definition) => {
|
|
81
90
|
const Icon = definition.icon;
|
|
82
91
|
return /* @__PURE__ */ jsxs(CommandItem, {
|
|
83
92
|
onSelect: () => handleSelect(() => onSetRightPanel(definition.id)),
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Link
|
|
3
|
+
} from "./chunk-35RIM6VP.js";
|
|
4
|
+
|
|
5
|
+
// web/app/dist/server/assets/product-page-header-BHO62yYL.js
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
function ProductPageHeader({ active }) {
|
|
8
|
+
return /* @__PURE__ */ jsxs("header", {
|
|
9
|
+
className: "flex h-14 items-center justify-between border-b border-border/70 px-5 sm:px-8",
|
|
10
|
+
children: [/* @__PURE__ */ jsx(Link, {
|
|
11
|
+
to: "/",
|
|
12
|
+
className: "text-sm font-semibold tracking-tight",
|
|
13
|
+
children: "Fleet Prime"
|
|
14
|
+
}), /* @__PURE__ */ jsxs("nav", {
|
|
15
|
+
"aria-label": "Main navigation",
|
|
16
|
+
className: "flex items-center gap-1",
|
|
17
|
+
children: [/* @__PURE__ */ jsx(NavLink, {
|
|
18
|
+
active: active === "agents",
|
|
19
|
+
to: "/agents",
|
|
20
|
+
children: "Agents"
|
|
21
|
+
}), /* @__PURE__ */ jsx(NavLink, {
|
|
22
|
+
active: active === "connectors",
|
|
23
|
+
to: "/connectors",
|
|
24
|
+
children: "Connectors"
|
|
25
|
+
})]
|
|
26
|
+
})]
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function NavLink({ active, children, to }) {
|
|
30
|
+
return /* @__PURE__ */ jsx(Link, {
|
|
31
|
+
to,
|
|
32
|
+
"aria-current": active ? "page" : void 0,
|
|
33
|
+
className: `rounded-md px-3 py-1.5 text-sm transition-colors ${active ? "bg-muted font-medium text-foreground" : "text-muted-foreground hover:bg-muted/70 hover:text-foreground"}`,
|
|
34
|
+
children
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export {
|
|
39
|
+
ProductPageHeader
|
|
40
|
+
};
|
|
@@ -1,26 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
validateAndNormalizeOpenUIHtmlArtifact
|
|
3
|
+
} from "./chunk-W2GI7NRX.js";
|
|
1
4
|
import {
|
|
2
5
|
Card,
|
|
3
6
|
CardContent,
|
|
4
7
|
CardDescription,
|
|
5
8
|
CardHeader,
|
|
6
|
-
CardTitle
|
|
7
|
-
|
|
8
|
-
} from "./chunk-ABMGW6QH.js";
|
|
9
|
+
CardTitle
|
|
10
|
+
} from "./chunk-KSGGSGOA.js";
|
|
9
11
|
import {
|
|
10
|
-
Alert,
|
|
11
|
-
AlertDescription,
|
|
12
|
-
AlertTitle,
|
|
13
12
|
Field,
|
|
14
13
|
FieldLabel,
|
|
15
14
|
Switch$1
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Q4ECIATK.js";
|
|
16
|
+
import {
|
|
17
|
+
Alert,
|
|
18
|
+
AlertDescription,
|
|
19
|
+
AlertTitle
|
|
20
|
+
} from "./chunk-GNXIDE26.js";
|
|
17
21
|
import {
|
|
18
22
|
Combination_default,
|
|
19
23
|
Dialog,
|
|
20
|
-
DialogContent,
|
|
24
|
+
DialogContent as DialogContent2,
|
|
21
25
|
DialogOverlay,
|
|
22
26
|
DialogPortal,
|
|
23
|
-
DialogTitle,
|
|
27
|
+
DialogTitle as DialogTitle2,
|
|
24
28
|
DialogTrigger,
|
|
25
29
|
DismissableLayer,
|
|
26
30
|
FocusScope,
|
|
@@ -42,31 +46,39 @@ import {
|
|
|
42
46
|
useId,
|
|
43
47
|
useLayoutEffect2
|
|
44
48
|
} from "./chunk-BC4GIC2P.js";
|
|
49
|
+
import {
|
|
50
|
+
Dialog$1,
|
|
51
|
+
DialogContent,
|
|
52
|
+
DialogHeader,
|
|
53
|
+
DialogTitle
|
|
54
|
+
} from "./chunk-FT7HNDR5.js";
|
|
45
55
|
import {
|
|
46
56
|
refractor
|
|
47
57
|
} from "./chunk-3L5VHELG.js";
|
|
48
58
|
import {
|
|
49
|
-
Badge,
|
|
50
|
-
Dialog$1,
|
|
51
|
-
DialogContent as DialogContent2,
|
|
52
|
-
DialogHeader,
|
|
53
|
-
DialogTitle as DialogTitle2,
|
|
54
|
-
Input$1,
|
|
55
|
-
Select$1,
|
|
56
59
|
UiErrorBoundary,
|
|
57
60
|
encodeOpenPanelActionMessage,
|
|
58
61
|
isSafeExternalUrl,
|
|
59
|
-
segmentOpenUIContent
|
|
60
|
-
|
|
61
|
-
|
|
62
|
+
segmentOpenUIContent
|
|
63
|
+
} from "./chunk-C5XHGLET.js";
|
|
64
|
+
import {
|
|
65
|
+
Badge
|
|
66
|
+
} from "./chunk-CE7U5QB2.js";
|
|
62
67
|
import {
|
|
63
68
|
OpenPanelActionSchema,
|
|
64
69
|
RightPanelIdSchema,
|
|
65
70
|
WorkspaceRelativePathSchema,
|
|
71
|
+
external_exports
|
|
72
|
+
} from "./chunk-NZCEQWK2.js";
|
|
73
|
+
import {
|
|
74
|
+
Input$1,
|
|
75
|
+
Select$1,
|
|
76
|
+
useRegisteredLabelId
|
|
77
|
+
} from "./chunk-TXZDDJCT.js";
|
|
78
|
+
import {
|
|
66
79
|
arrow,
|
|
67
80
|
autoUpdate,
|
|
68
81
|
clamp,
|
|
69
|
-
external_exports,
|
|
70
82
|
flip,
|
|
71
83
|
hide,
|
|
72
84
|
limitShift,
|
|
@@ -75,7 +87,7 @@ import {
|
|
|
75
87
|
size,
|
|
76
88
|
useFloating,
|
|
77
89
|
visuallyHidden
|
|
78
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-APOS34PW.js";
|
|
79
91
|
import {
|
|
80
92
|
X
|
|
81
93
|
} from "./chunk-QNIQRU7H.js";
|
|
@@ -177,19 +189,17 @@ import {
|
|
|
177
189
|
} from "./chunk-LABI53FQ.js";
|
|
178
190
|
import {
|
|
179
191
|
Markdown
|
|
180
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-PQVTLG3E.js";
|
|
181
193
|
import {
|
|
182
194
|
Button$1,
|
|
183
195
|
formatErrorMessage_default,
|
|
184
196
|
useRenderElement
|
|
185
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-FSQWWR2M.js";
|
|
186
198
|
import {
|
|
187
199
|
ChevronDown,
|
|
188
|
-
ChevronUp
|
|
189
|
-
} from "./chunk-7L5PCCYR.js";
|
|
190
|
-
import {
|
|
200
|
+
ChevronUp,
|
|
191
201
|
cn
|
|
192
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-VDEUVEWL.js";
|
|
193
203
|
import {
|
|
194
204
|
ACTION_STEPS,
|
|
195
205
|
BuiltinActionType,
|
|
@@ -10884,7 +10894,7 @@ var require_react_is = __commonJS({
|
|
|
10884
10894
|
}
|
|
10885
10895
|
});
|
|
10886
10896
|
|
|
10887
|
-
// web/app/dist/server/assets/openui-renderer-
|
|
10897
|
+
// web/app/dist/server/assets/openui-renderer-Q31y65CQ.js
|
|
10888
10898
|
import * as React$1 from "react";
|
|
10889
10899
|
import { createContext as createContext21, useCallback as useCallback24, useContext as useContext21, useEffect as useEffect40, useId as useId5, useMemo as useMemo25, useRef as useRef45, useState as useState35 } from "react";
|
|
10890
10900
|
import { Fragment as Fragment$12, jsx as jsx25, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
@@ -50951,11 +50961,11 @@ var ShareThreadModal = forwardRef21(({ title, trigger, generateLink, themeClassN
|
|
|
50951
50961
|
children: [/* @__PURE__ */ jsx24(DialogTrigger, {
|
|
50952
50962
|
asChild: true,
|
|
50953
50963
|
children: trigger
|
|
50954
|
-
}), /* @__PURE__ */ jsxs8(DialogPortal, { children: [/* @__PURE__ */ jsx24(DialogOverlay, { className: clsx_default("openui-share-thread-modal__overlay", themeClassName || portalThemeClassName) }), /* @__PURE__ */ jsxs8(
|
|
50964
|
+
}), /* @__PURE__ */ jsxs8(DialogPortal, { children: [/* @__PURE__ */ jsx24(DialogOverlay, { className: clsx_default("openui-share-thread-modal__overlay", themeClassName || portalThemeClassName) }), /* @__PURE__ */ jsxs8(DialogContent2, {
|
|
50955
50965
|
className: clsx_default("openui-share-thread-modal__content", isMobile ? "openui-share-thread-modal__content--mobile" : "", themeClassName || portalThemeClassName),
|
|
50956
50966
|
children: [/* @__PURE__ */ jsxs8("div", {
|
|
50957
50967
|
className: "openui-share-thread-modal__header",
|
|
50958
|
-
children: [/* @__PURE__ */ jsx24(
|
|
50968
|
+
children: [/* @__PURE__ */ jsx24(DialogTitle2, {
|
|
50959
50969
|
className: "openui-share-thread-modal__title",
|
|
50960
50970
|
children: title ?? "Share chat"
|
|
50961
50971
|
}), /* @__PURE__ */ jsx24(IconButton, {
|
|
@@ -79914,7 +79924,7 @@ var Separator4 = /* @__PURE__ */ React114.forwardRef(function SeparatorComponent
|
|
|
79914
79924
|
});
|
|
79915
79925
|
if (process.env.NODE_ENV !== "production") Separator4.displayName = "Separator";
|
|
79916
79926
|
|
|
79917
|
-
// web/app/dist/server/assets/openui-renderer-
|
|
79927
|
+
// web/app/dist/server/assets/openui-renderer-Q31y65CQ.js
|
|
79918
79928
|
var OpenUIArtifactContext = createContext21({ artifactIndex: 0 });
|
|
79919
79929
|
function OpenUIArtifactProvider({ children, value }) {
|
|
79920
79930
|
return /* @__PURE__ */ jsx25(OpenUIArtifactContext.Provider, {
|
|
@@ -81277,7 +81287,7 @@ function ModalComponent({ props: { name, open, title, content }, renderNode }) {
|
|
|
81277
81287
|
return /* @__PURE__ */ jsx25(Dialog$1, {
|
|
81278
81288
|
open: isOpen,
|
|
81279
81289
|
onOpenChange: (nextOpen) => field.setValue(nextOpen),
|
|
81280
|
-
children: /* @__PURE__ */ jsxs9(
|
|
81290
|
+
children: /* @__PURE__ */ jsxs9(DialogContent, { children: [/* @__PURE__ */ jsx25(DialogHeader, { children: /* @__PURE__ */ jsx25(DialogTitle, { children: title }) }), /* @__PURE__ */ jsx25("div", {
|
|
81281
81291
|
className: "py-2",
|
|
81282
81292
|
children: renderNode(content)
|
|
81283
81293
|
})] })
|
|
@@ -6465,13 +6465,25 @@ function useNavigate(_defaultOpts) {
|
|
|
6465
6465
|
}, [_defaultOpts?.from, router]);
|
|
6466
6466
|
}
|
|
6467
6467
|
|
|
6468
|
-
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/
|
|
6469
|
-
import
|
|
6470
|
-
|
|
6471
|
-
var
|
|
6468
|
+
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/ClientOnly.js
|
|
6469
|
+
import React from "react";
|
|
6470
|
+
import { jsx } from "react/jsx-runtime";
|
|
6471
|
+
var getSnapshot = () => true;
|
|
6472
|
+
var getServerSnapshot = () => false;
|
|
6473
|
+
function ClientOnly({ children, fallback = null }) {
|
|
6474
|
+
return /* @__PURE__ */ jsx(React.Fragment, { children: useHydrated() ? children : fallback });
|
|
6475
|
+
}
|
|
6476
|
+
function useHydrated(enabled = true) {
|
|
6477
|
+
return React.useSyncExternalStore(subscribe, getSnapshot, enabled ? getServerSnapshot : getSnapshot);
|
|
6478
|
+
}
|
|
6479
|
+
function subscribe() {
|
|
6480
|
+
return () => {
|
|
6481
|
+
};
|
|
6482
|
+
}
|
|
6472
6483
|
|
|
6473
|
-
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/
|
|
6474
|
-
import * as React$
|
|
6484
|
+
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/link.js
|
|
6485
|
+
import * as React$15 from "react";
|
|
6486
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
6475
6487
|
|
|
6476
6488
|
// node_modules/.pnpm/@tanstack+store@0.11.2/node_modules/@tanstack/store/dist/alien.js
|
|
6477
6489
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -6829,120 +6841,9 @@ function useSelector(source, selector = (s) => s, options) {
|
|
|
6829
6841
|
return useSyncExternalStoreWithSelector(subscribe2, getSnapshot2, getSnapshot2, selector, compare);
|
|
6830
6842
|
}
|
|
6831
6843
|
|
|
6832
|
-
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/useMatch.js
|
|
6833
|
-
var dummyMatch = {};
|
|
6834
|
-
function useStructuralSharing(opts, router) {
|
|
6835
|
-
const previousResult = React$16.useRef();
|
|
6836
|
-
return (slice) => {
|
|
6837
|
-
const selected = opts?.select ? opts.select(slice) : slice;
|
|
6838
|
-
if (opts?.structuralSharing ?? router.options.defaultStructuralSharing) return previousResult.current = replaceEqualDeep(previousResult.current, selected);
|
|
6839
|
-
return selected;
|
|
6840
|
-
};
|
|
6841
|
-
}
|
|
6842
|
-
function useMatch(opts) {
|
|
6843
|
-
const router = useRouter();
|
|
6844
|
-
const nearestRouteId = React$16.useContext(opts.from ? dummyMatchContext : matchContext);
|
|
6845
|
-
const routeId = opts.from ?? nearestRouteId;
|
|
6846
|
-
const matchStore = router.stores.getMatchStore(routeId);
|
|
6847
|
-
if (isServer ?? router.isServer) {
|
|
6848
|
-
const match = matchStore.get();
|
|
6849
|
-
if (!match) {
|
|
6850
|
-
if (opts.shouldThrow ?? true) {
|
|
6851
|
-
if (process.env.NODE_ENV !== "production") throw new Error(`Invariant failed: Could not find ${opts.from ? `an active match from "${opts.from}"` : "a nearest match!"}`);
|
|
6852
|
-
invariant();
|
|
6853
|
-
}
|
|
6854
|
-
return;
|
|
6855
|
-
}
|
|
6856
|
-
return opts.select ? opts.select(match) : match;
|
|
6857
|
-
}
|
|
6858
|
-
const selector = useStructuralSharing(opts, router);
|
|
6859
|
-
const matchSelection = useSelector(matchStore, (match) => match ? selector(match) : dummyMatch);
|
|
6860
|
-
if (matchSelection !== dummyMatch) return matchSelection;
|
|
6861
|
-
if (opts.shouldThrow ?? true) {
|
|
6862
|
-
if (process.env.NODE_ENV !== "production") throw new Error(`Invariant failed: Could not find ${opts.from ? `an active match from "${opts.from}"` : "a nearest match!"}`);
|
|
6863
|
-
invariant();
|
|
6864
|
-
}
|
|
6865
|
-
}
|
|
6866
|
-
|
|
6867
|
-
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/useLoaderData.js
|
|
6868
|
-
function useLoaderData(opts) {
|
|
6869
|
-
return useMatch({
|
|
6870
|
-
from: opts.from,
|
|
6871
|
-
strict: opts.strict,
|
|
6872
|
-
structuralSharing: opts.structuralSharing,
|
|
6873
|
-
select: (match) => {
|
|
6874
|
-
return opts.select ? opts.select(match.loaderData) : match.loaderData;
|
|
6875
|
-
}
|
|
6876
|
-
});
|
|
6877
|
-
}
|
|
6878
|
-
|
|
6879
|
-
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/useLoaderDeps.js
|
|
6880
|
-
function useLoaderDeps(opts) {
|
|
6881
|
-
const { select, ...rest } = opts;
|
|
6882
|
-
return useMatch({
|
|
6883
|
-
...rest,
|
|
6884
|
-
select: (match) => {
|
|
6885
|
-
return select ? select(match.loaderDeps) : match.loaderDeps;
|
|
6886
|
-
}
|
|
6887
|
-
});
|
|
6888
|
-
}
|
|
6889
|
-
|
|
6890
|
-
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/useParams.js
|
|
6891
|
-
function useParams(opts) {
|
|
6892
|
-
return useMatch({
|
|
6893
|
-
from: opts.from,
|
|
6894
|
-
shouldThrow: opts.shouldThrow,
|
|
6895
|
-
structuralSharing: opts.structuralSharing,
|
|
6896
|
-
strict: opts.strict,
|
|
6897
|
-
select: (match) => {
|
|
6898
|
-
const params = opts.strict === false ? match.params : match._strictParams;
|
|
6899
|
-
return opts.select ? opts.select(params) : params;
|
|
6900
|
-
}
|
|
6901
|
-
});
|
|
6902
|
-
}
|
|
6903
|
-
|
|
6904
|
-
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/useSearch.js
|
|
6905
|
-
function useSearch(opts) {
|
|
6906
|
-
return useMatch({
|
|
6907
|
-
from: opts.from,
|
|
6908
|
-
strict: opts.strict,
|
|
6909
|
-
shouldThrow: opts.shouldThrow,
|
|
6910
|
-
structuralSharing: opts.structuralSharing,
|
|
6911
|
-
select: (match) => {
|
|
6912
|
-
return opts.select ? opts.select(match.search) : match.search;
|
|
6913
|
-
}
|
|
6914
|
-
});
|
|
6915
|
-
}
|
|
6916
|
-
|
|
6917
|
-
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/useRouteContext.js
|
|
6918
|
-
function useRouteContext(opts) {
|
|
6919
|
-
return useMatch({
|
|
6920
|
-
...opts,
|
|
6921
|
-
select: (match) => opts.select ? opts.select(match.context) : match.context
|
|
6922
|
-
});
|
|
6923
|
-
}
|
|
6924
|
-
|
|
6925
|
-
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/ClientOnly.js
|
|
6926
|
-
import React from "react";
|
|
6927
|
-
import { jsx } from "react/jsx-runtime";
|
|
6928
|
-
var getSnapshot = () => true;
|
|
6929
|
-
var getServerSnapshot = () => false;
|
|
6930
|
-
function ClientOnly({ children, fallback = null }) {
|
|
6931
|
-
return /* @__PURE__ */ jsx(React.Fragment, { children: useHydrated() ? children : fallback });
|
|
6932
|
-
}
|
|
6933
|
-
function useHydrated(enabled = true) {
|
|
6934
|
-
return React.useSyncExternalStore(subscribe, getSnapshot, enabled ? getServerSnapshot : getSnapshot);
|
|
6935
|
-
}
|
|
6936
|
-
function subscribe() {
|
|
6937
|
-
return () => {
|
|
6938
|
-
};
|
|
6939
|
-
}
|
|
6940
|
-
|
|
6941
6844
|
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/link.js
|
|
6942
|
-
import * as React$17 from "react";
|
|
6943
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
6944
6845
|
function useStableValues(...values) {
|
|
6945
|
-
const ref = React$
|
|
6846
|
+
const ref = React$15.useRef(values);
|
|
6946
6847
|
const stable = ref.current;
|
|
6947
6848
|
values.forEach((value, index) => {
|
|
6948
6849
|
if (!deepEqual(stable[index], value, false, true)) stable[index] = value;
|
|
@@ -6978,8 +6879,8 @@ function resolveIsActive(location, next, activeOptions, basepath, isHydrated) {
|
|
|
6978
6879
|
function useLinkProps(options, forwardedRef, host) {
|
|
6979
6880
|
const router = useRouter();
|
|
6980
6881
|
if (isServer ?? router.isServer) return getServerLinkProps(router, options, forwardedRef, host);
|
|
6981
|
-
const innerRef = React$
|
|
6982
|
-
const mergedRef = React$
|
|
6882
|
+
const innerRef = React$15.useRef(null);
|
|
6883
|
+
const mergedRef = React$15.useCallback((element) => {
|
|
6983
6884
|
innerRef.current = element;
|
|
6984
6885
|
if (typeof forwardedRef === "function") return forwardedRef(element);
|
|
6985
6886
|
if (forwardedRef) forwardedRef.current = element;
|
|
@@ -6987,7 +6888,7 @@ function useLinkProps(options, forwardedRef, host) {
|
|
|
6987
6888
|
const { activeOptions, to, preload: userPreload, preloadDelay: userPreloadDelay, hashScrollIntoView, replace, startTransition: startTransition2, resetScroll, viewTransition, ignoreBlocker, disabled, target, onClick, onBlur, onFocus, onMouseEnter, onMouseLeave, onTouchStart } = options;
|
|
6988
6889
|
const isHydrated = useHydrated(!!activeOptions?.includeHash);
|
|
6989
6890
|
const [stableSearch, stableParams, stableActiveOptions] = useStableValues(options.search, options.params, activeOptions);
|
|
6990
|
-
const [_options, dest] = React$
|
|
6891
|
+
const [_options, dest] = React$15.useMemo(() => [options, { ...options }], [
|
|
6991
6892
|
router,
|
|
6992
6893
|
options.from,
|
|
6993
6894
|
options._fromLocation,
|
|
@@ -6999,7 +6900,7 @@ function useLinkProps(options, forwardedRef, host) {
|
|
|
6999
6900
|
options.mask,
|
|
7000
6901
|
options.unsafeRelative
|
|
7001
6902
|
]);
|
|
7002
|
-
const selectLinkState = React$
|
|
6903
|
+
const selectLinkState = React$15.useMemo(() => {
|
|
7003
6904
|
const directExternalLink = resolveExternalLink(to, router.protocolAllowlist);
|
|
7004
6905
|
if (directExternalLink !== void 0) {
|
|
7005
6906
|
const state = [directExternalLink ?? void 0];
|
|
@@ -7029,10 +6930,10 @@ function useLinkProps(options, forwardedRef, host) {
|
|
|
7029
6930
|
const [href, isActive] = useSelector(router.stores.location, selectLinkState, LINK_SELECTOR_OPTIONS);
|
|
7030
6931
|
const externalLink = isActive === void 0 && href;
|
|
7031
6932
|
const linkDisabled = disabled || href === void 0;
|
|
7032
|
-
const hasRenderFetched = React$
|
|
6933
|
+
const hasRenderFetched = React$15.useRef(false);
|
|
7033
6934
|
const preload = options.reloadDocument || externalLink || linkDisabled ? false : userPreload ?? router.options.defaultPreload;
|
|
7034
6935
|
const preloadDelay = userPreloadDelay ?? router.options.defaultPreloadDelay ?? 0;
|
|
7035
|
-
const enqueuePreload = React$
|
|
6936
|
+
const enqueuePreload = React$15.useCallback((e) => {
|
|
7036
6937
|
const isIntersecting = e?.isIntersecting;
|
|
7037
6938
|
if (!(isIntersecting ?? preload === "intent")) {
|
|
7038
6939
|
if (isIntersecting === false) cancelPreload(innerRef);
|
|
@@ -7054,7 +6955,7 @@ function useLinkProps(options, forwardedRef, host) {
|
|
|
7054
6955
|
preload,
|
|
7055
6956
|
preloadDelay
|
|
7056
6957
|
]);
|
|
7057
|
-
React$
|
|
6958
|
+
React$15.useEffect(() => {
|
|
7058
6959
|
if (!preload) return;
|
|
7059
6960
|
if (preload === "render" && !hasRenderFetched.current) {
|
|
7060
6961
|
hasRenderFetched.current = true;
|
|
@@ -7208,11 +7109,11 @@ function getHrefOption(next, router, disabled) {
|
|
|
7208
7109
|
}
|
|
7209
7110
|
return href;
|
|
7210
7111
|
}
|
|
7211
|
-
var Link = React$
|
|
7112
|
+
var Link = React$15.memo(React$15.forwardRef((props, ref) => {
|
|
7212
7113
|
const host = props._asChild || "a";
|
|
7213
7114
|
const linkProps = useLinkProps(props, ref, host);
|
|
7214
7115
|
const children = typeof props.children === "function" ? props.children({ isActive: linkProps["data-status"] === "active" }) : props.children;
|
|
7215
|
-
return React$
|
|
7116
|
+
return React$15.createElement(host, linkProps, children);
|
|
7216
7117
|
}), areLinkPropsEqual);
|
|
7217
7118
|
function areLinkPropsEqual(prev, next) {
|
|
7218
7119
|
let extraKeys = 0;
|
|
@@ -7225,6 +7126,105 @@ function areLinkPropsEqual(prev, next) {
|
|
|
7225
7126
|
return extraKeys === 0;
|
|
7226
7127
|
}
|
|
7227
7128
|
|
|
7129
|
+
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/matchContext.js
|
|
7130
|
+
import * as React$16 from "react";
|
|
7131
|
+
var matchContext = React$16.createContext(void 0);
|
|
7132
|
+
var dummyMatchContext = React$16.createContext(void 0);
|
|
7133
|
+
|
|
7134
|
+
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/useMatch.js
|
|
7135
|
+
import * as React$17 from "react";
|
|
7136
|
+
var dummyMatch = {};
|
|
7137
|
+
function useStructuralSharing(opts, router) {
|
|
7138
|
+
const previousResult = React$17.useRef();
|
|
7139
|
+
return (slice) => {
|
|
7140
|
+
const selected = opts?.select ? opts.select(slice) : slice;
|
|
7141
|
+
if (opts?.structuralSharing ?? router.options.defaultStructuralSharing) return previousResult.current = replaceEqualDeep(previousResult.current, selected);
|
|
7142
|
+
return selected;
|
|
7143
|
+
};
|
|
7144
|
+
}
|
|
7145
|
+
function useMatch(opts) {
|
|
7146
|
+
const router = useRouter();
|
|
7147
|
+
const nearestRouteId = React$17.useContext(opts.from ? dummyMatchContext : matchContext);
|
|
7148
|
+
const routeId = opts.from ?? nearestRouteId;
|
|
7149
|
+
const matchStore = router.stores.getMatchStore(routeId);
|
|
7150
|
+
if (isServer ?? router.isServer) {
|
|
7151
|
+
const match = matchStore.get();
|
|
7152
|
+
if (!match) {
|
|
7153
|
+
if (opts.shouldThrow ?? true) {
|
|
7154
|
+
if (process.env.NODE_ENV !== "production") throw new Error(`Invariant failed: Could not find ${opts.from ? `an active match from "${opts.from}"` : "a nearest match!"}`);
|
|
7155
|
+
invariant();
|
|
7156
|
+
}
|
|
7157
|
+
return;
|
|
7158
|
+
}
|
|
7159
|
+
return opts.select ? opts.select(match) : match;
|
|
7160
|
+
}
|
|
7161
|
+
const selector = useStructuralSharing(opts, router);
|
|
7162
|
+
const matchSelection = useSelector(matchStore, (match) => match ? selector(match) : dummyMatch);
|
|
7163
|
+
if (matchSelection !== dummyMatch) return matchSelection;
|
|
7164
|
+
if (opts.shouldThrow ?? true) {
|
|
7165
|
+
if (process.env.NODE_ENV !== "production") throw new Error(`Invariant failed: Could not find ${opts.from ? `an active match from "${opts.from}"` : "a nearest match!"}`);
|
|
7166
|
+
invariant();
|
|
7167
|
+
}
|
|
7168
|
+
}
|
|
7169
|
+
|
|
7170
|
+
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/useLoaderData.js
|
|
7171
|
+
function useLoaderData(opts) {
|
|
7172
|
+
return useMatch({
|
|
7173
|
+
from: opts.from,
|
|
7174
|
+
strict: opts.strict,
|
|
7175
|
+
structuralSharing: opts.structuralSharing,
|
|
7176
|
+
select: (match) => {
|
|
7177
|
+
return opts.select ? opts.select(match.loaderData) : match.loaderData;
|
|
7178
|
+
}
|
|
7179
|
+
});
|
|
7180
|
+
}
|
|
7181
|
+
|
|
7182
|
+
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/useLoaderDeps.js
|
|
7183
|
+
function useLoaderDeps(opts) {
|
|
7184
|
+
const { select, ...rest } = opts;
|
|
7185
|
+
return useMatch({
|
|
7186
|
+
...rest,
|
|
7187
|
+
select: (match) => {
|
|
7188
|
+
return select ? select(match.loaderDeps) : match.loaderDeps;
|
|
7189
|
+
}
|
|
7190
|
+
});
|
|
7191
|
+
}
|
|
7192
|
+
|
|
7193
|
+
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/useParams.js
|
|
7194
|
+
function useParams(opts) {
|
|
7195
|
+
return useMatch({
|
|
7196
|
+
from: opts.from,
|
|
7197
|
+
shouldThrow: opts.shouldThrow,
|
|
7198
|
+
structuralSharing: opts.structuralSharing,
|
|
7199
|
+
strict: opts.strict,
|
|
7200
|
+
select: (match) => {
|
|
7201
|
+
const params = opts.strict === false ? match.params : match._strictParams;
|
|
7202
|
+
return opts.select ? opts.select(params) : params;
|
|
7203
|
+
}
|
|
7204
|
+
});
|
|
7205
|
+
}
|
|
7206
|
+
|
|
7207
|
+
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/useSearch.js
|
|
7208
|
+
function useSearch(opts) {
|
|
7209
|
+
return useMatch({
|
|
7210
|
+
from: opts.from,
|
|
7211
|
+
strict: opts.strict,
|
|
7212
|
+
shouldThrow: opts.shouldThrow,
|
|
7213
|
+
structuralSharing: opts.structuralSharing,
|
|
7214
|
+
select: (match) => {
|
|
7215
|
+
return opts.select ? opts.select(match.search) : match.search;
|
|
7216
|
+
}
|
|
7217
|
+
});
|
|
7218
|
+
}
|
|
7219
|
+
|
|
7220
|
+
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/useRouteContext.js
|
|
7221
|
+
function useRouteContext(opts) {
|
|
7222
|
+
return useMatch({
|
|
7223
|
+
...opts,
|
|
7224
|
+
select: (match) => opts.select ? opts.select(match.context) : match.context
|
|
7225
|
+
});
|
|
7226
|
+
}
|
|
7227
|
+
|
|
7228
7228
|
// node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/route.js
|
|
7229
7229
|
import React2 from "react";
|
|
7230
7230
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
@@ -8219,6 +8219,7 @@ export {
|
|
|
8219
8219
|
makeSerovalPlugin,
|
|
8220
8220
|
RawStream,
|
|
8221
8221
|
useNavigate,
|
|
8222
|
+
Link,
|
|
8222
8223
|
createRootRoute,
|
|
8223
8224
|
createFileRoute,
|
|
8224
8225
|
lazyRouteComponent,
|