@flamingo-stack/openframe-frontend-core 0.0.510 → 0.0.512-1640.4207.1

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 (210) hide show
  1. package/dist/{chunk-J2JUAS4C.cjs → chunk-24FYTTPB.cjs} +11 -11
  2. package/dist/{chunk-J2JUAS4C.cjs.map → chunk-24FYTTPB.cjs.map} +1 -1
  3. package/dist/{chunk-GE3JUTW2.js → chunk-27OKD7ZV.js} +44 -14
  4. package/dist/chunk-27OKD7ZV.js.map +1 -0
  5. package/dist/{chunk-SRYV4H3M.js → chunk-2SSVGMTE.js} +3 -3
  6. package/dist/{chunk-2AASLY6D.js → chunk-3KAZSJ2I.js} +3 -3
  7. package/dist/{chunk-Q4K3TGNP.cjs → chunk-3NECEXDF.cjs} +74 -44
  8. package/dist/chunk-3NECEXDF.cjs.map +1 -0
  9. package/dist/{chunk-5CDPRCPS.cjs → chunk-44ML4VMJ.cjs} +23 -23
  10. package/dist/{chunk-5CDPRCPS.cjs.map → chunk-44ML4VMJ.cjs.map} +1 -1
  11. package/dist/{chunk-WSAPKKDU.cjs → chunk-4NML2ZGN.cjs} +9 -9
  12. package/dist/{chunk-WSAPKKDU.cjs.map → chunk-4NML2ZGN.cjs.map} +1 -1
  13. package/dist/{chunk-SYZFFRVD.cjs → chunk-5BAGE7AI.cjs} +13 -13
  14. package/dist/{chunk-SYZFFRVD.cjs.map → chunk-5BAGE7AI.cjs.map} +1 -1
  15. package/dist/{chunk-HX4CJYXL.js → chunk-5MC7ZKRX.js} +10 -10
  16. package/dist/{chunk-RHQ7BJKK.cjs → chunk-6I36GENY.cjs} +73 -73
  17. package/dist/{chunk-RHQ7BJKK.cjs.map → chunk-6I36GENY.cjs.map} +1 -1
  18. package/dist/{chunk-6FIDTXYC.js → chunk-7AQSXQEL.js} +3 -3
  19. package/dist/{chunk-EJ3EBYNV.cjs → chunk-AF2PYDNF.cjs} +32 -32
  20. package/dist/{chunk-EJ3EBYNV.cjs.map → chunk-AF2PYDNF.cjs.map} +1 -1
  21. package/dist/{chunk-2RLI5XVI.cjs → chunk-B2PCKLRF.cjs} +16 -16
  22. package/dist/{chunk-2RLI5XVI.cjs.map → chunk-B2PCKLRF.cjs.map} +1 -1
  23. package/dist/{chunk-Z35QWWJH.cjs → chunk-BQFMSIXM.cjs} +34 -34
  24. package/dist/{chunk-Z35QWWJH.cjs.map → chunk-BQFMSIXM.cjs.map} +1 -1
  25. package/dist/{chunk-6TL5XIAW.cjs → chunk-CS2MLJXE.cjs} +119 -119
  26. package/dist/{chunk-6TL5XIAW.cjs.map → chunk-CS2MLJXE.cjs.map} +1 -1
  27. package/dist/{chunk-JMBIGH4H.cjs → chunk-DON2EEFT.cjs} +83 -83
  28. package/dist/{chunk-JMBIGH4H.cjs.map → chunk-DON2EEFT.cjs.map} +1 -1
  29. package/dist/{chunk-RJ3D3PE2.cjs → chunk-DZR4XHZH.cjs} +9 -9
  30. package/dist/{chunk-RJ3D3PE2.cjs.map → chunk-DZR4XHZH.cjs.map} +1 -1
  31. package/dist/{chunk-UWPT23SA.js → chunk-EFTTERZ5.js} +3 -3
  32. package/dist/{chunk-BTUHMCYW.js → chunk-FS3YSNSU.js} +193 -6
  33. package/dist/chunk-FS3YSNSU.js.map +1 -0
  34. package/dist/{chunk-7VUKIWF6.cjs → chunk-HIV2GIFP.cjs} +3 -3
  35. package/dist/{chunk-7VUKIWF6.cjs.map → chunk-HIV2GIFP.cjs.map} +1 -1
  36. package/dist/{chunk-5AZZQQYS.cjs → chunk-HKRLXUU6.cjs} +40 -40
  37. package/dist/{chunk-5AZZQQYS.cjs.map → chunk-HKRLXUU6.cjs.map} +1 -1
  38. package/dist/{chunk-WNOGR5AA.js → chunk-IG3PRDHZ.js} +3 -3
  39. package/dist/{chunk-R4HKB3YD.cjs → chunk-IIPBTWQR.cjs} +22 -22
  40. package/dist/{chunk-R4HKB3YD.cjs.map → chunk-IIPBTWQR.cjs.map} +1 -1
  41. package/dist/{chunk-XJVRAKEX.cjs → chunk-K6E2VQ4W.cjs} +56 -33
  42. package/dist/chunk-K6E2VQ4W.cjs.map +1 -0
  43. package/dist/{chunk-A62C4C4V.cjs → chunk-KI4EGKNV.cjs} +3 -2
  44. package/dist/chunk-KI4EGKNV.cjs.map +1 -0
  45. package/dist/{chunk-RB2EW6IZ.cjs → chunk-LCWCUFJJ.cjs} +3351 -3173
  46. package/dist/chunk-LCWCUFJJ.cjs.map +1 -0
  47. package/dist/{chunk-OB7YDOTK.cjs → chunk-NJADHL2G.cjs} +8 -8
  48. package/dist/{chunk-OB7YDOTK.cjs.map → chunk-NJADHL2G.cjs.map} +1 -1
  49. package/dist/{chunk-53JKCFFE.cjs → chunk-O37MV2JA.cjs} +12 -12
  50. package/dist/{chunk-53JKCFFE.cjs.map → chunk-O37MV2JA.cjs.map} +1 -1
  51. package/dist/{chunk-EYTXD62B.cjs → chunk-OGVIGAMZ.cjs} +232 -45
  52. package/dist/chunk-OGVIGAMZ.cjs.map +1 -0
  53. package/dist/{chunk-JOCFPAS6.js → chunk-OY6M4LX4.js} +6 -6
  54. package/dist/{chunk-HCZJZMU7.js → chunk-P5KFFOLJ.js} +3 -3
  55. package/dist/{chunk-FEGEC6FY.js → chunk-SQJXVADG.js} +5292 -5114
  56. package/dist/chunk-SQJXVADG.js.map +1 -0
  57. package/dist/{chunk-M4MKQKFF.js → chunk-UBTOOE55.js} +2 -2
  58. package/dist/{chunk-CTMLY2GN.js → chunk-UGOCHX36.js} +5 -5
  59. package/dist/{chunk-VDJF4ZAU.js → chunk-UGR7V2ZG.js} +3 -3
  60. package/dist/{chunk-TBGSQTJK.js → chunk-W2HEWV34.js} +6 -6
  61. package/dist/{chunk-LBOWSKGM.js → chunk-XE3OSQNH.js} +5 -5
  62. package/dist/{chunk-MLGGF24T.js → chunk-XRGYYEIX.js} +8 -8
  63. package/dist/{chunk-SZMA65OW.js → chunk-XURRAFIB.js} +2 -2
  64. package/dist/{chunk-DBR5JLX3.js → chunk-YNBRXJWC.js} +46 -23
  65. package/dist/chunk-YNBRXJWC.js.map +1 -0
  66. package/dist/{chunk-RG2WRBPT.js → chunk-Z3ADCYC5.js} +2 -2
  67. package/dist/{chunk-4GPWLGKT.js → chunk-ZRILYK5U.js} +2 -1
  68. package/dist/components/calendar.cjs +4 -4
  69. package/dist/components/calendar.js +3 -3
  70. package/dist/components/case-studies/index.cjs +17 -17
  71. package/dist/components/case-studies/index.js +7 -7
  72. package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
  73. package/dist/components/chat/chat-message-list.d.ts.map +1 -1
  74. package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
  75. package/dist/components/chat/hooks/use-chat.d.ts.map +1 -1
  76. package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts.map +1 -1
  77. package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
  78. package/dist/components/chat/index.cjs +13 -7
  79. package/dist/components/chat/index.cjs.map +1 -1
  80. package/dist/components/chat/index.js +12 -6
  81. package/dist/components/chat/remark-mention-chips.d.ts +5 -2
  82. package/dist/components/chat/remark-mention-chips.d.ts.map +1 -1
  83. package/dist/components/chat/utils/discuss-ref-prompt.d.ts +48 -0
  84. package/dist/components/chat/utils/discuss-ref-prompt.d.ts.map +1 -0
  85. package/dist/components/chat/utils/index.d.ts +2 -0
  86. package/dist/components/chat/utils/index.d.ts.map +1 -1
  87. package/dist/components/chat/utils/resolve-fetched-card-href.d.ts +63 -0
  88. package/dist/components/chat/utils/resolve-fetched-card-href.d.ts.map +1 -0
  89. package/dist/components/chat/utils/source-row-cta.d.ts.map +1 -1
  90. package/dist/components/contact/index.cjs +8 -8
  91. package/dist/components/contact/index.js +7 -7
  92. package/dist/components/docs/index.cjs +10 -10
  93. package/dist/components/docs/index.js +9 -9
  94. package/dist/components/embeds/index.cjs +8 -8
  95. package/dist/components/embeds/index.js +7 -7
  96. package/dist/components/faq/index.cjs +9 -9
  97. package/dist/components/faq/index.js +8 -8
  98. package/dist/components/features/index.cjs +7 -7
  99. package/dist/components/features/index.js +6 -6
  100. package/dist/components/help-center-pages/index.cjs +28 -28
  101. package/dist/components/help-center-pages/index.js +19 -19
  102. package/dist/components/icons/index.cjs +3 -3
  103. package/dist/components/icons/index.js +2 -2
  104. package/dist/components/index.cjs +253 -247
  105. package/dist/components/index.cjs.map +1 -1
  106. package/dist/components/index.js +23 -17
  107. package/dist/components/index.js.map +1 -1
  108. package/dist/components/meeting-scheduler/index.cjs +92 -92
  109. package/dist/components/meeting-scheduler/index.js +9 -9
  110. package/dist/components/navigation/index.cjs +7 -7
  111. package/dist/components/navigation/index.js +6 -6
  112. package/dist/components/onboarding-guides/index.cjs +11 -11
  113. package/dist/components/onboarding-guides/index.js +10 -10
  114. package/dist/components/related-content/index.cjs +9 -9
  115. package/dist/components/related-content/index.js +8 -8
  116. package/dist/components/shared/doc-search/resolve-search-result-action.d.ts +11 -3
  117. package/dist/components/shared/doc-search/resolve-search-result-action.d.ts.map +1 -1
  118. package/dist/components/shared/doc-search/use-doc-search.d.ts +7 -0
  119. package/dist/components/shared/doc-search/use-doc-search.d.ts.map +1 -1
  120. package/dist/components/tickets/index.cjs +11 -11
  121. package/dist/components/tickets/index.js +10 -10
  122. package/dist/components/ui/actions-menu.d.ts.map +1 -1
  123. package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
  124. package/dist/components/ui/file-manager/index.cjs +70 -70
  125. package/dist/components/ui/file-manager/index.js +3 -3
  126. package/dist/components/ui/index.cjs +13 -7
  127. package/dist/components/ui/index.cjs.map +1 -1
  128. package/dist/components/ui/index.js +12 -6
  129. package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
  130. package/dist/components/ui/overlay-open-registry.d.ts +50 -0
  131. package/dist/components/ui/overlay-open-registry.d.ts.map +1 -0
  132. package/dist/components/ui/portal-container.d.ts +24 -0
  133. package/dist/components/ui/portal-container.d.ts.map +1 -1
  134. package/dist/hooks/index.cjs +4 -4
  135. package/dist/hooks/index.js +3 -3
  136. package/dist/index.cjs +20 -10
  137. package/dist/index.cjs.map +1 -1
  138. package/dist/index.js +24 -14
  139. package/dist/utils/anchor-id.d.ts +32 -0
  140. package/dist/utils/anchor-id.d.ts.map +1 -0
  141. package/dist/utils/content-href.d.ts +27 -6
  142. package/dist/utils/content-href.d.ts.map +1 -1
  143. package/dist/utils/index.cjs +213 -152
  144. package/dist/utils/index.cjs.map +1 -1
  145. package/dist/utils/index.d.ts +1 -0
  146. package/dist/utils/index.d.ts.map +1 -1
  147. package/dist/utils/index.js +212 -153
  148. package/dist/utils/index.js.map +1 -1
  149. package/dist/utils/list-url.d.ts.map +1 -1
  150. package/dist/utils/same-page-hash-nav.d.ts +17 -6
  151. package/dist/utils/same-page-hash-nav.d.ts.map +1 -1
  152. package/package.json +1 -1
  153. package/src/components/chat/__tests__/remark-mention-chips.test.ts +67 -0
  154. package/src/components/chat/chat-message-enhanced.tsx +3 -2
  155. package/src/components/chat/chat-message-list.tsx +49 -5
  156. package/src/components/chat/embeddable-chat.tsx +19 -2
  157. package/src/components/chat/entity-cards/dispatch.tsx +65 -4
  158. package/src/components/chat/hooks/use-chat.ts +174 -15
  159. package/src/components/chat/hooks/use-nats-chat-adapter.ts +28 -4
  160. package/src/components/chat/hooks/use-sse-chat-adapter.ts +5 -3
  161. package/src/components/chat/remark-mention-chips.ts +6 -3
  162. package/src/components/chat/utils/__tests__/discuss-ref-prompt.test.ts +67 -0
  163. package/src/components/chat/utils/__tests__/resolve-fetched-card-href.test.ts +156 -0
  164. package/src/components/chat/utils/discuss-ref-prompt.ts +63 -0
  165. package/src/components/chat/utils/index.ts +16 -0
  166. package/src/components/chat/utils/resolve-fetched-card-href.ts +104 -0
  167. package/src/components/chat/utils/source-row-cta.ts +5 -1
  168. package/src/components/shared/doc-search/__tests__/resolve-search-result-action.test.ts +145 -0
  169. package/src/components/shared/doc-search/resolve-search-result-action.ts +46 -10
  170. package/src/components/shared/doc-search/use-doc-search.ts +50 -14
  171. package/src/components/ui/__tests__/overlay-open-registry.test.tsx +87 -0
  172. package/src/components/ui/actions-menu.tsx +65 -2
  173. package/src/components/ui/dropdown-menu.tsx +62 -12
  174. package/src/components/ui/markdown/base-components.tsx +26 -0
  175. package/src/components/ui/overlay-open-registry.tsx +99 -0
  176. package/src/components/ui/portal-container.tsx +31 -0
  177. package/src/utils/__tests__/anchor-id.test.ts +139 -0
  178. package/src/utils/__tests__/content-href.test.ts +74 -0
  179. package/src/utils/__tests__/list-url.test.ts +11 -1
  180. package/src/utils/anchor-id.ts +106 -0
  181. package/src/utils/content-href.ts +113 -13
  182. package/src/utils/index.ts +8 -0
  183. package/src/utils/list-url.ts +6 -1
  184. package/src/utils/same-page-hash-nav.ts +28 -9
  185. package/dist/chunk-A62C4C4V.cjs.map +0 -1
  186. package/dist/chunk-BTUHMCYW.js.map +0 -1
  187. package/dist/chunk-DBR5JLX3.js.map +0 -1
  188. package/dist/chunk-EYTXD62B.cjs.map +0 -1
  189. package/dist/chunk-FEGEC6FY.js.map +0 -1
  190. package/dist/chunk-GE3JUTW2.js.map +0 -1
  191. package/dist/chunk-Q4K3TGNP.cjs.map +0 -1
  192. package/dist/chunk-RB2EW6IZ.cjs.map +0 -1
  193. package/dist/chunk-XJVRAKEX.cjs.map +0 -1
  194. /package/dist/{chunk-SRYV4H3M.js.map → chunk-2SSVGMTE.js.map} +0 -0
  195. /package/dist/{chunk-2AASLY6D.js.map → chunk-3KAZSJ2I.js.map} +0 -0
  196. /package/dist/{chunk-HX4CJYXL.js.map → chunk-5MC7ZKRX.js.map} +0 -0
  197. /package/dist/{chunk-6FIDTXYC.js.map → chunk-7AQSXQEL.js.map} +0 -0
  198. /package/dist/{chunk-UWPT23SA.js.map → chunk-EFTTERZ5.js.map} +0 -0
  199. /package/dist/{chunk-WNOGR5AA.js.map → chunk-IG3PRDHZ.js.map} +0 -0
  200. /package/dist/{chunk-JOCFPAS6.js.map → chunk-OY6M4LX4.js.map} +0 -0
  201. /package/dist/{chunk-HCZJZMU7.js.map → chunk-P5KFFOLJ.js.map} +0 -0
  202. /package/dist/{chunk-M4MKQKFF.js.map → chunk-UBTOOE55.js.map} +0 -0
  203. /package/dist/{chunk-CTMLY2GN.js.map → chunk-UGOCHX36.js.map} +0 -0
  204. /package/dist/{chunk-VDJF4ZAU.js.map → chunk-UGR7V2ZG.js.map} +0 -0
  205. /package/dist/{chunk-TBGSQTJK.js.map → chunk-W2HEWV34.js.map} +0 -0
  206. /package/dist/{chunk-LBOWSKGM.js.map → chunk-XE3OSQNH.js.map} +0 -0
  207. /package/dist/{chunk-MLGGF24T.js.map → chunk-XRGYYEIX.js.map} +0 -0
  208. /package/dist/{chunk-SZMA65OW.js.map → chunk-XURRAFIB.js.map} +0 -0
  209. /package/dist/{chunk-RG2WRBPT.js.map → chunk-Z3ADCYC5.js.map} +0 -0
  210. /package/dist/{chunk-4GPWLGKT.js.map → chunk-ZRILYK5U.js.map} +0 -0
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  cn,
8
8
  init_cn
