@pstdio/ui 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/main.ts +28 -0
- package/.storybook/preview.tsx +28 -0
- package/.storybook/vitest.setup.ts +6 -0
- package/README.md +72 -0
- package/package.json +91 -0
- package/src/components/alert.tsx +27 -0
- package/src/components/breadcrumb.stories.tsx +40 -0
- package/src/components/breadcrumb.tsx +67 -0
- package/src/components/button.stories.tsx +151 -0
- package/src/components/chat-ui/agent-types.ts +231 -0
- package/src/components/chat-ui/components/ai-conversation.stories.tsx +49 -0
- package/src/components/chat-ui/components/ai-conversation.tsx +68 -0
- package/src/components/chat-ui/components/ai-message.stories.tsx +60 -0
- package/src/components/chat-ui/components/ai-message.tsx +103 -0
- package/src/components/chat-ui/components/ai-response.stories.tsx +48 -0
- package/src/components/chat-ui/components/ai-response.tsx +19 -0
- package/src/components/chat-ui/components/approval-prompt.tsx +51 -0
- package/src/components/chat-ui/components/attachment-list.stories.tsx +24 -0
- package/src/components/chat-ui/components/attachment-list.tsx +76 -0
- package/src/components/chat-ui/components/auto-scroll.tsx +42 -0
- package/src/components/chat-ui/components/chat-input.stories.tsx +114 -0
- package/src/components/chat-ui/components/chat-input.tsx +142 -0
- package/src/components/chat-ui/components/chat-panel.stories.tsx +396 -0
- package/src/components/chat-ui/components/chat-panel.tsx +97 -0
- package/src/components/chat-ui/components/message-parts-renderer.stories.tsx +59 -0
- package/src/components/chat-ui/components/message-parts-renderer.tsx +133 -0
- package/src/components/chat-ui/components/message-types.ts +40 -0
- package/src/components/chat-ui/components/model-swap-separator.stories.tsx +27 -0
- package/src/components/chat-ui/components/model-swap-separator.tsx +20 -0
- package/src/components/chat-ui/components/send-button.tsx +56 -0
- package/src/components/chat-ui/components/timeline.tsx +414 -0
- package/src/components/chat-ui/components/tool-invocation-timeline.stories.tsx +32 -0
- package/src/components/chat-ui/components/tool-invocation-timeline.tsx +16 -0
- package/src/components/chat-ui/mocks/full-conversation-normalized.json +3557 -0
- package/src/components/chat-ui/tool-rendering/build-timeline.ts +127 -0
- package/src/components/chat-ui/tool-rendering/default-renderers.ts +420 -0
- package/src/components/chat-ui/tool-rendering/index.ts +3 -0
- package/src/components/chat-ui/tool-rendering/types.ts +19 -0
- package/src/components/chat-ui/utils/diff.ts +228 -0
- package/src/components/chat-ui/utils/editor-state.ts +5 -0
- package/src/components/chat-ui/utils/get-icon.ts +81 -0
- package/src/components/code-editor.tsx +147 -0
- package/src/components/column-file-browser.stories.tsx +217 -0
- package/src/components/column-file-browser.tsx +380 -0
- package/src/components/content-placeholder.tsx +21 -0
- package/src/components/data-table/build-columns.tsx +78 -0
- package/src/components/data-table/data-table.css +51 -0
- package/src/components/data-table/data-table.stories.tsx +209 -0
- package/src/components/data-table/data-table.tsx +232 -0
- package/src/components/data-table/helpers.tsx +69 -0
- package/src/components/data-table/index.ts +3 -0
- package/src/components/data-table/pagination-footer.tsx +58 -0
- package/src/components/data-table/selection-toolbar.tsx +26 -0
- package/src/components/data-table/types.ts +21 -0
- package/src/components/delete-confirmation-modal.stories.tsx +46 -0
- package/src/components/delete-confirmation-modal.tsx +56 -0
- package/src/components/diff-bubble.stories.tsx +70 -0
- package/src/components/diff-bubble.tsx +70 -0
- package/src/components/diff-card.tsx +139 -0
- package/src/components/diff-drawer.stories.tsx +106 -0
- package/src/components/diff-drawer.tsx +59 -0
- package/src/components/diff-editor.tsx +55 -0
- package/src/components/drawer-inline.stories.tsx +124 -0
- package/src/components/drawer-inline.tsx +90 -0
- package/src/components/empty-state.stories.tsx +65 -0
- package/src/components/empty-state.tsx +28 -0
- package/src/components/error-boundary.tsx +80 -0
- package/src/components/file-selector.stories.tsx +166 -0
- package/src/components/file-selector.tsx +192 -0
- package/src/components/file-tree-helpers.ts +28 -0
- package/src/components/horizontal-menu-stack.tsx +15 -0
- package/src/components/info-card.stories.tsx +120 -0
- package/src/components/info-card.tsx +60 -0
- package/src/components/item-section.stories.tsx +57 -0
- package/src/components/item-section.tsx +57 -0
- package/src/components/layout.stories.tsx +341 -0
- package/src/components/layout.tsx +67 -0
- package/src/components/menu-item.stories.tsx +162 -0
- package/src/components/menu-item.tsx +207 -0
- package/src/components/number-input.tsx +21 -0
- package/src/components/open-source-notices-screen.stories.tsx +69 -0
- package/src/components/open-source-notices-screen.tsx +154 -0
- package/src/components/panel-menu.stories.tsx +44 -0
- package/src/components/panel-menu.tsx +27 -0
- package/src/components/param-editor-color-input.tsx +98 -0
- package/src/components/param-editor-date-input.tsx +106 -0
- package/src/components/param-editor-horizontal-text-input.tsx +130 -0
- package/src/components/param-editor-horizontal.stories.tsx +545 -0
- package/src/components/param-editor-horizontal.tsx +137 -0
- package/src/components/param-editor-input-group.tsx +145 -0
- package/src/components/param-editor-number-input.tsx +145 -0
- package/src/components/param-editor-selection-input.tsx +181 -0
- package/src/components/param-editor-text-input.tsx +113 -0
- package/src/components/param-editor.stories.tsx +986 -0
- package/src/components/param-editor.tsx +142 -0
- package/src/components/param-editor.types.ts +95 -0
- package/src/components/properties.stories.tsx +108 -0
- package/src/components/properties.tsx +73 -0
- package/src/components/pstdio-logo.tsx +26 -0
- package/src/components/resource-badge.stories.tsx +26 -0
- package/src/components/resource-badge.tsx +173 -0
- package/src/components/rich-text/collaborative-markdown-editor/awareness-cursors.tsx +45 -0
- package/src/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.stories.tsx +230 -0
- package/src/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.tsx +131 -0
- package/src/components/rich-text/index.ts +14 -0
- package/src/components/rich-text/markdown-editor/markdown-editor.stories.tsx +147 -0
- package/src/components/rich-text/markdown-editor/markdown-editor.tsx +112 -0
- package/src/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkNode.tsx +100 -0
- package/src/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.ts +32 -0
- package/src/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/index.ts +2 -0
- package/src/components/rich-text/prompt-input/commands.ts +44 -0
- package/src/components/rich-text/prompt-input/events.ts +21 -0
- package/src/components/rich-text/prompt-input/plugins/CommentPlugin/CommentPlugin.tsx +8 -0
- package/src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentCommands.ts +49 -0
- package/src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentSchema.ts +30 -0
- package/src/components/rich-text/prompt-input/plugins/CommentPlugin/nodes/CommentNode/CommentNode.tsx +127 -0
- package/src/components/rich-text/prompt-input/plugins/ImperativeAPIPlugin.tsx +32 -0
- package/src/components/rich-text/prompt-input/plugins/KeyboardShortcutPlugin.tsx +30 -0
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuOption.ts +15 -0
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuPlugin.tsx +88 -0
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenu.tsx +90 -0
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenuItem.tsx +50 -0
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/constants.ts +3 -0
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/hooks/useContextLookup.tsx +50 -0
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/checkForTriggers.ts +45 -0
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/getSortedMenuOptions.ts +20 -0
- package/src/components/rich-text/prompt-input/plugins/ReferencePlugin/ReferencePlugin.tsx +50 -0
- package/src/components/rich-text/prompt-input/plugins/ReferencePlugin/nodes/ReferenceNode/ReferenceNode.tsx +107 -0
- package/src/components/rich-text/prompt-input/plugins/keyboard-shortcuts.ts +13 -0
- package/src/components/rich-text/prompt-input/prompt-input.stories.tsx +87 -0
- package/src/components/rich-text/prompt-input/prompt-input.tsx +106 -0
- package/src/components/rich-text/prompt-input/theme/prompt-input-theme.css +3 -0
- package/src/components/rich-text/prompt-input/theme/prompt-input-theme.ts +11 -0
- package/src/components/rich-text/prompt-input/utils.ts +158 -0
- package/src/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkNode.tsx +100 -0
- package/src/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.ts +32 -0
- package/src/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/index.ts +2 -0
- package/src/components/rich-text/rich-message/rich-message.stories.tsx +146 -0
- package/src/components/rich-text/rich-message/rich-message.tsx +118 -0
- package/src/components/rich-text/shared/components/content-editable.tsx +28 -0
- package/src/components/rich-text/shared/components/default-rich-text-components.tsx +99 -0
- package/src/components/rich-text/shared/editor-config.ts +38 -0
- package/src/components/rich-text/shared/nodes/DataTableNode.stories.tsx +52 -0
- package/src/components/rich-text/shared/nodes/DataTableNode.tsx +73 -0
- package/src/components/rich-text/shared/plugins/CodePlugin/CodeBlockPlugin.tsx +22 -0
- package/src/components/rich-text/shared/plugins/CodePlugin/CodeNode.tsx +57 -0
- package/src/components/rich-text/shared/plugins/EquationPlugin/EquationComponent.tsx +46 -0
- package/src/components/rich-text/shared/plugins/EquationPlugin/EquationNode.tsx +161 -0
- package/src/components/rich-text/shared/plugins/EquationPlugin/EquationPlugin.css +16 -0
- package/src/components/rich-text/shared/plugins/EquationPlugin/EquationPlugin.tsx +45 -0
- package/src/components/rich-text/shared/plugins/EquationPlugin/KatexRenderer.tsx +40 -0
- package/src/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatToolbarPlugin.css +26 -0
- package/src/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatToolbarPlugin.tsx +414 -0
- package/src/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/index.ts +1 -0
- package/src/components/rich-text/shared/plugins/HorizontalRulePlugin/HorizontalRuleNode.ts +52 -0
- package/src/components/rich-text/shared/plugins/HorizontalRulePlugin/horizontalRule.ts +16 -0
- package/src/components/rich-text/shared/plugins/LinkEditorPlugin/LinkEditorPlugin.css +163 -0
- package/src/components/rich-text/shared/plugins/LinkEditorPlugin/LinkEditorPlugin.tsx +355 -0
- package/src/components/rich-text/shared/plugins/LinkEditorPlugin/LinkPlugin.tsx +6 -0
- package/src/components/rich-text/shared/plugins/LinkEditorPlugin/utils/getSelectedNode.ts +17 -0
- package/src/components/rich-text/shared/plugins/LinkEditorPlugin/utils/setFloatingElemPos.ts +39 -0
- package/src/components/rich-text/shared/plugins/LinkEditorPlugin/utils/url.ts +23 -0
- package/src/components/rich-text/shared/plugins/StateUpdatePlugin.tsx +21 -0
- package/src/components/rich-text/shared/plugins/TableActionMenuPlugin/TableActionMenuPlugin.tsx +224 -0
- package/src/components/rich-text/shared/plugins/TableCellResizerPlugin/TableCellResizerPlugin.css +3 -0
- package/src/components/rich-text/shared/plugins/TableCellResizerPlugin/TableCellResizerPlugin.tsx +315 -0
- package/src/components/rich-text/shared/plugins/ToggleEditablePlugin.tsx +12 -0
- package/src/components/rich-text/shared/plugins/TreeViewPlugin/TreeViewPlugin.tsx +20 -0
- package/src/components/rich-text/shared/transformers/markdown-transformers.ts +123 -0
- package/src/components/rich-text/shared/types/rich-text-components.ts +17 -0
- package/src/components/rich-text/theme/report-theme.tsx +81 -0
- package/src/components/rich-text/theme/rich-text-theme.css +773 -0
- package/src/components/rich-text/theme/rich-text-theme.tsx +81 -0
- package/src/components/rich-text/types.ts +9 -0
- package/src/components/rich-text/utils/inferResourceType.ts +17 -0
- package/src/components/rich-text/utils/markdown.ts +12 -0
- package/src/components/rich-text/utils/mediaType.ts +31 -0
- package/src/components/session-indicator.stories.tsx +46 -0
- package/src/components/session-indicator.tsx +40 -0
- package/src/components/slider.stories.tsx +38 -0
- package/src/components/slider.tsx +20 -0
- package/src/components/style-guide-data.ts +374 -0
- package/src/components/style-guide.stories.tsx +212 -0
- package/src/components/style-guide.tsx +305 -0
- package/src/components/ticket-board.stories.tsx +109 -0
- package/src/components/ticket-board.tsx +167 -0
- package/src/components/ticket-card.stories.tsx +133 -0
- package/src/components/ticket-card.tsx +126 -0
- package/src/components/toaster.stories.tsx +79 -0
- package/src/components/toaster.tsx +26 -0
- package/src/components/tooltip.tsx +43 -0
- package/src/index.ts +16 -0
- package/src/theme/global.ts +49 -0
- package/src/theme/index.ts +10 -0
- package/src/theme/primitives/colors.ts +209 -0
- package/src/theme/primitives/fonts.ts +33 -0
- package/src/theme/primitives/sizes.ts +49 -0
- package/src/theme/recipes/alert.ts +12 -0
- package/src/theme/recipes/button.ts +124 -0
- package/src/theme/recipes/dialog.ts +11 -0
- package/src/theme/recipes/divider.ts +7 -0
- package/src/theme/recipes/drawer.ts +16 -0
- package/src/theme/recipes/editable.ts +42 -0
- package/src/theme/recipes/form.ts +11 -0
- package/src/theme/recipes/input.ts +25 -0
- package/src/theme/recipes/menu.ts +40 -0
- package/src/theme/recipes/popover.ts +46 -0
- package/src/theme/recipes/progress-circle.ts +22 -0
- package/src/theme/recipes/skeleton.ts +8 -0
- package/src/theme/recipes/textarea.ts +29 -0
- package/src/theme/recipes/tooltip.ts +15 -0
- package/src/theme/theme.ts +70 -0
- package/src/theme/tokens/borders.ts +38 -0
- package/src/theme/tokens/colors.ts +488 -0
- package/src/theme/tokens/layer-styles.ts +15 -0
- package/src/theme/tokens/shadows.ts +47 -0
- package/src/theme/tokens/text.ts +236 -0
- package/src/utils/apply-theme-preference.ts +17 -0
- package/src/utils/formats.ts +27 -0
- package/src/utils/get-file-type-icon.ts +52 -0
- package/src/utils/theme-preference.tsx +60 -0
- package/src/vite-env.d.ts +6 -0
- package/storybook-static/assets/CodeBlockPlugin-C3OWpvP8.js +281 -0
- package/storybook-static/assets/CodeBlockPlugin-e2vWgtYm.css +1 -0
- package/storybook-static/assets/DataTableNode.stories-DLgTftOI.js +33 -0
- package/storybook-static/assets/EquationComponent-CUFxwyNf.js +1 -0
- package/storybook-static/assets/EquationComponent-DWZwfaVI.css +1 -0
- package/storybook-static/assets/FloatingTextFormatToolbarPlugin-B6jc8xvg.js +1 -0
- package/storybook-static/assets/FloatingTextFormatToolbarPlugin-D2l3--Te.css +1 -0
- package/storybook-static/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/storybook-static/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/storybook-static/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/storybook-static/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/storybook-static/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/storybook-static/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/storybook-static/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/storybook-static/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/storybook-static/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/storybook-static/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/storybook-static/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/storybook-static/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/storybook-static/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/storybook-static/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/storybook-static/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/storybook-static/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/storybook-static/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/storybook-static/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/storybook-static/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/storybook-static/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/storybook-static/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/storybook-static/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/storybook-static/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/storybook-static/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/storybook-static/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/storybook-static/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/storybook-static/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/storybook-static/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/storybook-static/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/storybook-static/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/storybook-static/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/storybook-static/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/storybook-static/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/storybook-static/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/storybook-static/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/storybook-static/assets/LexicalHistoryPlugin.prod-BQAibkDj.js +1 -0
- package/storybook-static/assets/TreeViewPlugin-CyVKCrKJ.js +24 -0
- package/storybook-static/assets/ai-conversation-DcjS--ee.js +1 -0
- package/storybook-static/assets/ai-conversation.stories-COjWuS8V.js +3 -0
- package/storybook-static/assets/ai-message-DLdAGhWH.js +1 -0
- package/storybook-static/assets/ai-message.stories-CRTyreKL.js +3 -0
- package/storybook-static/assets/ai-response-ySM6s0iN.js +1 -0
- package/storybook-static/assets/ai-response.stories-DVBYlrGf.js +11 -0
- package/storybook-static/assets/attachment-list-1p1601I5.js +1 -0
- package/storybook-static/assets/attachment-list.stories-Cydlsnio.js +7 -0
- package/storybook-static/assets/badge-CtgJasjB.js +1 -0
- package/storybook-static/assets/breadcrumb.stories-SAjB-iqH.js +5 -0
- package/storybook-static/assets/button-C7it2n8t.js +1 -0
- package/storybook-static/assets/button.stories-BMVbbb4y.js +72 -0
- package/storybook-static/assets/chat-input-B-915nCM.js +1 -0
- package/storybook-static/assets/chat-input.stories-DrxvpT9p.js +32 -0
- package/storybook-static/assets/chat-panel.stories-D0L6eIte.js +96 -0
- package/storybook-static/assets/chevron-down-BYCAGyCV.js +1 -0
- package/storybook-static/assets/chevron-right-owK1wZnx.js +1 -0
- package/storybook-static/assets/collaborative-markdown-editor-Bj0GvTvv.js +41 -0
- package/storybook-static/assets/collaborative-markdown-editor.stories-B_MUIC5s.js +11 -0
- package/storybook-static/assets/collapsible-DBDG7h1r.js +1 -0
- package/storybook-static/assets/collapsible-content-B1Uq3jUM.js +1 -0
- package/storybook-static/assets/column-file-browser.stories-DPMQnHCw.js +54 -0
- package/storybook-static/assets/compiler-runtime-BXE7OOXE.js +1 -0
- package/storybook-static/assets/computed-style-C0hzrq9-.js +1 -0
- package/storybook-static/assets/create-recipe-context-BU56IzEo.js +1 -0
- package/storybook-static/assets/create-slot-recipe-context-DAhDE6G_.js +1 -0
- package/storybook-static/assets/create-split-props-u5h9OPvL.js +1 -0
- package/storybook-static/assets/createLucideIcon-CcBBUKX8.js +1 -0
- package/storybook-static/assets/data-table-vuIeWXui.css +1 -0
- package/storybook-static/assets/data-table.stories-Cs-q7dpj.js +19 -0
- package/storybook-static/assets/delete-confirmation-modal.stories-C8vDKFRD.js +14 -0
- package/storybook-static/assets/diff-bubble-_zZypMRt.js +1 -0
- package/storybook-static/assets/diff-bubble.stories-DfonanIk.js +39 -0
- package/storybook-static/assets/diff-drawer.stories-CGDWiKD8.js +38 -0
- package/storybook-static/assets/diff-editor-DV9BXqbn.js +11 -0
- package/storybook-static/assets/dismissable-layer-Cc5dFRd8.js +1 -0
- package/storybook-static/assets/drawer-inline.stories-B3Tp7vjL.js +88 -0
- package/storybook-static/assets/empty-state-BXkyq69k.js +1 -0
- package/storybook-static/assets/empty-state.stories-6eYYBOWR.js +29 -0
- package/storybook-static/assets/factory-BR3bc_RM.js +1 -0
- package/storybook-static/assets/factory-DAJZwK4o.js +1 -0
- package/storybook-static/assets/file-selector.stories-PKIGBUd5.js +31 -0
- package/storybook-static/assets/file-text-D5m8MJlG.js +1 -0
- package/storybook-static/assets/flex-DAJL4AFZ.js +1 -0
- package/storybook-static/assets/folder-C5dba_Co.js +1 -0
- package/storybook-static/assets/form-D_Xln9tK.js +1 -0
- package/storybook-static/assets/full-conversation-normalized-LUbl1coD.js +1 -0
- package/storybook-static/assets/grid-7OIKBlfh.js +1 -0
- package/storybook-static/assets/h-stack-DWHd8f97.js +1 -0
- package/storybook-static/assets/horizontal-menu-stack-Cph6x7ui.js +1 -0
- package/storybook-static/assets/icon-C8FN9JqD.js +1 -0
- package/storybook-static/assets/icon-button-DHiUe7rR.js +1 -0
- package/storybook-static/assets/icons-WRA1cA-W.js +1 -0
- package/storybook-static/assets/iframe-2XPD_vrQ.css +1 -0
- package/storybook-static/assets/iframe-B8FSoBNY.js +1075 -0
- package/storybook-static/assets/index-B0y2_lLF.js +1 -0
- package/storybook-static/assets/index-CXwl6T4k.js +1 -0
- package/storybook-static/assets/index-DaXC_qY_.js +1 -0
- package/storybook-static/assets/index-DpB4ozcR.js +1 -0
- package/storybook-static/assets/index-cFwdnc0b.js +1 -0
- package/storybook-static/assets/info-DlgY5-DW.js +1 -0
- package/storybook-static/assets/info-card.stories-Cry0Qfrn.js +55 -0
- package/storybook-static/assets/input-ZSs5cSFQ.js +1 -0
- package/storybook-static/assets/inter-cyrillic-400-normal-HOLc17fK.woff +0 -0
- package/storybook-static/assets/inter-cyrillic-400-normal-obahsSVq.woff2 +0 -0
- package/storybook-static/assets/inter-cyrillic-500-normal-BasfLYem.woff2 +0 -0
- package/storybook-static/assets/inter-cyrillic-500-normal-CxZf_p3X.woff +0 -0
- package/storybook-static/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2 +0 -0
- package/storybook-static/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff +0 -0
- package/storybook-static/assets/inter-cyrillic-ext-500-normal-B0yAr1jD.woff2 +0 -0
- package/storybook-static/assets/inter-cyrillic-ext-500-normal-BmqWE9Dz.woff +0 -0
- package/storybook-static/assets/inter-greek-400-normal-B4URO6DV.woff2 +0 -0
- package/storybook-static/assets/inter-greek-400-normal-q2sYcFCs.woff +0 -0
- package/storybook-static/assets/inter-greek-500-normal-BIZE56-Y.woff2 +0 -0
- package/storybook-static/assets/inter-greek-500-normal-Xzm54t5V.woff +0 -0
- package/storybook-static/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2 +0 -0
- package/storybook-static/assets/inter-greek-ext-400-normal-KugGGMne.woff +0 -0
- package/storybook-static/assets/inter-greek-ext-500-normal-2j5mBUwD.woff +0 -0
- package/storybook-static/assets/inter-greek-ext-500-normal-C4iEst2y.woff2 +0 -0
- package/storybook-static/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
- package/storybook-static/assets/inter-latin-400-normal-CyCys3Eg.woff +0 -0
- package/storybook-static/assets/inter-latin-500-normal-BL9OpVg8.woff +0 -0
- package/storybook-static/assets/inter-latin-500-normal-Cerq10X2.woff2 +0 -0
- package/storybook-static/assets/inter-latin-ext-400-normal-77YHD8bZ.woff +0 -0
- package/storybook-static/assets/inter-latin-ext-400-normal-C1nco2VV.woff2 +0 -0
- package/storybook-static/assets/inter-latin-ext-500-normal-BxGbmqWO.woff +0 -0
- package/storybook-static/assets/inter-latin-ext-500-normal-CV4jyFjo.woff2 +0 -0
- package/storybook-static/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff +0 -0
- package/storybook-static/assets/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
- package/storybook-static/assets/inter-vietnamese-500-normal-DOriooB6.woff2 +0 -0
- package/storybook-static/assets/inter-vietnamese-500-normal-mJboJaSs.woff +0 -0
- package/storybook-static/assets/item-section-AoQrVPNJ.js +1 -0
- package/storybook-static/assets/item-section.stories-kYTPHRsx.js +24 -0
- package/storybook-static/assets/layout.stories-DhSjwzU1.js +3 -0
- package/storybook-static/assets/link-DE5grRtm.js +1 -0
- package/storybook-static/assets/markdown-BLUemkxK.js +1 -0
- package/storybook-static/assets/markdown-editor-Y4eMsgVb.js +1 -0
- package/storybook-static/assets/markdown-editor.stories-DIWw-hRP.js +115 -0
- package/storybook-static/assets/menu-item-CrqDaj9K.js +1 -0
- package/storybook-static/assets/menu-item.stories-D9Isjjrf.js +68 -0
- package/storybook-static/assets/message-parts-renderer.stories-CewRvbm7.js +5 -0
- package/storybook-static/assets/message-types-CEyA7Qm7.js +60 -0
- package/storybook-static/assets/model-swap-separator.stories-DrQW2NWQ.js +9 -0
- package/storybook-static/assets/mutation-observer-CAfGweIM.js +1 -0
- package/storybook-static/assets/normalize-props-D7NI5JRu.js +1 -0
- package/storybook-static/assets/number-C92MPsRM.js +1 -0
- package/storybook-static/assets/number-input-D1aC-9ls.js +7 -0
- package/storybook-static/assets/onest-cyrillic-400-normal-BxvCLB5P.woff +0 -0
- package/storybook-static/assets/onest-cyrillic-400-normal-DH8vlB-A.woff2 +0 -0
- package/storybook-static/assets/onest-cyrillic-500-normal-CyY1vN0Q.woff +0 -0
- package/storybook-static/assets/onest-cyrillic-500-normal-DHyr8B2c.woff2 +0 -0
- package/storybook-static/assets/onest-cyrillic-700-normal-CwpXuTGk.woff2 +0 -0
- package/storybook-static/assets/onest-cyrillic-700-normal-DOtXtm0s.woff +0 -0
- package/storybook-static/assets/onest-latin-400-normal-BAzPRZHg.woff +0 -0
- package/storybook-static/assets/onest-latin-400-normal-bladozIj.woff2 +0 -0
- package/storybook-static/assets/onest-latin-500-normal-oFTiz6Nq.woff +0 -0
- package/storybook-static/assets/onest-latin-500-normal-qHiQtL66.woff2 +0 -0
- package/storybook-static/assets/onest-latin-700-normal-Bd6qVL4Q.woff2 +0 -0
- package/storybook-static/assets/onest-latin-700-normal-XTvQgpoh.woff +0 -0
- package/storybook-static/assets/onest-latin-ext-400-normal--mQR5RlC.woff2 +0 -0
- package/storybook-static/assets/onest-latin-ext-400-normal-BbXTNVXw.woff +0 -0
- package/storybook-static/assets/onest-latin-ext-500-normal-BlXa29q8.woff2 +0 -0
- package/storybook-static/assets/onest-latin-ext-500-normal-CoujUMv_.woff +0 -0
- package/storybook-static/assets/onest-latin-ext-700-normal-C-Tcltod.woff2 +0 -0
- package/storybook-static/assets/onest-latin-ext-700-normal-CSGWRWNE.woff +0 -0
- package/storybook-static/assets/open-source-notices-screen.stories-BpdJxDZC.js +21 -0
- package/storybook-static/assets/overflow-CkG1DOya.js +1 -0
- package/storybook-static/assets/panel-menu-CqLSrdTB.js +1 -0
- package/storybook-static/assets/panel-menu.stories-CxdWaWjq.js +14 -0
- package/storybook-static/assets/param-editor-horizontal.stories-C1o-VOjG.js +561 -0
- package/storybook-static/assets/param-editor-selection-input-2pJE1_W1.js +1 -0
- package/storybook-static/assets/param-editor.stories-0ae3y4Vu.js +921 -0
- package/storybook-static/assets/playfair-display-cyrillic-400-normal-CjW2EstV.woff2 +0 -0
- package/storybook-static/assets/playfair-display-cyrillic-400-normal-ZiRag6zj.woff +0 -0
- package/storybook-static/assets/playfair-display-cyrillic-600-normal-DbWAkkgN.woff +0 -0
- package/storybook-static/assets/playfair-display-cyrillic-600-normal-oLY6jnZ7.woff2 +0 -0
- package/storybook-static/assets/playfair-display-cyrillic-700-normal-Dk1mTcxf.woff +0 -0
- package/storybook-static/assets/playfair-display-cyrillic-700-normal-Dw3uKy19.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-400-normal-CFtfchNt.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-400-normal-DHYHbkg3.woff +0 -0
- package/storybook-static/assets/playfair-display-latin-600-normal-CZLGqjJe.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-600-normal-CxxueQ0Z.woff +0 -0
- package/storybook-static/assets/playfair-display-latin-700-normal-Bc_1Q1cG.woff +0 -0
- package/storybook-static/assets/playfair-display-latin-700-normal-CuDiGg7c.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-ext-400-normal-BxlSGspa.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-ext-400-normal-qdZwdvNS.woff +0 -0
- package/storybook-static/assets/playfair-display-latin-ext-600-normal-BumBfC1v.woff +0 -0
- package/storybook-static/assets/playfair-display-latin-ext-600-normal-CEjQclLc.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-ext-700-normal-C58ejOkc.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-ext-700-normal-D5HUU8GT.woff +0 -0
- package/storybook-static/assets/playfair-display-vietnamese-400-normal-BV2APVTb.woff2 +0 -0
- package/storybook-static/assets/playfair-display-vietnamese-400-normal-BbvUAu4N.woff +0 -0
- package/storybook-static/assets/playfair-display-vietnamese-600-normal-BPJkAZPN.woff +0 -0
- package/storybook-static/assets/playfair-display-vietnamese-600-normal-ICsRR-qJ.woff2 +0 -0
- package/storybook-static/assets/playfair-display-vietnamese-700-normal-CaKJSIny.woff2 +0 -0
- package/storybook-static/assets/playfair-display-vietnamese-700-normal-Cr1rw0mr.woff +0 -0
- package/storybook-static/assets/portal-CZHfPTRw.js +1 -0
- package/storybook-static/assets/preload-helper-PPVm8Dsz.js +1 -0
- package/storybook-static/assets/prompt-input-BLCttowi.js +14 -0
- package/storybook-static/assets/prompt-input-BVbz9joI.css +1 -0
- package/storybook-static/assets/prompt-input.stories-J8-AMVXy.js +9 -0
- package/storybook-static/assets/properties.stories-Bs7ivKgb.js +59 -0
- package/storybook-static/assets/react-18-KY0R7ltw.js +9 -0
- package/storybook-static/assets/render-strategy-BebqUNCa.js +1 -0
- package/storybook-static/assets/resource-badge-Bw5UoU4J.js +1 -0
- package/storybook-static/assets/resource-badge.stories-DtSh-RX9.js +9 -0
- package/storybook-static/assets/rich-message-BIkzo1SM.js +1 -0
- package/storybook-static/assets/rich-message.stories-C9Wc4d3O.js +115 -0
- package/storybook-static/assets/rich-text-theme-Bkhh9rAZ.js +14 -0
- package/storybook-static/assets/rich-text-theme-K2MBoCbx.css +1 -0
- package/storybook-static/assets/separator-CQkMOHNm.js +1 -0
- package/storybook-static/assets/settings-DUgg22A7.js +1 -0
- package/storybook-static/assets/simple-grid-DIKjhnVI.js +1 -0
- package/storybook-static/assets/spinner-ZYH_gvW-.js +1 -0
- package/storybook-static/assets/stack-CN4X31TA.js +1 -0
- package/storybook-static/assets/star-CvcHIXRa.js +1 -0
- package/storybook-static/assets/style-guide.stories-BUvEhZov.js +6 -0
- package/storybook-static/assets/tabbable-DHAf8oAu.js +1 -0
- package/storybook-static/assets/table-BKNSzs2r.js +1 -0
- package/storybook-static/assets/textarea-rqmaWSc5.js +1 -0
- package/storybook-static/assets/toaster-d9nN0H7K.js +1 -0
- package/storybook-static/assets/toaster.stories-BRVCYyaM.js +52 -0
- package/storybook-static/assets/tool-invocation-timeline-B-cS0W6M.js +59 -0
- package/storybook-static/assets/tool-invocation-timeline.stories-DXO59O73.js +5 -0
- package/storybook-static/assets/tooltip-C_a-XGZ8.js +1 -0
- package/storybook-static/assets/tooltip-DZxUoouw.js +1 -0
- package/storybook-static/assets/trash-2-BO05slEk.js +1 -0
- package/storybook-static/assets/typeahead-CuY9WxfQ.js +1 -0
- package/storybook-static/assets/use-field-context-DoxKQlMm.js +1 -0
- package/storybook-static/assets/use-presence-context-DK2PGZth.js +1 -0
- package/storybook-static/assets/v-stack-Btoq6OB_.js +1 -0
- package/storybook-static/assets/x-D42ziktz.js +1 -0
- package/storybook-static/components/alert.d.ts +9 -0
- package/storybook-static/components/breadcrumb.d.ts +18 -0
- package/storybook-static/components/breadcrumb.stories.d.ts +25 -0
- package/storybook-static/components/chat-ui/agent-types.d.ts +205 -0
- package/storybook-static/components/chat-ui/components/ai-conversation.stories.d.ts +6 -0
- package/storybook-static/components/chat-ui/components/ai-message.d.ts +94 -0
- package/storybook-static/components/chat-ui/components/ai-message.stories.d.ts +6 -0
- package/storybook-static/components/chat-ui/components/ai-response.d.ts +6 -0
- package/storybook-static/components/chat-ui/components/ai-response.stories.d.ts +7 -0
- package/storybook-static/components/chat-ui/components/approval-prompt.d.ts +8 -0
- package/storybook-static/components/chat-ui/components/attachment-list.d.ts +23 -0
- package/storybook-static/components/chat-ui/components/attachment-list.stories.d.ts +6 -0
- package/storybook-static/components/chat-ui/components/auto-scroll.d.ts +10 -0
- package/storybook-static/components/chat-ui/components/chat-input.d.ts +16 -0
- package/storybook-static/components/chat-ui/components/chat-input.stories.d.ts +7 -0
- package/storybook-static/components/chat-ui/components/chat-panel.d.ts +18 -0
- package/storybook-static/components/chat-ui/components/chat-panel.stories.d.ts +8 -0
- package/storybook-static/components/chat-ui/components/message-parts-renderer.d.ts +12 -0
- package/storybook-static/components/chat-ui/components/message-parts-renderer.stories.d.ts +7 -0
- package/storybook-static/components/chat-ui/components/message-types.d.ts +6 -0
- package/storybook-static/components/chat-ui/components/model-swap-separator.d.ts +5 -0
- package/storybook-static/components/chat-ui/components/model-swap-separator.stories.d.ts +6 -0
- package/storybook-static/components/chat-ui/components/send-button.d.ts +7 -0
- package/storybook-static/components/chat-ui/components/timeline.d.ts +86 -0
- package/storybook-static/components/chat-ui/components/tool-invocation-timeline.d.ts +7 -0
- package/storybook-static/components/chat-ui/components/tool-invocation-timeline.stories.d.ts +6 -0
- package/storybook-static/components/chat-ui/mocks/full-conversation-normalized.json.d.ts +3560 -0
- package/storybook-static/components/chat-ui/tool-rendering/build-timeline.d.ts +23 -0
- package/storybook-static/components/chat-ui/tool-rendering/default-renderers.d.ts +9 -0
- package/storybook-static/components/chat-ui/tool-rendering/index.d.ts +3 -0
- package/storybook-static/components/chat-ui/tool-rendering/types.d.ts +13 -0
- package/storybook-static/components/chat-ui/utils/diff.d.ts +21 -0
- package/storybook-static/components/chat-ui/utils/editor-state.d.ts +1 -0
- package/storybook-static/components/code-editor.d.ts +33 -0
- package/storybook-static/components/column-file-browser.d.ts +21 -0
- package/storybook-static/components/content-placeholder.d.ts +5 -0
- package/storybook-static/components/data-table.d.ts +18 -0
- package/storybook-static/components/data-table.stories.d.ts +33 -0
- package/storybook-static/components/delete-confirmation-modal.d.ts +10 -0
- package/storybook-static/components/delete-confirmation-modal.stories.d.ts +11 -0
- package/storybook-static/components/diff-bubble.d.ts +14 -0
- package/storybook-static/components/diff-bubble.stories.d.ts +13 -0
- package/storybook-static/components/diff-card.d.ts +14 -0
- package/storybook-static/components/diff-drawer.d.ts +6 -0
- package/storybook-static/components/diff-drawer.stories.d.ts +8 -0
- package/storybook-static/components/diff-editor.d.ts +9 -0
- package/storybook-static/components/drawer-inline.d.ts +24 -0
- package/storybook-static/components/drawer-inline.stories.d.ts +8 -0
- package/storybook-static/components/empty-state.d.ts +8 -0
- package/storybook-static/components/empty-state.stories.d.ts +34 -0
- package/storybook-static/components/error-boundary.d.ts +26 -0
- package/storybook-static/components/file-selector.d.ts +13 -0
- package/storybook-static/components/file-tree-helpers.d.ts +8 -0
- package/storybook-static/components/horizontal-menu-stack.d.ts +6 -0
- package/storybook-static/components/info-card.d.ts +13 -0
- package/storybook-static/components/item-section.d.ts +11 -0
- package/storybook-static/components/item-section.stories.d.ts +17 -0
- package/storybook-static/components/layout.d.ts +14 -0
- package/storybook-static/components/layout.stories.d.ts +11 -0
- package/storybook-static/components/menu-item.d.ts +40 -0
- package/storybook-static/components/open-source-notices-screen.d.ts +20 -0
- package/storybook-static/components/open-source-notices-screen.stories.d.ts +12 -0
- package/storybook-static/components/panel-menu.d.ts +7 -0
- package/storybook-static/components/panel-menu.stories.d.ts +7 -0
- package/storybook-static/components/param-editor-color-input.d.ts +13 -0
- package/storybook-static/components/param-editor-date-input.d.ts +15 -0
- package/storybook-static/components/param-editor-horizontal-text-input.d.ts +12 -0
- package/storybook-static/components/param-editor-horizontal.d.ts +10 -0
- package/storybook-static/components/param-editor-horizontal.stories.d.ts +19 -0
- package/storybook-static/components/param-editor-input-group.d.ts +10 -0
- package/storybook-static/components/param-editor-number-input.d.ts +17 -0
- package/storybook-static/components/param-editor-selection-input.d.ts +21 -0
- package/storybook-static/components/param-editor-text-input.d.ts +13 -0
- package/storybook-static/components/param-editor.d.ts +10 -0
- package/storybook-static/components/param-editor.stories.d.ts +23 -0
- package/storybook-static/components/param-editor.types.d.ts +71 -0
- package/storybook-static/components/properties.d.ts +18 -0
- package/storybook-static/components/properties.stories.d.ts +17 -0
- package/storybook-static/components/resource-badge.d.ts +62 -0
- package/storybook-static/components/resource-badge.stories.d.ts +7 -0
- package/storybook-static/components/rich-text/collaborative-markdown-editor/awareness-cursors.d.ts +5 -0
- package/storybook-static/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.d.ts +8 -0
- package/storybook-static/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.stories.d.ts +9 -0
- package/storybook-static/components/rich-text/index.d.ts +14 -0
- package/storybook-static/components/rich-text/markdown-editor/markdown-editor.d.ts +8 -0
- package/storybook-static/components/rich-text/markdown-editor/markdown-editor.stories.d.ts +6 -0
- package/storybook-static/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkNode.d.ts +21 -0
- package/storybook-static/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.d.ts +2 -0
- package/storybook-static/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/index.d.ts +2 -0
- package/storybook-static/components/rich-text/prompt-input/commands.d.ts +19 -0
- package/storybook-static/components/rich-text/prompt-input/events.d.ts +15 -0
- package/storybook-static/components/rich-text/prompt-input/plugins/CommentPlugin/CommentPlugin.d.ts +1 -0
- package/storybook-static/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentCommands.d.ts +3 -0
- package/storybook-static/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentSchema.d.ts +1 -0
- package/storybook-static/components/rich-text/prompt-input/plugins/CommentPlugin/nodes/CommentNode/CommentNode.d.ts +17 -0
- package/storybook-static/components/rich-text/prompt-input/plugins/ImperativeAPIPlugin.d.ts +7 -0
- package/storybook-static/components/rich-text/prompt-input/plugins/KeyboardShortcutPlugin.d.ts +4 -0
- package/storybook-static/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuOption.d.ts +12 -0
- package/storybook-static/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuPlugin.d.ts +10 -0
- package/storybook-static/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenu.d.ts +9 -0
- package/storybook-static/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenuItem.d.ts +12 -0
- package/storybook-static/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/constants.d.ts +2 -0
- package/storybook-static/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/hooks/useContextLookup.d.ts +13 -0
- package/storybook-static/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/checkForTriggers.d.ts +9 -0
- package/storybook-static/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/getSortedMenuOptions.d.ts +2 -0
- package/storybook-static/components/rich-text/prompt-input/plugins/ReferencePlugin/ReferencePlugin.d.ts +6 -0
- package/storybook-static/components/rich-text/prompt-input/plugins/ReferencePlugin/nodes/ReferenceNode/ReferenceNode.d.ts +25 -0
- package/storybook-static/components/rich-text/prompt-input/plugins/keyboard-shortcuts.d.ts +9 -0
- package/storybook-static/components/rich-text/prompt-input/prompt-input.d.ts +24 -0
- package/storybook-static/components/rich-text/prompt-input/prompt-input.stories.d.ts +8 -0
- package/storybook-static/components/rich-text/prompt-input/theme/prompt-input-theme.d.ts +3 -0
- package/storybook-static/components/rich-text/prompt-input/utils.d.ts +23 -0
- package/storybook-static/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkNode.d.ts +21 -0
- package/storybook-static/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.d.ts +2 -0
- package/storybook-static/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/index.d.ts +2 -0
- package/storybook-static/components/rich-text/rich-message/rich-message.d.ts +7 -0
- package/storybook-static/components/rich-text/rich-message/rich-message.stories.d.ts +6 -0
- package/storybook-static/components/rich-text/shared/components/content-editable.d.ts +7 -0
- package/storybook-static/components/rich-text/shared/components/default-rich-text-components.d.ts +3 -0
- package/storybook-static/components/rich-text/shared/editor-config.d.ts +4 -0
- package/storybook-static/components/rich-text/shared/nodes/DataTableNode.d.ts +22 -0
- package/storybook-static/components/rich-text/shared/nodes/DataTableNode.stories.d.ts +7 -0
- package/storybook-static/components/rich-text/shared/plugins/CodePlugin/CodeBlockPlugin.d.ts +1 -0
- package/storybook-static/components/rich-text/shared/plugins/CodePlugin/CodeNode.d.ts +19 -0
- package/storybook-static/components/rich-text/shared/plugins/EquationPlugin/EquationComponent.d.ts +6 -0
- package/storybook-static/components/rich-text/shared/plugins/EquationPlugin/EquationNode.d.ts +26 -0
- package/storybook-static/components/rich-text/shared/plugins/EquationPlugin/EquationPlugin.d.ts +4 -0
- package/storybook-static/components/rich-text/shared/plugins/EquationPlugin/KatexRenderer.d.ts +4 -0
- package/storybook-static/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatToolbarPlugin.d.ts +4 -0
- package/storybook-static/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +1 -0
- package/storybook-static/components/rich-text/shared/plugins/HorizontalRulePlugin/HorizontalRuleNode.d.ts +13 -0
- package/storybook-static/components/rich-text/shared/plugins/HorizontalRulePlugin/horizontalRule.d.ts +2 -0
- package/storybook-static/components/rich-text/shared/plugins/LinkEditorPlugin/LinkEditorPlugin.d.ts +4 -0
- package/storybook-static/components/rich-text/shared/plugins/LinkEditorPlugin/LinkPlugin.d.ts +1 -0
- package/storybook-static/components/rich-text/shared/plugins/LinkEditorPlugin/utils/getSelectedNode.d.ts +2 -0
- package/storybook-static/components/rich-text/shared/plugins/LinkEditorPlugin/utils/setFloatingElemPos.d.ts +1 -0
- package/storybook-static/components/rich-text/shared/plugins/LinkEditorPlugin/utils/url.d.ts +2 -0
- package/storybook-static/components/rich-text/shared/plugins/StateUpdatePlugin.d.ts +6 -0
- package/storybook-static/components/rich-text/shared/plugins/TableActionMenuPlugin/TableActionMenuPlugin.d.ts +5 -0
- package/storybook-static/components/rich-text/shared/plugins/TableCellResizerPlugin/TableCellResizerPlugin.d.ts +2 -0
- package/storybook-static/components/rich-text/shared/plugins/ToggleEditablePlugin.d.ts +3 -0
- package/storybook-static/components/rich-text/shared/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +1 -0
- package/storybook-static/components/rich-text/shared/transformers/markdown-transformers.d.ts +15 -0
- package/storybook-static/components/rich-text/shared/types/rich-text-components.d.ts +15 -0
- package/storybook-static/components/rich-text/theme/report-theme.d.ts +3 -0
- package/storybook-static/components/rich-text/theme/rich-text-theme.d.ts +3 -0
- package/storybook-static/components/rich-text/types.d.ts +8 -0
- package/storybook-static/components/rich-text/utils/inferResourceType.d.ts +1 -0
- package/storybook-static/components/rich-text/utils/markdown.d.ts +4 -0
- package/storybook-static/components/rich-text/utils/mediaType.d.ts +1 -0
- package/storybook-static/components/schub-logo.d.ts +2 -0
- package/storybook-static/components/slider.d.ts +5 -0
- package/storybook-static/components/style-guide-data.d.ts +46 -0
- package/storybook-static/components/style-guide.d.ts +1 -0
- package/storybook-static/components/style-guide.stories.d.ts +14 -0
- package/storybook-static/components/toaster.stories.d.ts +11 -0
- package/storybook-static/components/tooltip.d.ts +12 -0
- package/storybook-static/favicon-wrapper.svg +46 -0
- package/storybook-static/favicon.svg +1 -0
- package/storybook-static/iframe.html +705 -0
- package/storybook-static/index.d.ts +14 -0
- package/storybook-static/index.html +150 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +628 -0
- package/storybook-static/sb-addons/themes-1/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/vitest-2/manager-bundle.js +3 -0
- package/storybook-static/sb-common-assets/favicon-wrapper.svg +46 -0
- package/storybook-static/sb-common-assets/favicon.svg +1 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-runtime.js +77956 -0
- package/storybook-static/sb-manager/globals.js +24 -0
- package/storybook-static/sb-manager/manager-stores.js +23 -0
- package/storybook-static/sb-manager/runtime.js +20422 -0
- package/storybook-static/theme/applyThemePreference.d.ts +2 -0
- package/storybook-static/theme/global.d.ts +46 -0
- package/storybook-static/theme/index.d.ts +1 -0
- package/storybook-static/theme/primitives/colors.d.ts +958 -0
- package/storybook-static/theme/primitives/fonts.d.ts +81 -0
- package/storybook-static/theme/primitives/sizes.d.ts +89 -0
- package/storybook-static/theme/recipes/alert.d.ts +1 -0
- package/storybook-static/theme/recipes/button.d.ts +129 -0
- package/storybook-static/theme/recipes/dialog.d.ts +1 -0
- package/storybook-static/theme/recipes/divider.d.ts +1 -0
- package/storybook-static/theme/recipes/drawer.d.ts +1 -0
- package/storybook-static/theme/recipes/editable.d.ts +1 -0
- package/storybook-static/theme/recipes/form.d.ts +1 -0
- package/storybook-static/theme/recipes/input.d.ts +7 -0
- package/storybook-static/theme/recipes/menu.d.ts +1 -0
- package/storybook-static/theme/recipes/popover.d.ts +16 -0
- package/storybook-static/theme/recipes/progress-circle.d.ts +28 -0
- package/storybook-static/theme/recipes/skeleton.d.ts +1 -0
- package/storybook-static/theme/recipes/textarea.d.ts +1 -0
- package/storybook-static/theme/recipes/tooltip.d.ts +1 -0
- package/storybook-static/theme/theme-preference.d.ts +15 -0
- package/storybook-static/theme/theme.d.ts +2 -0
- package/storybook-static/theme/tokens/borders.d.ts +38 -0
- package/storybook-static/theme/tokens/colors.d.ts +898 -0
- package/storybook-static/theme/tokens/layer-styles.d.ts +1 -0
- package/storybook-static/theme/tokens/shadows.d.ts +64 -0
- package/storybook-static/theme/tokens/text.d.ts +1 -0
- package/storybook-static/theme/types.d.ts +1 -0
- package/storybook-static/utils/formats.d.ts +7 -0
- package/storybook-static/utils/get-file-type-icon.d.ts +2 -0
- package/storybook-static/vite-inject-mocker-entry.js +2 -0
- package/tsconfig.json +29 -0
- package/vite.config.ts +82 -0
- package/vitest.shims.d.ts +1 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { Badge, HStack, Icon, IconButton, Menu, Spacer, Stack, Text } from "@chakra-ui/react";
|
|
2
|
+
import { MoreHorizontal, Plus } from "lucide-react";
|
|
3
|
+
import { type ComponentProps, type ComponentType, type DragEvent, useState } from "react";
|
|
4
|
+
|
|
5
|
+
import { MenuItem } from "@/components/menu-item";
|
|
6
|
+
import { Tooltip } from "@/components/tooltip";
|
|
7
|
+
|
|
8
|
+
import { TicketCard } from "./ticket-card";
|
|
9
|
+
|
|
10
|
+
type TicketCardProps = ComponentProps<typeof TicketCard>;
|
|
11
|
+
|
|
12
|
+
export interface TicketBoardItem {
|
|
13
|
+
id: string;
|
|
14
|
+
cardProps: Omit<TicketCardProps, "draggable" | "onDragStart" | "onDragEnd" | "isSelected">;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface TicketBoardColumnAction {
|
|
18
|
+
id: string;
|
|
19
|
+
label: string;
|
|
20
|
+
icon: ComponentType<{ size?: number | string }>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface TicketBoardColumn {
|
|
24
|
+
id: string;
|
|
25
|
+
label: string;
|
|
26
|
+
color?: string;
|
|
27
|
+
items: TicketBoardItem[];
|
|
28
|
+
canDragIn: boolean;
|
|
29
|
+
canDragOut: boolean;
|
|
30
|
+
canCreate: boolean;
|
|
31
|
+
actions: TicketBoardColumnAction[];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface TicketBoardProps {
|
|
35
|
+
columns: TicketBoardColumn[];
|
|
36
|
+
selectedItemId?: string | null;
|
|
37
|
+
onMoveItem?: (itemId: string, targetColumnId: string) => void;
|
|
38
|
+
onCreateStart?: (columnId: string) => void;
|
|
39
|
+
onColumnAction?: (columnId: string, actionId: string) => Promise<void> | void;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export const TicketBoard = (props: TicketBoardProps) => {
|
|
43
|
+
const { columns, selectedItemId = null, onMoveItem, onCreateStart, onColumnAction } = props;
|
|
44
|
+
|
|
45
|
+
const [activeColumn, setActiveColumn] = useState<string | null>(null);
|
|
46
|
+
|
|
47
|
+
const handleDragStart = (itemId: string) => (event: DragEvent<HTMLDivElement>) => {
|
|
48
|
+
event.dataTransfer.setData("text/plain", itemId);
|
|
49
|
+
event.dataTransfer.effectAllowed = "move";
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const handleDragEnd = () => {
|
|
53
|
+
setActiveColumn(null);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const handleDragOver = (columnId: string) => (event: DragEvent<HTMLDivElement>) => {
|
|
57
|
+
event.preventDefault();
|
|
58
|
+
event.dataTransfer.dropEffect = "move";
|
|
59
|
+
setActiveColumn(columnId);
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const handleDrop = (columnId: string) => (event: DragEvent<HTMLDivElement>) => {
|
|
63
|
+
event.preventDefault();
|
|
64
|
+
setActiveColumn(null);
|
|
65
|
+
|
|
66
|
+
const itemId = event.dataTransfer.getData("text/plain");
|
|
67
|
+
if (!itemId) return;
|
|
68
|
+
|
|
69
|
+
onMoveItem?.(itemId, columnId);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
return (
|
|
73
|
+
<Stack
|
|
74
|
+
height="100%"
|
|
75
|
+
direction="row"
|
|
76
|
+
gap="2xs"
|
|
77
|
+
align="stretch"
|
|
78
|
+
overflowX="auto"
|
|
79
|
+
overflowY="hidden"
|
|
80
|
+
paddingBottom="2xs"
|
|
81
|
+
>
|
|
82
|
+
{columns.map((column) => (
|
|
83
|
+
<Stack
|
|
84
|
+
key={column.id}
|
|
85
|
+
gap="xs"
|
|
86
|
+
padding="xs"
|
|
87
|
+
_notFirst={{ borderLeft: "1px solid", borderColor: "border" }}
|
|
88
|
+
background={activeColumn === column.id ? "background.secondary" : "background.primary"}
|
|
89
|
+
height="100%"
|
|
90
|
+
minH="240px"
|
|
91
|
+
overflow="hidden"
|
|
92
|
+
minW="260px"
|
|
93
|
+
flex="1 0 260px"
|
|
94
|
+
onDragOver={column.canDragIn ? handleDragOver(column.id) : undefined}
|
|
95
|
+
onDrop={column.canDragIn ? handleDrop(column.id) : undefined}
|
|
96
|
+
>
|
|
97
|
+
<ColumnHeader column={column} onCreateStart={onCreateStart} onColumnAction={onColumnAction} />
|
|
98
|
+
|
|
99
|
+
<Stack gap="sm" flex="1" minH="0" overflowY="auto">
|
|
100
|
+
{column.items.map((item) => (
|
|
101
|
+
<TicketCard
|
|
102
|
+
key={item.id}
|
|
103
|
+
{...item.cardProps}
|
|
104
|
+
isSelected={item.id === selectedItemId}
|
|
105
|
+
draggable={column.canDragOut}
|
|
106
|
+
onDragStart={column.canDragOut ? handleDragStart(item.id) : undefined}
|
|
107
|
+
onDragEnd={column.canDragOut ? handleDragEnd : undefined}
|
|
108
|
+
/>
|
|
109
|
+
))}
|
|
110
|
+
</Stack>
|
|
111
|
+
</Stack>
|
|
112
|
+
))}
|
|
113
|
+
</Stack>
|
|
114
|
+
);
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
interface ColumnHeaderProps {
|
|
118
|
+
column: TicketBoardColumn;
|
|
119
|
+
onCreateStart?: (columnId: string) => void;
|
|
120
|
+
onColumnAction?: (columnId: string, actionId: string) => Promise<void> | void;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
const ColumnHeader = (props: ColumnHeaderProps) => {
|
|
124
|
+
const { column, onCreateStart, onColumnAction } = props;
|
|
125
|
+
|
|
126
|
+
return (
|
|
127
|
+
<HStack gap="xs" alignItems="center">
|
|
128
|
+
<Text textStyle="label/L/medium">{column.label}</Text>
|
|
129
|
+
|
|
130
|
+
<Badge variant="subtle" colorPalette={column.color ?? "gray"}>
|
|
131
|
+
{column.items.length}
|
|
132
|
+
</Badge>
|
|
133
|
+
|
|
134
|
+
<Spacer />
|
|
135
|
+
|
|
136
|
+
{column.canCreate && onCreateStart && (
|
|
137
|
+
<Tooltip content="Create new ticket">
|
|
138
|
+
<IconButton size="2xs" variant="outline" onClick={() => onCreateStart(column.id)} aria-label="Create ticket">
|
|
139
|
+
<Icon as={Plus} boxSize="12px" />
|
|
140
|
+
</IconButton>
|
|
141
|
+
</Tooltip>
|
|
142
|
+
)}
|
|
143
|
+
|
|
144
|
+
{column.actions.length > 0 && (
|
|
145
|
+
<Menu.Root>
|
|
146
|
+
<Menu.Trigger asChild>
|
|
147
|
+
<IconButton size="2xs" variant="ghost" aria-label={`Column actions for ${column.label}`}>
|
|
148
|
+
<Icon as={MoreHorizontal} boxSize="12px" />
|
|
149
|
+
</IconButton>
|
|
150
|
+
</Menu.Trigger>
|
|
151
|
+
<Menu.Positioner>
|
|
152
|
+
<Menu.Content minW="180px" bg="background.primary">
|
|
153
|
+
{column.actions.map((action) => (
|
|
154
|
+
<MenuItem
|
|
155
|
+
key={action.id}
|
|
156
|
+
primaryLabel={action.label}
|
|
157
|
+
leftIcon={action.icon}
|
|
158
|
+
onClick={() => onColumnAction?.(column.id, action.id)}
|
|
159
|
+
/>
|
|
160
|
+
))}
|
|
161
|
+
</Menu.Content>
|
|
162
|
+
</Menu.Positioner>
|
|
163
|
+
</Menu.Root>
|
|
164
|
+
)}
|
|
165
|
+
</HStack>
|
|
166
|
+
);
|
|
167
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { Box } from "@chakra-ui/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
|
|
4
|
+
import { TicketCard } from "./ticket-card";
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof TicketCard> = {
|
|
7
|
+
title: "Tickets/TicketCard",
|
|
8
|
+
component: TicketCard,
|
|
9
|
+
parameters: { layout: "padded" },
|
|
10
|
+
args: {
|
|
11
|
+
ticketId: "TK0001",
|
|
12
|
+
},
|
|
13
|
+
decorators: [
|
|
14
|
+
(Story) => (
|
|
15
|
+
<Box maxWidth="300px">
|
|
16
|
+
<Story />
|
|
17
|
+
</Box>
|
|
18
|
+
),
|
|
19
|
+
],
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export default meta;
|
|
23
|
+
|
|
24
|
+
type Story = StoryObj<typeof TicketCard>;
|
|
25
|
+
|
|
26
|
+
export const Default: Story = {
|
|
27
|
+
args: {
|
|
28
|
+
title: "Implement user authentication flow",
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const Selected: Story = {
|
|
33
|
+
args: {
|
|
34
|
+
title: "Implement user authentication flow",
|
|
35
|
+
isSelected: true,
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export const WithSingleBadge: Story = {
|
|
40
|
+
args: {
|
|
41
|
+
title: "Fix login redirect loop",
|
|
42
|
+
badges: [{ label: "bug", color: "red" }],
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export const WithMultipleBadges: Story = {
|
|
47
|
+
args: {
|
|
48
|
+
ticketId: "TK0012",
|
|
49
|
+
title: "Add dark mode support to settings panel",
|
|
50
|
+
badges: [
|
|
51
|
+
{ label: "in progress", color: "yellow" },
|
|
52
|
+
{ label: "high", color: "red" },
|
|
53
|
+
{ label: "medium", color: "orange" },
|
|
54
|
+
{ label: "frontend", color: "purple" },
|
|
55
|
+
{ label: "design", color: "pink" },
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export const WithParentAndStatus: Story = {
|
|
61
|
+
args: {
|
|
62
|
+
ticketId: "TK0005",
|
|
63
|
+
title: "Create API endpoint for user preferences",
|
|
64
|
+
badges: [
|
|
65
|
+
{ label: "backend", color: "blue" },
|
|
66
|
+
{ label: "todo", color: "gray" },
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export const WithAllBadgeColors: Story = {
|
|
72
|
+
args: {
|
|
73
|
+
title: "Badge color showcase",
|
|
74
|
+
badges: [
|
|
75
|
+
{ label: "gray" },
|
|
76
|
+
{ label: "blue", color: "blue" },
|
|
77
|
+
{ label: "cyan", color: "cyan" },
|
|
78
|
+
{ label: "green", color: "green" },
|
|
79
|
+
{ label: "yellow", color: "yellow" },
|
|
80
|
+
{ label: "orange", color: "orange" },
|
|
81
|
+
{ label: "red", color: "red" },
|
|
82
|
+
{ label: "purple", color: "purple" },
|
|
83
|
+
{ label: "pink", color: "pink" },
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export const LongTitle: Story = {
|
|
89
|
+
args: {
|
|
90
|
+
title:
|
|
91
|
+
"Refactor the entire authentication module to support OAuth2 and SAML providers with backward-compatible session handling",
|
|
92
|
+
badges: [
|
|
93
|
+
{ label: "refactor", color: "purple" },
|
|
94
|
+
{ label: "high", color: "red" },
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export const NoBadges: Story = {
|
|
100
|
+
args: {
|
|
101
|
+
title: "Quick typo fix in README",
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
export const WithDiffBadge: Story = {
|
|
106
|
+
args: {
|
|
107
|
+
title: "Implement ticket card workspace shortcut",
|
|
108
|
+
diffAdditions: 12,
|
|
109
|
+
diffDeletions: 4,
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export const WithSessionIndicator: Story = {
|
|
114
|
+
args: {
|
|
115
|
+
title: "Implement ticket card workspace shortcut",
|
|
116
|
+
sessionIndicatorLabel: "A0054",
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export const WithoutSessionIndicator: Story = {
|
|
121
|
+
args: {
|
|
122
|
+
title: "Implement ticket card workspace shortcut",
|
|
123
|
+
sessionIndicatorLabel: undefined,
|
|
124
|
+
},
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export const Draggable: Story = {
|
|
128
|
+
args: {
|
|
129
|
+
title: "Drag me around",
|
|
130
|
+
draggable: true,
|
|
131
|
+
badges: [{ label: "todo", color: "gray" }],
|
|
132
|
+
},
|
|
133
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { Badge, HStack, Stack, Text, Wrap } from "@chakra-ui/react";
|
|
2
|
+
import { GitBranchIcon } from "lucide-react";
|
|
3
|
+
import type { DragEventHandler, MouseEvent } from "react";
|
|
4
|
+
import { DiffBubble } from "@/components/diff-bubble";
|
|
5
|
+
import { Tooltip } from "@/components/tooltip";
|
|
6
|
+
import { type SessionCompletionStatus, SessionIndicator } from "./session-indicator";
|
|
7
|
+
|
|
8
|
+
export interface TicketCardBadge {
|
|
9
|
+
label: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface TicketCardProps {
|
|
14
|
+
ticketId: string;
|
|
15
|
+
sessionIndicatorLabel?: string;
|
|
16
|
+
sessionIndicatorStatus?: SessionCompletionStatus;
|
|
17
|
+
title: string;
|
|
18
|
+
badges?: TicketCardBadge[];
|
|
19
|
+
diffAdditions?: number;
|
|
20
|
+
diffDeletions?: number;
|
|
21
|
+
isSelected?: boolean;
|
|
22
|
+
draggable?: boolean;
|
|
23
|
+
onDragStart?: DragEventHandler<HTMLDivElement>;
|
|
24
|
+
onDragEnd?: DragEventHandler<HTMLDivElement>;
|
|
25
|
+
onClick?: () => void;
|
|
26
|
+
onDiffBadgeClick?: () => void;
|
|
27
|
+
onSessionIndicatorClick?: () => void;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const TicketCard = (props: TicketCardProps) => {
|
|
31
|
+
const {
|
|
32
|
+
ticketId,
|
|
33
|
+
sessionIndicatorLabel,
|
|
34
|
+
sessionIndicatorStatus,
|
|
35
|
+
title,
|
|
36
|
+
badges = [],
|
|
37
|
+
diffAdditions,
|
|
38
|
+
diffDeletions,
|
|
39
|
+
isSelected = false,
|
|
40
|
+
draggable,
|
|
41
|
+
onDragStart,
|
|
42
|
+
onDragEnd,
|
|
43
|
+
onClick,
|
|
44
|
+
onDiffBadgeClick,
|
|
45
|
+
onSessionIndicatorClick,
|
|
46
|
+
} = props;
|
|
47
|
+
|
|
48
|
+
const handleDiffBadgeClick = (event: MouseEvent<HTMLSpanElement>) => {
|
|
49
|
+
event.stopPropagation();
|
|
50
|
+
onDiffBadgeClick?.();
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const handleSessionIndicatorClick = (event: MouseEvent<SVGSVGElement>) => {
|
|
54
|
+
event.stopPropagation();
|
|
55
|
+
onSessionIndicatorClick?.();
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
return (
|
|
59
|
+
<Stack
|
|
60
|
+
gap="xs"
|
|
61
|
+
padding="sm"
|
|
62
|
+
borderRadius="sm"
|
|
63
|
+
borderWidth="1px"
|
|
64
|
+
borderColor={isSelected ? "border.accent" : "border.secondary"}
|
|
65
|
+
background="background.primary"
|
|
66
|
+
boxShadow={isSelected ? "mid" : "none"}
|
|
67
|
+
transition="box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out"
|
|
68
|
+
_hover={{
|
|
69
|
+
borderColor: isSelected ? "border.accent" : "border.primary",
|
|
70
|
+
boxShadow: "mid",
|
|
71
|
+
}}
|
|
72
|
+
cursor={draggable ? "grab" : onClick ? "pointer" : "default"}
|
|
73
|
+
draggable={draggable}
|
|
74
|
+
onDragStart={onDragStart}
|
|
75
|
+
onDragEnd={onDragEnd}
|
|
76
|
+
onClick={onClick}
|
|
77
|
+
data-selected={isSelected ? "true" : undefined}
|
|
78
|
+
>
|
|
79
|
+
<HStack justifyContent={"space-between"} gap="2xs" flexWrap="wrap">
|
|
80
|
+
<HStack gap="2xs" flexShrink={0}>
|
|
81
|
+
<Text textStyle="label/S/regular" flexShrink={0}>
|
|
82
|
+
{ticketId}
|
|
83
|
+
</Text>
|
|
84
|
+
{sessionIndicatorLabel ? (
|
|
85
|
+
<Tooltip content={`Session ${sessionIndicatorLabel}`}>
|
|
86
|
+
<SessionIndicator
|
|
87
|
+
status={sessionIndicatorStatus}
|
|
88
|
+
boxSize="12px"
|
|
89
|
+
aria-label={`Session ${sessionIndicatorLabel}`}
|
|
90
|
+
cursor={onSessionIndicatorClick ? "pointer" : "default"}
|
|
91
|
+
onClick={onSessionIndicatorClick ? handleSessionIndicatorClick : undefined}
|
|
92
|
+
/>
|
|
93
|
+
</Tooltip>
|
|
94
|
+
) : null}
|
|
95
|
+
</HStack>
|
|
96
|
+
{typeof diffAdditions === "number" && typeof diffDeletions === "number" ? (
|
|
97
|
+
<DiffBubble
|
|
98
|
+
additions={diffAdditions}
|
|
99
|
+
deletions={diffDeletions}
|
|
100
|
+
variant="ghost"
|
|
101
|
+
size="small"
|
|
102
|
+
label={<GitBranchIcon size="12" />}
|
|
103
|
+
onClick={handleDiffBadgeClick}
|
|
104
|
+
data-testid="ticket-diff-badge"
|
|
105
|
+
/>
|
|
106
|
+
) : null}
|
|
107
|
+
</HStack>
|
|
108
|
+
|
|
109
|
+
<HStack align="start" gap="2xs" flexWrap="wrap">
|
|
110
|
+
<Text textStyle="label/S/regular" flex="1" minW="0">
|
|
111
|
+
{title}
|
|
112
|
+
</Text>
|
|
113
|
+
</HStack>
|
|
114
|
+
|
|
115
|
+
{badges.length > 0 && (
|
|
116
|
+
<Wrap gap="2xs">
|
|
117
|
+
{badges.map((badge) => (
|
|
118
|
+
<Badge key={badge.label} variant="subtle" colorPalette={badge.color ?? "gray"} textStyle="label/XS/medium">
|
|
119
|
+
{badge.label}
|
|
120
|
+
</Badge>
|
|
121
|
+
))}
|
|
122
|
+
</Wrap>
|
|
123
|
+
)}
|
|
124
|
+
</Stack>
|
|
125
|
+
);
|
|
126
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Box, Button, HStack, Stack, Text } from "@chakra-ui/react";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
import { Toaster, toaster } from "./toaster";
|
|
5
|
+
|
|
6
|
+
type StoryFn = () => ReactNode;
|
|
7
|
+
|
|
8
|
+
const meta = {
|
|
9
|
+
title: "Components/Toaster",
|
|
10
|
+
component: Toaster,
|
|
11
|
+
decorators: [
|
|
12
|
+
(Story: StoryFn) => (
|
|
13
|
+
<Box minH="320px" padding="sm" background="bg">
|
|
14
|
+
<Story />
|
|
15
|
+
</Box>
|
|
16
|
+
),
|
|
17
|
+
],
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default meta;
|
|
21
|
+
|
|
22
|
+
export const Variants = {
|
|
23
|
+
render: () => {
|
|
24
|
+
const handleSuccess = () => {
|
|
25
|
+
toaster.create({
|
|
26
|
+
type: "success",
|
|
27
|
+
title: "Pipeline saved",
|
|
28
|
+
description: "The latest version is ready to run.",
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const handleWarning = () => {
|
|
33
|
+
toaster.create({
|
|
34
|
+
type: "warning",
|
|
35
|
+
title: "Missing source files",
|
|
36
|
+
description: "Add at least one file before starting the job.",
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const handleError = () => {
|
|
41
|
+
toaster.create({
|
|
42
|
+
type: "error",
|
|
43
|
+
title: "Upload failed",
|
|
44
|
+
description: "We could not reach the storage bucket.",
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const handleLoading = () => {
|
|
49
|
+
toaster.create({
|
|
50
|
+
type: "loading",
|
|
51
|
+
title: "Preparing export",
|
|
52
|
+
description: "Generating the bundle for this pipeline.",
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
return (
|
|
57
|
+
<Stack gap="md">
|
|
58
|
+
<Text textStyle="paragraph/S/regular" color="fg.muted">
|
|
59
|
+
Trigger a toast to preview styling and placement.
|
|
60
|
+
</Text>
|
|
61
|
+
<HStack gap="sm" flexWrap="wrap">
|
|
62
|
+
<Button size="sm" onClick={handleSuccess}>
|
|
63
|
+
Success
|
|
64
|
+
</Button>
|
|
65
|
+
<Button size="sm" variant="outline" onClick={handleWarning}>
|
|
66
|
+
Warning
|
|
67
|
+
</Button>
|
|
68
|
+
<Button size="sm" variant="outline" colorPalette="red" onClick={handleError}>
|
|
69
|
+
Error
|
|
70
|
+
</Button>
|
|
71
|
+
<Button size="sm" variant="ghost" onClick={handleLoading}>
|
|
72
|
+
Loading
|
|
73
|
+
</Button>
|
|
74
|
+
</HStack>
|
|
75
|
+
<Toaster />
|
|
76
|
+
</Stack>
|
|
77
|
+
);
|
|
78
|
+
},
|
|
79
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Toaster as ChakraToaster, createToaster, Portal, Spinner, Stack, Toast } from "@chakra-ui/react";
|
|
2
|
+
|
|
3
|
+
export const toaster = createToaster({
|
|
4
|
+
placement: "bottom-end",
|
|
5
|
+
pauseOnPageIdle: true,
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export const Toaster = () => {
|
|
9
|
+
return (
|
|
10
|
+
<Portal>
|
|
11
|
+
<ChakraToaster toaster={toaster} insetInline={{ mdDown: "4" }}>
|
|
12
|
+
{(toast) => (
|
|
13
|
+
<Toast.Root width={{ md: "sm" }}>
|
|
14
|
+
{toast.type === "loading" ? <Spinner size="sm" color="blue.solid" /> : <Toast.Indicator />}
|
|
15
|
+
<Stack gap="1" flex="1" maxWidth="100%">
|
|
16
|
+
{toast.title && <Toast.Title>{toast.title}</Toast.Title>}
|
|
17
|
+
{toast.description && <Toast.Description>{toast.description}</Toast.Description>}
|
|
18
|
+
</Stack>
|
|
19
|
+
{toast.action && <Toast.ActionTrigger>{toast.action.label}</Toast.ActionTrigger>}
|
|
20
|
+
{toast.closable && <Toast.CloseTrigger />}
|
|
21
|
+
</Toast.Root>
|
|
22
|
+
)}
|
|
23
|
+
</ChakraToaster>
|
|
24
|
+
</Portal>
|
|
25
|
+
);
|
|
26
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Tooltip as ChakraTooltip, Portal } from "@chakra-ui/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
|
|
4
|
+
export interface TooltipProps extends ChakraTooltip.RootProps {
|
|
5
|
+
children?: React.ReactElement;
|
|
6
|
+
showArrow?: boolean;
|
|
7
|
+
portalled?: boolean;
|
|
8
|
+
portalRef?: React.RefObject<HTMLElement>;
|
|
9
|
+
content: React.ReactNode;
|
|
10
|
+
contentProps?: ChakraTooltip.ContentProps;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Tooltip = React.forwardRef<HTMLDivElement, TooltipProps>(function Tooltip(props, ref) {
|
|
15
|
+
const { showArrow, children, disabled, portalled = true, content, contentProps, portalRef, ...rest } = props;
|
|
16
|
+
|
|
17
|
+
const isEmptyContent = (node: React.ReactNode): boolean => {
|
|
18
|
+
if (node === null || node === undefined || node === false) return true;
|
|
19
|
+
const arr = React.Children.toArray(node);
|
|
20
|
+
if (arr.length === 0) return true;
|
|
21
|
+
return arr.every((child) => (typeof child === "string" ? child.trim().length === 0 : false));
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
if (disabled || isEmptyContent(content)) return children;
|
|
25
|
+
|
|
26
|
+
return (
|
|
27
|
+
<ChakraTooltip.Root openDelay={100} closeDelay={100} {...rest}>
|
|
28
|
+
<ChakraTooltip.Trigger asChild>{children}</ChakraTooltip.Trigger>
|
|
29
|
+
<Portal disabled={!portalled} container={portalRef}>
|
|
30
|
+
<ChakraTooltip.Positioner>
|
|
31
|
+
<ChakraTooltip.Content ref={ref} {...contentProps}>
|
|
32
|
+
{showArrow && (
|
|
33
|
+
<ChakraTooltip.Arrow>
|
|
34
|
+
<ChakraTooltip.ArrowTip />
|
|
35
|
+
</ChakraTooltip.Arrow>
|
|
36
|
+
)}
|
|
37
|
+
{content}
|
|
38
|
+
</ChakraTooltip.Content>
|
|
39
|
+
</ChakraTooltip.Positioner>
|
|
40
|
+
</Portal>
|
|
41
|
+
</ChakraTooltip.Root>
|
|
42
|
+
);
|
|
43
|
+
});
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { ChakraProvider } from "@chakra-ui/react";
|
|
2
|
+
export type { AlertProps } from "./components/alert";
|
|
3
|
+
export { AlertMessage } from "./components/alert";
|
|
4
|
+
export { ContentPlaceholder, Label as ContentPlaceholderLabel } from "./components/content-placeholder";
|
|
5
|
+
export { DeleteConfirmationModal } from "./components/delete-confirmation-modal";
|
|
6
|
+
export type { EmptyStateProps } from "./components/empty-state";
|
|
7
|
+
export { EmptyState } from "./components/empty-state";
|
|
8
|
+
export { ErrorBoundary } from "./components/error-boundary";
|
|
9
|
+
export { MenuItem } from "./components/menu-item";
|
|
10
|
+
export type { OpenSourceNotice, OpenSourceNoticesScreenProps } from "./components/open-source-notices-screen";
|
|
11
|
+
export { OpenSourceNoticesScreen } from "./components/open-source-notices-screen";
|
|
12
|
+
export { Toaster, toaster } from "./components/toaster";
|
|
13
|
+
export { Tooltip } from "./components/tooltip";
|
|
14
|
+
export { psTheme } from "./theme";
|
|
15
|
+
export { applyThemePreference, type ThemePreference } from "./utils/apply-theme-preference";
|
|
16
|
+
export { getInitialThemePreference, ThemePreferenceProvider, useThemePreference } from "./utils/theme-preference";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export const globalCss = {
|
|
2
|
+
"*::selection": {
|
|
3
|
+
bg: {
|
|
4
|
+
base: "bg.accent-secondary.blue-medium",
|
|
5
|
+
_dark: "bg.accent-secondary.blue-medium",
|
|
6
|
+
},
|
|
7
|
+
},
|
|
8
|
+
|
|
9
|
+
":root": {
|
|
10
|
+
"--focus-border": "blue.border",
|
|
11
|
+
"--separator-border": "transparent !important",
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
html: {
|
|
15
|
+
height: "100%",
|
|
16
|
+
width: "100%",
|
|
17
|
+
overflow: "hidden",
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
body: {
|
|
21
|
+
height: "100%",
|
|
22
|
+
width: "100%",
|
|
23
|
+
fontFamily: "body",
|
|
24
|
+
fontWeight: "regular",
|
|
25
|
+
fontSize: "md",
|
|
26
|
+
bg: "bg",
|
|
27
|
+
color: "fg",
|
|
28
|
+
borderColor: "border",
|
|
29
|
+
overflow: "hidden",
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
"#root": {
|
|
33
|
+
height: "100%",
|
|
34
|
+
width: "100%",
|
|
35
|
+
display: "flex",
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
".sash": {
|
|
39
|
+
zIndex: "docked",
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
"@media (min-width: 2560px)": {
|
|
43
|
+
html: { fontSize: "1.25rem" },
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
"@media (min-width: 3840px)": {
|
|
47
|
+
html: { fontSize: "1.5rem" },
|
|
48
|
+
},
|
|
49
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "@fontsource/inter/400.css";
|
|
2
|
+
import "@fontsource/inter/500.css";
|
|
3
|
+
import "@fontsource/playfair-display/400.css";
|
|
4
|
+
import "@fontsource/playfair-display/600.css";
|
|
5
|
+
import "@fontsource/playfair-display/700.css";
|
|
6
|
+
import "@fontsource/onest/400.css";
|
|
7
|
+
import "@fontsource/onest/500.css";
|
|
8
|
+
import "@fontsource/onest/700.css";
|
|
9
|
+
|
|
10
|
+
export { default as psTheme } from "./theme";
|