@deepseek-ai/dsh-client-ui-primitives 0.2.3-alpha.1 → 0.2.3-alpha.3

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 (897) hide show
  1. package/README.i18n.yaml +14 -14
  2. package/README.md +20 -19
  3. package/README.zh.md +20 -19
  4. package/lib/assets/vendor/katex/dist/fonts/KaTeX_AMS-Regular-34494743736f.woff2 +0 -0
  5. package/lib/assets/vendor/katex/dist/fonts/KaTeX_Caligraphic-Bold-5bfa49cac46c.woff2 +0 -0
  6. package/lib/assets/vendor/katex/dist/fonts/KaTeX_Caligraphic-Regular-9f8077e0b38a.woff2 +0 -0
  7. package/lib/assets/vendor/katex/dist/fonts/KaTeX_Fraktur-Bold-f98f89272eca.woff2 +0 -0
  8. package/lib/assets/vendor/katex/dist/fonts/KaTeX_Fraktur-Regular-a5764c6e2784.woff2 +0 -0
  9. package/lib/assets/vendor/katex/dist/fonts/KaTeX_Main-Bold-31050a1b1b12.woff2 +0 -0
  10. package/lib/assets/vendor/katex/dist/fonts/KaTeX_Main-BoldItalic-a4a4905b8b12.woff2 +0 -0
  11. package/lib/assets/vendor/katex/dist/fonts/KaTeX_Main-Italic-c9b2b5ffd2f2.woff2 +0 -0
  12. package/lib/assets/vendor/katex/dist/fonts/KaTeX_Main-Regular-c884086c25ce.woff2 +0 -0
  13. package/lib/assets/vendor/katex/dist/fonts/KaTeX_Math-BoldItalic-8fcb9d2de65a.woff2 +0 -0
  14. package/lib/assets/vendor/katex/dist/fonts/KaTeX_Math-Italic-db4883d0cff9.woff2 +0 -0
  15. package/lib/assets/vendor/katex/dist/fonts/KaTeX_SansSerif-Bold-886e61797a52.woff2 +0 -0
  16. package/lib/assets/vendor/katex/dist/fonts/KaTeX_SansSerif-Italic-3d5fa3cb309f.woff2 +0 -0
  17. package/lib/assets/vendor/katex/dist/fonts/KaTeX_SansSerif-Regular-e45d5f4f4a7f.woff2 +0 -0
  18. package/lib/assets/vendor/katex/dist/fonts/KaTeX_Script-Regular-63b80959f1fc.woff2 +0 -0
  19. package/lib/assets/vendor/katex/dist/fonts/KaTeX_Size1-Regular-57fa599974a1.woff2 +0 -0
  20. package/lib/assets/vendor/katex/dist/fonts/KaTeX_Size2-Regular-ee18713634a3.woff2 +0 -0
  21. package/lib/assets/vendor/katex/dist/fonts/KaTeX_Size3-Regular-19a7caadfb66.woff2 +0 -0
  22. package/lib/assets/vendor/katex/dist/fonts/KaTeX_Size4-Regular-9bed17fb92f2.woff2 +0 -0
  23. package/lib/assets/vendor/katex/dist/fonts/KaTeX_Typewriter-Regular-7a08883fffc6.woff2 +0 -0
  24. package/lib/client.asciidoc.js +3 -0
  25. package/lib/client.asciidoc.js.map +1 -0
  26. package/lib/client.bat.js +3 -0
  27. package/lib/client.bat.js.map +1 -0
  28. package/lib/client.bibtex.js +3 -0
  29. package/lib/client.bibtex.js.map +1 -0
  30. package/lib/client.c.js +3 -0
  31. package/lib/client.c.js.map +1 -0
  32. package/lib/client.clojure.js +3 -0
  33. package/lib/client.clojure.js.map +1 -0
  34. package/lib/client.cmake.js +3 -0
  35. package/lib/client.cmake.js.map +1 -0
  36. package/lib/client.cpp.js +3 -0
  37. package/lib/client.cpp.js.map +1 -0
  38. package/lib/client.csharp.js +3 -0
  39. package/lib/client.csharp.js.map +1 -0
  40. package/lib/client.css.js +3 -0
  41. package/lib/client.css.js.map +1 -0
  42. package/lib/client.csv.js +3 -0
  43. package/lib/client.csv.js.map +1 -0
  44. package/lib/client.dart.js +3 -0
  45. package/lib/client.dart.js.map +1 -0
  46. package/lib/client.diff.js +3 -0
  47. package/lib/client.diff.js.map +1 -0
  48. package/lib/client.dotenv.js +3 -0
  49. package/lib/client.dotenv.js.map +1 -0
  50. package/lib/client.elixir.js +3 -0
  51. package/lib/client.elixir.js.map +1 -0
  52. package/lib/client.erlang.js +3 -0
  53. package/lib/client.erlang.js.map +1 -0
  54. package/lib/client.fish.js +3 -0
  55. package/lib/client.fish.js.map +1 -0
  56. package/lib/client.fsharp.js +3 -0
  57. package/lib/client.fsharp.js.map +1 -0
  58. package/lib/client.go.js +3 -0
  59. package/lib/client.go.js.map +1 -0
  60. package/lib/client.graphql.js +3 -0
  61. package/lib/client.graphql.js.map +1 -0
  62. package/lib/client.groovy.js +3 -0
  63. package/lib/client.groovy.js.map +1 -0
  64. package/lib/client.haskell.js +3 -0
  65. package/lib/client.haskell.js.map +1 -0
  66. package/lib/client.hcl.js +3 -0
  67. package/lib/client.hcl.js.map +1 -0
  68. package/lib/client.html-derivative.js +3 -0
  69. package/lib/client.html-derivative.js.map +1 -0
  70. package/lib/client.html.js +3 -0
  71. package/lib/client.html.js.map +1 -0
  72. package/lib/client.http.js +3 -0
  73. package/lib/client.http.js.map +1 -0
  74. package/lib/client.ini.js +3 -0
  75. package/lib/client.ini.js.map +1 -0
  76. package/lib/client.java.js +3 -0
  77. package/lib/client.java.js.map +1 -0
  78. package/lib/client.javascript.js +3 -0
  79. package/lib/client.javascript.js.map +1 -0
  80. package/lib/client.js +489 -0
  81. package/lib/client.js.map +1 -0
  82. package/lib/client.julia.js +3 -0
  83. package/lib/client.julia.js.map +1 -0
  84. package/lib/client.kotlin.js +3 -0
  85. package/lib/client.kotlin.js.map +1 -0
  86. package/lib/client.latex.js +3 -0
  87. package/lib/client.latex.js.map +1 -0
  88. package/lib/client.less.js +3 -0
  89. package/lib/client.less.js.map +1 -0
  90. package/lib/client.log.js +3 -0
  91. package/lib/client.log.js.map +1 -0
  92. package/lib/client.lua.js +3 -0
  93. package/lib/client.lua.js.map +1 -0
  94. package/lib/client.make.js +3 -0
  95. package/lib/client.make.js.map +1 -0
  96. package/lib/client.markdown.js +3 -0
  97. package/lib/client.markdown.js.map +1 -0
  98. package/lib/client.mdx.js +3 -0
  99. package/lib/client.mdx.js.map +1 -0
  100. package/lib/client.nix.js +3 -0
  101. package/lib/client.nix.js.map +1 -0
  102. package/lib/client.perl.js +3 -0
  103. package/lib/client.perl.js.map +1 -0
  104. package/lib/client.php.js +3 -0
  105. package/lib/client.php.js.map +1 -0
  106. package/lib/client.powershell.js +3 -0
  107. package/lib/client.powershell.js.map +1 -0
  108. package/lib/client.proto.js +3 -0
  109. package/lib/client.proto.js.map +1 -0
  110. package/lib/client.python.js +3 -0
  111. package/lib/client.python.js.map +1 -0
  112. package/lib/client.r.js +3 -0
  113. package/lib/client.r.js.map +1 -0
  114. package/lib/client.rst.js +3 -0
  115. package/lib/client.rst.js.map +1 -0
  116. package/lib/client.ruby.js +3 -0
  117. package/lib/client.ruby.js.map +1 -0
  118. package/lib/client.rust.js +3 -0
  119. package/lib/client.rust.js.map +1 -0
  120. package/lib/client.scala.js +3 -0
  121. package/lib/client.scala.js.map +1 -0
  122. package/lib/client.scss.js +3 -0
  123. package/lib/client.scss.js.map +1 -0
  124. package/lib/client.sql.js +3 -0
  125. package/lib/client.sql.js.map +1 -0
  126. package/lib/client.svelte.js +3 -0
  127. package/lib/client.svelte.js.map +1 -0
  128. package/lib/client.swift.js +3 -0
  129. package/lib/client.swift.js.map +1 -0
  130. package/lib/client.system-verilog.js +3 -0
  131. package/lib/client.system-verilog.js.map +1 -0
  132. package/lib/client.toml.js +3 -0
  133. package/lib/client.toml.js.map +1 -0
  134. package/lib/client.vb.js +3 -0
  135. package/lib/client.vb.js.map +1 -0
  136. package/lib/client.verilog.js +3 -0
  137. package/lib/client.verilog.js.map +1 -0
  138. package/lib/client.vue.js +3 -0
  139. package/lib/client.vue.js.map +1 -0
  140. package/lib/client.xml.js +3 -0
  141. package/lib/client.xml.js.map +1 -0
  142. package/lib/client.yaml.js +3 -0
  143. package/lib/client.yaml.js.map +1 -0
  144. package/lib/index.js +10 -14594
  145. package/lib/types/client/AnimatedRows.d.ts.map +1 -0
  146. package/lib/types/client/AnimatedRows.js.map +1 -0
  147. package/lib/types/client/BrandWordmark.d.ts.map +1 -0
  148. package/lib/types/client/BrandWordmark.js.map +1 -0
  149. package/lib/types/client/Button.d.ts.map +1 -0
  150. package/lib/types/client/Button.js.map +1 -0
  151. package/lib/types/client/Checkbox.d.ts.map +1 -0
  152. package/lib/types/client/Checkbox.js.map +1 -0
  153. package/lib/types/client/CodeFileIcon.d.ts.map +1 -0
  154. package/lib/types/client/CodeFileIcon.js.map +1 -0
  155. package/lib/types/client/CodeToolbar.d.ts.map +1 -0
  156. package/lib/types/client/CodeToolbar.js.map +1 -0
  157. package/lib/types/client/CommandText.d.ts.map +1 -0
  158. package/lib/types/client/CommandText.js.map +1 -0
  159. package/lib/types/client/ConfigField.d.ts.map +1 -0
  160. package/lib/types/client/ConfigField.js.map +1 -0
  161. package/lib/types/client/ConnectionIndicator.d.ts.map +1 -0
  162. package/lib/types/client/ConnectionIndicator.js.map +1 -0
  163. package/lib/types/client/DetailDocument.d.ts.map +1 -0
  164. package/lib/types/client/DetailDocument.js.map +1 -0
  165. package/lib/types/client/DiffBlock.d.ts.map +1 -0
  166. package/lib/types/client/DiffBlock.js.map +1 -0
  167. package/lib/types/client/DisclosureRow.d.ts.map +1 -0
  168. package/lib/types/client/DisclosureRow.js.map +1 -0
  169. package/lib/types/client/DraggableImage.d.ts.map +1 -0
  170. package/lib/types/client/DraggableImage.js.map +1 -0
  171. package/lib/types/client/FileTypeIcon.d.ts.map +1 -0
  172. package/lib/types/client/FileTypeIcon.js.map +1 -0
  173. package/lib/types/client/FishLogo.d.ts.map +1 -0
  174. package/lib/types/client/FishLogo.js.map +1 -0
  175. package/lib/types/client/FoldToggle.d.ts.map +1 -0
  176. package/lib/types/client/FoldToggle.js.map +1 -0
  177. package/lib/types/client/HoverCard.d.ts.map +1 -0
  178. package/lib/types/client/HoverCard.js.map +1 -0
  179. package/lib/types/client/HoverCardGroup.d.ts.map +1 -0
  180. package/lib/types/client/HoverCardGroup.js.map +1 -0
  181. package/lib/types/client/ImageLightbox.d.ts.map +1 -0
  182. package/lib/types/client/ImageLightbox.js.map +1 -0
  183. package/lib/types/client/ImagePreview.d.ts.map +1 -0
  184. package/lib/types/client/ImagePreview.js.map +1 -0
  185. package/lib/types/client/InlineEditor.d.ts.map +1 -0
  186. package/lib/types/client/InlineEditor.js.map +1 -0
  187. package/lib/types/client/Input.d.ts.map +1 -0
  188. package/lib/types/client/Input.js.map +1 -0
  189. package/lib/types/client/InspectButton.d.ts +18 -0
  190. package/lib/types/client/InspectButton.d.ts.map +1 -0
  191. package/lib/types/client/InspectButton.js.map +1 -0
  192. package/lib/types/client/JsonTree.d.ts.map +1 -0
  193. package/lib/types/client/JsonTree.js.map +1 -0
  194. package/lib/types/client/LinkIcon.d.ts.map +1 -0
  195. package/lib/types/client/LinkIcon.js.map +1 -0
  196. package/lib/types/client/Marquee.d.ts.map +1 -0
  197. package/lib/types/client/Marquee.js.map +1 -0
  198. package/lib/types/client/Menu.d.ts.map +1 -0
  199. package/lib/types/client/Menu.js.map +1 -0
  200. package/lib/types/client/MenuGroup.d.ts.map +1 -0
  201. package/lib/types/client/MenuGroup.js.map +1 -0
  202. package/lib/types/client/MenuRow.d.ts.map +1 -0
  203. package/lib/types/client/MenuRow.js.map +1 -0
  204. package/lib/types/client/MenuSurface.d.ts.map +1 -0
  205. package/lib/types/client/MenuSurface.js.map +1 -0
  206. package/lib/types/client/Modal.d.ts.map +1 -0
  207. package/lib/types/client/Modal.js.map +1 -0
  208. package/lib/types/client/PathLabel.d.ts.map +1 -0
  209. package/lib/types/client/PathLabel.js.map +1 -0
  210. package/lib/types/client/PermissionIcon.d.ts.map +1 -0
  211. package/lib/types/client/PermissionIcon.js.map +1 -0
  212. package/lib/types/client/Pill.d.ts.map +1 -0
  213. package/lib/types/client/Pill.js.map +1 -0
  214. package/lib/types/client/QuotePreview.d.ts +38 -0
  215. package/lib/types/client/QuotePreview.d.ts.map +1 -0
  216. package/lib/types/client/QuotePreview.js.map +1 -0
  217. package/lib/types/client/ReadBlock.d.ts.map +1 -0
  218. package/lib/types/client/ReadBlock.js.map +1 -0
  219. package/lib/types/client/ReferenceIcon.d.ts.map +1 -0
  220. package/lib/types/client/ReferenceIcon.js.map +1 -0
  221. package/lib/types/client/RiskConfirmation.d.ts.map +1 -0
  222. package/lib/types/client/RiskConfirmation.js.map +1 -0
  223. package/lib/types/client/SearchBlock.d.ts.map +1 -0
  224. package/lib/types/client/SearchBlock.js.map +1 -0
  225. package/lib/types/client/SearchField.d.ts.map +1 -0
  226. package/lib/types/client/SearchField.js.map +1 -0
  227. package/lib/types/client/SegmentedControl.d.ts.map +1 -0
  228. package/lib/types/client/SegmentedControl.js.map +1 -0
  229. package/lib/types/client/SegmentedTabs.d.ts.map +1 -0
  230. package/lib/types/client/SegmentedTabs.js.map +1 -0
  231. package/lib/types/client/ShortcutKeys.d.ts.map +1 -0
  232. package/lib/types/client/ShortcutKeys.js.map +1 -0
  233. package/lib/types/client/SiteGlyph.d.ts.map +1 -0
  234. package/lib/types/client/SiteGlyph.js.map +1 -0
  235. package/lib/types/client/StateDot.d.ts.map +1 -0
  236. package/lib/types/client/StateDot.js.map +1 -0
  237. package/lib/types/client/SubmenuPanel.d.ts.map +1 -0
  238. package/lib/types/client/SubmenuPanel.js.map +1 -0
  239. package/lib/types/client/Switch.d.ts.map +1 -0
  240. package/lib/types/client/Switch.js.map +1 -0
  241. package/lib/types/client/Tag.d.ts.map +1 -0
  242. package/lib/types/client/Tag.js.map +1 -0
  243. package/lib/types/client/TerminalBlock.d.ts.map +1 -0
  244. package/lib/types/client/TerminalBlock.js.map +1 -0
  245. package/lib/types/client/TextShimmer.d.ts.map +1 -0
  246. package/lib/types/client/TextShimmer.js.map +1 -0
  247. package/lib/types/client/Toast.d.ts.map +1 -0
  248. package/lib/types/client/Toast.js.map +1 -0
  249. package/lib/types/client/Tooltip.d.ts.map +1 -0
  250. package/lib/types/client/Tooltip.js.map +1 -0
  251. package/lib/types/client/UserMessageBubble.d.ts.map +1 -0
  252. package/lib/types/client/UserMessageBubble.js.map +1 -0
  253. package/lib/types/client/WebBlock.d.ts.map +1 -0
  254. package/lib/types/client/WebBlock.js.map +1 -0
  255. package/lib/types/client/ZoomControls.d.ts.map +1 -0
  256. package/lib/types/client/ZoomControls.js.map +1 -0
  257. package/lib/types/client/ansi.d.ts.map +1 -0
  258. package/lib/types/client/ansi.js.map +1 -0
  259. package/lib/types/client/clipboard.d.ts.map +1 -0
  260. package/lib/types/client/clipboard.js.map +1 -0
  261. package/lib/types/client/code-file-icon-artwork.d.ts.map +1 -0
  262. package/lib/types/client/code-file-icon-artwork.js.map +1 -0
  263. package/lib/types/client/code-file-types.d.ts.map +1 -0
  264. package/lib/types/client/code-file-types.js.map +1 -0
  265. package/lib/types/client/code-highlighting.d.ts.map +1 -0
  266. package/lib/types/client/code-highlighting.js.map +1 -0
  267. package/lib/types/client/darwin-desktop.d.ts.map +1 -0
  268. package/lib/types/client/darwin-desktop.js.map +1 -0
  269. package/lib/types/client/document-zoom.d.ts.map +1 -0
  270. package/lib/types/client/document-zoom.js.map +1 -0
  271. package/lib/types/client/file-drag-actions.d.ts.map +1 -0
  272. package/lib/types/client/file-drag-actions.js.map +1 -0
  273. package/lib/types/client/file-size.d.ts.map +1 -0
  274. package/lib/types/client/file-size.js.map +1 -0
  275. package/lib/types/client/focus.d.ts.map +1 -0
  276. package/lib/types/client/focus.js.map +1 -0
  277. package/lib/types/client/guide-artwork.d.ts.map +1 -0
  278. package/lib/types/client/guide-artwork.js.map +1 -0
  279. package/lib/types/client/head-tail-cap.d.ts.map +1 -0
  280. package/lib/types/client/head-tail-cap.js.map +1 -0
  281. package/lib/types/client/icons/artwork.d.ts +475 -0
  282. package/lib/types/client/icons/artwork.d.ts.map +1 -0
  283. package/lib/types/client/icons/artwork.js.map +1 -0
  284. package/lib/types/client/icons/index.d.ts +450 -0
  285. package/lib/types/client/icons/index.d.ts.map +1 -0
  286. package/lib/types/client/icons/index.js.map +1 -0
  287. package/lib/types/client/icons/props.d.ts.map +1 -0
  288. package/lib/types/client/icons/props.js.map +1 -0
  289. package/lib/types/client/icons/shared-artwork.d.ts.map +1 -0
  290. package/lib/types/client/icons/shared-artwork.js.map +1 -0
  291. package/lib/types/client/image-drag.d.ts.map +1 -0
  292. package/lib/types/client/image-drag.js.map +1 -0
  293. package/lib/types/client/index.d.ts +128 -0
  294. package/lib/types/client/index.d.ts.map +1 -0
  295. package/lib/types/client/index.js.map +1 -0
  296. package/lib/types/client/input-modality.d.ts.map +1 -0
  297. package/lib/types/client/input-modality.js.map +1 -0
  298. package/lib/types/client/keyboard-composition.d.ts.map +1 -0
  299. package/lib/types/client/keyboard-composition.js.map +1 -0
  300. package/lib/types/client/markdown/CodeBlock.d.ts.map +1 -0
  301. package/lib/types/client/markdown/CodeBlock.js.map +1 -0
  302. package/lib/types/client/markdown/FenceBlocks.d.ts.map +1 -0
  303. package/lib/types/client/markdown/FenceBlocks.js.map +1 -0
  304. package/lib/types/client/markdown/JsonBlock.d.ts.map +1 -0
  305. package/lib/types/client/markdown/JsonBlock.js.map +1 -0
  306. package/lib/types/client/markdown/MarkdownDelegate.d.ts.map +1 -0
  307. package/lib/types/client/markdown/MarkdownDelegate.js.map +1 -0
  308. package/lib/types/client/markdown/MarkdownText.d.ts.map +1 -0
  309. package/lib/types/client/markdown/MarkdownText.js.map +1 -0
  310. package/lib/types/client/markdown/cjkFriendlyStrong.d.ts.map +1 -0
  311. package/lib/types/client/markdown/cjkFriendlyStrong.js.map +1 -0
  312. package/lib/types/client/markdown/copy-tex.d.ts.map +1 -0
  313. package/lib/types/client/markdown/copy-tex.js.map +1 -0
  314. package/lib/types/client/markdown/diff-fence.d.ts.map +1 -0
  315. package/lib/types/client/markdown/diff-fence.js.map +1 -0
  316. package/lib/types/client/markdown/file-link.d.ts.map +1 -0
  317. package/lib/types/client/markdown/file-link.js.map +1 -0
  318. package/lib/types/client/markdown/highlight.d.ts.map +1 -0
  319. package/lib/types/client/markdown/highlight.js.map +1 -0
  320. package/lib/types/client/markdown/incremental.d.ts.map +1 -0
  321. package/lib/types/client/markdown/incremental.js.map +1 -0
  322. package/lib/types/client/markdown/katex.d.ts.map +1 -0
  323. package/lib/types/client/markdown/katex.js.map +1 -0
  324. package/lib/types/client/markdown/local-image-syntax.d.ts.map +1 -0
  325. package/lib/types/client/markdown/local-image-syntax.js.map +1 -0
  326. package/lib/types/client/markdown/mathCompatibility.d.ts.map +1 -0
  327. package/lib/types/client/markdown/mathCompatibility.js.map +1 -0
  328. package/lib/types/client/markdown/parse.d.ts.map +1 -0
  329. package/lib/types/client/markdown/parse.js.map +1 -0
  330. package/lib/types/client/markdown/plain-text.d.ts.map +1 -0
  331. package/lib/types/client/markdown/plain-text.js.map +1 -0
  332. package/lib/types/client/markdown/quote-text.d.ts.map +1 -0
  333. package/lib/types/client/markdown/quote-text.js.map +1 -0
  334. package/lib/types/client/markdown/render.d.ts.map +1 -0
  335. package/lib/types/client/markdown/render.js.map +1 -0
  336. package/lib/types/client/markdown/useViewportHighlighting.d.ts +11 -0
  337. package/lib/types/client/markdown/useViewportHighlighting.d.ts.map +1 -0
  338. package/lib/types/client/markdown/useViewportHighlighting.js.map +1 -0
  339. package/lib/types/client/markdown/windows-path-destinations.d.ts.map +1 -0
  340. package/lib/types/client/markdown/windows-path-destinations.js.map +1 -0
  341. package/lib/types/client/menu-submenu-position.d.ts.map +1 -0
  342. package/lib/types/client/menu-submenu-position.js.map +1 -0
  343. package/lib/types/client/overlay-top-margin.d.ts.map +1 -0
  344. package/lib/types/client/overlay-top-margin.js.map +1 -0
  345. package/lib/types/client/plugin-artwork.d.ts.map +1 -0
  346. package/lib/types/client/plugin-artwork.js.map +1 -0
  347. package/lib/types/client/pointer-grace.d.ts.map +1 -0
  348. package/lib/types/client/pointer-grace.js.map +1 -0
  349. package/lib/types/client/relative-time.d.ts.map +1 -0
  350. package/lib/types/client/relative-time.js.map +1 -0
  351. package/lib/types/client/settings-form/SettingsForm.d.ts.map +1 -0
  352. package/lib/types/client/settings-form/SettingsForm.js.map +1 -0
  353. package/lib/types/client/settings-form/fields.d.ts.map +1 -0
  354. package/lib/types/client/settings-form/fields.js.map +1 -0
  355. package/lib/types/client/settings-form/form-model.d.ts.map +1 -0
  356. package/lib/types/client/settings-form/form-model.js.map +1 -0
  357. package/lib/types/client/tooltip-placement.d.ts.map +1 -0
  358. package/lib/types/client/tooltip-placement.js.map +1 -0
  359. package/lib/types/client/use-clipboard-copy.d.ts.map +1 -0
  360. package/lib/types/client/use-clipboard-copy.js.map +1 -0
  361. package/lib/types/client/useAnchoredMaxHeight.d.ts +14 -0
  362. package/lib/types/client/useAnchoredMaxHeight.d.ts.map +1 -0
  363. package/lib/types/client/useAnchoredMaxHeight.js.map +1 -0
  364. package/lib/types/client/useDismissOnOutsidePointer.d.ts.map +1 -0
  365. package/lib/types/client/useDismissOnOutsidePointer.js.map +1 -0
  366. package/lib/types/client/useMenuSubmenu.d.ts +44 -0
  367. package/lib/types/client/useMenuSubmenu.d.ts.map +1 -0
  368. package/lib/types/client/useMenuSubmenu.js.map +1 -0
  369. package/lib/types/client/useModalLayer.d.ts.map +1 -0
  370. package/lib/types/client/useModalLayer.js.map +1 -0
  371. package/lib/types/client/useRowDragPreview.d.ts.map +1 -0
  372. package/lib/types/client/useRowDragPreview.js.map +1 -0
  373. package/lib/types/client/user-text.d.ts.map +1 -0
  374. package/lib/types/client/user-text.js.map +1 -0
  375. package/locale/de.json +6 -0
  376. package/locale/en.json +5 -0
  377. package/locale/es.json +6 -0
  378. package/locale/fr.json +6 -0
  379. package/locale/ja.json +6 -0
  380. package/locale/pt.json +6 -0
  381. package/locale/ru.json +6 -0
  382. package/locale/zh.json +6 -0
  383. package/package.json +28 -12
  384. package/src/client/CodeFileIcon.tsx +28 -0
  385. package/src/client/HoverCard.tsx +360 -0
  386. package/src/client/InspectButton.module.css +47 -0
  387. package/src/client/InspectButton.tsx +29 -0
  388. package/src/client/JsonTree.tsx +850 -0
  389. package/src/client/Menu.module.css +491 -0
  390. package/src/client/Menu.tsx +656 -0
  391. package/src/client/MenuSurface.tsx +54 -0
  392. package/src/client/QuotePreview.tsx +116 -0
  393. package/src/client/RiskConfirmation.module.css +54 -0
  394. package/src/client/TextShimmer.tsx +64 -0
  395. package/src/client/Tooltip.tsx +282 -0
  396. package/src/client/icons/artwork.ts +169 -0
  397. package/src/client/icons/index.tsx +694 -0
  398. package/src/client/image-drag.ts +84 -0
  399. package/src/client/index.ts +148 -0
  400. package/src/client/markdown/MarkdownText.module.css +612 -0
  401. package/src/client/markdown/useViewportHighlighting.ts +72 -0
  402. package/src/client/plugin-artwork.tsx +110 -0
  403. package/src/client/useAnchoredMaxHeight.ts +45 -0
  404. package/src/client/useMenuSubmenu.ts +185 -0
  405. package/src/index.js +12 -0
  406. package/lib/index.js.map +0 -1
  407. package/lib/types/AnimatedRows.d.ts.map +0 -1
  408. package/lib/types/AnimatedRows.js.map +0 -1
  409. package/lib/types/BrandWordmark.d.ts.map +0 -1
  410. package/lib/types/BrandWordmark.js.map +0 -1
  411. package/lib/types/Button.d.ts.map +0 -1
  412. package/lib/types/Button.js.map +0 -1
  413. package/lib/types/Checkbox.d.ts.map +0 -1
  414. package/lib/types/Checkbox.js.map +0 -1
  415. package/lib/types/CodeFileIcon.d.ts.map +0 -1
  416. package/lib/types/CodeFileIcon.js.map +0 -1
  417. package/lib/types/CodeToolbar.d.ts.map +0 -1
  418. package/lib/types/CodeToolbar.js.map +0 -1
  419. package/lib/types/CommandText.d.ts.map +0 -1
  420. package/lib/types/CommandText.js.map +0 -1
  421. package/lib/types/ConfigField.d.ts.map +0 -1
  422. package/lib/types/ConfigField.js.map +0 -1
  423. package/lib/types/ConnectionIndicator.d.ts.map +0 -1
  424. package/lib/types/ConnectionIndicator.js.map +0 -1
  425. package/lib/types/DetailDocument.d.ts.map +0 -1
  426. package/lib/types/DetailDocument.js.map +0 -1
  427. package/lib/types/DiffBlock.d.ts.map +0 -1
  428. package/lib/types/DiffBlock.js.map +0 -1
  429. package/lib/types/DisclosureRow.d.ts.map +0 -1
  430. package/lib/types/DisclosureRow.js.map +0 -1
  431. package/lib/types/DraggableImage.d.ts.map +0 -1
  432. package/lib/types/DraggableImage.js.map +0 -1
  433. package/lib/types/FileTypeIcon.d.ts.map +0 -1
  434. package/lib/types/FileTypeIcon.js.map +0 -1
  435. package/lib/types/FishLogo.d.ts.map +0 -1
  436. package/lib/types/FishLogo.js.map +0 -1
  437. package/lib/types/FoldToggle.d.ts.map +0 -1
  438. package/lib/types/FoldToggle.js.map +0 -1
  439. package/lib/types/HoverCard.d.ts.map +0 -1
  440. package/lib/types/HoverCard.js.map +0 -1
  441. package/lib/types/HoverCardGroup.d.ts.map +0 -1
  442. package/lib/types/HoverCardGroup.js.map +0 -1
  443. package/lib/types/ImageLightbox.d.ts.map +0 -1
  444. package/lib/types/ImageLightbox.js.map +0 -1
  445. package/lib/types/ImagePreview.d.ts.map +0 -1
  446. package/lib/types/ImagePreview.js.map +0 -1
  447. package/lib/types/InlineEditor.d.ts.map +0 -1
  448. package/lib/types/InlineEditor.js.map +0 -1
  449. package/lib/types/Input.d.ts.map +0 -1
  450. package/lib/types/Input.js.map +0 -1
  451. package/lib/types/JsonTree.d.ts.map +0 -1
  452. package/lib/types/JsonTree.js.map +0 -1
  453. package/lib/types/LinkIcon.d.ts.map +0 -1
  454. package/lib/types/LinkIcon.js.map +0 -1
  455. package/lib/types/Marquee.d.ts.map +0 -1
  456. package/lib/types/Marquee.js.map +0 -1
  457. package/lib/types/Menu.d.ts.map +0 -1
  458. package/lib/types/Menu.js.map +0 -1
  459. package/lib/types/MenuGroup.d.ts.map +0 -1
  460. package/lib/types/MenuGroup.js.map +0 -1
  461. package/lib/types/MenuRow.d.ts.map +0 -1
  462. package/lib/types/MenuRow.js.map +0 -1
  463. package/lib/types/MenuSurface.d.ts.map +0 -1
  464. package/lib/types/MenuSurface.js.map +0 -1
  465. package/lib/types/Modal.d.ts.map +0 -1
  466. package/lib/types/Modal.js.map +0 -1
  467. package/lib/types/PathLabel.d.ts.map +0 -1
  468. package/lib/types/PathLabel.js.map +0 -1
  469. package/lib/types/PermissionIcon.d.ts.map +0 -1
  470. package/lib/types/PermissionIcon.js.map +0 -1
  471. package/lib/types/Pill.d.ts.map +0 -1
  472. package/lib/types/Pill.js.map +0 -1
  473. package/lib/types/QuotePreview.d.ts +0 -37
  474. package/lib/types/QuotePreview.d.ts.map +0 -1
  475. package/lib/types/QuotePreview.js.map +0 -1
  476. package/lib/types/ReadBlock.d.ts.map +0 -1
  477. package/lib/types/ReadBlock.js.map +0 -1
  478. package/lib/types/ReferenceIcon.d.ts.map +0 -1
  479. package/lib/types/ReferenceIcon.js.map +0 -1
  480. package/lib/types/RiskConfirmation.d.ts.map +0 -1
  481. package/lib/types/RiskConfirmation.js.map +0 -1
  482. package/lib/types/SearchBlock.d.ts.map +0 -1
  483. package/lib/types/SearchBlock.js.map +0 -1
  484. package/lib/types/SearchField.d.ts.map +0 -1
  485. package/lib/types/SearchField.js.map +0 -1
  486. package/lib/types/SegmentedControl.d.ts.map +0 -1
  487. package/lib/types/SegmentedControl.js.map +0 -1
  488. package/lib/types/SegmentedTabs.d.ts.map +0 -1
  489. package/lib/types/SegmentedTabs.js.map +0 -1
  490. package/lib/types/ShortcutKeys.d.ts.map +0 -1
  491. package/lib/types/ShortcutKeys.js.map +0 -1
  492. package/lib/types/SiteGlyph.d.ts.map +0 -1
  493. package/lib/types/SiteGlyph.js.map +0 -1
  494. package/lib/types/StateDot.d.ts.map +0 -1
  495. package/lib/types/StateDot.js.map +0 -1
  496. package/lib/types/SubmenuPanel.d.ts.map +0 -1
  497. package/lib/types/SubmenuPanel.js.map +0 -1
  498. package/lib/types/Switch.d.ts.map +0 -1
  499. package/lib/types/Switch.js.map +0 -1
  500. package/lib/types/Tag.d.ts.map +0 -1
  501. package/lib/types/Tag.js.map +0 -1
  502. package/lib/types/TerminalBlock.d.ts.map +0 -1
  503. package/lib/types/TerminalBlock.js.map +0 -1
  504. package/lib/types/TextShimmer.d.ts.map +0 -1
  505. package/lib/types/TextShimmer.js.map +0 -1
  506. package/lib/types/Toast.d.ts.map +0 -1
  507. package/lib/types/Toast.js.map +0 -1
  508. package/lib/types/Tooltip.d.ts.map +0 -1
  509. package/lib/types/Tooltip.js.map +0 -1
  510. package/lib/types/UserMessageBubble.d.ts.map +0 -1
  511. package/lib/types/UserMessageBubble.js.map +0 -1
  512. package/lib/types/WebBlock.d.ts.map +0 -1
  513. package/lib/types/WebBlock.js.map +0 -1
  514. package/lib/types/ZoomControls.d.ts.map +0 -1
  515. package/lib/types/ZoomControls.js.map +0 -1
  516. package/lib/types/ansi.d.ts.map +0 -1
  517. package/lib/types/ansi.js.map +0 -1
  518. package/lib/types/clipboard.d.ts.map +0 -1
  519. package/lib/types/clipboard.js.map +0 -1
  520. package/lib/types/code-file-icon-artwork.d.ts.map +0 -1
  521. package/lib/types/code-file-icon-artwork.js.map +0 -1
  522. package/lib/types/code-file-types.d.ts.map +0 -1
  523. package/lib/types/code-file-types.js.map +0 -1
  524. package/lib/types/code-highlighting.d.ts.map +0 -1
  525. package/lib/types/code-highlighting.js.map +0 -1
  526. package/lib/types/darwin-desktop.d.ts.map +0 -1
  527. package/lib/types/darwin-desktop.js.map +0 -1
  528. package/lib/types/document-zoom.d.ts.map +0 -1
  529. package/lib/types/document-zoom.js.map +0 -1
  530. package/lib/types/file-drag-actions.d.ts.map +0 -1
  531. package/lib/types/file-drag-actions.js.map +0 -1
  532. package/lib/types/file-size.d.ts.map +0 -1
  533. package/lib/types/file-size.js.map +0 -1
  534. package/lib/types/focus.d.ts.map +0 -1
  535. package/lib/types/focus.js.map +0 -1
  536. package/lib/types/guide-artwork.d.ts.map +0 -1
  537. package/lib/types/guide-artwork.js.map +0 -1
  538. package/lib/types/head-tail-cap.d.ts.map +0 -1
  539. package/lib/types/head-tail-cap.js.map +0 -1
  540. package/lib/types/icons/artwork.d.ts +0 -454
  541. package/lib/types/icons/artwork.d.ts.map +0 -1
  542. package/lib/types/icons/artwork.js.map +0 -1
  543. package/lib/types/icons/index.d.ts +0 -430
  544. package/lib/types/icons/index.d.ts.map +0 -1
  545. package/lib/types/icons/index.js.map +0 -1
  546. package/lib/types/icons/props.d.ts.map +0 -1
  547. package/lib/types/icons/props.js.map +0 -1
  548. package/lib/types/icons/shared-artwork.d.ts.map +0 -1
  549. package/lib/types/icons/shared-artwork.js.map +0 -1
  550. package/lib/types/image-drag.d.ts.map +0 -1
  551. package/lib/types/image-drag.js.map +0 -1
  552. package/lib/types/index.d.ts +0 -124
  553. package/lib/types/index.d.ts.map +0 -1
  554. package/lib/types/index.js.map +0 -1
  555. package/lib/types/input-modality.d.ts.map +0 -1
  556. package/lib/types/input-modality.js.map +0 -1
  557. package/lib/types/keyboard-composition.d.ts.map +0 -1
  558. package/lib/types/keyboard-composition.js.map +0 -1
  559. package/lib/types/markdown/CodeBlock.d.ts.map +0 -1
  560. package/lib/types/markdown/CodeBlock.js.map +0 -1
  561. package/lib/types/markdown/FenceBlocks.d.ts.map +0 -1
  562. package/lib/types/markdown/FenceBlocks.js.map +0 -1
  563. package/lib/types/markdown/JsonBlock.d.ts.map +0 -1
  564. package/lib/types/markdown/JsonBlock.js.map +0 -1
  565. package/lib/types/markdown/MarkdownDelegate.d.ts.map +0 -1
  566. package/lib/types/markdown/MarkdownDelegate.js.map +0 -1
  567. package/lib/types/markdown/MarkdownText.d.ts.map +0 -1
  568. package/lib/types/markdown/MarkdownText.js.map +0 -1
  569. package/lib/types/markdown/cjkFriendlyStrong.d.ts.map +0 -1
  570. package/lib/types/markdown/cjkFriendlyStrong.js.map +0 -1
  571. package/lib/types/markdown/copy-tex.d.ts.map +0 -1
  572. package/lib/types/markdown/copy-tex.js.map +0 -1
  573. package/lib/types/markdown/diff-fence.d.ts.map +0 -1
  574. package/lib/types/markdown/diff-fence.js.map +0 -1
  575. package/lib/types/markdown/file-link.d.ts.map +0 -1
  576. package/lib/types/markdown/file-link.js.map +0 -1
  577. package/lib/types/markdown/highlight.d.ts.map +0 -1
  578. package/lib/types/markdown/highlight.js.map +0 -1
  579. package/lib/types/markdown/incremental.d.ts.map +0 -1
  580. package/lib/types/markdown/incremental.js.map +0 -1
  581. package/lib/types/markdown/katex.d.ts.map +0 -1
  582. package/lib/types/markdown/katex.js.map +0 -1
  583. package/lib/types/markdown/local-image-syntax.d.ts.map +0 -1
  584. package/lib/types/markdown/local-image-syntax.js.map +0 -1
  585. package/lib/types/markdown/mathCompatibility.d.ts.map +0 -1
  586. package/lib/types/markdown/mathCompatibility.js.map +0 -1
  587. package/lib/types/markdown/parse.d.ts.map +0 -1
  588. package/lib/types/markdown/parse.js.map +0 -1
  589. package/lib/types/markdown/plain-text.d.ts.map +0 -1
  590. package/lib/types/markdown/plain-text.js.map +0 -1
  591. package/lib/types/markdown/quote-text.d.ts.map +0 -1
  592. package/lib/types/markdown/quote-text.js.map +0 -1
  593. package/lib/types/markdown/render.d.ts.map +0 -1
  594. package/lib/types/markdown/render.js.map +0 -1
  595. package/lib/types/markdown/useViewportHighlighting.d.ts +0 -11
  596. package/lib/types/markdown/useViewportHighlighting.d.ts.map +0 -1
  597. package/lib/types/markdown/useViewportHighlighting.js.map +0 -1
  598. package/lib/types/markdown/windows-path-destinations.d.ts.map +0 -1
  599. package/lib/types/markdown/windows-path-destinations.js.map +0 -1
  600. package/lib/types/menu-submenu-position.d.ts.map +0 -1
  601. package/lib/types/menu-submenu-position.js.map +0 -1
  602. package/lib/types/overlay-top-margin.d.ts.map +0 -1
  603. package/lib/types/overlay-top-margin.js.map +0 -1
  604. package/lib/types/plugin-artwork.d.ts.map +0 -1
  605. package/lib/types/plugin-artwork.js.map +0 -1
  606. package/lib/types/pointer-grace.d.ts.map +0 -1
  607. package/lib/types/pointer-grace.js.map +0 -1
  608. package/lib/types/relative-time.d.ts.map +0 -1
  609. package/lib/types/relative-time.js.map +0 -1
  610. package/lib/types/settings-form/SettingsForm.d.ts.map +0 -1
  611. package/lib/types/settings-form/SettingsForm.js.map +0 -1
  612. package/lib/types/settings-form/fields.d.ts.map +0 -1
  613. package/lib/types/settings-form/fields.js.map +0 -1
  614. package/lib/types/settings-form/form-model.d.ts.map +0 -1
  615. package/lib/types/settings-form/form-model.js.map +0 -1
  616. package/lib/types/tooltip-placement.d.ts.map +0 -1
  617. package/lib/types/tooltip-placement.js.map +0 -1
  618. package/lib/types/use-clipboard-copy.d.ts.map +0 -1
  619. package/lib/types/use-clipboard-copy.js.map +0 -1
  620. package/lib/types/useAnchoredMaxHeight.d.ts +0 -14
  621. package/lib/types/useAnchoredMaxHeight.d.ts.map +0 -1
  622. package/lib/types/useAnchoredMaxHeight.js.map +0 -1
  623. package/lib/types/useDismissOnOutsidePointer.d.ts.map +0 -1
  624. package/lib/types/useDismissOnOutsidePointer.js.map +0 -1
  625. package/lib/types/useMenuSubmenu.d.ts +0 -44
  626. package/lib/types/useMenuSubmenu.d.ts.map +0 -1
  627. package/lib/types/useMenuSubmenu.js.map +0 -1
  628. package/lib/types/useModalLayer.d.ts.map +0 -1
  629. package/lib/types/useModalLayer.js.map +0 -1
  630. package/lib/types/useRowDragPreview.d.ts.map +0 -1
  631. package/lib/types/useRowDragPreview.js.map +0 -1
  632. package/lib/types/user-text.d.ts.map +0 -1
  633. package/lib/types/user-text.js.map +0 -1
  634. package/src/CodeFileIcon.tsx +0 -28
  635. package/src/HoverCard.tsx +0 -360
  636. package/src/JsonTree.tsx +0 -850
  637. package/src/Menu.module.css +0 -473
  638. package/src/Menu.tsx +0 -656
  639. package/src/MenuSurface.tsx +0 -54
  640. package/src/QuotePreview.tsx +0 -133
  641. package/src/RiskConfirmation.module.css +0 -52
  642. package/src/TextShimmer.tsx +0 -58
  643. package/src/Tooltip.tsx +0 -273
  644. package/src/icons/artwork.ts +0 -161
  645. package/src/icons/index.tsx +0 -664
  646. package/src/image-drag.ts +0 -84
  647. package/src/index.ts +0 -143
  648. package/src/markdown/MarkdownText.module.css +0 -522
  649. package/src/markdown/useViewportHighlighting.ts +0 -72
  650. package/src/plugin-artwork.tsx +0 -110
  651. package/src/useAnchoredMaxHeight.ts +0 -45
  652. package/src/useMenuSubmenu.ts +0 -185
  653. /package/lib/types/{AnimatedRows.d.ts → client/AnimatedRows.d.ts} +0 -0
  654. /package/lib/types/{BrandWordmark.d.ts → client/BrandWordmark.d.ts} +0 -0
  655. /package/lib/types/{Button.d.ts → client/Button.d.ts} +0 -0
  656. /package/lib/types/{Checkbox.d.ts → client/Checkbox.d.ts} +0 -0
  657. /package/lib/types/{CodeFileIcon.d.ts → client/CodeFileIcon.d.ts} +0 -0
  658. /package/lib/types/{CodeToolbar.d.ts → client/CodeToolbar.d.ts} +0 -0
  659. /package/lib/types/{CommandText.d.ts → client/CommandText.d.ts} +0 -0
  660. /package/lib/types/{ConfigField.d.ts → client/ConfigField.d.ts} +0 -0
  661. /package/lib/types/{ConnectionIndicator.d.ts → client/ConnectionIndicator.d.ts} +0 -0
  662. /package/lib/types/{DetailDocument.d.ts → client/DetailDocument.d.ts} +0 -0
  663. /package/lib/types/{DiffBlock.d.ts → client/DiffBlock.d.ts} +0 -0
  664. /package/lib/types/{DisclosureRow.d.ts → client/DisclosureRow.d.ts} +0 -0
  665. /package/lib/types/{DraggableImage.d.ts → client/DraggableImage.d.ts} +0 -0
  666. /package/lib/types/{FileTypeIcon.d.ts → client/FileTypeIcon.d.ts} +0 -0
  667. /package/lib/types/{FishLogo.d.ts → client/FishLogo.d.ts} +0 -0
  668. /package/lib/types/{FoldToggle.d.ts → client/FoldToggle.d.ts} +0 -0
  669. /package/lib/types/{HoverCard.d.ts → client/HoverCard.d.ts} +0 -0
  670. /package/lib/types/{HoverCardGroup.d.ts → client/HoverCardGroup.d.ts} +0 -0
  671. /package/lib/types/{ImageLightbox.d.ts → client/ImageLightbox.d.ts} +0 -0
  672. /package/lib/types/{ImagePreview.d.ts → client/ImagePreview.d.ts} +0 -0
  673. /package/lib/types/{InlineEditor.d.ts → client/InlineEditor.d.ts} +0 -0
  674. /package/lib/types/{Input.d.ts → client/Input.d.ts} +0 -0
  675. /package/lib/types/{JsonTree.d.ts → client/JsonTree.d.ts} +0 -0
  676. /package/lib/types/{LinkIcon.d.ts → client/LinkIcon.d.ts} +0 -0
  677. /package/lib/types/{Marquee.d.ts → client/Marquee.d.ts} +0 -0
  678. /package/lib/types/{Menu.d.ts → client/Menu.d.ts} +0 -0
  679. /package/lib/types/{MenuGroup.d.ts → client/MenuGroup.d.ts} +0 -0
  680. /package/lib/types/{MenuRow.d.ts → client/MenuRow.d.ts} +0 -0
  681. /package/lib/types/{MenuSurface.d.ts → client/MenuSurface.d.ts} +0 -0
  682. /package/lib/types/{Modal.d.ts → client/Modal.d.ts} +0 -0
  683. /package/lib/types/{PathLabel.d.ts → client/PathLabel.d.ts} +0 -0
  684. /package/lib/types/{PermissionIcon.d.ts → client/PermissionIcon.d.ts} +0 -0
  685. /package/lib/types/{Pill.d.ts → client/Pill.d.ts} +0 -0
  686. /package/lib/types/{ReadBlock.d.ts → client/ReadBlock.d.ts} +0 -0
  687. /package/lib/types/{ReferenceIcon.d.ts → client/ReferenceIcon.d.ts} +0 -0
  688. /package/lib/types/{RiskConfirmation.d.ts → client/RiskConfirmation.d.ts} +0 -0
  689. /package/lib/types/{SearchBlock.d.ts → client/SearchBlock.d.ts} +0 -0
  690. /package/lib/types/{SearchField.d.ts → client/SearchField.d.ts} +0 -0
  691. /package/lib/types/{SegmentedControl.d.ts → client/SegmentedControl.d.ts} +0 -0
  692. /package/lib/types/{SegmentedTabs.d.ts → client/SegmentedTabs.d.ts} +0 -0
  693. /package/lib/types/{ShortcutKeys.d.ts → client/ShortcutKeys.d.ts} +0 -0
  694. /package/lib/types/{SiteGlyph.d.ts → client/SiteGlyph.d.ts} +0 -0
  695. /package/lib/types/{StateDot.d.ts → client/StateDot.d.ts} +0 -0
  696. /package/lib/types/{SubmenuPanel.d.ts → client/SubmenuPanel.d.ts} +0 -0
  697. /package/lib/types/{Switch.d.ts → client/Switch.d.ts} +0 -0
  698. /package/lib/types/{Tag.d.ts → client/Tag.d.ts} +0 -0
  699. /package/lib/types/{TerminalBlock.d.ts → client/TerminalBlock.d.ts} +0 -0
  700. /package/lib/types/{TextShimmer.d.ts → client/TextShimmer.d.ts} +0 -0
  701. /package/lib/types/{Toast.d.ts → client/Toast.d.ts} +0 -0
  702. /package/lib/types/{Tooltip.d.ts → client/Tooltip.d.ts} +0 -0
  703. /package/lib/types/{UserMessageBubble.d.ts → client/UserMessageBubble.d.ts} +0 -0
  704. /package/lib/types/{WebBlock.d.ts → client/WebBlock.d.ts} +0 -0
  705. /package/lib/types/{ZoomControls.d.ts → client/ZoomControls.d.ts} +0 -0
  706. /package/lib/types/{ansi.d.ts → client/ansi.d.ts} +0 -0
  707. /package/lib/types/{clipboard.d.ts → client/clipboard.d.ts} +0 -0
  708. /package/lib/types/{code-file-icon-artwork.d.ts → client/code-file-icon-artwork.d.ts} +0 -0
  709. /package/lib/types/{code-file-types.d.ts → client/code-file-types.d.ts} +0 -0
  710. /package/lib/types/{code-highlighting.d.ts → client/code-highlighting.d.ts} +0 -0
  711. /package/lib/types/{darwin-desktop.d.ts → client/darwin-desktop.d.ts} +0 -0
  712. /package/lib/types/{document-zoom.d.ts → client/document-zoom.d.ts} +0 -0
  713. /package/lib/types/{file-drag-actions.d.ts → client/file-drag-actions.d.ts} +0 -0
  714. /package/lib/types/{file-size.d.ts → client/file-size.d.ts} +0 -0
  715. /package/lib/types/{focus.d.ts → client/focus.d.ts} +0 -0
  716. /package/lib/types/{guide-artwork.d.ts → client/guide-artwork.d.ts} +0 -0
  717. /package/lib/types/{head-tail-cap.d.ts → client/head-tail-cap.d.ts} +0 -0
  718. /package/lib/types/{icons → client/icons}/props.d.ts +0 -0
  719. /package/lib/types/{icons → client/icons}/shared-artwork.d.ts +0 -0
  720. /package/lib/types/{image-drag.d.ts → client/image-drag.d.ts} +0 -0
  721. /package/lib/types/{input-modality.d.ts → client/input-modality.d.ts} +0 -0
  722. /package/lib/types/{keyboard-composition.d.ts → client/keyboard-composition.d.ts} +0 -0
  723. /package/lib/types/{markdown → client/markdown}/CodeBlock.d.ts +0 -0
  724. /package/lib/types/{markdown → client/markdown}/FenceBlocks.d.ts +0 -0
  725. /package/lib/types/{markdown → client/markdown}/JsonBlock.d.ts +0 -0
  726. /package/lib/types/{markdown → client/markdown}/MarkdownDelegate.d.ts +0 -0
  727. /package/lib/types/{markdown → client/markdown}/MarkdownText.d.ts +0 -0
  728. /package/lib/types/{markdown → client/markdown}/cjkFriendlyStrong.d.ts +0 -0
  729. /package/lib/types/{markdown → client/markdown}/copy-tex.d.ts +0 -0
  730. /package/lib/types/{markdown → client/markdown}/diff-fence.d.ts +0 -0
  731. /package/lib/types/{markdown → client/markdown}/file-link.d.ts +0 -0
  732. /package/lib/types/{markdown → client/markdown}/highlight.d.ts +0 -0
  733. /package/lib/types/{markdown → client/markdown}/incremental.d.ts +0 -0
  734. /package/lib/types/{markdown → client/markdown}/katex.d.ts +0 -0
  735. /package/lib/types/{markdown → client/markdown}/local-image-syntax.d.ts +0 -0
  736. /package/lib/types/{markdown → client/markdown}/mathCompatibility.d.ts +0 -0
  737. /package/lib/types/{markdown → client/markdown}/parse.d.ts +0 -0
  738. /package/lib/types/{markdown → client/markdown}/plain-text.d.ts +0 -0
  739. /package/lib/types/{markdown → client/markdown}/quote-text.d.ts +0 -0
  740. /package/lib/types/{markdown → client/markdown}/render.d.ts +0 -0
  741. /package/lib/types/{markdown → client/markdown}/windows-path-destinations.d.ts +0 -0
  742. /package/lib/types/{menu-submenu-position.d.ts → client/menu-submenu-position.d.ts} +0 -0
  743. /package/lib/types/{overlay-top-margin.d.ts → client/overlay-top-margin.d.ts} +0 -0
  744. /package/lib/types/{plugin-artwork.d.ts → client/plugin-artwork.d.ts} +0 -0
  745. /package/lib/types/{pointer-grace.d.ts → client/pointer-grace.d.ts} +0 -0
  746. /package/lib/types/{relative-time.d.ts → client/relative-time.d.ts} +0 -0
  747. /package/lib/types/{settings-form → client/settings-form}/SettingsForm.d.ts +0 -0
  748. /package/lib/types/{settings-form → client/settings-form}/fields.d.ts +0 -0
  749. /package/lib/types/{settings-form → client/settings-form}/form-model.d.ts +0 -0
  750. /package/lib/types/{tooltip-placement.d.ts → client/tooltip-placement.d.ts} +0 -0
  751. /package/lib/types/{use-clipboard-copy.d.ts → client/use-clipboard-copy.d.ts} +0 -0
  752. /package/lib/types/{useDismissOnOutsidePointer.d.ts → client/useDismissOnOutsidePointer.d.ts} +0 -0
  753. /package/lib/types/{useModalLayer.d.ts → client/useModalLayer.d.ts} +0 -0
  754. /package/lib/types/{useRowDragPreview.d.ts → client/useRowDragPreview.d.ts} +0 -0
  755. /package/lib/types/{user-text.d.ts → client/user-text.d.ts} +0 -0
  756. /package/src/{AnimatedRows.module.css → client/AnimatedRows.module.css} +0 -0
  757. /package/src/{AnimatedRows.tsx → client/AnimatedRows.tsx} +0 -0
  758. /package/src/{BrandWordmark.tsx → client/BrandWordmark.tsx} +0 -0
  759. /package/src/{Button.module.css → client/Button.module.css} +0 -0
  760. /package/src/{Button.tsx → client/Button.tsx} +0 -0
  761. /package/src/{Checkbox.module.css → client/Checkbox.module.css} +0 -0
  762. /package/src/{Checkbox.tsx → client/Checkbox.tsx} +0 -0
  763. /package/src/{CodeCard.module.css → client/CodeCard.module.css} +0 -0
  764. /package/src/{CodeToolbar.tsx → client/CodeToolbar.tsx} +0 -0
  765. /package/src/{CommandText.module.css → client/CommandText.module.css} +0 -0
  766. /package/src/{CommandText.tsx → client/CommandText.tsx} +0 -0
  767. /package/src/{ConfigField.module.css → client/ConfigField.module.css} +0 -0
  768. /package/src/{ConfigField.tsx → client/ConfigField.tsx} +0 -0
  769. /package/src/{ConnectionIndicator.module.css → client/ConnectionIndicator.module.css} +0 -0
  770. /package/src/{ConnectionIndicator.tsx → client/ConnectionIndicator.tsx} +0 -0
  771. /package/src/{DetailDocument.module.css → client/DetailDocument.module.css} +0 -0
  772. /package/src/{DetailDocument.tsx → client/DetailDocument.tsx} +0 -0
  773. /package/src/{DiffBlock.module.css → client/DiffBlock.module.css} +0 -0
  774. /package/src/{DiffBlock.tsx → client/DiffBlock.tsx} +0 -0
  775. /package/src/{DisclosureRow.module.css → client/DisclosureRow.module.css} +0 -0
  776. /package/src/{DisclosureRow.tsx → client/DisclosureRow.tsx} +0 -0
  777. /package/src/{DraggableImage.tsx → client/DraggableImage.tsx} +0 -0
  778. /package/src/{FileTypeIcon.module.css → client/FileTypeIcon.module.css} +0 -0
  779. /package/src/{FileTypeIcon.tsx → client/FileTypeIcon.tsx} +0 -0
  780. /package/src/{FishLogo.tsx → client/FishLogo.tsx} +0 -0
  781. /package/src/{FoldToggle.tsx → client/FoldToggle.tsx} +0 -0
  782. /package/src/{HoverCard.module.css → client/HoverCard.module.css} +0 -0
  783. /package/src/{HoverCardGroup.tsx → client/HoverCardGroup.tsx} +0 -0
  784. /package/src/{ImageLightbox.module.css → client/ImageLightbox.module.css} +0 -0
  785. /package/src/{ImageLightbox.tsx → client/ImageLightbox.tsx} +0 -0
  786. /package/src/{ImagePreview.module.css → client/ImagePreview.module.css} +0 -0
  787. /package/src/{ImagePreview.tsx → client/ImagePreview.tsx} +0 -0
  788. /package/src/{InlineEditor.module.css → client/InlineEditor.module.css} +0 -0
  789. /package/src/{InlineEditor.tsx → client/InlineEditor.tsx} +0 -0
  790. /package/src/{Input.module.css → client/Input.module.css} +0 -0
  791. /package/src/{Input.tsx → client/Input.tsx} +0 -0
  792. /package/src/{JsonTree.module.css → client/JsonTree.module.css} +0 -0
  793. /package/src/{LinkIcon.tsx → client/LinkIcon.tsx} +0 -0
  794. /package/src/{Marquee.module.css → client/Marquee.module.css} +0 -0
  795. /package/src/{Marquee.tsx → client/Marquee.tsx} +0 -0
  796. /package/src/{MenuGroup.module.css → client/MenuGroup.module.css} +0 -0
  797. /package/src/{MenuGroup.tsx → client/MenuGroup.tsx} +0 -0
  798. /package/src/{MenuRow.tsx → client/MenuRow.tsx} +0 -0
  799. /package/src/{MenuSurface.module.css → client/MenuSurface.module.css} +0 -0
  800. /package/src/{Modal.module.css → client/Modal.module.css} +0 -0
  801. /package/src/{Modal.tsx → client/Modal.tsx} +0 -0
  802. /package/src/{PathLabel.module.css → client/PathLabel.module.css} +0 -0
  803. /package/src/{PathLabel.tsx → client/PathLabel.tsx} +0 -0
  804. /package/src/{PermissionIcon.tsx → client/PermissionIcon.tsx} +0 -0
  805. /package/src/{Pill.module.css → client/Pill.module.css} +0 -0
  806. /package/src/{Pill.tsx → client/Pill.tsx} +0 -0
  807. /package/src/{QuotePreview.module.css → client/QuotePreview.module.css} +0 -0
  808. /package/src/{ReadBlock.module.css → client/ReadBlock.module.css} +0 -0
  809. /package/src/{ReadBlock.tsx → client/ReadBlock.tsx} +0 -0
  810. /package/src/{ReferenceIcon.tsx → client/ReferenceIcon.tsx} +0 -0
  811. /package/src/{RiskConfirmation.tsx → client/RiskConfirmation.tsx} +0 -0
  812. /package/src/{RowDragPreview.module.css → client/RowDragPreview.module.css} +0 -0
  813. /package/src/{SearchBlock.module.css → client/SearchBlock.module.css} +0 -0
  814. /package/src/{SearchBlock.tsx → client/SearchBlock.tsx} +0 -0
  815. /package/src/{SearchField.module.css → client/SearchField.module.css} +0 -0
  816. /package/src/{SearchField.tsx → client/SearchField.tsx} +0 -0
  817. /package/src/{SegmentedControl.module.css → client/SegmentedControl.module.css} +0 -0
  818. /package/src/{SegmentedControl.tsx → client/SegmentedControl.tsx} +0 -0
  819. /package/src/{SegmentedTabs.module.css → client/SegmentedTabs.module.css} +0 -0
  820. /package/src/{SegmentedTabs.tsx → client/SegmentedTabs.tsx} +0 -0
  821. /package/src/{ShortcutKeys.module.css → client/ShortcutKeys.module.css} +0 -0
  822. /package/src/{ShortcutKeys.tsx → client/ShortcutKeys.tsx} +0 -0
  823. /package/src/{SiteGlyph.tsx → client/SiteGlyph.tsx} +0 -0
  824. /package/src/{StateDot.module.css → client/StateDot.module.css} +0 -0
  825. /package/src/{StateDot.tsx → client/StateDot.tsx} +0 -0
  826. /package/src/{SubmenuPanel.tsx → client/SubmenuPanel.tsx} +0 -0
  827. /package/src/{Switch.module.css → client/Switch.module.css} +0 -0
  828. /package/src/{Switch.tsx → client/Switch.tsx} +0 -0
  829. /package/src/{Tag.module.css → client/Tag.module.css} +0 -0
  830. /package/src/{Tag.tsx → client/Tag.tsx} +0 -0
  831. /package/src/{TerminalBlock.module.css → client/TerminalBlock.module.css} +0 -0
  832. /package/src/{TerminalBlock.tsx → client/TerminalBlock.tsx} +0 -0
  833. /package/src/{TextShimmer.module.css → client/TextShimmer.module.css} +0 -0
  834. /package/src/{Toast.module.css → client/Toast.module.css} +0 -0
  835. /package/src/{Toast.tsx → client/Toast.tsx} +0 -0
  836. /package/src/{Tooltip.module.css → client/Tooltip.module.css} +0 -0
  837. /package/src/{UserMessageBubble.module.css → client/UserMessageBubble.module.css} +0 -0
  838. /package/src/{UserMessageBubble.tsx → client/UserMessageBubble.tsx} +0 -0
  839. /package/src/{WebBlock.module.css → client/WebBlock.module.css} +0 -0
  840. /package/src/{WebBlock.tsx → client/WebBlock.tsx} +0 -0
  841. /package/src/{ZoomControls.module.css → client/ZoomControls.module.css} +0 -0
  842. /package/src/{ZoomControls.tsx → client/ZoomControls.tsx} +0 -0
  843. /package/src/{ansi.ts → client/ansi.ts} +0 -0
  844. /package/src/{clipboard.ts → client/clipboard.ts} +0 -0
  845. /package/src/{code-file-icon-artwork.manifest.json → client/code-file-icon-artwork.manifest.json} +0 -0
  846. /package/src/{code-file-icon-artwork.ts → client/code-file-icon-artwork.ts} +0 -0
  847. /package/src/{code-file-types.ts → client/code-file-types.ts} +0 -0
  848. /package/src/{code-highlighting.ts → client/code-highlighting.ts} +0 -0
  849. /package/src/{css-modules.d.ts → client/css-modules.d.ts} +0 -0
  850. /package/src/{darwin-desktop.ts → client/darwin-desktop.ts} +0 -0
  851. /package/src/{document-zoom.ts → client/document-zoom.ts} +0 -0
  852. /package/src/{file-drag-actions.ts → client/file-drag-actions.ts} +0 -0
  853. /package/src/{file-size.ts → client/file-size.ts} +0 -0
  854. /package/src/{focus.ts → client/focus.ts} +0 -0
  855. /package/src/{guide-artwork.tsx → client/guide-artwork.tsx} +0 -0
  856. /package/src/{head-tail-cap.ts → client/head-tail-cap.ts} +0 -0
  857. /package/src/{icons → client/icons}/props.ts +0 -0
  858. /package/src/{icons → client/icons}/shared-artwork.tsx +0 -0
  859. /package/src/{input-modality.ts → client/input-modality.ts} +0 -0
  860. /package/src/{keyboard-composition.ts → client/keyboard-composition.ts} +0 -0
  861. /package/src/{markdown → client/markdown}/CodeBlock.module.css +0 -0
  862. /package/src/{markdown → client/markdown}/CodeBlock.tsx +0 -0
  863. /package/src/{markdown → client/markdown}/FenceBlocks.tsx +0 -0
  864. /package/src/{markdown → client/markdown}/JsonBlock.module.css +0 -0
  865. /package/src/{markdown → client/markdown}/JsonBlock.tsx +0 -0
  866. /package/src/{markdown → client/markdown}/MarkdownDelegate.tsx +0 -0
  867. /package/src/{markdown → client/markdown}/MarkdownText.tsx +0 -0
  868. /package/src/{markdown → client/markdown}/cjkFriendlyStrong.ts +0 -0
  869. /package/src/{markdown → client/markdown}/copy-tex.ts +0 -0
  870. /package/src/{markdown → client/markdown}/diff-fence.ts +0 -0
  871. /package/src/{markdown → client/markdown}/file-link.ts +0 -0
  872. /package/src/{markdown → client/markdown}/highlight.ts +0 -0
  873. /package/src/{markdown → client/markdown}/incremental.ts +0 -0
  874. /package/src/{markdown → client/markdown}/katex.tsx +0 -0
  875. /package/src/{markdown → client/markdown}/local-image-syntax.ts +0 -0
  876. /package/src/{markdown → client/markdown}/mathCompatibility.ts +0 -0
  877. /package/src/{markdown → client/markdown}/parse.ts +0 -0
  878. /package/src/{markdown → client/markdown}/plain-text.ts +0 -0
  879. /package/src/{markdown → client/markdown}/quote-text.ts +0 -0
  880. /package/src/{markdown → client/markdown}/render.tsx +0 -0
  881. /package/src/{markdown → client/markdown}/windows-path-destinations.ts +0 -0
  882. /package/src/{menu-submenu-position.ts → client/menu-submenu-position.ts} +0 -0
  883. /package/src/{overlay-top-margin.ts → client/overlay-top-margin.ts} +0 -0
  884. /package/src/{pointer-grace.ts → client/pointer-grace.ts} +0 -0
  885. /package/src/{relative-time.ts → client/relative-time.ts} +0 -0
  886. /package/src/{settings-form → client/settings-form}/SettingsForm.module.css +0 -0
  887. /package/src/{settings-form → client/settings-form}/SettingsForm.tsx +0 -0
  888. /package/src/{settings-form → client/settings-form}/fields.module.css +0 -0
  889. /package/src/{settings-form → client/settings-form}/fields.tsx +0 -0
  890. /package/src/{settings-form → client/settings-form}/form-model.ts +0 -0
  891. /package/src/{tooltip-placement.ts → client/tooltip-placement.ts} +0 -0
  892. /package/src/{use-clipboard-copy.ts → client/use-clipboard-copy.ts} +0 -0
  893. /package/src/{useDismissOnOutsidePointer.ts → client/useDismissOnOutsidePointer.ts} +0 -0
  894. /package/src/{useModalLayer.ts → client/useModalLayer.ts} +0 -0
  895. /package/src/{useRowDragPreview.ts → client/useRowDragPreview.ts} +0 -0
  896. /package/src/{user-text.module.css → client/user-text.module.css} +0 -0
  897. /package/src/{user-text.tsx → client/user-text.tsx} +0 -0