9
- } from "./chunk-4GPWLGKT.js";
9
+ } from "./chunk-ZRILYK5U.js";
10
10
  import {
11
11
  __esm
12
12
  } from "./chunk-GGWZFCYS.js";
@@ -524,4 +524,4 @@ export {
524
524
  init_split_button,
525
525
  init_button2
526
526
  };
527
- //# sourceMappingURL=chunk-M4MKQKFF.js.map
527
+ //# sourceMappingURL=chunk-UBTOOE55.js.map
@@ -12,17 +12,17 @@ import {
12
12
  SelectValue,
13
13
  Textarea,
14
14
  useChatAttachments
15
- } from "./chunk-FEGEC6FY.js";
15
+ } from "./chunk-SQJXVADG.js";
16
16
  import {
17
17
  useContactSubmission,
18
18
  useHumanitySignals
19
- } from "./chunk-BTUHMCYW.js";
19
+ } from "./chunk-FS3YSNSU.js";
20
20
  import {
21
21
  Input
22
- } from "./chunk-GE3JUTW2.js";
22
+ } from "./chunk-27OKD7ZV.js";
23
23
  import {
24
24
  Button
25
- } from "./chunk-M4MKQKFF.js";
25
+ } from "./chunk-UBTOOE55.js";
26
26
 
