@adea-ai/ui 0.151.12 → 0.151.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (961) hide show
  1. package/dist/NOTICE +3 -2
  2. package/dist/components/composites/about-dialog/about-dialog.d.ts.map +1 -1
  3. package/dist/components/composites/about-dialog/about-dialog.js +27 -48
  4. package/dist/components/composites/about-dialog/about-dialog.js.map +1 -1
  5. package/dist/components/composites/account-menu/account-menu.d.ts +2 -2
  6. package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -1
  7. package/dist/components/composites/account-menu/account-menu.js +4 -22
  8. package/dist/components/composites/account-menu/account-menu.js.map +1 -1
  9. package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
  10. package/dist/components/composites/action-button/action-button.js +2 -4
  11. package/dist/components/composites/action-button/action-button.js.map +1 -1
  12. package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts +1 -10
  13. package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts.map +1 -1
  14. package/dist/components/composites/appearance-editor/accent-swatch-groups.js +2 -1
  15. package/dist/components/composites/appearance-editor/accent-swatch-groups.js.map +1 -1
  16. package/dist/components/composites/appearance-editor/appearance-choices.d.ts.map +1 -1
  17. package/dist/components/composites/appearance-editor/appearance-choices.js +3 -2
  18. package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
  19. package/dist/components/composites/appearance-editor/appearance-editor.d.ts.map +1 -1
  20. package/dist/components/composites/appearance-editor/appearance-editor.js +1 -0
  21. package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
  22. package/dist/components/composites/appearance-editor/appearance-rows.d.ts.map +1 -1
  23. package/dist/components/composites/appearance-editor/appearance-rows.js +12 -50
  24. package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
  25. package/dist/components/composites/appearance-editor/font-settings-group.d.ts.map +1 -1
  26. package/dist/components/composites/appearance-editor/font-settings-group.js +7 -47
  27. package/dist/components/composites/appearance-editor/font-settings-group.js.map +1 -1
  28. package/dist/components/composites/appearance-editor/index.d.ts +1 -0
  29. package/dist/components/composites/appearance-editor/index.d.ts.map +1 -1
  30. package/dist/components/composites/appearance-editor/index.js +2 -1
  31. package/dist/components/composites/catalog-browser/catalog-browser.d.ts.map +1 -1
  32. package/dist/components/composites/catalog-browser/catalog-browser.js +8 -11
  33. package/dist/components/composites/catalog-browser/catalog-browser.js.map +1 -1
  34. package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts +5 -4
  35. package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts.map +1 -1
  36. package/dist/components/composites/chain-of-thought/chain-of-thought.js +5 -12
  37. package/dist/components/composites/chain-of-thought/chain-of-thought.js.map +1 -1
  38. package/dist/components/composites/chat/chat.d.ts +2 -2
  39. package/dist/components/composites/chat/chat.d.ts.map +1 -1
  40. package/dist/components/composites/chat/chat.js.map +1 -1
  41. package/dist/components/composites/checkpoint/checkpoint-model.js +1 -1
  42. package/dist/components/composites/checkpoint/checkpoint-model.js.map +1 -1
  43. package/dist/components/composites/checkpoint/checkpoint.js +3 -3
  44. package/dist/components/composites/checkpoint/checkpoint.js.map +1 -1
  45. package/dist/components/composites/confirmation/confirmation-model.d.ts +3 -12
  46. package/dist/components/composites/confirmation/confirmation-model.d.ts.map +1 -1
  47. package/dist/components/composites/confirmation/confirmation-model.js +5 -17
  48. package/dist/components/composites/confirmation/confirmation-model.js.map +1 -1
  49. package/dist/components/composites/confirmation/confirmation.js +1 -1
  50. package/dist/components/composites/confirmation/confirmation.js.map +1 -1
  51. package/dist/components/composites/context/context-model.js +1 -1
  52. package/dist/components/composites/context/context-model.js.map +1 -1
  53. package/dist/components/composites/file-tree/build-file-tree.d.ts +5 -12
  54. package/dist/components/composites/file-tree/build-file-tree.d.ts.map +1 -1
  55. package/dist/components/composites/file-tree/build-file-tree.js +26 -30
  56. package/dist/components/composites/file-tree/build-file-tree.js.map +1 -1
  57. package/dist/components/composites/file-tree/file-tree.d.ts +2 -2
  58. package/dist/components/composites/file-tree/file-tree.d.ts.map +1 -1
  59. package/dist/components/composites/file-tree/file-tree.js +4 -30
  60. package/dist/components/composites/file-tree/file-tree.js.map +1 -1
  61. package/dist/components/composites/file-tree/index.d.ts +2 -1
  62. package/dist/components/composites/file-tree/index.d.ts.map +1 -1
  63. package/dist/components/composites/file-tree/index.js +2 -1
  64. package/dist/components/composites/help-center/help-center.d.ts.map +1 -1
  65. package/dist/components/composites/help-center/help-center.js +9 -20
  66. package/dist/components/composites/help-center/help-center.js.map +1 -1
  67. package/dist/components/composites/icon-picker/icon-picker.d.ts.map +1 -1
  68. package/dist/components/composites/icon-picker/icon-picker.js +7 -11
  69. package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
  70. package/dist/components/composites/inline-citation/citation.d.ts.map +1 -1
  71. package/dist/components/composites/inline-citation/citation.js +2 -1
  72. package/dist/components/composites/inline-citation/citation.js.map +1 -1
  73. package/dist/components/composites/inline-citation/inline-citation.d.ts.map +1 -1
  74. package/dist/components/composites/inline-citation/inline-citation.js +2 -1
  75. package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
  76. package/dist/components/composites/message-scroller/message-scroller.d.ts +4 -5
  77. package/dist/components/composites/message-scroller/message-scroller.d.ts.map +1 -1
  78. package/dist/components/composites/message-scroller/message-scroller.js +19 -13
  79. package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
  80. package/dist/components/composites/message-scroller/scroll-anchor.d.ts +4 -3
  81. package/dist/components/composites/message-scroller/scroll-anchor.d.ts.map +1 -1
  82. package/dist/components/composites/message-scroller/scroll-anchor.js +5 -3
  83. package/dist/components/composites/message-scroller/scroll-anchor.js.map +1 -1
  84. package/dist/components/composites/model-selector/model-selector.d.ts.map +1 -1
  85. package/dist/components/composites/model-selector/model-selector.js +1 -1
  86. package/dist/components/composites/model-selector/model-selector.js.map +1 -1
  87. package/dist/components/composites/model-selector/models.js +1 -1
  88. package/dist/components/composites/model-selector/models.js.map +1 -1
  89. package/dist/components/composites/plan/plan.d.ts.map +1 -1
  90. package/dist/components/composites/plan/plan.js +2 -3
  91. package/dist/components/composites/plan/plan.js.map +1 -1
  92. package/dist/components/composites/queue/queue.d.ts +2 -2
  93. package/dist/components/composites/queue/queue.d.ts.map +1 -1
  94. package/dist/components/composites/queue/queue.js +57 -64
  95. package/dist/components/composites/queue/queue.js.map +1 -1
  96. package/dist/components/composites/reasoning/index.js +3 -1
  97. package/dist/components/composites/reasoning/reasoning.d.ts +2 -3
  98. package/dist/components/composites/reasoning/reasoning.d.ts.map +1 -1
  99. package/dist/components/composites/reasoning/reasoning.js +5 -20
  100. package/dist/components/composites/reasoning/reasoning.js.map +1 -1
  101. package/dist/components/composites/settings/settings-layout.d.ts.map +1 -1
  102. package/dist/components/composites/settings/settings-layout.js +3 -2
  103. package/dist/components/composites/settings/settings-layout.js.map +1 -1
  104. package/dist/components/composites/settings/settings-navigation.d.ts.map +1 -1
  105. package/dist/components/composites/settings/settings-navigation.js +1 -1
  106. package/dist/components/composites/settings/settings-navigation.js.map +1 -1
  107. package/dist/components/composites/sources/index.js +2 -1
  108. package/dist/components/composites/sources/source.d.ts +3 -8
  109. package/dist/components/composites/sources/source.d.ts.map +1 -1
  110. package/dist/components/composites/sources/source.js +5 -30
  111. package/dist/components/composites/sources/source.js.map +1 -1
  112. package/dist/components/composites/sources/sources.js +2 -1
  113. package/dist/components/composites/sources/sources.js.map +1 -1
  114. package/dist/components/composites/stack-trace/stack-trace.d.ts.map +1 -1
  115. package/dist/components/composites/stack-trace/stack-trace.js +3 -12
  116. package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
  117. package/dist/components/composites/subagent/subagent.d.ts +3 -1
  118. package/dist/components/composites/subagent/subagent.d.ts.map +1 -1
  119. package/dist/components/composites/subagent/subagent.js +5 -17
  120. package/dist/components/composites/subagent/subagent.js.map +1 -1
  121. package/dist/components/composites/suggestion/suggestion.d.ts.map +1 -1
  122. package/dist/components/composites/suggestion/suggestion.js +3 -2
  123. package/dist/components/composites/suggestion/suggestion.js.map +1 -1
  124. package/dist/components/composites/task/task.d.ts +2 -3
  125. package/dist/components/composites/task/task.d.ts.map +1 -1
  126. package/dist/components/composites/task/task.js +49 -109
  127. package/dist/components/composites/task/task.js.map +1 -1
  128. package/dist/components/composites/terminal/terminal-model.d.ts +1 -2
  129. package/dist/components/composites/terminal/terminal-model.d.ts.map +1 -1
  130. package/dist/components/composites/terminal/terminal-model.js +7 -1
  131. package/dist/components/composites/terminal/terminal-model.js.map +1 -1
  132. package/dist/components/composites/terminal/terminal.d.ts.map +1 -1
  133. package/dist/components/composites/terminal/terminal.js +3 -12
  134. package/dist/components/composites/terminal/terminal.js.map +1 -1
  135. package/dist/components/composites/test-results/test-results.d.ts.map +1 -1
  136. package/dist/components/composites/test-results/test-results.js +3 -12
  137. package/dist/components/composites/test-results/test-results.js.map +1 -1
  138. package/dist/components/composites/tool/tool.d.ts +0 -1
  139. package/dist/components/composites/tool/tool.d.ts.map +1 -1
  140. package/dist/components/composites/tool/tool.js +47 -41
  141. package/dist/components/composites/tool/tool.js.map +1 -1
  142. package/dist/components/composites/tree/tree-navigation.d.ts +6 -2
  143. package/dist/components/composites/tree/tree-navigation.d.ts.map +1 -1
  144. package/dist/components/composites/tree/tree-navigation.js +18 -1
  145. package/dist/components/composites/tree/tree-navigation.js.map +1 -1
  146. package/dist/components/composites/tree/tree.d.ts +6 -0
  147. package/dist/components/composites/tree/tree.d.ts.map +1 -1
  148. package/dist/components/composites/tree/tree.js +30 -4
  149. package/dist/components/composites/tree/tree.js.map +1 -1
  150. package/dist/components/composites/update-dialog/channel-control.d.ts.map +1 -1
  151. package/dist/components/composites/update-dialog/channel-control.js +7 -8
  152. package/dist/components/composites/update-dialog/channel-control.js.map +1 -1
  153. package/dist/components/composites/update-dialog/update-dialog.d.ts +2 -26
  154. package/dist/components/composites/update-dialog/update-dialog.d.ts.map +1 -1
  155. package/dist/components/composites/update-dialog/update-dialog.js +47 -125
  156. package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
  157. package/dist/components/composites/update-dialog/update-model.d.ts +65 -0
  158. package/dist/components/composites/update-dialog/update-model.d.ts.map +1 -0
  159. package/dist/components/composites/update-dialog/update-model.js +75 -0
  160. package/dist/components/composites/update-dialog/update-model.js.map +1 -0
  161. package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
  162. package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.d.ts.map +1 -1
  163. package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js +3 -16
  164. package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js.map +1 -1
  165. package/dist/components/composites/workspace-switcher/workspace-switcher.d.ts.map +1 -1
  166. package/dist/components/composites/workspace-switcher/workspace-switcher.js +10 -14
  167. package/dist/components/composites/workspace-switcher/workspace-switcher.js.map +1 -1
  168. package/dist/components/conversation/busy-send-button.d.ts +3 -5
  169. package/dist/components/conversation/busy-send-button.d.ts.map +1 -1
  170. package/dist/components/conversation/busy-send-button.js +4 -15
  171. package/dist/components/conversation/busy-send-button.js.map +1 -1
  172. package/dist/components/conversation/chat-composer.d.ts +1 -1
  173. package/dist/components/conversation/chat-composer.d.ts.map +1 -1
  174. package/dist/components/conversation/chat-composer.js +1 -1
  175. package/dist/components/conversation/chat-composer.js.map +1 -1
  176. package/dist/components/conversation/composer-core.d.ts +35 -0
  177. package/dist/components/conversation/composer-core.d.ts.map +1 -0
  178. package/dist/components/conversation/composer-core.js +68 -0
  179. package/dist/components/conversation/composer-core.js.map +1 -0
  180. package/dist/components/conversation/composer-menu.d.ts +1 -1
  181. package/dist/components/conversation/composer-menu.d.ts.map +1 -1
  182. package/dist/components/conversation/composer-menu.js.map +1 -1
  183. package/dist/components/conversation/conversation-pane.d.ts +4 -1
  184. package/dist/components/conversation/conversation-pane.d.ts.map +1 -1
  185. package/dist/components/conversation/conversation-pane.js +4 -0
  186. package/dist/components/conversation/conversation-pane.js.map +1 -1
  187. package/dist/components/conversation/conversation-surface.d.ts +9 -6
  188. package/dist/components/conversation/conversation-surface.d.ts.map +1 -1
  189. package/dist/components/conversation/conversation-surface.js +7 -5
  190. package/dist/components/conversation/conversation-surface.js.map +1 -1
  191. package/dist/components/conversation/ime-guard.d.ts +1 -0
  192. package/dist/components/conversation/ime-guard.d.ts.map +1 -1
  193. package/dist/components/conversation/ime-guard.js +5 -0
  194. package/dist/components/conversation/ime-guard.js.map +1 -1
  195. package/dist/components/conversation/internal/chat-composer-shell.d.ts.map +1 -1
  196. package/dist/components/conversation/internal/chat-composer-shell.js +16 -50
  197. package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
  198. package/dist/components/conversation/message-composer.d.ts +1 -3
  199. package/dist/components/conversation/message-composer.d.ts.map +1 -1
  200. package/dist/components/conversation/message-composer.js +15 -32
  201. package/dist/components/conversation/message-composer.js.map +1 -1
  202. package/dist/components/conversation/message-row.d.ts +10 -11
  203. package/dist/components/conversation/message-row.d.ts.map +1 -1
  204. package/dist/components/conversation/message-row.js +24 -49
  205. package/dist/components/conversation/message-row.js.map +1 -1
  206. package/dist/components/conversation/paste-token-editor.d.ts.map +1 -1
  207. package/dist/components/conversation/paste-token-editor.js +7 -17
  208. package/dist/components/conversation/paste-token-editor.js.map +1 -1
  209. package/dist/components/conversation/paste-tokens.d.ts +10 -1
  210. package/dist/components/conversation/paste-tokens.d.ts.map +1 -1
  211. package/dist/components/conversation/paste-tokens.js +26 -2
  212. package/dist/components/conversation/paste-tokens.js.map +1 -1
  213. package/dist/components/conversation/scroll-follow-core.d.ts +30 -79
  214. package/dist/components/conversation/scroll-follow-core.d.ts.map +1 -1
  215. package/dist/components/conversation/scroll-follow-core.js +65 -54
  216. package/dist/components/conversation/scroll-follow-core.js.map +1 -1
  217. package/dist/components/conversation/scroll-follow.d.ts +5 -1
  218. package/dist/components/conversation/scroll-follow.d.ts.map +1 -1
  219. package/dist/components/conversation/scroll-follow.js +27 -91
  220. package/dist/components/conversation/scroll-follow.js.map +1 -1
  221. package/dist/components/conversation/thread-panel.d.ts +0 -2
  222. package/dist/components/conversation/thread-panel.d.ts.map +1 -1
  223. package/dist/components/conversation/thread-panel.js.map +1 -1
  224. package/dist/components/conversation/transcript-composition.d.ts.map +1 -1
  225. package/dist/components/conversation/transcript-composition.js +4 -16
  226. package/dist/components/conversation/transcript-composition.js.map +1 -1
  227. package/dist/components/conversation/transcript-folding.d.ts +0 -1
  228. package/dist/components/conversation/transcript-folding.d.ts.map +1 -1
  229. package/dist/components/conversation/transcript-folding.js +1 -1
  230. package/dist/components/conversation/transcript-folding.js.map +1 -1
  231. package/dist/components/conversation/transcript-grouping.d.ts +8 -0
  232. package/dist/components/conversation/transcript-grouping.d.ts.map +1 -1
  233. package/dist/components/conversation/transcript-grouping.js +17 -3
  234. package/dist/components/conversation/transcript-grouping.js.map +1 -1
  235. package/dist/components/layout/contextual-sidebar/contextual-sidebar.d.ts.map +1 -1
  236. package/dist/components/layout/contextual-sidebar/contextual-sidebar.js +2 -1
  237. package/dist/components/layout/contextual-sidebar/contextual-sidebar.js.map +1 -1
  238. package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.js +1 -1
  239. package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.js.map +1 -1
  240. package/dist/components/layout/floating-preview/index.js +2 -2
  241. package/dist/components/layout/floating-preview/model.d.ts +21 -55
  242. package/dist/components/layout/floating-preview/model.d.ts.map +1 -1
  243. package/dist/components/layout/floating-preview/model.js +33 -88
  244. package/dist/components/layout/floating-preview/model.js.map +1 -1
  245. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts.map +1 -1
  246. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js +11 -5
  247. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
  248. package/dist/components/layout/shell-top-bar/shell-top-bar.d.ts +2 -12
  249. package/dist/components/layout/shell-top-bar/shell-top-bar.d.ts.map +1 -1
  250. package/dist/components/layout/shell-top-bar/shell-top-bar.js +2 -1
  251. package/dist/components/layout/shell-top-bar/shell-top-bar.js.map +1 -1
  252. package/dist/components/layout/side-rail/side-rail-context.d.ts +0 -1
  253. package/dist/components/layout/side-rail/side-rail-context.d.ts.map +1 -1
  254. package/dist/components/layout/side-rail/side-rail-context.js +2 -8
  255. package/dist/components/layout/side-rail/side-rail-context.js.map +1 -1
  256. package/dist/components/layout/side-rail/side-rail.d.ts +0 -9
  257. package/dist/components/layout/side-rail/side-rail.d.ts.map +1 -1
  258. package/dist/components/layout/side-rail/side-rail.js +148 -128
  259. package/dist/components/layout/side-rail/side-rail.js.map +1 -1
  260. package/dist/components/layout/sidebar-nav/index.d.ts +2 -1
  261. package/dist/components/layout/sidebar-nav/index.d.ts.map +1 -1
  262. package/dist/components/layout/sidebar-nav/index.js +2 -1
  263. package/dist/components/layout/sidebar-nav/sidebar-nav-classes.d.ts +10 -0
  264. package/dist/components/layout/sidebar-nav/sidebar-nav-classes.d.ts.map +1 -0
  265. package/dist/components/layout/sidebar-nav/sidebar-nav-classes.js +18 -0
  266. package/dist/components/layout/sidebar-nav/sidebar-nav-classes.js.map +1 -0
  267. package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.d.ts +1 -1
  268. package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.d.ts.map +1 -1
  269. package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.js.map +1 -1
  270. package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts +5 -9
  271. package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts.map +1 -1
  272. package/dist/components/layout/sidebar-nav/sidebar-nav.js +5 -23
  273. package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
  274. package/dist/components/layout/split-layout/geometry.d.ts.map +1 -1
  275. package/dist/components/layout/split-layout/geometry.js +2 -2
  276. package/dist/components/layout/split-layout/geometry.js.map +1 -1
  277. package/dist/components/layout/split-layout/index.js +2 -2
  278. package/dist/components/layout/split-layout/model.d.ts.map +1 -1
  279. package/dist/components/layout/split-layout/model.js +4 -4
  280. package/dist/components/layout/split-layout/model.js.map +1 -1
  281. package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts +5 -0
  282. package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts.map +1 -1
  283. package/dist/components/layout/split-layout/resize-controller-core-retry.js +17 -10
  284. package/dist/components/layout/split-layout/resize-controller-core-retry.js.map +1 -1
  285. package/dist/components/layout/split-layout/resize-controller-core.d.ts +5 -0
  286. package/dist/components/layout/split-layout/resize-controller-core.d.ts.map +1 -1
  287. package/dist/components/layout/split-layout/resize-controller-core.js +17 -10
  288. package/dist/components/layout/split-layout/resize-controller-core.js.map +1 -1
  289. package/dist/components/layout/split-layout/split-layout.d.ts.map +1 -1
  290. package/dist/components/layout/split-layout/split-layout.js +54 -47
  291. package/dist/components/layout/split-layout/split-layout.js.map +1 -1
  292. package/dist/components/layout/split-layout/tree.d.ts +2 -0
  293. package/dist/components/layout/split-layout/tree.d.ts.map +1 -1
  294. package/dist/components/layout/split-layout/tree.js +5 -1
  295. package/dist/components/layout/split-layout/tree.js.map +1 -1
  296. package/dist/components/layout/top-bar/top-bar.d.ts +2 -9
  297. package/dist/components/layout/top-bar/top-bar.d.ts.map +1 -1
  298. package/dist/components/layout/top-bar/top-bar.js +4 -8
  299. package/dist/components/layout/top-bar/top-bar.js.map +1 -1
  300. package/dist/components/layout/top-bar/window-chrome.d.ts +13 -0
  301. package/dist/components/layout/top-bar/window-chrome.d.ts.map +1 -0
  302. package/dist/components/layout/top-bar/window-chrome.js +12 -0
  303. package/dist/components/layout/top-bar/window-chrome.js.map +1 -0
  304. package/dist/components/motion/presence.d.ts +1 -1
  305. package/dist/components/motion/presence.d.ts.map +1 -1
  306. package/dist/components/motion/presence.js +1 -4
  307. package/dist/components/motion/presence.js.map +1 -1
  308. package/dist/components/theme/appearance-panel.d.ts +3 -1
  309. package/dist/components/theme/appearance-panel.d.ts.map +1 -1
  310. package/dist/components/theme/appearance-panel.js +17 -9
  311. package/dist/components/theme/appearance-panel.js.map +1 -1
  312. package/dist/components/theme/index.d.ts +1 -1
  313. package/dist/components/theme/index.d.ts.map +1 -1
  314. package/dist/components/theme/index.js +5 -4
  315. package/dist/components/theme/lazy.d.ts +31 -5
  316. package/dist/components/theme/lazy.d.ts.map +1 -1
  317. package/dist/components/theme/lazy.js +39 -6
  318. package/dist/components/theme/lazy.js.map +1 -0
  319. package/dist/components/theme/script-projection.js +3 -2
  320. package/dist/components/theme/script-projection.js.map +1 -1
  321. package/dist/components/theme/script.js +3 -1
  322. package/dist/components/theme/theme-api.d.ts +14 -0
  323. package/dist/components/theme/theme-api.d.ts.map +1 -0
  324. package/dist/components/theme/theme-catalogue-source.d.ts.map +1 -1
  325. package/dist/components/theme/theme-catalogue-source.js +3 -2
  326. package/dist/components/theme/theme-catalogue-source.js.map +1 -1
  327. package/dist/components/theme/theme-document.d.ts +112 -10
  328. package/dist/components/theme/theme-document.d.ts.map +1 -1
  329. package/dist/components/theme/{theme-document-core.js → theme-document.js} +7 -7
  330. package/dist/components/theme/theme-document.js.map +1 -0
  331. package/dist/components/theme/theme-mode-toggle.d.ts +1 -1
  332. package/dist/components/theme/theme-mode-toggle.d.ts.map +1 -1
  333. package/dist/components/theme/theme-mode-toggle.js.map +1 -1
  334. package/dist/components/theme/theme-persistence.d.ts +6 -5
  335. package/dist/components/theme/theme-persistence.d.ts.map +1 -1
  336. package/dist/components/theme/theme-persistence.js +48 -80
  337. package/dist/components/theme/theme-persistence.js.map +1 -1
  338. package/dist/components/theme/theme-picker.d.ts +1 -1
  339. package/dist/components/theme/theme-picker.d.ts.map +1 -1
  340. package/dist/components/theme/theme-picker.js.map +1 -1
  341. package/dist/components/theme/theme-provider-value.d.ts +14 -15
  342. package/dist/components/theme/theme-provider-value.d.ts.map +1 -1
  343. package/dist/components/theme/theme-provider-value.js +26 -42
  344. package/dist/components/theme/theme-provider-value.js.map +1 -1
  345. package/dist/components/theme/theme-provider.d.ts +3 -9
  346. package/dist/components/theme/theme-provider.d.ts.map +1 -1
  347. package/dist/components/theme/theme-provider.js +8 -7
  348. package/dist/components/theme/theme-provider.js.map +1 -1
  349. package/dist/components/theme/theme-script.d.ts +12 -25
  350. package/dist/components/theme/theme-script.d.ts.map +1 -1
  351. package/dist/components/theme/theme-script.js +35 -38
  352. package/dist/components/theme/theme-script.js.map +1 -1
  353. package/dist/components/theme/theme-state.d.ts +241 -9
  354. package/dist/components/theme/theme-state.d.ts.map +1 -1
  355. package/dist/components/theme/{theme-state-core.js → theme-state.js} +10 -11
  356. package/dist/components/theme/theme-state.js.map +1 -0
  357. package/dist/components/theme/theme-toggle.d.ts +1 -1
  358. package/dist/components/theme/theme-toggle.d.ts.map +1 -1
  359. package/dist/components/theme/theme-toggle.js.map +1 -1
  360. package/dist/components/ui/alert-dialog/alert-dialog.d.ts +7 -5
  361. package/dist/components/ui/alert-dialog/alert-dialog.d.ts.map +1 -1
  362. package/dist/components/ui/alert-dialog/alert-dialog.js +40 -36
  363. package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -1
  364. package/dist/components/ui/attachment/attachment.d.ts.map +1 -1
  365. package/dist/components/ui/attachment/attachment.js +5 -16
  366. package/dist/components/ui/attachment/attachment.js.map +1 -1
  367. package/dist/components/ui/avatar/avatar.d.ts.map +1 -1
  368. package/dist/components/ui/avatar/avatar.js +5 -2
  369. package/dist/components/ui/avatar/avatar.js.map +1 -1
  370. package/dist/components/ui/board/board.d.ts +0 -3
  371. package/dist/components/ui/board/board.d.ts.map +1 -1
  372. package/dist/components/ui/board/board.js +3 -6
  373. package/dist/components/ui/board/board.js.map +1 -1
  374. package/dist/components/ui/button-group/button-group.d.ts +1 -1
  375. package/dist/components/ui/button-group/button-group.d.ts.map +1 -1
  376. package/dist/components/ui/button-group/button-group.js.map +1 -1
  377. package/dist/components/ui/chart/chart.d.ts +0 -3
  378. package/dist/components/ui/chart/chart.d.ts.map +1 -1
  379. package/dist/components/ui/chart/chart.js.map +1 -1
  380. package/dist/components/ui/code-block/code-block.d.ts +0 -2
  381. package/dist/components/ui/code-block/code-block.d.ts.map +1 -1
  382. package/dist/components/ui/code-block/code-block.js +8 -24
  383. package/dist/components/ui/code-block/code-block.js.map +1 -1
  384. package/dist/components/ui/command/command.d.ts.map +1 -1
  385. package/dist/components/ui/command/command.js +56 -48
  386. package/dist/components/ui/command/command.js.map +1 -1
  387. package/dist/components/ui/context-menu/context-menu.d.ts +8 -30
  388. package/dist/components/ui/context-menu/context-menu.d.ts.map +1 -1
  389. package/dist/components/ui/context-menu/context-menu.js +13 -121
  390. package/dist/components/ui/context-menu/context-menu.js.map +1 -1
  391. package/dist/components/ui/dialog/dialog-layer.d.ts +46 -0
  392. package/dist/components/ui/dialog/dialog-layer.d.ts.map +1 -0
  393. package/dist/components/ui/dialog/dialog-layer.js +169 -0
  394. package/dist/components/ui/dialog/dialog-layer.js.map +1 -0
  395. package/dist/components/ui/dialog/dialog.d.ts +20 -26
  396. package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
  397. package/dist/components/ui/dialog/dialog.js +69 -187
  398. package/dist/components/ui/dialog/dialog.js.map +1 -1
  399. package/dist/components/ui/drawer/drawer.d.ts.map +1 -1
  400. package/dist/components/ui/drawer/drawer.js +5 -8
  401. package/dist/components/ui/drawer/drawer.js.map +1 -1
  402. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +39 -53
  403. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts.map +1 -1
  404. package/dist/components/ui/dropdown-menu/dropdown-menu.js +135 -191
  405. package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
  406. package/dist/components/ui/dropdown-menu/menu-parts.d.ts +46 -0
  407. package/dist/components/ui/dropdown-menu/menu-parts.d.ts.map +1 -0
  408. package/dist/components/ui/dropdown-menu/menu-parts.js +176 -0
  409. package/dist/components/ui/dropdown-menu/menu-parts.js.map +1 -0
  410. package/dist/components/ui/field/field.js.map +1 -1
  411. package/dist/components/ui/field/number-field.js.map +1 -1
  412. package/dist/components/ui/hover-card/hover-card.d.ts +1 -2
  413. package/dist/components/ui/hover-card/hover-card.d.ts.map +1 -1
  414. package/dist/components/ui/hover-card/hover-card.js +4 -21
  415. package/dist/components/ui/hover-card/hover-card.js.map +1 -1
  416. package/dist/components/ui/menubar/menubar.d.ts +19 -33
  417. package/dist/components/ui/menubar/menubar.d.ts.map +1 -1
  418. package/dist/components/ui/menubar/menubar.js +21 -116
  419. package/dist/components/ui/menubar/menubar.js.map +1 -1
  420. package/dist/components/ui/message/index.js +2 -1
  421. package/dist/components/ui/message/message.d.ts +0 -1
  422. package/dist/components/ui/message/message.d.ts.map +1 -1
  423. package/dist/components/ui/message/message.js.map +1 -1
  424. package/dist/components/ui/message/parse-message-text.d.ts +20 -2
  425. package/dist/components/ui/message/parse-message-text.d.ts.map +1 -1
  426. package/dist/components/ui/message/parse-message-text.js +94 -28
  427. package/dist/components/ui/message/parse-message-text.js.map +1 -1
  428. package/dist/components/ui/modal-dialog/modal-dialog.d.ts +5 -12
  429. package/dist/components/ui/modal-dialog/modal-dialog.d.ts.map +1 -1
  430. package/dist/components/ui/modal-dialog/modal-dialog.js +61 -77
  431. package/dist/components/ui/modal-dialog/modal-dialog.js.map +1 -1
  432. package/dist/components/ui/navigation-menu/navigation-menu.d.ts +0 -1
  433. package/dist/components/ui/navigation-menu/navigation-menu.d.ts.map +1 -1
  434. package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
  435. package/dist/components/ui/popover/popover.d.ts +1 -3
  436. package/dist/components/ui/popover/popover.d.ts.map +1 -1
  437. package/dist/components/ui/popover/popover.js +1 -22
  438. package/dist/components/ui/popover/popover.js.map +1 -1
  439. package/dist/components/ui/resizable/resizable.d.ts.map +1 -1
  440. package/dist/components/ui/resizable/resizable.js +12 -6
  441. package/dist/components/ui/resizable/resizable.js.map +1 -1
  442. package/dist/components/ui/sheet/sheet.d.ts +4 -6
  443. package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
  444. package/dist/components/ui/sheet/sheet.js +31 -32
  445. package/dist/components/ui/sheet/sheet.js.map +1 -1
  446. package/dist/components/ui/text-link/index.d.ts.map +1 -1
  447. package/dist/components/ui/toggle-group/toggle-group.d.ts +1 -1
  448. package/dist/components/ui/toggle-group/toggle-group.d.ts.map +1 -1
  449. package/dist/components/ui/toggle-group/toggle-group.js +2 -7
  450. package/dist/components/ui/toggle-group/toggle-group.js.map +1 -1
  451. package/dist/components/ui/tooltip/tooltip.d.ts +17 -1
  452. package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
  453. package/dist/components/ui/tooltip/tooltip.js +40 -20
  454. package/dist/components/ui/tooltip/tooltip.js.map +1 -1
  455. package/dist/components/ui/trace/index.d.ts +1 -1
  456. package/dist/components/ui/trace/index.d.ts.map +1 -1
  457. package/dist/components/ui/trace/index.js +1 -1
  458. package/dist/components/ui/trace/trace.d.ts +44 -3
  459. package/dist/components/ui/trace/trace.d.ts.map +1 -1
  460. package/dist/components/ui/trace/trace.js +87 -15
  461. package/dist/components/ui/trace/trace.js.map +1 -1
  462. package/dist/index.js +34 -28
  463. package/dist/lib/accent-presets.d.ts +7 -4
  464. package/dist/lib/accent-presets.d.ts.map +1 -1
  465. package/dist/lib/accent-presets.js +10 -5
  466. package/dist/lib/accent-presets.js.map +1 -1
  467. package/dist/lib/accent-roles.d.ts +20 -1
  468. package/dist/lib/accent-roles.d.ts.map +1 -1
  469. package/dist/lib/accent-roles.js +34 -26
  470. package/dist/lib/accent-roles.js.map +1 -1
  471. package/dist/lib/appearance-font-settings.d.ts.map +1 -1
  472. package/dist/lib/appearance-font-settings.js +4 -4
  473. package/dist/lib/appearance-font-settings.js.map +1 -1
  474. package/dist/lib/async-action.d.ts +42 -0
  475. package/dist/lib/async-action.d.ts.map +1 -0
  476. package/dist/lib/async-action.js +61 -0
  477. package/dist/lib/async-action.js.map +1 -0
  478. package/dist/lib/breakpoints.d.ts +8 -0
  479. package/dist/lib/breakpoints.d.ts.map +1 -0
  480. package/dist/lib/breakpoints.js +11 -0
  481. package/dist/lib/breakpoints.js.map +1 -0
  482. package/dist/lib/bytes.d.ts +8 -0
  483. package/dist/lib/bytes.d.ts.map +1 -0
  484. package/dist/lib/bytes.js +20 -0
  485. package/dist/lib/bytes.js.map +1 -0
  486. package/dist/lib/clipboard.d.ts +13 -0
  487. package/dist/lib/clipboard.d.ts.map +1 -1
  488. package/dist/lib/clipboard.js +32 -1
  489. package/dist/lib/clipboard.js.map +1 -1
  490. package/dist/lib/events.d.ts +14 -0
  491. package/dist/lib/events.d.ts.map +1 -0
  492. package/dist/lib/events.js +16 -0
  493. package/dist/lib/events.js.map +1 -0
  494. package/dist/lib/external-link.d.ts +19 -0
  495. package/dist/lib/external-link.d.ts.map +1 -0
  496. package/dist/lib/external-link.js +27 -0
  497. package/dist/lib/external-link.js.map +1 -0
  498. package/dist/lib/font-catalog.d.ts +3 -6
  499. package/dist/lib/font-catalog.d.ts.map +1 -1
  500. package/dist/lib/font-catalog.js +16 -12
  501. package/dist/lib/font-catalog.js.map +1 -1
  502. package/dist/lib/font-zoom.d.ts +4 -4
  503. package/dist/lib/font-zoom.d.ts.map +1 -1
  504. package/dist/lib/font-zoom.js +9 -12
  505. package/dist/lib/font-zoom.js.map +1 -1
  506. package/dist/lib/overlay.d.ts +29 -1
  507. package/dist/lib/overlay.d.ts.map +1 -1
  508. package/dist/lib/overlay.js +32 -16
  509. package/dist/lib/overlay.js.map +1 -1
  510. package/dist/lib/preference-store.d.ts +13 -3
  511. package/dist/lib/preference-store.d.ts.map +1 -1
  512. package/dist/lib/preference-store.js +27 -37
  513. package/dist/lib/preference-store.js.map +1 -1
  514. package/dist/lib/resize-separator.d.ts +15 -0
  515. package/dist/lib/resize-separator.d.ts.map +1 -0
  516. package/dist/lib/resize-separator.js +23 -0
  517. package/dist/lib/resize-separator.js.map +1 -0
  518. package/dist/lib/safe-script.d.ts +19 -1
  519. package/dist/lib/safe-script.d.ts.map +1 -1
  520. package/dist/lib/safe-script.js +19 -1
  521. package/dist/lib/safe-script.js.map +1 -1
  522. package/dist/lib/scroll-geometry.d.ts +33 -0
  523. package/dist/lib/scroll-geometry.d.ts.map +1 -0
  524. package/dist/lib/scroll-geometry.js +48 -0
  525. package/dist/lib/scroll-geometry.js.map +1 -0
  526. package/dist/lib/text.d.ts +13 -0
  527. package/dist/lib/text.d.ts.map +1 -0
  528. package/dist/lib/text.js +30 -0
  529. package/dist/lib/text.js.map +1 -0
  530. package/dist/lib/theme-accents.d.ts +2 -0
  531. package/dist/lib/theme-accents.d.ts.map +1 -1
  532. package/dist/lib/theme-accents.js +2 -2
  533. package/dist/lib/theme-accents.js.map +1 -1
  534. package/dist/lib/theme-catalogue.d.ts.map +1 -1
  535. package/dist/lib/theme-catalogue.js +3 -4
  536. package/dist/lib/theme-catalogue.js.map +1 -1
  537. package/dist/lib/theme-css.d.ts +14 -1
  538. package/dist/lib/theme-css.d.ts.map +1 -1
  539. package/dist/lib/theme-css.js +25 -48
  540. package/dist/lib/theme-css.js.map +1 -1
  541. package/dist/lib/theme-defaults.d.ts +33 -5
  542. package/dist/lib/theme-defaults.d.ts.map +1 -1
  543. package/dist/lib/theme-defaults.generated.d.ts +1 -1
  544. package/dist/lib/theme-defaults.generated.d.ts.map +1 -1
  545. package/dist/lib/theme-defaults.generated.js.map +1 -1
  546. package/dist/lib/theme-defaults.js +59 -3
  547. package/dist/lib/theme-defaults.js.map +1 -1
  548. package/dist/lib/theme-engine-light.d.ts +6 -0
  549. package/dist/lib/theme-engine-light.d.ts.map +1 -1
  550. package/dist/lib/theme-engine-light.js +71 -57
  551. package/dist/lib/theme-engine-light.js.map +1 -1
  552. package/dist/lib/theme-engine.d.ts +20 -22
  553. package/dist/lib/theme-engine.d.ts.map +1 -1
  554. package/dist/lib/theme-engine.js +19 -6
  555. package/dist/lib/theme-engine.js.map +1 -1
  556. package/dist/lib/theme-records.d.ts +3 -3
  557. package/dist/lib/theme-records.d.ts.map +1 -1
  558. package/dist/lib/theme-records.js +20 -59
  559. package/dist/lib/theme-records.js.map +1 -1
  560. package/dist/lib/theme-types.d.ts +174 -0
  561. package/dist/lib/theme-types.d.ts.map +1 -0
  562. package/dist/lib/theme-types.js +105 -0
  563. package/dist/lib/theme-types.js.map +1 -0
  564. package/dist/lib/themes.d.ts +4 -159
  565. package/dist/lib/themes.d.ts.map +1 -1
  566. package/dist/lib/themes.js +14 -33
  567. package/dist/lib/themes.js.map +1 -1
  568. package/dist/lib/tokens.d.ts.map +1 -1
  569. package/dist/lib/tokens.js +0 -1
  570. package/dist/lib/tokens.js.map +1 -1
  571. package/dist/lib/url.d.ts +9 -0
  572. package/dist/lib/url.d.ts.map +1 -0
  573. package/dist/lib/url.js +24 -0
  574. package/dist/lib/url.js.map +1 -0
  575. package/dist/lib/version-notes.d.ts.map +1 -1
  576. package/dist/lib/version-notes.js +3 -10
  577. package/dist/lib/version-notes.js.map +1 -1
  578. package/dist/r/about-dialog.json +2 -1
  579. package/dist/r/action-button.json +2 -1
  580. package/dist/r/alert-dialog.json +1 -0
  581. package/dist/r/checkpoint.json +0 -2
  582. package/dist/r/code-block.json +1 -0
  583. package/dist/r/confirmation.json +0 -1
  584. package/dist/r/context-menu.json +2 -2
  585. package/dist/r/context.json +0 -1
  586. package/dist/r/conversation.json +6 -5
  587. package/dist/r/dialog.json +5 -0
  588. package/dist/r/drawer.json +0 -1
  589. package/dist/r/dropdown-menu.json +5 -0
  590. package/dist/r/lib.json +50 -0
  591. package/dist/r/menubar.json +2 -2
  592. package/dist/r/model-selector.json +0 -1
  593. package/dist/r/reasoning.json +2 -1
  594. package/dist/r/registry.json +102 -43
  595. package/dist/r/shell-top-bar.json +1 -0
  596. package/dist/r/sidebar-nav.json +5 -0
  597. package/dist/r/sources.json +2 -2
  598. package/dist/r/src/components/composites/about-dialog/about-dialog.tsx +22 -42
  599. package/dist/r/src/components/composites/account-menu/account-menu.tsx +9 -35
  600. package/dist/r/src/components/composites/action-button/action-button.tsx +5 -7
  601. package/dist/r/src/components/composites/appearance-editor/accent-swatch-groups.tsx +3 -11
  602. package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +8 -5
  603. package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +8 -6
  604. package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +14 -74
  605. package/dist/r/src/components/composites/appearance-editor/font-settings-group.tsx +11 -77
  606. package/dist/r/src/components/composites/appearance-editor/index.ts +1 -0
  607. package/dist/r/src/components/composites/catalog-browser/catalog-browser.tsx +9 -13
  608. package/dist/r/src/components/composites/chain-of-thought/chain-of-thought.tsx +16 -18
  609. package/dist/r/src/components/composites/chat/chat.tsx +2 -2
  610. package/dist/r/src/components/composites/checkpoint/checkpoint-model.ts +3 -3
  611. package/dist/r/src/components/composites/checkpoint/checkpoint.tsx +3 -3
  612. package/dist/r/src/components/composites/confirmation/confirmation-model.ts +9 -17
  613. package/dist/r/src/components/composites/confirmation/confirmation.tsx +2 -2
  614. package/dist/r/src/components/composites/context/context-model.ts +1 -1
  615. package/dist/r/src/components/composites/file-tree/build-file-tree.ts +21 -39
  616. package/dist/r/src/components/composites/file-tree/file-tree.tsx +5 -58
  617. package/dist/r/src/components/composites/file-tree/index.ts +1 -1
  618. package/dist/r/src/components/composites/help-center/help-center.tsx +8 -21
  619. package/dist/r/src/components/composites/icon-picker/icon-picker.tsx +10 -11
  620. package/dist/r/src/components/composites/inline-citation/citation.ts +2 -1
  621. package/dist/r/src/components/composites/inline-citation/inline-citation.tsx +3 -2
  622. package/dist/r/src/components/composites/message-scroller/message-scroller.tsx +30 -30
  623. package/dist/r/src/components/composites/message-scroller/scroll-anchor.ts +5 -5
  624. package/dist/r/src/components/composites/model-selector/model-selector.tsx +3 -2
  625. package/dist/r/src/components/composites/model-selector/models.ts +1 -1
  626. package/dist/r/src/components/composites/plan/plan.tsx +1 -4
  627. package/dist/r/src/components/composites/queue/queue.tsx +8 -11
  628. package/dist/r/src/components/composites/reasoning/reasoning.tsx +5 -23
  629. package/dist/r/src/components/composites/settings/settings-layout.tsx +3 -2
  630. package/dist/r/src/components/composites/settings/settings-navigation.tsx +4 -1
  631. package/dist/r/src/components/composites/sources/source.ts +7 -53
  632. package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +3 -12
  633. package/dist/r/src/components/composites/subagent/subagent.tsx +7 -17
  634. package/dist/r/src/components/composites/suggestion/suggestion.tsx +4 -3
  635. package/dist/r/src/components/composites/task/task.tsx +21 -64
  636. package/dist/r/src/components/composites/terminal/terminal-model.ts +4 -4
  637. package/dist/r/src/components/composites/terminal/terminal.tsx +3 -12
  638. package/dist/r/src/components/composites/test-results/test-results.tsx +3 -12
  639. package/dist/r/src/components/composites/tool/tool.tsx +34 -40
  640. package/dist/r/src/components/composites/tree/tree-navigation.ts +22 -2
  641. package/dist/r/src/components/composites/tree/tree.tsx +47 -3
  642. package/dist/r/src/components/composites/update-dialog/channel-control.tsx +10 -14
  643. package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +66 -200
  644. package/dist/r/src/components/composites/update-dialog/update-model.ts +137 -0
  645. package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +1 -1
  646. package/dist/r/src/components/composites/workspace-switcher/workspace-reorder-dialog.tsx +1 -18
  647. package/dist/r/src/components/composites/workspace-switcher/workspace-switcher.tsx +16 -19
  648. package/dist/r/src/components/conversation/busy-send-button.tsx +7 -34
  649. package/dist/r/src/components/conversation/chat-composer.tsx +1 -1
  650. package/dist/r/src/components/conversation/composer-core.ts +76 -0
  651. package/dist/r/src/components/conversation/composer-menu.tsx +1 -1
  652. package/dist/r/src/components/conversation/conversation-pane.tsx +4 -1
  653. package/dist/r/src/components/conversation/conversation-surface.tsx +23 -10
  654. package/dist/r/src/components/conversation/ime-guard.ts +6 -0
  655. package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +24 -65
  656. package/dist/r/src/components/conversation/message-composer.tsx +24 -54
  657. package/dist/r/src/components/conversation/message-row.tsx +33 -47
  658. package/dist/r/src/components/conversation/paste-token-editor.tsx +13 -16
  659. package/dist/r/src/components/conversation/paste-tokens.ts +36 -1
  660. package/dist/r/src/components/conversation/scroll-follow-core.ts +66 -137
  661. package/dist/r/src/components/conversation/scroll-follow.ts +26 -67
  662. package/dist/r/src/components/conversation/thread-panel.tsx +2 -4
  663. package/dist/r/src/components/conversation/transcript-composition.tsx +9 -33
  664. package/dist/r/src/components/conversation/transcript-folding.ts +2 -2
  665. package/dist/r/src/components/conversation/transcript-grouping.ts +18 -3
  666. package/dist/r/src/components/layout/contextual-sidebar/contextual-sidebar.tsx +4 -3
  667. package/dist/r/src/components/layout/contextual-sidebar/mobile-contextual-sidebar.tsx +1 -1
  668. package/dist/r/src/components/layout/floating-preview/model.ts +57 -195
  669. package/dist/r/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +6 -12
  670. package/dist/r/src/components/layout/shell-top-bar/shell-top-bar.tsx +32 -47
  671. package/dist/r/src/components/layout/side-rail/side-rail-context.ts +1 -11
  672. package/dist/r/src/components/layout/side-rail/side-rail.tsx +95 -107
  673. package/dist/r/src/components/layout/sidebar-nav/index.ts +1 -2
  674. package/dist/r/src/components/layout/sidebar-nav/sidebar-nav-classes.ts +15 -0
  675. package/dist/r/src/components/layout/sidebar-nav/sidebar-nav-resize-handle.tsx +1 -4
  676. package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +9 -27
  677. package/dist/r/src/components/layout/split-layout/geometry.ts +2 -9
  678. package/dist/r/src/components/layout/split-layout/model.ts +3 -6
  679. package/dist/r/src/components/layout/split-layout/resize-controller-core-retry.tsx +12 -6
  680. package/dist/r/src/components/layout/split-layout/resize-controller-core.tsx +12 -6
  681. package/dist/r/src/components/layout/split-layout/split-layout.tsx +46 -61
  682. package/dist/r/src/components/layout/split-layout/tree.ts +5 -0
  683. package/dist/r/src/components/layout/top-bar/top-bar.tsx +16 -38
  684. package/dist/r/src/components/layout/top-bar/window-chrome.ts +23 -0
  685. package/dist/r/src/components/motion/presence.tsx +1 -3
  686. package/dist/r/src/components/theme/appearance-panel.tsx +28 -19
  687. package/dist/r/src/components/theme/index.ts +1 -22
  688. package/dist/r/src/components/theme/lazy.ts +36 -26
  689. package/dist/r/src/components/theme/theme-api.ts +30 -0
  690. package/dist/r/src/components/theme/theme-catalogue-source.ts +3 -2
  691. package/dist/r/src/components/theme/theme-document.ts +248 -23
  692. package/dist/r/src/components/theme/theme-mode-toggle.tsx +1 -1
  693. package/dist/r/src/components/theme/theme-persistence.ts +74 -130
  694. package/dist/r/src/components/theme/theme-picker.tsx +2 -2
  695. package/dist/r/src/components/theme/theme-provider-value.ts +53 -68
  696. package/dist/r/src/components/theme/theme-provider.tsx +5 -24
  697. package/dist/r/src/components/theme/theme-script.ts +48 -43
  698. package/dist/r/src/components/theme/theme-state.ts +350 -10
  699. package/dist/r/src/components/theme/theme-toggle.tsx +1 -1
  700. package/dist/r/src/components/ui/alert-dialog/alert-dialog.tsx +43 -43
  701. package/dist/r/src/components/ui/attachment/attachment.tsx +4 -17
  702. package/dist/r/src/components/ui/avatar/avatar.tsx +3 -2
  703. package/dist/r/src/components/ui/board/board.tsx +4 -10
  704. package/dist/r/src/components/ui/button-group/button-group.tsx +1 -1
  705. package/dist/r/src/components/ui/chart/chart.tsx +0 -3
  706. package/dist/r/src/components/ui/code-block/code-block.tsx +7 -26
  707. package/dist/r/src/components/ui/command/command.tsx +43 -39
  708. package/dist/r/src/components/ui/context-menu/context-menu.tsx +18 -168
  709. package/dist/r/src/components/ui/dialog/dialog-layer.tsx +266 -0
  710. package/dist/r/src/components/ui/dialog/dialog.tsx +77 -271
  711. package/dist/r/src/components/ui/drawer/drawer.tsx +5 -23
  712. package/dist/r/src/components/ui/dropdown-menu/dropdown-menu.tsx +204 -226
  713. package/dist/r/src/components/ui/dropdown-menu/menu-parts.tsx +220 -0
  714. package/dist/r/src/components/ui/field/field.tsx +1 -1
  715. package/dist/r/src/components/ui/field/number-field.tsx +1 -1
  716. package/dist/r/src/components/ui/hover-card/hover-card.tsx +4 -11
  717. package/dist/r/src/components/ui/menubar/menubar.tsx +36 -169
  718. package/dist/r/src/components/ui/message/message.tsx +0 -1
  719. package/dist/r/src/components/ui/message/parse-message-text.ts +80 -32
  720. package/dist/r/src/components/ui/modal-dialog/modal-dialog.tsx +9 -39
  721. package/dist/r/src/components/ui/navigation-menu/navigation-menu.tsx +0 -1
  722. package/dist/r/src/components/ui/popover/popover.tsx +5 -11
  723. package/dist/r/src/components/ui/resizable/resizable.tsx +6 -16
  724. package/dist/r/src/components/ui/sheet/sheet.tsx +30 -42
  725. package/dist/r/src/components/ui/text-link/index.ts +0 -1
  726. package/dist/r/src/components/ui/toggle-group/toggle-group.tsx +3 -11
  727. package/dist/r/src/components/ui/tooltip/tooltip.tsx +47 -26
  728. package/dist/r/src/components/ui/trace/index.ts +7 -0
  729. package/dist/r/src/components/ui/trace/trace.tsx +100 -9
  730. package/dist/r/src/lib/accent-presets.ts +12 -8
  731. package/dist/r/src/lib/accent-roles.ts +43 -29
  732. package/dist/r/src/lib/appearance-font-settings.ts +5 -5
  733. package/dist/r/src/lib/async-action.ts +72 -0
  734. package/dist/r/src/lib/breakpoints.ts +7 -0
  735. package/dist/r/src/lib/bytes.ts +20 -0
  736. package/dist/r/src/lib/clipboard.ts +43 -0
  737. package/dist/r/src/lib/events.ts +17 -0
  738. package/dist/r/src/lib/external-link.ts +42 -0
  739. package/dist/r/src/lib/font-catalog.ts +4 -6
  740. package/dist/r/src/lib/font-zoom.ts +9 -14
  741. package/dist/r/src/lib/overlay.ts +55 -18
  742. package/dist/r/src/lib/preference-store.ts +36 -34
  743. package/dist/r/src/lib/resize-separator.ts +36 -0
  744. package/dist/r/src/lib/safe-script.ts +19 -1
  745. package/dist/r/src/lib/scroll-geometry.ts +69 -0
  746. package/dist/r/src/lib/text.ts +49 -0
  747. package/dist/r/src/lib/theme-accents.ts +1 -1
  748. package/dist/r/src/lib/theme-catalogue.ts +3 -4
  749. package/dist/r/src/lib/theme-css.ts +33 -54
  750. package/dist/r/src/lib/theme-defaults.generated.ts +1 -1
  751. package/dist/r/src/lib/theme-defaults.ts +55 -7
  752. package/dist/r/src/lib/theme-engine-light.ts +88 -72
  753. package/dist/r/src/lib/theme-engine.ts +29 -33
  754. package/dist/r/src/lib/theme-records.ts +33 -69
  755. package/dist/r/src/lib/theme-types.ts +199 -0
  756. package/dist/r/src/lib/themes.ts +33 -196
  757. package/dist/r/src/lib/tokens.ts +0 -1
  758. package/dist/r/src/lib/url.ts +25 -0
  759. package/dist/r/src/lib/version-notes.ts +3 -9
  760. package/dist/r/src/styles/theme-variants.css +32 -32
  761. package/dist/r/src/styles/theme.css +17 -13
  762. package/dist/r/subagent.json +0 -2
  763. package/dist/r/suggestion.json +0 -1
  764. package/dist/r/theming.json +5 -20
  765. package/dist/r/top-bar.json +5 -0
  766. package/dist/r/trace.json +1 -0
  767. package/dist/r/update-dialog.json +5 -0
  768. package/package.json +9 -7
  769. package/registry.json +102 -43
  770. package/src/components/composites/about-dialog/about-dialog.tsx +22 -42
  771. package/src/components/composites/account-menu/account-menu.tsx +9 -35
  772. package/src/components/composites/action-button/action-button.tsx +5 -7
  773. package/src/components/composites/appearance-editor/accent-swatch-groups.tsx +3 -11
  774. package/src/components/composites/appearance-editor/appearance-choices.tsx +8 -5
  775. package/src/components/composites/appearance-editor/appearance-editor.tsx +8 -6
  776. package/src/components/composites/appearance-editor/appearance-rows.tsx +14 -74
  777. package/src/components/composites/appearance-editor/font-settings-group.tsx +11 -77
  778. package/src/components/composites/appearance-editor/index.ts +1 -0
  779. package/src/components/composites/catalog-browser/catalog-browser.tsx +9 -13
  780. package/src/components/composites/chain-of-thought/chain-of-thought.tsx +16 -18
  781. package/src/components/composites/chat/chat.tsx +2 -2
  782. package/src/components/composites/checkpoint/checkpoint-model.ts +3 -3
  783. package/src/components/composites/checkpoint/checkpoint.tsx +3 -3
  784. package/src/components/composites/confirmation/confirmation-model.ts +9 -17
  785. package/src/components/composites/confirmation/confirmation.tsx +2 -2
  786. package/src/components/composites/context/context-model.ts +1 -1
  787. package/src/components/composites/file-tree/build-file-tree.ts +21 -39
  788. package/src/components/composites/file-tree/file-tree.tsx +5 -58
  789. package/src/components/composites/file-tree/index.ts +1 -1
  790. package/src/components/composites/help-center/help-center.tsx +8 -21
  791. package/src/components/composites/icon-picker/icon-picker.tsx +10 -11
  792. package/src/components/composites/inline-citation/citation.ts +2 -1
  793. package/src/components/composites/inline-citation/inline-citation.tsx +3 -2
  794. package/src/components/composites/message-scroller/message-scroller.tsx +30 -30
  795. package/src/components/composites/message-scroller/scroll-anchor.ts +5 -5
  796. package/src/components/composites/model-selector/model-selector.tsx +3 -2
  797. package/src/components/composites/model-selector/models.ts +1 -1
  798. package/src/components/composites/plan/plan.tsx +1 -4
  799. package/src/components/composites/queue/queue.tsx +8 -11
  800. package/src/components/composites/reasoning/reasoning.tsx +5 -23
  801. package/src/components/composites/settings/settings-layout.tsx +3 -2
  802. package/src/components/composites/settings/settings-navigation.tsx +4 -1
  803. package/src/components/composites/sources/source.ts +7 -53
  804. package/src/components/composites/stack-trace/stack-trace.tsx +3 -12
  805. package/src/components/composites/subagent/subagent.tsx +7 -17
  806. package/src/components/composites/suggestion/suggestion.tsx +4 -3
  807. package/src/components/composites/task/task.tsx +21 -64
  808. package/src/components/composites/terminal/terminal-model.ts +4 -4
  809. package/src/components/composites/terminal/terminal.tsx +3 -12
  810. package/src/components/composites/test-results/test-results.tsx +3 -12
  811. package/src/components/composites/tool/tool.tsx +34 -40
  812. package/src/components/composites/tree/tree-navigation.ts +22 -2
  813. package/src/components/composites/tree/tree.tsx +47 -3
  814. package/src/components/composites/update-dialog/channel-control.tsx +10 -14
  815. package/src/components/composites/update-dialog/update-dialog.tsx +66 -200
  816. package/src/components/composites/update-dialog/update-model.ts +137 -0
  817. package/src/components/composites/workspace-mark/workspace-mark.tsx +1 -1
  818. package/src/components/composites/workspace-switcher/workspace-reorder-dialog.tsx +1 -18
  819. package/src/components/composites/workspace-switcher/workspace-switcher.tsx +16 -19
  820. package/src/components/conversation/busy-send-button.tsx +7 -34
  821. package/src/components/conversation/chat-composer.tsx +1 -1
  822. package/src/components/conversation/composer-core.ts +76 -0
  823. package/src/components/conversation/composer-menu.tsx +1 -1
  824. package/src/components/conversation/conversation-pane.tsx +4 -1
  825. package/src/components/conversation/conversation-surface.tsx +23 -10
  826. package/src/components/conversation/ime-guard.ts +6 -0
  827. package/src/components/conversation/internal/chat-composer-shell.tsx +24 -65
  828. package/src/components/conversation/message-composer.tsx +24 -54
  829. package/src/components/conversation/message-row.tsx +33 -47
  830. package/src/components/conversation/paste-token-editor.tsx +13 -16
  831. package/src/components/conversation/paste-tokens.ts +36 -1
  832. package/src/components/conversation/scroll-follow-core.ts +66 -137
  833. package/src/components/conversation/scroll-follow.ts +26 -67
  834. package/src/components/conversation/thread-panel.tsx +2 -4
  835. package/src/components/conversation/transcript-composition.tsx +9 -33
  836. package/src/components/conversation/transcript-folding.ts +2 -2
  837. package/src/components/conversation/transcript-grouping.ts +18 -3
  838. package/src/components/layout/contextual-sidebar/contextual-sidebar.tsx +4 -3
  839. package/src/components/layout/contextual-sidebar/mobile-contextual-sidebar.tsx +1 -1
  840. package/src/components/layout/floating-preview/model.ts +57 -195
  841. package/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +6 -12
  842. package/src/components/layout/shell-top-bar/shell-top-bar.tsx +32 -47
  843. package/src/components/layout/side-rail/side-rail-context.ts +1 -11
  844. package/src/components/layout/side-rail/side-rail.tsx +95 -107
  845. package/src/components/layout/sidebar-nav/index.ts +1 -2
  846. package/src/components/layout/sidebar-nav/sidebar-nav-classes.ts +15 -0
  847. package/src/components/layout/sidebar-nav/sidebar-nav-resize-handle.tsx +1 -4
  848. package/src/components/layout/sidebar-nav/sidebar-nav.tsx +9 -27
  849. package/src/components/layout/split-layout/geometry.ts +2 -9
  850. package/src/components/layout/split-layout/model.ts +3 -6
  851. package/src/components/layout/split-layout/resize-controller-core-retry.tsx +12 -6
  852. package/src/components/layout/split-layout/resize-controller-core.tsx +12 -6
  853. package/src/components/layout/split-layout/split-layout.tsx +46 -61
  854. package/src/components/layout/split-layout/tree.ts +5 -0
  855. package/src/components/layout/top-bar/top-bar.tsx +16 -38
  856. package/src/components/layout/top-bar/window-chrome.ts +23 -0
  857. package/src/components/motion/presence.tsx +1 -3
  858. package/src/components/theme/appearance-panel.tsx +28 -19
  859. package/src/components/theme/index.ts +1 -22
  860. package/src/components/theme/lazy.ts +36 -26
  861. package/src/components/theme/theme-api.ts +30 -0
  862. package/src/components/theme/theme-catalogue-source.ts +3 -2
  863. package/src/components/theme/theme-document.ts +248 -23
  864. package/src/components/theme/theme-mode-toggle.tsx +1 -1
  865. package/src/components/theme/theme-persistence.ts +74 -130
  866. package/src/components/theme/theme-picker.tsx +2 -2
  867. package/src/components/theme/theme-provider-value.ts +53 -68
  868. package/src/components/theme/theme-provider.tsx +5 -24
  869. package/src/components/theme/theme-script.ts +48 -43
  870. package/src/components/theme/theme-state.ts +350 -10
  871. package/src/components/theme/theme-toggle.tsx +1 -1
  872. package/src/components/ui/alert-dialog/alert-dialog.tsx +43 -43
  873. package/src/components/ui/attachment/attachment.tsx +4 -17
  874. package/src/components/ui/avatar/avatar.tsx +3 -2
  875. package/src/components/ui/board/board.tsx +4 -10
  876. package/src/components/ui/button-group/button-group.tsx +1 -1
  877. package/src/components/ui/chart/chart.tsx +0 -3
  878. package/src/components/ui/code-block/code-block.tsx +7 -26
  879. package/src/components/ui/command/command.tsx +43 -39
  880. package/src/components/ui/context-menu/context-menu.tsx +18 -168
  881. package/src/components/ui/dialog/dialog-layer.tsx +266 -0
  882. package/src/components/ui/dialog/dialog.tsx +77 -271
  883. package/src/components/ui/drawer/drawer.tsx +5 -23
  884. package/src/components/ui/dropdown-menu/dropdown-menu.tsx +204 -226
  885. package/src/components/ui/dropdown-menu/menu-parts.tsx +220 -0
  886. package/src/components/ui/field/field.tsx +1 -1
  887. package/src/components/ui/field/number-field.tsx +1 -1
  888. package/src/components/ui/hover-card/hover-card.tsx +4 -11
  889. package/src/components/ui/menubar/menubar.tsx +36 -169
  890. package/src/components/ui/message/message.tsx +0 -1
  891. package/src/components/ui/message/parse-message-text.ts +80 -32
  892. package/src/components/ui/modal-dialog/modal-dialog.tsx +9 -39
  893. package/src/components/ui/navigation-menu/navigation-menu.tsx +0 -1
  894. package/src/components/ui/popover/popover.tsx +5 -11
  895. package/src/components/ui/resizable/resizable.tsx +6 -16
  896. package/src/components/ui/sheet/sheet.tsx +30 -42
  897. package/src/components/ui/text-link/index.ts +0 -1
  898. package/src/components/ui/toggle-group/toggle-group.tsx +3 -11
  899. package/src/components/ui/tooltip/tooltip.tsx +47 -26
  900. package/src/components/ui/trace/index.ts +7 -0
  901. package/src/components/ui/trace/trace.tsx +100 -9
  902. package/src/lib/accent-presets.ts +12 -8
  903. package/src/lib/accent-roles.ts +43 -29
  904. package/src/lib/appearance-font-settings.ts +5 -5
  905. package/src/lib/async-action.ts +72 -0
  906. package/src/lib/breakpoints.ts +7 -0
  907. package/src/lib/bytes.ts +20 -0
  908. package/src/lib/clipboard.ts +43 -0
  909. package/src/lib/events.ts +17 -0
  910. package/src/lib/external-link.ts +42 -0
  911. package/src/lib/font-catalog.ts +4 -6
  912. package/src/lib/font-zoom.ts +9 -14
  913. package/src/lib/overlay.ts +55 -18
  914. package/src/lib/preference-store.ts +36 -34
  915. package/src/lib/resize-separator.ts +36 -0
  916. package/src/lib/safe-script.ts +19 -1
  917. package/src/lib/scroll-geometry.ts +69 -0
  918. package/src/lib/text.ts +49 -0
  919. package/src/lib/theme-accents.ts +1 -1
  920. package/src/lib/theme-catalogue.ts +3 -4
  921. package/src/lib/theme-css.ts +33 -54
  922. package/src/lib/theme-defaults.generated.ts +1 -1
  923. package/src/lib/theme-defaults.ts +55 -7
  924. package/src/lib/theme-engine-light.ts +88 -72
  925. package/src/lib/theme-engine.ts +29 -33
  926. package/src/lib/theme-records.ts +33 -69
  927. package/src/lib/theme-types.ts +199 -0
  928. package/src/lib/themes.ts +33 -196
  929. package/src/lib/tokens.ts +0 -1
  930. package/src/lib/url.ts +25 -0
  931. package/src/lib/version-notes.ts +3 -9
  932. package/src/styles/theme-variants.css +32 -32
  933. package/src/styles/theme.css +17 -13
  934. package/dist/components/conversation/paste-preview.d.ts +0 -11
  935. package/dist/components/conversation/paste-preview.d.ts.map +0 -1
  936. package/dist/components/conversation/paste-preview.js +0 -27
  937. package/dist/components/conversation/paste-preview.js.map +0 -1
  938. package/dist/components/theme/theme-document-core.d.ts +0 -124
  939. package/dist/components/theme/theme-document-core.d.ts.map +0 -1
  940. package/dist/components/theme/theme-document-core.js.map +0 -1
  941. package/dist/components/theme/theme-provider-core.d.ts +0 -19
  942. package/dist/components/theme/theme-provider-core.d.ts.map +0 -1
  943. package/dist/components/theme/theme-provider-core.js +0 -27
  944. package/dist/components/theme/theme-provider-core.js.map +0 -1
  945. package/dist/components/theme/theme-provider-lazy.d.ts +0 -28
  946. package/dist/components/theme/theme-provider-lazy.d.ts.map +0 -1
  947. package/dist/components/theme/theme-provider-lazy.js +0 -35
  948. package/dist/components/theme/theme-provider-lazy.js.map +0 -1
  949. package/dist/components/theme/theme-state-core.d.ts +0 -254
  950. package/dist/components/theme/theme-state-core.d.ts.map +0 -1
  951. package/dist/components/theme/theme-state-core.js.map +0 -1
  952. package/dist/r/src/components/conversation/paste-preview.ts +0 -35
  953. package/dist/r/src/components/theme/theme-document-core.ts +0 -275
  954. package/dist/r/src/components/theme/theme-provider-core.tsx +0 -40
  955. package/dist/r/src/components/theme/theme-provider-lazy.tsx +0 -34
  956. package/dist/r/src/components/theme/theme-state-core.ts +0 -370
  957. package/src/components/conversation/paste-preview.ts +0 -35
  958. package/src/components/theme/theme-document-core.ts +0 -275
  959. package/src/components/theme/theme-provider-core.tsx +0 -40
  960. package/src/components/theme/theme-provider-lazy.tsx +0 -34
  961. package/src/components/theme/theme-state-core.ts +0 -370
