@inkeep/cxkit-primitives 0.5.12 → 0.5.14
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/_virtual/index.cjs +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
- package/dist/atoms/cmdk/command-score.cjs +1 -0
- package/dist/atoms/cmdk/command-score.d.cts +1 -0
- package/dist/atoms/cmdk/command-score.d.ts +1 -0
- package/dist/atoms/cmdk/command-score.js +46 -0
- package/dist/atoms/cmdk/index.cjs +1 -0
- package/dist/atoms/cmdk/index.d.cts +426 -0
- package/dist/atoms/cmdk/index.d.ts +426 -0
- package/dist/atoms/cmdk/index.js +510 -0
- package/dist/atoms/dialog.cjs +1 -0
- package/dist/atoms/dialog.d.cts +29 -2
- package/dist/atoms/dialog.d.ts +29 -2
- package/dist/atoms/dialog.js +216 -0
- package/dist/components/embedded-chat.cjs +3 -3
- package/dist/components/embedded-chat.d.cts +1 -1
- package/dist/components/embedded-chat.d.ts +1 -1
- package/dist/components/embedded-chat.js +1015 -1015
- package/dist/components/embedded-search/use-inkeep-search.cjs +1 -1
- package/dist/components/embedded-search/use-inkeep-search.js +1 -3
- package/dist/components/embedded-search.cjs +1 -1
- package/dist/components/embedded-search.d.cts +42 -55
- package/dist/components/embedded-search.d.ts +42 -55
- package/dist/components/embedded-search.js +289 -242
- package/dist/components/modal.cjs +1 -1
- package/dist/components/modal.d.cts +1 -1
- package/dist/components/modal.d.ts +1 -1
- package/dist/components/modal.js +26 -26
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +9 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +68 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +9 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +56 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.cjs +1 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.js +8 -0
- package/dist/providers/base-events-provider.cjs +1 -1
- package/dist/providers/base-events-provider.js +1 -1
- package/package.json +11 -6
|
@@ -1,320 +1,365 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
-
import { Command as
|
|
3
|
+
import { Command as I } from "../atoms/cmdk/index.js";
|
|
4
4
|
import { ikp as s } from "./factory.js";
|
|
5
|
-
import { dataAttr as u, maybeRender as
|
|
6
|
-
import { forwardRef as
|
|
7
|
-
import { useSearch as
|
|
8
|
-
import { SearchProvider as
|
|
9
|
-
import
|
|
10
|
-
import { CustomIcon as
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { highlightEmphasis as O } from "../utils/highlight-emphasis.js";
|
|
5
|
+
import { dataAttr as u, maybeRender as v } from "../utils/misc.js";
|
|
6
|
+
import { forwardRef as _, useEffect as f, useState as V, useRef as B, useMemo as U } from "react";
|
|
7
|
+
import { useSearch as l } from "./embedded-search/search-provider.js";
|
|
8
|
+
import { SearchProvider as Tt } from "./embedded-search/search-provider.js";
|
|
9
|
+
import M from "./tagline-logo-icon.js";
|
|
10
|
+
import { CustomIcon as P } from "../atoms/icons/custom-icon.js";
|
|
11
|
+
import * as R from "@radix-ui/react-scroll-area";
|
|
12
|
+
import * as T from "@radix-ui/react-tabs";
|
|
13
|
+
import { useInkeepConfig as y } from "../providers/config-provider.js";
|
|
14
|
+
import { useSearchEvents as O } from "../providers/search-events-provider.js";
|
|
15
|
+
import { LinkWithQueryParams as $ } from "../atoms/link.js";
|
|
16
|
+
import { SourceItemProvider as G, useSourceItem as h } from "../providers/source-item-provider.js";
|
|
17
|
+
import { BuiltInIconRenderer as N } from "../atoms/icons/built-in-icon-renderer.js";
|
|
18
|
+
import { highlightEmphasis as K } from "../utils/highlight-emphasis.js";
|
|
20
19
|
import { useScrollingFades as W } from "../hooks/use-scrolling-fades.js";
|
|
21
20
|
import { useColorModeValue as q } from "@inkeep/cxkit-color-mode";
|
|
22
|
-
import
|
|
23
|
-
import { useModal as
|
|
24
|
-
import { useComposedRefs as
|
|
21
|
+
import H from "../atoms/avatars/ai.js";
|
|
22
|
+
import { useModal as F } from "./modal/modal-provider.js";
|
|
23
|
+
import { useComposedRefs as A } from "../utils/compose-refs.js";
|
|
25
24
|
import { composeEventHandlers as g } from "../utils/compose-event-handlers.js";
|
|
26
|
-
|
|
25
|
+
import { useShadow as j } from "../atoms/shadow/context.js";
|
|
26
|
+
const C = "__ask_ai__", Q = s("div", {
|
|
27
27
|
_id: "aiSearchWrapper"
|
|
28
|
-
}),
|
|
29
|
-
const { isHidden:
|
|
28
|
+
}), Oe = (e) => {
|
|
29
|
+
const { isHidden: t, hasContent: r, isMobile: i } = l(), n = F();
|
|
30
30
|
return /* @__PURE__ */ a(
|
|
31
|
-
|
|
31
|
+
Q,
|
|
32
32
|
{
|
|
33
|
-
"data-hidden": u(
|
|
33
|
+
"data-hidden": u(t),
|
|
34
34
|
"data-has-content": u(r),
|
|
35
35
|
"data-in-modal": u(!!n),
|
|
36
36
|
"data-mobile": u(i),
|
|
37
|
-
...
|
|
37
|
+
...e
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
|
-
},
|
|
40
|
+
}, z = s(I, {
|
|
41
41
|
_id: "aiSearchRoot"
|
|
42
|
-
}),
|
|
43
|
-
const { isHidden:
|
|
42
|
+
}), $e = (e) => {
|
|
43
|
+
const { isHidden: t, selectedItem: r, onSelectedItemChange: i } = l();
|
|
44
44
|
return /* @__PURE__ */ a(
|
|
45
|
-
|
|
45
|
+
z,
|
|
46
46
|
{
|
|
47
|
-
"data-hidden": u(
|
|
47
|
+
"data-hidden": u(t),
|
|
48
48
|
shouldFilter: !1,
|
|
49
49
|
loop: !1,
|
|
50
50
|
value: r,
|
|
51
51
|
onValueChange: i,
|
|
52
|
-
...
|
|
52
|
+
...e
|
|
53
53
|
}
|
|
54
54
|
);
|
|
55
|
-
},
|
|
55
|
+
}, J = s(I.List, {
|
|
56
56
|
_id: "aiSearchContent"
|
|
57
|
-
}),
|
|
57
|
+
}), Ge = _((e, t) => {
|
|
58
|
+
const { selectedItem: r } = l();
|
|
59
|
+
return /* @__PURE__ */ a(
|
|
60
|
+
J,
|
|
61
|
+
{
|
|
62
|
+
"aria-activedescendant": `aiSearchResults__Item-${r}`,
|
|
63
|
+
...e,
|
|
64
|
+
ref: t
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
}), Ke = s("div", {
|
|
58
68
|
_id: "aiSearchInputGroup"
|
|
59
|
-
}),
|
|
69
|
+
}), We = s(P, {
|
|
60
70
|
_id: "aiSearchInputIcon",
|
|
61
71
|
iconKey: "search"
|
|
62
|
-
}),
|
|
72
|
+
}), X = s(I.Input, {
|
|
63
73
|
_id: "aiSearchInput"
|
|
64
|
-
}),
|
|
65
|
-
const { query: i, onInput: n, placeholder: o, inputRef:
|
|
66
|
-
return
|
|
74
|
+
}), qe = _(({ onInput: e, ...t }, r) => {
|
|
75
|
+
const { query: i, onInput: n, placeholder: o, inputRef: c, shouldAutoFocusInput: d, selectedItem: p } = l(), S = A(r, c), m = F();
|
|
76
|
+
return f(() => {
|
|
67
77
|
requestAnimationFrame(() => {
|
|
68
|
-
d &&
|
|
78
|
+
d && c?.current && (c.current.focus(), c.current.selectionStart = c.current.value.length);
|
|
69
79
|
});
|
|
70
|
-
}, [d,
|
|
71
|
-
|
|
80
|
+
}, [d, c, m?.isOpen]), /* @__PURE__ */ a(
|
|
81
|
+
X,
|
|
72
82
|
{
|
|
73
|
-
asChild: !0,
|
|
74
83
|
ref: S,
|
|
75
84
|
placeholder: o,
|
|
76
85
|
value: i,
|
|
77
|
-
onInput: g(
|
|
78
|
-
|
|
79
|
-
|
|
86
|
+
onInput: g(e, n),
|
|
87
|
+
"aria-activedescendant": `aiSearchResults__Item-${p}`,
|
|
88
|
+
...t
|
|
80
89
|
}
|
|
81
90
|
);
|
|
82
|
-
}),
|
|
91
|
+
}), Y = s(N, {
|
|
83
92
|
_id: "aiSearchLoading",
|
|
84
93
|
iconSettings: {
|
|
85
94
|
builtIn: "LuLoaderCircle"
|
|
86
95
|
}
|
|
87
|
-
}),
|
|
88
|
-
const { loading:
|
|
89
|
-
return !
|
|
90
|
-
},
|
|
96
|
+
}), He = (e) => {
|
|
97
|
+
const { loading: t, resultsList: r } = l();
|
|
98
|
+
return !t || r.length === 0 ? null : /* @__PURE__ */ a(Y, { ...e });
|
|
99
|
+
}, Z = s(I.Item, {
|
|
91
100
|
_id: "aiAskAITrigger",
|
|
92
|
-
value:
|
|
93
|
-
}),
|
|
94
|
-
const { setSelectedItem:
|
|
95
|
-
return /* @__PURE__ */ a(
|
|
96
|
-
|
|
101
|
+
value: C
|
|
102
|
+
}), je = (e) => {
|
|
103
|
+
const { setSelectedItem: t, results: r, tab: i } = l(), n = r[i]?.[0]?.id ?? "NONE";
|
|
104
|
+
return /* @__PURE__ */ a(
|
|
105
|
+
Z,
|
|
106
|
+
{
|
|
107
|
+
...e,
|
|
108
|
+
id: `aiSearchResults__Item-${C}`,
|
|
109
|
+
tabIndex: 0,
|
|
110
|
+
onPointerLeave: () => t(n)
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
}, ee = s("img", {
|
|
97
114
|
_id: "aiAskAITrigger__Icon"
|
|
98
|
-
}),
|
|
99
|
-
const { aiChatSettings:
|
|
100
|
-
return
|
|
115
|
+
}), Qe = (e) => {
|
|
116
|
+
const { aiChatSettings: t } = y(), { aiAssistantAvatar: r } = t ?? {}, i = typeof r == "string" ? r : r?.light, n = (typeof r == "string" ? r : r?.dark) ?? i, o = q(i, n), [c, d] = V(o);
|
|
117
|
+
return f(() => {
|
|
101
118
|
d(o);
|
|
102
|
-
}, [o]), /* @__PURE__ */ a(
|
|
119
|
+
}, [o]), /* @__PURE__ */ a(ee, { asChild: !0, ...e, children: c ? (
|
|
103
120
|
// biome-ignore lint/a11y/useAltText: <explanation>
|
|
104
121
|
/* @__PURE__ */ a(
|
|
105
122
|
"img",
|
|
106
123
|
{
|
|
107
|
-
src:
|
|
124
|
+
src: c,
|
|
108
125
|
alt: "AI Avatar",
|
|
109
126
|
"data-type": "image",
|
|
110
127
|
onError: g(() => {
|
|
111
128
|
d(null);
|
|
112
129
|
}),
|
|
113
|
-
...
|
|
130
|
+
...e
|
|
114
131
|
}
|
|
115
132
|
)
|
|
116
|
-
) : /* @__PURE__ */ a(
|
|
117
|
-
},
|
|
133
|
+
) : /* @__PURE__ */ a(H, { "data-type": "icon", ...e }) });
|
|
134
|
+
}, ze = s("span", {
|
|
118
135
|
_id: "aiAskAITrigger__Label"
|
|
119
|
-
}),
|
|
136
|
+
}), Je = s(P, {
|
|
120
137
|
_id: "aiAskAITrigger__Indicator",
|
|
121
138
|
iconKey: "openLinkInSameTab"
|
|
122
|
-
}),
|
|
139
|
+
}), te = s(T.Root, {
|
|
123
140
|
_id: "aiSearchResults"
|
|
124
|
-
}),
|
|
125
|
-
const { tab:
|
|
141
|
+
}), Xe = (e) => {
|
|
142
|
+
const { tab: t, onTabChange: r, hasContent: i } = l();
|
|
126
143
|
return /* @__PURE__ */ a(
|
|
127
|
-
|
|
144
|
+
te,
|
|
128
145
|
{
|
|
129
|
-
value:
|
|
146
|
+
value: t,
|
|
130
147
|
onValueChange: r,
|
|
131
148
|
"data-has-content": u(i),
|
|
132
|
-
...
|
|
149
|
+
...e
|
|
133
150
|
}
|
|
134
151
|
);
|
|
135
|
-
},
|
|
152
|
+
}, re = s("div", {
|
|
136
153
|
_id: "aiSearchResults__Loading"
|
|
137
|
-
}),
|
|
138
|
-
const { loading:
|
|
139
|
-
return !
|
|
140
|
-
},
|
|
154
|
+
}), Ye = (e) => {
|
|
155
|
+
const { loading: t, resultsList: r } = l();
|
|
156
|
+
return !t || r.length > 0 ? null : /* @__PURE__ */ a(re, { ...e });
|
|
157
|
+
}, se = s(I.Empty, {
|
|
141
158
|
_id: "aiSearchResults__Empty"
|
|
142
|
-
}),
|
|
143
|
-
const { query:
|
|
144
|
-
return r || !
|
|
145
|
-
},
|
|
159
|
+
}), Ze = (e) => {
|
|
160
|
+
const { query: t, loading: r, results: i, tab: n } = l(), o = i[n]?.length;
|
|
161
|
+
return r || !t || o ? null : /* @__PURE__ */ a(se, { children: "No results found.", ...e });
|
|
162
|
+
}, ie = s(T.List, {
|
|
146
163
|
_id: "aiSearchResults__TabList"
|
|
147
|
-
}),
|
|
148
|
-
const { children:
|
|
164
|
+
}), et = (e) => {
|
|
165
|
+
const { children: t, ...r } = e, {
|
|
149
166
|
searchSettings: { tabs: i }
|
|
150
|
-
} =
|
|
151
|
-
if (o &&
|
|
167
|
+
} = y(), { results: n, loading: o, resultsList: c } = l();
|
|
168
|
+
if (o && c.length === 0) return null;
|
|
152
169
|
const d = Object.keys(n);
|
|
153
|
-
return !i.length || !d.length ? null : /* @__PURE__ */ a(
|
|
154
|
-
},
|
|
170
|
+
return !i.length || !d.length ? null : /* @__PURE__ */ a(ie, { tabIndex: -1, children: v(t, d), ...r });
|
|
171
|
+
}, ae = s(T.Trigger, {
|
|
155
172
|
_id: "aiSearchResults__Tab"
|
|
156
|
-
}),
|
|
157
|
-
const { tab:
|
|
158
|
-
|
|
159
|
-
},
|
|
173
|
+
}), tt = _((e, t) => {
|
|
174
|
+
const r = B(null), i = A(t, r), { tab: n, onClick: o, ...c } = e, { results: d, tab: p, inputRef: S } = l(), m = d[n].length, b = n === p, E = () => {
|
|
175
|
+
S.current?.focus();
|
|
176
|
+
}, L = j();
|
|
177
|
+
return f(() => {
|
|
178
|
+
b && L?.shadowHost?.shadowRoot?.activeElement?.hasAttribute("ikp-tab") && r.current?.focus();
|
|
179
|
+
}, [b]), /* @__PURE__ */ a(
|
|
180
|
+
ae,
|
|
181
|
+
{
|
|
182
|
+
ref: i,
|
|
183
|
+
"ikp-tab": "",
|
|
184
|
+
tabIndex: b ? 0 : -1,
|
|
185
|
+
value: n,
|
|
186
|
+
children: `${n} (${m})`,
|
|
187
|
+
onClick: g(o, E),
|
|
188
|
+
...c
|
|
189
|
+
}
|
|
190
|
+
);
|
|
191
|
+
}), ne = s(R.Root, {
|
|
160
192
|
_id: "aiSearchResults__ScrollArea"
|
|
161
|
-
}),
|
|
162
|
-
const { loading:
|
|
163
|
-
return
|
|
164
|
-
},
|
|
193
|
+
}), rt = (e) => {
|
|
194
|
+
const { loading: t, resultsList: r } = l();
|
|
195
|
+
return t && r.length === 0 ? null : /* @__PURE__ */ a(ne, { tabIndex: -1, ...e });
|
|
196
|
+
}, oe = s(R.Viewport, {
|
|
165
197
|
_id: "aiSearchResults__ScrollAreaViewport"
|
|
166
|
-
}),
|
|
167
|
-
const i = W(), n =
|
|
168
|
-
return
|
|
198
|
+
}), st = _(({ children: e, ...t }, r) => {
|
|
199
|
+
const i = W(), n = A(r, i), { tab: o } = l();
|
|
200
|
+
return f(() => {
|
|
169
201
|
o && i.current?.scrollTo({ top: 0, behavior: "auto" });
|
|
170
202
|
}, [o]), /* @__PURE__ */ a(
|
|
171
|
-
|
|
203
|
+
oe,
|
|
172
204
|
{
|
|
173
205
|
ref: n,
|
|
206
|
+
tabIndex: -1,
|
|
174
207
|
children: (
|
|
175
208
|
/* added this to fix an overflow issue see https://github.com/radix-ui/primitives/issues/926 */
|
|
176
|
-
/* @__PURE__ */ a("div", { style: { display: "grid" }, children:
|
|
209
|
+
/* @__PURE__ */ a("div", { tabIndex: -1, style: { display: "grid" }, children: e })
|
|
177
210
|
),
|
|
178
|
-
...
|
|
211
|
+
...t
|
|
179
212
|
}
|
|
180
213
|
);
|
|
181
|
-
}),
|
|
182
|
-
|
|
214
|
+
}), it = s(
|
|
215
|
+
R.ScrollAreaScrollbar,
|
|
183
216
|
{
|
|
184
217
|
_id: "aiSearchResults__ScrollAreaScrollbar"
|
|
185
218
|
}
|
|
186
|
-
),
|
|
219
|
+
), at = s(R.ScrollAreaThumb, {
|
|
187
220
|
_id: "aiSearchResults__ScrollAreaThumb"
|
|
188
|
-
}),
|
|
221
|
+
}), nt = s(R.Corner, {
|
|
189
222
|
_id: "aiSearchResults__ScrollAreaCorner"
|
|
190
|
-
}),
|
|
223
|
+
}), ce = s(T.Content, {
|
|
191
224
|
_id: "aiSearchResults__List"
|
|
192
|
-
}),
|
|
193
|
-
const { children:
|
|
225
|
+
}), ot = (e) => {
|
|
226
|
+
const { children: t, ...r } = e, { results: i, tab: n } = l(), o = i[n] ?? [];
|
|
194
227
|
return /* @__PURE__ */ a(
|
|
195
|
-
|
|
228
|
+
ce,
|
|
196
229
|
{
|
|
197
230
|
value: n,
|
|
198
231
|
"data-has-results": u(o.length > 0),
|
|
199
232
|
"aria-label": "Search results",
|
|
200
|
-
children:
|
|
233
|
+
children: v(t, o),
|
|
234
|
+
tabIndex: -1,
|
|
201
235
|
...r
|
|
202
236
|
}
|
|
203
237
|
);
|
|
204
|
-
},
|
|
238
|
+
}, le = s(I.Item, {
|
|
205
239
|
_id: "aiSearchResults__Item",
|
|
206
240
|
asChild: !0
|
|
207
|
-
}),
|
|
241
|
+
}), ct = _(({ item: e, onClick: t, onSelect: r, children: i, ...n }, o) => {
|
|
208
242
|
const {
|
|
209
|
-
searchSettings: { shouldOpenLinksInNewTab:
|
|
210
|
-
} =
|
|
211
|
-
|
|
243
|
+
searchSettings: { shouldOpenLinksInNewTab: c }
|
|
244
|
+
} = y(), { logEvent: d } = O(), { query: p, transitionsDisabled: S, selectedItem: m } = l(), b = B(null), E = A(o, b), L = () => {
|
|
245
|
+
b.current?.click();
|
|
212
246
|
}, w = () => {
|
|
213
247
|
d({
|
|
214
248
|
eventName: "search_result_clicked",
|
|
215
249
|
properties: {
|
|
216
|
-
searchQuery:
|
|
217
|
-
title:
|
|
218
|
-
url:
|
|
250
|
+
searchQuery: p,
|
|
251
|
+
title: e.title,
|
|
252
|
+
url: e.url
|
|
219
253
|
}
|
|
220
254
|
});
|
|
221
|
-
},
|
|
222
|
-
return /* @__PURE__ */ a(
|
|
223
|
-
|
|
255
|
+
}, k = c || !!e.shouldOpenInNewTab, x = m === e.id, D = x || (m === "NONE" || m === C);
|
|
256
|
+
return /* @__PURE__ */ a(G, { source: { ...e, isExternal: k }, children: /* @__PURE__ */ a(
|
|
257
|
+
le,
|
|
224
258
|
{
|
|
225
|
-
ref:
|
|
226
|
-
value:
|
|
227
|
-
"data-type":
|
|
228
|
-
"data-breadcrumbs": !!
|
|
229
|
-
"data-disable-transitions": u(
|
|
230
|
-
onSelect: g(r,
|
|
231
|
-
onClick: g(
|
|
259
|
+
ref: E,
|
|
260
|
+
value: e.id,
|
|
261
|
+
"data-type": e.type,
|
|
262
|
+
"data-breadcrumbs": !!e.breadcrumbs?.length,
|
|
263
|
+
"data-disable-transitions": u(S),
|
|
264
|
+
onSelect: g(r, L),
|
|
265
|
+
onClick: g(t, w),
|
|
266
|
+
"data-selected": u(x),
|
|
267
|
+
tabIndex: D ? 0 : -1,
|
|
232
268
|
...n,
|
|
233
269
|
children: /* @__PURE__ */ a(
|
|
234
|
-
|
|
270
|
+
$,
|
|
235
271
|
{
|
|
236
|
-
href:
|
|
237
|
-
isExternal:
|
|
238
|
-
appendToUrl:
|
|
239
|
-
children: i
|
|
272
|
+
href: e.url,
|
|
273
|
+
isExternal: k,
|
|
274
|
+
appendToUrl: e.appendToUrl,
|
|
275
|
+
children: i,
|
|
276
|
+
id: `aiSearchResults__Item-${e.id}`
|
|
240
277
|
}
|
|
241
278
|
)
|
|
242
279
|
}
|
|
243
280
|
) });
|
|
244
|
-
}),
|
|
281
|
+
}), de = s("div", {
|
|
245
282
|
_id: "aiSearchResults__ItemBreadcrumbs"
|
|
246
|
-
}),
|
|
247
|
-
const { source:
|
|
248
|
-
if (!
|
|
249
|
-
const { children: i, ...n } =
|
|
250
|
-
return /* @__PURE__ */ a(
|
|
251
|
-
|
|
283
|
+
}), lt = (e) => {
|
|
284
|
+
const { source: t } = h(), { tab: r } = l();
|
|
285
|
+
if (!t.breadcrumbs?.length) return null;
|
|
286
|
+
const { children: i, ...n } = e, c = t.tabs?.find((d) => typeof d != "string" && d[0] === r)?.[1]?.breadcrumbs ?? t.breadcrumbs ?? [];
|
|
287
|
+
return /* @__PURE__ */ a(
|
|
288
|
+
de,
|
|
289
|
+
{
|
|
290
|
+
"aria-hidden": "true",
|
|
291
|
+
children: v(i, c),
|
|
292
|
+
...n
|
|
293
|
+
}
|
|
294
|
+
);
|
|
295
|
+
}, dt = s(P, {
|
|
252
296
|
_id: "aiSearchResults__ItemBreadcrumbIcon",
|
|
253
297
|
iconKey: "breadcrumbSeparator"
|
|
254
|
-
}),
|
|
298
|
+
}), ue = s(N, {
|
|
255
299
|
_id: "aiSearchResults__ItemIcon"
|
|
256
|
-
}),
|
|
257
|
-
const { source:
|
|
258
|
-
return /* @__PURE__ */ a(
|
|
259
|
-
},
|
|
300
|
+
}), ut = (e) => {
|
|
301
|
+
const { source: t } = h();
|
|
302
|
+
return /* @__PURE__ */ a(ue, { iconSettings: t.icon, "data-type": t.type, ...e });
|
|
303
|
+
}, me = s("span", {
|
|
260
304
|
_id: "aiSearchResults__ItemTitle"
|
|
261
|
-
}),
|
|
262
|
-
const { source:
|
|
263
|
-
return /* @__PURE__ */ a(
|
|
264
|
-
},
|
|
305
|
+
}), mt = (e) => {
|
|
306
|
+
const { source: t } = h();
|
|
307
|
+
return /* @__PURE__ */ a(me, { "data-type": t.type, children: t.title, ...e });
|
|
308
|
+
}, he = s("span", {
|
|
265
309
|
_id: "aiSearchResults__ItemTag"
|
|
266
|
-
}),
|
|
267
|
-
const { source:
|
|
268
|
-
return /* @__PURE__ */ a(
|
|
269
|
-
},
|
|
310
|
+
}), ht = (e) => {
|
|
311
|
+
const { source: t } = h();
|
|
312
|
+
return /* @__PURE__ */ a(he, { "data-type": t.type, children: t.tag, ...e });
|
|
313
|
+
}, pe = s("span", {
|
|
270
314
|
_id: "aiSearchResults__ItemDescription"
|
|
271
|
-
}),
|
|
272
|
-
const { source:
|
|
315
|
+
}), pt = (e) => {
|
|
316
|
+
const { source: t } = h(), { children: r, ...i } = e, n = U(() => t.description ? K(t.description) : [], [t.description]);
|
|
273
317
|
return n.length ? /* @__PURE__ */ a(
|
|
274
|
-
|
|
318
|
+
pe,
|
|
275
319
|
{
|
|
276
|
-
"data-type":
|
|
277
|
-
|
|
320
|
+
"data-type": t.type,
|
|
321
|
+
"aria-hidden": "true",
|
|
322
|
+
children: v(r, n),
|
|
278
323
|
...i
|
|
279
324
|
}
|
|
280
325
|
) : null;
|
|
281
|
-
},
|
|
326
|
+
}, be = s("span", {
|
|
282
327
|
_id: "aiSearchResults__ItemDescriptionPart"
|
|
283
|
-
}),
|
|
284
|
-
const { part:
|
|
285
|
-
return typeof
|
|
286
|
-
|
|
328
|
+
}), bt = (e) => {
|
|
329
|
+
const { part: t, ...r } = e, { source: i } = h();
|
|
330
|
+
return typeof t == "string" ? t : /* @__PURE__ */ a(
|
|
331
|
+
be,
|
|
287
332
|
{
|
|
288
333
|
"data-type": i.type,
|
|
289
|
-
children:
|
|
290
|
-
"data-highlighted": u(
|
|
334
|
+
children: t.content,
|
|
335
|
+
"data-highlighted": u(t.highlighted),
|
|
291
336
|
...r
|
|
292
337
|
}
|
|
293
338
|
);
|
|
294
|
-
},
|
|
339
|
+
}, Ie = s(P, {
|
|
295
340
|
_id: "aiSearchResults__ItemIndicator"
|
|
296
|
-
}),
|
|
297
|
-
const { source:
|
|
341
|
+
}), It = (e) => {
|
|
342
|
+
const { source: t } = h();
|
|
298
343
|
return /* @__PURE__ */ a(
|
|
299
|
-
|
|
344
|
+
Ie,
|
|
300
345
|
{
|
|
301
|
-
iconKey:
|
|
302
|
-
...
|
|
346
|
+
iconKey: t.isExternal ? "openLinkInNewTab" : "openLinkInSameTab",
|
|
347
|
+
...e
|
|
303
348
|
}
|
|
304
349
|
);
|
|
305
|
-
},
|
|
350
|
+
}, Se = s("div", {
|
|
306
351
|
_id: "aiSearchFooter"
|
|
307
|
-
}),
|
|
308
|
-
const { resultsList:
|
|
309
|
-
return /* @__PURE__ */ a(
|
|
310
|
-
},
|
|
352
|
+
}), St = (e) => {
|
|
353
|
+
const { resultsList: t } = l();
|
|
354
|
+
return /* @__PURE__ */ a(Se, { "data-has-results": u(t.length > 0), ...e });
|
|
355
|
+
}, gt = s("div", {
|
|
311
356
|
_id: "aiSearchTagline__Container"
|
|
312
|
-
}),
|
|
357
|
+
}), _t = s("span", {
|
|
313
358
|
_id: "aiSearchTagline__Text",
|
|
314
359
|
children: "Powered by"
|
|
315
|
-
}),
|
|
360
|
+
}), Rt = s(M, {
|
|
316
361
|
_id: "aiSearchTagline__Logo"
|
|
317
|
-
}),
|
|
362
|
+
}), vt = s("a", {
|
|
318
363
|
_id: "aiSearchTagline__BrandName",
|
|
319
364
|
children: "inkeep",
|
|
320
365
|
href: "https://www.inkeep.com/",
|
|
@@ -322,69 +367,71 @@ const G = s("div", {
|
|
|
322
367
|
rel: "noopener noreferrer"
|
|
323
368
|
});
|
|
324
369
|
export {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
We as
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
He as
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
lt as
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
370
|
+
C as ASK_AI_TRIGGER_VALUE,
|
|
371
|
+
je as AskAITrigger,
|
|
372
|
+
Qe as AskAITriggerIcon,
|
|
373
|
+
Je as AskAITriggerIndicator,
|
|
374
|
+
ze as AskAITriggerLabel,
|
|
375
|
+
Ge as Content,
|
|
376
|
+
We as EmbeddedSearchInputIcon,
|
|
377
|
+
je as EmbeddedSearchPrimitiveAskAITrigger,
|
|
378
|
+
Qe as EmbeddedSearchPrimitiveAskAITriggerIcon,
|
|
379
|
+
Je as EmbeddedSearchPrimitiveAskAITriggerIndicator,
|
|
380
|
+
ze as EmbeddedSearchPrimitiveAskAITriggerLabel,
|
|
381
|
+
Ge as EmbeddedSearchPrimitiveContent,
|
|
382
|
+
St as EmbeddedSearchPrimitiveFooter,
|
|
383
|
+
qe as EmbeddedSearchPrimitiveInput,
|
|
384
|
+
Ke as EmbeddedSearchPrimitiveInputGroup,
|
|
385
|
+
He as EmbeddedSearchPrimitiveLoading,
|
|
386
|
+
Xe as EmbeddedSearchPrimitiveResults,
|
|
387
|
+
Ze as EmbeddedSearchPrimitiveResultsEmpty,
|
|
388
|
+
ct as EmbeddedSearchPrimitiveResultsItem,
|
|
389
|
+
lt as EmbeddedSearchPrimitiveResultsItemBreadcrumbs,
|
|
390
|
+
pt as EmbeddedSearchPrimitiveResultsItemDescription,
|
|
391
|
+
bt as EmbeddedSearchPrimitiveResultsItemDescriptionPart,
|
|
392
|
+
ut as EmbeddedSearchPrimitiveResultsItemIcon,
|
|
393
|
+
It as EmbeddedSearchPrimitiveResultsItemIndicator,
|
|
394
|
+
ht as EmbeddedSearchPrimitiveResultsItemTag,
|
|
395
|
+
mt as EmbeddedSearchPrimitiveResultsItemTitle,
|
|
396
|
+
ot as EmbeddedSearchPrimitiveResultsList,
|
|
397
|
+
Ye as EmbeddedSearchPrimitiveResultsLoading,
|
|
398
|
+
rt as EmbeddedSearchPrimitiveResultsScrollArea,
|
|
399
|
+
st as EmbeddedSearchPrimitiveResultsScrollAreaViewport,
|
|
400
|
+
tt as EmbeddedSearchPrimitiveResultsTab,
|
|
401
|
+
et as EmbeddedSearchPrimitiveResultsTabList,
|
|
402
|
+
$e as EmbeddedSearchPrimitiveRoot,
|
|
403
|
+
Oe as EmbeddedSearchPrimitiveWrapper,
|
|
404
|
+
St as Footer,
|
|
405
|
+
qe as Input,
|
|
406
|
+
Ke as InputGroup,
|
|
407
|
+
We as InputIcon,
|
|
408
|
+
He as Loading,
|
|
409
|
+
J as PrimitiveContent,
|
|
410
|
+
Tt as Provider,
|
|
411
|
+
Xe as Results,
|
|
412
|
+
Ze as ResultsEmpty,
|
|
413
|
+
ct as ResultsItem,
|
|
414
|
+
dt as ResultsItemBreadcrumbIcon,
|
|
415
|
+
lt as ResultsItemBreadcrumbs,
|
|
416
|
+
pt as ResultsItemDescription,
|
|
417
|
+
bt as ResultsItemDescriptionPart,
|
|
418
|
+
ut as ResultsItemIcon,
|
|
419
|
+
It as ResultsItemIndicator,
|
|
420
|
+
ht as ResultsItemTag,
|
|
421
|
+
mt as ResultsItemTitle,
|
|
422
|
+
ot as ResultsList,
|
|
423
|
+
Ye as ResultsLoading,
|
|
424
|
+
rt as ResultsScrollArea,
|
|
425
|
+
nt as ResultsScrollAreaCorner,
|
|
426
|
+
it as ResultsScrollAreaScrollbar,
|
|
427
|
+
at as ResultsScrollAreaThumb,
|
|
428
|
+
st as ResultsScrollAreaViewport,
|
|
429
|
+
tt as ResultsTab,
|
|
430
|
+
et as ResultsTabList,
|
|
431
|
+
$e as Root,
|
|
432
|
+
vt as TaglineBrandName,
|
|
433
|
+
gt as TaglineContainer,
|
|
434
|
+
Rt as TaglineLogo,
|
|
435
|
+
_t as TaglineText,
|
|
436
|
+
Oe as Wrapper
|
|
390
437
|
};
|