27
27
  // src/components/contact/contact-form.tsx
28
28
  import { useState } from "react";
@@ -374,4 +374,4 @@ function ContactForm({
374
374
  export {
375
375
  ContactForm
376
376
  };
377
- //# sourceMappingURL=chunk-CTMLY2GN.js.map
377
+ //# sourceMappingURL=chunk-UGOCHX36.js.map
@@ -4,14 +4,14 @@ import {
4
4
  formatFileSize,
5
5
  toGoogleSheetsEmbedUrl,
6
6
  toGoogleSheetsOriginalUrl
7
- } from "./chunk-FEGEC6FY.js";
7
+ } from "./chunk-SQJXVADG.js";
8
8
  import {
9
9
  AdobePdfIcon,
10
10
  GoogleSheetsIcon
11
11
  } from "./chunk-JMZH4KMJ.js";
12
12
  import {
13
13
  Button
14
- } from "./chunk-M4MKQKFF.js";
14
+ } from "./chunk-UBTOOE55.js";
15
15
 
16
16
  // src/components/embeds/pdf-viewer.tsx
17
17
  import { Download, Eye } from "lucide-react";
@@ -134,4 +134,4 @@ export {
134
134
  GoogleSheetsViewer,
135
135
  FileDownloadCard
136
136
  };
137
- //# sourceMappingURL=chunk-VDJF4ZAU.js.map
137
+ //# sourceMappingURL=chunk-UGR7V2ZG.js.map
@@ -3,11 +3,11 @@ import {
3
3
  FileDownloadCard,
4
4
  GoogleSheetsViewer,
5
5
  PdfViewer
6
- } from "./chunk-VDJF4ZAU.js";
6
+ } from "./chunk-UGR7V2ZG.js";
7
7
  import {
8
8
  DocSearchBar,
9
9
  useDocSearch
10
- } from "./chunk-DBR5JLX3.js";
10
+ } from "./chunk-YNBRXJWC.js";
11
11
  import {
12
12
  DEFAULT_FOLDER_INDEX_FILE,
13
13
  FigmaEmbed,
@@ -19,13 +19,13 @@ import {
19
19
  findDocNodeByPath,
20
20
  getDocAncestorNodeIds,
21
21
  stripFolderIndexFromPath
22
- } from "./chunk-FEGEC6FY.js";
22
+ } from "./chunk-SQJXVADG.js";
23
23
  import {
24
24
  HUB_HEADER_OFFSET_PX,
25
25
  contentFetch,
26
26
  navigateSamePageHash,
27
27
  scrollElementIntoView
28
- } from "./chunk-BTUHMCYW.js";
28
+ } from "./chunk-FS3YSNSU.js";
29
29
  import {
30
30
  init_next_navigation,
31
31
  useRouter
@@ -36,7 +36,7 @@ import {
36
36
  import {
37
37
  cn,
38
38
  init_cn
39
- } from "./chunk-4GPWLGKT.js";
39
+ } from "./chunk-ZRILYK5U.js";
40
40
 
41
41
  // src/components/docs/doc-viewer.tsx
42
42
  import { useMemo as useMemo2 } from "react";
@@ -1845,4 +1845,4 @@ export {
1845
1845
  EmbedSkeleton,
1846
1846
  DocsHubPage
1847
1847
  };
1848
- //# sourceMappingURL=chunk-TBGSQTJK.js.map
1848
+ //# sourceMappingURL=chunk-W2HEWV34.js.map
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useSelfFetch
4
- } from "./chunk-RG2WRBPT.js";
4
+ } from "./chunk-Z3ADCYC5.js";
5
5
  import {
6
6
  PageLayout,
7
7
  PageShell,
@@ -11,12 +11,12 @@ import {
11
11
  faqSectionSlug,
12
12
  parseFaqHash,
13
13
  serializeJsonLd
14
- } from "./chunk-FEGEC6FY.js";
14
+ } from "./chunk-SQJXVADG.js";
15
15
  import {
16
16
  STICKY_HEADER_OFFSET_PX,
17
17
  navigateSamePageHash,
18
18
  useScrollToHash
19
- } from "./chunk-BTUHMCYW.js";
19
+ } from "./chunk-FS3YSNSU.js";
20
20
  import {
21
21
  init_next_navigation,
22
22
  useRouter
@@ -27,7 +27,7 @@ import {
27
27
  import {
28
28
  cn,
29
29
  init_cn
30
- } from "./chunk-4GPWLGKT.js";
30
+ } from "./chunk-ZRILYK5U.js";
31
31
 
32
32
  // src/components/faq/faq-section.tsx
33
33
  import { useCallback as useCallback2, useEffect as useEffect2, useMemo, useState as useState2 } from "react";
@@ -382,4 +382,4 @@ export {
382
382
  FaqSection,
383
383
  FaqDocumentPage
384
384
  };
385
- //# sourceMappingURL=chunk-LBOWSKGM.js.map
385
+ //# sourceMappingURL=chunk-XE3OSQNH.js.map
@@ -1,18 +1,18 @@
1
1
  "use client";
2
2
  import {
3
3
  ContactForm
4
- } from "./chunk-CTMLY2GN.js";
4
+ } from "./chunk-UGOCHX36.js";
5
5
  import {
6
6
  DeliveryRow,
7
7
  DevCardRowContent,
8
8
  DevCardRowSkeletonList,
9
9
  DevSectionPage
10
- } from "./chunk-UWPT23SA.js";
10
+ } from "./chunk-EFTTERZ5.js";
11
11
  import {
12
12
  EmptyState,
13
13
  UnifiedPagination,
14
14
  init_unified_pagination
15
- } from "./chunk-WNOGR5AA.js";
15
+ } from "./chunk-IG3PRDHZ.js";
16
16
  import {
17
17
  AlertDialog,
18
18
  AlertDialogAction,
@@ -46,14 +46,14 @@ import {
46
46
  useChatAttachments,
47
47
  useChatIdentity,
48
48
  useOptionalTicketLive
49
- } from "./chunk-FEGEC6FY.js";
49
+ } from "./chunk-SQJXVADG.js";
50
50
  import {
51
51
  STICKY_HEADER_OFFSET_PX,
52
52
  embedAuthedFetch,
53
53
  scrollElementIntoView,
54
54
  toast,
55
55
  useScrollToHash
56
- } from "./chunk-BTUHMCYW.js";
56
+ } from "./chunk-FS3YSNSU.js";
57
57
  import {
58
58
  usePathname,
59
59
  useRouter,
@@ -65,11 +65,11 @@ import {
65
65
  import {
66
66
  Input,
67
67
  Skeleton
68
- } from "./chunk-GE3JUTW2.js";
68
+ } from "./chunk-27OKD7ZV.js";
69
69
  import {
70
70
  Button,
71
71
  init_button2 as init_button
72
- } from "./chunk-M4MKQKFF.js";
72
+ } from "./chunk-UBTOOE55.js";
73
73
 
74
74
  // src/components/tickets/ticket-center.tsx
75
75
  import { useCallback as useCallback4, useState as useState4 } from "react";
@@ -1938,4 +1938,4 @@ export {
1938
1938
  HelpCenterCreateForm,
1939
1939
  HelpCenterList
1940
1940
  };
1941
- //# sourceMappingURL=chunk-MLGGF24T.js.map
1941
+ //# sourceMappingURL=chunk-XRGYYEIX.js.map
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  cn,
9
9
  init_cn
10
- } from "./chunk-4GPWLGKT.js";
10
+ } from "./chunk-ZRILYK5U.js";
11
11
 
12
12
  // src/components/icons/openmsp-logo.tsx
13
13
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -4750,4 +4750,4 @@ export {
4750
4750
  CartaIcon,
4751
4751
  PilotIcon
4752
4752
  };