@@ -69,7 +69,6 @@
69
69
  /* The interactive colour */
70
70
  --primary: oklch(0.5143 0.1668 301.69);
71
71
  --primary-foreground: oklch(1 0 0);
72
- --ring: oklch(0.5143 0.1668 301.69);
73
72
  --accent: oklch(0.9 0 0);
74
73
  --accent-foreground: oklch(0.2542 0.0111 254.04);
75
74
 
@@ -131,15 +130,6 @@
131
130
  --diff-hunk-foreground: var(--info);
132
131
  --diff-meta-foreground: var(--muted-foreground);
133
132
 
134
- /*
135
- * The modal veil. One value in both appearances because a scrim sits over
136
- * media rather than over the application — a video, a screenshot — and a veil
137
- * that changed with the theme would be a veil that is wrong half the time.
138
- */
139
- --scrim: oklch(0.1919 0.025 264.7);
140
- --scrim-foreground: oklch(1 0 0);
141
- --scrim-edge: oklch(1 0 0);
142
-
143
133
  /*
144
134
  * A uniform step away from the canvas, so a hovered primary button reads as
145
135
  * hovered rather than as a second, slightly different colour.
@@ -173,10 +163,20 @@
173
163
  * well cut into the page rather than a panel laid on it.
174
164
  */
