@inkeep/cxkit-primitives 0.5.13 → 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.
Files changed (41) hide show
  1. package/dist/_virtual/index.cjs +1 -0
  2. package/dist/_virtual/index.js +4 -0
  3. package/dist/_virtual/use-sync-external-store-shim.development.cjs +1 -0
  4. package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
  5. package/dist/_virtual/use-sync-external-store-shim.production.cjs +1 -0
  6. package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
  7. package/dist/atoms/cmdk/command-score.cjs +1 -0
  8. package/dist/atoms/cmdk/command-score.d.cts +1 -0
  9. package/dist/atoms/cmdk/command-score.d.ts +1 -0
  10. package/dist/atoms/cmdk/command-score.js +46 -0
  11. package/dist/atoms/cmdk/index.cjs +1 -0
  12. package/dist/atoms/cmdk/index.d.cts +426 -0
  13. package/dist/atoms/cmdk/index.d.ts +426 -0
  14. package/dist/atoms/cmdk/index.js +510 -0
  15. package/dist/atoms/dialog.cjs +1 -0
  16. package/dist/atoms/dialog.d.cts +29 -2
  17. package/dist/atoms/dialog.d.ts +29 -2
  18. package/dist/atoms/dialog.js +216 -0
  19. package/dist/components/embedded-chat.cjs +3 -3
  20. package/dist/components/embedded-chat.d.cts +1 -1
  21. package/dist/components/embedded-chat.d.ts +1 -1
  22. package/dist/components/embedded-chat.js +1015 -1015
  23. package/dist/components/embedded-search/use-inkeep-search.cjs +1 -1
  24. package/dist/components/embedded-search/use-inkeep-search.js +1 -3
  25. package/dist/components/embedded-search.cjs +1 -1
  26. package/dist/components/embedded-search.d.cts +42 -55
  27. package/dist/components/embedded-search.d.ts +42 -55
  28. package/dist/components/embedded-search.js +289 -242
  29. package/dist/components/modal.cjs +1 -1
  30. package/dist/components/modal.d.cts +1 -1
  31. package/dist/components/modal.d.ts +1 -1
  32. package/dist/components/modal.js +26 -26
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. package/dist/providers/base-events-provider.cjs +1 -1
  40. package/dist/providers/base-events-provider.js +1 -1
  41. package/package.json +10 -5
@@ -1,320 +1,365 @@
1
1
  "use client";
2
2
  import { jsx as a } from "react/jsx-runtime";
