@flamingo-stack/openframe-frontend-core 0.0.490-1506.3944.1 → 0.0.490
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-5CJR2GZ4.cjs → chunk-2MKUHJ3O.cjs} +31 -31
- package/dist/{chunk-5CJR2GZ4.cjs.map → chunk-2MKUHJ3O.cjs.map} +1 -1
- package/dist/{chunk-S2NHJDKQ.cjs → chunk-3IEVA5AO.cjs} +62 -62
- package/dist/{chunk-S2NHJDKQ.cjs.map → chunk-3IEVA5AO.cjs.map} +1 -1
- package/dist/{chunk-GTWO5NAY.js → chunk-6CFFISUC.js} +2 -2
- package/dist/{chunk-VHG6AX5V.js → chunk-6CJ2K7BD.js} +2 -2
- package/dist/{chunk-4NWARV5I.js → chunk-6QK3ONDD.js} +2 -2
- package/dist/{chunk-YHOIAA2E.cjs → chunk-7I42V2OD.cjs} +60 -60
- package/dist/chunk-7I42V2OD.cjs.map +1 -0
- package/dist/{chunk-T2EGSZFN.js → chunk-AIRNG27G.js} +5 -6
- package/dist/chunk-AIRNG27G.js.map +1 -0
- package/dist/{chunk-NWX7MMF5.cjs → chunk-AW63ET2A.cjs} +15 -15
- package/dist/{chunk-NWX7MMF5.cjs.map → chunk-AW63ET2A.cjs.map} +1 -1
- package/dist/{chunk-TKN5667N.js → chunk-BZMOEWWS.js} +10 -10
- package/dist/chunk-BZMOEWWS.js.map +1 -0
- package/dist/{chunk-DSDZ5T4P.cjs → chunk-D5LQMRPU.cjs} +5 -5
- package/dist/{chunk-DSDZ5T4P.cjs.map → chunk-D5LQMRPU.cjs.map} +1 -1
- package/dist/{chunk-CORIBKHG.js → chunk-EGXCWZYP.js} +2 -2
- package/dist/{chunk-5EYRXSY5.cjs → chunk-EJQUYZXF.cjs} +9 -9
- package/dist/{chunk-5EYRXSY5.cjs.map → chunk-EJQUYZXF.cjs.map} +1 -1
- package/dist/{chunk-P4WTZU6L.cjs → chunk-FY5XAW3H.cjs} +11 -11
- package/dist/{chunk-P4WTZU6L.cjs.map → chunk-FY5XAW3H.cjs.map} +1 -1
- package/dist/{chunk-VQ523ORK.cjs → chunk-GMPYR3MX.cjs} +26 -26
- package/dist/{chunk-VQ523ORK.cjs.map → chunk-GMPYR3MX.cjs.map} +1 -1
- package/dist/{chunk-QSCHCZL3.cjs → chunk-GUTYUMGV.cjs} +7 -7
- package/dist/{chunk-QSCHCZL3.cjs.map → chunk-GUTYUMGV.cjs.map} +1 -1
- package/dist/{chunk-Q6E7VJ4W.cjs → chunk-IEZ3YBAP.cjs} +27 -28
- package/dist/chunk-IEZ3YBAP.cjs.map +1 -0
- package/dist/{chunk-HSACATCD.js → chunk-MPYDX5WX.js} +2 -2
- package/dist/{chunk-RQLBHKXN.js → chunk-NGEFYPY7.js} +2 -2
- package/dist/{chunk-BE6DK7QY.js → chunk-OQIMH2WQ.js} +8985 -11081
- package/dist/chunk-OQIMH2WQ.js.map +1 -0
- package/dist/{chunk-CSYSYJCF.cjs → chunk-UZZT65PQ.cjs} +37 -37
- package/dist/{chunk-CSYSYJCF.cjs.map → chunk-UZZT65PQ.cjs.map} +1 -1
- package/dist/{chunk-YZ2OIYQ3.js → chunk-VDZO6IDR.js} +4 -4
- package/dist/{chunk-UUYRJPGJ.js → chunk-VL2YMDPH.js} +4 -4
- package/dist/{chunk-5LMGFI4J.cjs → chunk-VUXNXWOQ.cjs} +4946 -7042
- package/dist/chunk-VUXNXWOQ.cjs.map +1 -0
- package/dist/{chunk-XQ2B74SI.js → chunk-WLM3F3WU.js} +2 -2
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/guide-display.d.ts +14 -0
- package/dist/components/chat/guide-display.d.ts.map +1 -0
- package/dist/components/chat/hooks/index.d.ts +1 -0
- package/dist/components/chat/hooks/index.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-chat.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts +48 -15
- package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-realtime-chunk-processor.d.ts +6 -0
- package/dist/components/chat/hooks/use-realtime-chunk-processor.d.ts.map +1 -0
- package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts +57 -10
- package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -8
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +15 -21
- package/dist/components/chat/types/api.types.d.ts +81 -1
- package/dist/components/chat/types/api.types.d.ts.map +1 -1
- package/dist/components/chat/types/component.types.d.ts +6 -0
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/chat/types/message.types.d.ts +15 -2
- package/dist/components/chat/types/message.types.d.ts.map +1 -1
- package/dist/components/chat/types/processing.types.d.ts +93 -2
- package/dist/components/chat/types/processing.types.d.ts.map +1 -1
- package/dist/components/chat/utils/chunk-parser.d.ts +25 -0
- package/dist/components/chat/utils/chunk-parser.d.ts.map +1 -0
- package/dist/components/chat/utils/extract-incomplete-message-state.d.ts +6 -34
- package/dist/components/chat/utils/extract-incomplete-message-state.d.ts.map +1 -1
- package/dist/components/chat/utils/index.d.ts +3 -2
- package/dist/components/chat/utils/index.d.ts.map +1 -1
- package/dist/components/chat/utils/message-segment-accumulator.d.ts +5 -0
- package/dist/components/chat/utils/message-segment-accumulator.d.ts.map +1 -1
- package/dist/components/chat/utils/process-historical-messages.d.ts +11 -59
- package/dist/components/chat/utils/process-historical-messages.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +5 -5
- package/dist/components/docs/index.js +4 -4
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +20 -20
- package/dist/components/help-center-pages/index.js +11 -11
- package/dist/components/index.cjs +130 -170
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +23 -63
- package/dist/components/index.js.map +1 -1
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/onboarding-guides/onboarding-guide-detail-view.d.ts.map +1 -1
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/shared/product-release/release-detail-page.d.ts.map +1 -1
- package/dist/components/tickets/index.cjs +5 -5
- package/dist/components/tickets/index.js +4 -4
- package/dist/components/ui/index.cjs +2 -42
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +2 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +15 -55
- package/dist/components/ui/rich-markdown-renderer.d.ts +34 -0
- package/dist/components/ui/rich-markdown-renderer.d.ts.map +1 -0
- package/dist/components/ui/simple-markdown-renderer.d.ts +73 -0
- package/dist/components/ui/simple-markdown-renderer.d.ts.map +1 -0
- package/dist/index.cjs +2 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -71
- package/dist/utils/index.cjs +40 -169
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +41 -162
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/markdown-section-extractor.d.ts.map +1 -1
- package/package.json +1 -7
- package/src/components/chat/__tests__/chat-message-list.test.tsx +5 -293
- package/src/components/chat/chat-message-enhanced.tsx +80 -163
- package/src/components/chat/chat-message-list.tsx +109 -358
- package/src/components/chat/embeddable-chat.tsx +0 -6
- package/src/components/chat/guide-display.tsx +44 -0
- package/src/components/chat/hooks/.index.md +33 -30
- package/src/components/chat/hooks/.use-nats-chat-adapter.md +55 -36
- package/src/components/chat/hooks/.use-realtime-chunk-processor.md +77 -0
- package/src/components/chat/hooks/index.ts +1 -0
- package/src/components/chat/hooks/use-chat.ts +0 -8
- package/src/components/chat/hooks/use-nats-chat-adapter.ts +825 -243
- package/src/components/chat/hooks/use-realtime-chunk-processor.ts +489 -0
- package/src/components/chat/hooks/use-sse-chat-adapter.ts +684 -380
- package/src/components/chat/index.ts +1 -5
- package/src/components/chat/thinking-display.tsx +1 -1
- package/src/components/chat/types/.api.types.md +49 -39
- package/src/components/chat/types/.processing.types.md +58 -29
- package/src/components/chat/types/api.types.ts +73 -6
- package/src/components/chat/types/component.types.ts +9 -0
- package/src/components/chat/types/message.types.ts +17 -1
- package/src/components/chat/types/processing.types.ts +53 -11
- package/src/components/chat/utils/.chunk-parser.md +62 -0
- package/src/components/chat/utils/.index.md +40 -31
- package/src/components/chat/utils/chunk-parser.ts +262 -0
- package/src/components/chat/utils/extract-incomplete-message-state.ts +5 -63
- package/src/components/chat/utils/index.ts +8 -5
- package/src/components/chat/utils/message-segment-accumulator.ts +19 -0
- package/src/components/chat/utils/process-historical-messages.ts +390 -352
- package/src/components/onboarding-guides/onboarding-guide-detail-view.tsx +4 -22
- package/src/components/shared/legal-document/legal-document-page.tsx +1 -1
- package/src/components/shared/product-release/release-detail-page.tsx +4 -19
- package/src/components/ui/.simple-markdown-renderer.md +52 -0
- package/src/components/ui/index.ts +2 -1
- package/src/components/ui/release-changelog-section.tsx +1 -1
- package/src/components/ui/rich-markdown-renderer.tsx +1223 -0
- package/src/components/ui/simple-markdown-renderer.tsx +964 -0
- package/src/components/ui/ticket-info-section.tsx +1 -1
- package/src/stories/ChatMessageEnhanced.stories.tsx +48 -1
- package/src/utils/index.ts +0 -1
- package/src/utils/markdown-section-extractor.ts +56 -41
- package/dist/chat-protocol/decode.d.ts +0 -58
- package/dist/chat-protocol/decode.d.ts.map +0 -1
- package/dist/chat-protocol/encode.d.ts +0 -44
- package/dist/chat-protocol/encode.d.ts.map +0 -1
- package/dist/chat-protocol/env-flag.d.ts +0 -35
- package/dist/chat-protocol/env-flag.d.ts.map +0 -1
- package/dist/chat-protocol/events.d.ts +0 -196
- package/dist/chat-protocol/events.d.ts.map +0 -1
- package/dist/chat-protocol/frames.d.ts +0 -213
- package/dist/chat-protocol/frames.d.ts.map +0 -1
- package/dist/chat-protocol/index.cjs +0 -494
- package/dist/chat-protocol/index.cjs.map +0 -1
- package/dist/chat-protocol/index.d.ts +0 -18
- package/dist/chat-protocol/index.d.ts.map +0 -1
- package/dist/chat-protocol/index.js +0 -478
- package/dist/chat-protocol/index.js.map +0 -1
- package/dist/chat-protocol/ip-normalize.d.ts +0 -44
- package/dist/chat-protocol/ip-normalize.d.ts.map +0 -1
- package/dist/chat-protocol/nats-decoder.d.ts +0 -26
- package/dist/chat-protocol/nats-decoder.d.ts.map +0 -1
- package/dist/chunk-5LMGFI4J.cjs.map +0 -1
- package/dist/chunk-BE6DK7QY.js.map +0 -1
- package/dist/chunk-Q6E7VJ4W.cjs.map +0 -1
- package/dist/chunk-T2EGSZFN.js.map +0 -1
- package/dist/chunk-TKN5667N.js.map +0 -1
- package/dist/chunk-YHOIAA2E.cjs.map +0 -1
- package/dist/components/chat/stream/chat-dialog-store.d.ts +0 -184
- package/dist/components/chat/stream/chat-dialog-store.d.ts.map +0 -1
- package/dist/components/chat/stream/chat-stream-reducer.d.ts +0 -367
- package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +0 -1
- package/dist/components/chat/stream/delta-batcher.d.ts +0 -51
- package/dist/components/chat/stream/delta-batcher.d.ts.map +0 -1
- package/dist/components/chat/stream/index.d.ts +0 -17
- package/dist/components/chat/stream/index.d.ts.map +0 -1
- package/dist/components/chat/stream/message-mutations.d.ts +0 -77
- package/dist/components/chat/stream/message-mutations.d.ts.map +0 -1
- package/dist/components/chat/stream/use-chat-stream-reducer.d.ts +0 -22
- package/dist/components/chat/stream/use-chat-stream-reducer.d.ts.map +0 -1
- package/dist/components/ui/markdown/base-components.d.ts +0 -51
- package/dist/components/ui/markdown/base-components.d.ts.map +0 -1
- package/dist/components/ui/markdown/engine.d.ts +0 -99
- package/dist/components/ui/markdown/engine.d.ts.map +0 -1
- package/dist/components/ui/markdown/heading-ids.d.ts +0 -65
- package/dist/components/ui/markdown/heading-ids.d.ts.map +0 -1
- package/dist/components/ui/markdown/index.d.ts +0 -18
- package/dist/components/ui/markdown/index.d.ts.map +0 -1
- package/dist/components/ui/markdown/mermaid-diagram.d.ts +0 -79
- package/dist/components/ui/markdown/mermaid-diagram.d.ts.map +0 -1
- package/dist/components/ui/markdown/rich/embed-overrides.d.ts +0 -14
- package/dist/components/ui/markdown/rich/embed-overrides.d.ts.map +0 -1
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts +0 -40
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts.map +0 -1
- package/dist/components/ui/markdown/rich/shortcodes.d.ts +0 -8
- package/dist/components/ui/markdown/rich/shortcodes.d.ts.map +0 -1
- package/dist/components/ui/markdown/sanitize.d.ts +0 -153
- package/dist/components/ui/markdown/sanitize.d.ts.map +0 -1
- package/dist/components/ui/markdown/simple-markdown-renderer.d.ts +0 -23
- package/dist/components/ui/markdown/simple-markdown-renderer.d.ts.map +0 -1
- package/dist/components/ui/markdown/streaming.d.ts +0 -78
- package/dist/components/ui/markdown/streaming.d.ts.map +0 -1
- package/dist/components/ui/markdown/text-size.d.ts +0 -34
- package/dist/components/ui/markdown/text-size.d.ts.map +0 -1
- package/dist/utils/markdown-fences.d.ts +0 -42
- package/dist/utils/markdown-fences.d.ts.map +0 -1
- package/dist/utils/markdown-heading-id.d.ts +0 -85
- package/dist/utils/markdown-heading-id.d.ts.map +0 -1
- package/src/chat-protocol/__tests__/__snapshots__/nats-decoder-golden.test.ts.snap +0 -307
- package/src/chat-protocol/__tests__/chat-protocol.test.ts +0 -516
- package/src/chat-protocol/__tests__/env-flag.test.ts +0 -52
- package/src/chat-protocol/__tests__/ip-normalize.test.ts +0 -136
- package/src/chat-protocol/__tests__/nats-decoder-golden.test.ts +0 -228
- package/src/chat-protocol/decode.ts +0 -278
- package/src/chat-protocol/encode.ts +0 -71
- package/src/chat-protocol/env-flag.ts +0 -39
- package/src/chat-protocol/events.ts +0 -232
- package/src/chat-protocol/frames.ts +0 -245
- package/src/chat-protocol/index.ts +0 -21
- package/src/chat-protocol/ip-normalize.ts +0 -146
- package/src/chat-protocol/nats-decoder.ts +0 -252
- package/src/components/chat/__tests__/chat-message-streaming-memo.test.tsx +0 -207
- package/src/components/chat/__tests__/chat-pending-turn.test.tsx +0 -209
- package/src/components/chat/hooks/__tests__/__snapshots__/conversation-id-persistence-golden.test.ts.snap +0 -37
- package/src/components/chat/hooks/__tests__/__snapshots__/sse-stream-golden.test.ts.snap +0 -0
- package/src/components/chat/hooks/__tests__/conversation-id-persistence-golden.test.ts +0 -438
- package/src/components/chat/hooks/__tests__/sse-stream-golden.test.ts +0 -318
- package/src/components/chat/stream/__tests__/__snapshots__/chat-stream-reducer-golden.test.ts.snap +0 -940
- package/src/components/chat/stream/__tests__/chat-dialog-store.test.ts +0 -756
- package/src/components/chat/stream/__tests__/chat-stream-reducer-golden.test.ts +0 -460
- package/src/components/chat/stream/__tests__/chat-stream-reducer.test.ts +0 -894
- package/src/components/chat/stream/__tests__/delta-batcher.test.ts +0 -255
- package/src/components/chat/stream/__tests__/use-chat-stream-reducer.test.ts +0 -98
- package/src/components/chat/stream/chat-dialog-store.ts +0 -536
- package/src/components/chat/stream/chat-stream-reducer.ts +0 -1796
- package/src/components/chat/stream/delta-batcher.ts +0 -159
- package/src/components/chat/stream/index.ts +0 -55
- package/src/components/chat/stream/message-mutations.ts +0 -338
- package/src/components/chat/stream/use-chat-stream-reducer.ts +0 -126
- package/src/components/chat/utils/__tests__/__snapshots__/process-historical-messages-golden.test.ts.snap +0 -420
- package/src/components/chat/utils/__tests__/__snapshots__/segment-accumulator-golden.test.ts.snap +0 -605
- package/src/components/chat/utils/__tests__/process-historical-messages-golden.test.ts +0 -317
- package/src/components/chat/utils/__tests__/segment-accumulator-golden.test.ts +0 -270
- package/src/components/ui/__tests__/__snapshots__/markdown-parity.test.tsx.snap +0 -2420
- package/src/components/ui/__tests__/markdown-parity.test.tsx +0 -2528
- package/src/components/ui/markdown/__tests__/mermaid-security.test.ts +0 -115
- package/src/components/ui/markdown/__tests__/mermaid-stale-render.test.tsx +0 -95
- package/src/components/ui/markdown/__tests__/sanitize-invariant.test.ts +0 -309
- package/src/components/ui/markdown/__tests__/streaming.test.tsx +0 -388
- package/src/components/ui/markdown/base-components.tsx +0 -360
- package/src/components/ui/markdown/engine.tsx +0 -315
- package/src/components/ui/markdown/heading-ids.ts +0 -239
- package/src/components/ui/markdown/index.ts +0 -49
- package/src/components/ui/markdown/mermaid-diagram.tsx +0 -291
- package/src/components/ui/markdown/rich/embed-overrides.tsx +0 -199
- package/src/components/ui/markdown/rich/rich-markdown-renderer.tsx +0 -184
- package/src/components/ui/markdown/rich/shortcodes.ts +0 -170
- package/src/components/ui/markdown/sanitize.ts +0 -3499
- package/src/components/ui/markdown/simple-markdown-renderer.tsx +0 -28
- package/src/components/ui/markdown/streaming.ts +0 -362
- package/src/components/ui/markdown/text-size.ts +0 -106
- package/src/utils/markdown-fences.ts +0 -127
- package/src/utils/markdown-heading-id.ts +0 -348
- /package/dist/{chunk-GTWO5NAY.js.map → chunk-6CFFISUC.js.map} +0 -0
- /package/dist/{chunk-VHG6AX5V.js.map → chunk-6CJ2K7BD.js.map} +0 -0
- /package/dist/{chunk-4NWARV5I.js.map → chunk-6QK3ONDD.js.map} +0 -0
- /package/dist/{chunk-CORIBKHG.js.map → chunk-EGXCWZYP.js.map} +0 -0
- /package/dist/{chunk-HSACATCD.js.map → chunk-MPYDX5WX.js.map} +0 -0
- /package/dist/{chunk-RQLBHKXN.js.map → chunk-NGEFYPY7.js.map} +0 -0
- /package/dist/{chunk-YZ2OIYQ3.js.map → chunk-VDZO6IDR.js.map} +0 -0
- /package/dist/{chunk-UUYRJPGJ.js.map → chunk-VL2YMDPH.js.map} +0 -0
- /package/dist/{chunk-XQ2B74SI.js.map → chunk-WLM3F3WU.js.map} +0 -0
|
@@ -153,9 +153,7 @@ import {
|
|
|
153
153
|
CustomerInterviewCard,
|
|
154
154
|
CustomerInterviewCardSkeleton,
|
|
155
155
|
DEFAULT_CUSTOM_STATUS_COLOR,
|
|
156
|
-
DEFAULT_DIALOG_SIDE,
|
|
157
156
|
DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID,
|
|
158
|
-
DEFAULT_MAX_REDUCERS,
|
|
159
157
|
DashboardInfoCard,
|
|
160
158
|
DataRoomDocCard,
|
|
161
159
|
DataRoomDocCardSkeleton,
|
|
@@ -228,6 +226,7 @@ import {
|
|
|
228
226
|
GenericEntityCardSkeleton,
|
|
229
227
|
GitHubActivityCard,
|
|
230
228
|
GitHubActivityCardSkeleton,
|
|
229
|
+
GuideDisplay,
|
|
231
230
|
GuideModeBanner,
|
|
232
231
|
GuideWelcome,
|
|
233
232
|
HiddenTagsPopup,
|
|
@@ -256,11 +255,9 @@ import {
|
|
|
256
255
|
ListPageContainer,
|
|
257
256
|
ListPageLayout,
|
|
258
257
|
LoadError,
|
|
259
|
-
MAX_PENDING_RETAIN_KEYS,
|
|
260
258
|
MESSAGE_ROLE,
|
|
261
259
|
MESSAGE_TYPE,
|
|
262
260
|
MarkdownEditor,
|
|
263
|
-
MarkdownEngine,
|
|
264
261
|
MarqueeWall,
|
|
265
262
|
MarqueeWallFades,
|
|
266
263
|
MediaTypeSelector,
|
|
@@ -281,7 +278,6 @@ import {
|
|
|
281
278
|
MenubarSubContent,
|
|
282
279
|
MenubarSubTrigger,
|
|
283
280
|
MenubarTrigger,
|
|
284
|
-
MermaidDiagram,
|
|
285
281
|
MessageSegmentAccumulator,
|
|
286
282
|
MingoChatHistory,
|
|
287
283
|
MingoChatHistorySkeleton,
|
|
@@ -364,13 +360,11 @@ import {
|
|
|
364
360
|
RoadmapCard,
|
|
365
361
|
RoadmapCardSkeleton,
|
|
366
362
|
RoadmapVoteButton,
|
|
367
|
-
SAFE_HTML_TAGS,
|
|
368
363
|
SCROLL_ANCHOR,
|
|
369
364
|
SCROLL_ANCHOR_WIRE_KEY,
|
|
370
365
|
SECTION_HEADING_CLASS,
|
|
371
366
|
SOURCE_ICON_NAMES,
|
|
372
367
|
SOURCE_LABELS_BY_TABLE,
|
|
373
|
-
SVG_TAGS,
|
|
374
368
|
SYNTHETIC_REALTIME_ID_PREFIXES,
|
|
375
369
|
ScrollFadeOverlay,
|
|
376
370
|
ScrollShadow,
|
|
@@ -410,7 +404,6 @@ import {
|
|
|
410
404
|
StatusBadge,
|
|
411
405
|
StatusIndicator,
|
|
412
406
|
Switch,
|
|
413
|
-
TEXT_SIZE_PRESETS,
|
|
414
407
|
TICKET_STATUS_COLOR_PRESETS,
|
|
415
408
|
TITLE_BLOCK_MIN_HEIGHT,
|
|
416
409
|
TabContent,
|
|
@@ -475,39 +468,27 @@ import {
|
|
|
475
468
|
buildChatAttachmentViewUrl,
|
|
476
469
|
buildChatRefKey,
|
|
477
470
|
buildDiscussAddendum,
|
|
478
|
-
buildEffectiveTagSet,
|
|
479
|
-
buildHeadingIdMap,
|
|
480
471
|
buildNatsWsUrl,
|
|
481
472
|
buildProductReleaseCardProps,
|
|
482
|
-
buildSanitizeSchema,
|
|
483
473
|
buildStreamFrames,
|
|
484
|
-
cardAwareUrlTransform,
|
|
485
474
|
chatChipClass,
|
|
486
475
|
clickupTaskUrl,
|
|
487
|
-
completeStreamingTail,
|
|
488
476
|
computeHistoryPrepend,
|
|
489
477
|
computeIsNewTab,
|
|
490
|
-
createChatDialogStore,
|
|
491
|
-
createChatStreamReducer,
|
|
492
478
|
createColumnHelper,
|
|
493
|
-
createDeltaBatcher,
|
|
494
|
-
createEmptyTurnMeta,
|
|
495
479
|
createMessageSegmentAccumulator,
|
|
496
480
|
decideNewTab,
|
|
497
|
-
decodeHistoricalMessageData,
|
|
498
481
|
defaultBuildProductReleaseCardProps,
|
|
499
482
|
defaultTableIdForDocumentType,
|
|
500
483
|
deriveColumns,
|
|
501
484
|
escapeMarkdownInline,
|
|
502
|
-
escapeUnknownHtmlTags,
|
|
503
485
|
executeNavigation,
|
|
504
486
|
executeNavigationImperative,
|
|
505
487
|
exportToCSV,
|
|
506
488
|
extractEntityIdFilter,
|
|
507
489
|
extractErrorMessages,
|
|
508
490
|
extractIncompleteMessageState,
|
|
509
|
-
|
|
510
|
-
extractText,
|
|
491
|
+
extractTextFromChunk,
|
|
511
492
|
fetchEmptyStateConfig,
|
|
512
493
|
fetchSlashCommands,
|
|
513
494
|
flattenAssistantContent,
|
|
@@ -547,8 +528,11 @@ import {
|
|
|
547
528
|
hideOnError,
|
|
548
529
|
historicalToUnified,
|
|
549
530
|
interleave,
|
|
531
|
+
isControlChunk,
|
|
550
532
|
isCrossOriginUrl,
|
|
533
|
+
isErrorChunk,
|
|
551
534
|
isHistoricalUserTurn,
|
|
535
|
+
isMetadataChunk,
|
|
552
536
|
isModifierClick,
|
|
553
537
|
isQuickActionIconSpec,
|
|
554
538
|
isStructuredContent,
|
|
@@ -564,13 +548,12 @@ import {
|
|
|
564
548
|
normalizeContent,
|
|
565
549
|
normalizeHistoricalMessageData,
|
|
566
550
|
normalizeIconKey,
|
|
551
|
+
parseChunkToAction,
|
|
567
552
|
parseScrollAnchor,
|
|
568
553
|
parseWireCommandOverride,
|
|
569
554
|
processHistoricalMessages,
|
|
570
555
|
processHistoricalMessagesWithErrors,
|
|
571
|
-
processShortcodes,
|
|
572
556
|
programItemToStripProfile,
|
|
573
|
-
rehypeStripUnsafe,
|
|
574
557
|
remarkCardLinks,
|
|
575
558
|
remarkMentionChips,
|
|
576
559
|
renderChatInlineEntityCard,
|
|
@@ -580,11 +563,9 @@ import {
|
|
|
580
563
|
resolveSourceIcon,
|
|
581
564
|
resolveSourceRowCTA,
|
|
582
565
|
resolveStatusTagProps,
|
|
583
|
-
resolveTextSizeConfig,
|
|
584
566
|
resolveTicketStatus,
|
|
585
567
|
safeHref,
|
|
586
568
|
sanitizeTitleForChat,
|
|
587
|
-
splitStreamingBlocks,
|
|
588
569
|
statusBadgeVariants,
|
|
589
570
|
stripChatAttachmentMarkdown,
|
|
590
571
|
stripSameOriginToPath,
|
|
@@ -599,7 +580,6 @@ import {
|
|
|
599
580
|
useChatAttachments,
|
|
600
581
|
useChatCardItem,
|
|
601
582
|
useChatIdentity,
|
|
602
|
-
useChatStreamReducer,
|
|
603
583
|
useChunkCatchup,
|
|
604
584
|
useCloseOnNavigation,
|
|
605
585
|
useCollapsible,
|
|
@@ -607,13 +587,13 @@ import {
|
|
|
607
587
|
useDataTable,
|
|
608
588
|
useDataTableContext,
|
|
609
589
|
useEmptyStateConfig,
|
|
610
|
-
useHeadingIdMap,
|
|
611
590
|
useJetStreamDialogSubscription,
|
|
612
591
|
useMarqueeSync,
|
|
613
592
|
useNatsChatAdapter,
|
|
614
593
|
useNatsDialogSubscription,
|
|
615
594
|
usePageActionsBottomPadding,
|
|
616
595
|
useProxiedImageUrl,
|
|
596
|
+
useRealtimeChunkProcessor,
|
|
617
597
|
useSSE,
|
|
618
598
|
useScriptedStream,
|
|
619
599
|
useScrollFade,
|
|
@@ -623,7 +603,7 @@ import {
|
|
|
623
603
|
useTestRunState,
|
|
624
604
|
useUnifiedChat,
|
|
625
605
|
usesCanonicalStatusStyle
|
|
626
|
-
} from "../../chunk-
|
|
606
|
+
} from "../../chunk-OQIMH2WQ.js";
|
|
627
607
|
import {
|
|
628
608
|
CommandApprovalToast,
|
|
629
609
|
ToastCard,
|
|
@@ -839,9 +819,7 @@ export {
|
|
|
839
819
|
CustomerInterviewCard,
|
|
840
820
|
CustomerInterviewCardSkeleton,
|
|
841
821
|
DEFAULT_CUSTOM_STATUS_COLOR,
|
|
842
|
-
DEFAULT_DIALOG_SIDE,
|
|
843
822
|
DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID,
|
|
844
|
-
DEFAULT_MAX_REDUCERS,
|
|
845
823
|
DashboardInfoCard,
|
|
846
824
|
DataRoomDocCard,
|
|
847
825
|
DataRoomDocCardSkeleton,
|
|
@@ -930,6 +908,7 @@ export {
|
|
|
930
908
|
GenericEntityCardSkeleton,
|
|
931
909
|
GitHubActivityCard,
|
|
932
910
|
GitHubActivityCardSkeleton,
|
|
911
|
+
GuideDisplay,
|
|
933
912
|
GuideModeBanner,
|
|
934
913
|
GuideWelcome,
|
|
935
914
|
HiddenTagsPopup,
|
|
@@ -961,11 +940,9 @@ export {
|
|
|
961
940
|
LoadError,
|
|
962
941
|
CheckCircleIcon as LucideCheckCircleIcon,
|
|
963
942
|
XIcon as LucideXIcon,
|
|
964
|
-
MAX_PENDING_RETAIN_KEYS,
|
|
965
943
|
MESSAGE_ROLE,
|
|
966
944
|
MESSAGE_TYPE,
|
|
967
945
|
MarkdownEditor,
|
|
968
|
-
MarkdownEngine,
|
|
969
946
|
MarqueeWall,
|
|
970
947
|
MarqueeWallFades,
|
|
971
948
|
MediaTypeSelector,
|
|
@@ -985,7 +962,6 @@ export {
|
|
|
985
962
|
MenubarSubContent,
|
|
986
963
|
MenubarSubTrigger,
|
|
987
964
|
MenubarTrigger,
|
|
988
|
-
MermaidDiagram,
|
|
989
965
|
MessageSegmentAccumulator,
|
|
990
966
|
MingoChatHistory,
|
|
991
967
|
MingoChatHistorySkeleton,
|
|
@@ -1068,13 +1044,11 @@ export {
|
|
|
1068
1044
|
RoadmapCard,
|
|
1069
1045
|
RoadmapCardSkeleton,
|
|
1070
1046
|
RoadmapVoteButton,
|
|
1071
|
-
SAFE_HTML_TAGS,
|
|
1072
1047
|
SCROLL_ANCHOR,
|
|
1073
1048
|
SCROLL_ANCHOR_WIRE_KEY,
|
|
1074
1049
|
SECTION_HEADING_CLASS,
|
|
1075
1050
|
SOURCE_ICON_NAMES,
|
|
1076
1051
|
SOURCE_LABELS_BY_TABLE,
|
|
1077
|
-
SVG_TAGS,
|
|
1078
1052
|
SYNTHETIC_REALTIME_ID_PREFIXES,
|
|
1079
1053
|
ScrollFadeOverlay,
|
|
1080
1054
|
ScrollShadow,
|
|
@@ -1123,7 +1097,6 @@ export {
|
|
|
1123
1097
|
StatusBadge,
|
|
1124
1098
|
StatusIndicator,
|
|
1125
1099
|
Switch,
|
|
1126
|
-
TEXT_SIZE_PRESETS,
|
|
1127
1100
|
TICKET_STATUS_COLOR_PRESETS,
|
|
1128
1101
|
TITLE_BLOCK_MIN_HEIGHT,
|
|
1129
1102
|
TabContent,
|
|
@@ -1190,43 +1163,31 @@ export {
|
|
|
1190
1163
|
buildChatAttachmentViewUrl,
|
|
1191
1164
|
buildChatRefKey,
|
|
1192
1165
|
buildDiscussAddendum,
|
|
1193
|
-
buildEffectiveTagSet,
|
|
1194
|
-
buildHeadingIdMap,
|
|
1195
1166
|
buildNatsWsUrl,
|
|
1196
1167
|
buildProductReleaseCardProps,
|
|
1197
|
-
buildSanitizeSchema,
|
|
1198
1168
|
buildStreamFrames,
|
|
1199
1169
|
buttonVariants,
|
|
1200
|
-
cardAwareUrlTransform,
|
|
1201
1170
|
embedAuthedFetch as chatAuthedFetch,
|
|
1202
1171
|
chatChipClass,
|
|
1203
1172
|
clearEmbedProxyAuth as clearChatProxyAuth,
|
|
1204
1173
|
clickupTaskUrl,
|
|
1205
|
-
completeStreamingTail,
|
|
1206
1174
|
computeHistoryPrepend,
|
|
1207
1175
|
computeIsNewTab,
|
|
1208
|
-
createChatDialogStore,
|
|
1209
|
-
createChatStreamReducer,
|
|
1210
1176
|
createColumnHelper,
|
|
1211
|
-
createDeltaBatcher,
|
|
1212
|
-
createEmptyTurnMeta,
|
|
1213
1177
|
createMessageSegmentAccumulator,
|
|
1214
1178
|
decideNewTab,
|
|
1215
|
-
decodeHistoricalMessageData,
|
|
1216
1179
|
defaultBuildProductReleaseCardProps,
|
|
1217
1180
|
defaultTableIdForDocumentType,
|
|
1218
1181
|
deriveColumns,
|
|
1219
1182
|
dotColorByVariant,
|
|
1220
1183
|
escapeMarkdownInline,
|
|
1221
|
-
escapeUnknownHtmlTags,
|
|
1222
1184
|
executeNavigation,
|
|
1223
1185
|
executeNavigationImperative,
|
|
1224
1186
|
exportToCSV,
|
|
1225
1187
|
extractEntityIdFilter,
|
|
1226
1188
|
extractErrorMessages,
|
|
1227
1189
|
extractIncompleteMessageState,
|
|
1228
|
-
|
|
1229
|
-
extractText,
|
|
1190
|
+
extractTextFromChunk,
|
|
1230
1191
|
fetchEmptyStateConfig,
|
|
1231
1192
|
fetchSlashCommands,
|
|
1232
1193
|
flattenAssistantContent,
|
|
@@ -1268,8 +1229,11 @@ export {
|
|
|
1268
1229
|
hideOnError,
|
|
1269
1230
|
historicalToUnified,
|
|
1270
1231
|
interleave,
|
|
1232
|
+
isControlChunk,
|
|
1271
1233
|
isCrossOriginUrl,
|
|
1234
|
+
isErrorChunk,
|
|
1272
1235
|
isHistoricalUserTurn,
|
|
1236
|
+
isMetadataChunk,
|
|
1273
1237
|
isModifierClick,
|
|
1274
1238
|
isQuickActionIconSpec,
|
|
1275
1239
|
isStructuredContent,
|
|
@@ -1285,14 +1249,13 @@ export {
|
|
|
1285
1249
|
normalizeContent,
|
|
1286
1250
|
normalizeHistoricalMessageData,
|
|
1287
1251
|
normalizeIconKey,
|
|
1252
|
+
parseChunkToAction,
|
|
1288
1253
|
parseScrollAnchor,
|
|
1289
1254
|
parseWireCommandOverride,
|
|
1290
1255
|
processHistoricalMessages,
|
|
1291
1256
|
processHistoricalMessagesWithErrors,
|
|
1292
|
-
processShortcodes,
|
|
1293
1257
|
programItemToStripProfile,
|
|
1294
1258
|
progressColorByVariant,
|
|
1295
|
-
rehypeStripUnsafe,
|
|
1296
1259
|
remarkCardLinks,
|
|
1297
1260
|
remarkMentionChips,
|
|
1298
1261
|
renderChatInlineEntityCard,
|
|
@@ -1302,14 +1265,12 @@ export {
|
|
|
1302
1265
|
resolveSourceIcon,
|
|
1303
1266
|
resolveSourceRowCTA,
|
|
1304
1267
|
resolveStatusTagProps,
|
|
1305
|
-
resolveTextSizeConfig,
|
|
1306
1268
|
resolveTicketStatus,
|
|
1307
1269
|
safeHref,
|
|
1308
1270
|
sanitizeTitleForChat,
|
|
1309
1271
|
setEmbedProxyAuth as setChatProxyAuth,
|
|
1310
1272
|
showCommandApprovalToast,
|
|
1311
1273
|
showToast,
|
|
1312
|
-
splitStreamingBlocks,
|
|
1313
1274
|
statusBadgeVariants,
|
|
1314
1275
|
stripChatAttachmentMarkdown,
|
|
1315
1276
|
stripSameOriginToPath,
|
|
@@ -1324,7 +1285,6 @@ export {
|
|
|
1324
1285
|
useChatAttachments,
|
|
1325
1286
|
useChatCardItem,
|
|
1326
1287
|
useChatIdentity,
|
|
1327
|
-
useChatStreamReducer,
|
|
1328
1288
|
useChunkCatchup,
|
|
1329
1289
|
useCloseOnNavigation,
|
|
1330
1290
|
useCollapsible,
|
|
@@ -1333,13 +1293,13 @@ export {
|
|
|
1333
1293
|
useDataTableContext,
|
|
1334
1294
|
useSseChatAdapter as useEmbeddedChat,
|
|
1335
1295
|
useEmptyStateConfig,
|
|
1336
|
-
useHeadingIdMap,
|
|
1337
1296
|
useJetStreamDialogSubscription,
|
|
1338
1297
|
useMarqueeSync,
|
|
1339
1298
|
useNatsChatAdapter,
|
|
1340
1299
|
useNatsDialogSubscription,
|
|
1341
1300
|
usePageActionsBottomPadding,
|
|
1342
1301
|
useProxiedImageUrl,
|
|
1302
|
+
useRealtimeChunkProcessor,
|
|
1343
1303
|
useSSE,
|
|
1344
1304
|
useScriptedStream,
|
|
1345
1305
|
useScrollFade,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type RichMarkdownRuntime } from '../embeds/rich-markdown-runtime';
|
|
3
|
+
/**
|
|
4
|
+
* Props for `<RichMarkdownRenderer>`. Aside from the four runtime knobs
|
|
5
|
+
* lifted from {@link RichMarkdownRuntime}, this is the same shape the hub's
|
|
6
|
+
* `SimpleMarkdownRenderer` ever had — every legacy call site can be moved
|
|
7
|
+
* over without other changes.
|
|
8
|
+
*/
|
|
9
|
+
export interface RichMarkdownRendererProps extends Partial<RichMarkdownRuntime> {
|
|
10
|
+
content: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
sectionIds?: Array<{
|
|
13
|
+
id: string;
|
|
14
|
+
title: string;
|
|
15
|
+
level: number;
|
|
16
|
+
}>;
|
|
17
|
+
/** Callback for internal navigation (called after the resolver returns) */
|
|
18
|
+
onInternalLinkClick?: (path: string, options?: {
|
|
19
|
+
expandFolder?: boolean;
|
|
20
|
+
fromInternalLink?: boolean;
|
|
21
|
+
}) => void;
|
|
22
|
+
/** List of broken links detected server-side */
|
|
23
|
+
brokenLinks?: string[];
|
|
24
|
+
/** Current documentation path for resolving relative links */
|
|
25
|
+
currentPath?: string;
|
|
26
|
+
/** Source for resolving internal links (default: 'openframe-docs'). Registry id from DOC_SOURCES. */
|
|
27
|
+
resolveSource?: string;
|
|
28
|
+
/** Path of the internal link-resolver endpoint. Default '/api/docs/resolve-link'. */
|
|
29
|
+
resolveLinkEndpointUrl?: string;
|
|
30
|
+
/** When the page already has an H1, render markdown `#` as `h2` (e.g. legal pages). */
|
|
31
|
+
demoteMarkdownH1ToH2?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare const RichMarkdownRenderer: React.FC<RichMarkdownRendererProps>;
|
|
34
|
+
//# sourceMappingURL=rich-markdown-renderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rich-markdown-renderer.d.ts","sourceRoot":"","sources":["../../../src/components/ui/rich-markdown-renderer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAgBjF,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,iCAAiC,CAAC;AA4czC;;;;;GAKG;AACH,MAAM,WAAW,yBAA0B,SAAQ,OAAO,CAAC,mBAAmB,CAAC;IAC7E,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjE,2EAA2E;IAC3E,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,OAAO,CAAC;QAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IAC/G,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qGAAqG;IACrG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qFAAqF;IACrF,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,uFAAuF;IACvF,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAoCpE,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Components } from 'react-markdown';
|
|
3
|
+
import type { PluggableList } from 'unified';
|
|
4
|
+
import type { ResolveLinkResult } from '../../types/doc-source';
|
|
5
|
+
export type { ResolveLinkResult };
|
|
6
|
+
export type TextSizeElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'li' | 'blockquote' | 'code' | 'th' | 'td';
|
|
7
|
+
export type TextSizeClassMap = Partial<Record<TextSizeElement, string>>;
|
|
8
|
+
export type TextSizePreset = 'default' | 'compact' | 'large';
|
|
9
|
+
export type TextSizeConfig = TextSizePreset | TextSizeClassMap | {
|
|
10
|
+
preset: TextSizePreset;
|
|
11
|
+
overrides: TextSizeClassMap;
|
|
12
|
+
};
|
|
13
|
+
export interface SimpleMarkdownRendererProps {
|
|
14
|
+
content: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
/** Backend-provided heading IDs for deep-link anchors */
|
|
17
|
+
sectionIds?: Array<{
|
|
18
|
+
id: string;
|
|
19
|
+
title: string;
|
|
20
|
+
level: number;
|
|
21
|
+
}>;
|
|
22
|
+
/** When the page already has an H1, render markdown `#` as `<h2>` */
|
|
23
|
+
demoteMarkdownH1ToH2?: boolean;
|
|
24
|
+
/** List of broken link hrefs detected server-side (shown with [BROKEN] badge) */
|
|
25
|
+
brokenLinks?: string[];
|
|
26
|
+
/** Callback for internal (non-http, non-anchor) link clicks */
|
|
27
|
+
onInternalLinkClick?: (path: string, options?: {
|
|
28
|
+
expandFolder?: boolean;
|
|
29
|
+
fromInternalLink?: boolean;
|
|
30
|
+
}) => void;
|
|
31
|
+
/** Current documentation path — enables internal-link mode when set */
|
|
32
|
+
currentPath?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Resolve an internal link href to a navigation path.
|
|
35
|
+
* Called when a user clicks an internal doc link.
|
|
36
|
+
*/
|
|
37
|
+
onResolveLink?: (href: string, currentPath: string) => Promise<ResolveLinkResult>;
|
|
38
|
+
/** Pre-process the raw markdown string before rendering (e.g. shortcode expansion) */
|
|
39
|
+
preprocessContent?: (content: string) => string;
|
|
40
|
+
/** Merge additional or override react-markdown component renderers */
|
|
41
|
+
componentOverrides?: Partial<Components>;
|
|
42
|
+
/**
|
|
43
|
+
* Extra remark plugins appended after the built-in `remarkGfm` and
|
|
44
|
+
* `remarkBreaks`. Used by chat consumers to inject `remarkCardLinks`,
|
|
45
|
+
* which converts `[card://<type>:<id>]` markers into synthetic `link`
|
|
46
|
+
* nodes; the host's `componentOverrides.a` then swaps those for whatever
|
|
47
|
+
* inline entity-card component it provides.
|
|
48
|
+
*
|
|
49
|
+
* Each entry is either a Plugin reference or a [Plugin, options] tuple
|
|
50
|
+
* — same shape as react-markdown's own `remarkPlugins` prop. Pass an
|
|
51
|
+
* empty array (or omit) to keep the default plugin set.
|
|
52
|
+
*/
|
|
53
|
+
additionalRemarkPlugins?: PluggableList;
|
|
54
|
+
/**
|
|
55
|
+
* Configure text sizing for all rendered elements.
|
|
56
|
+
* - `"default"` — current behavior (large article-style typography)
|
|
57
|
+
* - `"compact"` — smaller sizes for sidebars, cards, changelogs
|
|
58
|
+
* - `"large"` — extra-large sizes for hero/landing content
|
|
59
|
+
* - `{ p: "text-sm", h1: "text-2xl" }` — per-element overrides (merged onto default)
|
|
60
|
+
* - `{ preset: "compact", overrides: { h1: "text-heading-1" } }` — preset + tweaks
|
|
61
|
+
*/
|
|
62
|
+
textSize?: TextSizeConfig;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Memoized so a parent re-render with UNCHANGED props (same `content` string,
|
|
66
|
+
* same memoized `componentOverrides`/plugins) does NOT re-parse the markdown.
|
|
67
|
+
* Re-parsing rebuilds the entire react-markdown subtree, which RE-MOUNTS any
|
|
68
|
+
* embedded inline entity cards — closing their open menus and re-triggering
|
|
69
|
+
* their fetch on every chat re-render (streaming chunk AND scroll). With
|
|
70
|
+
* stable props the renderer bails, so completed messages' cards stay mounted.
|
|
71
|
+
*/
|
|
72
|
+
export declare const SimpleMarkdownRenderer: React.NamedExoticComponent<SimpleMarkdownRendererProps>;
|
|
73
|
+
//# sourceMappingURL=simple-markdown-renderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simple-markdown-renderer.d.ts","sourceRoot":"","sources":["../../../src/components/ui/simple-markdown-renderer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkE,MAAM,OAAO,CAAC;AACvF,OAAsB,EAAE,KAAK,UAAU,EAAuB,MAAM,gBAAgB,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAU7C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAyflC,MAAM,MAAM,eAAe,GACvB,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GACvC,GAAG,GAAG,IAAI,GAAG,YAAY,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC;AACxE,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAC7D,MAAM,MAAM,cAAc,GACtB,cAAc,GACd,gBAAgB,GAChB;IAAE,MAAM,EAAE,cAAc,CAAC;IAAC,SAAS,EAAE,gBAAgB,CAAA;CAAE,CAAC;AA+D5D,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,UAAU,CAAC,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjE,qEAAqE;IACrE,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,+DAA+D;IAC/D,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,OAAO,CAAC;QAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IAC/G,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAClF,sFAAsF;IACtF,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;IAChD,sEAAsE;IACtE,kBAAkB,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACzC;;;;;;;;;;OAUG;IACH,uBAAuB,CAAC,EAAE,aAAa,CAAC;IACxC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AA+TD;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,yDAAmC,CAAC"}
|