4753
- //# sourceMappingURL=chunk-SZMA65OW.js.map
4753
+ //# sourceMappingURL=chunk-XURRAFIB.js.map
@@ -6,11 +6,11 @@ import {
6
6
  resolveExternalNavigation,
7
7
  resolveSourceIcon,
8
8
  stripSameOriginToPath
9
- } from "./chunk-FEGEC6FY.js";
9
+ } from "./chunk-SQJXVADG.js";
10
10
  import {
11
11
  contentFetch,
12
12
  useDebounce
13
- } from "./chunk-BTUHMCYW.js";
13
+ } from "./chunk-FS3YSNSU.js";
14
14
  import {
15
15
  useRouter
16
16
  } from "./chunk-ZJJERZUA.js";
@@ -181,23 +181,36 @@ function mapDocSearchResults(docs) {
181
181
  }
182
182
 
183
183
  // src/components/shared/doc-search/resolve-search-result-action.ts
184
- function resolveSearchResultAction(result, source, runtimeMode) {
184
+ function isAbsoluteHref(href) {
185
+ return /^(?:[a-z][a-z0-9+.-]*:)?\/\//i.test(href);
186
+ }
187
+ function resolveSearchResultAction(result, source, runtimeMode, composeContentUrl) {
185
188
  const meta = result.metadata ?? {};
186
189
  const externalUrl = meta.externalUrl;
190
+ const rowId = meta.id;
191
+ const sourceRepo = meta.sourceRepo;
192
+ const documentType = meta.documentType;
187
193
  if (externalUrl) {
188
194
  const targetPlatform = meta.targetPlatform;
195
+ const composed = composeContentUrl && documentType ? composeContentUrl({
196
+ type: documentType,
197
+ identifier: rowId ?? "",
198
+ externalUrl,
199
+ targetPlatform: targetPlatform ?? null
200
+ }) : null;
201
+ const href = composed?.href || externalUrl;
202
+ if (composed && !isAbsoluteHref(href)) {
203
+ return { kind: "navigate-same-tab", href };
204
+ }
189
205
  const isNewTab = decideNewTab({
190
- href: externalUrl,
191
- targetPlatform,
206
+ href,
207
+ targetPlatform: composed ? composed.targetPlatform : targetPlatform,
192
208
  surface: "useUnifiedNav",
193
209
  runtimeMode,
194
210
  currentSource: source
195
211
  });
196
- return isNewTab ? { kind: "navigate-new-tab", href: externalUrl } : { kind: "navigate-same-tab", href: externalUrl };
212
+ return isNewTab ? { kind: "navigate-new-tab", href } : { kind: "navigate-same-tab", href };
197
213
  }
198
- const rowId = meta.id;
199
- const sourceRepo = meta.sourceRepo;
200
- const documentType = meta.documentType;
201
214
  if (rowId && sourceRepo && documentType) {
202
215
  return {
203
216
  kind: "ask-ai",
@@ -222,12 +235,14 @@ function useDocSearch(config) {
222
235
  onNavigate,
223
236
  tableIds,
224
237
  onInPageSwap,
225
- searchEndpoint
238
+ searchEndpoint,
239
+ composeContentUrl
226
240
  } = config;
227
241
  const tableIdsKey = tableIds && tableIds.length > 0 ? tableIds.join(",") : "";
228
242
  const router = useRouter();
229
243
  const runtime = useChatRuntime();
230
244
  const resolvedSearchEndpoint = searchEndpoint ?? runtime?.endpoints.docsSearchUrl ?? "/api/docs/search";
245
+ const resolvedComposeContentUrl = composeContentUrl ?? runtime?.composeContentUrl;
231
246
  const [query, setQuery] = useState("");
232
247
  const [results, setResults] = useState([]);
233
248
  const [isFetching, setIsFetching] = useState(false);
@@ -280,21 +295,12 @@ function useDocSearch(config) {
280
295
  const action = resolveSearchResultAction(
281
296
  result,
282
297
  source,
283
- runtime?.navigation.mode
298
+ runtime?.navigation.mode,
299
+ resolvedComposeContentUrl
284
300
  );
285
301
  const wantsNewTab = modifiers && (modifiers.metaKey || modifiers.ctrlKey || modifiers.shiftKey || modifiers.altKey || typeof modifiers.button === "number" && modifiers.button !== 0);
286
302
  switch (action.kind) {
287
303
  case "navigate-same-tab": {
288
- if (runtime?.navigation.mode === "embed") {
289
- setKeepOpen(true);
290
- const targetPlatform = result.metadata?.targetPlatform ?? null;
291
- resolveExternalNavigation({
292
- href: action.href,
293
- targetPlatform,
294
- runtime
295
- }).open();
296
- return;
297
- }
298
304
  if (wantsNewTab) {
299
305
  setKeepOpen(true);
300
306
  window.open(action.href, "_blank", NEW_TAB_FEATURES);
@@ -308,6 +314,15 @@ function useDocSearch(config) {
308
314
  }
309
315
  case "navigate-new-tab":
310
316
  setKeepOpen(true);
317
+ if (runtime?.navigation.mode === "embed") {
318
+ const targetPlatform = result.metadata?.targetPlatform ?? null;
319
+ resolveExternalNavigation({
320
+ href: action.href,
321
+ targetPlatform,
322
+ runtime
323
+ }).open();
324
+ return;
325
+ }
311
326
  window.open(action.href, "_blank", NEW_TAB_FEATURES);
312
327
  return;
313
328
  case "ask-ai":
@@ -324,7 +339,15 @@ function useDocSearch(config) {
324
339
  return;
325
340
  }
326
341
  },
327
- [onNavigate, source, baseRoute, router, onInPageSwap, runtime]
342
+ [
343
+ onNavigate,
344
+ source,
345
+ baseRoute,
346
+ router,
347
+ onInPageSwap,
348
+ runtime,
349
+ resolvedComposeContentUrl
350
+ ]
328
351
  );
329
352
  useEffect(() => {
330
353
  setKeepOpen(false);
@@ -347,4 +370,4 @@ export {
347
370
  resolveSearchResultAction,
348
371
  useDocSearch
349
372
  };
350
- //# sourceMappingURL=chunk-DBR5JLX3.js.map
373
+ //# sourceMappingURL=chunk-YNBRXJWC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/shared/doc-search/format-relative-path.ts","../src/components/shared/doc-search/doc-search-result-row.tsx","../src/components/shared/doc-search/doc-search-bar.tsx","../src/components/shared/doc-search/map-doc-search-results.ts","../src/components/shared/doc-search/resolve-search-result-action.ts","../src/components/shared/doc-search/use-doc-search.ts"],"sourcesContent":["/**\n * Format a full document path as a breadcrumb trail.\n * Shows parent folders only (excludes the last segment / filename).\n *\n * @example\n * formatRelativePath('openframe-oss-tenant/architecture/api-controllers.md')\n * // → 'Openframe oss tenant / Architecture'\n */\nexport function formatRelativePath(fullPath: string): string {\n if (!fullPath) return ''\n const segments = fullPath.replace(/\\.md$/, '').split('/')\n // Show only parent path (exclude the filename itself since the title already shows it)\n const parentSegments = segments.length > 1 ? segments.slice(0, -1) : segments\n return parentSegments\n .map((seg) => seg.charAt(0).toUpperCase() + seg.slice(1).replace(/-/g, ' '))\n .join(' / ')\n}\n","'use client'\n\n/**\n * Single row in the `<SearchInput>` dropdown — the standard layout\n * used by every doc-search-backed surface (company-hub data-room\n * search bar, onboarding-guide catalog search, …). Single source of\n * truth for the row appearance so search dropdowns are visually\n * identical everywhere.\n *\n * Resolves the source icon via the same `resolveSourceIcon()`\n * registry the inline chat-card refs use, so a row pointing at e.g.\n * an onboarding-guide surfaces the SAME `<GraduationCap>` glyph the\n * chat card surfaces — no cross-surface drift.\n */\n\nimport { resolveSourceIcon } from '../../chat/utils/source-row-cta'\nimport { formatRelativePath } from './format-relative-path'\n\n/**\n * Minimal result shape this row renders. Compatible with any\n * doc-search hook whose result type exposes `{ title?, path?,\n * metadata? }`. The two hub consumers (onboarding-guide catalog,\n * data-room sidebar) both satisfy this shape via their\n * `useDocSearch` hook result.\n */\nexport interface DocSearchResultRowEntry {\n title?: string\n path?: string\n metadata?: Record<string, unknown>\n}\n\nexport interface DocSearchResultRowProps {\n result: DocSearchResultRowEntry\n isHighlighted: boolean\n}\n\nexport function DocSearchResultRow({\n result,\n isHighlighted,\n}: DocSearchResultRowProps) {\n const docType = (result.metadata?.documentType as string) || undefined\n const sourceRepo = (result.metadata?.sourceRepo as string) || undefined\n const { Icon: SourceIcon, label: iconLabel } = resolveSourceIcon({\n sourceRepo,\n documentType: docType,\n })\n const isGroup = result.metadata?.isGroup as boolean | undefined\n\n return (\n <div className=\"flex items-center gap-3 w-full min-w-0\">\n <span\n className=\"flex-shrink-0 text-ods-text-secondary\"\n title={iconLabel}\n >\n <SourceIcon className=\"size-4\" />\n </span>\n <div className=\"min-w-0 flex-1\">\n <div\n className={`text-h6 truncate ${\n isHighlighted ? 'text-ods-accent' : 'text-ods-text-primary'\n }`}\n >\n {result.title || result.path}\n </div>\n {!isGroup && result.path?.includes('/') && (\n <div className=\"text-h6 text-ods-text-secondary truncate mt-0.5\">\n {formatRelativePath(result.path)}\n </div>\n )}\n </div>\n </div>\n )\n}\n","'use client'\n\n/**\n * `<DocSearchBar>` — the canonical RAG-search dropdown surface.\n *\n * Mounted by every doc-search consumer (data-room sidebar, onboarding-\n * guide catalog, and any future surface that needs typeahead against\n * `/api/docs/search`). Wraps `<SearchInput>` with the lib's standard\n * `<DocSearchResultRow>` so the dropdown looks identical everywhere.\n *\n * ## Why a presentation component, not a \"search bar that owns its\n * own hook\"\n *\n * The data-fetching hook (`useDocSearch`) lives hub-side because it\n * depends on hub-only context (`useDocNavigation`, the rag-table-\n * config registry, the hub's `decideNewTab` helper). Moving the hook\n * would cascade ~5 more file migrations into the lib.\n *\n * Instead, the hook stays hub-side and callers pass its result into\n * this component as plain props. Both consumers shrink to ~5 lines.\n */\n\nimport type { ReactNode } from 'react'\nimport { SearchInput, type SearchResult } from '../../ui/search-input'\nimport { DocSearchResultRow } from './doc-search-result-row'\n\nexport interface DocSearchBarProps {\n placeholder: string\n query: string\n onQueryChange: (value: string) => void\n /** Hook-fetched results. Reuses the lib's `<SearchInput>` `SearchResult`\n * shape directly so callers don't translate. */\n results: SearchResult[]\n isLoading: boolean\n /** Result selection handler. Mirrors `<SearchInput>` — the second\n * `modifiers` argument is preserved so cmd-click / shift-click on\n * a result row still forces new-tab behavior. Hub `useDocSearch`\n * reads these to short-circuit to `window.open()`. */\n onResultSelect: (\n result: SearchResult,\n modifiers?: {\n metaKey?: boolean\n ctrlKey?: boolean\n shiftKey?: boolean\n altKey?: boolean\n button?: number\n },\n ) => void\n /** Lets the caller's hook force the dropdown open after a recent\n * internal action (e.g. result navigation). `undefined` falls back\n * to `<SearchInput>`'s built-in focus/hover heuristics. */\n showDropdown?: boolean\n /** Defaults to 2 — matches the existing data-room and onboarding-\n * guide consumers. Override only if a surface needs different\n * typeahead semantics. */\n minQueryLength?: number\n /** Defaults to 0 — both existing consumers debounce inside the\n * hook, not the input. */\n debounceMs?: number\n className?: string\n /** Optional row-renderer override. Defaults to the lib's standard\n * `<DocSearchResultRow>` (source icon + title + path breadcrumb).\n * Override only when a surface needs custom row chrome. */\n renderResult?: (result: SearchResult, isHighlighted: boolean) => ReactNode\n}\n\nexport function DocSearchBar({\n placeholder,\n query,\n onQueryChange,\n results,\n isLoading,\n onResultSelect,\n showDropdown,\n minQueryLength = 2,\n debounceMs = 0,\n className = 'w-full',\n renderResult,\n}: DocSearchBarProps) {\n return (\n <SearchInput\n placeholder={placeholder}\n value={query}\n onChange={onQueryChange}\n results={results}\n isLoading={isLoading}\n onResultSelect={onResultSelect}\n showDropdown={showDropdown || undefined}\n debounceMs={debounceMs}\n minQueryLength={minQueryLength}\n className={className}\n renderResult={\n renderResult ??\n ((result, isHighlighted) => (\n <DocSearchResultRow result={result} isHighlighted={isHighlighted} />\n ))\n }\n />\n )\n}\n","/**\n * Map RAG `/api/docs/search` wire results into the `<DocSearchBar>`\n * dropdown's row shape, collapsing entity-table rows into grouped\n * results so the dropdown lists ONE \"Cap Table (12 records)\" row\n * instead of 12 individual rows.\n *\n * Pure transform — no telemetry, no navigation, no React deps. Lifted\n * from the hub's `hooks/use-docs.ts:mapDocSearchResults` (the hub's\n * `traceCompose` call was hub-only telemetry and is intentionally\n * dropped — callers that want logging can wrap this helper).\n */\n\nimport type { SearchResult } from '../../ui/search-input'\nimport type { DocSearchResult } from './types'\n\n/** Source repos that should be collapsed into grouped results in the search bar.\n * Only financial tables (all rows link to the same admin page).\n * Content tables (blog, webinar, podcast, etc.) stay individual since each has a unique URL. */\nconst SEARCH_GROUP_REPOS = new Set([\n 'financial-cap-table',\n 'financial-kpis',\n 'financial-pnl',\n 'financial-balance-sheet',\n 'financial-cash-flow',\n])\n\nconst ENTITY_LABELS: Record<string, string> = {\n 'financial-cap-table': 'Cap Table',\n 'financial-kpis': 'Financial KPIs',\n 'financial-pnl': 'Profit & Loss',\n 'financial-balance-sheet': 'Balance Sheets',\n 'financial-cash-flow': 'Cash Flow',\n 'blog-posts': 'Blog Posts',\n 'product-releases': 'Product Releases',\n 'case-studies': 'Case Studies',\n webinars: 'Webinars',\n events: 'Events',\n podcasts: 'Podcasts',\n}\n\nexport function mapDocSearchResults(docs: DocSearchResult[]): SearchResult[] {\n const entityGroups = new Map<string, DocSearchResult[]>()\n // Track insertion order — groups appear where the FIRST row of that\n // repo appeared in the response.\n const order: Array<\n { type: 'entity'; repo: string } | { type: 'doc'; doc: DocSearchResult }\n > = []\n const seenRepos = new Set<string>()\n\n for (const doc of docs) {\n if (doc.sourceRepo && SEARCH_GROUP_REPOS.has(doc.sourceRepo)) {\n const group = entityGroups.get(doc.sourceRepo) || []\n group.push(doc)\n entityGroups.set(doc.sourceRepo, group)\n if (!seenRepos.has(doc.sourceRepo)) {\n seenRepos.add(doc.sourceRepo)\n order.push({ type: 'entity', repo: doc.sourceRepo })\n }\n } else {\n order.push({ type: 'doc', doc })\n }\n }\n\n const results: SearchResult[] = []\n for (const entry of order) {\n if (entry.type === 'entity') {\n const rows = entityGroups.get(entry.repo)!\n const label = ENTITY_LABELS[entry.repo] || entry.repo\n results.push({\n id: `group-${entry.repo}`,\n title: `${label} (${rows.length} ${rows.length === 1 ? 'record' : 'records'})`,\n path: rows[0].path,\n type: 'file',\n metadata: {\n documentType: rows[0].documentType,\n externalUrl: rows[0].externalUrl,\n sourceRepo: entry.repo,\n id: rows[0].entityId,\n isGroup: true,\n items: rows.map((r) => ({\n name: r.name,\n externalUrl: r.externalUrl,\n id: r.entityId,\n sourceRepo: r.sourceRepo,\n documentType: r.documentType,\n })),\n },\n })\n } else {\n const doc = entry.doc\n const isNonMarkdown = doc.documentType && doc.documentType !== 'markdown'\n results.push({\n id: doc.path,\n title: doc.name,\n description: isNonMarkdown ? doc.name : doc.snippet,\n path: doc.path,\n type: doc.type,\n metadata: {\n matchType: doc.matchType,\n ...(doc.documentType ? { documentType: doc.documentType } : {}),\n ...(doc.externalUrl ? { externalUrl: doc.externalUrl } : {}),\n ...(doc.targetPlatform != null\n ? { targetPlatform: doc.targetPlatform }\n : {}),\n ...(doc.sourceRepo ? { sourceRepo: doc.sourceRepo } : {}),\n ...(doc.entityId ? { id: doc.entityId } : {}),\n },\n })\n }\n }\n\n return results\n}\n","/**\n * Resolve what should happen when the user picks a search result.\n * Returns one of five typed actions so the caller is a single switch.\n *\n * Resolution order:\n * 1. `externalUrl` present → resolve the href through the host's\n * `composeContentUrl` seam (when wired), then use `decideNewTab` to\n * choose same-tab vs new-tab against the resolved `targetPlatform`.\n * 2. Row has `id` + `sourceRepo` + `documentType` → synth an Ask-AI\n * action (entity drill-in via primary key, no URL).\n * 3. Row has only `path` → legacy navigation fallback.\n * 4. Nothing actionable → noop.\n *\n * Lifted from the hub's `hooks/use-docs.ts:resolveSearchResultAction`.\n * Pure — no React, no telemetry.\n */\n\nimport type { SearchResult } from '../../ui/search-input'\nimport type { ChatRef } from '../../chat/chat-ref.types'\nimport type { ComposeContentUrl } from '../../../utils/content-href'\nimport { decideNewTab } from '../../chat/utils/decide-new-tab'\n\n/** True for `https://…` and protocol-relative `//…`. A composed href that is\n * NOT absolute is an in-app route the host claimed via `hostedTypes` /\n * `overrides`. */\nfunction isAbsoluteHref(href: string): boolean {\n return /^(?:[a-z][a-z0-9+.-]*:)?\\/\\//i.test(href)\n}\n\nexport type SearchResultAction =\n | { kind: 'navigate-same-tab'; href: string }\n | { kind: 'navigate-new-tab'; href: string }\n | { kind: 'ask-ai'; detail: { source: string; ref: ChatRef } }\n | { kind: 'route'; path: string }\n | { kind: 'noop' }\n\nexport function resolveSearchResultAction(\n result: SearchResult,\n source: string,\n runtimeMode?: 'host' | 'embed',\n /** The host's unified content-href seam (`runtime.composeContentUrl`).\n * When wired, an entity row's RAG `externalUrl` is re-resolved through it,\n * so a type the host serves in-app (`hostedTypes`) or deep-links itself\n * (`overrides`) lands on the SAME href the catalog cards and chat cards\n * use. Omitted → the legacy verbatim-`externalUrl` behavior. */\n composeContentUrl?: ComposeContentUrl,\n): SearchResultAction {\n const meta = result.metadata ?? {}\n const externalUrl = meta.externalUrl as string | undefined\n const rowId = meta.id as string | undefined\n const sourceRepo = meta.sourceRepo as string | undefined\n const documentType = meta.documentType as string | undefined\n if (externalUrl) {\n const targetPlatform = meta.targetPlatform as string | null | undefined\n // Unified content-href seam — the same call `resolveSourceRowCTA` makes\n // for chat rows. Hosted types relativize the slug out of `externalUrl`;\n // everything else comes back verbatim, so an unwired host (or a row with\n // no `documentType`) keeps today's behavior byte-for-byte.\n const composed =\n composeContentUrl && documentType\n ? composeContentUrl({\n type: documentType,\n identifier: rowId ?? '',\n externalUrl,\n targetPlatform: targetPlatform ?? null,\n })\n : null\n const href = composed?.href || externalUrl\n // A RELATIVE composed href means the host claimed this row as in-app.\n // Short-circuit BEFORE `decideNewTab`: in embed mode that helper forces\n // new-tab unconditionally, which would fire `window.open()` on a path\n // that only resolves inside this app.\n if (composed && !isAbsoluteHref(href)) {\n return { kind: 'navigate-same-tab', href }\n }\n // Same pure helper `useNavLink` and `useUnifiedNav` call — single\n // decision rule across cards, chips, and autocomplete rows. Thread\n // the caller's `source` as `currentSource` so the platform-vs-\n // platform comparison matches the hub's pre-migration behavior.\n const isNewTab = decideNewTab({\n href,\n targetPlatform: composed ? composed.targetPlatform : targetPlatform,\n surface: 'useUnifiedNav',\n runtimeMode,\n currentSource: source,\n })\n return isNewTab\n ? { kind: 'navigate-new-tab', href }\n : { kind: 'navigate-same-tab', href }\n }\n if (rowId && sourceRepo && documentType) {\n return {\n kind: 'ask-ai',\n detail: {\n source,\n ref: { type: documentType, id: rowId, title: result.title, url: null },\n },\n }\n }\n if (result.path) {\n return { kind: 'route', path: result.path }\n }\n return { kind: 'noop' }\n}\n","'use client'\n\n/**\n * `useDocSearch` — debounced RAG-search hook against `/api/docs/search`.\n *\n * Pure fetch + navigation glue. Embedders can mount this directly\n * (any host with a reverse-proxy that exposes `/api/docs/search` will\n * work). Hub callers wire it into the lib `<DocSearchBar>` for the\n * canonical typeahead dropdown.\n *\n * ## What moved from hub to lib\n *\n * Lifted from `multi-platform-hub/hooks/use-docs.ts:useDocSearch`. Two\n * hub-only concerns are now optional injection points instead of\n * direct imports:\n *\n * - `useDocNavigation()` (hub's in-page doc-tree swap) → optional\n * `onInPageSwap?: (path: string) => boolean` config callback. When\n * present and returns true, the hook treats a same-origin result\n * click as \"handled in-page\"; when absent or returns false, the\n * hook falls back to `onNavigate(path)` (`router.push` on hub,\n * `window.location.assign` on bare embedders).\n * - `traceCompose` (hub-only telemetry) → dropped. The lib has no\n * equivalent runtime-context yet; bring it back when there is one.\n *\n * Everything else (debounce, `useChatRuntime` for embed-mode short-\n * circuit, embed-shim router, the action-resolver + result-mapper) is\n * now lib-resident.\n *\n * ## Result hrefs go through the content-href seam\n *\n * A row's href is NOT the RAG `externalUrl` verbatim any more: when the\n * host wires `runtime.composeContentUrl` (or passes `composeContentUrl`\n * here), the row is re-resolved through it — the SAME seam the catalog\n * cards and the chat entity cards use. So a host that serves onboarding\n * guides at `/help-center/onboarding-guides/<slug>` gets that path from\n * the dropdown too, instead of bouncing the user to the canonical hub\n * URL. Unwired hosts keep the verbatim-`externalUrl` behavior.\n */\n\nimport { useState, useEffect, useCallback } from 'react'\nimport { useRouter } from '../../../embed-shims'\nimport { useDebounce } from '../../../hooks/ui/use-debounce'\nimport { useChatRuntime } from '../../../contexts/chat-runtime-context'\nimport { contentFetch } from '../../../utils/embed-content-fetch'\nimport type { SearchResult } from '../../ui/search-input'\nimport {\n resolveExternalNavigation,\n stripSameOriginToPath,\n NEW_TAB_FEATURES,\n} from '../../chat/utils/chat-nav-resolution'\nimport type { ComposeContentUrl } from '../../../utils/content-href'\nimport type { DocSearchResult } from './types'\nimport { mapDocSearchResults } from './map-doc-search-results'\nimport { resolveSearchResultAction } from './resolve-search-result-action'\n\nexport interface UseDocSearchConfig {\n /** Discriminator passed to `/api/docs/search?source=` (e.g.\n * `'openframe'`). Embedders set it to whatever discriminator their\n * reverse-proxy expects. */\n source: string\n /** Base route prefix this search lives under (e.g. `'/onboarding-guides'`).\n * When a result's href starts with `${baseRoute}/`, the hook\n * attempts the optional in-page swap path before falling through\n * to a full nav. */\n baseRoute: string\n /** Imperative navigation fallback. Called when no override\n * (in-page swap, new-tab) applies. Hub callers pass\n * `(path) => router.push(path)`; embedders pass an equivalent. */\n onNavigate: (path: string) => void\n /** Optional `RagTableConfig.id` list to narrow the search to specific\n * tables (e.g. `['onboarding-guides']`). Forwarded to\n * `/api/docs/search?tableIds=…` which intersects with the source's\n * standing set. */\n tableIds?: string[]\n /** Optional in-page swap callback. When the result's href is under\n * `baseRoute` AND this callback returns true, the hook treats the\n * click as handled in-page (no router push). Hub's\n * `<DocumentationSection>` wires this to\n * `useDocNavigation().navigate(path)`. */\n onInPageSwap?: (path: string) => boolean\n /** Optional endpoint override. Defaults to `'/api/docs/search'`\n * (the hub's reverse-proxy route). Embedders with a different\n * path can override. */\n searchEndpoint?: string\n /** Optional content-href seam override. Same fall-back chain as\n * `searchEndpoint`: prop → `runtime.composeContentUrl` → none. Wired,\n * it makes a result row honor the host's `hostedTypes` / `overrides`\n * instead of navigating to the RAG's canonical hub URL — so a row\n * lands where the catalog card for the same entity lands. */\n composeContentUrl?: ComposeContentUrl\n}\n\nexport function useDocSearch(config: UseDocSearchConfig) {\n const {\n source,\n baseRoute,\n onNavigate,\n tableIds,\n onInPageSwap,\n searchEndpoint,\n composeContentUrl,\n } = config\n const tableIdsKey = tableIds && tableIds.length > 0 ? tableIds.join(',') : ''\n\n const router = useRouter()\n // Optional chat-runtime read — when present and mode='embed' the\n // search-result row click short-circuits to a new-tab open against\n // the absolutized URL. Null/host preserves today's behavior.\n // Also used as the proxy-prefix fallback for `searchEndpoint`, matching\n // how tickets resolves `findTicketUrl`.\n const runtime = useChatRuntime()\n const resolvedSearchEndpoint =\n searchEndpoint ?? runtime?.endpoints.docsSearchUrl ?? '/api/docs/search'\n // Content-href seam, same prop → runtime → none chain. Threading it into\n // `resolveSearchResultAction` is what makes the dropdown obey the host's\n // route map; without it the row navigates to the RAG's canonical hub URL\n // even when the host serves that content in-app under a different path.\n const resolvedComposeContentUrl = composeContentUrl ?? runtime?.composeContentUrl\n\n const [query, setQuery] = useState('')\n const [results, setResults] = useState<SearchResult[]>([])\n const [isFetching, setIsFetching] = useState(false)\n const debouncedQuery = useDebounce(query, 300)\n\n useEffect(() => {\n if (!debouncedQuery || debouncedQuery.trim().length < 2) {\n setResults([])\n setIsFetching(false)\n return\n }\n\n let cancelled = false\n\n async function fetchResults() {\n setIsFetching(true)\n try {\n const params = new URLSearchParams({\n q: debouncedQuery,\n source,\n limit: '10',\n })\n if (tableIdsKey) params.set('tableIds', tableIdsKey)\n\n const response = await contentFetch(`${resolvedSearchEndpoint}?${params.toString()}`)\n if (!response.ok) {\n throw new Error(`Search request failed: ${response.status}`)\n }\n\n const json = await response.json()\n\n if (!cancelled && json.success && Array.isArray(json.data)) {\n const mapped = mapDocSearchResults(json.data as DocSearchResult[])\n setResults(mapped)\n }\n } catch (error) {\n console.error('Doc search error:', error)\n if (!cancelled) {\n setResults([])\n }\n } finally {\n if (!cancelled) {\n setIsFetching(false)\n }\n }\n }\n\n fetchResults()\n\n return () => {\n cancelled = true\n }\n }, [debouncedQuery, source, tableIdsKey, resolvedSearchEndpoint])\n\n // Derived loading state — single source of truth for \"should the\n // dropdown show 'Loading...' instead of 'No results found'\":\n const isLoading =\n query.trim().length >= 2 && (query !== debouncedQuery || isFetching)\n\n // Track whether dropdown should stay open (external link opened in new tab).\n const [keepOpen, setKeepOpen] = useState(false)\n\n const handleResultSelect = useCallback(\n (\n result: SearchResult,\n modifiers?: {\n metaKey?: boolean\n ctrlKey?: boolean\n shiftKey?: boolean\n altKey?: boolean\n button?: number\n },\n ) => {\n const action = resolveSearchResultAction(\n result,\n source,\n runtime?.navigation.mode,\n resolvedComposeContentUrl,\n )\n // Modifier / non-primary mouse click → force new tab regardless of\n // same-tab/new-tab decision. The dropdown row is a `<div>`, not an\n // `<a target=\"_blank\">`, so the browser doesn't background-tab\n // natively on cmd-click. Honor it explicitly here for parity with\n // the anchor-based surfaces (cards, chips, related-content). Plain\n // Enter from the keyboard passes `modifiers === undefined`.\n const wantsNewTab =\n modifiers &&\n (modifiers.metaKey ||\n modifiers.ctrlKey ||\n modifiers.shiftKey ||\n modifiers.altKey ||\n (typeof modifiers.button === 'number' && modifiers.button !== 0))\n switch (action.kind) {\n case 'navigate-same-tab': {\n if (wantsNewTab) {\n setKeepOpen(true)\n window.open(action.href, '_blank', NEW_TAB_FEATURES)\n return\n }\n // Same-origin click:\n // 1. If the href is under the current doc-tree's baseRoute AND\n // an `onInPageSwap` callback is wired AND returns true →\n // consider in-page swap handled.\n // 2. Otherwise → embed-shim `router.push()` (soft RSC nav on\n // Next.js hosts, window.location.assign on bare hosts).\n setKeepOpen(false)\n const path =\n baseRoute && action.href.startsWith(`${baseRoute}/`)\n ? action.href.slice(baseRoute.length + 1)\n : null\n if (path && onInPageSwap?.(path)) return\n router.push(stripSameOriginToPath(action.href))\n return\n }\n case 'navigate-new-tab':\n // Cross-origin (e.g. clicking a flamingo.run release from\n // product-hub) — open in a new tab. Keep dropdown open so the\n // user can pick another result without re-searching.\n setKeepOpen(true)\n // Embed-mode short-circuit — the row was clicked while the panel is\n // hosted inside an embedding app, so absolutize against the\n // embedder-supplied content origin and honor its `openExternal`\n // override. Not the only path an embed host takes: a composed\n // RELATIVE href resolves to `navigate-same-tab` above and never\n // reaches `decideNewTab`, which is what lets an embedder keep its\n // own in-app routes in-app.\n if (runtime?.navigation.mode === 'embed') {\n const targetPlatform =\n (result.metadata?.targetPlatform as string | null | undefined) ?? null\n resolveExternalNavigation({\n href: action.href,\n targetPlatform,\n runtime,\n }).open()\n return\n }\n window.open(action.href, '_blank', NEW_TAB_FEATURES)\n return\n case 'ask-ai':\n // Row is searchable-but-not-openable (cap_table positions,\n // financial-kpi snapshots, anything backed by\n // `resolveUrl: () => null`). Dispatch a CustomEvent that\n // GlobalAskAI listens for — opens chat + drills via\n // `entityIdFilter` (primary-key only, same as inline-card Ask).\n setKeepOpen(false)\n window.dispatchEvent(\n new CustomEvent('ask-ai:open-with-ref', { detail: action.detail }),\n )\n return\n case 'route':\n // Final fallback: legacy navigation by path. Hits when a row\n // has neither URL nor pk metadata — a mapper/API regression.\n setKeepOpen(false)\n onNavigate(action.path)\n return\n case 'noop':\n return\n }\n },\n [\n onNavigate,\n source,\n baseRoute,\n router,\n onInPageSwap,\n runtime,\n resolvedComposeContentUrl,\n ],\n )\n\n // Reset keepOpen when query changes.\n useEffect(() => {\n setKeepOpen(false)\n }, [query])\n\n return {\n query,\n setQuery,\n results,\n isLoading,\n handleResultSelect,\n keepDropdownOpen: keepOpen,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAQO,SAAS,mBAAmB,UAA0B;AAC3D,MAAI,CAAC,SAAU,QAAO;AACtB,QAAM,WAAW,SAAS,QAAQ,SAAS,EAAE,EAAE,MAAM,GAAG;AAExD,QAAM,iBAAiB,SAAS,SAAS,IAAI,SAAS,MAAM,GAAG,EAAE,IAAI;AACrE,SAAO,eACJ,IAAI,CAAC,QAAQ,IAAI,OAAO,CAAC,EAAE,YAAY,IAAI,IAAI,MAAM,CAAC,EAAE,QAAQ,MAAM,GAAG,CAAC,EAC1E,KAAK,KAAK;AACf;;;ACsCQ,cAEF,YAFE;AAlBD,SAAS,mBAAmB;AAAA,EACjC;AAAA,EACA;AACF,GAA4B;AAC1B,QAAM,UAAW,OAAO,UAAU,gBAA2B;AAC7D,QAAM,aAAc,OAAO,UAAU,cAAyB;AAC9D,QAAM,EAAE,MAAM,YAAY,OAAO,UAAU,IAAI,kBAAkB;AAAA,IAC/D;AAAA,IACA,cAAc;AAAA,EAChB,CAAC;AACD,QAAM,UAAU,OAAO,UAAU;AAEjC,SACE,qBAAC,SAAI,WAAU,0CACb;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,WAAU;AAAA,QACV,OAAO;AAAA,QAEP,8BAAC,cAAW,WAAU,UAAS;AAAA;AAAA,I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js";
4
+ } from "./chunk-FS3YSNSU.js";
5
5
 
6
6
  // src/hooks/use-self-fetch.ts
7
7
  import { useEffect, useRef, useState } from "react";
@@ -78,4 +78,4 @@ function useSelfFetch(url, options) {
78
78
  export {
79
79
  useSelfFetch
80
80
  };
81
- //# sourceMappingURL=chunk-RG2WRBPT.js.map
81
+ //# sourceMappingURL=chunk-Z3ADCYC5.js.map
@@ -168,6 +168,7 @@ var init_cn = __esm({
168
168
  });
169
169
 
170
170
  export {
171
+ byKey,
171
172
  getPlatformProductionUrl,
172
173
  getAllPlatformBaseDomains,
173
174
  init_platform_domains,
@@ -175,4 +176,4 @@ export {
175
176
  getBaseUrl,
176
177
  init_cn
177
178
  };
178
- //# sourceMappingURL=chunk-4GPWLGKT.js.map
179
+ //# sourceMappingURL=chunk-ZRILYK5U.js.map
@@ -2,12 +2,12 @@
2
2
  "use client";
3
3
 
4
4
 
5
- var _chunkSYZFFRVDcjs = require('../chunk-SYZFFRVD.cjs');
6
- require('../chunk-R4HKB3YD.cjs');
5
+ var _chunk5BAGE7AIcjs = require('../chunk-5BAGE7AI.cjs');
6
+ require('../chunk-IIPBTWQR.cjs');
7
7
  require('../chunk-WBR7H6E3.cjs');
8
- require('../chunk-A62C4C4V.cjs');
8
+ require('../chunk-KI4EGKNV.cjs');
9
9
  require('../chunk-VRHGVLSL.cjs');
10
10
 
11
11
 
12
- exports.Calendar = _chunkSYZFFRVDcjs.Calendar;
12
+ exports.Calendar = _chunk5BAGE7AIcjs.Calendar;
13
13
  //# sourceMappingURL=calendar.cjs.map
@@ -2,10 +2,10 @@
2
2
  "use client";
3
3
  import {
4
4
  Calendar
5
- } from "../chunk-6FIDTXYC.js";
6
- import "../chunk-M4MKQKFF.js";
5
+ } from "../chunk-7AQSXQEL.js";
6
+ import "../chunk-UBTOOE55.js";
7
7
  import "../chunk-OHPI2HRK.js";
8
- import "../chunk-4GPWLGKT.js";
8
+ import "../chunk-ZRILYK5U.js";
9
9
  import "../chunk-GGWZFCYS.js";
10
10
  export {
11
11
  Calendar
@@ -1,30 +1,30 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _chunkZ35QWWJHcjs = require('../../chunk-Z35QWWJH.cjs');
4
+ var _chunkBQFMSIXMcjs = require('../../chunk-BQFMSIXM.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkRB2EW6IZcjs = require('../../chunk-RB2EW6IZ.cjs');
8
+ var _chunkLCWCUFJJcjs = require('../../chunk-LCWCUFJJ.cjs');
9
9
  require('../../chunk-C5RS3QLV.cjs');
10
10
  require('../../chunk-XL4V2PYG.cjs');
11
11
  require('../../chunk-BZFW3FOF.cjs');
12
- require('../../chunk-EYTXD62B.cjs');
12
+ require('../../chunk-OGVIGAMZ.cjs');
13
13
  require('../../chunk-SSJNN5BS.cjs');
14
14
 
15
15
 
16
16
 
17
17
 
18
18
 
19
- var _chunkOB7YDOTKcjs = require('../../chunk-OB7YDOTK.cjs');
19
+ var _chunkNJADHL2Gcjs = require('../../chunk-NJADHL2G.cjs');
20
20
  require('../../chunk-UTVOBFXR.cjs');
21
21
  require('../../chunk-XQFFGR6U.cjs');
22
22
  require('../../chunk-7OPWSWEJ.cjs');
23
- require('../../chunk-Q4K3TGNP.cjs');
23
+ require('../../chunk-3NECEXDF.cjs');
24
24
  require('../../chunk-WZW7C7TF.cjs');
25
- require('../../chunk-R4HKB3YD.cjs');
25
+ require('../../chunk-IIPBTWQR.cjs');
26
26
  require('../../chunk-WBR7H6E3.cjs');
27
- require('../../chunk-A62C4C4V.cjs');
27
+ require('../../chunk-KI4EGKNV.cjs');
28
28
  require('../../chunk-KQKU4VXB.cjs');
29
29
  require('../../chunk-VRHGVLSL.cjs');
30
30
 
@@ -73,38 +73,38 @@ function ShareExperienceSection({
73
73
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-h2", children: howItWorksTitle }),
74
74
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h4", children: howItWorksBody })
75
75
  ] }),
76
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkRB2EW6IZcjs.BenefitCardGrid, { columns: 4, children: [
76
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLCWCUFJJcjs.BenefitCardGrid, { columns: 4, children: [
77
77
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
78
- _chunkRB2EW6IZcjs.BenefitCard,
78
+ _chunkLCWCUFJJcjs.BenefitCard,
79
79
  {
80
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-ods-bg border border-ods-border rounded-md p-2 w-12 h-12 flex items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOB7YDOTKcjs.G2Icon, { width: 24, height: 24 }) }),
80
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-ods-bg border border-ods-border rounded-md p-2 w-12 h-12 flex items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNJADHL2Gcjs.G2Icon, { width: 24, height: 24 }) }),
81
81
  title: "G2",
82
82
  description: "g2.com",
83
83
  variant: "auth-figma"
84
84
  }
85
85
  ),
86
86
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
87
- _chunkRB2EW6IZcjs.BenefitCard,
87
+ _chunkLCWCUFJJcjs.BenefitCard,
88
88
  {
89
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-ods-bg border border-ods-border rounded-md p-2 w-12 h-12 flex items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOB7YDOTKcjs.CapterraIcon, { width: 24, height: 24 }) }),
89
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-ods-bg border border-ods-border rounded-md p-2 w-12 h-12 flex items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNJADHL2Gcjs.CapterraIcon, { width: 24, height: 24 }) }),
90
90
  title: "Capterra",
91
91
  description: "capterra.com",
92
92
  variant: "auth-figma"
93
93
  }