3
- import { Command as h } from "cmdk";
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 b } from "../utils/misc.js";
6
- import { forwardRef as v, useEffect as P, useState as B, useRef as x, useMemo as N } from "react";
7
- import { useSearch as c } from "./embedded-search/search-provider.js";
8
- import { SearchProvider as It } from "./embedded-search/search-provider.js";
9
- import D from "./tagline-logo-icon.js";
10
- import { CustomIcon as I } from "../atoms/icons/custom-icon.js";
11
- import F from "react-textarea-autosize";
12
- import * as p from "@radix-ui/react-scroll-area";
13
- import * as _ from "@radix-ui/react-tabs";
14
- import { useInkeepConfig as T } from "../providers/config-provider.js";
15
- import { useSearchEvents as V } from "../providers/search-events-provider.js";
16
- import { LinkWithQueryParams as U } from "../atoms/link.js";
17
- import { SourceItemProvider as M, useSourceItem as m } from "../providers/source-item-provider.js";
18
- import { BuiltInIconRenderer as L } from "../atoms/icons/built-in-icon-renderer.js";
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 K from "../atoms/avatars/ai.js";
23
- import { useModal as y } from "./modal/modal-provider.js";
24
- import { useComposedRefs as f } from "../utils/compose-refs.js";
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
- const G = s("div", {
25
+ import { useShadow as j } from "../atoms/shadow/context.js";
26
+ const C = "__ask_ai__", Q = s("div", {
27
27
  _id: "aiSearchWrapper"
28
- }), Ne = (t) => {
29
- const { isHidden: e, hasContent: r, isMobile: i } = c(), n = y();
28
+ }), Oe = (e) => {
29
+ const { isHidden: t, hasContent: r, isMobile: i } = l(), n = F();
30
30
  return /* @__PURE__ */ a(
31
- G,
31
+ Q,
32
32
  {
33
- "data-hidden": u(e),
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
- ...t
37
+ ...e
38
38
  }
39
39
  );
40
- }, H = s(h, {
40
+ }, z = s(I, {
41
41
  _id: "aiSearchRoot"
42
- }), De = (t) => {
43
- const { isHidden: e, selectedItem: r, onSelectedItemChange: i } = c();
42
+ }), $e = (e) => {
43
+ const { isHidden: t, selectedItem: r, onSelectedItemChange: i } = l();
44
44
  return /* @__PURE__ */ a(
45
- H,
45
+ z,
46
46
  {
47
- "data-hidden": u(e),
47
+ "data-hidden": u(t),
48
48
  shouldFilter: !1,
49
49
  loop: !1,
50
50
  value: r,
51
51
  onValueChange: i,
52
- ...t
52
+ ...e
53
53
  }
54
54
  );
55
- }, Fe = s(h.List, {
55
+ }, J = s(I.List, {
56
56
  _id: "aiSearchContent"
57
- }), Ve = s("div", {
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
- }), Ue = s(I, {
69
+ }), We = s(P, {
60
70
  _id: "aiSearchInputIcon",
61
71
  iconKey: "search"
62
- }), j = s(h.Input, {
72
+ }), X = s(I.Input, {
63
73
  _id: "aiSearchInput"
64
- }), Me = v(({ onInput: t, ...e }, r) => {
65
- const { query: i, onInput: n, placeholder: o, inputRef: l, shouldAutoFocusInput: d } = c(), S = f(r, l), R = y();
66
- return P(() => {
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 && l?.current && (l.current.focus(), l.current.selectionStart = l.current.value.length);
78
+ d && c?.current && (c.current.focus(), c.current.selectionStart = c.current.value.length);
69
79
  });
70
- }, [d, l, R?.isOpen]), /* @__PURE__ */ a(
71
- j,
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(t, n),
78
- ...e,
79
- children: /* @__PURE__ */ a(F, { minRows: 1, maxLength: 1e3 })
86
+ onInput: g(e, n),
87
+ "aria-activedescendant": `aiSearchResults__Item-${p}`,
88
+ ...t
80
89
  }
81
90
  );
82
- }), Q = s(L, {
91
+ }), Y = s(N, {
83
92
  _id: "aiSearchLoading",
84
93
  iconSettings: {
85
94
  builtIn: "LuLoaderCircle"
86
95
  }
87
- }), Oe = (t) => {
88
- const { loading: e, resultsList: r } = c();
89
- return !e || r.length === 0 ? null : /* @__PURE__ */ a(Q, { ...t });
90
- }, $ = s(h.Item, {
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: "__ask_ai__"
93
- }), We = (t) => {
94
- const { setSelectedItem: e, results: r, tab: i } = c(), n = r[i]?.[0]?.id ?? "NONE";
95
- return /* @__PURE__ */ a($, { ...t, onPointerLeave: () => e(n) });
96
- }, z = s("img", {
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
- }), qe = (t) => {
99
- const { aiChatSettings: e } = T(), { aiAssistantAvatar: r } = e ?? {}, i = typeof r == "string" ? r : r?.light, n = (typeof r == "string" ? r : r?.dark) ?? i, o = q(i, n), [l, d] = B(o);
100
- return P(() => {
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(z, { asChild: !0, ...t, children: l ? (
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: l,
124
+ src: c,
108
125
  alt: "AI Avatar",
109
126
  "data-type": "image",
110
127
  onError: g(() => {
111
128
  d(null);
112
129
  }),
113
- ...t
130
+ ...e
114
131
  }
115
132
  )
116
- ) : /* @__PURE__ */ a(K, { "data-type": "icon", ...t }) });
117
- }, Ke = s("span", {
133
+ ) : /* @__PURE__ */ a(H, { "data-type": "icon", ...e }) });
134
+ }, ze = s("span", {
118
135
  _id: "aiAskAITrigger__Label"
119
- }), Ge = s(I, {
136
+ }), Je = s(P, {
120
137
  _id: "aiAskAITrigger__Indicator",
121
138
  iconKey: "openLinkInSameTab"
122
- }), J = s(_.Root, {
139
+ }), te = s(T.Root, {
123
140
  _id: "aiSearchResults"
124
- }), He = (t) => {
125
- const { tab: e, onTabChange: r, hasContent: i } = c();
141
+ }), Xe = (e) => {
142
+ const { tab: t, onTabChange: r, hasContent: i } = l();
126
143
  return /* @__PURE__ */ a(
127
- J,
144
+ te,
128
145
  {
129
- value: e,
146
+ value: t,
130
147
  onValueChange: r,
131
148
  "data-has-content": u(i),
132
- ...t
149
+ ...e
133
150
  }
134
151
  );
135
- }, X = s("div", {
152
+ }, re = s("div", {
136
153
  _id: "aiSearchResults__Loading"
137
- }), je = (t) => {
138
- const { loading: e, resultsList: r } = c();
139
- return !e || r.length > 0 ? null : /* @__PURE__ */ a(X, { ...t });
140
- }, Y = s(h.Empty, {
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
- }), Qe = (t) => {
143
- const { query: e, loading: r, results: i, tab: n } = c(), o = i[n]?.length;
144
- return r || !e || o ? null : /* @__PURE__ */ a(Y, { children: "No results found.", ...t });
145
- }, Z = s(_.List, {
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
- }), $e = (t) => {
148
- const { children: e, ...r } = t, {
164
+ }), et = (e) => {
165
+ const { children: t, ...r } = e, {
149
166
  searchSettings: { tabs: i }
150
- } = T(), { results: n, loading: o, resultsList: l } = c();
151
- if (o && l.length === 0) return null;
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(Z, { children: b(e, d), ...r });
154
- }, ee = s(_.Trigger, {
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
- }), ze = (t) => {
157
- const { tab: e, ...r } = t, { results: i } = c(), n = i[e].length;
158
- return /* @__PURE__ */ a(ee, { value: e, children: `${e} (${n})`, ...r });
159
- }, te = s(p.Root, {
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
- }), Je = (t) => {
162
- const { loading: e, resultsList: r } = c();
163
- return e && r.length === 0 ? null : /* @__PURE__ */ a(te, { ...t });
164
- }, re = s(p.Viewport, {
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
- }), Xe = v(({ children: t, ...e }, r) => {
167
- const i = W(), n = f(r, i), { tab: o } = c();
168
- return P(() => {
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
- re,
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: t })
209
+ /* @__PURE__ */ a("div", { tabIndex: -1, style: { display: "grid" }, children: e })
177
210
  ),
178
- ...e
211
+ ...t
179
212
  }
180
213
  );