@@ -1,54 +0,0 @@
1
- /** Shared menu material and the macOS backing that lets Chromium blur transparent windows. */
2
- import { forwardRef, useId, useLayoutEffect, useRef, type ComponentPropsWithoutRef, type CSSProperties } from 'react'
3
- import { createPortal } from 'react-dom'
4
- import clsx from 'clsx'
5
- import css from './MenuSurface.module.css'
6
-
7
- /** Context-menu transition durations in milliseconds, shared with its lifecycle owner. */
8
- export const MENU_TRANSITION_MS = Object.freeze({ enter: 40, dismiss: 80, replace: 10, prepare: 20 })
9
-
10
- /** Menu containers preserve native div props and refs. */
11
- export interface MenuSurfaceProps extends ComponentPropsWithoutRef<'div'> {
12
- /** Match the shared compact menu's smaller outer radius. */
13
- compact?: boolean
14
- /** Fade direct content, material, and native backing without isolating the material's backdrop. */
15
- phase?: 'enter' | 'dismiss' | 'replace' | undefined
16
- }
17
-
18
- /**
19
- * Paint a menu and, on macOS, an opaque backing behind the page content within its bounds.
20
- * CSS anchors keep each backing aligned during placement, resizing, and nested-menu movement.
21
- * @param props - Div content and placement, and compact geometry.
22
- * @param ref - The visible menu div, excluding the non-interactive backing.
23
- * @returns Menu content plus a backing portal removed with the menu.
24
- */
25
- export const MenuSurface = forwardRef<HTMLDivElement, MenuSurfaceProps>(function MenuSurface({
26
- compact = false, phase, className, style, children, ...props
27
- }, ref) {
28
- const id = useId()
29
- const backingRef = useRef<HTMLDivElement>(null)
30
- useLayoutEffect(() => {
31
- // Nested React portals can insert the backing before its anchor. CSS anchor
32
- // positioning requires the anchor to precede the positioned element.
33
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- The portal ref is attached before layout effects run.
34
- document.body.appendChild(backingRef.current!)
35
- }, [])
36
- const anchorStyle: CSSProperties & Record<`--dsh-menu-${string}`, string> = {
37
- '--dsh-menu-anchor': `--dsh-menu-${id.replaceAll(':', '')}`,
38
- '--dsh-menu-enter': `${MENU_TRANSITION_MS.enter}ms`,
39
- '--dsh-menu-dismiss': `${MENU_TRANSITION_MS.dismiss}ms`,
40
- '--dsh-menu-replace': `${MENU_TRANSITION_MS.replace}ms`,
41
- }
42
- return <>
43
- <div {...props} ref={ref} data-menu-material="translucent" data-menu-phase={phase}
44
- className={clsx(css.surface, compact && css.compact, className)} style={{ ...style, ...anchorStyle }}>
45
- <div aria-hidden="true" className={css.material} />
46
- {children}
47
- </div>
48
- {createPortal(
49
- <div ref={backingRef} aria-hidden="true" data-menu-backing="" data-menu-phase={phase} className={clsx(css.backing, compact && css.compact)}
50
- style={{ ...anchorStyle, visibility: style?.visibility }} />,
51
- document.body,
52
- )}
53
- </>
54
- })
@@ -1,133 +0,0 @@
1
- /** Shared compact presentation for draft and sent text quotes. */
2
-
3
- import { useLayoutEffect, useRef, useState } from 'react'
4
- import type { JSX, MouseEvent as ReactMouseEvent } from 'react'
5
- import { IconCloseOutlineRegular } from './icons/index.tsx'
6
- import { HoverCard } from './HoverCard.tsx'
7
- import css from './QuotePreview.module.css'
8
-
9
- function QuoteMarkIcon({ className }: { readonly className?: string | undefined }) {
10
- return (
11
- <svg width={16} height={16} className={className} viewBox="0 0 16 16" fill="none" aria-hidden>
12
- <g transform="translate(6.8 2.4)">
13
- <path d="M2.8125 0.583008L3.2002 1.16602C2.43912 1.6713 1.88491 2.41238 1.60547 3.25684H2.98926V6.70605H0V4.52148C1.96593e-05 2.70313 0.9109 1.00575 2.42578 0L2.8125 0.583008Z" fill="currentColor" />
14
- <path d="M7.50781 0.583008L7.89551 1.16602C7.13443 1.6713 6.58022 2.41238 6.30078 3.25684H7.68457V6.70605H4.69531V4.52148C4.69533 2.70313 5.60621 1.00575 7.12109 0L7.50781 0.583008Z" fill="currentColor" />
15
- </g>
16
- </svg>
17
- )
18
- }
19
-
20
- /** Optional whole-quote removal control supplied by an editable owner. */
21
- export interface QuotePreviewRemoval {
22
- /** Localized accessible name for the removal button. */
23
- readonly label: string
24
- /** Remove the complete owning quote node. */
25
- readonly onRemove: () => void
26
- }
27
-
28
- /** Owner-supplied readable form of a quote whose exact text is long structured content. */
29
- export interface QuoteSummary {
30
- /** Short inline label shown before `body` in place of the exact text; assistive technology reads `title` and `detail` instead. */
31
- readonly label: string
32
- /** First popover line, such as a file path; also the label's accessible text. */
33
- readonly title: string
34
- /** Secondary popover line, such as a line range. */
35
- readonly detail?: string | undefined
36
- /** Main text, such as a user's comment, shown inline after `label` and in full in the popover. */
37
- readonly body: string
38
- }
39
-
40
- /** Presentation inputs for one compact quote excerpt. */
41
- export interface QuotePreviewProps {
42
- /** Exact selected text rendered inline and exposed in a popover while clipped, unless `summary` replaces it. */
43
- readonly text: string
44
- /** Readable replacement for `text`: its label renders inline and its popover opens on every hover. */
45
- readonly summary?: QuoteSummary | undefined
46
- /** Composer-only removal action; omit for inert sent quotes. */
47
- readonly removal?: QuotePreviewRemoval | undefined
48
- }
49
-
50
- /**
51
- * Render one width-capped quote preview shared by editable drafts and sent messages.
52
- * Clipped excerpts open a content-sized, scrollable popover that fits within the viewport.
53
- * @param props - selected text, optional summary, and optional localized removal action.
54
- * @returns a non-navigating quote preview with a full-text popover only while clipped, or a summary popover.
55
- */
56
- export function QuotePreview({ text, summary, removal }: QuotePreviewProps): JSX.Element {
57
- const sourceRef = useRef<HTMLSpanElement | null>(null)
58
- const [truncated, setTruncated] = useState(false)
59
- useLayoutEffect(() => {
60
- const source = sourceRef.current
61
- /* v8 ignore next -- the ref is attached before layout effects run. */
62
- if (source === null) return
63
- const measure = () => {
64
- const clipped = source.scrollWidth > source.clientWidth
65
- setTruncated(clipped)
66
- }
67
- measure()
68
- if (typeof ResizeObserver === 'undefined') return
69
- const observer = new ResizeObserver(measure)
70
- observer.observe(source)
71
- return () => { observer.disconnect() }
72
- }, [text])
73
- const remove = (event: ReactMouseEvent<HTMLButtonElement>): void => {
74
- event.preventDefault()
75
- event.stopPropagation()
76
- removal?.onRemove()
77
- }
78
- const preview = (
79
- <span
80
- className={css.quote}
81
- data-quote-preview=""
82
- data-removable={removal === undefined ? undefined : ''}
83
- >
84
- {removal === undefined
85
- ? (
86
- <span className={css.marker} aria-hidden>
87
- <QuoteMarkIcon className={css.quoteMark} />
88
- </span>
89
- )
90
- : (
91
- <button
92
- type="button"
93
- className={css.remove}
94
- aria-label={removal.label}
95
- onPointerDown={(event) => { event.preventDefault(); event.stopPropagation() }}
96
- onKeyDown={(event) => { event.stopPropagation() }}
97
- onClick={remove}
98
- >
99
- <QuoteMarkIcon className={css.quoteMark} />
100
- <IconCloseOutlineRegular size={12} className={css.closeMark} />
101
- </button>
102
- )}
103
- <span ref={sourceRef} className={css.source} data-quote-preview-text="">
104
- {summary === undefined ? text : (
105
- <>
106
- <span aria-hidden="true">{summary.label}</span>
107
- <span className={css.visuallyHidden}>{summary.detail === undefined ? summary.title : `${summary.title} ${summary.detail}`}</span>
108
- {' '}<span className={css.inlineBody}>{summary.body}</span>
109
- </>
110
- )}
111
- </span>
112
- </span>
113
- )
114
- return (
115
- <HoverCard
116
- inline
117
- grouped
118
- fitContent
119
- openDelayMs={0}
120
- disabled={summary === undefined && !truncated}
121
- anchor={preview}
122
- content={summary === undefined
123
- ? <span className={css.popoverText} data-quote-popover="" aria-hidden="true">{text}</span>
124
- : (
125
- <span className={css.summary} data-quote-popover="" aria-hidden="true">
126
- <span className={css.summaryTitle}>{summary.title}</span>
127
- {summary.detail !== undefined && <span className={css.summaryDetail}>{summary.detail}</span>}
128
- <span className={css.summaryBody}>{summary.body}</span>
129
- </span>
130
- )}
131
- />
132
- )
133
- }
@@ -1,52 +0,0 @@
1
- .confirmation {
2
- width: min(440px, 100%);
3
- max-height: 100%;
4
- overflow: hidden;
5
- }
6
-
7
- .confirmationContent {
8
- min-height: 0;
9
- overflow-y: auto;
10
- overscroll-behavior: contain;
11
- }
12
-
13
- @supports (height: 100dvh) {
14
- .confirmation {
15
- max-height: calc(100dvh - 48px);
16
- }
17
- }
18
-
19
- .description {
20
- margin: 0;
21
- color: var(--dsw-alias-label-secondary);
22
- font-size: 14px;
23
- line-height: 22px;
24
- }
25
-
26
- .confirmation .acknowledgement {
27
- align-items: flex-start;
28
- gap: 6px;
29
- margin-top: 16px;
30
- color: var(--dsw-alias-label-secondary);
31
- font-size: 14px;
32
- font-weight: 400;
33
- line-height: 20px;
34
- }
35
-
36
- .confirmation .acknowledgement > :first-child {
37
- margin-top: 3px;
38
- }
39
-
40
- .confirmation .acknowledgement input {
41
- width: 14px;
42
- height: 14px;
43
- margin: 0;
44
- }
45
-
46
- .modalAction {
47
- min-width: 72px;
48
- }
49
-
50
- .confirmAction {
51
- min-width: 136px;
52
- }
@@ -1,58 +0,0 @@
1
- /** Text activity animation shared by a row and its nested text fragments. */
2
- import { createContext, memo, useContext, type ReactNode } from 'react'
3
- import clsx from 'clsx'
4
- import css from './TextShimmer.module.css'
5
-
6
- const DecorativeCopy = createContext<boolean | undefined>(undefined)
7
-
8
- /** Text and activity supplied by the owning row. */
9
- export interface TextShimmerProps {
10
- /** Text or presentational children with text in nested TextShimmer instances. No effects or element ids. */
11
- children: ReactNode
12
- /** Whether to animate; nested instances share the containing row's activity. */
13
- active?: boolean | undefined
14
- className?: string | undefined
15
- /** Layout class applied equally to the base and decorative content. */
16
- contentClassName?: string | undefined
17
- }
18
-
19
- function TextContent({ children, className }: Pick<TextShimmerProps, 'children' | 'className'>) {
20
- const decorative = useContext(DecorativeCopy)
21
- const generated = decorative === true && typeof children === 'string'
22
- return (
23
- <span className={clsx(css.text, className)} data-shimmer-text={generated ? children : undefined}>
24
- {generated ? null : children}
25
- </span>
26
- )
27
- }
28
-
29
- /**
30
- * Render text with one shared highlight while retaining selectable, accessible content.
31
- * Nested instances inherit the outer animation. Keep icons outside; mark decorative
32
- * separators with data-shimmer-decoration so their background follows the highlight.
33
- * Active children also render in an inert, clipped decoration; supply only presentation.
34
- * @param props - localized text, running state, and owner styling.
35
- * @returns retained text and its optional decorative highlight.
36
- */
37
- export const TextShimmer = memo(function TextShimmer({ children, active = false, className, contentClassName }: TextShimmerProps) {
38
- const decorative = useContext(DecorativeCopy)
39
- if (decorative !== undefined) return <TextContent className={className}>{children}</TextContent>
40
- const content = typeof children === 'string' ? <TextContent>{children}</TextContent> : children
41
- return (
42
- <span className={clsx(css.root, className)} data-shimmer={active || undefined}>
43
- <DecorativeCopy.Provider value={false}>
44
- <span className={clsx(css.content, contentClassName)}>{content}</span>
45
- </DecorativeCopy.Provider>
46
- {active && (
47
- // React 18 forwards inert as an empty string; a boolean is dropped.
48
- <span className={css.decoration} aria-hidden="true" {...{ inert: '' }}>
49
- <span className={css.sweep}>
50
- <DecorativeCopy.Provider value>
51
- <span className={clsx(css.content, css.highlight, contentClassName)}>{content}</span>
52
- </DecorativeCopy.Provider>
53
- </span>
54
- </span>
55
- )}
56
- </span>
57
- )
58
- })
package/src/Tooltip.tsx DELETED
@@ -1,273 +0,0 @@
1
- /** Anchor-preserving tooltips; an optional body portal escapes clipping containers and stacking contexts that cap the bubble's z-index. */
2
-
3
- import { cloneElement, createContext, useCallback, useContext, useEffect, useId, useRef, useState } from 'react'
4
- import type { FocusEventHandler, MouseEventHandler, MutableRefObject, PointerEventHandler, ReactElement, Ref } from 'react'
5
- import { createPortal } from 'react-dom'
6
- import { ShortcutKeys } from './ShortcutKeys.tsx'
7
- import { placeTooltip, type TooltipSide } from './tooltip-placement.ts'
8
- import { useDismissOnOutsidePointer } from './useDismissOnOutsidePointer.ts'
9
- import css from './Tooltip.module.css'
10
- // Tooltips take the wide answer — any key returns to the keyboard. Focus rings read the
11
- // narrower `data-input-modality` attribute the same module publishes.
12
- import { pointerModality } from './input-modality.ts'
13
-
14
- export type { TooltipSide } from './tooltip-placement.ts'
15
-
16
- /**
17
- * Suppression channel for nested tooltips: a visible descendant tooltip
18
- * withdraws the enclosing tooltip while its bubble is shown.
19
- */
20
- export const TooltipSuppression = createContext<((suppressed: boolean) => void) | null>(null)
21
-
22
- /** Props Tooltip injects into its anchor child; the child's own handlers are chained ahead of the tooltip's. */
23
- interface AnchorProps {
24
- 'aria-describedby'?: string | undefined
25
- ref?: Ref<HTMLElement> | undefined
26
- onPointerEnter?: PointerEventHandler | undefined
27
- onPointerLeave?: PointerEventHandler | undefined
28
- onPointerDown?: PointerEventHandler | undefined
29
- onClick?: MouseEventHandler | undefined
30
- onFocus?: FocusEventHandler | undefined
31
- onBlur?: FocusEventHandler | undefined
32
- }
33
-
34
- type TooltipLabel = string | (() => string)
35
-
36
- function clipped(anchor: HTMLElement): boolean {
37
- return [anchor, ...anchor.querySelectorAll<HTMLElement>('*')]
38
- .some(el => el instanceof HTMLElement && el.scrollWidth > el.clientWidth)
39
- }
40
-
41
- /**
42
- * Attach a hover/focus tooltip to an anchor element.
43
- * @param props.label - bubble text, or a resolver evaluated only while visible; an empty string shows only shortcut keys.
44
- * @param props.shortcutKeys - effective key labels rendered as platform-formatted keycaps after optional text.
45
- * @param props.side - preferred placement (default 'right'); fitting tries the opposite then perpendicular sides.
46
- * @param props.align - horizontal anchor-edge alignment for 'bottom'/'top' bubbles: 'end' pins
47
- * the bubble's right edge to the anchor's (for anchors beside other hover surfaces the centered
48
- * bubble would overlap); default 'center'. Horizontal placements ignore it.
49
- * @param props.portal - render the bubble under document.body, so an ancestor's clipping or its
50
- * stacking context (which confines the bubble's z-index to that context) cannot hide it.
51
- * @param props.delayMs - hover delay in milliseconds (default 0).
52
- * @param props.focusDelayMs - keyboard focus delay in milliseconds (default 0); blur, click,
53
- * mouse leave, disabling, and unmount cancel a pending show.
54
- * @param props.gap - anchor-to-bubble distance in pixels for 'bottom'/'top' bubbles (default 8);
55
- * horizontal placements use 10px, including after a flip.
56
- * @param props.disabled - suppress the bubble while true; the anchor renders identically so
57
- * toggling never remounts it (which would cut its CSS transitions).
58
- * @param props.maxWidth - bubble width cap in pixels, for labels long enough that the default
59
- * half-viewport cap would render a slab wider than the surface the anchor sits on; always bounded by viewport margins.
60
- * @param props.openOnClick - clicking or tapping also pins the bubble for reading; another click, Escape,
61
- * Tab, or an outside pointerdown dismisses it. Defaults to false for ordinary action tooltips.
62
- * @param props.onlyWhenClipped - show the bubble only when the anchor or an HTML element inside it
63
- * overflows horizontally, measured when the bubble is about to show; for labels that repeat
64
- * text an ellipsis may cut off. Defaults to false.
65
- * @param props.children - a single anchor element; its own ref (callback or object) is forwarded alongside the tooltip's.
66
- * @returns the cloned anchor plus a fixed-position bubble, optionally portaled to the body.
67
- * The bubble stays hidden until ResizeObserver supplies its size for viewport fitting; clicking the
68
- * anchor dismisses the bubble unless openOnClick is enabled, and focus arriving after a pointer
69
- * interaction (a closing menu refocusing its trigger) never raises it. Touch cannot trigger hover
70
- * tooltips; tapping still invokes the child's action and can open an openOnClick explanation.
71
- * When no side fits, the viewport-bounded fallback may overlap the anchor; oversized content is scrollable when pinned.
72
- */
73
- export function Tooltip({ label, shortcutKeys, side = 'right', align = 'center', delayMs = 0, focusDelayMs = 0, gap = 8, disabled = false, portal = false, maxWidth, openOnClick = false, onlyWhenClipped = false, children }: { label: TooltipLabel; shortcutKeys?: readonly string[] | undefined; side?: TooltipSide; align?: 'center' | 'end'; delayMs?: number; focusDelayMs?: number; gap?: number; disabled?: boolean; portal?: boolean; maxWidth?: number; openOnClick?: boolean; onlyWhenClipped?: boolean; children: ReactElement<AnchorProps> }) {
74
- const id = useId()
75
- const [pinned, setPinned] = useState(false)
76
- const anchor = useRef<HTMLElement | null>(null)
77
- // React 18 keeps the element's ref outside props; forward it so wrapping an
78
- // anchor in Tooltip never silently severs the owner's ref.
79
- const childRef = (children as ReactElement<AnchorProps> & { ref?: Ref<HTMLElement> }).ref
80
- const mergedRef = useCallback((el: HTMLElement | null) => {
81
- anchor.current = el
82
- if (typeof childRef === 'function') childRef(el)
83
- else if (childRef != null) (childRef as MutableRefObject<HTMLElement | null>).current = el
84
- }, [childRef])
85
- const [pos, setPos] = useState<DOMRect | null>(null)
86
- const bubble = useRef<HTMLSpanElement | null>(null)
87
- const resolvedLabel = pos === null
88
- ? null
89
- : typeof label === 'function' ? label() : label
90
- const showTimer = useRef<ReturnType<typeof setTimeout> | null>(null)
91
- // Hover and focus are independent triggers: the bubble hides only after
92
- // BOTH clear (hovering away from a focused anchor must not drop it).
93
- const triggers = useRef({ hover: false, focus: false })
94
-
95
- // A nested tooltip's bubble owns the pointer position, so this tooltip
96
- // withdraws its own while a descendant shows one; the state below is set by
97
- // the descendants this tooltip wraps. Announcing on every visibility change
98
- // covers hide, disable, and unmount; show() also announces synchronously so
99
- // a nested pair shown in one commit never paints both bubbles.
100
- const suppressAncestors = useContext(TooltipSuppression)
101
- const [suppressed, setSuppressed] = useState(false)
102
- const announce = useCallback((active: boolean) => { suppressAncestors?.(active) }, [suppressAncestors])
103
- const visible = pos !== null && !disabled
104
- // ResizeObserver supplies the laid-out border box; fitting never reads
105
- // geometry after a position write or needs a React commit to flip sides.
106
- useEffect(() => {
107
- const el = bubble.current
108
- if (pos === null || !visible || suppressed || el === null) return
109
- let size: ResizeObserverSize | undefined
110
- let anchorRect = pos
111
- const fit = () => {
112
- if (size === undefined) return
113
- const placement = placeTooltip({
114
- anchor: anchorRect, width: size.inlineSize, height: size.blockSize,
115
- viewportWidth: window.innerWidth, viewportHeight: window.innerHeight, side, align, gap,
116
- })
117
- const horizontal = placement.side === 'right' || placement.side === 'left'
118
- const offsetX = horizontal ? 0 : align === 'end' ? placement.width : placement.width / 2
119
- const offsetY = horizontal ? placement.height / 2 : placement.side === 'top' ? placement.height : 0
120
- el.style.left = `${placement.left + offsetX}px`
121
- el.style.top = `${placement.top + offsetY}px`
122
- el.dataset.side = placement.side
123
- el.style.visibility = 'visible'
124
- }
125
- const onResize = () => {
126
- if (anchor.current !== null) anchorRect = anchor.current.getBoundingClientRect()
127
- fit()
128
- }
129
- const observer = new ResizeObserver((entries) => {
130
- size = entries[0]?.borderBoxSize[0]
131
- fit()
132
- })
133
- observer.observe(el, { box: 'border-box' })
134
- window.addEventListener('resize', onResize)
135
- return () => {
136
- observer.disconnect()
137
- window.removeEventListener('resize', onResize)
138
- }
139
- }, [align, gap, pos, side, suppressed, visible])
140
- useEffect(() => {
141
- announce(visible)
142
- return () => { announce(false) }
143
- }, [announce, visible])
144
-
145
- // Disabling mid-hover (e.g. clicking a rail control expands the sidebar)
146
- // must drop an already-visible bubble: no mouseleave fires.
147
- const cancelShow = useCallback(() => {
148
- if (showTimer.current === null) return
149
- clearTimeout(showTimer.current)
150
- showTimer.current = null
151
- }, [])
152
- useEffect(() => {
153
- if (pinned && (disabled || !openOnClick)) setPinned(false)
154
- if (disabled) {
155
- cancelShow()
156
- triggers.current = { hover: false, focus: false }
157
- setPos(null)
158
- }
159
- return cancelShow
160
- }, [cancelShow, disabled, openOnClick, pinned])
161
-
162
- const show = () => {
163
- if (disabled) return
164
- const el = anchor.current
165
- /* v8 ignore next -- the ref is attached by event time: events fire on the cloned anchor. */
166
- if (el === null) return
167
- if (onlyWhenClipped && !clipped(el)) return
168
- setPos(el.getBoundingClientRect())
169
- announce(true)
170
- }
171
- const showAfterDelay = (delay: number) => {
172
- cancelShow()
173
- if (delay <= 0) {
174
- show()
175
- return
176
- }
177
- showTimer.current = setTimeout(() => {
178
- showTimer.current = null
179
- show()
180
- }, delay)
181
- }
182
- const withdraw = useCallback(() => {
183
- setPinned(false)
184
- setPos(null)
185
- announce(false)
186
- }, [announce])
187
- const hide = () => {
188
- cancelShow()
189
- if (!triggers.current.hover && !triggers.current.focus && !pinned) withdraw()
190
- }
191
- const dismiss = useCallback(() => {
192
- cancelShow()
193
- triggers.current = { hover: false, focus: false }
194
- withdraw()
195
- }, [cancelShow, withdraw])
196
- useDismissOnOutsidePointer(anchor, openOnClick && visible, dismiss, bubble)
197
- useEffect(() => {
198
- if (!openOnClick || !visible) return
199
- const onKeyDown = (event: KeyboardEvent) => {
200
- if (event.key !== 'Escape' && event.key !== 'Tab') return
201
- if (event.key === 'Escape') { event.preventDefault(); event.stopPropagation() }
202
- dismiss()
203
- }
204
- document.addEventListener('keydown', onKeyDown, true)
205
- return () => { document.removeEventListener('keydown', onKeyDown, true) }
206
- }, [dismiss, openOnClick, visible])
207
-
208
- const content = visible && !suppressed && (
209
- <span
210
- ref={bubble}
211
- id={openOnClick ? id : undefined}
212
- className={css.bubble}
213
- data-side={side}
214
- data-portal={portal || undefined}
215
- data-pinned={pinned || undefined}
216
- data-align={align}
217
- data-has-shortcut={shortcutKeys?.length ? true : undefined}
218
- style={{ left: pos.left, top: pos.top, visibility: 'hidden', ...maxWidth === undefined ? {} : { maxWidth: `min(${maxWidth}px, calc(100vw - 24px))` } }}
219
- role="tooltip"
220
- aria-label={shortcutKeys?.length ? [resolvedLabel, shortcutKeys.join(' ')].filter(Boolean).join(' ') : undefined}
221
- >
222
- {resolvedLabel && <span className={css.label}>{resolvedLabel}</span>}
223
- {shortcutKeys !== undefined && shortcutKeys.length > 0 && <ShortcutKeys keys={shortcutKeys} variant="tooltip" />}
224
- </span>
225
- )
226
-
227
- return (
228
- <TooltipSuppression.Provider value={setSuppressed}>
229
- {cloneElement(children, {
230
- ref: mergedRef,
231
- 'aria-describedby': openOnClick && visible
232
- ? [children.props['aria-describedby'], id].filter(Boolean).join(' ')
233
- : children.props['aria-describedby'],
234
- onPointerEnter: (e) => {
235
- children.props.onPointerEnter?.(e)
236
- if (e.pointerType === 'touch') return
237
- // iOS can emit mouse entry when a tapped control replaces its icon.
238
- if (e.pointerType === 'mouse' && !window.matchMedia('(any-hover: hover)').matches) return
239
- triggers.current.hover = true
240
- showAfterDelay(delayMs)
241
- },
242
- onPointerLeave: (e) => {
243
- children.props.onPointerLeave?.(e)
244
- triggers.current.hover = false
245
- cancelShow()
246
- if (!pinned) withdraw()
247
- },
248
- onPointerDown: (e) => {
249
- children.props.onPointerDown?.(e)
250
- if (e.pointerType === 'touch' && !pinned) dismiss()
251
- },
252
- // Activating an ordinary action dismisses the bubble: it often changes
253
- // what the anchor now does (pin → unpin), and the click leaves the
254
- // anchor focused, which would otherwise pin the relabelled bubble up.
255
- onClick: (e) => {
256
- children.props.onClick?.(e)
257
- triggers.current.focus = false
258
- cancelShow()
259
- if (openOnClick && !disabled && !pinned) { setPinned(true); show() }
260
- else withdraw()
261
- },
262
- onFocus: (e) => {
263
- children.props.onFocus?.(e)
264
- if (pointerModality()) return
265
- triggers.current.focus = true
266
- showAfterDelay(focusDelayMs)
267
- },
268
- onBlur: (e) => { children.props.onBlur?.(e); triggers.current.focus = false; hide() },
269
- })}
270
- {portal ? (content !== false && createPortal(content, document.body)) : content}
271
- </TooltipSuppression.Provider>
272
- )
273
- }