@flamingo-stack/openframe-frontend-core 0.0.510 → 0.0.511

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 (208) hide show
  1. package/dist/{chunk-GE3JUTW2.js → chunk-27OKD7ZV.js} +44 -14
  2. package/dist/chunk-27OKD7ZV.js.map +1 -0
  3. package/dist/{chunk-2RLI5XVI.cjs → chunk-2CE725NN.cjs} +16 -16
  4. package/dist/{chunk-2RLI5XVI.cjs.map → chunk-2CE725NN.cjs.map} +1 -1
  5. package/dist/{chunk-Q4K3TGNP.cjs → chunk-3NECEXDF.cjs} +74 -44
  6. package/dist/chunk-3NECEXDF.cjs.map +1 -0
  7. package/dist/{chunk-RJ3D3PE2.cjs → chunk-4SG55XVA.cjs} +9 -9
  8. package/dist/{chunk-RJ3D3PE2.cjs.map → chunk-4SG55XVA.cjs.map} +1 -1
  9. package/dist/{chunk-SYZFFRVD.cjs → chunk-5BAGE7AI.cjs} +13 -13
  10. package/dist/{chunk-SYZFFRVD.cjs.map → chunk-5BAGE7AI.cjs.map} +1 -1
  11. package/dist/{chunk-6FIDTXYC.js → chunk-7AQSXQEL.js} +3 -3
  12. package/dist/{chunk-6TL5XIAW.cjs → chunk-7YV67K3I.cjs} +119 -119
  13. package/dist/{chunk-6TL5XIAW.cjs.map → chunk-7YV67K3I.cjs.map} +1 -1
  14. package/dist/{chunk-5CDPRCPS.cjs → chunk-A5YZUV6B.cjs} +23 -23
  15. package/dist/{chunk-5CDPRCPS.cjs.map → chunk-A5YZUV6B.cjs.map} +1 -1
  16. package/dist/{chunk-WSAPKKDU.cjs → chunk-C4EUXZSA.cjs} +9 -9
  17. package/dist/{chunk-WSAPKKDU.cjs.map → chunk-C4EUXZSA.cjs.map} +1 -1
  18. package/dist/{chunk-5AZZQQYS.cjs → chunk-DPLXHG7H.cjs} +40 -40
  19. package/dist/{chunk-5AZZQQYS.cjs.map → chunk-DPLXHG7H.cjs.map} +1 -1
  20. package/dist/{chunk-BTUHMCYW.js → chunk-FS3YSNSU.js} +193 -6
  21. package/dist/chunk-FS3YSNSU.js.map +1 -0
  22. package/dist/{chunk-RB2EW6IZ.cjs → chunk-GHXTF35X.cjs} +3231 -3165
  23. package/dist/chunk-GHXTF35X.cjs.map +1 -0
  24. package/dist/{chunk-7VUKIWF6.cjs → chunk-HIV2GIFP.cjs} +3 -3
  25. package/dist/{chunk-7VUKIWF6.cjs.map → chunk-HIV2GIFP.cjs.map} +1 -1
  26. package/dist/{chunk-R4HKB3YD.cjs → chunk-IIPBTWQR.cjs} +22 -22
  27. package/dist/{chunk-R4HKB3YD.cjs.map → chunk-IIPBTWQR.cjs.map} +1 -1
  28. package/dist/{chunk-JMBIGH4H.cjs → chunk-IUZMWMVX.cjs} +83 -83
  29. package/dist/{chunk-JMBIGH4H.cjs.map → chunk-IUZMWMVX.cjs.map} +1 -1
  30. package/dist/{chunk-XJVRAKEX.cjs → chunk-IXCBVJRU.cjs} +56 -33
  31. package/dist/chunk-IXCBVJRU.cjs.map +1 -0
  32. package/dist/{chunk-TBGSQTJK.js → chunk-J4VB4EHW.js} +6 -6
  33. package/dist/{chunk-UWPT23SA.js → chunk-JXMNLH7F.js} +3 -3
  34. package/dist/{chunk-A62C4C4V.cjs → chunk-KI4EGKNV.cjs} +3 -2
  35. package/dist/chunk-KI4EGKNV.cjs.map +1 -0
  36. package/dist/{chunk-RHQ7BJKK.cjs → chunk-LEWQRAZ4.cjs} +73 -73
  37. package/dist/{chunk-RHQ7BJKK.cjs.map → chunk-LEWQRAZ4.cjs.map} +1 -1
  38. package/dist/{chunk-DBR5JLX3.js → chunk-LVAJK2U2.js} +46 -23
  39. package/dist/chunk-LVAJK2U2.js.map +1 -0
  40. package/dist/{chunk-OB7YDOTK.cjs → chunk-NJADHL2G.cjs} +8 -8
  41. package/dist/{chunk-OB7YDOTK.cjs.map → chunk-NJADHL2G.cjs.map} +1 -1
  42. package/dist/{chunk-HCZJZMU7.js → chunk-NKA3O4L6.js} +3 -3
  43. package/dist/{chunk-SRYV4H3M.js → chunk-NNWSGOUP.js} +3 -3
  44. package/dist/{chunk-EYTXD62B.cjs → chunk-OGVIGAMZ.cjs} +232 -45
  45. package/dist/chunk-OGVIGAMZ.cjs.map +1 -0
  46. package/dist/{chunk-EJ3EBYNV.cjs → chunk-OMN7A6RP.cjs} +32 -32
  47. package/dist/{chunk-EJ3EBYNV.cjs.map → chunk-OMN7A6RP.cjs.map} +1 -1
  48. package/dist/{chunk-WNOGR5AA.js → chunk-PRMR6WKC.js} +3 -3
  49. package/dist/{chunk-J2JUAS4C.cjs → chunk-PXQQFRUD.cjs} +11 -11
  50. package/dist/{chunk-J2JUAS4C.cjs.map → chunk-PXQQFRUD.cjs.map} +1 -1
  51. package/dist/{chunk-VDJF4ZAU.js → chunk-RU3SCECX.js} +3 -3
  52. package/dist/{chunk-53JKCFFE.cjs → chunk-RXFBW2EJ.cjs} +12 -12
  53. package/dist/{chunk-53JKCFFE.cjs.map → chunk-RXFBW2EJ.cjs.map} +1 -1
  54. package/dist/{chunk-JOCFPAS6.js → chunk-TNZOUHHN.js} +6 -6
  55. package/dist/{chunk-HX4CJYXL.js → chunk-TR7AMHGB.js} +10 -10
  56. package/dist/{chunk-MLGGF24T.js → chunk-TYVHM67X.js} +8 -8
  57. package/dist/{chunk-Z35QWWJH.cjs → chunk-U4WPFX5K.cjs} +34 -34
  58. package/dist/{chunk-Z35QWWJH.cjs.map → chunk-U4WPFX5K.cjs.map} +1 -1
  59. package/dist/{chunk-M4MKQKFF.js → chunk-UBTOOE55.js} +2 -2
  60. package/dist/{chunk-FEGEC6FY.js → chunk-X7AJ3J42.js} +5170 -5104
  61. package/dist/chunk-X7AJ3J42.js.map +1 -0
  62. package/dist/{chunk-SZMA65OW.js → chunk-XURRAFIB.js} +2 -2
  63. package/dist/{chunk-CTMLY2GN.js → chunk-YGS7BLSN.js} +5 -5
  64. package/dist/{chunk-RG2WRBPT.js → chunk-Z3ADCYC5.js} +2 -2
  65. package/dist/{chunk-2AASLY6D.js → chunk-ZBQV7WH7.js} +3 -3
  66. package/dist/{chunk-4GPWLGKT.js → chunk-ZRILYK5U.js} +2 -1
  67. package/dist/{chunk-LBOWSKGM.js → chunk-ZSIEM7CL.js} +5 -5
  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-nats-chat-adapter.d.ts.map +1 -1
  76. package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
  77. package/dist/components/chat/index.cjs +13 -7
  78. package/dist/components/chat/index.cjs.map +1 -1
  79. package/dist/components/chat/index.js +12 -6
  80. package/dist/components/chat/remark-mention-chips.d.ts +5 -2
  81. package/dist/components/chat/remark-mention-chips.d.ts.map +1 -1
  82. package/dist/components/chat/utils/discuss-ref-prompt.d.ts +48 -0
  83. package/dist/components/chat/utils/discuss-ref-prompt.d.ts.map +1 -0
  84. package/dist/components/chat/utils/index.d.ts +2 -0
  85. package/dist/components/chat/utils/index.d.ts.map +1 -1
  86. package/dist/components/chat/utils/resolve-fetched-card-href.d.ts +63 -0
  87. package/dist/components/chat/utils/resolve-fetched-card-href.d.ts.map +1 -0
  88. package/dist/components/chat/utils/source-row-cta.d.ts.map +1 -1
  89. package/dist/components/contact/index.cjs +8 -8
  90. package/dist/components/contact/index.js +7 -7
  91. package/dist/components/docs/index.cjs +10 -10
  92. package/dist/components/docs/index.js +9 -9
  93. package/dist/components/embeds/index.cjs +8 -8
  94. package/dist/components/embeds/index.js +7 -7
  95. package/dist/components/faq/index.cjs +9 -9
  96. package/dist/components/faq/index.js +8 -8
  97. package/dist/components/features/index.cjs +7 -7
  98. package/dist/components/features/index.js +6 -6
  99. package/dist/components/help-center-pages/index.cjs +28 -28
  100. package/dist/components/help-center-pages/index.js +19 -19
  101. package/dist/components/icons/index.cjs +3 -3
  102. package/dist/components/icons/index.js +2 -2
  103. package/dist/components/index.cjs +253 -247
  104. package/dist/components/index.cjs.map +1 -1
  105. package/dist/components/index.js +23 -17
  106. package/dist/components/index.js.map +1 -1
  107. package/dist/components/meeting-scheduler/index.cjs +92 -92
  108. package/dist/components/meeting-scheduler/index.js +9 -9
  109. package/dist/components/navigation/index.cjs +7 -7
  110. package/dist/components/navigation/index.js +6 -6
  111. package/dist/components/onboarding-guides/index.cjs +11 -11
  112. package/dist/components/onboarding-guides/index.js +10 -10
  113. package/dist/components/related-content/index.cjs +9 -9
  114. package/dist/components/related-content/index.js +8 -8
  115. package/dist/components/shared/doc-search/resolve-search-result-action.d.ts +11 -3
  116. package/dist/components/shared/doc-search/resolve-search-result-action.d.ts.map +1 -1
  117. package/dist/components/shared/doc-search/use-doc-search.d.ts +7 -0
  118. package/dist/components/shared/doc-search/use-doc-search.d.ts.map +1 -1
  119. package/dist/components/tickets/index.cjs +11 -11
  120. package/dist/components/tickets/index.js +10 -10
  121. package/dist/components/ui/actions-menu.d.ts.map +1 -1
  122. package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
  123. package/dist/components/ui/file-manager/index.cjs +70 -70
  124. package/dist/components/ui/file-manager/index.js +3 -3
  125. package/dist/components/ui/index.cjs +13 -7
  126. package/dist/components/ui/index.cjs.map +1 -1
  127. package/dist/components/ui/index.js +12 -6
  128. package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
  129. package/dist/components/ui/overlay-open-registry.d.ts +50 -0
  130. package/dist/components/ui/overlay-open-registry.d.ts.map +1 -0
  131. package/dist/components/ui/portal-container.d.ts +24 -0
  132. package/dist/components/ui/portal-container.d.ts.map +1 -1
  133. package/dist/hooks/index.cjs +4 -4
  134. package/dist/hooks/index.js +3 -3
  135. package/dist/index.cjs +20 -10
  136. package/dist/index.cjs.map +1 -1
  137. package/dist/index.js +24 -14
  138. package/dist/utils/anchor-id.d.ts +32 -0
  139. package/dist/utils/anchor-id.d.ts.map +1 -0
  140. package/dist/utils/content-href.d.ts +27 -6
  141. package/dist/utils/content-href.d.ts.map +1 -1
  142. package/dist/utils/index.cjs +213 -152
  143. package/dist/utils/index.cjs.map +1 -1
  144. package/dist/utils/index.d.ts +1 -0
  145. package/dist/utils/index.d.ts.map +1 -1
  146. package/dist/utils/index.js +212 -153
  147. package/dist/utils/index.js.map +1 -1
  148. package/dist/utils/list-url.d.ts.map +1 -1
  149. package/dist/utils/same-page-hash-nav.d.ts +17 -6
  150. package/dist/utils/same-page-hash-nav.d.ts.map +1 -1
  151. package/package.json +1 -1
  152. package/src/components/chat/__tests__/remark-mention-chips.test.ts +67 -0
  153. package/src/components/chat/chat-message-enhanced.tsx +3 -2
  154. package/src/components/chat/chat-message-list.tsx +49 -5
  155. package/src/components/chat/embeddable-chat.tsx +19 -2
  156. package/src/components/chat/entity-cards/dispatch.tsx +65 -4
  157. package/src/components/chat/hooks/use-nats-chat-adapter.ts +28 -4
  158. package/src/components/chat/hooks/use-sse-chat-adapter.ts +5 -3
  159. package/src/components/chat/remark-mention-chips.ts +6 -3
  160. package/src/components/chat/utils/__tests__/discuss-ref-prompt.test.ts +67 -0
  161. package/src/components/chat/utils/__tests__/resolve-fetched-card-href.test.ts +156 -0
  162. package/src/components/chat/utils/discuss-ref-prompt.ts +63 -0
  163. package/src/components/chat/utils/index.ts +16 -0
  164. package/src/components/chat/utils/resolve-fetched-card-href.ts +104 -0
  165. package/src/components/chat/utils/source-row-cta.ts +5 -1
  166. package/src/components/shared/doc-search/__tests__/resolve-search-result-action.test.ts +145 -0
  167. package/src/components/shared/doc-search/resolve-search-result-action.ts +46 -10
  168. package/src/components/shared/doc-search/use-doc-search.ts +50 -14
  169. package/src/components/ui/__tests__/overlay-open-registry.test.tsx +87 -0
  170. package/src/components/ui/actions-menu.tsx +65 -2
  171. package/src/components/ui/dropdown-menu.tsx +62 -12
  172. package/src/components/ui/markdown/base-components.tsx +26 -0
  173. package/src/components/ui/overlay-open-registry.tsx +99 -0
  174. package/src/components/ui/portal-container.tsx +31 -0
  175. package/src/utils/__tests__/anchor-id.test.ts +139 -0
  176. package/src/utils/__tests__/content-href.test.ts +74 -0
  177. package/src/utils/__tests__/list-url.test.ts +11 -1
  178. package/src/utils/anchor-id.ts +106 -0
  179. package/src/utils/content-href.ts +113 -13
  180. package/src/utils/index.ts +8 -0
  181. package/src/utils/list-url.ts +6 -1
  182. package/src/utils/same-page-hash-nav.ts +28 -9
  183. package/dist/chunk-A62C4C4V.cjs.map +0 -1
  184. package/dist/chunk-BTUHMCYW.js.map +0 -1
  185. package/dist/chunk-DBR5JLX3.js.map +0 -1
  186. package/dist/chunk-EYTXD62B.cjs.map +0 -1
  187. package/dist/chunk-FEGEC6FY.js.map +0 -1
  188. package/dist/chunk-GE3JUTW2.js.map +0 -1
  189. package/dist/chunk-Q4K3TGNP.cjs.map +0 -1
  190. package/dist/chunk-RB2EW6IZ.cjs.map +0 -1
  191. package/dist/chunk-XJVRAKEX.cjs.map +0 -1
  192. /package/dist/{chunk-6FIDTXYC.js.map → chunk-7AQSXQEL.js.map} +0 -0
  193. /package/dist/{chunk-TBGSQTJK.js.map → chunk-J4VB4EHW.js.map} +0 -0
  194. /package/dist/{chunk-UWPT23SA.js.map → chunk-JXMNLH7F.js.map} +0 -0
  195. /package/dist/{chunk-HCZJZMU7.js.map → chunk-NKA3O4L6.js.map} +0 -0
  196. /package/dist/{chunk-SRYV4H3M.js.map → chunk-NNWSGOUP.js.map} +0 -0
  197. /package/dist/{chunk-WNOGR5AA.js.map → chunk-PRMR6WKC.js.map} +0 -0
  198. /package/dist/{chunk-VDJF4ZAU.js.map → chunk-RU3SCECX.js.map} +0 -0
  199. /package/dist/{chunk-JOCFPAS6.js.map → chunk-TNZOUHHN.js.map} +0 -0
  200. /package/dist/{chunk-HX4CJYXL.js.map → chunk-TR7AMHGB.js.map} +0 -0
  201. /package/dist/{chunk-MLGGF24T.js.map → chunk-TYVHM67X.js.map} +0 -0
  202. /package/dist/{chunk-M4MKQKFF.js.map → chunk-UBTOOE55.js.map} +0 -0
  203. /package/dist/{chunk-SZMA65OW.js.map → chunk-XURRAFIB.js.map} +0 -0
  204. /package/dist/{chunk-CTMLY2GN.js.map → chunk-YGS7BLSN.js.map} +0 -0
  205. /package/dist/{chunk-RG2WRBPT.js.map → chunk-Z3ADCYC5.js.map} +0 -0
  206. /package/dist/{chunk-2AASLY6D.js.map → chunk-ZBQV7WH7.js.map} +0 -0
  207. /package/dist/{chunk-4GPWLGKT.js.map → chunk-ZRILYK5U.js.map} +0 -0
  208. /package/dist/{chunk-LBOWSKGM.js.map → chunk-ZSIEM7CL.js.map} +0 -0