181
- }), Ye = s(
182
- p.ScrollAreaScrollbar,
214
+ }), it = s(
215
+ R.ScrollAreaScrollbar,
183
216
  {
184
217
  _id: "aiSearchResults__ScrollAreaScrollbar"
185
218
  }
186
- ), Ze = s(p.ScrollAreaThumb, {
219
+ ), at = s(R.ScrollAreaThumb, {
187
220
  _id: "aiSearchResults__ScrollAreaThumb"
188
- }), et = s(p.Corner, {
221
+ }), nt = s(R.Corner, {
189
222
  _id: "aiSearchResults__ScrollAreaCorner"
190
- }), se = s(_.Content, {
223
+ }), ce = s(T.Content, {
191
224
  _id: "aiSearchResults__List"
192
- }), tt = (t) => {
193
- const { children: e, ...r } = t, { results: i, tab: n } = c(), o = i[n] ?? [];
225
+ }), ot = (e) => {
226
+ const { children: t, ...r } = e, { results: i, tab: n } = l(), o = i[n] ?? [];
194
227
  return /* @__PURE__ */ a(
195
- se,
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: b(e, o),
233
+ children: v(t, o),
234
+ tabIndex: -1,
201
235
  ...r
202
236
  }
203
237
  );
204
- }, ie = s(h.Item, {
238
+ }, le = s(I.Item, {
205
239
  _id: "aiSearchResults__Item",
206
240
  asChild: !0
207
- }), rt = v(({ item: t, onClick: e, onSelect: r, children: i, ...n }, o) => {
241
+ }), ct = _(({ item: e, onClick: t, onSelect: r, children: i, ...n }, o) => {
208
242
  const {
209
- searchSettings: { shouldOpenLinksInNewTab: l }
210
- } = T(), { logEvent: d } = V(), { query: S, transitionsDisabled: R } = c(), A = x(null), k = f(o, A), C = () => {
211
- A.current?.click();
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: S,
217
- title: t.title,
218
- url: t.url
250
+ searchQuery: p,
251
+ title: e.title,
252
+ url: e.url
219
253
  }
220
254
  });
221
- }, E = l || !!t.shouldOpenInNewTab;
222
- return /* @__PURE__ */ a(M, { source: { ...t, isExternal: E }, children: /* @__PURE__ */ a(
223
- ie,
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: k,
226
- value: t.id,
227
- "data-type": t.type,
228
- "data-breadcrumbs": !!t.breadcrumbs?.length,
229
- "data-disable-transitions": u(R),
230
- onSelect: g(r, C),
231
- onClick: g(e, w),
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
- U,
270
+ $,
235
271
  {
236
- href: t.url,
237
- isExternal: E,
238
- appendToUrl: t.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
- }), ae = s("div", {
281
+ }), de = s("div", {
245
282
  _id: "aiSearchResults__ItemBreadcrumbs"
246
- }), st = (t) => {
247
- const { source: e } = m(), { tab: r } = c();
248
- if (!e.breadcrumbs?.length) return null;
249
- const { children: i, ...n } = t, l = e.tabs?.find((d) => typeof d != "string" && d[0] === r)?.[1]?.breadcrumbs ?? e.breadcrumbs ?? [];
250
- return /* @__PURE__ */ a(ae, { children: b(i, l), ...n });
251
- }, it = s(I, {
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
- }), ne = s(L, {
298
+ }), ue = s(N, {
255
299
  _id: "aiSearchResults__ItemIcon"
256
- }), at = (t) => {
257
- const { source: e } = m();
258
- return /* @__PURE__ */ a(ne, { iconSettings: e.icon, "data-type": e.type, ...t });
259
- }, oe = s("span", {
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
- }), nt = (t) => {
262
- const { source: e } = m();
263
- return /* @__PURE__ */ a(oe, { "data-type": e.type, children: e.title, ...t });
264
- }, ce = s("span", {
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
- }), ot = (t) => {
267
- const { source: e } = m();
268
- return /* @__PURE__ */ a(ce, { "data-type": e.type, children: e.tag, ...t });
269
- }, le = s("span", {
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
- }), ct = (t) => {
272
- const { source: e } = m(), { children: r, ...i } = t, n = N(() => e.description ? O(e.description) : [], [e.description]);
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
- le,
318
+ pe,
275
319
  {
276
- "data-type": e.type,
277
- children: b(r, n),
320
+ "data-type": t.type,
321
+ "aria-hidden": "true",
322
+ children: v(r, n),
278
323
  ...i
279
324
  }
280
325
  ) : null;
281
- }, de = s("span", {
326
+ }, be = s("span", {
282
327
  _id: "aiSearchResults__ItemDescriptionPart"
283
- }), lt = (t) => {
284
- const { part: e, ...r } = t, { source: i } = m();
285
- return typeof e == "string" ? e : /* @__PURE__ */ a(
286
- de,
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: e.content,
290
- "data-highlighted": u(e.highlighted),
334
+ children: t.content,
335
+ "data-highlighted": u(t.highlighted),
291
336
  ...r
292
337
  }
293
338
  );
294
- }, ue = s(I, {
339
+ }, Ie = s(P, {
295
340
  _id: "aiSearchResults__ItemIndicator"
296
- }), dt = (t) => {
297
- const { source: e } = m();
341
+ }), It = (e) => {
342
+ const { source: t } = h();
298
343
  return /* @__PURE__ */ a(
299
- ue,
344
+ Ie,
300
345
  {
301
- iconKey: e.isExternal ? "openLinkInNewTab" : "openLinkInSameTab",
302
- ...t
346
+ iconKey: t.isExternal ? "openLinkInNewTab" : "openLinkInSameTab",
347
+ ...e
303
348
  }
304
349
  );
305
- }, me = s("div", {
350
+ }, Se = s("div", {
306
351
  _id: "aiSearchFooter"
307
- }), ut = (t) => {
308
- const { resultsList: e } = c();
309
- return /* @__PURE__ */ a(me, { "data-has-results": u(e.length > 0), ...t });
310
- }, mt = s("div", {
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
- }), ht = s("span", {
357
+ }), _t = s("span", {
313
358
  _id: "aiSearchTagline__Text",
314
359
  children: "Powered by"
315
- }), pt = s(D, {
360
+ }), Rt = s(M, {
316
361
  _id: "aiSearchTagline__Logo"
317
- }), St = s("a", {
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
- We as AskAITrigger,
326
- qe as AskAITriggerIcon,
327
- Ge as AskAITriggerIndicator,
328
- Ke as AskAITriggerLabel,
329
- Fe as Content,
330
- Ue as EmbeddedSearchInputIcon,
331
- We as EmbeddedSearchPrimitiveAskAITrigger,
332
- qe as EmbeddedSearchPrimitiveAskAITriggerIcon,
333
- Ge as EmbeddedSearchPrimitiveAskAITriggerIndicator,
334
- Ke as EmbeddedSearchPrimitiveAskAITriggerLabel,
335
- Fe as EmbeddedSearchPrimitiveContent,
336
- ut as EmbeddedSearchPrimitiveFooter,
337
- Me as EmbeddedSearchPrimitiveInput,
338
- Ve as EmbeddedSearchPrimitiveInputGroup,
339
- Oe as EmbeddedSearchPrimitiveLoading,
340
- He as EmbeddedSearchPrimitiveResults,
341
- Qe as EmbeddedSearchPrimitiveResultsEmpty,
342
- rt as EmbeddedSearchPrimitiveResultsItem,
343
- st as EmbeddedSearchPrimitiveResultsItemBreadcrumbs,
344
- ct as EmbeddedSearchPrimitiveResultsItemDescription,
345
- lt as EmbeddedSearchPrimitiveResultsItemDescriptionPart,
346
- at as EmbeddedSearchPrimitiveResultsItemIcon,
347
- dt as EmbeddedSearchPrimitiveResultsItemIndicator,
348
- ot as EmbeddedSearchPrimitiveResultsItemTag,
349
- nt as EmbeddedSearchPrimitiveResultsItemTitle,
350
- tt as EmbeddedSearchPrimitiveResultsList,
351
- je as EmbeddedSearchPrimitiveResultsLoading,
352
- Je as EmbeddedSearchPrimitiveResultsScrollArea,
353
- Xe as EmbeddedSearchPrimitiveResultsScrollAreaViewport,
354
- ze as EmbeddedSearchPrimitiveResultsTab,
355
- $e as EmbeddedSearchPrimitiveResultsTabList,
356
- De as EmbeddedSearchPrimitiveRoot,
357
- Ne as EmbeddedSearchPrimitiveWrapper,
358
- ut as Footer,
359
- Me as Input,
360
- Ve as InputGroup,
361
- Ue as InputIcon,
362
- Oe as Loading,
363
- It as Provider,
364
- He as Results,
365
- Qe as ResultsEmpty,
366
- rt as ResultsItem,
367
- it as ResultsItemBreadcrumbIcon,
368
- st as ResultsItemBreadcrumbs,
369
- ct as ResultsItemDescription,
370
- lt as ResultsItemDescriptionPart,
371
- at as ResultsItemIcon,
372
- dt as ResultsItemIndicator,
373
- ot as ResultsItemTag,
374
- nt as ResultsItemTitle,
375
- tt as ResultsList,
376
- je as ResultsLoading,
377
- Je as ResultsScrollArea,
378
- et as ResultsScrollAreaCorner,
379
- Ye as ResultsScrollAreaScrollbar,
380
- Ze as ResultsScrollAreaThumb,
381
- Xe as ResultsScrollAreaViewport,
382
- ze as ResultsTab,
383
- $e as ResultsTabList,
384
- De as Root,
385
- St as TaglineBrandName,
386
- mt as TaglineContainer,
387
- pt as TaglineLogo,
388
- ht as TaglineText,
389
- Ne as Wrapper
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
  };