@flamingo-stack/openframe-frontend-core 0.0.743 → 0.0.745
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/build/export-map.json +1 -1
- package/dist/{chunk-ZP5DFF3Q.cjs → chunk-3LX5AGZO.cjs} +9 -9
- package/dist/{chunk-MLZKPDPZ.cjs → chunk-6IQDQQ56.cjs} +25 -25
- package/dist/{chunk-NGUJVM6O.cjs → chunk-75BF7YJR.cjs} +7 -7
- package/dist/{chunk-6XCQXGQA.cjs → chunk-7KHQHYXL.cjs} +11 -11
- package/dist/{chunk-IRWJKVVZ.cjs → chunk-7PQOZLVP.cjs} +9 -9
- package/dist/{chunk-7YDF3QBN.cjs → chunk-DJO7YMT3.cjs} +126 -13
- package/dist/{chunk-YDFKFLDQ.cjs → chunk-FNIFUCXU.cjs} +3 -3
- package/dist/{chunk-YWMUZLU2.cjs → chunk-GEEKJ7SH.cjs} +37 -37
- package/dist/{chunk-BM6JZRVD.cjs → chunk-GOTEXQZN.cjs} +40 -16
- package/dist/{chunk-TKASH5YC.cjs → chunk-GQ2TRIOV.cjs} +33 -33
- package/dist/{chunk-UL6ZZSL4.cjs → chunk-HMSCUL4R.cjs} +4 -4
- package/dist/{chunk-MT7ELGCV.cjs → chunk-HVR7DPAY.cjs} +4 -4
- package/dist/{chunk-SQHTX5XP.cjs → chunk-M4FKV2U5.cjs} +6 -6
- package/dist/{chunk-Y2FN3E32.cjs → chunk-NFINQ7IZ.cjs} +4 -4
- package/dist/{chunk-XJO5ZHO6.cjs → chunk-PM5ELQBL.cjs} +17 -17
- package/dist/{chunk-WCY35GB5.cjs → chunk-QES5NV4T.cjs} +716 -532
- package/dist/{chunk-BNTELSHZ.cjs → chunk-RIGSZEXS.cjs} +66 -66
- package/dist/{cloud-tenants-DZC3ACG6.cjs → cloud-tenants-DECPWIYQ.cjs} +4 -4
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/utils/history-merge.d.ts.map +1 -1
- package/dist/components/chat/utils/history-merge.js +25 -1
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/embeds/reddit-embed-client.d.ts +3 -1
- package/dist/components/embeds/reddit-embed-client.d.ts.map +1 -1
- package/dist/components/embeds/reddit-embed-client.js +5 -3
- package/dist/components/embeds/twitter-embed-client.d.ts +3 -1
- package/dist/components/embeds/twitter-embed-client.d.ts.map +1 -1
- package/dist/components/embeds/twitter-embed-client.js +5 -3
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/help-center-pages/index.cjs +74 -74
- package/dist/components/index.cjs +41 -37
- package/dist/components/meeting-scheduler/index.cjs +22 -22
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/product-demo/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/ui/index.cjs +8 -4
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
- package/dist/components/ui/markdown/base-components.js +3 -2
- package/dist/components/ui/markdown/rich/embed-overrides.d.ts.map +1 -1
- package/dist/components/ui/markdown/rich/embed-overrides.js +11 -8
- package/dist/components/ui/markdown-editor.d.ts.map +1 -1
- package/dist/components/ui/markdown-editor.js +4 -0
- package/dist/components/ui/markdown-link-command.d.ts +37 -0
- package/dist/components/ui/markdown-link-command.d.ts.map +1 -0
- package/dist/components/ui/markdown-link-command.js +180 -0
- package/dist/{devices-MFGE2JQV.cjs → devices-HJKDRWQX.cjs} +5 -5
- package/dist/{embeddable-chat-7ZEGCDVF.cjs → embeddable-chat-3SKFBO2P.cjs} +64 -64
- package/dist/index.cjs +24 -8
- package/dist/{knowledge-7VPS2ZBU.cjs → knowledge-NH2CGY2C.cjs} +5 -5
- package/dist/{logs-M3QPAUH7.cjs → logs-KZYIDYQK.cjs} +12 -12
- package/dist/{policies-UAVE6X62.cjs → policies-UAVTPIKM.cjs} +8 -8
- package/dist/{scripts-EDQ3IQKW.cjs → scripts-FRPY43KU.cjs} +9 -9
- package/dist/{software-update-B2MZVNPK.cjs → software-update-AEJJNLX5.cjs} +7 -7
- package/dist/utils/index.cjs +119 -4
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/markdown-link.d.ts +44 -0
- package/dist/utils/markdown-link.d.ts.map +1 -0
- package/dist/utils/markdown-link.js +83 -0
- package/dist/utils/markdown-to-plain.d.ts +3 -16
- package/dist/utils/markdown-to-plain.d.ts.map +1 -1
- package/dist/utils/markdown-to-plain.js +33 -3
- package/package.json +3 -1
- package/src/components/chat/utils/history-merge.ts +46 -1
- package/src/components/embeds/reddit-embed-client.tsx +7 -3
- package/src/components/embeds/twitter-embed-client.tsx +7 -3
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/markdown/base-components.tsx +5 -2
- package/src/components/ui/markdown/rich/embed-overrides.tsx +12 -9
- package/src/components/ui/markdown-editor.tsx +6 -0
- package/src/components/ui/markdown-link-command.tsx +252 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/markdown-link.ts +148 -0
- package/src/utils/markdown-to-plain.ts +64 -22
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkDJO7YMT3cjs = require('./chunk-DJO7YMT3.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -1908,8 +1908,8 @@ function makeComposeContentUrl(opts) {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
if (externalUrl) return { href: externalUrl, targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)) };
|
|
1910
1910
|
const claimedOwner = _nullishCoalesce(targetPlatform, () => ( primaryPlatformOf(platforms)));
|
|
1911
|
-
const owner = claimedOwner &&
|
|
1912
|
-
const origin = owner ?
|
|
1911
|
+
const owner = claimedOwner && _chunkDJO7YMT3cjs.byKey.call(void 0, claimedOwner) ? claimedOwner : null;
|
|
1912
|
+
const origin = owner ? _chunkDJO7YMT3cjs.getPlatformProductionUrl.call(void 0, owner) : opts.contentOrigin;
|
|
1913
1913
|
return {
|
|
1914
1914
|
href: `${origin.replace(/\/+$/, "")}/${seg}/${_optionalChain([slugHint, 'optionalAccess', _69 => _69.trim, 'call', _70 => _70()]) || identifier}`,
|
|
1915
1915
|
// Report the owner so `decideNewTab` can compare it against the current
|
|
@@ -2090,7 +2090,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2090
2090
|
if (heading.level > opts.maxLevel) continue;
|
|
2091
2091
|
let title = heading.text;
|
|
2092
2092
|
if (opts.stripFormattingMarkers) {
|
|
2093
|
-
title =
|
|
2093
|
+
title = _chunkDJO7YMT3cjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2094
2094
|
}
|
|
2095
2095
|
const baseId = _chunkCSJO7ZGNcjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkCSJO7ZGNcjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2096
2096
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2405,7 +2405,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2405
2405
|
function openAskAi(source, options) {
|
|
2406
2406
|
const prompt = _optionalChain([options, 'optionalAccess', _77 => _77.prompt, 'optionalAccess', _78 => _78.trim, 'call', _79 => _79()]);
|
|
2407
2407
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2408
|
-
window.dispatchEvent(new CustomEvent(
|
|
2408
|
+
window.dispatchEvent(new CustomEvent(_chunkDJO7YMT3cjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2409
2409
|
}
|
|
2410
2410
|
function MingoAiButton({
|
|
2411
2411
|
source,
|
|
@@ -2551,13 +2551,13 @@ function QuestionChips({
|
|
|
2551
2551
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: count }, (_, slot) => {
|
|
2552
2552
|
const prompt = loading ? void 0 : prompts[slot];
|
|
2553
2553
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)), children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2554
|
-
|
|
2554
|
+
_chunkDJO7YMT3cjs.QuickActionChipSkeleton,
|
|
2555
2555
|
{
|
|
2556
2556
|
variant: "question",
|
|
2557
2557
|
labelCh: SKELETON_LABEL_CH[slot % SKELETON_LABEL_CH.length]
|
|
2558
2558
|
}
|
|
2559
2559
|
) : prompt ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2560
|
-
|
|
2560
|
+
_chunkDJO7YMT3cjs.QuickActionChipButton,
|
|
2561
2561
|
{
|
|
2562
2562
|
variant: "question",
|
|
2563
2563
|
label: prompt.label,
|
|
@@ -2589,7 +2589,7 @@ function AskPrompts({
|
|
|
2589
2589
|
if (!loading && prompts.length === 0) return null;
|
|
2590
2590
|
const end = align === "end";
|
|
2591
2591
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2592
|
-
|
|
2592
|
+
_chunkDJO7YMT3cjs.ScrollShadow,
|
|
2593
2593
|
{
|
|
2594
2594
|
axis: "horizontal",
|
|
2595
2595
|
color: fadeColor,
|
|
@@ -2893,7 +2893,7 @@ function QuickActionMarquee({
|
|
|
2893
2893
|
);
|
|
2894
2894
|
if (items.length === 0) return null;
|
|
2895
2895
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2896
|
-
|
|
2896
|
+
_chunkDJO7YMT3cjs.QuickActionWall,
|
|
2897
2897
|
{
|
|
2898
2898
|
chips,
|
|
2899
2899
|
mode,
|
|
@@ -3027,7 +3027,7 @@ ChatTicketItem.displayName = "ChatTicketItem";
|
|
|
3027
3027
|
|
|
3028
3028
|
var ChatTicketList = _react.forwardRef.call(void 0,
|
|
3029
3029
|
({ className, tickets, onTicketClick, isLoading = false, skeletonCount = 5, ...props }, ref) => {
|
|
3030
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
3030
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkDJO7YMT3cjs.useScrollFade.call(void 0, );
|
|
3031
3031
|
if (isLoading) {
|
|
3032
3032
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-h-0 flex-col gap-2", className), ...props, children: [
|
|
3033
3033
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h5", children: "Your Chats:" }),
|
|
@@ -3047,8 +3047,8 @@ var ChatTicketList = _react.forwardRef.call(void 0,
|
|
|
3047
3047
|
),
|
|
3048
3048
|
children: [
|
|
3049
3049
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: scrollRef, className: "h-full overflow-y-auto overscroll-contain", onScroll: updateFade, children: tickets.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatTicketItem, { ticket, onClick: onTicketClick }, ticket.id)) }),
|
|
3050
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3051
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3050
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDJO7YMT3cjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop }),
|
|
3051
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDJO7YMT3cjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom })
|
|
3052
3052
|
]
|
|
3053
3053
|
}
|
|
3054
3054
|
)
|
|
@@ -4482,6 +4482,25 @@ function sharesRequestKey(keys, others) {
|
|
|
4482
4482
|
}
|
|
4483
4483
|
return false;
|
|
4484
4484
|
}
|
|
4485
|
+
function ticketEventSeqs(messages) {
|
|
4486
|
+
const seqs = /* @__PURE__ */ new Set();
|
|
4487
|
+
for (const m of messages) {
|
|
4488
|
+
if (!Array.isArray(m.content)) continue;
|
|
4489
|
+
for (const seg of m.content) {
|
|
4490
|
+
if (seg.type === "ticket_event" && typeof seg.streamSeq === "number") seqs.add(seg.streamSeq);
|
|
4491
|
+
}
|
|
4492
|
+
}
|
|
4493
|
+
return seqs;
|
|
4494
|
+
}
|
|
4495
|
+
function withoutPersistedTicketEvents(m, persistedSeqs, streamingMessageId) {
|
|
4496
|
+
if (persistedSeqs.size === 0 || !Array.isArray(m.content)) return m;
|
|
4497
|
+
const content = m.content.filter(
|
|
4498
|
+
(seg) => !(seg.type === "ticket_event" && typeof seg.streamSeq === "number" && persistedSeqs.has(seg.streamSeq))
|
|
4499
|
+
);
|
|
4500
|
+
if (content.length === m.content.length) return m;
|
|
4501
|
+
if (content.length === 0 && m.id !== streamingMessageId) return null;
|
|
4502
|
+
return { ...m, content };
|
|
4503
|
+
}
|
|
4485
4504
|
function userTwinKey(m) {
|
|
4486
4505
|
if (m.role !== "user" || typeof m.content !== "string" || m.content === "") return "";
|
|
4487
4506
|
return `${_nullishCoalesce(m.authorType, () => ( "user"))}\0${m.content}`;
|
|
@@ -4689,7 +4708,12 @@ function mergeHistoryWithRealtime(input) {
|
|
|
4689
4708
|
}
|
|
4690
4709
|
if (keepRealtime(m)) realtimeMessages.push(m);
|
|
4691
4710
|
}
|
|
4692
|
-
|
|
4711
|
+
const persistedTicketEventSeqs = ticketEventSeqs(processedToUse);
|
|
4712
|
+
const dedupedRealtimeMessages = realtimeMessages.flatMap((m) => {
|
|
4713
|
+
const kept = withoutPersistedTicketEvents(m, persistedTicketEventSeqs, streamingMessageId);
|
|
4714
|
+
return kept ? [kept] : [];
|
|
4715
|
+
});
|
|
4716
|
+
return [...olderThanWindowMessages, ...processedToUse, ...dedupedRealtimeMessages];
|
|
4693
4717
|
}
|
|
4694
4718
|
function computeHistoryPrepend(processedHistory, existingMessages) {
|
|
4695
4719
|
const existingIds = new Set(existingMessages.map((m) => m.id));
|
|
@@ -4937,7 +4961,7 @@ function Section({ title, description, children }) {
|
|
|
4937
4961
|
] });
|
|
4938
4962
|
}
|
|
4939
4963
|
function ProxyCredentialsPanel({ description }) {
|
|
4940
|
-
const hydrated =
|
|
4964
|
+
const hydrated = _chunkDJO7YMT3cjs.useIsHydrated.call(void 0, );
|
|
4941
4965
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4942
4966
|
ProxyCredentialsForm,
|
|
4943
4967
|
{
|
|
@@ -5101,10 +5125,10 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5101
5125
|
|
|
5102
5126
|
// src/components/chat/index.ts
|
|
5103
5127
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5104
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5128
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-3SKFBO2P.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5105
5129
|
);
|
|
5106
5130
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5107
|
-
_react.useEffect.call(void 0, () =>
|
|
5131
|
+
_react.useEffect.call(void 0, () => _chunkDJO7YMT3cjs.holdAskAiOpens.call(void 0, ), []);
|
|
5108
5132
|
return _react.createElement.call(void 0, _react.Suspense, { fallback: null }, _react.createElement.call(void 0, LoadedEmbeddableChat, { ...props, ref }));
|
|
5109
5133
|
});
|
|
5110
5134
|
EmbeddableChat.displayName = "EmbeddableChat";
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkFNIFUCXUcjs = require('./chunk-FNIFUCXU.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkHVR7DPAYcjs = require('./chunk-HVR7DPAY.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkM4FKV2U5cjs = require('./chunk-M4FKV2U5.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkQES5NV4Tcjs = require('./chunk-QES5NV4T.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunkU2O5YQRPcjs = require('./chunk-U2O5YQRP.cjs');
|
|
@@ -27,7 +27,7 @@ var _chunkU2O5YQRPcjs = require('./chunk-U2O5YQRP.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkGOTEXQZNcjs = require('./chunk-GOTEXQZN.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -337,8 +337,8 @@ function toDocContent(value, requestedPath) {
|
|
|
337
337
|
}
|
|
338
338
|
function useDocumentTree(config, initialPath) {
|
|
339
339
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
340
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
341
|
-
const cleanInitialPath =
|
|
340
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkGOTEXQZNcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
341
|
+
const cleanInitialPath = _chunkGOTEXQZNcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
342
342
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
343
343
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
344
344
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -362,12 +362,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
362
362
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
363
363
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
364
364
|
}
|
|
365
|
-
pathFromUrl =
|
|
365
|
+
pathFromUrl = _chunkGOTEXQZNcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
366
366
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
367
367
|
setSelectedPath(pathFromUrl);
|
|
368
368
|
if (pathFromUrl) {
|
|
369
369
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
370
|
-
setExpandedNodes(new Set(
|
|
370
|
+
setExpandedNodes(new Set(_chunkGOTEXQZNcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
371
371
|
}
|
|
372
372
|
setTimeout(() => {
|
|
373
373
|
scrollToContent();
|
|
@@ -385,7 +385,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
385
385
|
setSelectedPath(cleanInitialPath);
|
|
386
386
|
if (cleanInitialPath) {
|
|
387
387
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
388
|
-
setExpandedNodes(new Set(
|
|
388
|
+
setExpandedNodes(new Set(_chunkGOTEXQZNcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
389
389
|
}
|
|
390
390
|
setExternalNavCount((n) => n + 1);
|
|
391
391
|
}
|
|
@@ -410,7 +410,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
410
410
|
if (cleanInitialPath) {
|
|
411
411
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
412
412
|
if (pathForExpansion) {
|
|
413
|
-
setExpandedNodes(new Set(
|
|
413
|
+
setExpandedNodes(new Set(_chunkGOTEXQZNcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
414
414
|
}
|
|
415
415
|
} else if (nodes.length > 0) {
|
|
416
416
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -450,7 +450,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
450
450
|
setContent(null);
|
|
451
451
|
return;
|
|
452
452
|
}
|
|
453
|
-
const probe =
|
|
453
|
+
const probe = _chunkGOTEXQZNcjs.findDocNodeByPath.call(void 0, _chunkGOTEXQZNcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
454
454
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
455
455
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
456
456
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -507,7 +507,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
507
507
|
if (selectedPath === "") {
|
|
508
508
|
pathToFetch = folderIndexFile;
|
|
509
509
|
} else {
|
|
510
|
-
const node =
|
|
510
|
+
const node = _chunkGOTEXQZNcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
511
511
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
512
512
|
const firstDocPath = findFirstDocPath(node);
|
|
513
513
|
if (!firstDocPath) {
|
|
@@ -548,16 +548,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
548
548
|
if (node.type === "folder") {
|
|
549
549
|
setExpandedNodes((prev) => {
|
|
550
550
|
if (prev.has(node.id)) {
|
|
551
|
-
const ancestorIds =
|
|
551
|
+
const ancestorIds = _chunkGOTEXQZNcjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
552
552
|
ancestorIds.pop();
|
|
553
553
|
return new Set(ancestorIds);
|
|
554
554
|
}
|
|
555
|
-
return new Set(
|
|
555
|
+
return new Set(_chunkGOTEXQZNcjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
556
556
|
});
|
|
557
557
|
} else {
|
|
558
558
|
const lastSlash = node.path.lastIndexOf("/");
|
|
559
559
|
if (lastSlash > 0) {
|
|
560
|
-
setExpandedNodes(new Set(
|
|
560
|
+
setExpandedNodes(new Set(_chunkGOTEXQZNcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
lastFetchedPath.current = null;
|
|
@@ -572,7 +572,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
572
572
|
const hashIndex = path.indexOf("#");
|
|
573
573
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
574
574
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
575
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
575
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkGOTEXQZNcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
576
576
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
577
577
|
_chunkCSJO7ZGNcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkCSJO7ZGNcjs.HUB_HEADER_OFFSET_PX });
|
|
578
578
|
return;
|
|
@@ -636,15 +636,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
636
636
|
return docNavigation.register({
|
|
637
637
|
baseRoute: normalizedBaseRoute,
|
|
638
638
|
findNodeByPath: (path) => {
|
|
639
|
-
const clean =
|
|
640
|
-
return _nullishCoalesce(
|
|
639
|
+
const clean = _chunkGOTEXQZNcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
640
|
+
return _nullishCoalesce(_chunkGOTEXQZNcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
641
641
|
},
|
|
642
642
|
selectNode
|
|
643
643
|
});
|
|
644
644
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
645
645
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
646
646
|
if (!selectedPath || structure.length === 0) return false;
|
|
647
|
-
const node =
|
|
647
|
+
const node = _chunkGOTEXQZNcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
648
648
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
649
649
|
}, [selectedPath, structure]);
|
|
650
650
|
return {
|
|
@@ -724,14 +724,14 @@ function DocViewerContent({
|
|
|
724
724
|
},
|
|
725
725
|
docPath
|
|
726
726
|
);
|
|
727
|
-
const { activeSection, handleSectionClick } =
|
|
727
|
+
const { activeSection, handleSectionClick } = _chunkHVR7DPAYcjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
|
|
728
728
|
const docNav = useDocNavigation();
|
|
729
729
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
730
730
|
const backCfg = backButton === false ? null : {
|
|
731
731
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
|
|
732
732
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
|
|
733
733
|
};
|
|
734
|
-
const docSearch =
|
|
734
|
+
const docSearch = _chunkM4FKV2U5cjs.useDocSearch.call(void 0, {
|
|
735
735
|
source: chatSource,
|
|
736
736
|
baseRoute,
|
|
737
737
|
searchEndpoint,
|
|
@@ -755,7 +755,7 @@ function DocViewerContent({
|
|
|
755
755
|
onResolveLink: resolveLink
|
|
756
756
|
});
|
|
757
757
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
758
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
758
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkGOTEXQZNcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
|
|
759
759
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _15 => _15.documentType]), () => ( selectedNodeDocType));
|
|
760
760
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
761
761
|
const showStickyNav = isMarkdownContent;
|
|
@@ -768,7 +768,7 @@ function DocViewerContent({
|
|
|
768
768
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
769
769
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.PageLayout, { title, subtitle, titleSize: "h1", titleWrap: true, backButton: _nullishCoalesce(backCfg, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-10", children: [
|
|
770
770
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
771
|
-
|
|
771
|
+
_chunkM4FKV2U5cjs.DocSearchBar,
|
|
772
772
|
{
|
|
773
773
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _19 => _19.toLowerCase, 'call', _20 => _20()]) || "documents"}...`,
|
|
774
774
|
query: docSearch.query,
|
|
@@ -787,9 +787,9 @@ function DocViewerContent({
|
|
|
787
787
|
] })
|
|
788
788
|
] }) }),
|
|
789
789
|
!error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-start gap-6 content-lg:flex-row content-lg:gap-10", children: [
|
|
790
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
790
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQES5NV4Tcjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
791
791
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
792
|
-
|
|
792
|
+
_chunkHVR7DPAYcjs.MobileNavigationDropdown,
|
|
793
793
|
{
|
|
794
794
|
nodes: structure,
|
|
795
795
|
selectedPath,
|
|
@@ -803,7 +803,7 @@ function DocViewerContent({
|
|
|
803
803
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentSidebar, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
804
804
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
805
805
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
806
|
-
|
|
806
|
+
_chunkHVR7DPAYcjs.MultiLevelNavigation,
|
|
807
807
|
{
|
|
808
808
|
nodes: structure,
|
|
809
809
|
selectedPath,
|
|
@@ -842,7 +842,7 @@ function DocViewerContent({
|
|
|
842
842
|
showStickyNav && content && stickyNavSections.length > 0 && !isLoadingContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
|
|
843
843
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mb-4 font-semibold text-ods-text-secondary text-h5", children: "ON THIS PAGE" }),
|
|
844
844
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
845
|
-
|
|
845
|
+
_chunkHVR7DPAYcjs.StickySectionNav,
|
|
846
846
|
{
|
|
847
847
|
sections: stickyNavSections,
|
|
848
848
|
activeSection,
|
|
@@ -857,7 +857,7 @@ function DocViewerContent({
|
|
|
857
857
|
) })
|
|
858
858
|
] })
|
|
859
859
|
] }) }) });
|
|
860
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
860
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQES5NV4Tcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
861
861
|
}
|
|
862
862
|
|
|
863
863
|
// src/components/docs/skeletons.tsx
|
|
@@ -953,11 +953,11 @@ function EmbedSkeleton({ documentType } = {}) {
|
|
|
953
953
|
|
|
954
954
|
var DEFAULT_TITLE = "Documents";
|
|
955
955
|
var defaultFallbackRenderer = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "py-16 text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: "Unsupported document type" }) });
|
|
956
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
957
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
958
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
956
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFNIFUCXUcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
957
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFNIFUCXUcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
958
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQES5NV4Tcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
959
959
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
960
|
-
|
|
960
|
+
_chunkFNIFUCXUcjs.FileDownloadCard,
|
|
961
961
|
{
|
|
962
962
|
fileName: content.fileName,
|
|
963
963
|
mimeType: content.mimeType,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkGOTEXQZNcjs = require('./chunk-GOTEXQZN.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkDJO7YMT3cjs = require('./chunk-DJO7YMT3.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkDGFDBPO7cjs = require('./chunk-DGFDBPO7.cjs');
|
|
@@ -44,7 +44,7 @@ function isSummaryData(value) {
|
|
|
44
44
|
}
|
|
45
45
|
function TicketLiveProvider({ children, enabled = true }) {
|
|
46
46
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
47
|
-
const identity =
|
|
47
|
+
const identity = _chunkDJO7YMT3cjs.useChatIdentity.call(void 0, enabled);
|
|
48
48
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
49
49
|
const streamUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _ => _.endpoints, 'access', _2 => _2.ticketStreamUrl]), () => ( TICKET_STREAM_ENDPOINT));
|
|
50
50
|
const readUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _3 => _3.endpoints, 'access', _4 => _4.ticketReadUrl]), () => ( TICKET_READ_ENDPOINT));
|
|
@@ -160,7 +160,7 @@ function TicketLiveProvider({ children, enabled = true }) {
|
|
|
160
160
|
_react2.default.useEffect(() => {
|
|
161
161
|
if (!streamEnabled) return void 0;
|
|
162
162
|
if (typeof window === "undefined") return void 0;
|
|
163
|
-
subscriptionRef.current =
|
|
163
|
+
subscriptionRef.current = _chunkGOTEXQZNcjs.createSseSubscription.call(void 0, {
|
|
164
164
|
url: streamUrl,
|
|
165
165
|
onEvent: (name, data) => handlersRef.current.onEvent(name, data),
|
|
166
166
|
onStatusChange: (status) => handlersRef.current.onStatus(status),
|
|
@@ -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 _chunkGOTEXQZNcjs = require('./chunk-GOTEXQZN.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkDJO7YMT3cjs = require('./chunk-DJO7YMT3.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -47,7 +47,7 @@ function HorizontalSectionNav({
|
|
|
47
47
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { ref: navRef, "aria-label": label, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex h-14 items-stretch gap-6 bg-ods-bg", className), children: [
|
|
48
48
|
brand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden shrink-0 items-center gap-2.5 border-r border-ods-border pr-6 text-ods-text-primary text-h4 content-lg:flex", children: brand }),
|
|
49
49
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
50
|
-
|
|
50
|
+
_chunkDJO7YMT3cjs.ScrollShadow,
|
|
51
51
|
{
|
|
52
52
|
axis: "horizontal",
|
|
53
53
|
className: "min-w-0 flex-1",
|
|
@@ -332,7 +332,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
332
332
|
// src/components/navigation/multi-level-navigation.tsx
|
|
333
333
|
var _lucidereact = require('lucide-react');
|
|
334
334
|
|
|
335
|
-
var DEFAULT_FOLDER_INDEX_FILE2 =
|
|
335
|
+
var DEFAULT_FOLDER_INDEX_FILE2 = _chunkGOTEXQZNcjs.DEFAULT_FOLDER_INDEX_FILE;
|
|
336
336
|
function isNodeVisuallySelected(node, selectedPath, folderIndexFile = DEFAULT_FOLDER_INDEX_FILE2) {
|
|
337
337
|
const FOLDER_INDEX_FILE = folderIndexFile.toLowerCase();
|
|
338
338
|
if (selectedPath === node.path) {
|
|
@@ -1,13 +1,13 @@
|
|
|
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 _chunkQES5NV4Tcjs = require('./chunk-QES5NV4T.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkDJO7YMT3cjs = require('./chunk-DJO7YMT3.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkCSJO7ZGNcjs = require('./chunk-CSJO7ZGN.cjs');
|
|
@@ -40,7 +40,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
40
40
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
41
41
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
42
42
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
43
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
43
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkDJO7YMT3cjs.resolveSourceIcon.call(void 0, {
|
|
44
44
|
sourceRepo,
|
|
45
45
|
documentType: docType
|
|
46
46
|
});
|
|
@@ -70,7 +70,7 @@ function DocSearchBar({
|
|
|
70
70
|
renderResult
|
|
71
71
|
}) {
|
|
72
72
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
73
|
-
|
|
73
|
+
_chunkQES5NV4Tcjs.SearchInput,
|
|
74
74
|
{
|
|
75
75
|
placeholder,
|
|
76
76
|
value: query,
|
|
@@ -120,7 +120,7 @@ function mapDocSearchResults(docs) {
|
|
|
120
120
|
results.push({
|
|
121
121
|
id: `group-${entry.repo}`,
|
|
122
122
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
123
|
-
title: `${
|
|
123
|
+
title: `${_chunkDJO7YMT3cjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkDJO7YMT3cjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
124
124
|
path: rows[0].path,
|
|
125
125
|
type: "file",
|
|
126
126
|
metadata: {
|
|
@@ -336,7 +336,7 @@ function useDocSearch(config) {
|
|
|
336
336
|
return;
|
|
337
337
|
case "ask-ai":
|
|
338
338
|
setKeepOpen(false);
|
|
339
|
-
window.dispatchEvent(new CustomEvent(
|
|
339
|
+
window.dispatchEvent(new CustomEvent(_chunkDJO7YMT3cjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
340
340
|
return;
|
|
341
341
|
case "route":
|
|
342
342
|
setKeepOpen(false);
|
|
@@ -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 _chunk75BF7YJRcjs = require('./chunk-75BF7YJR.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQES5NV4Tcjs = require('./chunk-QES5NV4T.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkU2O5YQRPcjs = require('./chunk-U2O5YQRP.cjs');
|
|
@@ -35,7 +35,7 @@ function FaqDocumentPage({
|
|
|
35
35
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _2 => _2.href]), () => ( "/")))
|
|
36
36
|
};
|
|
37
37
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2O5YQRPcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38
|
-
|
|
38
|
+
_chunk75BF7YJRcjs.FaqSection,
|
|
39
39
|
{
|
|
40
40
|
initialFaqs,
|
|
41
41
|
heading: null,
|
|
@@ -49,7 +49,7 @@ function FaqDocumentPage({
|
|
|
49
49
|
ask
|
|
50
50
|
}
|
|
51
51
|
) });
|
|
52
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQES5NV4Tcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
|