@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,861 +0,0 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
/**
|
|
3
|
-
* Role labels for display purposes.
|
|
4
|
-
* Maps message roles to human-readable labels.
|
|
5
|
-
*/
|
|
6
|
-
export const ROLE_LABELS = {
|
|
7
|
-
user: 'You',
|
|
8
|
-
assistant: 'Assistant',
|
|
9
|
-
system: 'System',
|
|
10
|
-
developer: 'Developer',
|
|
11
|
-
'tool-call': 'Tool Call',
|
|
12
|
-
'tool-result': 'Tool Result',
|
|
13
|
-
snapshot: 'Snapshot',
|
|
14
|
-
};
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
<script lang="ts">
|
|
18
|
-
import { classNames } from '../../../utilities/class-names.ts';
|
|
19
|
-
import { deriveMessageParts, getMessageText } from '../utilities/utilities.js';
|
|
20
|
-
import Pencil from 'lucide-svelte/icons/pencil';
|
|
21
|
-
import RotateCcw from 'lucide-svelte/icons/rotate-ccw';
|
|
22
|
-
import CopyButton from '../../copy-button/copy-button.svelte';
|
|
23
|
-
import ChatMessagePartsRenderer from './chat-message-parts-renderer.svelte';
|
|
24
|
-
let { message, toolCallPairs = [], expanded = $bindable(true), class: className, searchMatch = false, actions, status, messagePart, showDefaultActions = true, streaming = false, overrideContent, onexpandedchange, onretry, onedit, approvedToolCallIds, deniedToolCallIds, onapprove, ondeny, reasoning, steps, suggestions, reasoningExpanded = false, onreasoning, toolCallExpanded = $bindable(false), ontoolcalltoggle, onsuggestionselect, tabindex, ...rest } = $props();
|
|
25
|
-
// Edit state
|
|
26
|
-
let isEditing = $state(false);
|
|
27
|
-
let editContent = $state('');
|
|
28
|
-
const canEdit = $derived(message.role === 'user' && onedit !== undefined && !streaming);
|
|
29
|
-
function startEditing() {
|
|
30
|
-
editContent = textContent;
|
|
31
|
-
isEditing = true;
|
|
32
|
-
}
|
|
33
|
-
function cancelEditing() {
|
|
34
|
-
isEditing = false;
|
|
35
|
-
editContent = '';
|
|
36
|
-
}
|
|
37
|
-
function saveEdit() {
|
|
38
|
-
const trimmedContent = editContent.trim();
|
|
39
|
-
if (trimmedContent && trimmedContent !== textContent) {
|
|
40
|
-
onedit?.({ messageId: message.id, content: trimmedContent });
|
|
41
|
-
}
|
|
42
|
-
isEditing = false;
|
|
43
|
-
editContent = '';
|
|
44
|
-
}
|
|
45
|
-
function handleEditKeyDown(event) {
|
|
46
|
-
if (event.key === 'Escape') {
|
|
47
|
-
event.preventDefault();
|
|
48
|
-
cancelEditing();
|
|
49
|
-
}
|
|
50
|
-
if (event.key === 'Enter' && (event.metaKey || event.ctrlKey)) {
|
|
51
|
-
event.preventDefault();
|
|
52
|
-
saveEdit();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
// Detect failed delivery status from transient metadata
|
|
56
|
-
const deliveryStatus = $derived(message.metadata?.['_deliveryStatus']);
|
|
57
|
-
const isFailed = $derived(deliveryStatus === 'failed');
|
|
58
|
-
// Derived values for content processing. `textContent` drives message chrome
|
|
59
|
-
// (copy, edit, the Show more/less control) — the rendered body itself flows
|
|
60
|
-
// through deriveMessageParts + the parts renderer below.
|
|
61
|
-
const textContent = $derived(getMessageText(message));
|
|
62
|
-
const roleLabel = $derived(ROLE_LABELS[message.role] ?? message.role);
|
|
63
|
-
// Role detection — kept for wrapper-level layout + a11y (data-tool-pair,
|
|
64
|
-
// aria-label). The body branches that used to live here are now derived parts.
|
|
65
|
-
const isToolCall = $derived(message.role === 'tool-call');
|
|
66
|
-
// Find matching tool pair for tool-call messages. Resolved here (the container
|
|
67
|
-
// hands down the pairs for this message) and threaded into deriveMessageParts
|
|
68
|
-
// so the bridge stays pure; also gates the data-tool-pair wrapper styling.
|
|
69
|
-
const toolPair = $derived.by(() => {
|
|
70
|
-
if (!isToolCall || !message.toolCall)
|
|
71
|
-
return null;
|
|
72
|
-
return toolCallPairs.find((pair) => pair.call.id === message.toolCall?.id) ?? null;
|
|
73
|
-
});
|
|
74
|
-
// The cinder-owned render parts for this message. The streaming override and
|
|
75
|
-
// expanded state are resolved into the parts here so the renderer + part
|
|
76
|
-
// components stay dumb (no override/streaming plumbing leaks into them).
|
|
77
|
-
// C3: approval id sets are threaded in so tool-approval parts derive their
|
|
78
|
-
// `approved` state without mutating the transcript.
|
|
79
|
-
const messageParts = $derived(deriveMessageParts(message, {
|
|
80
|
-
toolCallPair: toolPair ?? undefined,
|
|
81
|
-
overrideContent,
|
|
82
|
-
streaming,
|
|
83
|
-
expanded,
|
|
84
|
-
approvedToolCallIds,
|
|
85
|
-
deniedToolCallIds,
|
|
86
|
-
// C4: reasoning and steps are UI-only overlays derived from metadata or
|
|
87
|
-
// explicit per-message props; never written back to the transcript.
|
|
88
|
-
reasoning,
|
|
89
|
-
steps,
|
|
90
|
-
// C5: suggestions are UI-only overlays; never written back to the transcript.
|
|
91
|
-
suggestions,
|
|
92
|
-
}));
|
|
93
|
-
// Whether this message has a markdown body part — gates the Show more/less
|
|
94
|
-
// control (a tool-call/tool-result message has no markdown body to truncate).
|
|
95
|
-
const hasMarkdownBody = $derived(messageParts.some((part) => part.type === 'markdown'));
|
|
96
|
-
// Split the parts so the rendered DOM matches the historical structure: body
|
|
97
|
-
// parts (text/markdown/tool) live inside `.chat-message-body`, image parts
|
|
98
|
-
// render as a sibling AFTER it — exactly where MessageAttachments used to sit,
|
|
99
|
-
// so the flex layout and spacing are unchanged.
|
|
100
|
-
const bodyParts = $derived(messageParts.filter((part) => part.type !== 'image'));
|
|
101
|
-
const imageParts = $derived(messageParts.filter((part) => part.type === 'image'));
|
|
102
|
-
// Content truncation threshold (characters)
|
|
103
|
-
const TRUNCATE_THRESHOLD = 500;
|
|
104
|
-
// Accessibility IDs
|
|
105
|
-
const messageId = $derived(`message-${message.id}`);
|
|
106
|
-
const roleId = $derived(`${messageId}-role`);
|
|
107
|
-
function toggleExpanded() {
|
|
108
|
-
expanded = !expanded;
|
|
109
|
-
onexpandedchange?.(expanded);
|
|
110
|
-
}
|
|
111
|
-
// Local fallback so a standalone <ChatMessage> (used outside <Chat>, with no
|
|
112
|
-
// ontoolcalltoggle wired up) still has a working disclosure — mirrors
|
|
113
|
-
// toggleExpanded above. When Chat DOES own this message's disclosure, it
|
|
114
|
-
// passes toolCallExpanded down one-way (not bind:) and reads/writes its own
|
|
115
|
-
// state via ontoolcalltoggle; this local flip is then a harmless echo that
|
|
116
|
-
// gets overwritten by the container's next render. onexpandedchange also
|
|
117
|
-
// fires here (not just ontoolcalltoggle) to preserve the pre-split contract,
|
|
118
|
-
// where a single expanded/onexpandedchange pair covered every disclosure on
|
|
119
|
-
// the message, including tool-call cards.
|
|
120
|
-
function toggleToolCallExpanded() {
|
|
121
|
-
toolCallExpanded = !toolCallExpanded;
|
|
122
|
-
ontoolcalltoggle?.();
|
|
123
|
-
onexpandedchange?.(toolCallExpanded);
|
|
124
|
-
}
|
|
125
|
-
</script>
|
|
126
|
-
|
|
127
|
-
<div
|
|
128
|
-
class={classNames('chat-message-wrapper', className)}
|
|
129
|
-
data-role={message.role}
|
|
130
|
-
data-hidden={message.hidden || undefined}
|
|
131
|
-
data-failed={isFailed || undefined}
|
|
132
|
-
data-search-match={searchMatch || undefined}
|
|
133
|
-
data-tool-pair={isToolCall && toolPair ? '' : undefined}
|
|
134
|
-
{...rest}
|
|
135
|
-
>
|
|
136
|
-
<!-- svelte-ignore a11y_no_noninteractive_tabindex -->
|
|
137
|
-
<article
|
|
138
|
-
id={messageId}
|
|
139
|
-
class="chat-message"
|
|
140
|
-
aria-labelledby={isToolCall && toolPair ? undefined : roleId}
|
|
141
|
-
aria-label={isToolCall && toolPair ? `Tool call: ${toolPair.call.name}` : undefined}
|
|
142
|
-
{tabindex}
|
|
143
|
-
>
|
|
144
|
-
<header class="chat-message-header">
|
|
145
|
-
<span id={roleId} class="chat-message-role">{roleLabel}</span>
|
|
146
|
-
{#if status}
|
|
147
|
-
<div class="chat-message-status">
|
|
148
|
-
{@render status()}
|
|
149
|
-
</div>
|
|
150
|
-
{/if}
|
|
151
|
-
</header>
|
|
152
|
-
|
|
153
|
-
<div class="chat-message-body">
|
|
154
|
-
{#if isEditing}
|
|
155
|
-
<!-- Edit mode replaces the body parts with a textarea, but attachments
|
|
156
|
-
stay visible (they were never inside the editable body). -->
|
|
157
|
-
<div class="chat-message-edit">
|
|
158
|
-
<!-- svelte-ignore a11y_autofocus -->
|
|
159
|
-
<textarea
|
|
160
|
-
class="chat-message-edit-textarea"
|
|
161
|
-
bind:value={editContent}
|
|
162
|
-
onkeydown={handleEditKeyDown}
|
|
163
|
-
autofocus
|
|
164
|
-
aria-label="Edit message content"
|
|
165
|
-
rows={Math.min(Math.max(editContent.split('\n').length, 2), 10)}
|
|
166
|
-
></textarea>
|
|
167
|
-
<div class="chat-message-edit-actions">
|
|
168
|
-
<button type="button" class="chat-message-edit-save" onclick={saveEdit}>
|
|
169
|
-
Save & Resend
|
|
170
|
-
</button>
|
|
171
|
-
<button type="button" class="chat-message-edit-cancel" onclick={cancelEditing}>
|
|
172
|
-
Cancel
|
|
173
|
-
</button>
|
|
174
|
-
</div>
|
|
175
|
-
</div>
|
|
176
|
-
{:else}
|
|
177
|
-
<!-- Replaces the historical role-branch body: every body render shape
|
|
178
|
-
(tool call, tool result, markdown text) flows through the cinder-
|
|
179
|
-
owned parts spine. The renderer keeps stable DOM identity across
|
|
180
|
-
streaming updates via per-part keys, so the markdown body never
|
|
181
|
-
remounts as its text grows. Image parts render below, as a sibling
|
|
182
|
-
of this body div, matching the historical structure. -->
|
|
183
|
-
<ChatMessagePartsRenderer
|
|
184
|
-
parts={bodyParts}
|
|
185
|
-
{messagePart}
|
|
186
|
-
expanded={toolCallExpanded}
|
|
187
|
-
ontoggle={toggleToolCallExpanded}
|
|
188
|
-
{onapprove}
|
|
189
|
-
{ondeny}
|
|
190
|
-
{reasoningExpanded}
|
|
191
|
-
{onreasoning}
|
|
192
|
-
{onsuggestionselect}
|
|
193
|
-
/>
|
|
194
|
-
|
|
195
|
-
{#if hasMarkdownBody && textContent.length > TRUNCATE_THRESHOLD}
|
|
196
|
-
<button type="button" class="chat-message-expand" onclick={toggleExpanded}>
|
|
197
|
-
{expanded ? 'Show less' : 'Show more'}
|
|
198
|
-
</button>
|
|
199
|
-
{/if}
|
|
200
|
-
{/if}
|
|
201
|
-
</div>
|
|
202
|
-
|
|
203
|
-
{#if imageParts.length > 0}
|
|
204
|
-
<!-- Images render through the grouped default path (the attachment grid
|
|
205
|
-
lays out by total count); they do not flow through `messagePart`. -->
|
|
206
|
-
<ChatMessagePartsRenderer parts={imageParts} />
|
|
207
|
-
{/if}
|
|
208
|
-
|
|
209
|
-
{#if isFailed && onretry}
|
|
210
|
-
<div class="chat-message-failed-actions">
|
|
211
|
-
<span class="chat-message-failed-label" role="alert">Failed to send</span>
|
|
212
|
-
<button type="button" class="chat-message-retry" onclick={() => onretry(message.id)}>
|
|
213
|
-
<RotateCcw class="cinder-icon-xs" />
|
|
214
|
-
Retry
|
|
215
|
-
</button>
|
|
216
|
-
</div>
|
|
217
|
-
{/if}
|
|
218
|
-
</article>
|
|
219
|
-
|
|
220
|
-
{#if actions || (showDefaultActions && textContent) || canEdit}
|
|
221
|
-
<footer class="chat-message-footer" role="none">
|
|
222
|
-
<div class="chat-message-actions" role="group" aria-label="Message actions">
|
|
223
|
-
{#if actions}
|
|
224
|
-
{@render actions()}
|
|
225
|
-
{/if}
|
|
226
|
-
{#if showDefaultActions && textContent}
|
|
227
|
-
<CopyButton
|
|
228
|
-
value={textContent}
|
|
229
|
-
label="Copy message"
|
|
230
|
-
copiedLabel="Copied!"
|
|
231
|
-
iconOnly
|
|
232
|
-
confirmDuration={2000}
|
|
233
|
-
class="chat-message-action-button chat-message-copy"
|
|
234
|
-
/>
|
|
235
|
-
{/if}
|
|
236
|
-
{#if canEdit}
|
|
237
|
-
<button
|
|
238
|
-
type="button"
|
|
239
|
-
class="chat-message-action-button chat-message-edit-button"
|
|
240
|
-
onclick={startEditing}
|
|
241
|
-
aria-label="Edit message"
|
|
242
|
-
>
|
|
243
|
-
<Pencil class="cinder-icon-xs" />
|
|
244
|
-
</button>
|
|
245
|
-
{/if}
|
|
246
|
-
</div>
|
|
247
|
-
</footer>
|
|
248
|
-
{/if}
|
|
249
|
-
</div>
|
|
250
|
-
|
|
251
|
-
<style>
|
|
252
|
-
/* Wrapper — handles layout positioning, width constraints, and hover delegation.
|
|
253
|
-
* position: relative anchors the absolutely-positioned action footer below. */
|
|
254
|
-
.chat-message-wrapper {
|
|
255
|
-
display: flex;
|
|
256
|
-
flex-direction: column;
|
|
257
|
-
position: relative;
|
|
258
|
-
width: fit-content;
|
|
259
|
-
/* Cap at 80% of container OR 48rem (768px) for readability on wide screens */
|
|
260
|
-
max-width: min(80%, 48rem);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
/* Bubble — visual container for the message content */
|
|
264
|
-
.chat-message {
|
|
265
|
-
display: flex;
|
|
266
|
-
flex-direction: column;
|
|
267
|
-
gap: var(--cinder-space-1);
|
|
268
|
-
padding: var(--cinder-space-2) var(--cinder-space-3);
|
|
269
|
-
border-radius: var(--cinder-radius-lg);
|
|
270
|
-
background: var(--cinder-surface);
|
|
271
|
-
|
|
272
|
-
/* Performance: Skip rendering for off-screen messages in long conversations.
|
|
273
|
-
* content-visibility: auto tells browser to skip layout/paint for off-screen elements.
|
|
274
|
-
* contain-intrinsic-size: auto <fallback> uses cached height after render, fallback before.
|
|
275
|
-
*
|
|
276
|
-
* Trade-off: Before messages are rendered, scrollHeight uses the fallback estimate.
|
|
277
|
-
* This can affect isAtBottom calculations for variable-height content (images, code blocks).
|
|
278
|
-
* The 180px fallback is conservative to minimize scroll metric inaccuracy.
|
|
279
|
-
* Once scrolled into view, actual heights are cached and metrics become accurate. */
|
|
280
|
-
content-visibility: auto;
|
|
281
|
-
contain-intrinsic-size: auto 180px;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
/* Escape hatch for a deliberate programmatic scroll-to-bottom
|
|
285
|
-
(use-chat-scroll-state.svelte.ts): while `.chat-timeline` carries
|
|
286
|
-
`data-cinder-force-visible`, every row lays out at its real height up
|
|
287
|
-
front instead of the 180px estimate above. Without this, off-screen rows
|
|
288
|
-
resize as they cross into view DURING an animated scrollTo(), which
|
|
289
|
-
shifts content under a fixed pixel target and reads as a jerk right as
|
|
290
|
-
the scroll finishes. */
|
|
291
|
-
:global(.chat-timeline[data-cinder-force-visible]) .chat-message {
|
|
292
|
-
content-visibility: visible;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
/* Focus visible style for keyboard navigation */
|
|
296
|
-
.chat-message:focus {
|
|
297
|
-
outline: none;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.chat-message:focus-visible {
|
|
301
|
-
outline: var(--cinder-ring-width) solid transparent;
|
|
302
|
-
box-shadow: var(--_cinder-focus-ring-shadow);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
/* Search match highlight — subtle accent-tinted ring */
|
|
306
|
-
.chat-message-wrapper[data-search-match] .chat-message {
|
|
307
|
-
outline: 2px solid color-mix(in oklch, var(--cinder-accent), transparent 40%);
|
|
308
|
-
outline-offset: 2px;
|
|
309
|
-
background: color-mix(in oklch, var(--cinder-accent), transparent 92%);
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
/* Role-based alignment (on wrapper) and visual styling (on bubble) */
|
|
313
|
-
.chat-message-wrapper[data-role='user'] {
|
|
314
|
-
margin-inline-start: auto;
|
|
315
|
-
/* Anchor for absolutely-positioned user-message header (see below). */
|
|
316
|
-
position: relative;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
.chat-message-wrapper[data-role='user'] .chat-message {
|
|
320
|
-
/* Distinctive user bubble - subtle blue tint */
|
|
321
|
-
background: var(
|
|
322
|
-
--user-message-background,
|
|
323
|
-
color-mix(in oklch, var(--cinder-accent), transparent 88%)
|
|
324
|
-
);
|
|
325
|
-
border-radius: var(--cinder-radius-lg) var(--cinder-radius-lg) var(--cinder-radius-sm)
|
|
326
|
-
var(--cinder-radius-lg);
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
.chat-message-wrapper[data-role='assistant'] {
|
|
330
|
-
margin-inline-end: auto;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
.chat-message-wrapper[data-role='assistant'] .chat-message {
|
|
334
|
-
background: var(--cinder-surface);
|
|
335
|
-
border: 1px solid var(--cinder-border-muted);
|
|
336
|
-
border-radius: var(--cinder-radius-lg) var(--cinder-radius-lg) var(--cinder-radius-lg)
|
|
337
|
-
var(--cinder-radius-sm);
|
|
338
|
-
box-shadow: var(--cinder-shadow-sm);
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
.chat-message-wrapper[data-role='system'] {
|
|
342
|
-
margin-inline: auto;
|
|
343
|
-
max-width: min(90%, 48rem);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
.chat-message-wrapper[data-role='system'] .chat-message {
|
|
347
|
-
background: var(--cinder-color-info-bg);
|
|
348
|
-
color: var(--cinder-color-info-fg);
|
|
349
|
-
text-align: center;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
.chat-message-wrapper[data-role='developer'] {
|
|
353
|
-
margin-inline-end: auto;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
.chat-message-wrapper[data-role='developer'] .chat-message {
|
|
357
|
-
background: var(--cinder-color-warning-bg);
|
|
358
|
-
color: var(--cinder-color-warning-fg);
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
.chat-message-wrapper[data-role='tool-call'],
|
|
362
|
-
.chat-message-wrapper[data-role='tool-result'] {
|
|
363
|
-
margin-inline-end: auto;
|
|
364
|
-
min-width: min(18rem, 100%);
|
|
365
|
-
max-width: min(100%, 48rem);
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
.chat-message-wrapper[data-role='tool-call'] .chat-message,
|
|
369
|
-
.chat-message-wrapper[data-role='tool-result'] .chat-message {
|
|
370
|
-
background: var(--cinder-surface-inset);
|
|
371
|
-
font-family: var(--cinder-font-mono);
|
|
372
|
-
font-size: var(--cinder-text-sm);
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
/* When a tool-call has a paired result, ToolCallGroup is the canonical card.
|
|
376
|
-
* Strip the outer bubble shell (background, border, padding, role label, footer)
|
|
377
|
-
* so the unified card is the only visible boundary. The wrapper expands
|
|
378
|
-
* within the same readability cap as regular bubbles — chat bubbles hug
|
|
379
|
-
* their content, but a tool-call card is structural data that benefits
|
|
380
|
-
* from horizontal room without stretching across the entire timeline. */
|
|
381
|
-
.chat-message-wrapper[data-tool-pair] {
|
|
382
|
-
width: min(80%, 48rem);
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
.chat-message-wrapper[data-tool-pair] .chat-message {
|
|
386
|
-
background: none;
|
|
387
|
-
border: none;
|
|
388
|
-
padding: 0;
|
|
389
|
-
border-radius: 0;
|
|
390
|
-
gap: 0;
|
|
391
|
-
font-family: inherit;
|
|
392
|
-
font-size: inherit;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
.chat-message-wrapper[data-tool-pair] .chat-message-header {
|
|
396
|
-
display: none;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
.chat-message-wrapper[data-tool-pair] .chat-message-footer {
|
|
400
|
-
display: none;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
.chat-message-wrapper[data-role='snapshot'] {
|
|
404
|
-
margin-inline: auto;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
.chat-message-wrapper[data-role='snapshot'] .chat-message {
|
|
408
|
-
background: var(--cinder-surface-inset);
|
|
409
|
-
opacity: 0.7;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
.chat-message-wrapper[data-hidden] .chat-message {
|
|
413
|
-
/* Use visual styling that maintains WCAG AA contrast ratios */
|
|
414
|
-
border: 1px dashed var(--cinder-border-muted);
|
|
415
|
-
background: color-mix(in oklch, var(--cinder-surface), var(--cinder-border-muted) 10%);
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
.chat-message-wrapper[data-hidden] .chat-message::before {
|
|
419
|
-
content: 'Hidden';
|
|
420
|
-
display: inline-block;
|
|
421
|
-
font-size: var(--cinder-text-xs);
|
|
422
|
-
font-weight: var(--cinder-font-medium);
|
|
423
|
-
color: var(--cinder-text-muted);
|
|
424
|
-
padding: var(--cinder-space-0-5) var(--cinder-space-1);
|
|
425
|
-
background: var(--cinder-surface);
|
|
426
|
-
border: 1px solid var(--cinder-border-muted);
|
|
427
|
-
border-radius: var(--cinder-radius-sm);
|
|
428
|
-
margin-inline-end: var(--cinder-space-2);
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
/* Header */
|
|
432
|
-
.chat-message-header {
|
|
433
|
-
display: flex;
|
|
434
|
-
align-items: center;
|
|
435
|
-
gap: var(--cinder-space-2);
|
|
436
|
-
flex-wrap: wrap;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
.chat-message-role {
|
|
440
|
-
font-size: var(--cinder-text-xs);
|
|
441
|
-
font-weight: var(--cinder-font-semibold);
|
|
442
|
-
text-transform: uppercase;
|
|
443
|
-
letter-spacing: 0.05em;
|
|
444
|
-
color: var(--cinder-text-muted);
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
/* Take the header OUT of the bubble's flex flow for user messages so the
|
|
448
|
-
bubble's row gap is not allocated for an empty header row, which would
|
|
449
|
-
create visible empty space above the message text. `position: absolute`
|
|
450
|
-
removes it from the flex axis entirely (flex `gap` applies only to
|
|
451
|
-
in-flow children) while keeping it in the accessibility tree with its
|
|
452
|
-
implicit role intact — `display: contents` would strip that role.
|
|
453
|
-
The role label is already visually hidden via .chat-message-role below;
|
|
454
|
-
do NOT clip the whole header, or any `status` snippet a consumer passes
|
|
455
|
-
(e.g. "sending…", "failed") would also disappear. Anchor the header to
|
|
456
|
-
the bubble's top-right so status content stays visible without
|
|
457
|
-
displacing the message text. */
|
|
458
|
-
.chat-message-wrapper[data-role='user'] .chat-message-header {
|
|
459
|
-
position: absolute;
|
|
460
|
-
inset-block-start: 0;
|
|
461
|
-
inset-inline-end: 0;
|
|
462
|
-
padding: 0;
|
|
463
|
-
margin: 0;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
/* Hide role label for user messages since alignment makes it clear */
|
|
467
|
-
.chat-message-wrapper[data-role='user'] .chat-message-role {
|
|
468
|
-
position: absolute;
|
|
469
|
-
width: 1px;
|
|
470
|
-
height: 1px;
|
|
471
|
-
padding: 0;
|
|
472
|
-
margin: -1px;
|
|
473
|
-
overflow: hidden;
|
|
474
|
-
clip: rect(0, 0, 0, 0);
|
|
475
|
-
white-space: nowrap;
|
|
476
|
-
border: 0;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
.chat-message-status {
|
|
480
|
-
display: flex;
|
|
481
|
-
align-items: center;
|
|
482
|
-
gap: var(--cinder-space-1);
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
/* Body */
|
|
486
|
-
/* Flex column so stacked body parts (e.g. a tool-call card followed by a
|
|
487
|
-
tool-approval prompt, or a step list + reasoning block + final markdown
|
|
488
|
-
answer) get visible breathing room between them via `gap`. Without this,
|
|
489
|
-
parts are plain block children with zero margin and sit flush against
|
|
490
|
-
each other. */
|
|
491
|
-
.chat-message-body {
|
|
492
|
-
display: flex;
|
|
493
|
-
flex-direction: column;
|
|
494
|
-
gap: var(--cinder-space-3);
|
|
495
|
-
font-size: var(--cinder-text-base);
|
|
496
|
-
line-height: 1.6;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
/* Tool-result body styling moved to tool-result-part.svelte alongside its
|
|
500
|
-
markup (the parts spine now owns that body shape). */
|
|
501
|
-
|
|
502
|
-
.chat-message-expand {
|
|
503
|
-
/* .chat-message-body is a flex column now (for inter-part gap); without
|
|
504
|
-
this, the default flex align-items:stretch would balloon this button to
|
|
505
|
-
the container's full width instead of shrinking to its label. */
|
|
506
|
-
align-self: flex-start;
|
|
507
|
-
display: inline-flex;
|
|
508
|
-
align-items: center;
|
|
509
|
-
gap: var(--cinder-space-0-5);
|
|
510
|
-
padding: var(--cinder-space-0-5) var(--cinder-space-1);
|
|
511
|
-
min-height: var(--cinder-touch-target-min);
|
|
512
|
-
font-size: var(--cinder-text-xs);
|
|
513
|
-
font-weight: var(--cinder-font-medium);
|
|
514
|
-
color: var(--cinder-accent-text);
|
|
515
|
-
background: transparent;
|
|
516
|
-
border: none;
|
|
517
|
-
cursor: pointer;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
.chat-message-expand:hover {
|
|
521
|
-
text-decoration: underline;
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
.chat-message-expand:focus-visible {
|
|
525
|
-
outline: var(--cinder-ring-width) solid transparent;
|
|
526
|
-
box-shadow: var(--_cinder-focus-ring-shadow);
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
/* Failed message styling */
|
|
530
|
-
.chat-message-wrapper[data-failed] .chat-message {
|
|
531
|
-
border: 1px solid var(--cinder-color-danger-border);
|
|
532
|
-
background: var(--cinder-color-danger-bg);
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
.chat-message-failed-actions {
|
|
536
|
-
display: flex;
|
|
537
|
-
align-items: center;
|
|
538
|
-
gap: var(--cinder-space-2);
|
|
539
|
-
margin-top: var(--cinder-space-1);
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
.chat-message-failed-label {
|
|
543
|
-
font-size: var(--cinder-text-xs);
|
|
544
|
-
color: var(--cinder-danger);
|
|
545
|
-
font-weight: var(--cinder-font-medium);
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
.chat-message-retry {
|
|
549
|
-
display: inline-flex;
|
|
550
|
-
align-items: center;
|
|
551
|
-
gap: var(--cinder-space-1);
|
|
552
|
-
padding: var(--cinder-space-0-5) var(--cinder-space-2);
|
|
553
|
-
min-height: var(--cinder-touch-target-min);
|
|
554
|
-
font-size: var(--cinder-text-xs);
|
|
555
|
-
font-weight: var(--cinder-font-medium);
|
|
556
|
-
color: var(--cinder-danger);
|
|
557
|
-
background: transparent;
|
|
558
|
-
border: 1px solid var(--cinder-color-danger-border);
|
|
559
|
-
border-radius: var(--cinder-radius-sm);
|
|
560
|
-
cursor: pointer;
|
|
561
|
-
transition:
|
|
562
|
-
background var(--cinder-duration-fast) var(--cinder-ease-standard),
|
|
563
|
-
border-color var(--cinder-duration-fast) var(--cinder-ease-standard);
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
@media (hover: hover) {
|
|
567
|
-
.chat-message-retry:hover {
|
|
568
|
-
background: var(--cinder-color-danger-bg);
|
|
569
|
-
border-color: var(--cinder-danger);
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
.chat-message-retry:focus-visible {
|
|
574
|
-
outline: var(--cinder-ring-width) solid transparent;
|
|
575
|
-
box-shadow: var(--_cinder-focus-ring-shadow);
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
/* Footer — absolutely positioned outside the bubble's flow so revealing it on
|
|
579
|
-
* hover/focus does not change the bubble's height. Default geometry: below the
|
|
580
|
-
* bubble at the leading edge, which works for any role. The user/assistant
|
|
581
|
-
* rules below override this to put the icon beside the bubble on the
|
|
582
|
-
* center-facing edge. Roles like developer / system / unpaired tool-result
|
|
583
|
-
* inherit this default and place the footer below the bubble.
|
|
584
|
-
* LTR-only: the left/right physical properties below assume left-to-right layout.
|
|
585
|
-
* RTL support is a follow-up that swaps to inset-inline-start/end. */
|
|
586
|
-
.chat-message-footer {
|
|
587
|
-
position: absolute;
|
|
588
|
-
top: 100%;
|
|
589
|
-
left: 0;
|
|
590
|
-
width: max-content;
|
|
591
|
-
margin-top: var(--cinder-space-1);
|
|
592
|
-
opacity: 0;
|
|
593
|
-
pointer-events: none;
|
|
594
|
-
transition: opacity var(--cinder-duration-fast) var(--cinder-ease-standard);
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
/* User bubbles are right-aligned; copy icon sits to their LEFT (toward chat center).
|
|
598
|
-
* The footer is anchored to the wrapper's bottom edge AND to the bubble's
|
|
599
|
-
* outer edge horizontally; the action button inside aligns its own bottom
|
|
600
|
-
* with the wrapper bottom so it sits flush with the bubble bottom.
|
|
601
|
-
* padding (not margin) creates a hover bridge so the pointer never leaves a
|
|
602
|
-
* hovered surface while crossing from bubble to icon. */
|
|
603
|
-
.chat-message-wrapper[data-role='user'] .chat-message-footer {
|
|
604
|
-
top: auto;
|
|
605
|
-
bottom: 0;
|
|
606
|
-
left: auto;
|
|
607
|
-
right: 100%;
|
|
608
|
-
margin-top: 0;
|
|
609
|
-
display: flex;
|
|
610
|
-
align-items: flex-end;
|
|
611
|
-
/* Padding stays physical to match the physical `right: 100%` placement
|
|
612
|
-
above; the whole block is the LTR-only fast path called out in the
|
|
613
|
-
comment at the top of this section. */
|
|
614
|
-
/* stylelint-disable-next-line csstools/use-logical */
|
|
615
|
-
padding-right: var(--cinder-space-1);
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
/* Assistant bubbles are left-aligned; copy icon sits to their RIGHT. */
|
|
619
|
-
.chat-message-wrapper[data-role='assistant'] .chat-message-footer {
|
|
620
|
-
top: auto;
|
|
621
|
-
bottom: 0;
|
|
622
|
-
left: 100%;
|
|
623
|
-
right: auto;
|
|
624
|
-
margin-top: 0;
|
|
625
|
-
display: flex;
|
|
626
|
-
align-items: flex-end;
|
|
627
|
-
/* stylelint-disable-next-line csstools/use-logical */
|
|
628
|
-
padding-left: var(--cinder-space-1);
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
.chat-message-wrapper:hover .chat-message-footer,
|
|
632
|
-
.chat-message-wrapper:focus-within .chat-message-footer {
|
|
633
|
-
opacity: 1;
|
|
634
|
-
pointer-events: auto;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
.chat-message-actions {
|
|
638
|
-
display: flex;
|
|
639
|
-
gap: var(--cinder-space-1);
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
/* Narrow viewports: every role falls back to below-bubble where horizontal
|
|
643
|
-
* space is tight. Each selector explicitly matches the same specificity as
|
|
644
|
-
* the role-specific desktop rules above ([data-role='…'] = 0-1-1), so the
|
|
645
|
-
* media query actually wins inside its breakpoint. */
|
|
646
|
-
@media (max-width: 480px) {
|
|
647
|
-
.chat-message-wrapper[data-role='user'] .chat-message-footer,
|
|
648
|
-
.chat-message-wrapper[data-role='assistant'] .chat-message-footer,
|
|
649
|
-
.chat-message-wrapper[data-role='system'] .chat-message-footer,
|
|
650
|
-
.chat-message-wrapper[data-role='developer'] .chat-message-footer,
|
|
651
|
-
.chat-message-wrapper[data-role='tool-call'] .chat-message-footer,
|
|
652
|
-
.chat-message-wrapper[data-role='tool-result'] .chat-message-footer,
|
|
653
|
-
.chat-message-wrapper[data-role='snapshot'] .chat-message-footer {
|
|
654
|
-
top: 100%;
|
|
655
|
-
inset-inline-start: 0;
|
|
656
|
-
inset-inline-end: auto;
|
|
657
|
-
transform: none;
|
|
658
|
-
padding-inline: 0;
|
|
659
|
-
margin-top: var(--cinder-space-1);
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
/* Touch devices: always show actions */
|
|
664
|
-
@media (hover: none) or (pointer: coarse) {
|
|
665
|
-
.chat-message-footer {
|
|
666
|
-
opacity: 1;
|
|
667
|
-
pointer-events: auto;
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
/* Shared base for the built-in copy and edit action buttons — small
|
|
672
|
-
* icon-only affordances. The icon size comes from the `cinder-icon-xs` class on the
|
|
673
|
-
* SVG (defined in styles/utilities.css). A transparent border reserves layout
|
|
674
|
-
* space so the touch-context border swap below does not shift the icon.
|
|
675
|
-
*
|
|
676
|
-
* These rules use :global() because the copy button is rendered by the
|
|
677
|
-
* CopyButton child component — Svelte's scoped hash would not reach an
|
|
678
|
-
* element whose <button> lives in a different component's template. The edit
|
|
679
|
-
* button is still a native button in this template and matches via class
|
|
680
|
-
* name either way. */
|
|
681
|
-
:global(.chat-message-action-button) {
|
|
682
|
-
display: grid;
|
|
683
|
-
place-items: center;
|
|
684
|
-
box-sizing: border-box;
|
|
685
|
-
min-width: var(--cinder-touch-target-min);
|
|
686
|
-
min-height: var(--cinder-touch-target-min);
|
|
687
|
-
padding: 0;
|
|
688
|
-
background: transparent;
|
|
689
|
-
border: 1px solid transparent;
|
|
690
|
-
border-radius: var(--cinder-radius-sm);
|
|
691
|
-
color: var(--cinder-text-muted);
|
|
692
|
-
cursor: pointer;
|
|
693
|
-
transition:
|
|
694
|
-
color var(--cinder-duration-fast) var(--cinder-ease-standard),
|
|
695
|
-
border-color var(--cinder-duration-fast) var(--cinder-ease-standard),
|
|
696
|
-
background var(--cinder-duration-fast) var(--cinder-ease-standard);
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
@media (hover: hover) {
|
|
700
|
-
:global(.chat-message-action-button:hover) {
|
|
701
|
-
color: var(--cinder-text);
|
|
702
|
-
background: var(--cinder-surface-hover);
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
:global(.chat-message-action-button:focus-visible) {
|
|
707
|
-
outline: var(--cinder-ring-width) solid transparent;
|
|
708
|
-
box-shadow: var(--_cinder-focus-ring-shadow);
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
/* Touch devices: without hover discoverability, bare icons read as
|
|
712
|
-
* decoration. Give the action buttons a resting surface + border so they look
|
|
713
|
-
* tappable. Placed after the base rule so it wins at equal specificity; the
|
|
714
|
-
* transparent base border reserves the space, so this only swaps color — no
|
|
715
|
-
* layout shift. */
|
|
716
|
-
@media (hover: none) or (pointer: coarse) {
|
|
717
|
-
:global(.chat-message-action-button) {
|
|
718
|
-
background: var(--cinder-surface-raised);
|
|
719
|
-
border-color: var(--cinder-border);
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
/* Copy success state overrides the shared color.
|
|
724
|
-
* CopyButton uses `data-cinder-copied` when the copy succeeds.
|
|
725
|
-
* Keep `.chat-message-copy-success` as a selector alias so existing
|
|
726
|
-
* external callers that target it continue to work. */
|
|
727
|
-
:global(.chat-message-copy[data-cinder-copied]) {
|
|
728
|
-
color: var(--cinder-success);
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
/* CopyButton renders cinder-icon-sm (16px) icons by default. Override to cinder-icon-xs
|
|
732
|
-
* (14px) to match the sibling edit/retry action buttons in the chat footer. */
|
|
733
|
-
:global(.chat-message-copy svg) {
|
|
734
|
-
width: 0.875rem;
|
|
735
|
-
height: 0.875rem;
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
@media (hover: hover) {
|
|
739
|
-
:global(.chat-message-copy[data-cinder-copied]:hover) {
|
|
740
|
-
color: var(--cinder-color-success-fg);
|
|
741
|
-
background: var(--cinder-color-success-bg);
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
/* Edit mode */
|
|
746
|
-
.chat-message-edit {
|
|
747
|
-
display: flex;
|
|
748
|
-
flex-direction: column;
|
|
749
|
-
gap: var(--cinder-space-2);
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
.chat-message-edit-textarea {
|
|
753
|
-
width: 100%;
|
|
754
|
-
padding: var(--cinder-space-2);
|
|
755
|
-
font-family: inherit;
|
|
756
|
-
font-size: var(--cinder-text-base);
|
|
757
|
-
line-height: 1.6;
|
|
758
|
-
color: var(--cinder-text);
|
|
759
|
-
background: var(--cinder-surface);
|
|
760
|
-
border: 1px solid var(--cinder-accent);
|
|
761
|
-
border-radius: var(--cinder-radius-md);
|
|
762
|
-
resize: vertical;
|
|
763
|
-
outline: none;
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
.chat-message-edit-textarea:focus {
|
|
767
|
-
outline: var(--cinder-ring-width) solid transparent;
|
|
768
|
-
outline-offset: var(--cinder-ring-offset);
|
|
769
|
-
box-shadow: var(--_cinder-focus-ring-shadow);
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
.chat-message-edit-actions {
|
|
773
|
-
display: flex;
|
|
774
|
-
gap: var(--cinder-space-2);
|
|
775
|
-
align-items: center;
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
.chat-message-edit-save {
|
|
779
|
-
padding: var(--cinder-space-1) var(--cinder-space-3);
|
|
780
|
-
min-height: var(--cinder-touch-target-min);
|
|
781
|
-
font-size: var(--cinder-text-xs);
|
|
782
|
-
font-weight: var(--cinder-font-medium);
|
|
783
|
-
color: var(--cinder-accent-contrast);
|
|
784
|
-
background: var(--cinder-accent);
|
|
785
|
-
border: none;
|
|
786
|
-
border-radius: var(--cinder-radius-sm);
|
|
787
|
-
cursor: pointer;
|
|
788
|
-
transition: background var(--cinder-duration-fast) var(--cinder-ease-standard);
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
@media (hover: hover) {
|
|
792
|
-
.chat-message-edit-save:hover {
|
|
793
|
-
background: color-mix(in oklch, var(--cinder-accent), black 15%);
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
.chat-message-edit-save:focus-visible {
|
|
798
|
-
outline: var(--cinder-ring-width) solid transparent;
|
|
799
|
-
box-shadow: var(--_cinder-focus-ring-shadow);
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
.chat-message-edit-cancel {
|
|
803
|
-
padding: var(--cinder-space-1) var(--cinder-space-3);
|
|
804
|
-
min-height: var(--cinder-touch-target-min);
|
|
805
|
-
font-size: var(--cinder-text-xs);
|
|
806
|
-
font-weight: var(--cinder-font-medium);
|
|
807
|
-
color: var(--cinder-text-muted);
|
|
808
|
-
background: transparent;
|
|
809
|
-
border: 1px solid var(--cinder-border);
|
|
810
|
-
border-radius: var(--cinder-radius-sm);
|
|
811
|
-
cursor: pointer;
|
|
812
|
-
transition:
|
|
813
|
-
background var(--cinder-duration-fast) var(--cinder-ease-standard),
|
|
814
|
-
color var(--cinder-duration-fast) var(--cinder-ease-standard);
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
@media (hover: hover) {
|
|
818
|
-
.chat-message-edit-cancel:hover {
|
|
819
|
-
color: var(--cinder-text);
|
|
820
|
-
background: var(--cinder-surface-hover);
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
.chat-message-edit-cancel:focus-visible {
|
|
825
|
-
outline: var(--cinder-ring-width) solid transparent;
|
|
826
|
-
box-shadow: var(--_cinder-focus-ring-shadow);
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
/* Responsive sizing for narrow viewports */
|
|
830
|
-
@media (max-width: 480px) {
|
|
831
|
-
.chat-message-wrapper {
|
|
832
|
-
/* On narrow screens, allow messages to use more of the width */
|
|
833
|
-
max-width: 95%;
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
.chat-message {
|
|
837
|
-
padding: var(--cinder-space-2) var(--cinder-space-3);
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
/* Forced-colors: box-shadow rings are suppressed in Windows High Contrast Mode,
|
|
842
|
-
so repaint the reserved transparent outline channel with a system color.
|
|
843
|
-
Text-entry focus uses Highlight; pressable regions use ButtonText.
|
|
844
|
-
Placed after the base rules per the focus-ring policy's cascade note. */
|
|
845
|
-
@media (forced-colors: active) {
|
|
846
|
-
.chat-message-edit-textarea:focus {
|
|
847
|
-
outline: var(--cinder-ring-width) solid Highlight;
|
|
848
|
-
outline-offset: 1px;
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
.chat-message:focus-visible,
|
|
852
|
-
.chat-message-expand:focus-visible,
|
|
853
|
-
.chat-message-retry:focus-visible,
|
|
854
|
-
:global(.chat-message-action-button:focus-visible),
|
|
855
|
-
.chat-message-edit-save:focus-visible,
|
|
856
|
-
.chat-message-edit-cancel:focus-visible {
|
|
857
|
-
outline: var(--cinder-ring-width) solid ButtonText;
|
|
858
|
-
outline-offset: 3px;
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
</style>
|