94
94
  ),
95
95
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
96
- _chunkRB2EW6IZcjs.BenefitCard,
96
+ _chunkLCWCUFJJcjs.BenefitCard,
97
97
  {
98
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-ods-bg border border-ods-border rounded-md p-2 w-12 h-12 flex items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOB7YDOTKcjs.TrustpilotIcon, { width: 24, height: 24 }) }),
98
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-ods-bg border border-ods-border rounded-md p-2 w-12 h-12 flex items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNJADHL2Gcjs.TrustpilotIcon, { width: 24, height: 24 }) }),
99
99
  title: "TrustPilot",
100
100
  description: "trustpilot.com",
101
101
  variant: "auth-figma"
102
102
  }
103
103
  ),
104
104
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
105
- _chunkRB2EW6IZcjs.BenefitCard,
105
+ _chunkLCWCUFJJcjs.BenefitCard,
106
106
  {
107
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-ods-bg border border-ods-border rounded-md p-2 w-12 h-12 flex items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOB7YDOTKcjs.GetAppIcon, { width: 24, height: 24 }) }),
107
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-ods-bg border border-ods-border rounded-md p-2 w-12 h-12 flex items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNJADHL2Gcjs.GetAppIcon, { width: 24, height: 24 }) }),
108
108
  title: "GetApp",
