@lostgradient/cinder 0.15.0 → 0.16.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.
- package/CHANGELOG.md +12 -0
- package/README.md +3 -3
- package/components.json +2 -143
- package/dist/components/access-gate/index.js +379 -327
- package/dist/components/alert-dialog/index.js +170 -172
- package/dist/components/confirm-dialog/index.js +170 -172
- package/dist/components/data-table/index.js +88 -31
- package/dist/components/drawer/index.js +11 -11
- package/dist/components/focus-trap/index.d.ts +1 -0
- package/dist/components/focus-trap/index.js +171 -1
- package/dist/components/icons/index.d.ts +80 -1
- package/dist/components/icons/index.js +1256 -0
- package/dist/components/markdown-editor/index.js +170 -170
- package/dist/components/modal/index.js +20 -20
- package/dist/components/review-editor/index.js +170 -187
- package/dist/components/sheet/index.js +11 -11
- package/dist/components/sidebar/index.js +37 -37
- package/dist/components/table/index.js +85 -28
- package/dist/components/table/table.css +11 -0
- package/dist/components/table/table.schema.js +10 -1
- package/dist/components/table/table.types.d.ts +24 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.js +23266 -30180
- package/dist/server/components/access-gate/index.js +7 -10
- package/dist/server/components/alert-dialog/index.js +4 -4
- package/dist/server/components/approval-card/index.js +6 -6
- package/dist/server/components/autocomplete/index.js +4 -4
- package/dist/server/components/choice-grid/index.js +2 -2
- package/dist/server/components/color-field/index.js +2 -2
- package/dist/server/components/combobox/index.js +3 -3
- package/dist/server/components/command-item/index.js +3 -5
- package/dist/server/components/command-menu/index.js +3 -5
- package/dist/server/components/confirm-dialog/index.js +4 -4
- package/dist/server/components/context-menu/index.js +7 -7
- package/dist/server/components/data-table/index.js +4 -4
- package/dist/server/components/date-picker/index.js +4 -4
- package/dist/server/components/date-range-field/index.js +4 -4
- package/dist/server/components/diff-viewer/index.js +9 -11
- package/dist/server/components/drawer/index.js +4 -4
- package/dist/server/components/dropdown/index.js +7 -7
- package/dist/server/components/faceted-filter-bar/index.js +2 -2
- package/dist/server/components/focus-trap/index.js +7 -2
- package/dist/server/components/icons/index.js +156 -0
- package/dist/server/components/inline-loading/index.js +1 -1
- package/dist/server/components/json-schema-editor/index.js +11 -13
- package/dist/server/components/load-more/index.js +2 -3
- package/dist/server/components/markdown-editor/index.js +13 -12
- package/dist/server/components/menu-bar/index.js +4 -4
- package/dist/server/components/modal/index.js +4 -4
- package/dist/server/components/popover/index.js +3 -3
- package/dist/server/components/review-editor/index.js +169 -122
- package/dist/server/components/schedule-builder/index.js +5 -5
- package/dist/server/components/schema-form/index.js +1 -1
- package/dist/server/components/segment/index.js +3 -3
- package/dist/server/components/segmented-control/index.js +4 -4
- package/dist/server/components/selection-popover/index.js +3 -3
- package/dist/server/components/sheet/index.js +3 -3
- package/dist/server/components/sidebar/index.js +4 -4
- package/dist/server/components/table/index.js +4 -4
- package/dist/server/components/tag-input/index.js +2 -2
- package/dist/server/index.js +272 -316
- package/dist/server/{index.server-dwwqssey.js → index.server-0qh3v3nq.js} +1 -1
- package/dist/server/index.server-25wmev4e.js +2 -0
- package/dist/server/{index.server-zdm63dt8.js → index.server-2c56kqws.js} +107 -25
- package/dist/server/{index.server-y4n8vc08.js → index.server-2pc5cv6c.js} +1 -1
- package/dist/server/{index.server-1vsv7ngz.js → index.server-3g76h7z7.js} +12 -2
- package/dist/server/{index.server-xz99aed4.js → index.server-45n4s30n.js} +12 -12
- package/dist/server/{index.server-zzd5wpbw.js → index.server-4dfs3xwn.js} +1 -1
- package/dist/server/{index.server-vhyjjx9z.js → index.server-4jkqgp17.js} +7 -9
- package/dist/server/{index.server-bmxbsk4y.js → index.server-51sxnete.js} +18 -18
- package/dist/server/{index.server-1bwvsnjk.js → index.server-6rv1rfwq.js} +37 -14
- package/dist/server/{index.server-np3c7kx0.js → index.server-7798gc22.js} +1 -1
- package/dist/server/{index.server-2m1kenak.js → index.server-7kjw6qw5.js} +1 -1
- package/dist/server/{index.server-tfftb7hs.js → index.server-7zpzspk6.js} +1 -1
- package/dist/server/{index.server-7yvpb6z7.js → index.server-894t97kv.js} +4 -4
- package/dist/server/{index.server-47v2fhp4.js → index.server-8b35ekqg.js} +1 -1
- package/dist/server/{index.server-j5hn2qds.js → index.server-8nm871y8.js} +80 -30
- package/dist/server/{index.server-h0cvwvhy.js → index.server-9drzqktm.js} +1 -1
- package/dist/server/{index.server-x9s4m9eg.js → index.server-agsdwg53.js} +1 -1
- package/dist/server/{index.server-hpeavvnq.js → index.server-b4gp066a.js} +1 -1
- package/dist/server/{index.server-gkazv439.js → index.server-bf7d81b4.js} +7 -7
- package/dist/server/{index.server-krqvnt6p.js → index.server-d4ft97bx.js} +4 -2
- package/dist/server/{index.server-t1x9h8cb.js → index.server-dg19y3m7.js} +1 -1
- package/dist/server/{index.server-jt1twhgk.js → index.server-dq0k0qf6.js} +10 -10
- package/dist/server/{index.server-pxq277t5.js → index.server-frb9e55d.js} +1 -1
- package/dist/server/{index.server-9kz37z89.js → index.server-g3726bja.js} +1 -1
- package/dist/server/{index.server-jdcq5zza.js → index.server-gwgm8gqg.js} +8 -8
- package/dist/server/index.server-gyzmkrnz.js +2 -0
- package/dist/server/{index.server-mr68brd6.js → index.server-jgdtsvz2.js} +1 -1
- package/dist/server/{index.server-p56xxef1.js → index.server-m8ya4p7w.js} +1 -1
- package/dist/server/{index.server-1nq7z1qw.js → index.server-mda2y5g6.js} +1 -1
- package/dist/server/{index.server-e89qfamd.js → index.server-mknhgg07.js} +4 -4
- package/dist/server/{index.server-j570vb03.js → index.server-mvjzcna5.js} +1 -1
- package/dist/server/index.server-n4jxy52q.js +2 -0
- package/dist/server/{index.server-eftvmq3f.js → index.server-pfbzz3x7.js} +1 -1
- package/dist/server/{index.server-zrh23kty.js → index.server-pyjzfjfn.js} +1 -1
- package/dist/server/{index.server-rga8sc7j.js → index.server-q1d48s9t.js} +40 -36
- package/dist/server/{index.server-46cjwcqw.js → index.server-qv0kkre4.js} +5 -5
- package/dist/server/{index.server-yhzydqxe.js → index.server-r82zjq88.js} +5 -5
- package/dist/server/{index.server-9ykk1kbg.js → index.server-rbd5ys4z.js} +1 -1
- package/dist/server/{index.server-tcay903b.js → index.server-tnecnach.js} +4 -4
- package/dist/server/{index.server-h89zk5ev.js → index.server-wasj5rbh.js} +8 -8
- package/dist/server/{index.server-9ra3xv88.js → index.server-x66zvjfc.js} +9 -9
- package/dist/server/index.server-xanq9ppe.js +119 -0
- package/dist/server/{index.server-6sh11ap6.js → index.server-y4kfz0er.js} +1 -1
- package/dist/server/{index.server-n82rcv0m.js → index.server-z721a5gp.js} +4 -4
- package/dist/server/{index.server-mm1xa3kr.js → index.server-zdhv33ph.js} +51 -20
- package/dist/server/{index.server-t3hknp1c.js → index.server-zm04d9eq.js} +4 -4
- package/dist/server/{index.server-nx9c2ep1.js → index.server-zncgb7mw.js} +2 -2
- package/package.json +10 -130
- package/src/components/focus-trap/index.ts +1 -0
- package/src/components/icons/index.ts +82 -40
- package/src/components/table/table.css +11 -0
- package/src/components/table/table.examples.json +3 -3
- package/src/components/table/table.schema.json +9 -0
- package/src/components/table/table.schema.ts +11 -0
- package/src/components/table/table.svelte +58 -14
- package/src/components/table/table.types.ts +27 -1
- package/src/index.ts +0 -34
- package/src/styles/components.css +0 -4
- package/dist/components/chat/adapter/chat-adapter.d.ts +0 -123
- package/dist/components/chat/adapter/index.d.ts +0 -8
- package/dist/components/chat/artifact/artifact-panel.svelte.d.ts +0 -15
- package/dist/components/chat/artifact/artifact-viewer.svelte.d.ts +0 -10
- package/dist/components/chat/artifact/chat-artifact-layout.svelte.d.ts +0 -23
- package/dist/components/chat/artifact/index.d.ts +0 -3
- package/dist/components/chat/builders.d.ts +0 -25
- package/dist/components/chat/chat.css +0 -16
- package/dist/components/chat/chat.css.d.ts +0 -1
- package/dist/components/chat/chat.schema.d.ts +0 -3
- package/dist/components/chat/chat.schema.js +0 -366
- package/dist/components/chat/chat.svelte.d.ts +0 -31
- package/dist/components/chat/chat.types.d.ts +0 -268
- package/dist/components/chat/chat.variables.d.ts +0 -2
- package/dist/components/chat/chat.variables.js +0 -61
- package/dist/components/chat/container/chat-events.d.ts +0 -22
- package/dist/components/chat/container/chat-history-trigger.svelte.d.ts +0 -15
- package/dist/components/chat/container/chat-jump-controls.svelte.d.ts +0 -24
- package/dist/components/chat/container/chat-participant-typing.svelte.d.ts +0 -31
- package/dist/components/chat/container/chat-search-bar.svelte.d.ts +0 -38
- package/dist/components/chat/container/chat-status-announcer.svelte.d.ts +0 -21
- package/dist/components/chat/container/chat.svelte.d.ts +0 -17
- package/dist/components/chat/container/index.d.ts +0 -12
- package/dist/components/chat/container/scroll-utilities.d.ts +0 -119
- package/dist/components/chat/container/use-chat-disclosure-state.svelte.d.ts +0 -58
- package/dist/components/chat/container/use-chat-keyboard-nav.svelte.d.ts +0 -57
- package/dist/components/chat/container/use-chat-message-groups.svelte.d.ts +0 -74
- package/dist/components/chat/container/use-chat-read-receipts.svelte.d.ts +0 -51
- package/dist/components/chat/container/use-chat-scroll-state.svelte.d.ts +0 -111
- package/dist/components/chat/container/use-chat-search.svelte.d.ts +0 -82
- package/dist/components/chat/container/use-chat-typing-indicator.svelte.d.ts +0 -76
- package/dist/components/chat/container/use-chat-unread-state.svelte.d.ts +0 -80
- package/dist/components/chat/container/use-chat-virtualizer.svelte.d.ts +0 -47
- package/dist/components/chat/conversation-model.d.ts +0 -16
- package/dist/components/chat/export/conversation-export-actions.svelte.d.ts +0 -17
- package/dist/components/chat/export/index.d.ts +0 -8
- package/dist/components/chat/index.d.ts +0 -25
- package/dist/components/chat/index.js +0 -11319
- package/dist/components/chat/input/attachment-kind.d.ts +0 -10
- package/dist/components/chat/input/chat-attachment-preview.svelte.d.ts +0 -8
- package/dist/components/chat/input/chat-attachment-serialization.d.ts +0 -9
- package/dist/components/chat/input/chat-attachment.d.ts +0 -11
- package/dist/components/chat/input/chat-input.svelte.d.ts +0 -79
- package/dist/components/chat/input/index.d.ts +0 -5
- package/dist/components/chat/message/chat-date-separator.svelte.d.ts +0 -12
- package/dist/components/chat/message/chat-message-parts-renderer.svelte.d.ts +0 -4
- package/dist/components/chat/message/chat-message-parts.d.ts +0 -96
- package/dist/components/chat/message/chat-message.svelte.d.ts +0 -91
- package/dist/components/chat/message/chat-read-receipt.svelte.d.ts +0 -27
- package/dist/components/chat/message/image-lightbox.svelte.d.ts +0 -17
- package/dist/components/chat/message/index.d.ts +0 -6
- package/dist/components/chat/message/markdown-preview.svelte.d.ts +0 -8
- package/dist/components/chat/message/message-attachments.svelte.d.ts +0 -17
- package/dist/components/chat/message/message-content.svelte.d.ts +0 -18
- package/dist/components/chat/message/parts/image-part.svelte.d.ts +0 -17
- package/dist/components/chat/message/parts/markdown-part.svelte.d.ts +0 -8
- package/dist/components/chat/message/parts/reasoning-part.svelte.d.ts +0 -12
- package/dist/components/chat/message/parts/step-part.svelte.d.ts +0 -8
- package/dist/components/chat/message/parts/suggestion-part.svelte.d.ts +0 -18
- package/dist/components/chat/message/parts/tool-approval-part.svelte.d.ts +0 -12
- package/dist/components/chat/message/parts/tool-call-part.svelte.d.ts +0 -12
- package/dist/components/chat/message/parts/tool-result-part.svelte.d.ts +0 -8
- package/dist/components/chat/message/tool-call-group.svelte.d.ts +0 -15
- package/dist/components/chat/message/tool-payload-code.svelte.d.ts +0 -9
- package/dist/components/chat/utilities/conversation.d.ts +0 -12
- package/dist/components/chat/utilities/index.d.ts +0 -9
- package/dist/components/chat/utilities/types.d.ts +0 -262
- package/dist/components/chat/utilities/utilities.d.ts +0 -140
- package/dist/components/chat-composer-popover/chat-composer-popover-filter.d.ts +0 -11
- package/dist/components/chat-composer-popover/chat-composer-popover.css +0 -7
- package/dist/components/chat-composer-popover/chat-composer-popover.css.d.ts +0 -1
- package/dist/components/chat-composer-popover/chat-composer-popover.schema.d.ts +0 -3
- package/dist/components/chat-composer-popover/chat-composer-popover.schema.js +0 -150
- package/dist/components/chat-composer-popover/chat-composer-popover.svelte.d.ts +0 -46
- package/dist/components/chat-composer-popover/chat-composer-popover.types.d.ts +0 -77
- package/dist/components/chat-composer-popover/chat-composer-popover.variables.d.ts +0 -2
- package/dist/components/chat-composer-popover/chat-composer-popover.variables.js +0 -61
- package/dist/components/chat-composer-popover/index.d.ts +0 -6
- package/dist/components/chat-composer-popover/index.js +0 -3285
- package/dist/components/chat-conversation-header/chat-conversation-header.css +0 -51
- package/dist/components/chat-conversation-header/chat-conversation-header.css.d.ts +0 -1
- package/dist/components/chat-conversation-header/chat-conversation-header.schema.d.ts +0 -3
- package/dist/components/chat-conversation-header/chat-conversation-header.schema.js +0 -94
- package/dist/components/chat-conversation-header/chat-conversation-header.svelte.d.ts +0 -19
- package/dist/components/chat-conversation-header/chat-conversation-header.types.d.ts +0 -18
- package/dist/components/chat-conversation-header/chat-conversation-header.variables.d.ts +0 -2
- package/dist/components/chat-conversation-header/chat-conversation-header.variables.js +0 -61
- package/dist/components/chat-conversation-header/index.d.ts +0 -5
- package/dist/components/chat-conversation-header/index.js +0 -4278
- package/dist/components/chat-conversation-list/chat-conversation-list.css +0 -127
- package/dist/components/chat-conversation-list/chat-conversation-list.css.d.ts +0 -1
- package/dist/components/chat-conversation-list/chat-conversation-list.schema.d.ts +0 -3
- package/dist/components/chat-conversation-list/chat-conversation-list.schema.js +0 -105
- package/dist/components/chat-conversation-list/chat-conversation-list.svelte.d.ts +0 -21
- package/dist/components/chat-conversation-list/chat-conversation-list.types.d.ts +0 -17
- package/dist/components/chat-conversation-list/chat-conversation-list.variables.d.ts +0 -2
- package/dist/components/chat-conversation-list/chat-conversation-list.variables.js +0 -61
- package/dist/components/chat-conversation-list/conversation-summary.d.ts +0 -30
- package/dist/components/chat-conversation-list/index.d.ts +0 -6
- package/dist/components/chat-conversation-list/index.js +0 -536
- package/dist/server/components/chat/index.js +0 -131
- package/dist/server/components/chat-composer-popover/index.js +0 -26
- package/dist/server/components/chat-conversation-header/index.js +0 -41
- package/dist/server/components/chat-conversation-list/index.js +0 -19
- package/dist/server/index.server-2bbwajb2.js +0 -54
- package/dist/server/index.server-2hqrv7ca.js +0 -9
- package/dist/server/index.server-67qgdypc.js +0 -9
- package/dist/server/index.server-6hnfzc7f.js +0 -263
- package/dist/server/index.server-8rmtb8vx.js +0 -175
- package/dist/server/index.server-a59y47rw.js +0 -59
- package/dist/server/index.server-bfkka7x4.js +0 -2
- package/dist/server/index.server-czf35aba.js +0 -4241
- package/dist/server/index.server-kb6w1a7c.js +0 -27
- package/dist/server/index.server-mzj20rfz.js +0 -77
- package/dist/server/index.server-nphtb2ey.js +0 -76
- package/dist/server/index.server-qkfd0qa7.js +0 -2
- package/dist/server/index.server-rf67m8v5.js +0 -2
- package/dist/server/index.server-rqe5bqgm.js +0 -37
- package/dist/server/index.server-xtjjmsyq.js +0 -315
- package/dist/server/index.server-yq9evnp4.js +0 -38
- package/dist/server/index.server-z1qvwaem.js +0 -74
- package/dist/server/index.server-z7hxtqs1.js +0 -83
- package/src/components/chat/adapter/chat-adapter.ts +0 -132
- package/src/components/chat/adapter/index.ts +0 -15
- package/src/components/chat/artifact/artifact-panel.svelte +0 -112
- package/src/components/chat/artifact/artifact-viewer.svelte +0 -101
- package/src/components/chat/artifact/chat-artifact-layout.svelte +0 -56
- package/src/components/chat/artifact/index.ts +0 -3
- package/src/components/chat/builders.ts +0 -464
- package/src/components/chat/chat.css +0 -16
- package/src/components/chat/chat.examples.json +0 -67
- package/src/components/chat/chat.schema.json +0 -290
- package/src/components/chat/chat.schema.ts +0 -335
- package/src/components/chat/chat.svelte +0 -67
- package/src/components/chat/chat.types.ts +0 -284
- package/src/components/chat/chat.variables.json +0 -1
- package/src/components/chat/chat.variables.ts +0 -3
- package/src/components/chat/container/chat-events.ts +0 -26
- package/src/components/chat/container/chat-history-trigger.svelte +0 -95
- package/src/components/chat/container/chat-jump-controls.svelte +0 -191
- package/src/components/chat/container/chat-participant-typing.svelte +0 -128
- package/src/components/chat/container/chat-search-bar.svelte +0 -219
- package/src/components/chat/container/chat-status-announcer.svelte +0 -22
- package/src/components/chat/container/chat.svelte +0 -1879
- package/src/components/chat/container/index.ts +0 -64
- package/src/components/chat/container/scroll-utilities.ts +0 -204
- package/src/components/chat/container/use-chat-disclosure-state.svelte.ts +0 -62
- package/src/components/chat/container/use-chat-keyboard-nav.svelte.ts +0 -153
- package/src/components/chat/container/use-chat-message-groups.svelte.ts +0 -146
- package/src/components/chat/container/use-chat-read-receipts.svelte.ts +0 -62
- package/src/components/chat/container/use-chat-scroll-state.svelte.ts +0 -292
- package/src/components/chat/container/use-chat-search.svelte.ts +0 -116
- package/src/components/chat/container/use-chat-typing-indicator.svelte.ts +0 -153
- package/src/components/chat/container/use-chat-unread-state.svelte.ts +0 -170
- package/src/components/chat/container/use-chat-virtualizer.svelte.ts +0 -260
- package/src/components/chat/conversation-model.ts +0 -56
- package/src/components/chat/export/conversation-export-actions.svelte +0 -174
- package/src/components/chat/export/index.ts +0 -9
- package/src/components/chat/index.ts +0 -160
- package/src/components/chat/input/attachment-kind.ts +0 -28
- package/src/components/chat/input/chat-attachment-preview.svelte +0 -223
- package/src/components/chat/input/chat-attachment-serialization.ts +0 -63
- package/src/components/chat/input/chat-attachment.ts +0 -12
- package/src/components/chat/input/chat-input.svelte +0 -810
- package/src/components/chat/input/index.ts +0 -9
- package/src/components/chat/message/chat-date-separator.svelte +0 -87
- package/src/components/chat/message/chat-message-parts-renderer.svelte +0 -139
- package/src/components/chat/message/chat-message-parts.ts +0 -163
- package/src/components/chat/message/chat-message.svelte +0 -861
- package/src/components/chat/message/chat-read-receipt.svelte +0 -85
- package/src/components/chat/message/image-lightbox.svelte +0 -255
- package/src/components/chat/message/index.ts +0 -6
- package/src/components/chat/message/markdown-preview.svelte +0 -77
- package/src/components/chat/message/message-attachments.svelte +0 -178
- package/src/components/chat/message/message-content.svelte +0 -132
- package/src/components/chat/message/parts/image-part.svelte +0 -11
- package/src/components/chat/message/parts/markdown-part.svelte +0 -17
- package/src/components/chat/message/parts/reasoning-part.svelte +0 -274
- package/src/components/chat/message/parts/step-part.svelte +0 -127
- package/src/components/chat/message/parts/suggestion-part.svelte +0 -83
- package/src/components/chat/message/parts/tool-approval-part.svelte +0 -298
- package/src/components/chat/message/parts/tool-call-part.svelte +0 -19
- package/src/components/chat/message/parts/tool-result-part.svelte +0 -65
- package/src/components/chat/message/tool-call-group.svelte +0 -274
- package/src/components/chat/message/tool-payload-code.svelte +0 -35
- package/src/components/chat/utilities/conversation.ts +0 -44
- package/src/components/chat/utilities/index.ts +0 -33
- package/src/components/chat/utilities/types.ts +0 -288
- package/src/components/chat/utilities/utilities.ts +0 -507
- package/src/components/chat-composer-popover/chat-composer-popover-filter.ts +0 -68
- package/src/components/chat-composer-popover/chat-composer-popover.css +0 -7
- package/src/components/chat-composer-popover/chat-composer-popover.examples.json +0 -13
- package/src/components/chat-composer-popover/chat-composer-popover.schema.json +0 -90
- package/src/components/chat-composer-popover/chat-composer-popover.schema.ts +0 -95
- package/src/components/chat-composer-popover/chat-composer-popover.svelte +0 -234
- package/src/components/chat-composer-popover/chat-composer-popover.types.ts +0 -88
- package/src/components/chat-composer-popover/chat-composer-popover.variables.json +0 -1
- package/src/components/chat-composer-popover/chat-composer-popover.variables.ts +0 -3
- package/src/components/chat-composer-popover/index.ts +0 -19
- package/src/components/chat-conversation-header/chat-conversation-header.css +0 -51
- package/src/components/chat-conversation-header/chat-conversation-header.examples.json +0 -13
- package/src/components/chat-conversation-header/chat-conversation-header.schema.json +0 -34
- package/src/components/chat-conversation-header/chat-conversation-header.schema.ts +0 -38
- package/src/components/chat-conversation-header/chat-conversation-header.svelte +0 -49
- package/src/components/chat-conversation-header/chat-conversation-header.types.ts +0 -20
- package/src/components/chat-conversation-header/chat-conversation-header.variables.json +0 -1
- package/src/components/chat-conversation-header/chat-conversation-header.variables.ts +0 -3
- package/src/components/chat-conversation-header/index.ts +0 -9
- package/src/components/chat-conversation-list/chat-conversation-list.css +0 -127
- package/src/components/chat-conversation-list/chat-conversation-list.examples.json +0 -13
- package/src/components/chat-conversation-list/chat-conversation-list.schema.json +0 -45
- package/src/components/chat-conversation-list/chat-conversation-list.schema.ts +0 -52
- package/src/components/chat-conversation-list/chat-conversation-list.svelte +0 -75
- package/src/components/chat-conversation-list/chat-conversation-list.types.ts +0 -18
- package/src/components/chat-conversation-list/chat-conversation-list.variables.json +0 -1
- package/src/components/chat-conversation-list/chat-conversation-list.variables.ts +0 -3
- package/src/components/chat-conversation-list/conversation-summary.ts +0 -88
- package/src/components/chat-conversation-list/index.ts +0 -11
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Runes helper for chat scroll state management.
|
|
3
|
-
*
|
|
4
|
-
* Manages:
|
|
5
|
-
* - atBottom state for auto-scroll decisions
|
|
6
|
-
* - showJumpButton state for jump-to-latest visibility
|
|
7
|
-
* - Scroll event listener attachment
|
|
8
|
-
* - IntersectionObserver for bottom sentinel
|
|
9
|
-
* - Imperative scroll methods
|
|
10
|
-
*/
|
|
11
|
-
import type { Attachment } from 'svelte/attachments';
|
|
12
|
-
import type { ChatScrollStateChangeEvent } from './chat-events.ts';
|
|
13
|
-
export type { ChatScrollStateChangeEvent as ScrollStateChangeEvent } from './chat-events.ts';
|
|
14
|
-
/** Options for the scroll state helper */
|
|
15
|
-
export interface UseChatScrollStateOptions {
|
|
16
|
-
/** Pixels from bottom to consider "at bottom" (default: 150) */
|
|
17
|
-
bottomThreshold?: number;
|
|
18
|
-
/** Getter for bottom threshold to avoid stale local references */
|
|
19
|
-
getBottomThreshold?: () => number;
|
|
20
|
-
/** Pixels scrolled before showing jump button (default: 200) */
|
|
21
|
-
jumpThreshold?: number;
|
|
22
|
-
/** Getter for jump threshold to avoid stale local references */
|
|
23
|
-
getJumpThreshold?: () => number;
|
|
24
|
-
/**
|
|
25
|
-
* Callback when scroll state changes.
|
|
26
|
-
*
|
|
27
|
-
* **Important:** Always read values from the event argument, not from bindings.
|
|
28
|
-
* The callback fires before bindable props are synchronized, so bindings may
|
|
29
|
-
* contain stale values during the callback.
|
|
30
|
-
*/
|
|
31
|
-
onScrollStateChange?: (event: ChatScrollStateChangeEvent) => void;
|
|
32
|
-
/** Callback when scroll reaches bottom (for clearing unread state) */
|
|
33
|
-
onReachBottom?: () => void;
|
|
34
|
-
}
|
|
35
|
-
/** Return type for the scroll state helper */
|
|
36
|
-
export interface UseChatScrollStateReturn {
|
|
37
|
-
/** Whether the viewport is at or near the bottom */
|
|
38
|
-
readonly atBottom: boolean;
|
|
39
|
-
/** Whether the jump-to-latest button should be visible */
|
|
40
|
-
readonly showJumpButton: boolean;
|
|
41
|
-
/** Whether user is in a smooth scroll animation (used by parent for auto-scroll logic) */
|
|
42
|
-
readonly isUserScrolling: boolean;
|
|
43
|
-
/** Set atBottom state directly */
|
|
44
|
-
setAtBottom(value: boolean): void;
|
|
45
|
-
/** Create a scroll event listener attachment for the viewport */
|
|
46
|
-
createScrollAttachment(): Attachment<HTMLElement>;
|
|
47
|
-
/**
|
|
48
|
-
* Create an IntersectionObserver for the bottom sentinel.
|
|
49
|
-
* Returns a cleanup function, or undefined if elements are missing.
|
|
50
|
-
*/
|
|
51
|
-
createSentinelObserver(viewport: HTMLElement | null, sentinel: HTMLElement | null): (() => void) | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* IntersectionObserver callback for the bottom sentinel element.
|
|
54
|
-
* Use with useIntersection for attachment-based wiring:
|
|
55
|
-
* `{@attach useIntersection(scrollState.handleSentinelEntry, { root: viewport, ... })}`.
|
|
56
|
-
*/
|
|
57
|
-
handleSentinelEntry(entry: IntersectionObserverEntry): void;
|
|
58
|
-
/** Scroll to the bottom of the viewport */
|
|
59
|
-
scrollToBottom(viewport: HTMLElement | null): void;
|
|
60
|
-
/** Scroll to the top of the viewport */
|
|
61
|
-
scrollToTop(viewport: HTMLElement | null): void;
|
|
62
|
-
/**
|
|
63
|
-
* Jump to the latest message with animation.
|
|
64
|
-
* Handles smooth scroll and focuses the last message after animation.
|
|
65
|
-
*/
|
|
66
|
-
jumpToLatest(viewport: HTMLElement | null, onComplete?: () => void): void;
|
|
67
|
-
/** Get the appropriate scroll behavior based on user preference */
|
|
68
|
-
getScrollBehavior(): ScrollBehavior;
|
|
69
|
-
/** Cleanup resources */
|
|
70
|
-
destroy(): void;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Creates reactive state and methods for managing chat scroll behavior.
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```svelte
|
|
77
|
-
* <script lang="ts">
|
|
78
|
-
* import { useChatScrollState } from './use-chat-scroll-state.svelte';
|
|
79
|
-
*
|
|
80
|
-
* const scrollState = useChatScrollState({
|
|
81
|
-
* bottomThreshold: 150,
|
|
82
|
-
* jumpThreshold: 200,
|
|
83
|
-
* onScrollStateChange: (event) => console.log('Scroll:', event),
|
|
84
|
-
* onReachBottom: () => unreadState.markAllAsRead(),
|
|
85
|
-
* });
|
|
86
|
-
*
|
|
87
|
-
* const scrollAttachment = scrollState.createScrollAttachment();
|
|
88
|
-
*
|
|
89
|
-
* // Wire the bottom sentinel with useIntersection via {@attach}. Wrap in $derived so
|
|
90
|
-
* // the observer is stable across re-renders (recreated only when root/threshold change).
|
|
91
|
-
* const sentinelAttach = $derived(
|
|
92
|
-
* useIntersection(scrollState.handleSentinelEntry, {
|
|
93
|
-
* root: viewport,
|
|
94
|
-
* rootMargin: `0px 0px 150px 0px`,
|
|
95
|
-
* }),
|
|
96
|
-
* );
|
|
97
|
-
* </script>
|
|
98
|
-
*
|
|
99
|
-
* <div bind:this={viewport} {@attach scrollAttachment}>
|
|
100
|
-
* <!-- content -->
|
|
101
|
-
* <div {@attach sentinelAttach}></div>
|
|
102
|
-
* </div>
|
|
103
|
-
*
|
|
104
|
-
* {#if scrollState.showJumpButton}
|
|
105
|
-
* <button onclick={() => scrollState.jumpToLatest(viewport)}>
|
|
106
|
-
* Jump to latest
|
|
107
|
-
* </button>
|
|
108
|
-
* {/if}
|
|
109
|
-
* ```
|
|
110
|
-
*/
|
|
111
|
-
export declare function useChatScrollState(options?: UseChatScrollStateOptions): UseChatScrollStateReturn;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Runes helper for in-conversation message search.
|
|
3
|
-
*
|
|
4
|
-
* Manages:
|
|
5
|
-
* - Search query state
|
|
6
|
-
* - Open/closed state for the search bar
|
|
7
|
-
* - Derived list of matching messages (with their indices)
|
|
8
|
-
* - Current match index for navigation
|
|
9
|
-
*/
|
|
10
|
-
import type { Message } from '../conversation-model.ts';
|
|
11
|
-
/** A single search result: message and its position in the messages array */
|
|
12
|
-
export interface ChatSearchMatch {
|
|
13
|
-
/** The matching message */
|
|
14
|
-
message: Message;
|
|
15
|
-
/** Index of the message in the full messages array */
|
|
16
|
-
messageIndex: number;
|
|
17
|
-
}
|
|
18
|
-
/** Options for the search helper */
|
|
19
|
-
export interface UseChatSearchOptions {
|
|
20
|
-
/** Getter for the current list of messages */
|
|
21
|
-
getMessages: () => Message[];
|
|
22
|
-
}
|
|
23
|
-
/** Return type for the search helper */
|
|
24
|
-
export interface UseChatSearchReturn {
|
|
25
|
-
/** Current search query string */
|
|
26
|
-
readonly query: string;
|
|
27
|
-
/** Whether the search bar is open */
|
|
28
|
-
readonly isOpen: boolean;
|
|
29
|
-
/** All messages that match the current query */
|
|
30
|
-
readonly matches: ChatSearchMatch[];
|
|
31
|
-
/** Total number of matches */
|
|
32
|
-
readonly matchCount: number;
|
|
33
|
-
/** The currently highlighted match, or null if no matches */
|
|
34
|
-
readonly currentMatch: ChatSearchMatch | null;
|
|
35
|
-
/** Zero-based index of the current match within matches */
|
|
36
|
-
readonly currentMatchIndex: number;
|
|
37
|
-
/** Open the search bar */
|
|
38
|
-
open(): void;
|
|
39
|
-
/** Close the search bar and reset state */
|
|
40
|
-
close(): void;
|
|
41
|
-
/** Navigate to the next match (wraps around) */
|
|
42
|
-
nextMatch(): void;
|
|
43
|
-
/** Navigate to the previous match (wraps around) */
|
|
44
|
-
previousMatch(): void;
|
|
45
|
-
/** Update the search query and reset the current match to 0 */
|
|
46
|
-
setQuery(value: string): void;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Creates reactive state and methods for in-conversation search.
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* ```svelte
|
|
53
|
-
* <script lang="ts">
|
|
54
|
-
* import { useChatSearch } from './use-chat-search.svelte';
|
|
55
|
-
*
|
|
56
|
-
* const searchState = useChatSearch({
|
|
57
|
-
* getMessages: () => messages,
|
|
58
|
-
* });
|
|
59
|
-
*
|
|
60
|
-
* // Open with Ctrl/Cmd+F
|
|
61
|
-
* function handleKeyDown(event: KeyboardEvent) {
|
|
62
|
-
* if ((event.ctrlKey || event.metaKey) && event.key === 'f') {
|
|
63
|
-
* event.preventDefault();
|
|
64
|
-
* searchState.open();
|
|
65
|
-
* }
|
|
66
|
-
* }
|
|
67
|
-
* </script>
|
|
68
|
-
*
|
|
69
|
-
* {#if searchState.isOpen}
|
|
70
|
-
* <ChatSearchBar
|
|
71
|
-
* query={searchState.query}
|
|
72
|
-
* matchCount={searchState.matchCount}
|
|
73
|
-
* currentMatchIndex={searchState.currentMatchIndex}
|
|
74
|
-
* onquerychange={searchState.setQuery}
|
|
75
|
-
* onnext={searchState.nextMatch}
|
|
76
|
-
* onprevious={searchState.previousMatch}
|
|
77
|
-
* onclose={searchState.close}
|
|
78
|
-
* />
|
|
79
|
-
* {/if}
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
|
-
export declare function useChatSearch(options: UseChatSearchOptions): UseChatSearchReturn;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-participant typing indicator state for the Chat component.
|
|
3
|
-
*
|
|
4
|
-
* Merges two sources of typing state:
|
|
5
|
-
* 1. The `typingParticipants` prop — a plain array of {@link TypingParticipant}
|
|
6
|
-
* objects passed directly by the consumer (no adapter required).
|
|
7
|
-
* 2. The adapter's `onTypingChange` push handler, forwarded by the container
|
|
8
|
-
* via the `onAdapterTypingChange` callback below.
|
|
9
|
-
*
|
|
10
|
-
* The adapter path produces only a boolean (isTyping). When an adapter delivers
|
|
11
|
-
* a typing-start event without participant metadata, a synthetic participant is
|
|
12
|
-
* inserted with id `'__adapter__'` and a fallback name so the indicator can still
|
|
13
|
-
* render. This keeps the render path uniform (always off a participant list).
|
|
14
|
-
*
|
|
15
|
-
* Accessibility contract (enforced in the component, not here):
|
|
16
|
-
* - A single always-in-DOM `<div aria-live="polite" aria-atomic="true">` outside
|
|
17
|
-
* the `role="log"` div; text is `""` when nobody is typing.
|
|
18
|
-
* - Announcements are debounced 400 ms to filter keystroke-level noise
|
|
19
|
-
* (inter-key intervals ~100–200ms) while staying within the ~300–500ms
|
|
20
|
-
* responsiveness window expected by NVDA/JAWS.
|
|
21
|
-
* - The announced text contains no trailing ellipsis (just names).
|
|
22
|
-
*
|
|
23
|
-
* @module
|
|
24
|
-
*/
|
|
25
|
-
import type { TypingParticipant } from '../chat.types.ts';
|
|
26
|
-
export type UseChatTypingIndicatorOptions = {
|
|
27
|
-
/**
|
|
28
|
-
* Getter returning the current `typingParticipants` prop value. Called
|
|
29
|
-
* reactively via `$derived` inside this hook — the getter pattern avoids
|
|
30
|
-
* carrying a `$props()` dependency here.
|
|
31
|
-
*/
|
|
32
|
-
getTypingParticipants: () => TypingParticipant[] | undefined;
|
|
33
|
-
};
|
|
34
|
-
export type UseChatTypingIndicatorResult = {
|
|
35
|
-
/**
|
|
36
|
-
* The human-readable label to show in the typing indicator region.
|
|
37
|
-
* Empty string when nobody is typing.
|
|
38
|
-
*/
|
|
39
|
-
readonly typingLabel: string;
|
|
40
|
-
/**
|
|
41
|
-
* The same label, but debounced for the `aria-live` region. Cleared immediately
|
|
42
|
-
* when all participants stop typing; delayed 400 ms before appearing (to avoid
|
|
43
|
-
* announcing very brief typing bursts).
|
|
44
|
-
*/
|
|
45
|
-
readonly announcedLabel: string;
|
|
46
|
-
/** Total number of currently-typing participants. */
|
|
47
|
-
readonly participantCount: number;
|
|
48
|
-
/**
|
|
49
|
-
* Receive a boolean typing flag from the adapter's `onTypingChange` push.
|
|
50
|
-
* Internally maps it to/from the synthetic `__adapter__` participant.
|
|
51
|
-
*/
|
|
52
|
-
handleAdapterTypingChange: (isTyping: boolean) => void;
|
|
53
|
-
/**
|
|
54
|
-
* Clear all adapter-derived typing state and any pending debounce. Called by
|
|
55
|
-
* the container on conversation change / subscription teardown so a typing
|
|
56
|
-
* event from one conversation cannot leak into the next.
|
|
57
|
-
*/
|
|
58
|
-
reset: () => void;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* Derive the visible typing label from a participant list.
|
|
62
|
-
*
|
|
63
|
-
* Truncation rules:
|
|
64
|
-
* - 0 participants → `""` (empty — indicator hidden)
|
|
65
|
-
* - 1 participant → `"Alice is typing…"`
|
|
66
|
-
* - 2 participants → `"Alice and Bob are typing…"`
|
|
67
|
-
* - 3–4 participants → `"3 people are typing…"`
|
|
68
|
-
* - 5+ participants → `"Several people are typing…"`
|
|
69
|
-
*/
|
|
70
|
-
export declare function deriveTypingLabel(participants: TypingParticipant[]): string;
|
|
71
|
-
/**
|
|
72
|
-
* Derive the announced text for the `aria-live` region. Same as the visible
|
|
73
|
-
* label but WITHOUT the trailing ellipsis (screen readers add their own pause).
|
|
74
|
-
*/
|
|
75
|
-
export declare function deriveAnnouncedLabel(participants: TypingParticipant[]): string;
|
|
76
|
-
export declare function useChatTypingIndicator(options: UseChatTypingIndicatorOptions): UseChatTypingIndicatorResult;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Runes helper for chat unread state tracking.
|
|
3
|
-
*
|
|
4
|
-
* Manages:
|
|
5
|
-
* - Unread message count
|
|
6
|
-
* - New message indicator visibility
|
|
7
|
-
* - First unread message ID for divider placement
|
|
8
|
-
* - Screen reader announcements
|
|
9
|
-
*/
|
|
10
|
-
import type { Message } from '../conversation-model.ts';
|
|
11
|
-
import type { ChatUnreadIndicatorChangeEvent } from './chat-events.ts';
|
|
12
|
-
export type { ChatUnreadIndicatorChangeEvent as UnreadIndicatorChangeEvent } from './chat-events.ts';
|
|
13
|
-
/** Options for the unread state helper */
|
|
14
|
-
export interface UseChatUnreadStateOptions {
|
|
15
|
-
/** Debounce delay for screen reader announcements (default: 300ms) */
|
|
16
|
-
announcerDebounceMs?: number;
|
|
17
|
-
/**
|
|
18
|
-
* Callback when unread indicator state changes.
|
|
19
|
-
*
|
|
20
|
-
* **Important:** Always read values from the event argument, not from bindings.
|
|
21
|
-
* The callback fires before bindable props are synchronized, so bindings may
|
|
22
|
-
* contain stale values during the callback.
|
|
23
|
-
*/
|
|
24
|
-
onUnreadIndicatorChange?: (event: ChatUnreadIndicatorChangeEvent) => void;
|
|
25
|
-
}
|
|
26
|
-
/** Return type for the unread state helper */
|
|
27
|
-
export interface UseChatUnreadStateReturn {
|
|
28
|
-
/** Current count of unread messages */
|
|
29
|
-
readonly unreadCount: number;
|
|
30
|
-
/** Whether the new message indicator should be visible */
|
|
31
|
-
readonly newMessageIndicatorVisible: boolean;
|
|
32
|
-
/** ID of the first unread message (for divider placement) */
|
|
33
|
-
readonly firstUnreadId: string | null;
|
|
34
|
-
/** Formatted unread count for display (caps at "99+") */
|
|
35
|
-
readonly displayUnreadCount: string;
|
|
36
|
-
/** Whether the count exceeds 99 (for compact badge styling) */
|
|
37
|
-
readonly hasLargeCount: boolean;
|
|
38
|
-
/** Current screen reader announcement message */
|
|
39
|
-
readonly announcerMessage: string;
|
|
40
|
-
/** Mark all messages as read (resets unread state) */
|
|
41
|
-
markAllAsRead(): void;
|
|
42
|
-
/**
|
|
43
|
-
* Process messages to detect new arrivals and update unread state.
|
|
44
|
-
* Should be called in an $effect when messages change.
|
|
45
|
-
*
|
|
46
|
-
* @param getAtBottom - Getter function to read atBottom without creating a dependency.
|
|
47
|
-
* This allows the effect to only re-run when messages change, not on scroll.
|
|
48
|
-
*/
|
|
49
|
-
processMessages(messages: Message[], conversationId: string, getAtBottom: () => boolean): void;
|
|
50
|
-
/** Cleanup resources */
|
|
51
|
-
destroy(): void;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Creates reactive state and methods for tracking unread messages.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```svelte
|
|
58
|
-
* <script lang="ts">
|
|
59
|
-
* import { useChatUnreadState } from './use-chat-unread-state.svelte';
|
|
60
|
-
*
|
|
61
|
-
* const unreadState = useChatUnreadState({
|
|
62
|
-
* onUnreadIndicatorChange: (event) => console.log('Unread changed:', event),
|
|
63
|
-
* });
|
|
64
|
-
*
|
|
65
|
-
* // Call in an $effect to process message changes
|
|
66
|
-
* // Pass a getter function for atBottom to avoid creating a scroll dependency
|
|
67
|
-
* $effect(() => {
|
|
68
|
-
* unreadState.processMessages(messages, conversation.id, () => scrollState.atBottom);
|
|
69
|
-
* });
|
|
70
|
-
*
|
|
71
|
-
* // Mark as read when user scrolls to bottom
|
|
72
|
-
* if (atBottom) unreadState.markAllAsRead();
|
|
73
|
-
* </script>
|
|
74
|
-
*
|
|
75
|
-
* <div aria-live="polite" class="sr-only">
|
|
76
|
-
* {unreadState.announcerMessage}
|
|
77
|
-
* </div>
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
export declare function useChatUnreadState(options?: UseChatUnreadStateOptions): UseChatUnreadStateReturn;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { Attachment } from 'svelte/attachments';
|
|
2
|
-
import type { VirtualItem } from '../../../_internal/virtual-item.ts';
|
|
3
|
-
type ChatScrollBehavior = ScrollBehavior | 'instant';
|
|
4
|
-
type ChatScrollToOptions = {
|
|
5
|
-
align?: 'auto' | 'start' | 'center' | 'end';
|
|
6
|
-
behavior?: ChatScrollBehavior;
|
|
7
|
-
};
|
|
8
|
-
export type ChatVirtualizerOptions = {
|
|
9
|
-
getScrollElement: () => HTMLElement | null;
|
|
10
|
-
getCount: () => number;
|
|
11
|
-
getItemKey: (index: number) => string | number;
|
|
12
|
-
getEstimatedSize: () => number;
|
|
13
|
-
getOverscan: () => number;
|
|
14
|
-
getInitialHeight: () => number;
|
|
15
|
-
getScrollPaddingStart?: () => number;
|
|
16
|
-
};
|
|
17
|
-
export type ChatVirtualWindowInput = {
|
|
18
|
-
scrollTop: number;
|
|
19
|
-
containerHeight: number;
|
|
20
|
-
itemCount: number;
|
|
21
|
-
itemSize: number;
|
|
22
|
-
overscan: number;
|
|
23
|
-
};
|
|
24
|
-
export type ChatVirtualWindow = {
|
|
25
|
-
startIndex: number;
|
|
26
|
-
endIndex: number;
|
|
27
|
-
};
|
|
28
|
-
export declare function calculateChatVirtualWindow(input: ChatVirtualWindowInput): ChatVirtualWindow;
|
|
29
|
-
export declare class ChatVirtualizer {
|
|
30
|
-
#private;
|
|
31
|
-
readonly options: ChatVirtualizerOptions;
|
|
32
|
-
constructor(options: ChatVirtualizerOptions);
|
|
33
|
-
get virtualItems(): VirtualItem[];
|
|
34
|
-
get totalSize(): number;
|
|
35
|
-
get scrollPaddingStart(): number;
|
|
36
|
-
get scrollSize(): number;
|
|
37
|
-
get scrollOffset(): number;
|
|
38
|
-
setScrollElement(element: HTMLElement | null): void;
|
|
39
|
-
scrollElement: Attachment<HTMLElement>;
|
|
40
|
-
measureElement: Attachment<HTMLElement>;
|
|
41
|
-
measureElementNode(node: HTMLElement | null): void;
|
|
42
|
-
syncOptions(): void;
|
|
43
|
-
scrollToIndex(index: number, options?: ChatScrollToOptions): void;
|
|
44
|
-
getVirtualItem(index: number): VirtualItem | null;
|
|
45
|
-
scrollToOffset(offset: number, options?: ChatScrollToOptions): void;
|
|
46
|
-
}
|
|
47
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Conversationalist data model types for the Chat component.
|
|
3
|
-
*
|
|
4
|
-
* Chat renders immutable transcript snapshots and keeps its public `conversation`
|
|
5
|
-
* prop aligned with the published `conversationalist` package. This file is a
|
|
6
|
-
* type-only bridge so Cinder does not maintain a stale structural mirror.
|
|
7
|
-
*
|
|
8
|
-
* @module
|
|
9
|
-
*/
|
|
10
|
-
import type { ToMarkdownOptions as ConversationalistToMarkdownOptions } from 'conversationalist/markdown';
|
|
11
|
-
export type { AssistantMessage, ContainerUploadContent, Conversation, ConversationActionType, ConversationEnvironment, ConversationEvent, ConversationEventMap, ConversationEventType, ConversationHistory, ConversationHistoryDraft, ConversationNodeSnapshot, ConversationSnapshot, ConversationStatus, ImageContent, JSONValue, Message, MessageInput, MessageRole, MultiModalContent, RedactedThinkingContent, ServerToolResultContent, ServerToolResultType, ServerToolUseContent, TextContent, ThinkingContent, TokenUsage, ToolAction, ToolCall, ToolCallInput, ToolError, ToolErrorCategory, ToolInteraction, ToolResult, ToolResultInput, WebSearchToolResultContent, } from 'conversationalist';
|
|
12
|
-
export type { ToolCallPair } from 'conversationalist/utilities';
|
|
13
|
-
/** Base options shared by all transcript export operations. */
|
|
14
|
-
export type ExportOptions = Omit<ConversationalistToMarkdownOptions, 'includeMetadata'>;
|
|
15
|
-
/** Options for exporting a transcript to markdown. */
|
|
16
|
-
export type ToMarkdownOptions = ConversationalistToMarkdownOptions;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ConversationHistory } from '../conversation-model.ts';
|
|
2
|
-
export type ExportFormat = 'markdown' | 'json';
|
|
3
|
-
export interface ConversationExportActionsProps {
|
|
4
|
-
/** Required unique ID for SSR stability and accessibility */
|
|
5
|
-
id: string;
|
|
6
|
-
/** The conversation to export */
|
|
7
|
-
conversation: ConversationHistory;
|
|
8
|
-
/** Called when export succeeds */
|
|
9
|
-
onexported?: (format: ExportFormat) => void;
|
|
10
|
-
/** Called when export fails (clipboard error) */
|
|
11
|
-
onexportfailed?: (format: ExportFormat, error: string) => void;
|
|
12
|
-
/** Additional CSS classes */
|
|
13
|
-
class?: string;
|
|
14
|
-
}
|
|
15
|
-
declare const ConversationExportActions: import("svelte").Component<ConversationExportActionsProps, {}, "">;
|
|
16
|
-
type ConversationExportActions = ReturnType<typeof ConversationExportActions>;
|
|
17
|
-
export default ConversationExportActions;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Chat feature components.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports from all chat subdirectories for convenient access.
|
|
5
|
-
*
|
|
6
|
-
* @module
|
|
7
|
-
*/
|
|
8
|
-
import { CURRENT_SCHEMA_VERSION } from 'conversationalist/versioning';
|
|
9
|
-
import './chat.css';
|
|
10
|
-
import Chat from './chat.svelte';
|
|
11
|
-
export default Chat;
|
|
12
|
-
export type { ChatAnnounceLevel, ChatCapabilities, ChatProps, ReadReceipt, TypingParticipant, } from './chat.types.ts';
|
|
13
|
-
export { Chat, CURRENT_SCHEMA_VERSION };
|
|
14
|
-
export type { ChatAdapter, ChatAdapterErrorEvent, ChatCommand, ChatPushHandlers, ChatReadReceiptEvent, } from './adapter';
|
|
15
|
-
export { appendAssistantMessage, appendMessages, appendUserMessage, createConversation, } from './builders.ts';
|
|
16
|
-
export { appendStreamingMessage, cancelStreamingMessage, finalizeStreamingMessage, updateStreamingMessage, } from 'conversationalist/streaming';
|
|
17
|
-
export type { AssistantMessage, ContainerUploadContent, Conversation, ConversationActionType, ConversationEnvironment, ConversationEvent, ConversationEventMap, ConversationEventType, ConversationHistory, ConversationHistoryDraft, ConversationNodeSnapshot, ConversationSnapshot, ConversationStatus, ExportOptions, ImageContent, JSONValue, Message, MessageInput, MessageRole, MultiModalContent, RedactedThinkingContent, ServerToolResultContent, ServerToolResultType, ServerToolUseContent, TextContent, ThinkingContent, TokenUsage, ToMarkdownOptions, ToolAction, ToolCall, ToolCallInput, ToolCallPair, ToolError, ToolErrorCategory, ToolInteraction, ToolResult, ToolResultInput, WebSearchToolResultContent, } from './conversation-model.ts';
|
|
18
|
-
export { formatMessageAsMarkdown, getMessageRoleLabel, getMessageText, messagesToMarkdown, type ChatExportOptions, type DeliveryStatus, } from './utilities';
|
|
19
|
-
export { ChatAttachmentPreview, ChatInput, deriveAttachmentKind, serializeChatAttachment, serializeChatAttachments, } from './input';
|
|
20
|
-
export type { AttachmentKind, ChatAttachment, SerializedChatAttachment } from './input';
|
|
21
|
-
export { ChatDateSeparator, ChatMessage, MessageAttachments, MessageContent, ToolCallGroup, } from './message';
|
|
22
|
-
export { calculateScrollToBottom, calculateUnreadCount, DEFAULT_SCROLL_CONFIGURATION, extractTimestamp, findUnreadBoundaryIndex, isAtBottom, shouldShowJumpToLatest, } from './container';
|
|
23
|
-
export type { ChatScrollStateChangeEvent, ChatStopGeneratingEvent, ChatSubmitEvent, ChatUnreadIndicatorChangeEvent, ScrollConfiguration, ScrollState, } from './container';
|
|
24
|
-
export { ConversationExportActions } from './export';
|
|
25
|
-
export { ArtifactPanel, ArtifactViewer, ChatArtifactLayout } from './artifact';
|