175
165
  --surface-sunken: oklch(0.98 0 0);
176
- --chrome-alpha: 0.9;
177
166
 
178
167
  color-scheme: light;
179
168
  /* @end generated theme:root */
169
+
170
+ /*
171
+ * The modal veil. One value in both appearances because a scrim sits over
172
+ * media rather than over the application — a video, a screenshot — and a veil
173
+ * that changed with the theme would be a veil that is wrong half the time.
174
+ */
175
+ --scrim: oklch(0.1919 0.025 264.7);
176
+ --scrim-foreground: oklch(1 0 0);
177
+ --scrim-edge: oklch(1 0 0);
178
+
179
+ --chrome-alpha: 0.9;
180
180
  }
181
181
 
182
182
  /* ---------------------------------------------------------------------------
@@ -213,7 +213,6 @@
213
213
  /* The interactive colour */
214
214
  --primary: oklch(0.7323 0.1668 301.69);
215
215
  --primary-foreground: oklch(0.1756 0.0063 300.91);
216
- --ring: oklch(0.7323 0.1668 301.69);
217
216
  --accent: oklch(0.2756 0.0101 300.91);
218
217
  --accent-foreground: oklch(0.942 0.0054 297.72);
219
218
 
@@ -308,7 +307,6 @@
308
307
  * well cut into the page rather than a panel laid on it.