109
109
  description: "getapp.com",
110
110
  variant: "auth-figma"
@@ -112,7 +112,7 @@ function ShareExperienceSection({
112
112
  )
113
113
  ] }),
114
114
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
115
- _chunkZ35QWWJHcjs.ContactForm,
115
+ _chunkBQFMSIXMcjs.ContactForm,
116
116
  {
117
117
  ...DEFAULT_CONTACT_FORM_PROPS,
118
118
  ...contactFormProps
@@ -1,30 +1,30 @@
1
1
  "use client";
2
2
  import {
3
3
  ContactForm
4
- } from "../../chunk-CTMLY2GN.js";
4
+ } from "../../chunk-UGOCHX36.js";
5
5
  import {
6
6
  BenefitCard,
7
7
  BenefitCardGrid
8
- } from "../../chunk-FEGEC6FY.js";
8
+ } from "../../chunk-SQJXVADG.js";
9
9
  import "../../chunk-7EUIW46X.js";
10
10
  import "../../chunk-LXC6P2EO.js";
11
11
  import "../../chunk-EL5YVPD5.js";
12
- import "../../chunk-BTUHMCYW.js";
12
+ import "../../chunk-FS3YSNSU.js";
13
13
  import "../../chunk-ZJJERZUA.js";
14
14
  import {
15
15
  CapterraIcon,
16
16
  G2Icon,
17
17
  GetAppIcon,
18
18
  TrustpilotIcon
19
- } from "../../chunk-SZMA65OW.js";
19
+ } from "../../chunk-XURRAFIB.js";
20
20
  import "../../chunk-JMZH4KMJ.js";
