@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,127 +0,0 @@
|
|
|
1
|
-
@layer cinder.tokens, cinder.foundation, cinder.components, cinder.utilities;
|
|
2
|
-
@layer cinder.components {
|
|
3
|
-
.cinder-chat-conversation-list {
|
|
4
|
-
display: block;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.cinder-chat-conversation-list__items {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
gap: var(--cinder-space-1);
|
|
11
|
-
list-style: none;
|
|
12
|
-
margin: 0;
|
|
13
|
-
padding: 0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.cinder-chat-conversation-list__item {
|
|
17
|
-
list-style: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.cinder-chat-conversation-list__button {
|
|
21
|
-
position: relative;
|
|
22
|
-
display: grid;
|
|
23
|
-
grid-template-columns: minmax(0, 1fr) max-content;
|
|
24
|
-
gap: var(--cinder-space-0-5) var(--cinder-space-2);
|
|
25
|
-
align-items: start;
|
|
26
|
-
width: 100%;
|
|
27
|
-
min-height: 3.25rem;
|
|
28
|
-
padding: var(--cinder-space-2) var(--cinder-space-3);
|
|
29
|
-
text-align: start;
|
|
30
|
-
color: var(--cinder-text);
|
|
31
|
-
background: transparent;
|
|
32
|
-
border: 1px solid transparent;
|
|
33
|
-
border-radius: var(--cinder-radius-md);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.cinder-chat-conversation-list__button[data-cinder-conversation-interactive] {
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.cinder-chat-conversation-list__button[data-cinder-conversation-selected] {
|
|
41
|
-
background: var(--cinder-surface-raised);
|
|
42
|
-
border-color: var(--cinder-border);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@media (hover: hover) {
|
|
46
|
-
.cinder-chat-conversation-list__button[data-cinder-conversation-interactive]:hover {
|
|
47
|
-
background: var(--cinder-surface-hover);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.cinder-chat-conversation-list__button[data-cinder-conversation-interactive]:focus-visible {
|
|
52
|
-
outline: var(--cinder-ring-width) solid transparent;
|
|
53
|
-
box-shadow: var(--_cinder-focus-ring-shadow);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@media (forced-colors: active) {
|
|
57
|
-
.cinder-chat-conversation-list__button[data-cinder-conversation-interactive]:focus-visible {
|
|
58
|
-
outline: var(--cinder-ring-width) solid ButtonText;
|
|
59
|
-
/* ButtonText is correct here: this is a button/navigation control using
|
|
60
|
-
aria-current="page" (page-nav semantics, not aria-selected list-selection).
|
|
61
|
-
Highlight/HighlightText would be wrong — those are for selected listbox items.
|
|
62
|
-
3px separates the ring from ButtonBorder, which renders in forced-colors
|
|
63
|
-
mode on all button elements regardless of their standard-mode border color. */
|
|
64
|
-
outline-offset: 3px;
|
|
65
|
-
box-shadow: none;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.cinder-chat-conversation-list__title {
|
|
70
|
-
grid-column: 1;
|
|
71
|
-
grid-row: 1;
|
|
72
|
-
min-width: 0;
|
|
73
|
-
overflow: hidden;
|
|
74
|
-
font-weight: var(--cinder-font-medium);
|
|
75
|
-
text-overflow: ellipsis;
|
|
76
|
-
white-space: nowrap;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.cinder-chat-conversation-list__preview {
|
|
80
|
-
grid-column: 1;
|
|
81
|
-
grid-row: 2;
|
|
82
|
-
min-width: 0;
|
|
83
|
-
overflow: hidden;
|
|
84
|
-
color: var(--cinder-text-muted);
|
|
85
|
-
font-size: var(--cinder-text-sm);
|
|
86
|
-
text-overflow: ellipsis;
|
|
87
|
-
white-space: nowrap;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.cinder-chat-conversation-list__badge {
|
|
91
|
-
grid-column: 2;
|
|
92
|
-
grid-row: 1 / span 2;
|
|
93
|
-
align-self: center;
|
|
94
|
-
justify-self: end;
|
|
95
|
-
display: inline-flex;
|
|
96
|
-
align-items: center;
|
|
97
|
-
justify-content: center;
|
|
98
|
-
min-width: 1.5rem;
|
|
99
|
-
min-height: 1.5rem;
|
|
100
|
-
inline-size: max-content;
|
|
101
|
-
max-inline-size: max-content;
|
|
102
|
-
padding-inline: var(--cinder-space-1);
|
|
103
|
-
color: var(--cinder-accent-text);
|
|
104
|
-
background: color-mix(in oklch, var(--cinder-accent), transparent 88%);
|
|
105
|
-
border-radius: var(--cinder-radius-full);
|
|
106
|
-
font-size: var(--cinder-text-xs);
|
|
107
|
-
font-weight: var(--cinder-font-medium);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.cinder-chat-conversation-list__empty {
|
|
111
|
-
margin: 0;
|
|
112
|
-
color: var(--cinder-text-muted);
|
|
113
|
-
font-size: var(--cinder-text-sm);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.cinder-chat-conversation-list .sr-only {
|
|
117
|
-
position: absolute;
|
|
118
|
-
width: 1px;
|
|
119
|
-
height: 1px;
|
|
120
|
-
padding: 0;
|
|
121
|
-
margin: -1px;
|
|
122
|
-
overflow: hidden;
|
|
123
|
-
clip: rect(0, 0, 0, 0);
|
|
124
|
-
white-space: nowrap;
|
|
125
|
-
border: 0;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "../../schemas/examples.schema.json",
|
|
3
|
-
"component": "chat-conversation-list",
|
|
4
|
-
"import": "@lostgradient/cinder/chat-conversation-list",
|
|
5
|
-
"examples": [
|
|
6
|
-
{
|
|
7
|
-
"id": "basic",
|
|
8
|
-
"title": "Basic conversation list",
|
|
9
|
-
"description": "Conversation summaries with an active conversation and unread count.",
|
|
10
|
-
"code": "<script lang=\"ts\">\n import { ChatConversationList, type ConversationSummary } from '@lostgradient/cinder';\n\n const conversations: ConversationSummary[] = [\n {\n id: 'launch',\n title: 'Launch support',\n status: 'active',\n messageCount: 12,\n unreadCount: 2,\n createdAt: '2026-06-01T08:00:00.000Z',\n updatedAt: '2026-06-01T08:45:00.000Z',\n lastMessageId: 'launch-last',\n lastMessageRole: 'assistant',\n lastMessageText: 'I drafted the launch checklist.',\n lastMessageAt: '2026-06-01T08:45:00.000Z',\n participantNames: ['Ada', 'Grace'],\n },\n {\n id: 'billing',\n title: 'Billing question',\n status: 'active',\n messageCount: 4,\n unreadCount: 0,\n createdAt: '2026-06-01T07:00:00.000Z',\n updatedAt: '2026-06-01T07:20:00.000Z',\n lastMessageId: 'billing-last',\n lastMessageRole: 'user',\n lastMessageText: 'Can you resend the invoice?',\n lastMessageAt: '2026-06-01T07:20:00.000Z',\n participantNames: ['Lin'],\n },\n ];\n</script>\n\n<ChatConversationList {conversations} activeConversationId=\"launch\" />\n"
|
|
11
|
-
}
|
|
12
|
-
]
|
|
13
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"properties": {
|
|
5
|
-
"activeConversationId": {
|
|
6
|
-
"anyOf": [
|
|
7
|
-
{
|
|
8
|
-
"type": "string"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"type": "null"
|
|
12
|
-
}
|
|
13
|
-
],
|
|
14
|
-
"description": "Currently active conversation id."
|
|
15
|
-
},
|
|
16
|
-
"ariaLabel": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"description": "Accessible name for the conversations navigation landmark. Default `\"Conversations\"`."
|
|
19
|
-
},
|
|
20
|
-
"emptyText": {
|
|
21
|
-
"type": "string",
|
|
22
|
-
"description": "Empty state text when no conversations are present. Default `\"No conversations\"`."
|
|
23
|
-
},
|
|
24
|
-
"class": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"description": "Additional class name merged with `.cinder-chat-conversation-list`."
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"additionalProperties": false,
|
|
30
|
-
"metadata": {
|
|
31
|
-
"unsupportedProps": [
|
|
32
|
-
{
|
|
33
|
-
"name": "conversations",
|
|
34
|
-
"reason": "unknown-shape",
|
|
35
|
-
"required": true,
|
|
36
|
-
"description": "Conversation summaries to render. Sorts by latest message/update time descending."
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "onselectconversation",
|
|
40
|
-
"reason": "function-or-snippet",
|
|
41
|
-
"description": "Called when a conversation is selected."
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { ComponentSchema } from '../../schema-types';
|
|
2
|
-
|
|
3
|
-
const schema = {
|
|
4
|
-
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
5
|
-
type: 'object',
|
|
6
|
-
properties: {
|
|
7
|
-
activeConversationId: {
|
|
8
|
-
anyOf: [
|
|
9
|
-
{
|
|
10
|
-
type: 'string',
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
type: 'null',
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
description: 'Currently active conversation id.',
|
|
17
|
-
},
|
|
18
|
-
ariaLabel: {
|
|
19
|
-
type: 'string',
|
|
20
|
-
description:
|
|
21
|
-
'Accessible name for the conversations navigation landmark. Default `"Conversations"`.',
|
|
22
|
-
},
|
|
23
|
-
emptyText: {
|
|
24
|
-
type: 'string',
|
|
25
|
-
description:
|
|
26
|
-
'Empty state text when no conversations are present. Default `"No conversations"`.',
|
|
27
|
-
},
|
|
28
|
-
class: {
|
|
29
|
-
type: 'string',
|
|
30
|
-
description: 'Additional class name merged with `.cinder-chat-conversation-list`.',
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
additionalProperties: false,
|
|
34
|
-
metadata: {
|
|
35
|
-
unsupportedProps: [
|
|
36
|
-
{
|
|
37
|
-
name: 'conversations',
|
|
38
|
-
reason: 'unknown-shape',
|
|
39
|
-
required: true,
|
|
40
|
-
description:
|
|
41
|
-
'Conversation summaries to render. Sorts by latest message/update time descending.',
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
name: 'onselectconversation',
|
|
45
|
-
reason: 'function-or-snippet',
|
|
46
|
-
description: 'Called when a conversation is selected.',
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
},
|
|
50
|
-
} satisfies ComponentSchema;
|
|
51
|
-
|
|
52
|
-
export default schema as ComponentSchema;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
export { deriveConversationSummary } from './conversation-summary.ts';
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
|
-
<script lang="ts">
|
|
6
|
-
import { classNames } from '../../utilities/class-names.ts';
|
|
7
|
-
import { conversationSummaryTimestamp } from './conversation-summary.ts';
|
|
8
|
-
let { conversations, activeConversationId = null, ariaLabel = 'Conversations', emptyText = 'No conversations', class: className, onselectconversation, ...rest } = $props();
|
|
9
|
-
const sortedConversations = $derived.by(() => [...conversations].sort((a, b) => conversationSummaryTimestamp(b) - conversationSummaryTimestamp(a)));
|
|
10
|
-
function preview(summary) {
|
|
11
|
-
const text = summary.lastMessageText?.trim();
|
|
12
|
-
if (!text)
|
|
13
|
-
return summary.messageCount === 1 ? '1 message' : `${summary.messageCount} messages`;
|
|
14
|
-
return text.length > 96 ? `${text.slice(0, 93)}...` : text;
|
|
15
|
-
}
|
|
16
|
-
function unreadMessageLabel(unreadCount) {
|
|
17
|
-
return unreadCount === 1 ? '1 unread message' : `${unreadCount} unread messages`;
|
|
18
|
-
}
|
|
19
|
-
const resolvedAriaLabel = $derived(typeof ariaLabel === 'string' && ariaLabel.trim().length > 0 ? ariaLabel : undefined);
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<nav
|
|
23
|
-
{...rest}
|
|
24
|
-
class={classNames('cinder-chat-conversation-list', className)}
|
|
25
|
-
aria-label={resolvedAriaLabel}
|
|
26
|
-
>
|
|
27
|
-
{#if sortedConversations.length === 0}
|
|
28
|
-
<p class="cinder-chat-conversation-list__empty" role="status">{emptyText}</p>
|
|
29
|
-
{:else}
|
|
30
|
-
<ul class="cinder-chat-conversation-list__items">
|
|
31
|
-
{#each sortedConversations as conversation (conversation.id)}
|
|
32
|
-
{@const isActive = conversation.id === activeConversationId}
|
|
33
|
-
<li class="cinder-chat-conversation-list__item">
|
|
34
|
-
{#if onselectconversation}
|
|
35
|
-
<button
|
|
36
|
-
type="button"
|
|
37
|
-
class="cinder-chat-conversation-list__button"
|
|
38
|
-
aria-current={isActive ? 'page' : undefined}
|
|
39
|
-
data-cinder-conversation-item
|
|
40
|
-
data-cinder-conversation-interactive
|
|
41
|
-
data-cinder-conversation-selected={isActive ? '' : undefined}
|
|
42
|
-
onclick={() => onselectconversation(conversation.id)}
|
|
43
|
-
>
|
|
44
|
-
<span class="cinder-chat-conversation-list__title">{conversation.title}</span>
|
|
45
|
-
<span class="cinder-chat-conversation-list__preview">{preview(conversation)}</span>
|
|
46
|
-
{#if conversation.unreadCount > 0}
|
|
47
|
-
<span class="cinder-chat-conversation-list__badge" aria-hidden="true">
|
|
48
|
-
{conversation.unreadCount > 99 ? '99+' : conversation.unreadCount}
|
|
49
|
-
</span>
|
|
50
|
-
<span class="sr-only">, {unreadMessageLabel(conversation.unreadCount)}</span>
|
|
51
|
-
{/if}
|
|
52
|
-
</button>
|
|
53
|
-
{:else}
|
|
54
|
-
<div
|
|
55
|
-
class="cinder-chat-conversation-list__button"
|
|
56
|
-
aria-current={isActive ? 'page' : undefined}
|
|
57
|
-
data-cinder-conversation-item
|
|
58
|
-
data-cinder-conversation-static
|
|
59
|
-
data-cinder-conversation-selected={isActive ? '' : undefined}
|
|
60
|
-
>
|
|
61
|
-
<span class="cinder-chat-conversation-list__title">{conversation.title}</span>
|
|
62
|
-
<span class="cinder-chat-conversation-list__preview">{preview(conversation)}</span>
|
|
63
|
-
{#if conversation.unreadCount > 0}
|
|
64
|
-
<span class="cinder-chat-conversation-list__badge" aria-hidden="true">
|
|
65
|
-
{conversation.unreadCount > 99 ? '99+' : conversation.unreadCount}
|
|
66
|
-
</span>
|
|
67
|
-
<span class="sr-only">, {unreadMessageLabel(conversation.unreadCount)}</span>
|
|
68
|
-
{/if}
|
|
69
|
-
</div>
|
|
70
|
-
{/if}
|
|
71
|
-
</li>
|
|
72
|
-
{/each}
|
|
73
|
-
</ul>
|
|
74
|
-
{/if}
|
|
75
|
-
</nav>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
-
import type { ConversationSummary } from './conversation-summary.ts';
|
|
3
|
-
|
|
4
|
-
/** Props for the ChatConversationList component. */
|
|
5
|
-
export type ChatConversationListProps = Omit<HTMLAttributes<HTMLElement>, 'class'> & {
|
|
6
|
-
/** Conversation summaries to render. Sorts by latest message/update time descending. */
|
|
7
|
-
conversations: readonly ConversationSummary[];
|
|
8
|
-
/** Currently active conversation id. */
|
|
9
|
-
activeConversationId?: string | null;
|
|
10
|
-
/** Accessible name for the conversations navigation landmark. Default `"Conversations"`. */
|
|
11
|
-
ariaLabel?: string;
|
|
12
|
-
/** Empty state text when no conversations are present. Default `"No conversations"`. */
|
|
13
|
-
emptyText?: string;
|
|
14
|
-
/** Additional class name merged with `.cinder-chat-conversation-list`. */
|
|
15
|
-
class?: string;
|
|
16
|
-
/** Called when a conversation is selected. */
|
|
17
|
-
onselectconversation?: (conversationId: string) => void;
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[]
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
ConversationHistory,
|
|
3
|
-
ConversationStatus,
|
|
4
|
-
Message,
|
|
5
|
-
} from '../chat/conversation-model.ts';
|
|
6
|
-
import { getMessageText } from '../chat/utilities';
|
|
7
|
-
import { getMessages } from '../chat/utilities/conversation.ts';
|
|
8
|
-
|
|
9
|
-
export type ConversationSummary = {
|
|
10
|
-
/** Conversation identifier. */
|
|
11
|
-
id: string;
|
|
12
|
-
/** Human-readable conversation title. */
|
|
13
|
-
title: string;
|
|
14
|
-
/** Compatible conversation lifecycle status. */
|
|
15
|
-
status: ConversationStatus;
|
|
16
|
-
/** Number of visible transcript messages. */
|
|
17
|
-
messageCount: number;
|
|
18
|
-
/** Optional unread count derived from namespaced conversation metadata. */
|
|
19
|
-
unreadCount: number;
|
|
20
|
-
/** ISO timestamp used for sorting and recency display. */
|
|
21
|
-
updatedAt: string;
|
|
22
|
-
/** ISO timestamp for the conversation creation time. */
|
|
23
|
-
createdAt: string;
|
|
24
|
-
/** Last visible message id, when present. */
|
|
25
|
-
lastMessageId?: string;
|
|
26
|
-
/** Last visible message role, when present. */
|
|
27
|
-
lastMessageRole?: Message['role'];
|
|
28
|
-
/** Text preview for the last visible message. */
|
|
29
|
-
lastMessageText?: string;
|
|
30
|
-
/** Created timestamp for the last visible message. */
|
|
31
|
-
lastMessageAt?: string;
|
|
32
|
-
/** Optional participant names derived from namespaced conversation metadata. */
|
|
33
|
-
participantNames: readonly string[];
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
function metadataNumber(metadata: Readonly<Record<string, unknown>>, key: string): number {
|
|
37
|
-
const value = metadata[key];
|
|
38
|
-
return typeof value === 'number' && Number.isFinite(value) && value > 0 ? Math.floor(value) : 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function metadataStringArray(
|
|
42
|
-
metadata: Readonly<Record<string, unknown>>,
|
|
43
|
-
key: string,
|
|
44
|
-
): readonly string[] {
|
|
45
|
-
const value = metadata[key];
|
|
46
|
-
if (!Array.isArray(value)) return [];
|
|
47
|
-
return value.filter((item): item is string => typeof item === 'string' && item.trim() !== '');
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function fallbackTitle(message: Message | undefined): string {
|
|
51
|
-
if (!message) return 'Untitled conversation';
|
|
52
|
-
|
|
53
|
-
const text = getMessageText(message).trim().replace(/\s+/g, ' ');
|
|
54
|
-
if (text.length === 0) return 'Untitled conversation';
|
|
55
|
-
return text.length > 64 ? `${text.slice(0, 61)}...` : text;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/** Derives a list/header summary from a compatible ConversationHistory snapshot. */
|
|
59
|
-
export function deriveConversationSummary(conversation: ConversationHistory): ConversationSummary {
|
|
60
|
-
const messages = getMessages(conversation);
|
|
61
|
-
const lastMessage = messages.at(-1);
|
|
62
|
-
const title = conversation.title?.trim() || fallbackTitle(lastMessage);
|
|
63
|
-
|
|
64
|
-
return {
|
|
65
|
-
id: conversation.id,
|
|
66
|
-
title,
|
|
67
|
-
status: conversation.status,
|
|
68
|
-
messageCount: messages.length,
|
|
69
|
-
unreadCount: metadataNumber(conversation.metadata, '_unreadCount'),
|
|
70
|
-
updatedAt: conversation.updatedAt,
|
|
71
|
-
createdAt: conversation.createdAt,
|
|
72
|
-
participantNames: metadataStringArray(conversation.metadata, '_participantNames'),
|
|
73
|
-
...(lastMessage
|
|
74
|
-
? {
|
|
75
|
-
lastMessageId: lastMessage.id,
|
|
76
|
-
lastMessageRole: lastMessage.role,
|
|
77
|
-
lastMessageText: getMessageText(lastMessage),
|
|
78
|
-
lastMessageAt: lastMessage.createdAt,
|
|
79
|
-
}
|
|
80
|
-
: {}),
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export function conversationSummaryTimestamp(summary: ConversationSummary): number {
|
|
85
|
-
const timestamp = summary.lastMessageAt ?? summary.updatedAt ?? summary.createdAt;
|
|
86
|
-
const time = Date.parse(timestamp);
|
|
87
|
-
return Number.isNaN(time) ? 0 : time;
|
|
88
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import './chat-conversation-list.css';
|
|
2
|
-
import ChatConversationList from './chat-conversation-list.svelte';
|
|
3
|
-
|
|
4
|
-
export default ChatConversationList;
|
|
5
|
-
export type { ChatConversationListProps } from './chat-conversation-list.types.ts';
|
|
6
|
-
export {
|
|
7
|
-
conversationSummaryTimestamp,
|
|
8
|
-
deriveConversationSummary,
|
|
9
|
-
type ConversationSummary,
|
|
10
|
-
} from './conversation-summary.ts';
|
|
11
|
-
export { ChatConversationList };
|