309
308
  */
310
309
  --surface-sunken: oklch(0.1556 0.0049 300.91);
311
- --chrome-alpha: 0.9;
312
310
 
313
311
  color-scheme: dark;
314
312
  /* @end generated theme:dark */
@@ -428,6 +426,12 @@
428
426
  * `data-accent`; the default (absent) is Space Grotesk, which is what the visual
429
427
  * language was drawn against.
430
428
  *
429
+ * This is the compatibility axis for a host that sets `data-font` itself; nothing in
430
+ * this package does. A host on the provider's per-role font settings loads
431
+ * `appearance-font-settings.css`, whose `:root[data-font-settings]` block outranks
432
+ * these and defaults every role to the system face, as
433
+ * `DEFAULT_APPEARANCE_EDITOR_FONT_SETTINGS` does.
434
+ *
431
435
  * `system` is deliberately first-class rather than a fallback: an application that
432
436
  * wants the platform's own face — which is what a terminal and a code editor
433
437
  * usually look best in — should be able to say so without losing the rest of the
@@ -1,11 +0,0 @@
1
- export declare const PASTE_PREVIEW_MAX_LINES = 12;
2
- export declare const PASTE_PREVIEW_MAX_CHARACTERS = 1200;
3
- export interface PastePreviewSummary {
4
- text: string;
5
- hiddenLines: number;
6
- hiddenCharacters: number;
7
- scannedCharacters: number;
8
- }
9
- /** Build a bounded preview without splitting or joining the full paste content. */
10
- export declare function summarizePastePreview(content: string, totalLines: number): PastePreviewSummary;
11
- //# sourceMappingURL=paste-preview.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"paste-preview.d.ts","sourceRoot":"","sources":["../../../src/components/conversation/paste-preview.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,KAAK,CAAA;AACzC,eAAO,MAAM,4BAA4B,OAAO,CAAA;AAEhD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;CAC1B;AAED,mFAAmF;AACnF,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,mBAAmB,CAuB9F"}
@@ -1,27 +0,0 @@
1
- var PASTE_PREVIEW_MAX_CHARACTERS = 1200;
2
- /** Build a bounded preview without splitting or joining the full paste content. */
3
- function summarizePastePreview(content, totalLines) {
4
- const scanLimit = Math.min(content.length, PASTE_PREVIEW_MAX_CHARACTERS);
5
- let end = 0;
6
- let visibleLines = 1;
7
- let scannedCharacters = 0;
8
- while (end < scanLimit) {
9
- const character = content.charCodeAt(end);
10
- scannedCharacters += 1;
11
- if (character === 10) {
12
- if (visibleLines === 12) break;
13
- visibleLines += 1;
14
- }
15
- end += 1;
16
- }
17
- const text = content.slice(0, end);
18
- return {
19
- text,
20
- hiddenLines: Math.max(0, totalLines - visibleLines),
21
- hiddenCharacters: Math.max(0, content.length - text.length),
22
- scannedCharacters
23
- };
24
- }
25
- export { PASTE_PREVIEW_MAX_CHARACTERS, summarizePastePreview };
26
-
27
- //# sourceMappingURL=paste-preview.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"paste-preview.js","names":[],"sources":["../../../src/components/conversation/paste-preview.ts"],"sourcesContent":["export const PASTE_PREVIEW_MAX_LINES = 12\nexport const PASTE_PREVIEW_MAX_CHARACTERS = 1200\n\nexport interface PastePreviewSummary {\n text: string\n hiddenLines: number\n hiddenCharacters: number\n scannedCharacters: number\n}\n\n/** Build a bounded preview without splitting or joining the full paste content. */\nexport function summarizePastePreview(content: string, totalLines: number): PastePreviewSummary {\n const scanLimit = Math.min(content.length, PASTE_PREVIEW_MAX_CHARACTERS)\n let end = 0\n let visibleLines = 1\n let scannedCharacters = 0\n\n while (end < scanLimit) {\n const character = content.charCodeAt(end)\n scannedCharacters += 1\n if (character === 10) {\n if (visibleLines === PASTE_PREVIEW_MAX_LINES) break\n visibleLines += 1\n }\n end += 1\n }\n\n const text = content.slice(0, end)\n return {\n text,\n hiddenLines: Math.max(0, totalLines - visibleLines),\n hiddenCharacters: Math.max(0, content.length - text.length),\n scannedCharacters,\n }\n}\n"],"mappings":"AACA,IAAa,+BAA+B;;AAU5C,SAAgB,sBAAsB,SAAiB,YAAyC;CAC9F,MAAM,YAAY,KAAK,IAAI,QAAQ,QAAQ,4BAA4B;CACvE,IAAI,MAAM;CACV,IAAI,eAAe;CACnB,IAAI,oBAAoB;CAExB,OAAO,MAAM,WAAW;EACtB,MAAM,YAAY,QAAQ,WAAW,GAAG;EACxC,qBAAqB;EACrB,IAAI,cAAc,IAAI;GACpB,IAAI,iBAAA,IAA0C;GAC9C,gBAAgB;EAClB;EACA,OAAO;CACT;CAEA,MAAM,OAAO,QAAQ,MAAM,GAAG,GAAG;CACjC,OAAO;EACL;EACA,aAAa,KAAK,IAAI,GAAG,aAAa,YAAY;EAClD,kBAAkB,KAAK,IAAI,GAAG,QAAQ,SAAS,KAAK,MAAM;EAC1D;CACF;AACF"}
@@ -1,124 +0,0 @@
1
- import type { ThemeTokenProjectionOptions } from './token-projection';
2
- import type { ThemeEngine } from '#lib/theme-engine';
3
- import type { EditorRolesMode, ThemeAppearance, ThemeVariant } from '#lib/themes';
4
- import { type SurfaceState } from '#lib/theme-surface';
5
- import { type ThemeSelection } from './theme-state-core';
6
- /**
7
- * The document half of the theme provider: the single writer of `<html>`.
8
- *
9
- * Written against the few members of an element it uses, so the rules can be tested
10
- * on a stand-in and the provider's effect stays a one-line call.
11
- *
12
- * This is the engine-parameterised half: every question the catalogue answers goes
13
- * through the {@link ThemeEngine} it is given, so it imports no catalogue code or data.
14
- * `theme-document.ts` binds the full catalogue and keeps the signatures the eager
15
- * provider and the tests have always used.
16
- */
17
- export type ThemeRoot = Pick<HTMLElement, 'classList' | 'dataset' | 'style' | 'removeAttribute' | 'setAttribute'>;
18
- export type ThemeDocumentState = {
19
- /** What the document shows: the committed selection, or a preview laid over it. */
20
- selection: ThemeSelection;
21
- appearance: ThemeAppearance;
22
- variant: ThemeVariant;
23
- /**
24
- * The variant whose terminal palette is pinned over the interface variant's.
25
- * Absent, the terminal follows the interface theme.
26
- */
27
- terminalVariant?: ThemeVariant;
28
- /**
29
- * The resolved surface axis. Absent, the axis is off: no attribute and no
30
- * `--surface-alpha` is written, and any this writer wrote before is removed.
31
- */
32
- surface?: SurfaceState;
33
- };
34
- export type ThemeDocumentOptions = {
35
- /**
36
- * Rewrites the custom properties just before they are written: the variant's
37
- * roles with the accent laid over them. It sees every property of the pass and
38
- * must return the full map; a name it drops is not written.
39
- */
40
- transformTokens?: (tokens: Record<string, string>) => Record<string, string>;
41
- /**
42
- * The contrast an accent is held to against the variant's background. Absent, a
43
- * preset is painted verbatim (the catalogue measured it for its own themes) and
44
- * only a custom `#rrggbb` is held to the default floor of 3:1.
45
- */
46
- accentContrastFloor?: number;
47
- /**
48
- * Where a catalogue variant's palette comes from. `inline` (the default) writes
49
- * every role onto the root. `stylesheet` writes none for a catalogue variant,
50
- * because the host loads a stylesheet that carries a `[data-theme]` block for it;
51
- * a variant the catalogue does not hold (a host's imported theme) is still written
52
- * inline, since no stylesheet can know it. The accent, the terminal pin, the
53
- * surface alpha and the fonts are written the same in both.
54
- *
55
- * Switching from an imported variant back to a catalogue one removes what the
56
- * imported one wrote, so nothing inline outlives it to beat the stylesheet.
57
- */
58
- palette?: 'inline' | 'stylesheet';
59
- /**
60
- * The `--editor-*` projection. `syntax` (the default) is the catalogue's quiet
61
- * syntax roles, which is what `theme-variants.css` carries; `floor` holds every
62
- * editor role to 4.5:1 on the canvas, as hex.
63
- *
64
- * With `palette: 'stylesheet'`, `floor` is the one palette write a catalogue
65
- * variant still gets: the stylesheet is generated for the default projection, so
66
- * the sixteen `--editor-*` properties are written inline over it. The rest of the
67
- * palette stays in the stylesheet.
68
- */
69
- editorRoles?: EditorRolesMode;
70
- } & ThemeTokenProjectionOptions;
71
- /**
72
- * The custom properties a state paints: the variant's roles, an optional projection
73
- * from the raw host map, the accent, the pinned terminal palette, the surface alpha,
74
- * then `transformTokens`.
75
- *
76
- * The accent is applied *here* rather than left to the `[data-accent]` blocks in
77
- * `theme.css`, because the properties are written inline and an inline declaration
78
- * outranks every stylesheet selector however specific it is. The blocks still exist
79
- * and are still correct — they are what styles the window before this runs — but
80
- * they cannot win from here, so leaving the accent to them meant the attribute was
81
- * set, the rules were present, and nothing changed on screen.
82
- */
83
- export declare function themeDocumentTokensWith(engine: ThemeEngine, state: ThemeDocumentState, options?: ThemeDocumentOptions): {
84
- tokens: Record<string, string>;
85
- accented: boolean;
86
- };
87
- /**
88
- * Write a state onto a root and report which custom properties it owns.
89
- *
90
- * Pass the previous call's return as `previous` and any palette property that pass
91
- * wrote and this one does not is removed. For the catalogue the two sets are the
92
- * same, so nothing is ever removed; it matters for a host variant that carries
93
- * `tokens` the catalogue does not, which would otherwise stay inline, beating the
94
- * stylesheet, after the user switched away from it.
95
- */
96
- export declare function applyThemeToRootWith(engine: ThemeEngine, root: ThemeRoot, state: ThemeDocumentState, options?: ThemeDocumentOptions, previous?: ReadonlySet<string>): ReadonlySet<string>;
97
- /** What {@link applyWithoutTransitions} needs of a document. */
98
- export type TransitionDocument = {
99
- head: {
100
- appendChild(node: unknown): unknown;
101
- };
102
- createElement(tag: 'style'): {
103
- textContent: string | null;
104
- offsetHeight?: number;
105
- remove(): void;
106
- };
107
- };
108
- /**
109
- * Run `apply` with every CSS transition switched off for the frame that carries
110
- * it, so a theme switch cannot animate page-wide.
111
- *
112
- * Without this, flipping the custom properties on `<html>` starts a transition on
113
- * every element that declares one, and each fades from the old palette to the new
114
- * over its own duration: a theme change that looks like a rendering fault. The
115
- * rule is removed two frames later, after the browser has committed the new styles
116
- * with transitions off, and `restore` runs it early (the provider calls it when it
117
- * is disposed mid-switch).
118
- *
119
- * `schedule` is the frame source; it defaults to `requestAnimationFrame` and falls
120
- * back to running at once where there is none, which leaves transitions on rather
121
- * than off.
122
- */
123
- export declare function applyWithoutTransitions(doc: TransitionDocument, apply: () => void, schedule?: (callback: () => void) => void): () => void;
124
- //# sourceMappingURL=theme-document-core.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme-document-core.d.ts","sourceRoot":"","sources":["../../../src/components/theme/theme-document-core.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAEjF,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACpE,OAAO,EAAmB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAEzE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,CAC1B,WAAW,EACX,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,iBAAiB,GAAG,cAAc,CACvE,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,mFAAmF;IACnF,SAAS,EAAE,cAAc,CAAA;IACzB,UAAU,EAAE,eAAe,CAAA;IAC3B,OAAO,EAAE,YAAY,CAAA;IACrB;;;OAGG;IACH,eAAe,CAAC,EAAE,YAAY,CAAA;IAC9B;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;OAIG;IACH,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC5E;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAA;IACjC;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,eAAe,CAAA;CAC9B,GAAG,2BAA2B,CAAA;AAoB/B;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,kBAAkB,EACzB,OAAO,GAAE,oBAAyB,GACjC;IAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAiCvD;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,kBAAkB,EACzB,OAAO,GAAE,oBAAyB,EAClC,QAAQ,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAC7B,WAAW,CAAC,MAAM,CAAC,CAiDrB;AAED,gEAAgE;AAChE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE;QAAE,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAA;KAAE,CAAA;IAC7C,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG;QAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;QAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,MAAM,IAAI,IAAI,CAAA;KACf,CAAA;CACF,CAAA;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,kBAAkB,EACvB,KAAK,EAAE,MAAM,IAAI,EACjB,QAAQ,GAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,IAAsB,GACzD,MAAM,IAAI,CAqBZ"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme-document-core.js","names":[],"sources":["../../../src/components/theme/theme-document-core.ts"],"sourcesContent":["import {\n applyAppearanceFontSettings,\n normalizeAppearanceEditorFontSettings,\n} from '#lib/appearance-font-settings'\nimport { terminalCssVariables } from '#lib/theme-css'\nimport type { ThemeTokenProjectionOptions } from './token-projection'\nimport { assertThemeTokenProjectionConfig } from './token-projection-options'\nimport type { ThemeEngine } from '#lib/theme-engine'\nimport type { EditorRolesMode, ThemeAppearance, ThemeVariant } from '#lib/themes'\nimport { isCustomAccent } from '#lib/accent-roles'\nimport { surfaceAlpha, type SurfaceState } from '#lib/theme-surface'\nimport { resolvedDensity, type ThemeSelection } from './theme-state-core'\n\n/**\n * The document half of the theme provider: the single writer of `<html>`.\n *\n * Written against the few members of an element it uses, so the rules can be tested\n * on a stand-in and the provider's effect stays a one-line call.\n *\n * This is the engine-parameterised half: every question the catalogue answers goes\n * through the {@link ThemeEngine} it is given, so it imports no catalogue code or data.\n * `theme-document.ts` binds the full catalogue and keeps the signatures the eager\n * provider and the tests have always used.\n */\nexport type ThemeRoot = Pick<\n HTMLElement,\n 'classList' | 'dataset' | 'style' | 'removeAttribute' | 'setAttribute'\n>\n\nexport type ThemeDocumentState = {\n /** What the document shows: the committed selection, or a preview laid over it. */\n selection: ThemeSelection\n appearance: ThemeAppearance\n variant: ThemeVariant\n /**\n * The variant whose terminal palette is pinned over the interface variant's.\n * Absent, the terminal follows the interface theme.\n */\n terminalVariant?: ThemeVariant\n /**\n * The resolved surface axis. Absent, the axis is off: no attribute and no\n * `--surface-alpha` is written, and any this writer wrote before is removed.\n */\n surface?: SurfaceState\n}\n\nexport type ThemeDocumentOptions = {\n /**\n * Rewrites the custom properties just before they are written: the variant's\n * roles with the accent laid over them. It sees every property of the pass and\n * must return the full map; a name it drops is not written.\n */\n transformTokens?: (tokens: Record<string, string>) => Record<string, string>\n /**\n * The contrast an accent is held to against the variant's background. Absent, a\n * preset is painted verbatim (the catalogue measured it for its own themes) and\n * only a custom `#rrggbb` is held to the default floor of 3:1.\n */\n accentContrastFloor?: number\n /**\n * Where a catalogue variant's palette comes from. `inline` (the default) writes\n * every role onto the root. `stylesheet` writes none for a catalogue variant,\n * because the host loads a stylesheet that carries a `[data-theme]` block for it;\n * a variant the catalogue does not hold (a host's imported theme) is still written\n * inline, since no stylesheet can know it. The accent, the terminal pin, the\n * surface alpha and the fonts are written the same in both.\n *\n * Switching from an imported variant back to a catalogue one removes what the\n * imported one wrote, so nothing inline outlives it to beat the stylesheet.\n */\n palette?: 'inline' | 'stylesheet'\n /**\n * The `--editor-*` projection. `syntax` (the default) is the catalogue's quiet\n * syntax roles, which is what `theme-variants.css` carries; `floor` holds every\n * editor role to 4.5:1 on the canvas, as hex.\n *\n * With `palette: 'stylesheet'`, `floor` is the one palette write a catalogue\n * variant still gets: the stylesheet is generated for the default projection, so\n * the sixteen `--editor-*` properties are written inline over it. The rest of the\n * palette stays in the stylesheet.\n */\n editorRoles?: EditorRolesMode\n} & ThemeTokenProjectionOptions\n\n/**\n * What a catalogue variant still writes inline when its palette is the stylesheet's:\n * nothing, unless the editor projection is not the one the stylesheet was generated\n * for.\n */\nfunction stylesheetOverrides(\n engine: ThemeEngine,\n variant: ThemeVariant,\n editorRoles: EditorRolesMode | undefined\n): Record<string, string> {\n if (editorRoles !== 'floor') return {}\n return Object.fromEntries(\n Object.entries(engine.themeCssVariables(variant, { editor: 'floor' })).filter(([name]) =>\n name.startsWith('--editor-')\n )\n )\n}\n\n/**\n * The custom properties a state paints: the variant's roles, an optional projection\n * from the raw host map, the accent, the pinned terminal palette, the surface alpha,\n * then `transformTokens`.\n *\n * The accent is applied *here* rather than left to the `[data-accent]` blocks in\n * `theme.css`, because the properties are written inline and an inline declaration\n * outranks every stylesheet selector however specific it is. The blocks still exist\n * and are still correct — they are what styles the window before this runs — but\n * they cannot win from here, so leaving the accent to them meant the attribute was\n * set, the rules were present, and nothing changed on screen.\n */\nexport function themeDocumentTokensWith(\n engine: ThemeEngine,\n state: ThemeDocumentState,\n options: ThemeDocumentOptions = {}\n): { tokens: Record<string, string>; accented: boolean } {\n assertThemeTokenProjectionConfig(options.tokenProjection)\n const fromStylesheet =\n options.palette === 'stylesheet' && engine.isCatalogueVariant(state.variant)\n const properties = fromStylesheet\n ? stylesheetOverrides(engine, state.variant, options.editorRoles)\n : { ...engine.themeCssVariables(state.variant, { editor: options.editorRoles }) }\n if (options.tokenProjection && !engine.isCatalogueVariant(state.variant)) {\n const rawTokens = state.variant.tokens ?? {}\n const projected = options.tokenProjection.project(rawTokens, options.tokenProjection.rules)\n for (const rule of options.tokenProjection.rules) {\n if (!rule || typeof rule.target !== 'string') continue\n if (Object.hasOwn(projected, rule.target)) {\n properties[rule.target] = projected[rule.target]!\n }\n }\n }\n const accent = engine.accentVariables(state.selection.accent, state.appearance, state.selection, {\n background: state.variant.colors.background,\n floor: options.accentContrastFloor,\n variantId: state.variant.id,\n })\n if (accent) Object.assign(properties, accent)\n // Written after the variant and the accent, so it wins over the interface\n // variant's own terminal ramp (and over the stylesheet's, which it outranks as an\n // inline declaration). Dropping the pin needs no removal of its own: the ramp is\n // then rewritten by the variant, or swept back to the stylesheet.\n if (state.terminalVariant) Object.assign(properties, terminalCssVariables(state.terminalVariant))\n if (state.surface) properties['--surface-alpha'] = surfaceAlpha[state.surface.surface]\n return {\n tokens: options.transformTokens ? options.transformTokens(properties) : properties,\n accented: accent !== undefined,\n }\n}\n\n/**\n * Write a state onto a root and report which custom properties it owns.\n *\n * Pass the previous call's return as `previous` and any palette property that pass\n * wrote and this one does not is removed. For the catalogue the two sets are the\n * same, so nothing is ever removed; it matters for a host variant that carries\n * `tokens` the catalogue does not, which would otherwise stay inline, beating the\n * stylesheet, after the user switched away from it.\n */\nexport function applyThemeToRootWith(\n engine: ThemeEngine,\n root: ThemeRoot,\n state: ThemeDocumentState,\n options: ThemeDocumentOptions = {},\n previous?: ReadonlySet<string>\n): ReadonlySet<string> {\n const { tokens, accented } = themeDocumentTokensWith(engine, state, options)\n\n for (const [name, value] of Object.entries(tokens)) {\n root.style.setProperty(name, value)\n }\n if (previous) {\n for (const name of previous) {\n if (!(name in tokens)) root.style.removeProperty(name)\n }\n }\n\n root.classList.toggle('dark', state.appearance === 'dark')\n root.dataset['theme'] = state.variant.id\n root.dataset['appearance'] = state.appearance\n root.style.colorScheme = state.appearance\n\n // A custom colour has no stylesheet block to select, and its value is the\n // attribute's worst possible content, so it is reported as `custom`.\n if (!accented) root.removeAttribute('data-accent')\n else\n root.dataset['accent'] = isCustomAccent(state.selection.accent)\n ? 'custom'\n : state.selection.accent\n\n // The surface axis is opt-in, so its absence removes rather than defaults: a host\n // that never enables it keeps an `<html>` with neither attribute, and one that\n // turns it off leaves nothing behind. (`--surface-alpha` is swept with the tokens.)\n if (state.surface) {\n root.dataset['surface'] = state.surface.surface\n root.dataset['reduceTransparency'] = state.surface.reduceTransparencyActive ? 'true' : 'false'\n } else {\n root.removeAttribute('data-surface')\n root.removeAttribute('data-reduce-transparency')\n }\n\n applyAppearanceFontSettings(\n root,\n normalizeAppearanceEditorFontSettings(state.selection.fonts, state.selection.font).settings\n )\n\n // Density is a pure token shift, so unlike the colour axes there is nothing to\n // compute: the attribute selects a block in `theme.css`. It is applied here for\n // the same reason as the others — this is the one place that knows what the\n // current selection is, and it is the only writer of these attributes.\n if (resolvedDensity(state.selection) === 'comfortable') root.removeAttribute('data-density')\n else root.dataset['density'] = resolvedDensity(state.selection)\n\n return new Set(Object.keys(tokens))\n}\n\n/** What {@link applyWithoutTransitions} needs of a document. */\nexport type TransitionDocument = {\n head: { appendChild(node: unknown): unknown }\n createElement(tag: 'style'): {\n textContent: string | null\n offsetHeight?: number\n remove(): void\n }\n}\n\n/**\n * Run `apply` with every CSS transition switched off for the frame that carries\n * it, so a theme switch cannot animate page-wide.\n *\n * Without this, flipping the custom properties on `<html>` starts a transition on\n * every element that declares one, and each fades from the old palette to the new\n * over its own duration: a theme change that looks like a rendering fault. The\n * rule is removed two frames later, after the browser has committed the new styles\n * with transitions off, and `restore` runs it early (the provider calls it when it\n * is disposed mid-switch).\n *\n * `schedule` is the frame source; it defaults to `requestAnimationFrame` and falls\n * back to running at once where there is none, which leaves transitions on rather\n * than off.\n */\nexport function applyWithoutTransitions(\n doc: TransitionDocument,\n apply: () => void,\n schedule: (callback: () => void) => void = defaultSchedule\n): () => void {\n const style = doc.createElement('style')\n style.textContent = '*{transition:none !important}'\n doc.head.appendChild(style)\n // Reading a layout property forces the browser to commit the rule before the\n // properties change; without it the two can be batched into one style recalc.\n void style.offsetHeight\n let removed = false\n const restore = () => {\n if (removed) return\n removed = true\n style.remove()\n }\n try {\n apply()\n } catch (error) {\n restore()\n throw error\n }\n schedule(() => schedule(restore))\n return restore\n}\n\nfunction defaultSchedule(callback: () => void): void {\n if (typeof requestAnimationFrame === 'function') requestAnimationFrame(callback)\n else callback()\n}\n"],"mappings":";;;;;;;;;;;;AAyFA,SAAS,oBACP,QACA,SACA,aACwB;CACxB,IAAI,gBAAgB,SAAS,OAAO,CAAC;CACrC,OAAO,OAAO,YACZ,OAAO,QAAQ,OAAO,kBAAkB,SAAS,EAAE,QAAQ,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,UAC9E,KAAK,WAAW,WAAW,CAC7B,CACF;AACF;;;;;;;;;;;;;AAcA,SAAgB,wBACd,QACA,OACA,UAAgC,CAAC,GACsB;CACvD,iCAAiC,QAAQ,eAAe;CAGxD,MAAM,aADJ,QAAQ,YAAY,gBAAgB,OAAO,mBAAmB,MAAM,OAAO,IAEzE,oBAAoB,QAAQ,MAAM,SAAS,QAAQ,WAAW,IAC9D,EAAE,GAAG,OAAO,kBAAkB,MAAM,SAAS,EAAE,QAAQ,QAAQ,YAAY,CAAC,EAAE;CAClF,IAAI,QAAQ,mBAAmB,CAAC,OAAO,mBAAmB,MAAM,OAAO,GAAG;EACxE,MAAM,YAAY,MAAM,QAAQ,UAAU,CAAC;EAC3C,MAAM,YAAY,QAAQ,gBAAgB,QAAQ,WAAW,QAAQ,gBAAgB,KAAK;EAC1F,KAAK,MAAM,QAAQ,QAAQ,gBAAgB,OAAO;GAChD,IAAI,CAAC,QAAQ,OAAO,KAAK,WAAW,UAAU;GAC9C,IAAI,OAAO,OAAO,WAAW,KAAK,MAAM,GACtC,WAAW,KAAK,UAAU,UAAU,KAAK;EAE7C;CACF;CACA,MAAM,SAAS,OAAO,gBAAgB,MAAM,UAAU,QAAQ,MAAM,YAAY,MAAM,WAAW;EAC/F,YAAY,MAAM,QAAQ,OAAO;EACjC,OAAO,QAAQ;EACf,WAAW,MAAM,QAAQ;CAC3B,CAAC;CACD,IAAI,QAAQ,OAAO,OAAO,YAAY,MAAM;CAK5C,IAAI,MAAM,iBAAiB,OAAO,OAAO,YAAY,qBAAqB,MAAM,eAAe,CAAC;CAChG,IAAI,MAAM,SAAS,WAAW,qBAAqB,aAAa,MAAM,QAAQ;CAC9E,OAAO;EACL,QAAQ,QAAQ,kBAAkB,QAAQ,gBAAgB,UAAU,IAAI;EACxE,UAAU,WAAW,KAAA;CACvB;AACF;;;;;;;;;;AAWA,SAAgB,qBACd,QACA,MACA,OACA,UAAgC,CAAC,GACjC,UACqB;CACrB,MAAM,EAAE,QAAQ,aAAa,wBAAwB,QAAQ,OAAO,OAAO;CAE3E,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,MAAM,GAC/C,KAAK,MAAM,YAAY,MAAM,KAAK;CAEpC,IAAI,UACG;OAAA,MAAM,QAAQ,UACjB,IAAI,EAAE,QAAQ,SAAS,KAAK,MAAM,eAAe,IAAI;CAAA;CAIzD,KAAK,UAAU,OAAO,QAAQ,MAAM,eAAe,MAAM;CACzD,KAAK,QAAQ,WAAW,MAAM,QAAQ;CACtC,KAAK,QAAQ,gBAAgB,MAAM;CACnC,KAAK,MAAM,cAAc,MAAM;CAI/B,IAAI,CAAC,UAAU,KAAK,gBAAgB,aAAa;MAE/C,KAAK,QAAQ,YAAY,eAAe,MAAM,UAAU,MAAM,IAC1D,WACA,MAAM,UAAU;CAKtB,IAAI,MAAM,SAAS;EACjB,KAAK,QAAQ,aAAa,MAAM,QAAQ;EACxC,KAAK,QAAQ,wBAAwB,MAAM,QAAQ,2BAA2B,SAAS;CACzF,OAAO;EACL,KAAK,gBAAgB,cAAc;EACnC,KAAK,gBAAgB,0BAA0B;CACjD;CAEA,4BACE,MACA,sCAAsC,MAAM,UAAU,OAAO,MAAM,UAAU,IAAI,CAAC,CAAC,QACrF;CAMA,IAAI,gBAAgB,MAAM,SAAS,MAAM,eAAe,KAAK,gBAAgB,cAAc;MACtF,KAAK,QAAQ,aAAa,gBAAgB,MAAM,SAAS;CAE9D,OAAO,IAAI,IAAI,OAAO,KAAK,MAAM,CAAC;AACpC;;;;;;;;;;;;;;;;AA2BA,SAAgB,wBACd,KACA,OACA,WAA2C,iBAC/B;CACZ,MAAM,QAAQ,IAAI,cAAc,OAAO;CACvC,MAAM,cAAc;CACpB,IAAI,KAAK,YAAY,KAAK;CAG1B,MAAW;CACX,IAAI,UAAU;CACd,MAAM,gBAAgB;EACpB,IAAI,SAAS;EACb,UAAU;EACV,MAAM,OAAO;CACf;CACA,IAAI;EACF,MAAM;CACR,SAAS,OAAO;EACd,QAAQ;EACR,MAAM;CACR;CACA,eAAe,SAAS,OAAO,CAAC;CAChC,OAAO;AACT;AAEA,SAAS,gBAAgB,UAA4B;CACnD,IAAI,OAAO,0BAA0B,YAAY,sBAAsB,QAAQ;MAC1E,SAAS;AAChB"}
@@ -1,19 +0,0 @@
1
- import { type ThemeCatalogueSource, type ThemeProviderProps } from './theme-provider-value';
2
- export type { ThemeCatalogueSource, ThemeProviderProps } from './theme-provider-value';
3
- export { createVersionedPersistence, localStoragePersistence, type ThemePersistence, type ThemeStorageSchema, type VersionedCodec, type VersionedPersistenceOptions, } from './theme-persistence';
4
- export { useOptionalTheme, useTheme } from './theme-context';
5
- export type { ThemeSurface } from '#lib/theme-surface';
6
- export type { EditorRolesMode } from '#lib/themes';
7
- export { inlineScriptLiteral, themeScript, type ThemeScriptOptions } from './theme-script';
8
- export { defaultThemeSelection, resolvedDensity, type ThemeContextValue, type ThemeDensity, type ThemeSelection, } from './theme-state-core';
9
- /**
10
- * The provider, parameterised by where its catalogue comes from.
11
- *
12
- * `ThemeProvider` (`theme-provider.tsx`) and the lazy `ThemeProvider`
13
- * (`theme-provider-lazy.tsx`) are this component with a source; the work is
14
- * `createThemeContextValue`. It imports no catalogue code or data.
15
- */
16
- export declare function ThemeProviderCore(props: ThemeProviderProps & {
17
- catalogue: ThemeCatalogueSource;
18
- }): import("solid-js").JSX.Element;
19
- //# sourceMappingURL=theme-provider-core.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme-provider-core.d.ts","sourceRoot":"","sources":["../../../src/components/theme/theme-provider-core.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACxB,MAAM,wBAAwB,CAAA;AAE/B,YAAY,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AACtF,OAAO,EACL,0BAA0B,EAC1B,uBAAuB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,2BAA2B,GACjC,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC5D,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAC1F,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,cAAc,GACpB,MAAM,oBAAoB,CAAA;AAE3B;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,kBAAkB,GAAG;IAAE,SAAS,EAAE,oBAAoB,CAAA;CAAE,kCAIhG"}
@@ -1,27 +0,0 @@
1
- import { themeContext, useOptionalTheme, useTheme } from "./theme-context.js";
2
- import { defaultThemeSelection, resolvedDensity } from "./theme-state-core.js";
3
- import { createVersionedPersistence, localStoragePersistence } from "./theme-persistence.js";
4
- import { createThemeContextValue } from "./theme-provider-value.js";
5
- import { inlineScriptLiteral, themeScript } from "./theme-script.js";
6
- import { createComponent } from "solid-js/web";
7
- // src/components/theme/theme-provider-core.tsx
8
- /**
9
- * The provider, parameterised by where its catalogue comes from.
10
- *
11
- * `ThemeProvider` (`theme-provider.tsx`) and the lazy `ThemeProvider`
12
- * (`theme-provider-lazy.tsx`) are this component with a source; the work is
13
- * `createThemeContextValue`. It imports no catalogue code or data.
14
- */
15
- function ThemeProviderCore(props) {
16
- const value = createThemeContextValue(props);
17
- const Context = themeContext();
18
- return createComponent(Context.Provider, {
19
- value,
20
- get children() {
21
- return props.children;
22
- }
23
- });
24
- }
25
- export { ThemeProviderCore, createVersionedPersistence, defaultThemeSelection, inlineScriptLiteral, localStoragePersistence, resolvedDensity, themeScript, useOptionalTheme, useTheme };
26
-
27
- //# sourceMappingURL=theme-provider-core.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme-provider-core.js","names":["themeContext","createThemeContextValue","ThemeCatalogueSource","ThemeProviderProps","createVersionedPersistence","localStoragePersistence","ThemePersistence","ThemeStorageSchema","VersionedCodec","VersionedPersistenceOptions","useOptionalTheme","useTheme","ThemeSurface","EditorRolesMode","inlineScriptLiteral","themeScript","ThemeScriptOptions","defaultThemeSelection","resolvedDensity","ThemeContextValue","ThemeDensity","ThemeSelection","ThemeProviderCore","props","catalogue","value","Context","_$createComponent","Provider","children","_$createComponent"],"sources":["../../../src/components/theme/theme-provider-core.tsx"],"sourcesContent":["import { themeContext } from './theme-context'\nimport {\n createThemeContextValue,\n type ThemeCatalogueSource,\n type ThemeProviderProps,\n} from './theme-provider-value'\n\nexport type { ThemeCatalogueSource, ThemeProviderProps } from './theme-provider-value'\nexport {\n createVersionedPersistence,\n localStoragePersistence,\n type ThemePersistence,\n type ThemeStorageSchema,\n type VersionedCodec,\n type VersionedPersistenceOptions,\n} from './theme-persistence'\nexport { useOptionalTheme, useTheme } from './theme-context'\nexport type { ThemeSurface } from '#lib/theme-surface'\nexport type { EditorRolesMode } from '#lib/themes'\nexport { inlineScriptLiteral, themeScript, type ThemeScriptOptions } from './theme-script'\nexport {\n defaultThemeSelection,\n resolvedDensity,\n type ThemeContextValue,\n type ThemeDensity,\n type ThemeSelection,\n} from './theme-state-core'\n\n/**\n * The provider, parameterised by where its catalogue comes from.\n *\n * `ThemeProvider` (`theme-provider.tsx`) and the lazy `ThemeProvider`\n * (`theme-provider-lazy.tsx`) are this component with a source; the work is\n * `createThemeContextValue`. It imports no catalogue code or data.\n */\nexport function ThemeProviderCore(props: ThemeProviderProps & { catalogue: ThemeCatalogueSource }) {\n const value = createThemeContextValue(props)\n const Context = themeContext()\n return <Context.Provider value={value}>{props.children}</Context.Provider>\n}\n"],"mappings":";;;;;;;;;;;;;;AAmCA,SAAgBsB,kBAAkBC,OAAiE;CACjG,MAAME,QAAQxB,wBAAwBsB,KAAK;CAC3C,MAAMG,UAAU1B,aAAa;CAC7B,OAAA2B,gBAAQD,QAAQE,UAAQ;EAAQH;EAAK,IAAAI,WAAA;GAAA,OAAGN,MAAMM;EAAQ;CAAA,CAAA;AACxD"}
@@ -1,28 +0,0 @@
1
- import { type ThemeProviderProps } from './theme-provider-core';
2
- export { loadThemeCatalogue } from './theme-catalogue-source';
3
- /**
4
- * ThemeProvider, with the theme catalogue out of the start-up path.
5
- *
6
- * Same props, same context and same behaviour as `ThemeProvider` for everything the
7
- * shipped default pair covers: the default light and dark themes, a host's own
8
- * `themes`, every accent preset and custom colour, the surface axis, fonts and
9
- * density. Only the 32 other catalogue themes are not in the start-up chunk. The first
10
- * time the selection (or a preview) names one, or a theme-derived `ansi-*` accent over
11
- * such a pair, this provider imports the catalogue in a chunk of its own:
12
- *
13
- * - until it arrives the document keeps what is on it (set before first paint by
14
- * `themeScript`, painted by the stylesheet under `palette="stylesheet"`), and
15
- * `variant()` is the default of the appearance;
16
- * - when it arrives the provider re-resolves and paints the stored theme, and
17
- * `useTheme().catalogueReady()` turns true;
18
- * - a preview of a theme that has not loaded starts the load and shows when it ends.
19
- *
20
- * Pair it with `palette="stylesheet"` and `themeScript`: inline palettes of catalogue
21
- * themes need the catalogue to compute, so under the default `inline` palette every
22
- * stored theme but the defaults waits for the import.
23
- *
24
- * `useTheme().themes` and `allThemes()` list only the default pair until
25
- * `catalogueReady()`; a picker calls `useTheme().loadCatalogue()` when it mounts.
26
- */
27
- export declare function ThemeProvider(props: ThemeProviderProps): import("solid-js").JSX.Element;
28
- //# sourceMappingURL=theme-provider-lazy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme-provider-lazy.d.ts","sourceRoot":"","sources":["../../../src/components/theme/theme-provider-lazy.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAElF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAE7D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,kCAItD"}
@@ -1,35 +0,0 @@
1
- import { createLazyCatalogue } from "./theme-catalogue-source.js";
2
- import { ThemeProviderCore } from "./theme-provider-core.js";
3
- import { createComponent, mergeProps } from "solid-js/web";
4
- // src/components/theme/theme-provider-lazy.tsx
5
- /**
6
- * ThemeProvider, with the theme catalogue out of the start-up path.
7
- *
8
- * Same props, same context and same behaviour as `ThemeProvider` for everything the
9
- * shipped default pair covers: the default light and dark themes, a host's own
10
- * `themes`, every accent preset and custom colour, the surface axis, fonts and
11
- * density. Only the 32 other catalogue themes are not in the start-up chunk. The first
12
- * time the selection (or a preview) names one, or a theme-derived `ansi-*` accent over
13
- * such a pair, this provider imports the catalogue in a chunk of its own:
14
- *
15
- * - until it arrives the document keeps what is on it (set before first paint by
16
- * `themeScript`, painted by the stylesheet under `palette="stylesheet"`), and
17
- * `variant()` is the default of the appearance;
18
- * - when it arrives the provider re-resolves and paints the stored theme, and
19
- * `useTheme().catalogueReady()` turns true;
20
- * - a preview of a theme that has not loaded starts the load and shows when it ends.
21
- *
22
- * Pair it with `palette="stylesheet"` and `themeScript`: inline palettes of catalogue
23
- * themes need the catalogue to compute, so under the default `inline` palette every
24
- * stored theme but the defaults waits for the import.
25
- *
26
- * `useTheme().themes` and `allThemes()` list only the default pair until
27
- * `catalogueReady()`; a picker calls `useTheme().loadCatalogue()` when it mounts.
28
- */
29
- function ThemeProvider(props) {
30
- const catalogue = createLazyCatalogue();
31
- return createComponent(ThemeProviderCore, mergeProps(props, { catalogue }));
32
- }
33
- export { ThemeProvider };
34
-
35
- //# sourceMappingURL=theme-provider-lazy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme-provider-lazy.js","names":["createLazyCatalogue","ThemeProviderCore","ThemeProviderProps","loadThemeCatalogue","ThemeProvider","props","catalogue","_$createComponent","_$mergeProps","_$createComponent","_$mergeProps"],"sources":["../../../src/components/theme/theme-provider-lazy.tsx"],"sourcesContent":["import { createLazyCatalogue } from './theme-catalogue-source'\nimport { ThemeProviderCore, type ThemeProviderProps } from './theme-provider-core'\n\nexport { loadThemeCatalogue } from './theme-catalogue-source'\n\n/**\n * ThemeProvider, with the theme catalogue out of the start-up path.\n *\n * Same props, same context and same behaviour as `ThemeProvider` for everything the\n * shipped default pair covers: the default light and dark themes, a host's own\n * `themes`, every accent preset and custom colour, the surface axis, fonts and\n * density. Only the 32 other catalogue themes are not in the start-up chunk. The first\n * time the selection (or a preview) names one, or a theme-derived `ansi-*` accent over\n * such a pair, this provider imports the catalogue in a chunk of its own:\n *\n * - until it arrives the document keeps what is on it (set before first paint by\n * `themeScript`, painted by the stylesheet under `palette=\"stylesheet\"`), and\n * `variant()` is the default of the appearance;\n * - when it arrives the provider re-resolves and paints the stored theme, and\n * `useTheme().catalogueReady()` turns true;\n * - a preview of a theme that has not loaded starts the load and shows when it ends.\n *\n * Pair it with `palette=\"stylesheet\"` and `themeScript`: inline palettes of catalogue\n * themes need the catalogue to compute, so under the default `inline` palette every\n * stored theme but the defaults waits for the import.\n *\n * `useTheme().themes` and `allThemes()` list only the default pair until\n * `catalogueReady()`; a picker calls `useTheme().loadCatalogue()` when it mounts.\n */\nexport function ThemeProvider(props: ThemeProviderProps) {\n // Hoisted: a JSX prop expression is re-evaluated on every read, and this source owns signals.\n const catalogue = createLazyCatalogue()\n return <ThemeProviderCore {...props} catalogue={catalogue} />\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,SAAgBI,cAAcC,OAA2B;CAEvD,MAAMC,YAAYN,oBAAoB;CACtC,OAAAO,gBAAQN,mBAAiBO,WAAKH,OAAK,EAAaC,UAAS,CAAA,CAAA;AAC3D"}