package/dist/index.js CHANGED
@@ -295,7 +295,6 @@ import {
295
295
  GuideDisplay,
296
296
  GuideModeBanner,
297
297
  GuideWelcome,
298
- HEADING_EMOJI_RE,
299
298
  HEX_PATTERN,
300
299
  Header,
301
300
  HeaderButton,
@@ -681,6 +680,7 @@ import {
681
680
  buildChatRefKey,
682
681
  buildDefaultHref,
683
682
  buildDiscussAddendum,
683
+ buildDiscussPrompt,
684
684
  buildDocumentTree,
685
685
  buildEffectiveTagSet,
686
686
  buildHeadingIdMap,
@@ -712,8 +712,6 @@ import {
712
712
  createColumnHelper,
713
713
  createDeltaBatcher,
714
714
  createEmptyTurnMeta,
715
- createFenceTracker,
716
- createHeadingIdDeduper,
717
715
  createMessageSegmentAccumulator,
718
716
  createSseSubscription,
719
717
  createUTCTimestamp,
@@ -873,7 +871,6 @@ import {
873
871
  interleave,
874
872
  isAnnouncementDismissed,
875
873
  isApprovalNotification,
876
- isBlankLine,
877
874
  isCrossOriginUrl,
878
875
  isDismissedCookieValue,
879
876
  isFigmaSlidesUrl,
@@ -927,6 +924,7 @@ import {
927
924
  programItemToStripProfile,
928
925
  ratioToCategory,
929
926
  readDismissCookie,
927
+ readFetchedCardTitle,
930
928
  readLeadingDecisionFrame,
931
929
  rehypeStripUnsafe,
932
930
  releaseStatusOptions,
@@ -939,6 +937,7 @@ import {
939
937
  resolutionToStatus,
940
938
  resolveContentFetchPath,
941
939
  resolveExternalNavigation,
940
+ resolveFetchedCardHref,
942
941
  resolveIcon,
943
942
  resolveReleaseCover,
944
943
  resolveSourceIcon,
@@ -951,20 +950,16 @@ import {
951
950
  sanitizeLandingUrl,
952
951
  sanitizeTitleForChat,
953
952
  saveDataEnabled,
954
- scanHeadings,
955
953
  schedulingAudienceKey,
956
954
  serializeJsonLd,
957
955
  shellLabels,
958
956
  shouldProxyImage,
959
- slugifyHeadingBase,
960
- slugifyHeadingText,
961
957
  sortBitesByCreatedAtDesc,
962
958
  sortTreeChildren,
963
959
  splitStreamingBlocks,
964
960
  statusBadgeVariants,
965
961
  stripChatAttachmentMarkdown,
966
962
  stripFolderIndexFromPath,
967
- stripHeadingEmojis,
968
963
  stripHtml,
969
964
  stripInlineMarkdown,
970
965
  stripSameOriginToPath,
@@ -1037,7 +1032,7 @@ import {
1037
1032
  withFirstTouchAttribution,
1038
1033
  withWalkthroughOpenParam,
1039
1034
  writeDismissCookie
1040
- } from "./chunk-FEGEC6FY.js";
1035
+ } from "./chunk-X7AJ3J42.js";
1041
1036
  import "./chunk-7EUIW46X.js";
1042
1037
  import "./chunk-LXC6P2EO.js";
1043
1038
  import "./chunk-EL5YVPD5.js";
@@ -1046,6 +1041,7 @@ import {
1046
1041
  DEFAULT_MIN_FILL_MS,
1047
1042
  ELAPSED_MS_FIELD,
1048
1043
  GraphQLIntrospector,
1044
+ HEADING_EMOJI_RE,
1049
1045
  HONEYPOT_FIELD,
1050
1046
  HUB_HEADER_OFFSET_PX,
1051
1047
  HUMANITY_SIGNAL_KEYS,
@@ -1066,12 +1062,15 @@ import {
1066
1062
  configureAuthenticatedImage,
1067
1063
  configureBatchImageFetch,
1068
1064
  consumeAccessCode,
1065
+ createFenceTracker,
1066
+ createHeadingIdDeduper,
1069
1067
  createSearchParams,
1070
1068
  dotColorByVariant,
1071
1069
  embedAuthedFetch,
1072
1070
  evaluateHumanitySignals,
1073
1071
  extractHumanitySignals,
1074
1072
  extractVariablesFromQuery,
1073
+ findAnchorElementByNormalizedId,
1075
1074
  flattenQueryVariables,
1076
1075
  getArrayParams,
1077
1076
  getDefaultColorForPlatform,
@@ -1088,11 +1087,13 @@ import {
1088
1087
  getRequiredParams,
1089
1088
  getSmallPlatformIcon,
1090
1089
  introspector,
1090
+ isBlankLine,
1091
1091
  isInputObjectType,
1092
1092
  isScalarType,
1093
1093
  mergeDefaults,
1094
1094
  mergeVariables,
1095
1095
  navigateSamePageHash,
1096
+ normalizeAnchorId,
1096
1097
  normalizeHashFragment,
1097
1098
  platformColors,
1098
1099
  platformDescriptions,
@@ -1102,6 +1103,7 @@ import {
1102
1103
  platformIcons,
1103
1104
  platformSlogans,
1104
1105
  progressColorByVariant,
1106
+ scanHeadings,
1105
1107
  scrollElementIntoView,
1106
1108
  setEmbedAuthAdapter,
1107
1109
  setEmbedProxyAuth,
@@ -1109,7 +1111,10 @@ import {
1109
1111
  shouldIncludeInUrl,
1110
1112
  showCommandApprovalToast,
1111
1113
  showToast,
1114
+ slugifyHeadingBase,
1115
+ slugifyHeadingText,
1112
1116
  splitCsvEnv,
1117
+ stripHeadingEmojis,
1113
1118
  toast,
1114
1119
  toolLabels,
1115
1120
  transformPlatformConfigsToOptions,
@@ -1162,7 +1167,7 @@ import {
1162
1167
  validateSchema,
1163
1168
  validateVariables,
1164
1169
  variablesToUrlParams
1165
- } from "./chunk-BTUHMCYW.js";
1170
+ } from "./chunk-FS3YSNSU.js";
1166
1171
  import "./chunk-ZJJERZUA.js";
1167
1172
  import {
1168
1173
  AboutIcon,
@@ -1317,7 +1322,7 @@ import {
1317
1322
  YouTubeIcon,
1318
1323
  getDeviceTypeIcon,
1319
1324
  renderSvgIcon
1320
- } from "./chunk-SZMA65OW.js";
1325
+ } from "./chunk-XURRAFIB.js";
1321
1326
  import {
1322
1327
  PLAY_ICON_PATH
1323
1328
  } from "./chunk-JMZH4KMJ.js";
@@ -1350,20 +1355,20 @@ import {
1350
1355
  SkeletonList,
1351
1356
  SkeletonNavigation,
1352
1357
  SkeletonText
1353
- } from "./chunk-GE3JUTW2.js";
1358
+ } from "./chunk-27OKD7ZV.js";
1354
1359
  import "./chunk-6U3IUD57.js";
1355
1360
  import {
1356
1361
  Button,
1357
1362
  SplitButton,
1358
1363
  buttonVariants
1359
- } from "./chunk-M4MKQKFF.js";
1364
+ } from "./chunk-UBTOOE55.js";
1360
1365
  import "./chunk-OHPI2HRK.js";
1361
1366
  import {
1362
1367
  cn,
1363
1368
  getAllPlatformBaseDomains,
1364
1369
  getBaseUrl,
1365
1370
  getPlatformProductionUrl
1366
- } from "./chunk-4GPWLGKT.js";
1371
+ } from "./chunk-ZRILYK5U.js";
1367
1372
  import "./chunk-GSONSIWG.js";
1368
1373
  import "./chunk-GGWZFCYS.js";
1369
1374
  export {
@@ -2243,6 +2248,7 @@ export {
2243
2248
  buildChatRefKey,
2244
2249
  buildDefaultHref,
2245
2250
  buildDiscussAddendum,
2251
+ buildDiscussPrompt,
2246
2252
  buildDocumentTree,
2247
2253
  buildEffectiveTagSet,
2248
2254
  buildHeadingIdMap,
@@ -2333,6 +2339,7 @@ export {
2333
2339
  fetchEmptyStateConfig,
2334
2340
  fetchPriorityProp,
2335
2341
  fetchSlashCommands,
2342
+ findAnchorElementByNormalizedId,
2336
2343
  findDocNodeByPath,
2337
2344
  flattenAssistantContent,
2338
2345
  flattenMessagePagesChronological,
@@ -2511,6 +2518,7 @@ export {
2511
2518
  newTabAnchorAttrs,
2512
2519
  noDataActionsVariants,
2513
2520
  noDataIconClasses,
2521
+ normalizeAnchorId,
2514
2522
  normalizeContent,
2515
2523
  normalizeDocPath,
2516
2524
  normalizeDomain,
@@ -2543,6 +2551,7 @@ export {
2543
2551
  progressColorByVariant,
2544
2552
  ratioToCategory,
2545
2553
  readDismissCookie,
2554
+ readFetchedCardTitle,
2546
2555
  readLeadingDecisionFrame,
2547
2556
  rehypeStripUnsafe,
2548
2557
  releaseStatusOptions,
@@ -2556,6 +2565,7 @@ export {
2556
2565
  resolutionToStatus,
2557
2566
  resolveContentFetchPath,
2558
2567
  resolveExternalNavigation,
2568
+ resolveFetchedCardHref,
2559
2569
  resolveIcon,
2560
2570
  resolveReleaseCover,
2561
2571
  resolveSourceIcon,
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Reduce an anchor id (ours or GitHub's) to a comparable form.
3
+ *
4
+ * Everything but the final hyphen-run collapse is the shared heading-slug
5
+ * chain: emoji strip → lowercase → drop non-word chars → spaces to hyphens →
6
+ * trim edge hyphens. The collapse is this module's own addition, covering
7
+ * GitHub's *interior* divergence — `## 💬 Community & Support` slugs to
8
+ * `#-community--support` (a double hyphen around the dropped `&`) against our
9
+ * `community-support`.
10
+ *
11
+ * `'-getting-started'` → `'getting-started'`
12
+ * `'-community--support'` → `'community-support'`
13
+ * `'Getting Started'` → `'getting-started'`
14
+ */
15
+ export declare function normalizeAnchorId(raw: string): string;
16
+ /**
17
+ * Resolve a `#hash` id that no exact lookup matched, by comparing normalized
18
+ * forms. Returns `null` when nothing in the document matches, so the caller
19
+ * can leave the browser's default behavior alone rather than hijacking a
20
+ * click that was never ours to handle.
21
+ *
22
+ * Three passes, in order of how much they assume:
23
+ * 1. a single `getElementById` on the normalized id — catches the whole
24
+ * emoji-hyphen family without walking the DOM;
25
+ * 2. a heading scan — catches ids whose own raw form normalizes differently
26
+ * (e.g. `a---b`, from a title containing a literal ` - `);
27
+ * 3. the duplicate-heading shift (see `findDuplicateShifted`) — last,
28
+ * because it is the only pass that resolves to an id the fragment did
29
+ * not name.
30
+ */
31
+ export declare function findAnchorElementByNormalizedId(rawId: string, doc: Document): HTMLElement | null;
32
+ //# sourceMappingURL=anchor-id.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"anchor-id.d.ts","sourceRoot":"","sources":["../../src/utils/anchor-id.ts"],"names":[],"mappings":"AA4BA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAErD;AA2BD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,QAAQ,GACZ,WAAW,GAAG,IAAI,CAgBpB"}
@@ -39,14 +39,32 @@ export declare const DEFAULT_CONTENT_SUFFIXES: Record<string, string>;
39
39
  * `identifier` (the primary-key id) + `externalUrl` (the canonical hub URL,
40
40
  * from which the slug is recovered for in-app routing). */
41
41
  export interface ComposeContentUrlInput {
42
- /** The content's documentType (e.g. `'product_release'`, `'blog_post'`). */
42
+ /** The content's CANONICAL documentType (e.g. `'product_release'`,
43
+ * `'blog_post'`).
44
+ *
45
+ * Rail-vocab aliases (`'blog_post_existing'`) must be canonicalized by the
46
+ * caller via `canonicalContentRefType` BEFORE they reach the seam: a host
47
+ * writes its `hostedTypes` / `suffixes` / `overrides` against the canonical
48
+ * vocabulary, so an alias silently misses every one of them and falls
49
+ * through to the default `<contentOrigin>/<type>/<id>` branch — which is how
50
+ * the same blog post reached `/blog/<slug>` from one path and
51
+ * `/blog_post_existing/<slug>` from another. */
43
52
  type: string;
44
53
  /** Content identifier. Page views pass the slug; chat rows pass the
45
54
  * primary-key id (the slug is recovered from `externalUrl` when hosted). */
46
55
  identifier: string;
47
- /** Hydrated platform junction (page views). Unused by the embedder default
48
- * `hostedTypes` membership decides in-vs-outbut threaded for the hub
49
- * composer's cross-platform topology. */
56
+ /** Preferred path segment for HOSTED types when there is no `externalUrl`
57
+ * to recover the slug fromthe Mingo/NATS transport ships bare
58
+ * `[card://type:id]` markers with no ref metadata, so a fetch-mode card
59
+ * knows the row's slug only AFTER it loads the row. `identifier` must stay
60
+ * the primary key (that is what `overrides` deep-link on), hence a separate
61
+ * field rather than overloading it. Ignored for non-hosted types. */
62
+ slug?: string | null;
63
+ /** Hydrated platform junction from the list APIs. `hostedTypes` membership
64
+ * still decides in-app vs out; this decides WHICH origin an out-link points
65
+ * at — an OpenMSP-owned row resolves to openmsp.ai, not to the embedder's
66
+ * `contentOrigin`. Read only when `targetPlatform` is absent. Accepts the
67
+ * three junction shapes the DALs produce (see `primaryPlatformOf`). */
50
68
  platforms?: Array<{
51
69
  name?: string;
52
70
  }>;
@@ -62,8 +80,11 @@ export interface ContentHrefOptions {
62
80
  /** Types THIS host serves in-app → relative href (soft-nav). Everything
63
81
  * else resolves to the row's `externalUrl` / `contentOrigin` (opens out). */
64
82
  hostedTypes: ReadonlySet<string>;
65
- /** Hub origin for non-hosted types with no `externalUrl` (e.g.
66
- * `https://openframe.app`). */
83
+ /** Fallback origin for non-hosted types with no `externalUrl` AND no
84
+ * resolvable owning platform (e.g. `https://openframe.app`). When the row
85
+ * DOES name its platform, that platform's canonical origin wins — otherwise
86
+ * cross-platform content (an OpenMSP blog post) would be linked to the
87
+ * wrong site. */
67
88
  contentOrigin: string;
68
89
  /** Per-type route suffix. Defaults to {@link DEFAULT_CONTENT_SUFFIXES}. */
69
90
  suffixes?: Record<string, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"content-href.d.ts","sourceRoot":"","sources":["../../src/utils/content-href.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAe3D,CAAA;AAED;;;4DAG4D;AAC5D,MAAM,WAAW,sBAAsB;IACrC,4EAA4E;IAC5E,IAAI,EAAE,MAAM,CAAA;IACZ;iFAC6E;IAC7E,UAAU,EAAE,MAAM,CAAA;IAClB;;8CAE0C;IAC1C,SAAS,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACpC;;oFAEgF;IAChF,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B;6B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