@deepseek-ai/dsh-client-ui-primitives 0.2.3-alpha.2 → 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.
- package/README.i18n.yaml +14 -14
- package/README.md +20 -19
- package/README.zh.md +20 -19
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_AMS-Regular-34494743736f.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_Caligraphic-Bold-5bfa49cac46c.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_Caligraphic-Regular-9f8077e0b38a.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_Fraktur-Bold-f98f89272eca.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_Fraktur-Regular-a5764c6e2784.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_Main-Bold-31050a1b1b12.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_Main-BoldItalic-a4a4905b8b12.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_Main-Italic-c9b2b5ffd2f2.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_Main-Regular-c884086c25ce.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_Math-BoldItalic-8fcb9d2de65a.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_Math-Italic-db4883d0cff9.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_SansSerif-Bold-886e61797a52.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_SansSerif-Italic-3d5fa3cb309f.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_SansSerif-Regular-e45d5f4f4a7f.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_Script-Regular-63b80959f1fc.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_Size1-Regular-57fa599974a1.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_Size2-Regular-ee18713634a3.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_Size3-Regular-19a7caadfb66.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_Size4-Regular-9bed17fb92f2.woff2 +0 -0
- package/lib/assets/vendor/katex/dist/fonts/KaTeX_Typewriter-Regular-7a08883fffc6.woff2 +0 -0
- package/lib/client.asciidoc.js +3 -0
- package/lib/client.asciidoc.js.map +1 -0
- package/lib/client.bat.js +3 -0
- package/lib/client.bat.js.map +1 -0
- package/lib/client.bibtex.js +3 -0
- package/lib/client.bibtex.js.map +1 -0
- package/lib/client.c.js +3 -0
- package/lib/client.c.js.map +1 -0
- package/lib/client.clojure.js +3 -0
- package/lib/client.clojure.js.map +1 -0
- package/lib/client.cmake.js +3 -0
- package/lib/client.cmake.js.map +1 -0
- package/lib/client.cpp.js +3 -0
- package/lib/client.cpp.js.map +1 -0
- package/lib/client.csharp.js +3 -0
- package/lib/client.csharp.js.map +1 -0
- package/lib/client.css.js +3 -0
- package/lib/client.css.js.map +1 -0
- package/lib/client.csv.js +3 -0
- package/lib/client.csv.js.map +1 -0
- package/lib/client.dart.js +3 -0
- package/lib/client.dart.js.map +1 -0
- package/lib/client.diff.js +3 -0
- package/lib/client.diff.js.map +1 -0
- package/lib/client.dotenv.js +3 -0
- package/lib/client.dotenv.js.map +1 -0
- package/lib/client.elixir.js +3 -0
- package/lib/client.elixir.js.map +1 -0
- package/lib/client.erlang.js +3 -0
- package/lib/client.erlang.js.map +1 -0
- package/lib/client.fish.js +3 -0
- package/lib/client.fish.js.map +1 -0
- package/lib/client.fsharp.js +3 -0
- package/lib/client.fsharp.js.map +1 -0
- package/lib/client.go.js +3 -0
- package/lib/client.go.js.map +1 -0
- package/lib/client.graphql.js +3 -0
- package/lib/client.graphql.js.map +1 -0
- package/lib/client.groovy.js +3 -0
- package/lib/client.groovy.js.map +1 -0
- package/lib/client.haskell.js +3 -0
- package/lib/client.haskell.js.map +1 -0
- package/lib/client.hcl.js +3 -0
- package/lib/client.hcl.js.map +1 -0
- package/lib/client.html-derivative.js +3 -0
- package/lib/client.html-derivative.js.map +1 -0
- package/lib/client.html.js +3 -0
- package/lib/client.html.js.map +1 -0
- package/lib/client.http.js +3 -0
- package/lib/client.http.js.map +1 -0
- package/lib/client.ini.js +3 -0
- package/lib/client.ini.js.map +1 -0
- package/lib/client.java.js +3 -0
- package/lib/client.java.js.map +1 -0
- package/lib/client.javascript.js +3 -0
- package/lib/client.javascript.js.map +1 -0
- package/lib/client.js +489 -0
- package/lib/client.js.map +1 -0
- package/lib/client.julia.js +3 -0
- package/lib/client.julia.js.map +1 -0
- package/lib/client.kotlin.js +3 -0
- package/lib/client.kotlin.js.map +1 -0
- package/lib/client.latex.js +3 -0
- package/lib/client.latex.js.map +1 -0
- package/lib/client.less.js +3 -0
- package/lib/client.less.js.map +1 -0
- package/lib/client.log.js +3 -0
- package/lib/client.log.js.map +1 -0
- package/lib/client.lua.js +3 -0
- package/lib/client.lua.js.map +1 -0
- package/lib/client.make.js +3 -0
- package/lib/client.make.js.map +1 -0
- package/lib/client.markdown.js +3 -0
- package/lib/client.markdown.js.map +1 -0
- package/lib/client.mdx.js +3 -0
- package/lib/client.mdx.js.map +1 -0
- package/lib/client.nix.js +3 -0
- package/lib/client.nix.js.map +1 -0
- package/lib/client.perl.js +3 -0
- package/lib/client.perl.js.map +1 -0
- package/lib/client.php.js +3 -0
- package/lib/client.php.js.map +1 -0
- package/lib/client.powershell.js +3 -0
- package/lib/client.powershell.js.map +1 -0
- package/lib/client.proto.js +3 -0
- package/lib/client.proto.js.map +1 -0
- package/lib/client.python.js +3 -0
- package/lib/client.python.js.map +1 -0
- package/lib/client.r.js +3 -0
- package/lib/client.r.js.map +1 -0
- package/lib/client.rst.js +3 -0
- package/lib/client.rst.js.map +1 -0
- package/lib/client.ruby.js +3 -0
- package/lib/client.ruby.js.map +1 -0
- package/lib/client.rust.js +3 -0
- package/lib/client.rust.js.map +1 -0
- package/lib/client.scala.js +3 -0
- package/lib/client.scala.js.map +1 -0
- package/lib/client.scss.js +3 -0
- package/lib/client.scss.js.map +1 -0
- package/lib/client.sql.js +3 -0
- package/lib/client.sql.js.map +1 -0
- package/lib/client.svelte.js +3 -0
- package/lib/client.svelte.js.map +1 -0
- package/lib/client.swift.js +3 -0
- package/lib/client.swift.js.map +1 -0
- package/lib/client.system-verilog.js +3 -0
- package/lib/client.system-verilog.js.map +1 -0
- package/lib/client.toml.js +3 -0
- package/lib/client.toml.js.map +1 -0
- package/lib/client.vb.js +3 -0
- package/lib/client.vb.js.map +1 -0
- package/lib/client.verilog.js +3 -0
- package/lib/client.verilog.js.map +1 -0
- package/lib/client.vue.js +3 -0
- package/lib/client.vue.js.map +1 -0
- package/lib/client.xml.js +3 -0
- package/lib/client.xml.js.map +1 -0
- package/lib/client.yaml.js +3 -0
- package/lib/client.yaml.js.map +1 -0
- package/lib/index.js +10 -14594
- package/lib/types/client/AnimatedRows.d.ts.map +1 -0
- package/lib/types/client/AnimatedRows.js.map +1 -0
- package/lib/types/client/BrandWordmark.d.ts.map +1 -0
- package/lib/types/client/BrandWordmark.js.map +1 -0
- package/lib/types/client/Button.d.ts.map +1 -0
- package/lib/types/client/Button.js.map +1 -0
- package/lib/types/client/Checkbox.d.ts.map +1 -0
- package/lib/types/client/Checkbox.js.map +1 -0
- package/lib/types/client/CodeFileIcon.d.ts.map +1 -0
- package/lib/types/client/CodeFileIcon.js.map +1 -0
- package/lib/types/client/CodeToolbar.d.ts.map +1 -0
- package/lib/types/client/CodeToolbar.js.map +1 -0
- package/lib/types/client/CommandText.d.ts.map +1 -0
- package/lib/types/client/CommandText.js.map +1 -0
- package/lib/types/client/ConfigField.d.ts.map +1 -0
- package/lib/types/client/ConfigField.js.map +1 -0
- package/lib/types/client/ConnectionIndicator.d.ts.map +1 -0
- package/lib/types/client/ConnectionIndicator.js.map +1 -0
- package/lib/types/client/DetailDocument.d.ts.map +1 -0
- package/lib/types/client/DetailDocument.js.map +1 -0
- package/lib/types/client/DiffBlock.d.ts.map +1 -0
- package/lib/types/client/DiffBlock.js.map +1 -0
- package/lib/types/client/DisclosureRow.d.ts.map +1 -0
- package/lib/types/client/DisclosureRow.js.map +1 -0
- package/lib/types/client/DraggableImage.d.ts.map +1 -0
- package/lib/types/client/DraggableImage.js.map +1 -0
- package/lib/types/client/FileTypeIcon.d.ts.map +1 -0
- package/lib/types/client/FileTypeIcon.js.map +1 -0
- package/lib/types/client/FishLogo.d.ts.map +1 -0
- package/lib/types/client/FishLogo.js.map +1 -0
- package/lib/types/client/FoldToggle.d.ts.map +1 -0
- package/lib/types/client/FoldToggle.js.map +1 -0
- package/lib/types/client/HoverCard.d.ts.map +1 -0
- package/lib/types/client/HoverCard.js.map +1 -0
- package/lib/types/client/HoverCardGroup.d.ts.map +1 -0
- package/lib/types/client/HoverCardGroup.js.map +1 -0
- package/lib/types/client/ImageLightbox.d.ts.map +1 -0
- package/lib/types/client/ImageLightbox.js.map +1 -0
- package/lib/types/client/ImagePreview.d.ts.map +1 -0
- package/lib/types/client/ImagePreview.js.map +1 -0
- package/lib/types/client/InlineEditor.d.ts.map +1 -0
- package/lib/types/client/InlineEditor.js.map +1 -0
- package/lib/types/client/Input.d.ts.map +1 -0
- package/lib/types/client/Input.js.map +1 -0
- package/lib/types/client/InspectButton.d.ts +18 -0
- package/lib/types/client/InspectButton.d.ts.map +1 -0
- package/lib/types/client/InspectButton.js.map +1 -0
- package/lib/types/client/JsonTree.d.ts.map +1 -0
- package/lib/types/client/JsonTree.js.map +1 -0
- package/lib/types/client/LinkIcon.d.ts.map +1 -0
- package/lib/types/client/LinkIcon.js.map +1 -0
- package/lib/types/client/Marquee.d.ts.map +1 -0
- package/lib/types/client/Marquee.js.map +1 -0
- package/lib/types/client/Menu.d.ts.map +1 -0
- package/lib/types/client/Menu.js.map +1 -0
- package/lib/types/client/MenuGroup.d.ts.map +1 -0
- package/lib/types/client/MenuGroup.js.map +1 -0
- package/lib/types/client/MenuRow.d.ts.map +1 -0
- package/lib/types/client/MenuRow.js.map +1 -0
- package/lib/types/client/MenuSurface.d.ts.map +1 -0
- package/lib/types/client/MenuSurface.js.map +1 -0
- package/lib/types/client/Modal.d.ts.map +1 -0
- package/lib/types/client/Modal.js.map +1 -0
- package/lib/types/client/PathLabel.d.ts.map +1 -0
- package/lib/types/client/PathLabel.js.map +1 -0
- package/lib/types/client/PermissionIcon.d.ts.map +1 -0
- package/lib/types/client/PermissionIcon.js.map +1 -0
- package/lib/types/client/Pill.d.ts.map +1 -0
- package/lib/types/client/Pill.js.map +1 -0
- package/lib/types/client/QuotePreview.d.ts +38 -0
- package/lib/types/client/QuotePreview.d.ts.map +1 -0
- package/lib/types/client/QuotePreview.js.map +1 -0
- package/lib/types/client/ReadBlock.d.ts.map +1 -0
- package/lib/types/client/ReadBlock.js.map +1 -0
- package/lib/types/client/ReferenceIcon.d.ts.map +1 -0
- package/lib/types/client/ReferenceIcon.js.map +1 -0
- package/lib/types/client/RiskConfirmation.d.ts.map +1 -0
- package/lib/types/client/RiskConfirmation.js.map +1 -0
- package/lib/types/client/SearchBlock.d.ts.map +1 -0
- package/lib/types/client/SearchBlock.js.map +1 -0
- package/lib/types/client/SearchField.d.ts.map +1 -0
- package/lib/types/client/SearchField.js.map +1 -0
- package/lib/types/client/SegmentedControl.d.ts.map +1 -0
- package/lib/types/client/SegmentedControl.js.map +1 -0
- package/lib/types/client/SegmentedTabs.d.ts.map +1 -0
- package/lib/types/client/SegmentedTabs.js.map +1 -0
- package/lib/types/client/ShortcutKeys.d.ts.map +1 -0
- package/lib/types/client/ShortcutKeys.js.map +1 -0
- package/lib/types/client/SiteGlyph.d.ts.map +1 -0
- package/lib/types/client/SiteGlyph.js.map +1 -0
- package/lib/types/client/StateDot.d.ts.map +1 -0
- package/lib/types/client/StateDot.js.map +1 -0
- package/lib/types/client/SubmenuPanel.d.ts.map +1 -0
- package/lib/types/client/SubmenuPanel.js.map +1 -0
- package/lib/types/client/Switch.d.ts.map +1 -0
- package/lib/types/client/Switch.js.map +1 -0
- package/lib/types/client/Tag.d.ts.map +1 -0
- package/lib/types/client/Tag.js.map +1 -0
- package/lib/types/client/TerminalBlock.d.ts.map +1 -0
- package/lib/types/client/TerminalBlock.js.map +1 -0
- package/lib/types/client/TextShimmer.d.ts.map +1 -0
- package/lib/types/client/TextShimmer.js.map +1 -0
- package/lib/types/client/Toast.d.ts.map +1 -0
- package/lib/types/client/Toast.js.map +1 -0
- package/lib/types/client/Tooltip.d.ts.map +1 -0
- package/lib/types/client/Tooltip.js.map +1 -0
- package/lib/types/client/UserMessageBubble.d.ts.map +1 -0
- package/lib/types/client/UserMessageBubble.js.map +1 -0
- package/lib/types/client/WebBlock.d.ts.map +1 -0
- package/lib/types/client/WebBlock.js.map +1 -0
- package/lib/types/client/ZoomControls.d.ts.map +1 -0
- package/lib/types/client/ZoomControls.js.map +1 -0
- package/lib/types/client/ansi.d.ts.map +1 -0
- package/lib/types/client/ansi.js.map +1 -0
- package/lib/types/client/clipboard.d.ts.map +1 -0
- package/lib/types/client/clipboard.js.map +1 -0
- package/lib/types/client/code-file-icon-artwork.d.ts.map +1 -0
- package/lib/types/client/code-file-icon-artwork.js.map +1 -0
- package/lib/types/client/code-file-types.d.ts.map +1 -0
- package/lib/types/client/code-file-types.js.map +1 -0
- package/lib/types/client/code-highlighting.d.ts.map +1 -0
- package/lib/types/client/code-highlighting.js.map +1 -0
- package/lib/types/client/darwin-desktop.d.ts.map +1 -0
- package/lib/types/client/darwin-desktop.js.map +1 -0
- package/lib/types/client/document-zoom.d.ts.map +1 -0
- package/lib/types/client/document-zoom.js.map +1 -0
- package/lib/types/client/file-drag-actions.d.ts.map +1 -0
- package/lib/types/client/file-drag-actions.js.map +1 -0
- package/lib/types/client/file-size.d.ts.map +1 -0
- package/lib/types/client/file-size.js.map +1 -0
- package/lib/types/client/focus.d.ts.map +1 -0
- package/lib/types/client/focus.js.map +1 -0
- package/lib/types/client/guide-artwork.d.ts.map +1 -0
- package/lib/types/client/guide-artwork.js.map +1 -0
- package/lib/types/client/head-tail-cap.d.ts.map +1 -0
- package/lib/types/client/head-tail-cap.js.map +1 -0
- package/lib/types/client/icons/artwork.d.ts +475 -0
- package/lib/types/client/icons/artwork.d.ts.map +1 -0
- package/lib/types/client/icons/artwork.js.map +1 -0
- package/lib/types/client/icons/index.d.ts +450 -0
- package/lib/types/client/icons/index.d.ts.map +1 -0
- package/lib/types/client/icons/index.js.map +1 -0
- package/lib/types/client/icons/props.d.ts.map +1 -0
- package/lib/types/client/icons/props.js.map +1 -0
- package/lib/types/client/icons/shared-artwork.d.ts.map +1 -0
- package/lib/types/client/icons/shared-artwork.js.map +1 -0
- package/lib/types/client/image-drag.d.ts.map +1 -0
- package/lib/types/client/image-drag.js.map +1 -0
- package/lib/types/client/index.d.ts +128 -0
- package/lib/types/client/index.d.ts.map +1 -0
- package/lib/types/client/index.js.map +1 -0
- package/lib/types/client/input-modality.d.ts.map +1 -0
- package/lib/types/client/input-modality.js.map +1 -0
- package/lib/types/client/keyboard-composition.d.ts.map +1 -0
- package/lib/types/client/keyboard-composition.js.map +1 -0
- package/lib/types/client/markdown/CodeBlock.d.ts.map +1 -0
- package/lib/types/client/markdown/CodeBlock.js.map +1 -0
- package/lib/types/client/markdown/FenceBlocks.d.ts.map +1 -0
- package/lib/types/client/markdown/FenceBlocks.js.map +1 -0
- package/lib/types/client/markdown/JsonBlock.d.ts.map +1 -0
- package/lib/types/client/markdown/JsonBlock.js.map +1 -0
- package/lib/types/client/markdown/MarkdownDelegate.d.ts.map +1 -0
- package/lib/types/client/markdown/MarkdownDelegate.js.map +1 -0
- package/lib/types/client/markdown/MarkdownText.d.ts.map +1 -0
- package/lib/types/client/markdown/MarkdownText.js.map +1 -0
- package/lib/types/client/markdown/cjkFriendlyStrong.d.ts.map +1 -0
- package/lib/types/client/markdown/cjkFriendlyStrong.js.map +1 -0
- package/lib/types/client/markdown/copy-tex.d.ts.map +1 -0
- package/lib/types/client/markdown/copy-tex.js.map +1 -0
- package/lib/types/client/markdown/diff-fence.d.ts.map +1 -0
- package/lib/types/client/markdown/diff-fence.js.map +1 -0
- package/lib/types/client/markdown/file-link.d.ts.map +1 -0
- package/lib/types/client/markdown/file-link.js.map +1 -0
- package/lib/types/client/markdown/highlight.d.ts.map +1 -0
- package/lib/types/client/markdown/highlight.js.map +1 -0
- package/lib/types/client/markdown/incremental.d.ts.map +1 -0
- package/lib/types/client/markdown/incremental.js.map +1 -0
- package/lib/types/client/markdown/katex.d.ts.map +1 -0
- package/lib/types/client/markdown/katex.js.map +1 -0
- package/lib/types/client/markdown/local-image-syntax.d.ts.map +1 -0
- package/lib/types/client/markdown/local-image-syntax.js.map +1 -0
- package/lib/types/client/markdown/mathCompatibility.d.ts.map +1 -0
- package/lib/types/client/markdown/mathCompatibility.js.map +1 -0
- package/lib/types/client/markdown/parse.d.ts.map +1 -0
- package/lib/types/client/markdown/parse.js.map +1 -0
- package/lib/types/client/markdown/plain-text.d.ts.map +1 -0
- package/lib/types/client/markdown/plain-text.js.map +1 -0
- package/lib/types/client/markdown/quote-text.d.ts.map +1 -0
- package/lib/types/client/markdown/quote-text.js.map +1 -0
- package/lib/types/client/markdown/render.d.ts.map +1 -0
- package/lib/types/client/markdown/render.js.map +1 -0
- package/lib/types/client/markdown/useViewportHighlighting.d.ts +11 -0
- package/lib/types/client/markdown/useViewportHighlighting.d.ts.map +1 -0
- package/lib/types/client/markdown/useViewportHighlighting.js.map +1 -0
- package/lib/types/client/markdown/windows-path-destinations.d.ts.map +1 -0
- package/lib/types/client/markdown/windows-path-destinations.js.map +1 -0
- package/lib/types/client/menu-submenu-position.d.ts.map +1 -0
- package/lib/types/client/menu-submenu-position.js.map +1 -0
- package/lib/types/client/overlay-top-margin.d.ts.map +1 -0
- package/lib/types/client/overlay-top-margin.js.map +1 -0
- package/lib/types/client/plugin-artwork.d.ts.map +1 -0
- package/lib/types/client/plugin-artwork.js.map +1 -0
- package/lib/types/client/pointer-grace.d.ts.map +1 -0
- package/lib/types/client/pointer-grace.js.map +1 -0
- package/lib/types/client/relative-time.d.ts.map +1 -0
- package/lib/types/client/relative-time.js.map +1 -0
- package/lib/types/client/settings-form/SettingsForm.d.ts.map +1 -0
- package/lib/types/client/settings-form/SettingsForm.js.map +1 -0
- package/lib/types/client/settings-form/fields.d.ts.map +1 -0
- package/lib/types/client/settings-form/fields.js.map +1 -0
- package/lib/types/client/settings-form/form-model.d.ts.map +1 -0
- package/lib/types/client/settings-form/form-model.js.map +1 -0
- package/lib/types/client/tooltip-placement.d.ts.map +1 -0
- package/lib/types/client/tooltip-placement.js.map +1 -0
- package/lib/types/client/use-clipboard-copy.d.ts.map +1 -0
- package/lib/types/client/use-clipboard-copy.js.map +1 -0
- package/lib/types/client/useAnchoredMaxHeight.d.ts +14 -0
- package/lib/types/client/useAnchoredMaxHeight.d.ts.map +1 -0
- package/lib/types/client/useAnchoredMaxHeight.js.map +1 -0
- package/lib/types/client/useDismissOnOutsidePointer.d.ts.map +1 -0
- package/lib/types/client/useDismissOnOutsidePointer.js.map +1 -0
- package/lib/types/client/useMenuSubmenu.d.ts +44 -0
- package/lib/types/client/useMenuSubmenu.d.ts.map +1 -0
- package/lib/types/client/useMenuSubmenu.js.map +1 -0
- package/lib/types/client/useModalLayer.d.ts.map +1 -0
- package/lib/types/client/useModalLayer.js.map +1 -0
- package/lib/types/client/useRowDragPreview.d.ts.map +1 -0
- package/lib/types/client/useRowDragPreview.js.map +1 -0
- package/lib/types/client/user-text.d.ts.map +1 -0
- package/lib/types/client/user-text.js.map +1 -0
- package/locale/de.json +6 -0
- package/locale/en.json +5 -0
- package/locale/es.json +6 -0
- package/locale/fr.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/pt.json +6 -0
- package/locale/ru.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +28 -12
- package/src/client/CodeFileIcon.tsx +28 -0
- package/src/client/HoverCard.tsx +360 -0
- package/src/client/InspectButton.module.css +47 -0
- package/src/client/InspectButton.tsx +29 -0
- package/src/client/JsonTree.tsx +850 -0
- package/src/client/Menu.module.css +491 -0
- package/src/client/Menu.tsx +656 -0
- package/src/client/MenuSurface.tsx +54 -0
- package/src/client/QuotePreview.tsx +116 -0
- package/src/client/RiskConfirmation.module.css +54 -0
- package/src/client/TextShimmer.tsx +64 -0
- package/src/client/Tooltip.tsx +282 -0
- package/src/client/icons/artwork.ts +169 -0
- package/src/client/icons/index.tsx +694 -0
- package/src/client/image-drag.ts +84 -0
- package/src/client/index.ts +148 -0
- package/src/client/markdown/MarkdownText.module.css +612 -0
- package/src/client/markdown/useViewportHighlighting.ts +72 -0
- package/src/client/plugin-artwork.tsx +110 -0
- package/src/client/useAnchoredMaxHeight.ts +45 -0
- package/src/client/useMenuSubmenu.ts +185 -0
- package/src/index.js +12 -0
- package/lib/index.js.map +0 -1
- package/lib/types/AnimatedRows.d.ts.map +0 -1
- package/lib/types/AnimatedRows.js.map +0 -1
- package/lib/types/BrandWordmark.d.ts.map +0 -1
- package/lib/types/BrandWordmark.js.map +0 -1
- package/lib/types/Button.d.ts.map +0 -1
- package/lib/types/Button.js.map +0 -1
- package/lib/types/Checkbox.d.ts.map +0 -1
- package/lib/types/Checkbox.js.map +0 -1
- package/lib/types/CodeFileIcon.d.ts.map +0 -1
- package/lib/types/CodeFileIcon.js.map +0 -1
- package/lib/types/CodeToolbar.d.ts.map +0 -1
- package/lib/types/CodeToolbar.js.map +0 -1
- package/lib/types/CommandText.d.ts.map +0 -1
- package/lib/types/CommandText.js.map +0 -1
- package/lib/types/ConfigField.d.ts.map +0 -1
- package/lib/types/ConfigField.js.map +0 -1
- package/lib/types/ConnectionIndicator.d.ts.map +0 -1
- package/lib/types/ConnectionIndicator.js.map +0 -1
- package/lib/types/DetailDocument.d.ts.map +0 -1
- package/lib/types/DetailDocument.js.map +0 -1
- package/lib/types/DiffBlock.d.ts.map +0 -1
- package/lib/types/DiffBlock.js.map +0 -1
- package/lib/types/DisclosureRow.d.ts.map +0 -1
- package/lib/types/DisclosureRow.js.map +0 -1
- package/lib/types/DraggableImage.d.ts.map +0 -1
- package/lib/types/DraggableImage.js.map +0 -1
- package/lib/types/FileTypeIcon.d.ts.map +0 -1
- package/lib/types/FileTypeIcon.js.map +0 -1
- package/lib/types/FishLogo.d.ts.map +0 -1
- package/lib/types/FishLogo.js.map +0 -1
- package/lib/types/FoldToggle.d.ts.map +0 -1
- package/lib/types/FoldToggle.js.map +0 -1
- package/lib/types/HoverCard.d.ts.map +0 -1
- package/lib/types/HoverCard.js.map +0 -1
- package/lib/types/HoverCardGroup.d.ts.map +0 -1
- package/lib/types/HoverCardGroup.js.map +0 -1
- package/lib/types/ImageLightbox.d.ts.map +0 -1
- package/lib/types/ImageLightbox.js.map +0 -1
- package/lib/types/ImagePreview.d.ts.map +0 -1
- package/lib/types/ImagePreview.js.map +0 -1
- package/lib/types/InlineEditor.d.ts.map +0 -1
- package/lib/types/InlineEditor.js.map +0 -1
- package/lib/types/Input.d.ts.map +0 -1
- package/lib/types/Input.js.map +0 -1
- package/lib/types/JsonTree.d.ts.map +0 -1
- package/lib/types/JsonTree.js.map +0 -1
- package/lib/types/LinkIcon.d.ts.map +0 -1
- package/lib/types/LinkIcon.js.map +0 -1
- package/lib/types/Marquee.d.ts.map +0 -1
- package/lib/types/Marquee.js.map +0 -1
- package/lib/types/Menu.d.ts.map +0 -1
- package/lib/types/Menu.js.map +0 -1
- package/lib/types/MenuGroup.d.ts.map +0 -1
- package/lib/types/MenuGroup.js.map +0 -1
- package/lib/types/MenuRow.d.ts.map +0 -1
- package/lib/types/MenuRow.js.map +0 -1
- package/lib/types/MenuSurface.d.ts.map +0 -1
- package/lib/types/MenuSurface.js.map +0 -1
- package/lib/types/Modal.d.ts.map +0 -1
- package/lib/types/Modal.js.map +0 -1
- package/lib/types/PathLabel.d.ts.map +0 -1
- package/lib/types/PathLabel.js.map +0 -1
- package/lib/types/PermissionIcon.d.ts.map +0 -1
- package/lib/types/PermissionIcon.js.map +0 -1
- package/lib/types/Pill.d.ts.map +0 -1
- package/lib/types/Pill.js.map +0 -1
- package/lib/types/QuotePreview.d.ts +0 -37
- package/lib/types/QuotePreview.d.ts.map +0 -1
- package/lib/types/QuotePreview.js.map +0 -1
- package/lib/types/ReadBlock.d.ts.map +0 -1
- package/lib/types/ReadBlock.js.map +0 -1
- package/lib/types/ReferenceIcon.d.ts.map +0 -1
- package/lib/types/ReferenceIcon.js.map +0 -1
- package/lib/types/RiskConfirmation.d.ts.map +0 -1
- package/lib/types/RiskConfirmation.js.map +0 -1
- package/lib/types/SearchBlock.d.ts.map +0 -1
- package/lib/types/SearchBlock.js.map +0 -1
- package/lib/types/SearchField.d.ts.map +0 -1
- package/lib/types/SearchField.js.map +0 -1
- package/lib/types/SegmentedControl.d.ts.map +0 -1
- package/lib/types/SegmentedControl.js.map +0 -1
- package/lib/types/SegmentedTabs.d.ts.map +0 -1
- package/lib/types/SegmentedTabs.js.map +0 -1
- package/lib/types/ShortcutKeys.d.ts.map +0 -1
- package/lib/types/ShortcutKeys.js.map +0 -1
- package/lib/types/SiteGlyph.d.ts.map +0 -1
- package/lib/types/SiteGlyph.js.map +0 -1
- package/lib/types/StateDot.d.ts.map +0 -1
- package/lib/types/StateDot.js.map +0 -1
- package/lib/types/SubmenuPanel.d.ts.map +0 -1
- package/lib/types/SubmenuPanel.js.map +0 -1
- package/lib/types/Switch.d.ts.map +0 -1
- package/lib/types/Switch.js.map +0 -1
- package/lib/types/Tag.d.ts.map +0 -1
- package/lib/types/Tag.js.map +0 -1
- package/lib/types/TerminalBlock.d.ts.map +0 -1
- package/lib/types/TerminalBlock.js.map +0 -1
- package/lib/types/TextShimmer.d.ts.map +0 -1
- package/lib/types/TextShimmer.js.map +0 -1
- package/lib/types/Toast.d.ts.map +0 -1
- package/lib/types/Toast.js.map +0 -1
- package/lib/types/Tooltip.d.ts.map +0 -1
- package/lib/types/Tooltip.js.map +0 -1
- package/lib/types/UserMessageBubble.d.ts.map +0 -1
- package/lib/types/UserMessageBubble.js.map +0 -1
- package/lib/types/WebBlock.d.ts.map +0 -1
- package/lib/types/WebBlock.js.map +0 -1
- package/lib/types/ZoomControls.d.ts.map +0 -1
- package/lib/types/ZoomControls.js.map +0 -1
- package/lib/types/ansi.d.ts.map +0 -1
- package/lib/types/ansi.js.map +0 -1
- package/lib/types/clipboard.d.ts.map +0 -1
- package/lib/types/clipboard.js.map +0 -1
- package/lib/types/code-file-icon-artwork.d.ts.map +0 -1
- package/lib/types/code-file-icon-artwork.js.map +0 -1
- package/lib/types/code-file-types.d.ts.map +0 -1
- package/lib/types/code-file-types.js.map +0 -1
- package/lib/types/code-highlighting.d.ts.map +0 -1
- package/lib/types/code-highlighting.js.map +0 -1
- package/lib/types/darwin-desktop.d.ts.map +0 -1
- package/lib/types/darwin-desktop.js.map +0 -1
- package/lib/types/document-zoom.d.ts.map +0 -1
- package/lib/types/document-zoom.js.map +0 -1
- package/lib/types/file-drag-actions.d.ts.map +0 -1
- package/lib/types/file-drag-actions.js.map +0 -1
- package/lib/types/file-size.d.ts.map +0 -1
- package/lib/types/file-size.js.map +0 -1
- package/lib/types/focus.d.ts.map +0 -1
- package/lib/types/focus.js.map +0 -1
- package/lib/types/guide-artwork.d.ts.map +0 -1
- package/lib/types/guide-artwork.js.map +0 -1
- package/lib/types/head-tail-cap.d.ts.map +0 -1
- package/lib/types/head-tail-cap.js.map +0 -1
- package/lib/types/icons/artwork.d.ts +0 -454
- package/lib/types/icons/artwork.d.ts.map +0 -1
- package/lib/types/icons/artwork.js.map +0 -1
- package/lib/types/icons/index.d.ts +0 -430
- package/lib/types/icons/index.d.ts.map +0 -1
- package/lib/types/icons/index.js.map +0 -1
- package/lib/types/icons/props.d.ts.map +0 -1
- package/lib/types/icons/props.js.map +0 -1
- package/lib/types/icons/shared-artwork.d.ts.map +0 -1
- package/lib/types/icons/shared-artwork.js.map +0 -1
- package/lib/types/image-drag.d.ts.map +0 -1
- package/lib/types/image-drag.js.map +0 -1
- package/lib/types/index.d.ts +0 -124
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/index.js.map +0 -1
- package/lib/types/input-modality.d.ts.map +0 -1
- package/lib/types/input-modality.js.map +0 -1
- package/lib/types/keyboard-composition.d.ts.map +0 -1
- package/lib/types/keyboard-composition.js.map +0 -1
- package/lib/types/markdown/CodeBlock.d.ts.map +0 -1
- package/lib/types/markdown/CodeBlock.js.map +0 -1
- package/lib/types/markdown/FenceBlocks.d.ts.map +0 -1
- package/lib/types/markdown/FenceBlocks.js.map +0 -1
- package/lib/types/markdown/JsonBlock.d.ts.map +0 -1
- package/lib/types/markdown/JsonBlock.js.map +0 -1
- package/lib/types/markdown/MarkdownDelegate.d.ts.map +0 -1
- package/lib/types/markdown/MarkdownDelegate.js.map +0 -1
- package/lib/types/markdown/MarkdownText.d.ts.map +0 -1
- package/lib/types/markdown/MarkdownText.js.map +0 -1
- package/lib/types/markdown/cjkFriendlyStrong.d.ts.map +0 -1
- package/lib/types/markdown/cjkFriendlyStrong.js.map +0 -1
- package/lib/types/markdown/copy-tex.d.ts.map +0 -1
- package/lib/types/markdown/copy-tex.js.map +0 -1
- package/lib/types/markdown/diff-fence.d.ts.map +0 -1
- package/lib/types/markdown/diff-fence.js.map +0 -1
- package/lib/types/markdown/file-link.d.ts.map +0 -1
- package/lib/types/markdown/file-link.js.map +0 -1
- package/lib/types/markdown/highlight.d.ts.map +0 -1
- package/lib/types/markdown/highlight.js.map +0 -1
- package/lib/types/markdown/incremental.d.ts.map +0 -1
- package/lib/types/markdown/incremental.js.map +0 -1
- package/lib/types/markdown/katex.d.ts.map +0 -1
- package/lib/types/markdown/katex.js.map +0 -1
- package/lib/types/markdown/local-image-syntax.d.ts.map +0 -1
- package/lib/types/markdown/local-image-syntax.js.map +0 -1
- package/lib/types/markdown/mathCompatibility.d.ts.map +0 -1
- package/lib/types/markdown/mathCompatibility.js.map +0 -1
- package/lib/types/markdown/parse.d.ts.map +0 -1
- package/lib/types/markdown/parse.js.map +0 -1
- package/lib/types/markdown/plain-text.d.ts.map +0 -1
- package/lib/types/markdown/plain-text.js.map +0 -1
- package/lib/types/markdown/quote-text.d.ts.map +0 -1
- package/lib/types/markdown/quote-text.js.map +0 -1
- package/lib/types/markdown/render.d.ts.map +0 -1
- package/lib/types/markdown/render.js.map +0 -1
- package/lib/types/markdown/useViewportHighlighting.d.ts +0 -11
- package/lib/types/markdown/useViewportHighlighting.d.ts.map +0 -1
- package/lib/types/markdown/useViewportHighlighting.js.map +0 -1
- package/lib/types/markdown/windows-path-destinations.d.ts.map +0 -1
- package/lib/types/markdown/windows-path-destinations.js.map +0 -1
- package/lib/types/menu-submenu-position.d.ts.map +0 -1
- package/lib/types/menu-submenu-position.js.map +0 -1
- package/lib/types/overlay-top-margin.d.ts.map +0 -1
- package/lib/types/overlay-top-margin.js.map +0 -1
- package/lib/types/plugin-artwork.d.ts.map +0 -1
- package/lib/types/plugin-artwork.js.map +0 -1
- package/lib/types/pointer-grace.d.ts.map +0 -1
- package/lib/types/pointer-grace.js.map +0 -1
- package/lib/types/relative-time.d.ts.map +0 -1
- package/lib/types/relative-time.js.map +0 -1
- package/lib/types/settings-form/SettingsForm.d.ts.map +0 -1
- package/lib/types/settings-form/SettingsForm.js.map +0 -1
- package/lib/types/settings-form/fields.d.ts.map +0 -1
- package/lib/types/settings-form/fields.js.map +0 -1
- package/lib/types/settings-form/form-model.d.ts.map +0 -1
- package/lib/types/settings-form/form-model.js.map +0 -1
- package/lib/types/tooltip-placement.d.ts.map +0 -1
- package/lib/types/tooltip-placement.js.map +0 -1
- package/lib/types/use-clipboard-copy.d.ts.map +0 -1
- package/lib/types/use-clipboard-copy.js.map +0 -1
- package/lib/types/useAnchoredMaxHeight.d.ts +0 -14
- package/lib/types/useAnchoredMaxHeight.d.ts.map +0 -1
- package/lib/types/useAnchoredMaxHeight.js.map +0 -1
- package/lib/types/useDismissOnOutsidePointer.d.ts.map +0 -1
- package/lib/types/useDismissOnOutsidePointer.js.map +0 -1
- package/lib/types/useMenuSubmenu.d.ts +0 -44
- package/lib/types/useMenuSubmenu.d.ts.map +0 -1
- package/lib/types/useMenuSubmenu.js.map +0 -1
- package/lib/types/useModalLayer.d.ts.map +0 -1
- package/lib/types/useModalLayer.js.map +0 -1
- package/lib/types/useRowDragPreview.d.ts.map +0 -1
- package/lib/types/useRowDragPreview.js.map +0 -1
- package/lib/types/user-text.d.ts.map +0 -1
- package/lib/types/user-text.js.map +0 -1
- package/src/CodeFileIcon.tsx +0 -28
- package/src/HoverCard.tsx +0 -360
- package/src/JsonTree.tsx +0 -850
- package/src/Menu.module.css +0 -473
- package/src/Menu.tsx +0 -656
- package/src/MenuSurface.tsx +0 -54
- package/src/QuotePreview.tsx +0 -133
- package/src/RiskConfirmation.module.css +0 -52
- package/src/TextShimmer.tsx +0 -58
- package/src/Tooltip.tsx +0 -273
- package/src/icons/artwork.ts +0 -161
- package/src/icons/index.tsx +0 -664
- package/src/image-drag.ts +0 -84
- package/src/index.ts +0 -143
- package/src/markdown/MarkdownText.module.css +0 -522
- package/src/markdown/useViewportHighlighting.ts +0 -72
- package/src/plugin-artwork.tsx +0 -110
- package/src/useAnchoredMaxHeight.ts +0 -45
- package/src/useMenuSubmenu.ts +0 -185
- /package/lib/types/{AnimatedRows.d.ts → client/AnimatedRows.d.ts} +0 -0
- /package/lib/types/{BrandWordmark.d.ts → client/BrandWordmark.d.ts} +0 -0
- /package/lib/types/{Button.d.ts → client/Button.d.ts} +0 -0
- /package/lib/types/{Checkbox.d.ts → client/Checkbox.d.ts} +0 -0
- /package/lib/types/{CodeFileIcon.d.ts → client/CodeFileIcon.d.ts} +0 -0
- /package/lib/types/{CodeToolbar.d.ts → client/CodeToolbar.d.ts} +0 -0
- /package/lib/types/{CommandText.d.ts → client/CommandText.d.ts} +0 -0
- /package/lib/types/{ConfigField.d.ts → client/ConfigField.d.ts} +0 -0
- /package/lib/types/{ConnectionIndicator.d.ts → client/ConnectionIndicator.d.ts} +0 -0
- /package/lib/types/{DetailDocument.d.ts → client/DetailDocument.d.ts} +0 -0
- /package/lib/types/{DiffBlock.d.ts → client/DiffBlock.d.ts} +0 -0
- /package/lib/types/{DisclosureRow.d.ts → client/DisclosureRow.d.ts} +0 -0
- /package/lib/types/{DraggableImage.d.ts → client/DraggableImage.d.ts} +0 -0
- /package/lib/types/{FileTypeIcon.d.ts → client/FileTypeIcon.d.ts} +0 -0
- /package/lib/types/{FishLogo.d.ts → client/FishLogo.d.ts} +0 -0
- /package/lib/types/{FoldToggle.d.ts → client/FoldToggle.d.ts} +0 -0
- /package/lib/types/{HoverCard.d.ts → client/HoverCard.d.ts} +0 -0
- /package/lib/types/{HoverCardGroup.d.ts → client/HoverCardGroup.d.ts} +0 -0
- /package/lib/types/{ImageLightbox.d.ts → client/ImageLightbox.d.ts} +0 -0
- /package/lib/types/{ImagePreview.d.ts → client/ImagePreview.d.ts} +0 -0
- /package/lib/types/{InlineEditor.d.ts → client/InlineEditor.d.ts} +0 -0
- /package/lib/types/{Input.d.ts → client/Input.d.ts} +0 -0
- /package/lib/types/{JsonTree.d.ts → client/JsonTree.d.ts} +0 -0
- /package/lib/types/{LinkIcon.d.ts → client/LinkIcon.d.ts} +0 -0
- /package/lib/types/{Marquee.d.ts → client/Marquee.d.ts} +0 -0
- /package/lib/types/{Menu.d.ts → client/Menu.d.ts} +0 -0
- /package/lib/types/{MenuGroup.d.ts → client/MenuGroup.d.ts} +0 -0
- /package/lib/types/{MenuRow.d.ts → client/MenuRow.d.ts} +0 -0
- /package/lib/types/{MenuSurface.d.ts → client/MenuSurface.d.ts} +0 -0
- /package/lib/types/{Modal.d.ts → client/Modal.d.ts} +0 -0
- /package/lib/types/{PathLabel.d.ts → client/PathLabel.d.ts} +0 -0
- /package/lib/types/{PermissionIcon.d.ts → client/PermissionIcon.d.ts} +0 -0
- /package/lib/types/{Pill.d.ts → client/Pill.d.ts} +0 -0
- /package/lib/types/{ReadBlock.d.ts → client/ReadBlock.d.ts} +0 -0
- /package/lib/types/{ReferenceIcon.d.ts → client/ReferenceIcon.d.ts} +0 -0
- /package/lib/types/{RiskConfirmation.d.ts → client/RiskConfirmation.d.ts} +0 -0
- /package/lib/types/{SearchBlock.d.ts → client/SearchBlock.d.ts} +0 -0
- /package/lib/types/{SearchField.d.ts → client/SearchField.d.ts} +0 -0
- /package/lib/types/{SegmentedControl.d.ts → client/SegmentedControl.d.ts} +0 -0
- /package/lib/types/{SegmentedTabs.d.ts → client/SegmentedTabs.d.ts} +0 -0
- /package/lib/types/{ShortcutKeys.d.ts → client/ShortcutKeys.d.ts} +0 -0
- /package/lib/types/{SiteGlyph.d.ts → client/SiteGlyph.d.ts} +0 -0
- /package/lib/types/{StateDot.d.ts → client/StateDot.d.ts} +0 -0
- /package/lib/types/{SubmenuPanel.d.ts → client/SubmenuPanel.d.ts} +0 -0
- /package/lib/types/{Switch.d.ts → client/Switch.d.ts} +0 -0
- /package/lib/types/{Tag.d.ts → client/Tag.d.ts} +0 -0
- /package/lib/types/{TerminalBlock.d.ts → client/TerminalBlock.d.ts} +0 -0
- /package/lib/types/{TextShimmer.d.ts → client/TextShimmer.d.ts} +0 -0
- /package/lib/types/{Toast.d.ts → client/Toast.d.ts} +0 -0
- /package/lib/types/{Tooltip.d.ts → client/Tooltip.d.ts} +0 -0
- /package/lib/types/{UserMessageBubble.d.ts → client/UserMessageBubble.d.ts} +0 -0
- /package/lib/types/{WebBlock.d.ts → client/WebBlock.d.ts} +0 -0
- /package/lib/types/{ZoomControls.d.ts → client/ZoomControls.d.ts} +0 -0
- /package/lib/types/{ansi.d.ts → client/ansi.d.ts} +0 -0
- /package/lib/types/{clipboard.d.ts → client/clipboard.d.ts} +0 -0
- /package/lib/types/{code-file-icon-artwork.d.ts → client/code-file-icon-artwork.d.ts} +0 -0
- /package/lib/types/{code-file-types.d.ts → client/code-file-types.d.ts} +0 -0
- /package/lib/types/{code-highlighting.d.ts → client/code-highlighting.d.ts} +0 -0
- /package/lib/types/{darwin-desktop.d.ts → client/darwin-desktop.d.ts} +0 -0
- /package/lib/types/{document-zoom.d.ts → client/document-zoom.d.ts} +0 -0
- /package/lib/types/{file-drag-actions.d.ts → client/file-drag-actions.d.ts} +0 -0
- /package/lib/types/{file-size.d.ts → client/file-size.d.ts} +0 -0
- /package/lib/types/{focus.d.ts → client/focus.d.ts} +0 -0
- /package/lib/types/{guide-artwork.d.ts → client/guide-artwork.d.ts} +0 -0
- /package/lib/types/{head-tail-cap.d.ts → client/head-tail-cap.d.ts} +0 -0
- /package/lib/types/{icons → client/icons}/props.d.ts +0 -0
- /package/lib/types/{icons → client/icons}/shared-artwork.d.ts +0 -0
- /package/lib/types/{image-drag.d.ts → client/image-drag.d.ts} +0 -0
- /package/lib/types/{input-modality.d.ts → client/input-modality.d.ts} +0 -0
- /package/lib/types/{keyboard-composition.d.ts → client/keyboard-composition.d.ts} +0 -0
- /package/lib/types/{markdown → client/markdown}/CodeBlock.d.ts +0 -0
- /package/lib/types/{markdown → client/markdown}/FenceBlocks.d.ts +0 -0
- /package/lib/types/{markdown → client/markdown}/JsonBlock.d.ts +0 -0
- /package/lib/types/{markdown → client/markdown}/MarkdownDelegate.d.ts +0 -0
- /package/lib/types/{markdown → client/markdown}/MarkdownText.d.ts +0 -0
- /package/lib/types/{markdown → client/markdown}/cjkFriendlyStrong.d.ts +0 -0
- /package/lib/types/{markdown → client/markdown}/copy-tex.d.ts +0 -0
- /package/lib/types/{markdown → client/markdown}/diff-fence.d.ts +0 -0
- /package/lib/types/{markdown → client/markdown}/file-link.d.ts +0 -0
- /package/lib/types/{markdown → client/markdown}/highlight.d.ts +0 -0
- /package/lib/types/{markdown → client/markdown}/incremental.d.ts +0 -0
- /package/lib/types/{markdown → client/markdown}/katex.d.ts +0 -0
- /package/lib/types/{markdown → client/markdown}/local-image-syntax.d.ts +0 -0
- /package/lib/types/{markdown → client/markdown}/mathCompatibility.d.ts +0 -0
- /package/lib/types/{markdown → client/markdown}/parse.d.ts +0 -0
- /package/lib/types/{markdown → client/markdown}/plain-text.d.ts +0 -0
- /package/lib/types/{markdown → client/markdown}/quote-text.d.ts +0 -0
- /package/lib/types/{markdown → client/markdown}/render.d.ts +0 -0
- /package/lib/types/{markdown → client/markdown}/windows-path-destinations.d.ts +0 -0
- /package/lib/types/{menu-submenu-position.d.ts → client/menu-submenu-position.d.ts} +0 -0
- /package/lib/types/{overlay-top-margin.d.ts → client/overlay-top-margin.d.ts} +0 -0
- /package/lib/types/{plugin-artwork.d.ts → client/plugin-artwork.d.ts} +0 -0
- /package/lib/types/{pointer-grace.d.ts → client/pointer-grace.d.ts} +0 -0
- /package/lib/types/{relative-time.d.ts → client/relative-time.d.ts} +0 -0
- /package/lib/types/{settings-form → client/settings-form}/SettingsForm.d.ts +0 -0
- /package/lib/types/{settings-form → client/settings-form}/fields.d.ts +0 -0
- /package/lib/types/{settings-form → client/settings-form}/form-model.d.ts +0 -0
- /package/lib/types/{tooltip-placement.d.ts → client/tooltip-placement.d.ts} +0 -0
- /package/lib/types/{use-clipboard-copy.d.ts → client/use-clipboard-copy.d.ts} +0 -0
- /package/lib/types/{useDismissOnOutsidePointer.d.ts → client/useDismissOnOutsidePointer.d.ts} +0 -0
- /package/lib/types/{useModalLayer.d.ts → client/useModalLayer.d.ts} +0 -0
- /package/lib/types/{useRowDragPreview.d.ts → client/useRowDragPreview.d.ts} +0 -0
- /package/lib/types/{user-text.d.ts → client/user-text.d.ts} +0 -0
- /package/src/{AnimatedRows.module.css → client/AnimatedRows.module.css} +0 -0
- /package/src/{AnimatedRows.tsx → client/AnimatedRows.tsx} +0 -0
- /package/src/{BrandWordmark.tsx → client/BrandWordmark.tsx} +0 -0
- /package/src/{Button.module.css → client/Button.module.css} +0 -0
- /package/src/{Button.tsx → client/Button.tsx} +0 -0
- /package/src/{Checkbox.module.css → client/Checkbox.module.css} +0 -0
- /package/src/{Checkbox.tsx → client/Checkbox.tsx} +0 -0
- /package/src/{CodeCard.module.css → client/CodeCard.module.css} +0 -0
- /package/src/{CodeToolbar.tsx → client/CodeToolbar.tsx} +0 -0
- /package/src/{CommandText.module.css → client/CommandText.module.css} +0 -0
- /package/src/{CommandText.tsx → client/CommandText.tsx} +0 -0
- /package/src/{ConfigField.module.css → client/ConfigField.module.css} +0 -0
- /package/src/{ConfigField.tsx → client/ConfigField.tsx} +0 -0
- /package/src/{ConnectionIndicator.module.css → client/ConnectionIndicator.module.css} +0 -0
- /package/src/{ConnectionIndicator.tsx → client/ConnectionIndicator.tsx} +0 -0
- /package/src/{DetailDocument.module.css → client/DetailDocument.module.css} +0 -0
- /package/src/{DetailDocument.tsx → client/DetailDocument.tsx} +0 -0
- /package/src/{DiffBlock.module.css → client/DiffBlock.module.css} +0 -0
- /package/src/{DiffBlock.tsx → client/DiffBlock.tsx} +0 -0
- /package/src/{DisclosureRow.module.css → client/DisclosureRow.module.css} +0 -0
- /package/src/{DisclosureRow.tsx → client/DisclosureRow.tsx} +0 -0
- /package/src/{DraggableImage.tsx → client/DraggableImage.tsx} +0 -0
- /package/src/{FileTypeIcon.module.css → client/FileTypeIcon.module.css} +0 -0
- /package/src/{FileTypeIcon.tsx → client/FileTypeIcon.tsx} +0 -0
- /package/src/{FishLogo.tsx → client/FishLogo.tsx} +0 -0
- /package/src/{FoldToggle.tsx → client/FoldToggle.tsx} +0 -0
- /package/src/{HoverCard.module.css → client/HoverCard.module.css} +0 -0
- /package/src/{HoverCardGroup.tsx → client/HoverCardGroup.tsx} +0 -0
- /package/src/{ImageLightbox.module.css → client/ImageLightbox.module.css} +0 -0
- /package/src/{ImageLightbox.tsx → client/ImageLightbox.tsx} +0 -0
- /package/src/{ImagePreview.module.css → client/ImagePreview.module.css} +0 -0
- /package/src/{ImagePreview.tsx → client/ImagePreview.tsx} +0 -0
- /package/src/{InlineEditor.module.css → client/InlineEditor.module.css} +0 -0
- /package/src/{InlineEditor.tsx → client/InlineEditor.tsx} +0 -0
- /package/src/{Input.module.css → client/Input.module.css} +0 -0
- /package/src/{Input.tsx → client/Input.tsx} +0 -0
- /package/src/{JsonTree.module.css → client/JsonTree.module.css} +0 -0
- /package/src/{LinkIcon.tsx → client/LinkIcon.tsx} +0 -0
- /package/src/{Marquee.module.css → client/Marquee.module.css} +0 -0
- /package/src/{Marquee.tsx → client/Marquee.tsx} +0 -0
- /package/src/{MenuGroup.module.css → client/MenuGroup.module.css} +0 -0
- /package/src/{MenuGroup.tsx → client/MenuGroup.tsx} +0 -0
- /package/src/{MenuRow.tsx → client/MenuRow.tsx} +0 -0
- /package/src/{MenuSurface.module.css → client/MenuSurface.module.css} +0 -0
- /package/src/{Modal.module.css → client/Modal.module.css} +0 -0
- /package/src/{Modal.tsx → client/Modal.tsx} +0 -0
- /package/src/{PathLabel.module.css → client/PathLabel.module.css} +0 -0
- /package/src/{PathLabel.tsx → client/PathLabel.tsx} +0 -0
- /package/src/{PermissionIcon.tsx → client/PermissionIcon.tsx} +0 -0
- /package/src/{Pill.module.css → client/Pill.module.css} +0 -0
- /package/src/{Pill.tsx → client/Pill.tsx} +0 -0
- /package/src/{QuotePreview.module.css → client/QuotePreview.module.css} +0 -0
- /package/src/{ReadBlock.module.css → client/ReadBlock.module.css} +0 -0
- /package/src/{ReadBlock.tsx → client/ReadBlock.tsx} +0 -0
- /package/src/{ReferenceIcon.tsx → client/ReferenceIcon.tsx} +0 -0
- /package/src/{RiskConfirmation.tsx → client/RiskConfirmation.tsx} +0 -0
- /package/src/{RowDragPreview.module.css → client/RowDragPreview.module.css} +0 -0
- /package/src/{SearchBlock.module.css → client/SearchBlock.module.css} +0 -0
- /package/src/{SearchBlock.tsx → client/SearchBlock.tsx} +0 -0
- /package/src/{SearchField.module.css → client/SearchField.module.css} +0 -0
- /package/src/{SearchField.tsx → client/SearchField.tsx} +0 -0
- /package/src/{SegmentedControl.module.css → client/SegmentedControl.module.css} +0 -0
- /package/src/{SegmentedControl.tsx → client/SegmentedControl.tsx} +0 -0
- /package/src/{SegmentedTabs.module.css → client/SegmentedTabs.module.css} +0 -0
- /package/src/{SegmentedTabs.tsx → client/SegmentedTabs.tsx} +0 -0
- /package/src/{ShortcutKeys.module.css → client/ShortcutKeys.module.css} +0 -0
- /package/src/{ShortcutKeys.tsx → client/ShortcutKeys.tsx} +0 -0
- /package/src/{SiteGlyph.tsx → client/SiteGlyph.tsx} +0 -0
- /package/src/{StateDot.module.css → client/StateDot.module.css} +0 -0
- /package/src/{StateDot.tsx → client/StateDot.tsx} +0 -0
- /package/src/{SubmenuPanel.tsx → client/SubmenuPanel.tsx} +0 -0
- /package/src/{Switch.module.css → client/Switch.module.css} +0 -0
- /package/src/{Switch.tsx → client/Switch.tsx} +0 -0
- /package/src/{Tag.module.css → client/Tag.module.css} +0 -0
- /package/src/{Tag.tsx → client/Tag.tsx} +0 -0
- /package/src/{TerminalBlock.module.css → client/TerminalBlock.module.css} +0 -0
- /package/src/{TerminalBlock.tsx → client/TerminalBlock.tsx} +0 -0
- /package/src/{TextShimmer.module.css → client/TextShimmer.module.css} +0 -0
- /package/src/{Toast.module.css → client/Toast.module.css} +0 -0
- /package/src/{Toast.tsx → client/Toast.tsx} +0 -0
- /package/src/{Tooltip.module.css → client/Tooltip.module.css} +0 -0
- /package/src/{UserMessageBubble.module.css → client/UserMessageBubble.module.css} +0 -0
- /package/src/{UserMessageBubble.tsx → client/UserMessageBubble.tsx} +0 -0
- /package/src/{WebBlock.module.css → client/WebBlock.module.css} +0 -0
- /package/src/{WebBlock.tsx → client/WebBlock.tsx} +0 -0
- /package/src/{ZoomControls.module.css → client/ZoomControls.module.css} +0 -0
- /package/src/{ZoomControls.tsx → client/ZoomControls.tsx} +0 -0
- /package/src/{ansi.ts → client/ansi.ts} +0 -0
- /package/src/{clipboard.ts → client/clipboard.ts} +0 -0
- /package/src/{code-file-icon-artwork.manifest.json → client/code-file-icon-artwork.manifest.json} +0 -0
- /package/src/{code-file-icon-artwork.ts → client/code-file-icon-artwork.ts} +0 -0
- /package/src/{code-file-types.ts → client/code-file-types.ts} +0 -0
- /package/src/{code-highlighting.ts → client/code-highlighting.ts} +0 -0
- /package/src/{css-modules.d.ts → client/css-modules.d.ts} +0 -0
- /package/src/{darwin-desktop.ts → client/darwin-desktop.ts} +0 -0
- /package/src/{document-zoom.ts → client/document-zoom.ts} +0 -0
- /package/src/{file-drag-actions.ts → client/file-drag-actions.ts} +0 -0
- /package/src/{file-size.ts → client/file-size.ts} +0 -0
- /package/src/{focus.ts → client/focus.ts} +0 -0
- /package/src/{guide-artwork.tsx → client/guide-artwork.tsx} +0 -0
- /package/src/{head-tail-cap.ts → client/head-tail-cap.ts} +0 -0
- /package/src/{icons → client/icons}/props.ts +0 -0
- /package/src/{icons → client/icons}/shared-artwork.tsx +0 -0
- /package/src/{input-modality.ts → client/input-modality.ts} +0 -0
- /package/src/{keyboard-composition.ts → client/keyboard-composition.ts} +0 -0
- /package/src/{markdown → client/markdown}/CodeBlock.module.css +0 -0
- /package/src/{markdown → client/markdown}/CodeBlock.tsx +0 -0
- /package/src/{markdown → client/markdown}/FenceBlocks.tsx +0 -0
- /package/src/{markdown → client/markdown}/JsonBlock.module.css +0 -0
- /package/src/{markdown → client/markdown}/JsonBlock.tsx +0 -0
- /package/src/{markdown → client/markdown}/MarkdownDelegate.tsx +0 -0
- /package/src/{markdown → client/markdown}/MarkdownText.tsx +0 -0
- /package/src/{markdown → client/markdown}/cjkFriendlyStrong.ts +0 -0
- /package/src/{markdown → client/markdown}/copy-tex.ts +0 -0
- /package/src/{markdown → client/markdown}/diff-fence.ts +0 -0
- /package/src/{markdown → client/markdown}/file-link.ts +0 -0
- /package/src/{markdown → client/markdown}/highlight.ts +0 -0
- /package/src/{markdown → client/markdown}/incremental.ts +0 -0
- /package/src/{markdown → client/markdown}/katex.tsx +0 -0
- /package/src/{markdown → client/markdown}/local-image-syntax.ts +0 -0
- /package/src/{markdown → client/markdown}/mathCompatibility.ts +0 -0
- /package/src/{markdown → client/markdown}/parse.ts +0 -0
- /package/src/{markdown → client/markdown}/plain-text.ts +0 -0
- /package/src/{markdown → client/markdown}/quote-text.ts +0 -0
- /package/src/{markdown → client/markdown}/render.tsx +0 -0
- /package/src/{markdown → client/markdown}/windows-path-destinations.ts +0 -0
- /package/src/{menu-submenu-position.ts → client/menu-submenu-position.ts} +0 -0
- /package/src/{overlay-top-margin.ts → client/overlay-top-margin.ts} +0 -0
- /package/src/{pointer-grace.ts → client/pointer-grace.ts} +0 -0
- /package/src/{relative-time.ts → client/relative-time.ts} +0 -0
- /package/src/{settings-form → client/settings-form}/SettingsForm.module.css +0 -0
- /package/src/{settings-form → client/settings-form}/SettingsForm.tsx +0 -0
- /package/src/{settings-form → client/settings-form}/fields.module.css +0 -0
- /package/src/{settings-form → client/settings-form}/fields.tsx +0 -0
- /package/src/{settings-form → client/settings-form}/form-model.ts +0 -0
- /package/src/{tooltip-placement.ts → client/tooltip-placement.ts} +0 -0
- /package/src/{use-clipboard-copy.ts → client/use-clipboard-copy.ts} +0 -0
- /package/src/{useDismissOnOutsidePointer.ts → client/useDismissOnOutsidePointer.ts} +0 -0
- /package/src/{useModalLayer.ts → client/useModalLayer.ts} +0 -0
- /package/src/{useRowDragPreview.ts → client/useRowDragPreview.ts} +0 -0
- /package/src/{user-text.module.css → client/user-text.module.css} +0 -0
- /package/src/{user-text.tsx → client/user-text.tsx} +0 -0
package/README.i18n.yaml
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
# After editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/client/ui-primitives/README.md
|
|
5
5
|
/:
|
|
6
|
-
en:
|
|
7
|
-
zh:
|
|
6
|
+
en: 76040e81cd119d6a
|
|
7
|
+
zh: 33b5bacd05ab64e3
|
|
8
8
|
/deepseek-ai-dsh-client-ui-primitives:
|
|
9
9
|
en: e39769cae26393b8
|
|
10
10
|
zh: 8743c8cf561fec35
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
en: d152484eb41ac6b4
|
|
16
16
|
zh: 09388d293f9be9cb
|
|
17
17
|
/deepseek-ai-dsh-client-ui-primitives/use-this-package:
|
|
18
|
-
en:
|
|
19
|
-
zh:
|
|
18
|
+
en: f8c98dfc44d83f20
|
|
19
|
+
zh: d2bc9a303100819f
|
|
20
20
|
/deepseek-ai-dsh-client-ui-primitives/use-this-package/component-catalog:
|
|
21
|
-
en:
|
|
22
|
-
zh:
|
|
21
|
+
en: 3f8b6fac225c7883
|
|
22
|
+
zh: dcb3a7715bcfe718
|
|
23
23
|
/deepseek-ai-dsh-client-ui-primitives/use-this-package/controls-and-icons:
|
|
24
24
|
en: ba57395620c1aab5
|
|
25
25
|
zh: 551f454132fb4669
|
|
26
26
|
/deepseek-ai-dsh-client-ui-primitives/use-this-package/rendering-agent-output:
|
|
27
|
-
en:
|
|
28
|
-
zh:
|
|
27
|
+
en: 0ce18b9886d9eb91
|
|
28
|
+
zh: 4da9c4e0324f80a1
|
|
29
29
|
/deepseek-ai-dsh-client-ui-primitives/use-this-package/localizing-copy:
|
|
30
30
|
en: feafe4919db13609
|
|
31
31
|
zh: 5216b661f4f84220
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
en: 6711120ef56212fb
|
|
34
34
|
zh: b18541d630196881
|
|
35
35
|
/deepseek-ai-dsh-client-ui-primitives/understand-the-implementation/source-map:
|
|
36
|
-
en:
|
|
37
|
-
zh:
|
|
36
|
+
en: 415043338fe88461
|
|
37
|
+
zh: 6d7c2a3c53a4575d
|
|
38
38
|
/deepseek-ai-dsh-client-ui-primitives/understand-the-implementation/input-modality:
|
|
39
|
-
en:
|
|
40
|
-
zh:
|
|
39
|
+
en: 9c9bc1ce845e92f9
|
|
40
|
+
zh: 547b7e0b087088f4
|
|
41
41
|
/deepseek-ai-dsh-client-ui-primitives/understand-the-implementation/streaming-markdown:
|
|
42
42
|
en: 8bbfa14c27f3bfd7
|
|
43
43
|
zh: 88f7548ac3a114e1
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
en: 45f4cd1ef96bb6d2
|
|
46
46
|
zh: f264d25b780ad1dc
|
|
47
47
|
/deepseek-ai-dsh-client-ui-primitives/further-exploration:
|
|
48
|
-
en:
|
|
49
|
-
zh:
|
|
48
|
+
en: a2983647e0d66ac1
|
|
49
|
+
zh: 2a117c313cb9f2c7
|
|
50
50
|
/deepseek-ai-dsh-client-ui-primitives/model-experience:
|
|
51
51
|
en: 3120df665299c634
|
|
52
52
|
zh: 1d9f365d091d0d2a
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Shared React UI atoms for the dsh web client: controls, icons, markdown and math rendering, and the terminal/read/diff/search/web output cards (zero Cordis)."
|
|
3
|
-
kind: "package-
|
|
3
|
+
kind: "package-reference"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# @deepseek-ai/dsh-client-ui-primitives
|
|
@@ -29,11 +29,11 @@ Checkboxes retain native input semantics with shared corner geometry and check a
|
|
|
29
29
|
|
|
30
30
|
`Toast` uses the theme’s toast background and label colors in both light and dark modes. `Menu` data rows and `MenuItemButton` component rows accept owner-provided effective shortcuts and align their keys at the trailing edge as muted text without a background, including submenus. Menu row separators align with the horizontal content edges of their rows. Menus hide these hints when the primary pointer is coarse (`pointer: coarse`) and [keyboard navigation](#input-modality) is inactive. Keyboard navigation reveals them until the next pointer press; keyboard bindings remain active. `ShortcutKeys` defaults to unboxed keys for menu and inline hints. Its `tooltip` variant uses lighter keycaps over the dark bubble and groups plus-separated combinations into one filled block. `Tooltip.shortcutKeys` vertically centers keycaps beside optional localized action text, or shows only keys when the label is empty. The optional `className` supplies owner interaction styles. `Modal` uses the frame’s shared overlay inset, with a minimum 24px viewport margin. Its mask leaves the Windows caption unpainted while the full-viewport layer blocks background clicks. `Modal` and the settings shell share top-layer Escape and Tab handling through `useModalLayer`, restoring the previous focus on close. A dialog that remains mounted restores focus left inside its closed layer, preserving focus already moved elsewhere. `closeTopModal(document)` requests the foreground modal’s current close action; newer menus or unregistered dialogs block dismissal of the modal behind them. Components use `isBehindModal` to avoid moving focus behind a nested dialog. Menus consume their local Escape before modal dismissal. `observeComposition` supplies the same composition-end and legacy IME guard to local modal and recording handlers; callers dispose its document listeners with their interaction lifetime.
|
|
31
31
|
|
|
32
|
-
`isMobileDevice()` identifies iOS and Android phones and tablets for automatic text-input focus and keyboard dismissal. It recognizes `Android`, `iPhone`, `iPad`, or `iPod` in the UA, and iPads reporting `MacIntel` with more than one touch point. Other devices, including Windows touchscreen computers, return false regardless of window width. The function caches its first result for all callers in the page; component remounts reuse that result, and reloading the page reads the browser environment again. Identified mobile devices require explicit text-input focus. Browser modes or custom UAs that conceal the mobile platform can prevent identification; unrecognized UAs return false. A desktop UA alone cannot distinguish Android tablets from Linux computers.
|
|
32
|
+
`isMobileDevice()` identifies iOS and Android phones and tablets for automatic text-input focus and keyboard dismissal. It recognizes `Android`, `iPhone`, `iPad`, or `iPod` in the UA, and iPads reporting `MacIntel` with more than one touch point. Other devices, including Windows touchscreen computers, return false regardless of window width. The function caches its first result for all callers in the page; component remounts reuse that result, and reloading the page reads the browser environment again. Identified mobile devices require explicit text-input focus. Browser modes or custom UAs that conceal the mobile platform can prevent identification; unrecognized UAs return false. A desktop UA alone cannot distinguish Android tablets from Linux computers. Slot components read the same answer through the [`useMobile`](../ui-responsive/README.md) standard prop.
|
|
33
33
|
|
|
34
34
|
Automatic modal entry and modal/menu return focus, including after Escape and application close shortcuts, use `focusWithoutRing(element, options?)` to suppress the outline until Tab or directional navigation resumes normal focus styling. Dialog containers keep their outline-free styling. Existing borders, shadows, and error states remain intact. Mark a dialog's initial control with `data-modal-autofocus` so the modal captures its invoking control before moving focus. Controls mounted with the dialog must not use React `autoFocus`, which runs before that capture. Tab and Shift+Tab from the dialog container enter its first and last focusable controls.
|
|
35
35
|
|
|
36
|
-
This package is a
|
|
36
|
+
This package is a dynamic plugin package with `immediately: true`, and its code runs only in the browser. Its `/client` entry, `lib/client.js`, built from `src/client/index.ts`, still exports values that other bundles require, a historical exception that will be reduced over time ([export discipline](../AGENTS.md#export-discipline-client-plugin-packages)); browser bundles reach those exports by package name or by the `/client` subpath, which name one module-table row. For compatibility with code outside the repository, the package root's types reuse the `./client` declarations, and its runtime, `lib/index.js` built from `src/index.js`, is the Host entry with an empty `apply` ([package roots](../AGENTS.md#hand-written-package-roots)). In Node the package root therefore provides no values: code imports them from the `/client` subpath, and tests that run them outside the browser resolve that subpath to source ([Client test runtime](../../test-support/client-runtime/README.md#module-resolution)); repository code names the package only through `/client`. Independent consumers supply its development dependencies ([dependency rules](../AGENTS.md#dependency-declaration)). Its Client build bundles KaTeX, Shiki, and the Markdown parser into `lib/client.js` and its chunks. The TypeScript, shell, and JSON grammars register with the entry; every other Shiki language downloads on first use with the chunks it requires. KaTeX's fonts are package assets under `lib/assets/vendor/katex/dist/fonts/`, one file per face.
|
|
37
37
|
|
|
38
38
|
Compose feature UI from these atoms whenever the web client needs a standard control or an agent-output renderer. They render through React only and take `--dsw-*` design tokens from the theme, so they fit any plugin without importing the theme or the slot system.
|
|
39
39
|
|
|
@@ -60,7 +60,8 @@ Check this table before writing a control in a feature package. A plugin cannot
|
|
|
60
60
|
| `MarqueeText`, `useHoverMarquee` | Single-line text that clips with an ellipsis at rest, and the hook that marquees it: spread the pointer handlers it returns onto the owning row, and while the pointer is on the row a clipped text travels at 30px/s to its far edge and holds there, fading the edges that still hide text; leaving returns it to the start at once. The stylesheet animates the travel, and the hook measures the overflow once per entry. `hold` keeps the text marqueed without the pointer, such as while the row's menu is open. Overflow of at most 8px, touch pointers, and text that fits stay put; reduced motion shows the far edge at once. |
|
|
61
61
|
| `StateDot` | Solid green `done`, amber `warning`, red `error`, and neutral-grey `idle` marks in a 10px slot, plus a tertiary-grey 14px rotating `ongoing` loader whose animations pin to document time zero on mount and on every animation restart, such as a list reorder, so every visible loader rotates in phase. `aria-hidden`, so the render site owns the name. `appearance="step"` shows a filled check for completion and a hollow pending circle. |
|
|
62
62
|
| `ConnectionIndicator` | Inline connection-recovery control across outage, retry, and recovered states. |
|
|
63
|
-
| `DisclosureRow` | 24px compact disclosure that lays title and content side by side. The header supplies tertiary at rest and secondary on hover; text and icons inherit it regardless of expandability or open state unless the caller supplies a feature-specific override. Semantic status colors remain explicit. Collapsed rows preview a down chevron on hover, and expanded rows keep an up chevron visible. `headerAccessory` places an independent action outside the disclosure target and shimmer; with an accessory, the title row shrinks to its content width. Memoized with shallow prop comparison; keep callbacks and React-node props stable when their content is unchanged. |
|
|
63
|
+
| `DisclosureRow` | 24px compact disclosure that lays title and content side by side. The header supplies tertiary at rest and secondary on hover; text and icons inherit it regardless of expandability or open state unless the caller supplies a feature-specific override. Semantic status colors remain explicit. Collapsed rows preview a down chevron on hover, and expanded rows keep an up chevron visible. `headerAccessory` places an independent action outside the disclosure target and shimmer; with an accessory, the title row shrinks to its content width. The header row carries `data-disclosure-row`, which callers may use to raise the specificity of their row, leading, and title class overrides. Memoized with shallow prop comparison; keep callbacks and React-node props stable when their content is unchanged. |
|
|
64
|
+
| `InspectButton` | Small pill with the inspect glyph that opens a process row's inspector record, placed in flow under the row's expanded body. It stays hidden until any `[data-inspect-scope]` ancestor is hovered or it has keyboard focus, and stays visible on touch-only devices. The caller supplies the localized `label`. |
|
|
64
65
|
| `AnimatedRows` | Keyed list movement with 200 ms glides and 100 ms entry/exit fades. Starts after local pointer or keyboard input, honors reduced motion, and settles loading or view replacement. Only rows intersecting both the list and the browser window animate; all rows remain mounted. Mark rows with `data-row-key`, supply matching `rowKeys`, and position the parent for the inert exit overlay; `role` and `label` belong to the caller. |
|
|
65
66
|
| `useRowDragPreview` | Native drag preview using an inert offscreen row copy. The optional `inheritedProperties` list names the CSS custom properties whose computed values the offscreen wrapper copies; omitting it copies none. Keep the list reference stable, because replacing it clears an active preview. Unlisted custom properties follow normal inheritance at the preview's location. Supply a class for the surface background and, for a child drag handle, pass the row to `start`; `clear` and unmount remove the copy. |
|
|
66
67
|
| `TextShimmer` | One left-to-right highlight across a row’s title, separators, summary, and suffix, with a 300ms initial delay, a one-second sweep and a 500ms rest. The mask spans the content width, capped by the visible row and tilts 15° from vertical, with a flat peak and soft edges. The moving decoration stays clipped to the row without enlarging its scrollable area. Base text inherits the caller’s color, including hover changes; the theme supplies the translucent highlight. Place icons and chevrons outside `TextShimmer` so only text and separators receive the highlight. A string child uses the same retained text interface; nested `TextShimmer` instances share the outer animation. Composite children render twice while active and must have no effects or element ids. Mark separators with `data-shimmer-decoration` so their fill receives the highlight. `DisclosureRow` forwards `contentClassName` for the text area and `contentLayoutClassName` for its inner layout. The inert decorative copy is excluded from interaction, selection, and accessibility; text updates retain the animation, and reduced-motion mode keeps the static base. |
|
|
@@ -82,7 +83,7 @@ Check this table before writing a control in a feature package. A plugin cannot
|
|
|
82
83
|
| `UserTextRun`, `ReferenceChip` | Uninterpreted inline text and business-resolved reference labels or activation buttons. |
|
|
83
84
|
| `CommandText` | Selectable command or argument text; only horizontal overflow adds a named keyboard focus target. |
|
|
84
85
|
| `TerminalBlock`, `ReadBlock`, `DiffBlock`, `SearchBlock`, `WebBlock` | The agent-output card matching each tool-result intent. |
|
|
85
|
-
| `icons/*`, `FishLogo`, `BrandWordmark`, `ReferenceIconRegular`/`ReferenceIconMedium`, `LinkIconRegular`/`LinkIconMedium` | Glyphs and brand marks. `IconDragHandleOutlineRegular`/`Medium` draw a three-line grip for reordering. `IconFilesDiffOutlineRegular`/`Medium` draw two stacked pages, the front one marked with a plus over a minus, for the changes across a set of files. The thinking glyph keeps an inset orbit within its 16px view box. `IconAppsAddOutlineRegular`/`Medium`, the More launcher glyph, take `compact` to draw their tiles closer together at card size. Use `LinkIconMedium` for 14px clickable-link categories and known-site marks. |
|
|
86
|
+
| `icons/*`, `FishLogo`, `BrandWordmark`, `ReferenceIconRegular`/`ReferenceIconMedium`, `LinkIconRegular`/`LinkIconMedium` | Glyphs and brand marks. `IconDragHandleOutlineRegular`/`Medium` draw a three-line grip for reordering, and `IconDragDotsFillRegular`/`Medium` draw six dots in an 8×14 box, for a drag mark beside a row whose whole surface is the drag source. `IconFilesDiffOutlineRegular`/`Medium` draw two stacked pages, the front one marked with a plus over a minus, for the changes across a set of files. The thinking glyph keeps an inset orbit within its 16px view box. `IconAppsAddOutlineRegular`/`Medium`, the More launcher glyph, take `compact` to draw their tiles closer together at card size. Use `LinkIconMedium` for 14px clickable-link categories and known-site marks. |
|
|
86
87
|
| `PermissionIconReadOnlyRegular`/`Medium`, `PermissionIconWorkspaceWriteRegular`/`Medium`, `PermissionIconFullAccessRegular`/`Medium`, `PermissionIconAutoReviewRegular`/`Medium` | Permission-mode glyphs for read-only, workspace-write, full-access, and auto-review choices. |
|
|
87
88
|
| `PluginArtworkTerminal`/`Loop`/`Subagent`/`Search`/`Default` | Fixed-palette 36×36 plugin artwork; `Terminal` supplies the light-blue prompt in plugin cards and sidebar guide entries. `Default` marks plugins without artwork of their own. Def ids are per-instance, so the same artwork repeats safely on one page. |
|
|
88
89
|
| `GuideArtworkBrowser`/`Files` | Fixed-palette 36×36 browser and folder artwork for sidebar guide entries. |
|
|
@@ -120,7 +121,7 @@ The nearest `MarkdownDelegateProvider` supplies optional `openExternalLink` and
|
|
|
120
121
|
|
|
121
122
|
Explicit `./`, `../`, slash/backslash-rooted paths (including UNC), and Windows drive paths such as `C:/work/file.ts` take precedence over URL parsing. Otherwise, destinations accepted by the absolute URL parser remain URLs: `index.ts:24`, `Makefile:12`, and `localhost:3000` are links, without adding a protocol or testing whether they can open. Use `./index.ts:24` for a file reference. Other destinations are paths. Authored links reject `javascript:`, `vbscript:`, `data:`, and `blob:`; other parseable protocols retain native navigation. HTTP(S) links retain delegated navigation and modified-click behavior. No click-time failure notice is added.
|
|
122
123
|
|
|
123
|
-
`MarkdownText` renders untrusted GFM and TeX math, blocks unsafe links and images, and can turn resolved file mentions into explicit controls. Copying a selection that lies inside one `MarkdownText` document and includes rendered math puts each whole formula on the clipboard as TeX source in both plain text and HTML, delimited as `$…$` inline and `$$…$$` for display math. Strikethrough requires `~~`; a single `~`, as in `10~20`, stays literal. Asterisk strong emphasis opens after CJK text before punctuation and closes after punctuation before CJK text, so `针对**“重连速度”**,` and `**注意:**内容` render bold without spaces around the markers. A bare URL ends before non-ASCII punctuation or symbols, such as `。` or `,`, so CJK prose that follows it stays outside the link. A surrounding `MarkdownDelegateProvider` receives sanitized HTTP(S) URLs from ordinary clicks; modified clicks and links outside a provider retain native external-anchor behavior. `omitHtml` renders raw HTML as nothing instead of literal text, for documents written for HTML renderers. When the owner passes a `pathImages` vocabulary, image destinations that are local media paths rewrite to displayable URLs on settled renders only (the same streaming gate as file mentions); without a vocabulary, local destinations remain inert alt text. Rewritten images accept HTTP(S), data, blob, and the Desktop `dsh-app://app/api/file`, `dsh-app://app/api/plugin-market/detail-file`, and `dsh-app://app/api/plugin-manager/detail-file` routes; authored Desktop URLs remain inert. A load or decode failure replaces the image with its authored alt text, or the original destination when alt is empty; `fileImages` additionally supplies a localized failure prefix. Changing the image source permits a fresh load. Each mounted image appends a `load` query parameter to a resolved Host `api/file` URL, because browsers reuse a same-URL image within one document despite `no-store`; a newly rendered image of an overwritten file therefore loads its current bytes, and every remount requests the file again; the Host file route redirects that request to a cacheable URL for the current file version. While a reply streams, it freezes completed blocks, advances a top-level open fence by completed lines, and highlights that fence from saved Shiki grammar state. Completed token lines enter fixed-size React groups, so later chunks reconcile only the growing group; an unchanged fence retains that DOM when the final full parse resolves cross-document syntax. `TerminalBlock`, `ReadBlock`, `DiffBlock`, `SearchBlock`, and `WebBlock` render the matching tool-result intent with copy controls, overflow handling, and ANSI processing where applicable. `JsonTree` and `JsonBlock` inspect JSON values read-only, while `UserTextRun` renders uninterpreted text and `ReferenceChip` renders business-resolved labels. An explicit `onActivate` makes a chip a keyboard-accessible button; repeated pointer clicks and an existing text selection do not activate it, while keyboard activation remains available. Labels inherit their host’s wrapping policy. Recognition and JSON transforms belong to [ui-conversation](../ui-conversation/README.md#sent-user-text).
|
|
124
|
+
`MarkdownText` renders untrusted GFM and TeX math, blocks unsafe links and images, and can turn resolved file mentions into explicit controls. Copying a selection that lies inside one `MarkdownText` document and includes rendered math puts each whole formula on the clipboard as TeX source in both plain text and HTML, delimited as `$…$` inline and `$$…$$` for display math. Strikethrough requires `~~`; a single `~`, as in `10~20`, stays literal. Asterisk strong emphasis opens after CJK text before punctuation and closes after punctuation before CJK text, so `针对**“重连速度”**,` and `**注意:**内容` render bold without spaces around the markers. A bare URL ends before non-ASCII punctuation or symbols, such as `。` or `,`, so CJK prose that follows it stays outside the link. A surrounding `MarkdownDelegateProvider` receives sanitized HTTP(S) URLs from ordinary clicks; modified clicks and links outside a provider retain native external-anchor behavior. `omitHtml` renders raw HTML as nothing instead of literal text, for documents written for HTML renderers. When the owner passes a `pathImages` vocabulary, image destinations that are local media paths rewrite to displayable URLs on settled renders only (the same streaming gate as file mentions); without a vocabulary, local destinations remain inert alt text. Rewritten images accept HTTP(S), data, blob, and the Desktop `dsh-app://app/api/file`, `dsh-app://app/api/plugin-market/detail-file`, and `dsh-app://app/api/plugin-manager/detail-file` routes; authored Desktop URLs remain inert. When the delegate supplies `fileImages`, a paragraph whose only elements are two or more images keeps 16px (4px in compact Markdown) between images on consecutive lines, text in that paragraph sits half that gap from its images, and the paragraph keeps its usual distance to neighboring blocks; linked images, images in tight list items, table cells, and headings, which have no paragraph element, and paragraphs inside nested ordered lists, which render inline, keep inline layout. A load or decode failure replaces the image with its authored alt text, or the original destination when alt is empty; `fileImages` additionally supplies a localized failure prefix. Changing the image source permits a fresh load. Each mounted image appends a `load` query parameter to a resolved Host `api/file` URL, because browsers reuse a same-URL image within one document despite `no-store`; a newly rendered image of an overwritten file therefore loads its current bytes, and every remount requests the file again; the Host file route redirects that request to a cacheable URL for the current file version. While a reply streams, it freezes completed blocks, advances a top-level open fence by completed lines, and highlights that fence from saved Shiki grammar state. Completed token lines enter fixed-size React groups, so later chunks reconcile only the growing group; an unchanged fence retains that DOM when the final full parse resolves cross-document syntax. `TerminalBlock`, `ReadBlock`, `DiffBlock`, `SearchBlock`, and `WebBlock` render the matching tool-result intent with copy controls, overflow handling, and ANSI processing where applicable. `JsonTree` and `JsonBlock` inspect JSON values read-only, while `UserTextRun` renders uninterpreted text and `ReferenceChip` renders business-resolved labels. An explicit `onActivate` makes a chip a keyboard-accessible button; repeated pointer clicks and an existing text selection do not activate it, while keyboard activation remains available. Labels inherit their host’s wrapping policy. Recognition and JSON transforms belong to [ui-conversation](../ui-conversation/README.md#sent-user-text).
|
|
124
125
|
|
|
125
126
|
`MarkdownText` defaults to `variant="body"`. Use `variant="compact"` for secondary content: its 13px text and 20px line height follow the content-size setting, all heading levels use the same size with weight 600, and paragraphs and lists use tighter spacing. Text, links, and code keep the tertiary color; dotted underlines distinguish links. Code headers scroll with their blocks. Tables and math stay enabled at the surrounding text size and scroll horizontally within the available width. Both variants share the parser and streaming cache. `textInteractionSource` marks its existing root as a source for text selection interactions.
|
|
126
127
|
|
|
@@ -178,22 +179,22 @@ The package enforces one separation: presentational React atoms with zero Cordis
|
|
|
178
179
|
|
|
179
180
|
| File | Role |
|
|
180
181
|
|---|---|
|
|
181
|
-
| [`src/index.ts`](src/index.ts) | Public atom exports |
|
|
182
|
-
| [`src/markdown/`](src/markdown/) | Markdown and math pipeline: micromark parsing, KaTeX typesetting, incremental streaming renderer, `CodeBlock`/`JsonBlock` |
|
|
183
|
-
| [`src/TerminalBlock.tsx`](src/TerminalBlock.tsx) | ANSI escape parsing (`anser`) and terminal card rendering |
|
|
184
|
-
| [`src/ReadBlock.tsx`](src/ReadBlock.tsx) / [`src/DiffBlock.tsx`](src/DiffBlock.tsx) | Read and diff cards |
|
|
185
|
-
| [`src/SearchBlock.tsx`](src/SearchBlock.tsx) / [`src/WebBlock.tsx`](src/WebBlock.tsx) | Search and web-retrieval cards |
|
|
186
|
-
| [`src/icons/`](src/icons/) | Default product glyph artwork, its `ICON_SYMBOLS` sprite documents, and the size-neutral `Regular` and `Medium` components that reference those symbols |
|
|
187
|
-
| [`src/code-highlighting.ts`](src/code-highlighting.ts) | Shared filename grammar selection and lazy line highlighting |
|
|
188
|
-
| [`src/input-modality.ts`](src/input-modality.ts) | Document-wide input modality published on `<html>` |
|
|
189
|
-
| [`src/plugin-artwork.tsx`](src/plugin-artwork.tsx) | Fixed-palette plugin artwork with per-instance SVG def ids |
|
|
190
|
-
| [`src/useAnchoredMaxHeight.ts`](src/useAnchoredMaxHeight.ts) | Height limits for bottom-anchored overlays |
|
|
191
|
-
| [`src/settings-form/`](src/settings-form/) | The settings page kit: the staged form model over a settings scope, the value and secret fields, and the form frame |
|
|
182
|
+
| [`src/client/index.ts`](src/client/index.ts) | Public atom exports |
|
|
183
|
+
| [`src/client/markdown/`](src/client/markdown/) | Markdown and math pipeline: micromark parsing, KaTeX typesetting, incremental streaming renderer, `CodeBlock`/`JsonBlock` |
|
|
184
|
+
| [`src/client/TerminalBlock.tsx`](src/client/TerminalBlock.tsx) | ANSI escape parsing (`anser`) and terminal card rendering |
|
|
185
|
+
| [`src/client/ReadBlock.tsx`](src/client/ReadBlock.tsx) / [`src/client/DiffBlock.tsx`](src/client/DiffBlock.tsx) | Read and diff cards |
|
|
186
|
+
| [`src/client/SearchBlock.tsx`](src/client/SearchBlock.tsx) / [`src/client/WebBlock.tsx`](src/client/WebBlock.tsx) | Search and web-retrieval cards |
|
|
187
|
+
| [`src/client/icons/`](src/client/icons/) | Default product glyph artwork, its `ICON_SYMBOLS` sprite documents, and the size-neutral `Regular` and `Medium` components that reference those symbols |
|
|
188
|
+
| [`src/client/code-highlighting.ts`](src/client/code-highlighting.ts) | Shared filename grammar selection and lazy line highlighting |
|
|
189
|
+
| [`src/client/input-modality.ts`](src/client/input-modality.ts) | Document-wide input modality published on `<html>` |
|
|
190
|
+
| [`src/client/plugin-artwork.tsx`](src/client/plugin-artwork.tsx) | Fixed-palette plugin artwork with per-instance SVG def ids |
|
|
191
|
+
| [`src/client/useAnchoredMaxHeight.ts`](src/client/useAnchoredMaxHeight.ts) | Height limits for bottom-anchored overlays |
|
|
192
|
+
| [`src/client/settings-form/`](src/client/settings-form/) | The settings page kit: the staged form model over a settings scope, the value and secret fields, and the form frame |
|
|
192
193
|
|
|
193
194
|
<a id="input-modality"></a>
|
|
194
195
|
### Input modality
|
|
195
196
|
|
|
196
|
-
[`input-modality.ts`](src/input-modality.ts) tracks input for tooltips and publishes `data-input-modality` on `<html>` for the [theme's focus styles](../ui-theme/README.md#understand-the-implementation). `pointerModality()` is true after pointer input and false after any key, including IME composition keys; `Tooltip` uses it to decide whether focus may show a bubble. The published attribute stays `pointer` until a non-composing navigation key (Tab, arrows, Home/End, PageUp/PageDown), or focus on a different control after a non-composing key. Refocusing the same control does not restore keyboard modality. Pointer input, an IME composition key, and window blur each clear the pending key; focus changes without a pending key leave the modality unchanged. The listeners live for the document lifetime; Node imports install none. The focus-change rule observes events exposed to window; components own additional navigation inside shadow roots that do not expose those events.
|
|
197
|
+
[`input-modality.ts`](src/client/input-modality.ts) tracks input for tooltips and publishes `data-input-modality` on `<html>` for the [theme's focus styles](../ui-theme/README.md#understand-the-implementation). `pointerModality()` is true after pointer input and false after any key, including IME composition keys; `Tooltip` uses it to decide whether focus may show a bubble. The published attribute stays `pointer` until a non-composing navigation key (Tab, arrows, Home/End, PageUp/PageDown), or focus on a different control after a non-composing key. Refocusing the same control does not restore keyboard modality. Pointer input, an IME composition key, and window blur each clear the pending key; focus changes without a pending key leave the modality unchanged. The listeners live for the document lifetime; Node imports install none. The focus-change rule observes events exposed to window; components own additional navigation inside shadow roots that do not expose those events.
|
|
197
198
|
|
|
198
199
|
### Streaming markdown
|
|
199
200
|
|
|
@@ -220,7 +221,7 @@ These pages place the atoms in the client stack and the design system.
|
|
|
220
221
|
|
|
221
222
|
-----
|
|
222
223
|
|
|
223
|
-
`QuotePreview` shares the compact quote excerpt and
|
|
224
|
+
`QuotePreview` shares the compact quote excerpt and its inline HoverCard between composers and sent messages. CSS ellipsizes the single-line excerpt, and the card opens on every hover whether or not the line is clipped, so mounting quotes reads no layout. The popover sizes to its text up to 300px and stays within the viewport. Both surfaces display the exact text unless the owner supplies a `QuoteSummary`: its label and body then replace the inline excerpt, assistive technology reads the title and optional detail in place of the label, and the popover shows its title, optional detail, and body. Editable drafts may supply a localized whole-quote removal action. Quotes opt into the nearest `HoverCardGroup` for exclusive preview display. The primitive performs no recognition or navigation.
|
|
224
225
|
|
|
225
226
|
`MarkdownDelegate.getTriggerProps` receives explicit file, URL, or original-image targets and returns gesture props. File paths and line numbers are carried by callbacks. File mentions can supply `contextMenuProps`; `ImageLightbox.contextMenuProps` delegates the original image gesture. An image menu owns Escape and Tab while it holds focus, returning to the preview before closing it.
|
|
226
227
|
|
package/README.zh.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "dsh Web 客户端共享的 React UI 原子组件:控件、图标、Markdown 与数学公式渲染,以及终端/读取/差异/搜索/网页输出卡片(零 Cordis)。"
|
|
3
|
-
kind: "package-
|
|
3
|
+
kind: "package-reference"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# @deepseek-ai/dsh-client-ui-primitives
|
|
@@ -29,11 +29,11 @@ kind: "package-library"
|
|
|
29
29
|
|
|
30
30
|
`Toast` 在浅色和深色模式下均使用主题的系统提示背景与文字颜色。`Menu` 数据条目与 `MenuItemButton` 组件条目接收功能 owner 提供的有效快捷键,并在末端以无背景的浅灰色文字对齐显示,子菜单也采用同一呈现。菜单行的分割线与该行内容区的左右边缘对齐。主指针为粗指针(`pointer: coarse`)且未使用[键盘导航](#input-modality)时,菜单隐藏这些提示。键盘导航会显示提示,直到下一次指针按下;快捷键绑定始终生效。`ShortcutKeys` 默认以无方块的按键文字显示菜单和行内提示。`tooltip` 变体在深色气泡上使用稍浅的键帽,以加号连接的组合则共用一个填充色块。`Tooltip.shortcutKeys` 将键帽与可选的本地化操作文本垂直居中排列,标签为空时只显示按键。可选的 `className` 供调用方设置交互状态样式。`Modal` 使用框架共享的浮层起点,视口边距至少为 24px。其遮罩不绘制 Windows 顶栏区域,覆盖整个视口的模态层仍阻挡背景点击。`Modal` 与设置外壳通过 `useModalLayer` 共用顶层 Esc 和 Tab 处理,关闭时恢复先前焦点。关闭后保留在 DOM 中的弹窗仅恢复仍停留于内部的焦点,不覆盖已经移到其他位置的焦点。`closeTopModal(document)` 请求前台弹窗当前的关闭操作;上层菜单或未注册的对话框会阻止关闭其后方弹窗。组件通过 `isBehindModal` 避免将焦点移到嵌套弹窗后方。菜单先消费自己的 Esc,再由模态层处理关闭。 `observeComposition` 为局部弹层和录键处理提供相同的 composition-end 与旧版 IME 保护;调用方随交互生命周期释放其 document 监听。
|
|
31
31
|
|
|
32
|
-
`isMobileDevice()` 识别 iOS 和 Android 手机及平板,供自动聚焦和收起键盘使用。它识别 UA 中的 `Android`、`iPhone`、`iPad` 或 `iPod`,以及报告 `MacIntel` 且触摸点数大于一的 iPad。其他设备(包括 Windows 触屏电脑)返回 false,不受窗口宽度影响。函数缓存首次判断结果,供页面内的所有调用方共享;组件重新挂载会复用该结果,重新加载页面时会再次读取浏览器环境。识别出的移动设备需要用户主动聚焦文本输入框。隐藏移动平台信息的浏览器模式或自定义 UA 可能导致识别失败;未识别的 UA 返回 false。仅凭桌面 UA 无法区分 Android 平板与 Linux 电脑。
|
|
32
|
+
`isMobileDevice()` 识别 iOS 和 Android 手机及平板,供自动聚焦和收起键盘使用。它识别 UA 中的 `Android`、`iPhone`、`iPad` 或 `iPod`,以及报告 `MacIntel` 且触摸点数大于一的 iPad。其他设备(包括 Windows 触屏电脑)返回 false,不受窗口宽度影响。函数缓存首次判断结果,供页面内的所有调用方共享;组件重新挂载会复用该结果,重新加载页面时会再次读取浏览器环境。识别出的移动设备需要用户主动聚焦文本输入框。隐藏移动平台信息的浏览器模式或自定义 UA 可能导致识别失败;未识别的 UA 返回 false。仅凭桌面 UA 无法区分 Android 平板与 Linux 电脑。Slot 组件通过标准 prop [`useMobile`](../ui-responsive/README.zh.md) 读取同一结果。
|
|
33
33
|
|
|
34
34
|
弹窗自动进入及弹窗、菜单回焦,包括通过 Esc 和应用关闭快捷键触发的回焦,均使用 `focusWithoutRing(element, options?)`,在 Tab 或方向键导航恢复正常焦点样式前抑制外轮廓线。弹窗容器仍不绘制焦点外框。原有边框、阴影和错误状态保持不变。用 `data-modal-autofocus` 标记弹窗的初始控件,让模态层先保存触发控件,再移动焦点。随弹窗挂载的控件不得使用 React `autoFocus`,因为它会在保存触发控件前执行。弹窗容器获得焦点时,Tab 和 Shift+Tab 分别进入第一个和最后一个可聚焦控件。
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
本包是带 `immediately: true` 的动态插件包,其代码只在浏览器中运行。它的 `/client` 入口 `lib/client.js`(由 `src/client/index.ts` 构建)目前仍导出供其他 bundle require 的实体值,这是会逐步缩减的历史例外([导出规则](../AGENTS.md#export-discipline-client-plugin-packages));浏览器中的 bundle 按包名或 `/client` 子路径取得这些导出,两者指向模块表中的同一行。为兼容仓库外的代码,包根的类型复用 `./client` 的声明,包根运行时 `lib/index.js`(由 `src/index.js` 构建)是只有空 `apply` 的 Host 入口([包根](../AGENTS.md#hand-written-package-roots))。因此在 Node 中包根不提供实体值:代码从 `/client` 子路径 import,在浏览器外运行这些值的测试把该子路径解析到源码([Client 测试运行时](../../test-support/client-runtime/README.zh.md#module-resolution));仓库代码只通过 `/client` 引用本包。独立消费方自行提供开发依赖([依赖规则](../AGENTS.md#dependency-declaration))。Client 构建把 KaTeX、Shiki 和 Markdown 解析器打包进 `lib/client.js` 及其 chunk。TypeScript、shell 和 JSON 语法随入口登记;其余 Shiki 语言在首次使用时连同它需要的 chunk 一起下载。KaTeX 的字体作为包资源位于 `lib/assets/vendor/katex/dist/fonts/`,每种字形一个文件。
|
|
37
37
|
|
|
38
38
|
只要 Web 客户端需要标准控件或 agent 输出渲染器,就用这些原子组件拼装功能 UI。它们只经 React 渲染,并从主题取得 `--dsw-*` 设计 token,因此无需导入主题或 slot 系统即可适配任意插件。
|
|
39
39
|
|
|
@@ -60,7 +60,8 @@ kind: "package-library"
|
|
|
60
60
|
| `MarqueeText`、`useHoverMarquee` | 静止时以省略号截断的单行文字,以及让它滚动显示的 hook:把 hook 返回的指针处理函数展开到所在的行上,指针停在行上时,被截断的文字以 30px/s 匀速移到末尾并停在那里,仍有文字被遮住的边缘渐隐;离开时立即回到开头。移动由样式表的动画完成,hook 每次进入只测量一次溢出宽度。`hold` 让文字在指针不在行上时也保持滚动显示,例如行的菜单打开期间。溢出不超过 8px、触摸指针以及放得下的文字都不滚动;减少动态效果时直接显示末尾。 |
|
|
61
61
|
| `StateDot` | 10px 槽内的绿色 `done`、琥珀色 `warning`、红色 `error`、中性灰色 `idle` 圆点,以及 tertiary 灰色 14px 旋转 `ongoing` loading,其动画在挂载时以及每次动画重启(如列表重排)时固定到文档时间零点,所以所有可见 loading 同相旋转。它是 `aria-hidden` 的,名称由渲染点提供。 `appearance="step"` 以实心勾表示完成、空心圆表示等待。 |
|
|
62
62
|
| `ConnectionIndicator` | 行内连接恢复控件,覆盖断线、重试与已恢复三种状态。 |
|
|
63
|
-
| `DisclosureRow` | 24px 紧凑折叠行,标题与内容左右排列。标题行默认使用 tertiary,悬停时使用 secondary;文字与图标继承该颜色,不受能否展开及开合状态影响,调用方可提供功能专属覆盖。语义状态色保持显式指定。收起时悬停预览向下箭头,展开后持续显示向上箭头。`headerAccessory`
|
|
63
|
+
| `DisclosureRow` | 24px 紧凑折叠行,标题与内容左右排列。标题行默认使用 tertiary,悬停时使用 secondary;文字与图标继承该颜色,不受能否展开及开合状态影响,调用方可提供功能专属覆盖。语义状态色保持显式指定。收起时悬停预览向下箭头,展开后持续显示向上箭头。`headerAccessory` 将独立操作放在折叠触发区域和流光之外;有此操作时,标题行收窄到内容宽度。标题行带有 `data-disclosure-row`,调用方可用它提高行、前导图标与标题覆盖类的选择器优先级。使用浅层 prop 比较进行 memo;内容未变时,保持回调与 React 节点 prop 的引用稳定。 |
|
|
64
|
+
| `InspectButton` | 带检查图标的胶囊按钮,用于在过程行的展开内容下方打开其检查器记录。它默认隐藏,直到任一 `[data-inspect-scope]` 祖先被悬停或自身获得键盘焦点;仅触摸设备上始终可见。调用方提供本地化的 `label`。 |
|
|
64
65
|
| `AnimatedRows` | 带键列表的位移动画:移动为 200 ms,进出淡变为 100 ms。列表内发生指针或键盘输入后才启用,遵循减少动态效果设置,加载或替换视图时直接完成。只有同时与列表和浏览器窗口相交的行才做动画,所有行仍保持挂载。为行标记 `data-row-key` 并传入对应的 `rowKeys`,为父容器设置定位以承载不可交互的退出层;`role` 和 `label` 由调用方提供。 |
|
|
65
66
|
| `useRowDragPreview` | 使用不可交互的离屏行副本生成原生拖拽预览。可选的 `inheritedProperties` 列表指定离屏包装层需要复制其计算值的 CSS 自定义属性;省略时不复制。列表引用需保持稳定,因为替换列表会清除活动预览。未列出的自定义属性按预览所在位置的正常继承规则生效。传入设置表面底色的类名;拖拽来自子级手柄时,将行元素传给 `start`;`clear` 和卸载会移除副本。 |
|
|
66
67
|
| `TextShimmer` | 同一道高光从左到右扫过一行的标题、分隔符、摘要与后缀:首次等待 300ms,扫动一秒,再静止 500ms。遮罩覆盖内容宽度,并限制在可见行宽内,相对垂直方向倾斜 15°,峰值区域平坦,两侧柔和渐隐。移动的装饰层始终裁剪在行内,不会扩大可滚动区域。底色继承调用方的颜色,包括悬停变化;主题提供半透明高光。图标和箭头放在 `TextShimmer` 外,只有文字和分隔符参与扫光。字符串子节点沿用稳定的文字接口;嵌套的 `TextShimmer` 共用外层动画。活动期间组合子节点渲染两次,因此不得带副作用或元素 id。分隔符标记 `data-shimmer-decoration`,让填色参与扫光。`DisclosureRow` 将 `contentClassName` 传给文字区域,将 `contentLayoutClassName` 传给内部布局。惰性装饰副本不参与交互、选区和无障碍访问;文字更新保留动画,减少动态效果模式保留静态底色。 |
|
|
@@ -82,7 +83,7 @@ kind: "package-library"
|
|
|
82
83
|
| `UserTextRun`、`ReferenceChip` | 不做解析的行内文本,以及业务已解析的引用标签或激活按钮。 |
|
|
83
84
|
| `CommandText` | 可选中的命令或参数文本;仅横向溢出时添加具名的键盘聚焦目标。 |
|
|
84
85
|
| `TerminalBlock`、`ReadBlock`、`DiffBlock`、`SearchBlock`、`WebBlock` | 与各类工具结果意图对应的 agent 输出卡片。 |
|
|
85
|
-
| `icons/*`、`FishLogo`、`BrandWordmark`、`ReferenceIconRegular`/`ReferenceIconMedium`、`LinkIconRegular`/`LinkIconMedium` | 字形与品牌标识。`IconDragHandleOutlineRegular`/`Medium`
|
|
86
|
+
| `icons/*`、`FishLogo`、`BrandWordmark`、`ReferenceIconRegular`/`ReferenceIconMedium`、`LinkIconRegular`/`LinkIconMedium` | 字形与品牌标识。`IconDragHandleOutlineRegular`/`Medium` 以三条横线表示可拖动的排序手柄;`IconDragDotsFillRegular`/`Medium` 在 8×14 的框内绘制六个圆点,用作整行可拖动的行旁的拖动标记。`IconFilesDiffOutlineRegular`/`Medium` 画两页叠放的文件,前页带上加下减,表示一组文件的变更。思考图标的轨道在 16px 视口内保留内边距。“更多”入口使用的 `IconAppsAddOutlineRegular`/`Medium` 接受 `compact`,在卡片尺寸下让方块更靠近。`LinkIconMedium` 用于 14px 的可点击链接分类及已知站点标记。 |
|
|
86
87
|
| `PermissionIconReadOnlyRegular`/`Medium`、`PermissionIconWorkspaceWriteRegular`/`Medium`、`PermissionIconFullAccessRegular`/`Medium`、`PermissionIconAutoReviewRegular`/`Medium` | 只读、工作区写入、完全访问与自动审查选项使用的权限模式图形。 |
|
|
87
88
|
| `PluginArtworkTerminal`/`Loop`/`Subagent`/`Search`/`Default` | 固定配色的 36×36 插件插画;`Terminal` 为插件卡片和侧边栏开始页入口提供浅蓝色提示符。`Default` 用于没有自有插画的插件。def id 按实例生成,同一插画可在一页中安全重复。 |
|
|
88
89
|
| `GuideArtworkBrowser`/`Files` | 固定配色的 36×36 浏览器与文件夹插画,用于侧栏引导入口。 |
|
|
@@ -120,7 +121,7 @@ kind: "package-library"
|
|
|
120
121
|
|
|
121
122
|
明确的 `./`、`../`、斜杠或反斜杠开头的路径(包括 UNC),以及 `C:/work/file.ts` 这样的 Windows 盘符路径优先于 URL 解析。其余目标若能被绝对 URL 解析器接受,就保留为 URL:`index.ts:24`、`Makefile:12` 和 `localhost:3000` 均为链接,不补协议,也不预先检查能否打开。文件引用使用 `./index.ts:24`。其他目标视为路径。正文链接禁止 `javascript:`、`vbscript:`、`data:` 和 `blob:`;其余可解析的协议保留原生导航。HTTP(S) 链接保留委托导航和修饰键点击行为。不添加点击后的失败提示。
|
|
122
123
|
|
|
123
|
-
`MarkdownText` 渲染不可信的 GFM 与 TeX 公式、阻止不安全的链接与图片,并可把已解析的文件提及转换为显式控件。复制位于同一个 `MarkdownText` 文档内且包含已渲染公式的选区时,每个完整公式会以 TeX 源码同时写入剪贴板的纯文本和 HTML 格式,行内公式用 `$…$` 包裹,展示公式用 `$$…$$` 包裹。删除线需要 `~~`;单个 `~`(如 `10~20`)保持字面文本。星号加粗在汉字之后、标点之前可以开启,在标点之后、汉字之前可以闭合,因此 `针对**“重连速度”**,` 与 `**注意:**内容` 无需在标记两侧加空格也能加粗。裸 URL 在非 ASCII 标点或符号(如 `。`、`,`)前结束,紧随其后的中文正文不会并入链接。外层 `MarkdownDelegateProvider` 会接收普通点击产生的已净化 HTTP(S) URL;带修饰键的点击和 Provider 外的链接保留原生外部 anchor 行为。`omitHtml` 不渲染原始 HTML,而不是将其显示为原样文本,用于为 HTML 渲染器编写的文档。当 owner 传入 `pathImages` 词表时,本地媒体路径的图片目标只在落定渲染阶段重写为可展示 URL(与 file mentions 相同的流式门);不传词表时本地目标保持惰性 alt 文本。重写后的图片支持 HTTP(S)、data、blob 及桌面端 `dsh-app://app/api/file`、`dsh-app://app/api/plugin-market/detail-file` 与 `dsh-app://app/api/plugin-manager/detail-file` 路由;正文直接书写的桌面端 URL
|
|
124
|
+
`MarkdownText` 渲染不可信的 GFM 与 TeX 公式、阻止不安全的链接与图片,并可把已解析的文件提及转换为显式控件。复制位于同一个 `MarkdownText` 文档内且包含已渲染公式的选区时,每个完整公式会以 TeX 源码同时写入剪贴板的纯文本和 HTML 格式,行内公式用 `$…$` 包裹,展示公式用 `$$…$$` 包裹。删除线需要 `~~`;单个 `~`(如 `10~20`)保持字面文本。星号加粗在汉字之后、标点之前可以开启,在标点之后、汉字之前可以闭合,因此 `针对**“重连速度”**,` 与 `**注意:**内容` 无需在标记两侧加空格也能加粗。裸 URL 在非 ASCII 标点或符号(如 `。`、`,`)前结束,紧随其后的中文正文不会并入链接。外层 `MarkdownDelegateProvider` 会接收普通点击产生的已净化 HTTP(S) URL;带修饰键的点击和 Provider 外的链接保留原生外部 anchor 行为。`omitHtml` 不渲染原始 HTML,而不是将其显示为原样文本,用于为 HTML 渲染器编写的文档。当 owner 传入 `pathImages` 词表时,本地媒体路径的图片目标只在落定渲染阶段重写为可展示 URL(与 file mentions 相同的流式门);不传词表时本地目标保持惰性 alt 文本。重写后的图片支持 HTTP(S)、data、blob 及桌面端 `dsh-app://app/api/file`、`dsh-app://app/api/plugin-market/detail-file` 与 `dsh-app://app/api/plugin-manager/detail-file` 路由;正文直接书写的桌面端 URL 仍保持惰性。当委托提供 `fileImages` 时,若段落中的元素只有两张或更多图片,上下相邻两行图片之间保持 16px(紧凑 Markdown 中为 4px),段落内的文字与图片相距半个段落间距,段落与相邻块之间的距离保持不变;带链接的图片,紧排列表项、表格单元格和标题中的图片(这些位置没有段落元素),以及嵌套有序列表中按行内方式渲染的段落,保持行内排版。加载或解码失败后,图片替换为作者的 alt 文本;alt 为空时显示原始目标路径;`fileImages` 还提供本地化的失败提示前缀。图片源变化后可重新加载。每个挂载的图片会为解析得到的 Host `api/file` 地址追加 `load` 查询参数,因为浏览器在同一文档内会无视 `no-store` 复用相同 URL 的图片;因此覆盖后的文件在新渲染的图片中会加载当前内容,每次重新挂载都会重新请求该文件;Host 文件路由会把该请求重定向到当前文件版本的可缓存地址。回复流式输出时,它冻结已完成的块、按已完成行推进顶层未闭合 fence,并从保存的 Shiki grammar state 为该 fence 增量高亮。已完成的 token 行进入固定大小的 React 分组,后续分片只 reconcile 正在增长的分组;最终全量解析解决跨文档语法时,未变化的 fence 会保留该 DOM。`TerminalBlock`、`ReadBlock`、`DiffBlock`、`SearchBlock` 与 `WebBlock` 把对应的工具结果意图渲染为带复制控件、溢出处理及适用时 ANSI 处理的卡片。`JsonTree` 与 `JsonBlock` 以只读方式检查 JSON 值;`UserTextRun` 渲染不做解析的文本,`ReferenceChip` 渲染业务已解析的标签。显式传入 `onActivate` 后,胶囊成为可由键盘操作的按钮;重复指针点击和已有文本选区不触发激活,键盘激活仍然可用。标签继承所属容器的换行规则。识别和 JSON 变换由 [ui-conversation](../ui-conversation/README.zh.md#sent-user-text) 负责。
|
|
124
125
|
|
|
125
126
|
`MarkdownText` 默认为 `variant="body"`。次级内容使用 `variant="compact"`:其 13px 字号与 20px 行高跟随内容字号设置,各级标题保持同一字号并使用 600 字重,段落与列表采用更紧凑的间距。正文、链接和代码均保持 tertiary 颜色,以点状下划线区分链接。代码标题栏随代码块滚动。表格和公式仍然启用,使用周围文字的字号,并在可用宽度内横向滚动。两个变体共享解析器与流式缓存。 `textInteractionSource` 将已有根元素标记为文本选区交互的来源。
|
|
126
127
|
|
|
@@ -178,22 +179,22 @@ Markdown 链接图标保留完整图标框及内部留白。与前文的外间
|
|
|
178
179
|
|
|
179
180
|
| 文件 | 职责 |
|
|
180
181
|
|---|---|
|
|
181
|
-
| [`src/index.ts`](src/index.ts) | 原子组件公开导出 |
|
|
182
|
-
| [`src/markdown/`](src/markdown/) | Markdown 与数学公式流水线:micromark 解析、KaTeX 排版、增量流式渲染器、`CodeBlock`/`JsonBlock` |
|
|
183
|
-
| [`src/TerminalBlock.tsx`](src/TerminalBlock.tsx) | ANSI 转义解析(`anser`)与终端卡片渲染 |
|
|
184
|
-
| [`src/ReadBlock.tsx`](src/ReadBlock.tsx) / [`src/DiffBlock.tsx`](src/DiffBlock.tsx) | 读取与差异卡片 |
|
|
185
|
-
| [`src/SearchBlock.tsx`](src/SearchBlock.tsx) / [`src/WebBlock.tsx`](src/WebBlock.tsx) | 搜索与网页检索卡片 |
|
|
186
|
-
| [`src/icons/`](src/icons/) | 默认产品图标图形、其 `ICON_SYMBOLS` sprite 文档,以及引用这些 symbol 的与尺寸无关的 `Regular` 和 `Medium` 组件 |
|
|
187
|
-
| [`src/code-highlighting.ts`](src/code-highlighting.ts) | 共享的文件名 grammar 选择与惰性逐行高亮 |
|
|
188
|
-
| [`src/input-modality.ts`](src/input-modality.ts) | 全文档输入模态,发布到 `<html>` |
|
|
189
|
-
| [`src/plugin-artwork.tsx`](src/plugin-artwork.tsx) | 固定配色插件插画,SVG def id 按实例生成 |
|
|
190
|
-
| [`src/useAnchoredMaxHeight.ts`](src/useAnchoredMaxHeight.ts) | 底部锚定浮层的高度限制 |
|
|
191
|
-
| [`src/settings-form/`](src/settings-form/) | 设置页套件:基于设置 scope 的暂存表单模型、值字段与密文字段、表单框架 |
|
|
182
|
+
| [`src/client/index.ts`](src/client/index.ts) | 原子组件公开导出 |
|
|
183
|
+
| [`src/client/markdown/`](src/client/markdown/) | Markdown 与数学公式流水线:micromark 解析、KaTeX 排版、增量流式渲染器、`CodeBlock`/`JsonBlock` |
|
|
184
|
+
| [`src/client/TerminalBlock.tsx`](src/client/TerminalBlock.tsx) | ANSI 转义解析(`anser`)与终端卡片渲染 |
|
|
185
|
+
| [`src/client/ReadBlock.tsx`](src/client/ReadBlock.tsx) / [`src/client/DiffBlock.tsx`](src/client/DiffBlock.tsx) | 读取与差异卡片 |
|
|
186
|
+
| [`src/client/SearchBlock.tsx`](src/client/SearchBlock.tsx) / [`src/client/WebBlock.tsx`](src/client/WebBlock.tsx) | 搜索与网页检索卡片 |
|
|
187
|
+
| [`src/client/icons/`](src/client/icons/) | 默认产品图标图形、其 `ICON_SYMBOLS` sprite 文档,以及引用这些 symbol 的与尺寸无关的 `Regular` 和 `Medium` 组件 |
|
|
188
|
+
| [`src/client/code-highlighting.ts`](src/client/code-highlighting.ts) | 共享的文件名 grammar 选择与惰性逐行高亮 |
|
|
189
|
+
| [`src/client/input-modality.ts`](src/client/input-modality.ts) | 全文档输入模态,发布到 `<html>` |
|
|
190
|
+
| [`src/client/plugin-artwork.tsx`](src/client/plugin-artwork.tsx) | 固定配色插件插画,SVG def id 按实例生成 |
|
|
191
|
+
| [`src/client/useAnchoredMaxHeight.ts`](src/client/useAnchoredMaxHeight.ts) | 底部锚定浮层的高度限制 |
|
|
192
|
+
| [`src/client/settings-form/`](src/client/settings-form/) | 设置页套件:基于设置 scope 的暂存表单模型、值字段与密文字段、表单框架 |
|
|
192
193
|
|
|
193
194
|
<a id="input-modality"></a>
|
|
194
195
|
### 输入模态
|
|
195
196
|
|
|
196
|
-
[`input-modality.ts`](src/input-modality.ts) 为 tooltip 跟踪输入,并在 `<html>` 上发布 `data-input-modality`,供[主题焦点样式](../ui-theme/README.zh.md#understand-the-implementation)使用。`pointerModality()` 在指针输入后为 true,在任意按键后为 false,包括 IME(输入法)组合输入按键;`Tooltip` 据此决定聚焦时是否可以显示气泡。发布的属性保持 `pointer`,直到非组合输入的导航键(Tab、方向键、Home/End、PageUp/PageDown)到达,或非组合输入按键之后焦点移到不同控件。重新聚焦同一控件不会恢复键盘模态。指针输入、IME 组合输入按键和 window blur 都会清除待处理按键;没有待处理按键的焦点变化不改变模态。监听器与文档同寿命;从 Node 导入时不安装监听器。 焦点变化规则只观察传到 window 的事件;shadow root 内部不向外暴露这些事件的额外导航由组件负责。
|
|
197
|
+
[`input-modality.ts`](src/client/input-modality.ts) 为 tooltip 跟踪输入,并在 `<html>` 上发布 `data-input-modality`,供[主题焦点样式](../ui-theme/README.zh.md#understand-the-implementation)使用。`pointerModality()` 在指针输入后为 true,在任意按键后为 false,包括 IME(输入法)组合输入按键;`Tooltip` 据此决定聚焦时是否可以显示气泡。发布的属性保持 `pointer`,直到非组合输入的导航键(Tab、方向键、Home/End、PageUp/PageDown)到达,或非组合输入按键之后焦点移到不同控件。重新聚焦同一控件不会恢复键盘模态。指针输入、IME 组合输入按键和 window blur 都会清除待处理按键;没有待处理按键的焦点变化不改变模态。监听器与文档同寿命;从 Node 导入时不安装监听器。 焦点变化规则只观察传到 window 的事件;shadow root 内部不向外暴露这些事件的额外导航由组件负责。
|
|
197
198
|
|
|
198
199
|
### 流式 Markdown
|
|
199
200
|
|
|
@@ -220,7 +221,7 @@ Markdown 链接图标保留完整图标框及内部留白。与前文的外间
|
|
|
220
221
|
|
|
221
222
|
-----
|
|
222
223
|
|
|
223
|
-
`QuotePreview` 在 composer 与已发送消息之间共享紧凑 quote
|
|
224
|
+
`QuotePreview` 在 composer 与已发送消息之间共享紧凑 quote 摘录及其行内 HoverCard。单行摘录由 CSS 省略,无论是否被截断,每次悬停都会打开弹层,因此挂载 quote 时不读取布局。原文弹层按文本内容确定宽度,最大为 300px,并限制在视口内。两处均展示原文,除非所有者提供 `QuoteSummary`:此时行内摘录改为显示其 label 和 body,辅助技术以 title 和可选的 detail 代替 label 朗读,弹层显示其 title、可选的 detail 和 body。可编辑草稿可以提供本地化的整条 quote 删除操作。quote 加入最近的 `HoverCardGroup`,使原文弹层互斥显示。该 primitive 不负责识别或导航。
|
|
224
225
|
|
|
225
226
|
`MarkdownDelegate.getTriggerProps` 接收明确的文件、链接或原图目标并返回手势 props。文件路径与行号通过回调传递。文件引用可提供 `contextMenuProps`;`ImageLightbox.contextMenuProps` 转发原图手势。图片菜单持有焦点时负责 Escape 与 Tab,先返回预览再关闭预览。
|
|
226
227
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|