21
21
  import "../../chunk-W72U7OU7.js";
22
22
  import "../../chunk-Y2HKHGEW.js";
23
- import "../../chunk-GE3JUTW2.js";
23
+ import "../../chunk-27OKD7ZV.js";
24
24
  import "../../chunk-6U3IUD57.js";
25
- import "../../chunk-M4MKQKFF.js";
25
+ import "../../chunk-UBTOOE55.js";
26
26
  import "../../chunk-OHPI2HRK.js";
27
- import "../../chunk-4GPWLGKT.js";
27
+ import "../../chunk-ZRILYK5U.js";
28
28
  import "../../chunk-GSONSIWG.js";
29
29
  import "../../chunk-GGWZFCYS.js";
30
30
 
@@ -1 +1 @@
1
- {"version":3,"file":"chat-message-enhanced.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-message-enhanced.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAuD,MAAM,OAAO,CAAA;AAkB3E,OAAO,KAAK,EAAkC,wBAAwB,EAAE,MAAM,SAAS,CAAA;AA+sBvF,QAAA,MAAM,2BAA2B,4FA8B/B,CAAA;AAIF,OAAO,EAAE,2BAA2B,IAAI,mBAAmB,EAAE,CAAA"}
1
+ {"version":3,"file":"chat-message-enhanced.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-message-enhanced.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAuD,MAAM,OAAO,CAAA;AAkB3E,OAAO,KAAK,EAAkC,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAgtBvF,QAAA,MAAM,2BAA2B,4FA8B/B,CAAA;AAIF,OAAO,EAAE,2BAA2B,IAAI,mBAAmB,EAAE,CAAA"}