@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,921 @@
|
|
|
1
|
+
import{r as T,j as t}from"./iframe-B8FSoBNY.js";import{c as F}from"./compiler-runtime-BXE7OOXE.js";import{N as K,S as $,D as X,C as Z,a as j}from"./param-editor-selection-input-2pJE1_W1.js";import{T as ae}from"./tooltip-DZxUoouw.js";import{F as ee}from"./flex-DAJL4AFZ.js";import{T as D}from"./index-cFwdnc0b.js";import{I as z}from"./input-ZSs5cSFQ.js";import{B as N}from"./index-B0y2_lLF.js";import{T as ie}from"./textarea-rqmaWSc5.js";import{B as se}from"./button-C7it2n8t.js";import{C as re}from"./chevron-down-BYCAGyCV.js";import{c as oe}from"./createLucideIcon-CcBBUKX8.js";import{S as ne}from"./stack-CN4X31TA.js";import{b as le,c as de}from"./collapsible-DBDG7h1r.js";import{S as H}from"./separator-CQkMOHNm.js";import"./preload-helper-PPVm8Dsz.js";import"./create-recipe-context-BU56IzEo.js";import"./factory-DAJZwK4o.js";import"./number-C92MPsRM.js";import"./create-slot-recipe-context-DAhDE6G_.js";import"./icons-WRA1cA-W.js";import"./icon-button-DHiUe7rR.js";import"./factory-BR3bc_RM.js";import"./create-split-props-u5h9OPvL.js";import"./use-presence-context-DK2PGZth.js";import"./normalize-props-D7NI5JRu.js";import"./index-DaXC_qY_.js";import"./index-DpB4ozcR.js";import"./computed-style-C0hzrq9-.js";import"./use-field-context-DoxKQlMm.js";import"./tooltip-C_a-XGZ8.js";import"./overflow-CkG1DOya.js";import"./typeahead-CuY9WxfQ.js";import"./menu-item-CrqDaj9K.js";import"./tabbable-DHAf8oAu.js";import"./mutation-observer-CAfGweIM.js";import"./dismissable-layer-Cc5dFRd8.js";import"./icon-C8FN9JqD.js";import"./badge-CtgJasjB.js";import"./form-D_Xln9tK.js";import"./number-input-D1aC-9ls.js";import"./portal-CZHfPTRw.js";import"./spinner-ZYH_gvW-.js";import"./index-CXwl6T4k.js";import"./collapsible-content-B1Uq3jUM.js";function Q(i,e=[]){const r=T.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return T.useInsertionEffect(()=>{r.current=i}),T.useCallback((...l)=>r.current?.(...l),e)}function me(i={}){const e=Q(i.onOpen),r=Q(i.onClose),[l,s]=T.useState(i.defaultOpen||!1),o=i.open!==void 0?i.open:l,m=i.open!==void 0,p=T.useCallback(()=>{m||s(!1),r?.()},[m,r]),x=T.useCallback(()=>{m||s(!0),e?.()},[m,e]),f=T.useCallback(()=>{o?p():x()},[o,x,p]);return{open:o,onOpen:x,onClose:p,onToggle:f,setOpen:s}}const ue=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],pe=oe("chevron-left",ue),J=i=>{const e=F.c(21),{id:r,defaultValue:l,name:s,onChange:o,description:m,readOnly:p,singleLine:x,hideLabel:f,fullWidth:b}=i,c=x===void 0?!0:x,d=f===void 0?!1:f,v=b===void 0?!1:b,[y,h]=T.useState(l),C=T.useRef(null);let g;e[0]!==r||e[1]!==o?(g=A=>{C.current&&clearTimeout(C.current),C.current=setTimeout(()=>o(r,A),540)},e[0]=r,e[1]=o,e[2]=g):g=e[2];const V=g;let n,u;e[3]!==l?(n=()=>{h(l)},u=[l],e[3]=l,e[4]=n,e[5]=u):(n=e[4],u=e[5]),T.useEffect(n,u);let a;e[6]!==V?(a=A=>{h(A),V(A)},e[6]=V,e[7]=a):a=e[7];const S=a;let L;e[8]===Symbol.for("react.memo_cache_sentinel")?(L={placement:"right"},e[8]=L):L=e[8];let I;e[9]===Symbol.for("react.memo_cache_sentinel")?(I={padding:"xxs"},e[9]=I):I=e[9];let w;e[10]!==v||e[11]!==S||e[12]!==d||e[13]!==s||e[14]!==p||e[15]!==c||e[16]!==y?(w=c&&!v?t.jsxs(ee,{alignItems:"center",justifyContent:"space-between",minHeight:"2rem",mb:"sm",children:[!d&&t.jsx(D,{mr:"xs",textStyle:"label/S/medium",color:"foreground.secondary",children:s}),t.jsx(z,{className:"nodrag",readOnly:p,flex:"1",maxW:"12.5rem",size:"sm",type:"text",placeholder:d?s:void 0,value:y,onChange:A=>S(A.target.value),onKeyUp:ce})]}):t.jsxs(N,{children:[!d&&t.jsx(D,{textStyle:"label/S/medium",color:"foreground.secondary",mb:"xs",children:s}),c?t.jsx(z,{className:"nodrag",readOnly:p,width:"100%",size:"sm",type:"text",placeholder:d?s:void 0,value:y,onChange:A=>S(A.target.value),onKeyUp:ge}):t.jsx(ie,{className:"nodrag",readOnly:p,width:"100%",size:"sm",placeholder:d?s:void 0,value:y,onChange:A=>S(A.target.value),rows:3,resize:"vertical"})]}),e[10]=v,e[11]=S,e[12]=d,e[13]=s,e[14]=p,e[15]=c,e[16]=y,e[17]=w):w=e[17];let M;return e[18]!==m||e[19]!==w?(M=t.jsx(N,{children:t.jsx(ae,{positioning:L,content:m,contentProps:I,children:w})}),e[18]=m,e[19]=w,e[20]=M):M=e[20],M};J.__docgenInfo={description:"",methods:[],displayName:"TextInput",props:{id:{required:!0,tsType:{name:"string"},description:""},defaultValue:{required:!0,tsType:{name:"string"},description:""},name:{required:!0,tsType:{name:"string"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(id: string, value: string) => void",signature:{arguments:[{type:{name:"string"},name:"id"},{type:{name:"string"},name:"value"}],return:{name:"void"}}},description:""},description:{required:!0,tsType:{name:"string"},description:""},readOnly:{required:!1,tsType:{name:"boolean"},description:""},singleLine:{required:!1,tsType:{name:"boolean"},description:""},hideLabel:{required:!1,tsType:{name:"boolean"},description:""},fullWidth:{required:!1,tsType:{name:"boolean"},description:""}}};function ce(i){i.key==="Enter"&&i.currentTarget.blur()}function ge(i){i.key==="Enter"&&i.currentTarget.blur()}const te=i=>{const e=F.c(26),{group:r,defaultValues:l,onChange:s,readOnly:o,fullWidth:m}=i,p=m===void 0?!1:m,x=!r.defaultCollapsed;let f;e[0]!==x?(f={defaultOpen:x},e[0]=x,e[1]=f):f=e[1];const{open:b,onToggle:c}=me(f);let d;e[2]!==l||e[3]!==p||e[4]!==s||e[5]!==o?(d=a=>{if(a.type==="number"){const S=l[a.id]===void 0?a.defaultValue:l[a.id];return t.jsx(K,{readOnly:o,id:a.id,name:a.name,description:a.description||"",defaultValue:S,min:a.min,max:a.max,step:a.step,onChange:s,fullWidth:p},a.id)}if(a.type==="text"){const S=l[a.id]===void 0?a.defaultValue:l[a.id];return t.jsx(J,{readOnly:o,id:a.id,name:a.name,description:a.description||"",defaultValue:S,singleLine:a.singleLine,onChange:s,fullWidth:p},a.id)}if(a.type==="selection"){const S=l[a.id]===void 0?a.defaultValue:l[a.id];return t.jsx($,{readOnly:o,id:a.id,name:a.name,description:a.description||"",defaultValue:S,options:a.options,onChange:s,multiSelect:a.multiSelect,placeholder:a.placeholder,fullWidth:p},a.id)}if(a.type==="date"){const S=l[a.id]===void 0?a.defaultValue:l[a.id];return t.jsx(X,{readOnly:o,id:a.id,name:a.name,description:a.description||"",defaultValue:S,min:a.min,max:a.max,onChange:s,fullWidth:p},a.id)}if(a.type==="color"){const S=l[a.id]===void 0?a.defaultValue:l[a.id];return t.jsx(Z,{readOnly:o,id:a.id,name:a.name,description:a.description||"",defaultValue:S,onChange:s,fullWidth:p},a.id)}return null},e[2]=l,e[3]=p,e[4]=s,e[5]=o,e[6]=d):d=e[6];const v=d;let y;e[7]!==r.collapsible||e[8]!==r.title||e[9]!==c||e[10]!==b?(y=r.collapsible?t.jsx(se,{variant:"ghost",size:"xs",onClick:c,pl:0,_hover:{bg:"transparent"},children:t.jsxs(ee,{alignItems:"center",gap:"xs",children:[t.jsx(D,{textStyle:"label/M/medium",children:r.title}),b?t.jsx(re,{size:14}):t.jsx(pe,{size:14})]})}):t.jsx(D,{textStyle:"label/M/medium",children:r.title}),e[7]=r.collapsible,e[8]=r.title,e[9]=c,e[10]=b,e[11]=y):y=e[11];let h;e[12]!==r.description?(h=r.description&&t.jsx(D,{textStyle:"label/S/regular",color:"foreground.secondary",mb:"sm",children:r.description}),e[12]=r.description,e[13]=h):h=e[13];const C=r.collapsible?b:!0;let g;e[14]!==r.params||e[15]!==v?(g=r.params.map(v),e[14]=r.params,e[15]=v,e[16]=g):g=e[16];let V;e[17]!==g?(V=t.jsx(le,{children:t.jsx(ne,{gap:"md",children:g})}),e[17]=g,e[18]=V):V=e[18];let n;e[19]!==C||e[20]!==V?(n=t.jsx(de,{open:C,children:V}),e[19]=C,e[20]=V,e[21]=n):n=e[21];let u;return e[22]!==y||e[23]!==h||e[24]!==n?(u=t.jsxs(N,{children:[y,h,n]}),e[22]=y,e[23]=h,e[24]=n,e[25]=u):u=e[25],u};te.__docgenInfo={description:"",methods:[],displayName:"InputGroupComponent",props:{group:{required:!0,tsType:{name:"InputGroup"},description:""},defaultValues:{required:!0,tsType:{name:"Record",elements:[{name:"string"},{name:"union",raw:"number | string | null | ObjectDefinition | Array<number> | Array<string>",elements:[{name:"number"},{name:"string"},{name:"null"},{name:"Array",elements:[{name:"unknown"}],raw:"(NumberParam | TextParam)[]"},{name:"Array",elements:[{name:"number"}],raw:"Array<number>"},{name:"Array",elements:[{name:"string"}],raw:"Array<string>"}]}],raw:"Record<string, ParamValue>"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(id: string, value: ParamValue) => void",signature:{arguments:[{type:{name:"string"},name:"id"},{type:{name:"union",raw:"number | string | null | ObjectDefinition | Array<number> | Array<string>",elements:[{name:"number"},{name:"string"},{name:"null"},{name:"Array",elements:[{name:"unknown"}],raw:"(NumberParam | TextParam)[]"},{name:"Array",elements:[{name:"number"}],raw:"Array<number>"},{name:"Array",elements:[{name:"string"}],raw:"Array<string>"}]},name:"value"}],return:{name:"void"}}},description:""},readOnly:{required:!1,tsType:{name:"boolean"},description:""},fullWidth:{required:!1,tsType:{name:"boolean"},description:""}}};const P=i=>{const e=F.c(31),{params:r,groups:l,defaultValues:s,onChange:o,readOnly:m,fullWidth:p}=i;let x;e[0]!==r?(x=r===void 0?[]:r,e[0]=r,e[1]=x):x=e[1];const f=x;let b;e[2]!==l?(b=l===void 0?[]:l,e[2]=l,e[3]=b):b=e[3];const c=b,d=p===void 0?!1:p;let v;e[4]!==s||e[5]!==d||e[6]!==o||e[7]!==m?(v=n=>{if(n.type==="number"){const u=s[n.id]===void 0?n.defaultValue??n.min:s[n.id];return t.jsx(K,{readOnly:m,id:n.id,name:n.name,description:n.description||"",defaultValue:u,min:n.min,max:n.max,step:n.step,onChange:o,fullWidth:d},n.id)}if(n.type==="text"){const u=s[n.id]===void 0?n.defaultValue:s[n.id];return t.jsx(J,{readOnly:m,id:n.id,name:n.name,description:n.description||"",defaultValue:u,singleLine:n.singleLine,onChange:o,fullWidth:d},n.id)}if(n.type==="selection"){const u=s[n.id]===void 0?n.defaultValue:s[n.id];return t.jsx($,{readOnly:m,id:n.id,name:n.name,description:n.description||"",defaultValue:u,options:n.options,onChange:o,multiSelect:n.multiSelect,placeholder:n.placeholder,fullWidth:d},n.id)}if(n.type==="date"){const u=s[n.id]===void 0?n.defaultValue??n.min:s[n.id];return t.jsx(X,{readOnly:m,id:n.id,name:n.name,description:n.description||"",defaultValue:u,min:n.min,max:n.max,onChange:o,fullWidth:d},n.id)}if(n.type==="color"){const u=s[n.id]===void 0?n.defaultValue:s[n.id];return t.jsx(Z,{readOnly:m,id:n.id,name:n.name,description:n.description||"",defaultValue:u,onChange:o,fullWidth:d},n.id)}return null},e[4]=s,e[5]=d,e[6]=o,e[7]=m,e[8]=v):v=e[8];const y=v;let h;e[9]!==f||e[10]!==y?(h=f.map(y),e[9]=f,e[10]=y,e[11]=h):h=e[11];let C;e[12]!==c.length||e[13]!==f.length?(C=f.length>0&&c.length>0&&t.jsx(H,{borderColor:"border.secondary"}),e[12]=c.length,e[13]=f.length,e[14]=C):C=e[14];let g;if(e[15]!==s||e[16]!==d||e[17]!==c||e[18]!==o||e[19]!==m){let n;e[21]!==s||e[22]!==d||e[23]!==c.length||e[24]!==o||e[25]!==m?(n=(u,a)=>t.jsxs(T.Fragment,{children:[t.jsx(te,{group:u,defaultValues:s,onChange:o,readOnly:m,fullWidth:d}),a<c.length-1&&t.jsx(H,{borderColor:"border.secondary"})]},u.id),e[21]=s,e[22]=d,e[23]=c.length,e[24]=o,e[25]=m,e[26]=n):n=e[26],g=c.map(n),e[15]=s,e[16]=d,e[17]=c,e[18]=o,e[19]=m,e[20]=g}else g=e[20];let V;return e[27]!==h||e[28]!==C||e[29]!==g?(V=t.jsxs(ne,{flex:"1",maxW:"full",gap:"md",children:[h,C,g]}),e[27]=h,e[28]=C,e[29]=g,e[30]=V):V=e[30],V};P.__docgenInfo={description:"",methods:[],displayName:"ParamEditor",props:{params:{required:!1,tsType:{name:"Array",elements:[{name:"union",raw:`| NumberParam
|
|
2
|
+
| TextParam
|
|
3
|
+
| SelectionParam
|
|
4
|
+
| DateParam
|
|
5
|
+
| ColorParam
|
|
6
|
+
| ObjectParam
|
|
7
|
+
| ListParam
|
|
8
|
+
| VectorParam`,elements:[{name:"NumberParam"},{name:"TextParam"},{name:"SelectionParam"},{name:"DateParam"},{name:"ColorParam"},{name:"ObjectParam"},{name:"ListParam"},{name:"VectorParam"}]}],raw:"Param[]"},description:""},groups:{required:!1,tsType:{name:"Array",elements:[{name:"InputGroup"}],raw:"InputGroup[]"},description:""},defaultValues:{required:!0,tsType:{name:"Record",elements:[{name:"string"},{name:"union",raw:"number | string | null | ObjectDefinition | Array<number> | Array<string>",elements:[{name:"number"},{name:"string"},{name:"null"},{name:"Array",elements:[{name:"unknown"}],raw:"(NumberParam | TextParam)[]"},{name:"Array",elements:[{name:"number"}],raw:"Array<number>"},{name:"Array",elements:[{name:"string"}],raw:"Array<string>"}]}],raw:"Record<string, ParamValue>"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(id: string, value: ParamValue) => void",signature:{arguments:[{type:{name:"string"},name:"id"},{type:{name:"union",raw:"number | string | null | ObjectDefinition | Array<number> | Array<string>",elements:[{name:"number"},{name:"string"},{name:"null"},{name:"Array",elements:[{name:"unknown"}],raw:"(NumberParam | TextParam)[]"},{name:"Array",elements:[{name:"number"}],raw:"Array<number>"},{name:"Array",elements:[{name:"string"}],raw:"Array<string>"}]},name:"value"}],return:{name:"void"}}},description:""},readOnly:{required:!1,tsType:{name:"boolean"},description:""},fullWidth:{required:!1,tsType:{name:"boolean"},description:""}}};const on={title:"Components/ParamEditor",component:P,parameters:{layout:"fullscreen"},tags:[],argTypes:{}},k={render:i=>t.jsx(j,{padding:"md",children:t.jsx(P,{...i})}),args:{defaultValues:{1:5,2:5,3:"Hello World",4:`This is a multiline text example
|
|
9
|
+
with multiple lines`,5:"user",6:"2024-07-30",7:"#ff0000"},onChange:()=>{},params:[{id:"1",name:"Temperature",type:"number",description:"Controls randomness in the output",defaultValue:1,min:0,max:2,step:.1},{id:"2",name:"Max Tokens",type:"number",description:"Maximum number of tokens to generate",defaultValue:100,min:1,max:1e3,step:1},{id:"3",name:"System Message",type:"text",description:"Single line system instruction",defaultValue:"You are a helpful assistant",singleLine:!0},{id:"4",name:"Prompt Template",type:"text",description:"Multi-line prompt template",defaultValue:`Please help me with:
|
|
10
|
+
{user_input}`,singleLine:!1},{id:"5",name:"Role",type:"selection",description:"Select a role",defaultValue:"user",options:[{id:"user",name:"User"},{id:"assistant",name:"Assistant"},{id:"system",name:"System"}]},{id:"6",name:"Start Date",type:"date",description:"Select the start date for the process",defaultValue:"2024-01-01",min:"2024-01-01",max:"2024-12-31"},{id:"7",name:"Theme Color",type:"color",description:"Pick a theme color",defaultValue:"#ff0000"}],readOnly:!1}},E={render:i=>t.jsx(j,{padding:"md",children:t.jsx(P,{...i})}),args:{defaultValues:{1:"Short instruction",2:`This is a longer text input
|
|
11
|
+
that spans multiple lines
|
|
12
|
+
and demonstrates multiline capability`,3:"API_KEY_12345"},onChange:()=>{},params:[{id:"1",name:"Quick Command",type:"text",description:"Single line command or instruction",defaultValue:"help",singleLine:!0},{id:"2",name:"Description",type:"text",description:"Detailed description or documentation",defaultValue:"Enter your description here...",singleLine:!1},{id:"3",name:"API Key",type:"text",description:"Your API key (read-only in this example)",defaultValue:"sk-...",singleLine:!0}],readOnly:!1}},O={render:i=>t.jsx(j,{padding:"md",children:t.jsx(P,{...i})}),args:{defaultValues:{1:.7,2:"You are a helpful AI assistant",3:`Please analyze the following text:
|
|
13
|
+
{input}
|
|
14
|
+
|
|
15
|
+
Provide a summary and key insights.`,4:"assistant",5:"2024-07-30"},onChange:()=>{},params:[{id:"1",name:"Temperature",type:"number",description:"Model temperature setting",defaultValue:.5,min:0,max:1,step:.1},{id:"2",name:"System Prompt",type:"text",description:"System-level instructions",defaultValue:"You are a helpful assistant",singleLine:!0},{id:"3",name:"User Prompt Template",type:"text",description:"Template for user prompts",defaultValue:"Please help with: {request}",singleLine:!1},{id:"4",name:"Role",type:"selection",description:"Select a role",defaultValue:"assistant",options:[{id:"user",name:"User"},{id:"assistant",name:"Assistant"},{id:"system",name:"System"}]},{id:"5",name:"Deadline",type:"date",description:"Project deadline (read-only)",defaultValue:"2024-12-31",min:"2024-01-01",max:"2025-12-31"}],readOnly:!0}},R={render:i=>t.jsx(j,{padding:"md",children:t.jsx(P,{...i})}),args:{defaultValues:{1:"2024-07-30",2:"2024-01-01",3:"2025-12-31",4:"2024-06-15"},onChange:()=>{},params:[{id:"1",name:"Current Date",type:"date",description:"Today's date with no restrictions",defaultValue:"2024-07-30"},{id:"2",name:"Start Date",type:"date",description:"Project start date (minimum: 2024-01-01)",defaultValue:"2024-01-01",min:"2024-01-01"},{id:"3",name:"End Date",type:"date",description:"Project end date (maximum: 2025-12-31)",defaultValue:"2025-12-31",max:"2025-12-31"},{id:"4",name:"Event Date",type:"date",description:"Event date with both min/max constraints",defaultValue:"2024-06-15",min:"2024-01-01",max:"2024-12-31"}],readOnly:!1}},U={render:i=>t.jsx(j,{padding:"md",children:t.jsx(P,{...i})}),args:{defaultValues:{1:["user","assistant"],2:["javascript","typescript","python"],3:[],4:["high"]},onChange:()=>{},params:[{id:"1",name:"Allowed Roles",type:"selection",description:"Select multiple roles that are allowed",defaultValue:["user","assistant"],multiSelect:!0,options:[{id:"user",name:"User"},{id:"assistant",name:"Assistant"},{id:"system",name:"System"},{id:"admin",name:"Administrator"}]},{id:"2",name:"Programming Languages",type:"selection",description:"Choose your preferred programming languages",defaultValue:["javascript","typescript"],multiSelect:!0,options:[{id:"javascript",name:"JavaScript"},{id:"typescript",name:"TypeScript"},{id:"python",name:"Python"},{id:"java",name:"Java"},{id:"csharp",name:"C#"},{id:"go",name:"Go"},{id:"rust",name:"Rust"}]},{id:"3",name:"Categories",type:"selection",description:"Select categories (none selected by default)",defaultValue:[],multiSelect:!0,placeholder:"Category",options:[{id:"web",name:"Web Development"},{id:"mobile",name:"Mobile Development"},{id:"ai",name:"Artificial Intelligence"},{id:"data",name:"Data Science"},{id:"devops",name:"DevOps"}]},{id:"4",name:"Priority Levels",type:"selection",description:"Select priority levels for tasks",defaultValue:["high"],multiSelect:!0,options:[{id:"low",name:"Low Priority"},{id:"medium",name:"Medium Priority"},{id:"high",name:"High Priority"},{id:"urgent",name:"Urgent"}]}],readOnly:!1}},_={render:i=>t.jsx(j,{padding:"md",children:t.jsx(P,{...i})}),args:{defaultValues:{1:"assistant",2:["javascript","python"],3:"production",4:["feature","bugfix"]},onChange:()=>{},params:[{id:"1",name:"Default Role (Single)",type:"selection",description:"Choose one default role",defaultValue:"assistant",options:[{id:"user",name:"User"},{id:"assistant",name:"Assistant"},{id:"system",name:"System"}]},{id:"2",name:"Languages (Multi)",type:"selection",description:"Select multiple programming languages",defaultValue:["javascript"],multiSelect:!0,options:[{id:"javascript",name:"JavaScript"},{id:"python",name:"Python"},{id:"java",name:"Java"},{id:"csharp",name:"C#"}]},{id:"3",name:"Environment (Single)",type:"selection",description:"Choose deployment environment",defaultValue:"staging",options:[{id:"development",name:"Development"},{id:"staging",name:"Staging"},{id:"production",name:"Production"}]},{id:"4",name:"Branch Types (Multi)",type:"selection",description:"Select allowed branch types",defaultValue:["feature"],multiSelect:!0,options:[{id:"feature",name:"Feature Branch"},{id:"bugfix",name:"Bug Fix"},{id:"hotfix",name:"Hot Fix"},{id:"release",name:"Release Branch"}]}],readOnly:!1}},q={render:i=>t.jsx(j,{padding:"md",children:t.jsx(P,{...i})}),args:{defaultValues:{temp:.7,maxTokens:150,systemMsg:"You are a helpful assistant",promptTemplate:`Please help me with:
|
|
16
|
+
{user_input}`,role:"assistant",startDate:"2024-01-01",endDate:"2024-12-31",apiUrl:"https://api.example.com",timeout:30},onChange:()=>{},groups:[{id:"llm-settings",title:"LLM Configuration",description:"Settings that control the language model behavior",collapsible:!0,defaultCollapsed:!1,params:[{id:"temp",name:"Temperature",type:"number",description:"Controls randomness in the output",defaultValue:.7,min:0,max:2,step:.1},{id:"maxTokens",name:"Max Tokens",type:"number",description:"Maximum number of tokens to generate",defaultValue:150,min:1,max:1e3,step:1}]},{id:"prompt-settings",title:"Prompt Configuration",description:"Configure your prompts and system messages",collapsible:!0,defaultCollapsed:!1,params:[{id:"systemMsg",name:"System Message",type:"text",description:"System-level instructions",defaultValue:"You are a helpful assistant",singleLine:!0},{id:"promptTemplate",name:"Prompt Template",type:"text",description:"Template for user prompts",defaultValue:"Please help with: {request}",singleLine:!1},{id:"role",name:"Default Role",type:"selection",description:"Select the default role",defaultValue:"assistant",options:[{id:"user",name:"User"},{id:"assistant",name:"Assistant"},{id:"system",name:"System"}]}]},{id:"scheduling",title:"Scheduling",description:"Date and time configuration",collapsible:!0,defaultCollapsed:!0,params:[{id:"startDate",name:"Start Date",type:"date",description:"Project start date",defaultValue:"2024-01-01",min:"2024-01-01"},{id:"endDate",name:"End Date",type:"date",description:"Project end date",defaultValue:"2024-12-31",max:"2025-12-31"}]},{id:"api-settings",title:"API Configuration",description:"External API settings and timeouts",collapsible:!0,defaultCollapsed:!0,params:[{id:"apiUrl",name:"API URL",type:"text",description:"Base URL for API calls",defaultValue:"https://api.example.com",singleLine:!0},{id:"timeout",name:"Timeout (seconds)",type:"number",description:"Request timeout in seconds",defaultValue:30,min:5,max:300,step:5}]}],readOnly:!1}},W={render:i=>t.jsx(j,{padding:"md",children:t.jsx(P,{...i})}),args:{defaultValues:{standalone:"Quick setting",temp:.8,model:"gpt-4",env:"production"},onChange:()=>{},params:[{id:"standalone",name:"Quick Setting",type:"text",description:"A standalone parameter outside of groups",defaultValue:"Quick setting",singleLine:!0}],groups:[{id:"model-config",title:"Model Configuration",collapsible:!1,description:"Settings related to AI model configuration",params:[{id:"temp",name:"Temperature",type:"number",description:"Model temperature",defaultValue:.8,min:0,max:1,step:.1},{id:"model",name:"Model",type:"selection",description:"Choose the AI model",defaultValue:"gpt-4",options:[{id:"gpt-3.5-turbo",name:"GPT-3.5 Turbo"},{id:"gpt-4",name:"GPT-4"},{id:"claude-3",name:"Claude 3"}]}]},{id:"deployment",title:"Deployment",collapsible:!0,defaultCollapsed:!1,description:"Settings related to deployment environment",params:[{id:"env",name:"Environment",type:"selection",description:"Deployment environment",defaultValue:"staging",options:[{id:"development",name:"Development"},{id:"staging",name:"Staging"},{id:"production",name:"Production"}]}]}],readOnly:!1}},Y={render:i=>t.jsx(j,{padding:"md",children:t.jsx(P,{...i})}),args:{defaultValues:{1:"user",2:["javascript","typescript"],3:"home-2",4:["high","medium"]},onChange:()=>{},params:[{id:"1",name:"User Role",type:"selection",description:"Select a user role with icons",defaultValue:"user",options:[{id:"user",name:"User",icon:"user"},{id:"assistant",name:"Assistant",icon:"code"},{id:"system",name:"System",icon:"component"},{id:"admin",name:"Administrator",icon:"teacher"}]},{id:"2",name:"Programming Languages",type:"selection",description:"Choose programming languages with icons",defaultValue:["javascript","typescript"],multiSelect:!0,options:[{id:"javascript",name:"JavaScript",icon:"code"},{id:"typescript",name:"TypeScript",icon:"code-1"},{id:"python",name:"Python",icon:"code-circle"},{id:"java",name:"Java",icon:"document-code"},{id:"csharp",name:"C#",icon:"component"}]},{id:"3",name:"Navigation Section",type:"selection",description:"Choose a navigation section with icons",defaultValue:"home-2",options:[{id:"home-2",name:"Home",icon:"home-2"},{id:"folder-2",name:"Projects",icon:"folder-2"},{id:"user",name:"Profile",icon:"user"},{id:"wallet-2",name:"Billing",icon:"wallet-2"},{id:"component",name:"Settings",icon:"component"}]},{id:"4",name:"Priority Levels",type:"selection",description:"Select priority levels with status icons",defaultValue:["high"],multiSelect:!0,options:[{id:"low",name:"Low Priority",icon:"arrow-down"},{id:"medium",name:"Medium Priority",icon:"minus"},{id:"high",name:"High Priority",icon:"arrow-up-3"},{id:"urgent",name:"Urgent",icon:"danger"}]}],readOnly:!1}},B={render:i=>t.jsx(j,{padding:"md",children:t.jsx(P,{...i})}),args:{defaultValues:{1:.7,2:"You are a helpful assistant",3:"user",4:"2024-01-01"},onChange:()=>{},params:[{id:"1",name:"Temperature",type:"number",description:"Controls randomness in the output",defaultValue:.7,min:0,max:2,step:.1},{id:"2",name:"System Message",type:"text",description:"System-level instructions for the AI",defaultValue:"You are a helpful assistant",singleLine:!0},{id:"3",name:"User Role",type:"selection",description:"Select a user role",defaultValue:"user",options:[{id:"user",name:"User",icon:"user"},{id:"assistant",name:"Assistant",icon:"code"},{id:"system",name:"System",icon:"component"}]},{id:"4",name:"Start Date",type:"date",description:"Project start date",defaultValue:"2024-01-01"}],fullWidth:!0,readOnly:!1}},G={render:i=>t.jsx(j,{padding:"md",children:t.jsx(P,{...i})}),args:{defaultValues:{temp:.7,maxTokens:150,systemMsg:"You are a helpful assistant",role:"assistant",startDate:"2024-01-01",apiUrl:"https://api.example.com"},onChange:()=>{},groups:[{id:"model-settings",title:"Model Configuration",description:"Configure model parameters and behavior",params:[{id:"temp",name:"Temperature",type:"number",description:"Controls randomness in the output",defaultValue:.7,min:0,max:2,step:.1},{id:"maxTokens",name:"Max Tokens",type:"number",description:"Maximum number of tokens to generate",defaultValue:150,min:1,max:1e3,step:1}]},{id:"prompt-settings",title:"Prompt Configuration",description:"Customize prompt behavior and context",params:[{id:"systemMsg",name:"System Message",type:"text",description:"System-level instructions",defaultValue:"You are a helpful assistant",singleLine:!0},{id:"role",name:"Assistant Role",type:"selection",description:"Choose the assistant's role",defaultValue:"assistant",options:[{id:"assistant",name:"Assistant",icon:"code"},{id:"teacher",name:"Teacher",icon:"teacher"},{id:"consultant",name:"Consultant",icon:"user"}]}]},{id:"api-settings",title:"API Configuration",description:"Configure API endpoints and timing",params:[{id:"apiUrl",name:"API Endpoint",type:"text",description:"Base URL for API requests",defaultValue:"https://api.example.com",singleLine:!0},{id:"startDate",name:"Start Date",type:"date",description:"Project start date",defaultValue:"2024-01-01"}]}],fullWidth:!0,readOnly:!1}};k.parameters={...k.parameters,docs:{...k.parameters?.docs,source:{originalSource:`{
|
|
17
|
+
render: props => {
|
|
18
|
+
return <Container padding="md">
|
|
19
|
+
<ParamEditor {...props} />
|
|
20
|
+
</Container>;
|
|
21
|
+
},
|
|
22
|
+
args: {
|
|
23
|
+
defaultValues: {
|
|
24
|
+
"1": 5,
|
|
25
|
+
"2": 5,
|
|
26
|
+
"3": "Hello World",
|
|
27
|
+
"4": "This is a multiline text example\\nwith multiple lines",
|
|
28
|
+
"5": "user",
|
|
29
|
+
"6": "2024-07-30",
|
|
30
|
+
"7": "#ff0000"
|
|
31
|
+
},
|
|
32
|
+
onChange: () => {},
|
|
33
|
+
params: [{
|
|
34
|
+
id: "1",
|
|
35
|
+
name: "Temperature",
|
|
36
|
+
type: "number",
|
|
37
|
+
description: "Controls randomness in the output",
|
|
38
|
+
defaultValue: 1,
|
|
39
|
+
min: 0,
|
|
40
|
+
max: 2,
|
|
41
|
+
step: 0.1
|
|
42
|
+
}, {
|
|
43
|
+
id: "2",
|
|
44
|
+
name: "Max Tokens",
|
|
45
|
+
type: "number",
|
|
46
|
+
description: "Maximum number of tokens to generate",
|
|
47
|
+
defaultValue: 100,
|
|
48
|
+
min: 1,
|
|
49
|
+
max: 1000,
|
|
50
|
+
step: 1
|
|
51
|
+
}, {
|
|
52
|
+
id: "3",
|
|
53
|
+
name: "System Message",
|
|
54
|
+
type: "text",
|
|
55
|
+
description: "Single line system instruction",
|
|
56
|
+
defaultValue: "You are a helpful assistant",
|
|
57
|
+
singleLine: true
|
|
58
|
+
}, {
|
|
59
|
+
id: "4",
|
|
60
|
+
name: "Prompt Template",
|
|
61
|
+
type: "text",
|
|
62
|
+
description: "Multi-line prompt template",
|
|
63
|
+
defaultValue: "Please help me with:\\n{user_input}",
|
|
64
|
+
singleLine: false
|
|
65
|
+
}, {
|
|
66
|
+
id: "5",
|
|
67
|
+
name: "Role",
|
|
68
|
+
type: "selection",
|
|
69
|
+
description: "Select a role",
|
|
70
|
+
defaultValue: "user",
|
|
71
|
+
options: [{
|
|
72
|
+
id: "user",
|
|
73
|
+
name: "User"
|
|
74
|
+
}, {
|
|
75
|
+
id: "assistant",
|
|
76
|
+
name: "Assistant"
|
|
77
|
+
}, {
|
|
78
|
+
id: "system",
|
|
79
|
+
name: "System"
|
|
80
|
+
}]
|
|
81
|
+
}, {
|
|
82
|
+
id: "6",
|
|
83
|
+
name: "Start Date",
|
|
84
|
+
type: "date",
|
|
85
|
+
description: "Select the start date for the process",
|
|
86
|
+
defaultValue: "2024-01-01",
|
|
87
|
+
min: "2024-01-01",
|
|
88
|
+
max: "2024-12-31"
|
|
89
|
+
}, {
|
|
90
|
+
id: "7",
|
|
91
|
+
name: "Theme Color",
|
|
92
|
+
type: "color",
|
|
93
|
+
description: "Pick a theme color",
|
|
94
|
+
defaultValue: "#ff0000"
|
|
95
|
+
}],
|
|
96
|
+
readOnly: false
|
|
97
|
+
}
|
|
98
|
+
}`,...k.parameters?.docs?.source}}};E.parameters={...E.parameters,docs:{...E.parameters?.docs,source:{originalSource:`{
|
|
99
|
+
render: props => {
|
|
100
|
+
return <Container padding="md">
|
|
101
|
+
<ParamEditor {...props} />
|
|
102
|
+
</Container>;
|
|
103
|
+
},
|
|
104
|
+
args: {
|
|
105
|
+
defaultValues: {
|
|
106
|
+
"1": "Short instruction",
|
|
107
|
+
"2": "This is a longer text input\\nthat spans multiple lines\\nand demonstrates multiline capability",
|
|
108
|
+
"3": "API_KEY_12345"
|
|
109
|
+
},
|
|
110
|
+
onChange: () => {},
|
|
111
|
+
params: [{
|
|
112
|
+
id: "1",
|
|
113
|
+
name: "Quick Command",
|
|
114
|
+
type: "text",
|
|
115
|
+
description: "Single line command or instruction",
|
|
116
|
+
defaultValue: "help",
|
|
117
|
+
singleLine: true
|
|
118
|
+
}, {
|
|
119
|
+
id: "2",
|
|
120
|
+
name: "Description",
|
|
121
|
+
type: "text",
|
|
122
|
+
description: "Detailed description or documentation",
|
|
123
|
+
defaultValue: "Enter your description here...",
|
|
124
|
+
singleLine: false
|
|
125
|
+
}, {
|
|
126
|
+
id: "3",
|
|
127
|
+
name: "API Key",
|
|
128
|
+
type: "text",
|
|
129
|
+
description: "Your API key (read-only in this example)",
|
|
130
|
+
defaultValue: "sk-...",
|
|
131
|
+
singleLine: true
|
|
132
|
+
}],
|
|
133
|
+
readOnly: false
|
|
134
|
+
}
|
|
135
|
+
}`,...E.parameters?.docs?.source}}};O.parameters={...O.parameters,docs:{...O.parameters?.docs,source:{originalSource:`{
|
|
136
|
+
render: props => {
|
|
137
|
+
return <Container padding="md">
|
|
138
|
+
<ParamEditor {...props} />
|
|
139
|
+
</Container>;
|
|
140
|
+
},
|
|
141
|
+
args: {
|
|
142
|
+
defaultValues: {
|
|
143
|
+
"1": 0.7,
|
|
144
|
+
"2": "You are a helpful AI assistant",
|
|
145
|
+
"3": "Please analyze the following text:\\n{input}\\n\\nProvide a summary and key insights.",
|
|
146
|
+
"4": "assistant",
|
|
147
|
+
"5": "2024-07-30"
|
|
148
|
+
},
|
|
149
|
+
onChange: () => {},
|
|
150
|
+
params: [{
|
|
151
|
+
id: "1",
|
|
152
|
+
name: "Temperature",
|
|
153
|
+
type: "number",
|
|
154
|
+
description: "Model temperature setting",
|
|
155
|
+
defaultValue: 0.5,
|
|
156
|
+
min: 0,
|
|
157
|
+
max: 1,
|
|
158
|
+
step: 0.1
|
|
159
|
+
}, {
|
|
160
|
+
id: "2",
|
|
161
|
+
name: "System Prompt",
|
|
162
|
+
type: "text",
|
|
163
|
+
description: "System-level instructions",
|
|
164
|
+
defaultValue: "You are a helpful assistant",
|
|
165
|
+
singleLine: true
|
|
166
|
+
}, {
|
|
167
|
+
id: "3",
|
|
168
|
+
name: "User Prompt Template",
|
|
169
|
+
type: "text",
|
|
170
|
+
description: "Template for user prompts",
|
|
171
|
+
defaultValue: "Please help with: {request}",
|
|
172
|
+
singleLine: false
|
|
173
|
+
}, {
|
|
174
|
+
id: "4",
|
|
175
|
+
name: "Role",
|
|
176
|
+
type: "selection",
|
|
177
|
+
description: "Select a role",
|
|
178
|
+
defaultValue: "assistant",
|
|
179
|
+
options: [{
|
|
180
|
+
id: "user",
|
|
181
|
+
name: "User"
|
|
182
|
+
}, {
|
|
183
|
+
id: "assistant",
|
|
184
|
+
name: "Assistant"
|
|
185
|
+
}, {
|
|
186
|
+
id: "system",
|
|
187
|
+
name: "System"
|
|
188
|
+
}]
|
|
189
|
+
}, {
|
|
190
|
+
id: "5",
|
|
191
|
+
name: "Deadline",
|
|
192
|
+
type: "date",
|
|
193
|
+
description: "Project deadline (read-only)",
|
|
194
|
+
defaultValue: "2024-12-31",
|
|
195
|
+
min: "2024-01-01",
|
|
196
|
+
max: "2025-12-31"
|
|
197
|
+
}],
|
|
198
|
+
readOnly: true
|
|
199
|
+
}
|
|
200
|
+
}`,...O.parameters?.docs?.source}}};R.parameters={...R.parameters,docs:{...R.parameters?.docs,source:{originalSource:`{
|
|
201
|
+
render: props => {
|
|
202
|
+
return <Container padding="md">
|
|
203
|
+
<ParamEditor {...props} />
|
|
204
|
+
</Container>;
|
|
205
|
+
},
|
|
206
|
+
args: {
|
|
207
|
+
defaultValues: {
|
|
208
|
+
"1": "2024-07-30",
|
|
209
|
+
"2": "2024-01-01",
|
|
210
|
+
"3": "2025-12-31",
|
|
211
|
+
"4": "2024-06-15"
|
|
212
|
+
},
|
|
213
|
+
onChange: () => {},
|
|
214
|
+
params: [{
|
|
215
|
+
id: "1",
|
|
216
|
+
name: "Current Date",
|
|
217
|
+
type: "date",
|
|
218
|
+
description: "Today's date with no restrictions",
|
|
219
|
+
defaultValue: "2024-07-30"
|
|
220
|
+
}, {
|
|
221
|
+
id: "2",
|
|
222
|
+
name: "Start Date",
|
|
223
|
+
type: "date",
|
|
224
|
+
description: "Project start date (minimum: 2024-01-01)",
|
|
225
|
+
defaultValue: "2024-01-01",
|
|
226
|
+
min: "2024-01-01"
|
|
227
|
+
}, {
|
|
228
|
+
id: "3",
|
|
229
|
+
name: "End Date",
|
|
230
|
+
type: "date",
|
|
231
|
+
description: "Project end date (maximum: 2025-12-31)",
|
|
232
|
+
defaultValue: "2025-12-31",
|
|
233
|
+
max: "2025-12-31"
|
|
234
|
+
}, {
|
|
235
|
+
id: "4",
|
|
236
|
+
name: "Event Date",
|
|
237
|
+
type: "date",
|
|
238
|
+
description: "Event date with both min/max constraints",
|
|
239
|
+
defaultValue: "2024-06-15",
|
|
240
|
+
min: "2024-01-01",
|
|
241
|
+
max: "2024-12-31"
|
|
242
|
+
}],
|
|
243
|
+
readOnly: false
|
|
244
|
+
}
|
|
245
|
+
}`,...R.parameters?.docs?.source}}};U.parameters={...U.parameters,docs:{...U.parameters?.docs,source:{originalSource:`{
|
|
246
|
+
render: props => {
|
|
247
|
+
return <Container padding="md">
|
|
248
|
+
<ParamEditor {...props} />
|
|
249
|
+
</Container>;
|
|
250
|
+
},
|
|
251
|
+
args: {
|
|
252
|
+
defaultValues: {
|
|
253
|
+
"1": ["user", "assistant"],
|
|
254
|
+
"2": ["javascript", "typescript", "python"],
|
|
255
|
+
"3": [],
|
|
256
|
+
"4": ["high"]
|
|
257
|
+
},
|
|
258
|
+
onChange: () => {},
|
|
259
|
+
params: [{
|
|
260
|
+
id: "1",
|
|
261
|
+
name: "Allowed Roles",
|
|
262
|
+
type: "selection",
|
|
263
|
+
description: "Select multiple roles that are allowed",
|
|
264
|
+
defaultValue: ["user", "assistant"],
|
|
265
|
+
multiSelect: true,
|
|
266
|
+
options: [{
|
|
267
|
+
id: "user",
|
|
268
|
+
name: "User"
|
|
269
|
+
}, {
|
|
270
|
+
id: "assistant",
|
|
271
|
+
name: "Assistant"
|
|
272
|
+
}, {
|
|
273
|
+
id: "system",
|
|
274
|
+
name: "System"
|
|
275
|
+
}, {
|
|
276
|
+
id: "admin",
|
|
277
|
+
name: "Administrator"
|
|
278
|
+
}]
|
|
279
|
+
}, {
|
|
280
|
+
id: "2",
|
|
281
|
+
name: "Programming Languages",
|
|
282
|
+
type: "selection",
|
|
283
|
+
description: "Choose your preferred programming languages",
|
|
284
|
+
defaultValue: ["javascript", "typescript"],
|
|
285
|
+
multiSelect: true,
|
|
286
|
+
options: [{
|
|
287
|
+
id: "javascript",
|
|
288
|
+
name: "JavaScript"
|
|
289
|
+
}, {
|
|
290
|
+
id: "typescript",
|
|
291
|
+
name: "TypeScript"
|
|
292
|
+
}, {
|
|
293
|
+
id: "python",
|
|
294
|
+
name: "Python"
|
|
295
|
+
}, {
|
|
296
|
+
id: "java",
|
|
297
|
+
name: "Java"
|
|
298
|
+
}, {
|
|
299
|
+
id: "csharp",
|
|
300
|
+
name: "C#"
|
|
301
|
+
}, {
|
|
302
|
+
id: "go",
|
|
303
|
+
name: "Go"
|
|
304
|
+
}, {
|
|
305
|
+
id: "rust",
|
|
306
|
+
name: "Rust"
|
|
307
|
+
}]
|
|
308
|
+
}, {
|
|
309
|
+
id: "3",
|
|
310
|
+
name: "Categories",
|
|
311
|
+
type: "selection",
|
|
312
|
+
description: "Select categories (none selected by default)",
|
|
313
|
+
defaultValue: [],
|
|
314
|
+
multiSelect: true,
|
|
315
|
+
placeholder: "Category",
|
|
316
|
+
options: [{
|
|
317
|
+
id: "web",
|
|
318
|
+
name: "Web Development"
|
|
319
|
+
}, {
|
|
320
|
+
id: "mobile",
|
|
321
|
+
name: "Mobile Development"
|
|
322
|
+
}, {
|
|
323
|
+
id: "ai",
|
|
324
|
+
name: "Artificial Intelligence"
|
|
325
|
+
}, {
|
|
326
|
+
id: "data",
|
|
327
|
+
name: "Data Science"
|
|
328
|
+
}, {
|
|
329
|
+
id: "devops",
|
|
330
|
+
name: "DevOps"
|
|
331
|
+
}]
|
|
332
|
+
}, {
|
|
333
|
+
id: "4",
|
|
334
|
+
name: "Priority Levels",
|
|
335
|
+
type: "selection",
|
|
336
|
+
description: "Select priority levels for tasks",
|
|
337
|
+
defaultValue: ["high"],
|
|
338
|
+
multiSelect: true,
|
|
339
|
+
options: [{
|
|
340
|
+
id: "low",
|
|
341
|
+
name: "Low Priority"
|
|
342
|
+
}, {
|
|
343
|
+
id: "medium",
|
|
344
|
+
name: "Medium Priority"
|
|
345
|
+
}, {
|
|
346
|
+
id: "high",
|
|
347
|
+
name: "High Priority"
|
|
348
|
+
}, {
|
|
349
|
+
id: "urgent",
|
|
350
|
+
name: "Urgent"
|
|
351
|
+
}]
|
|
352
|
+
}],
|
|
353
|
+
readOnly: false
|
|
354
|
+
}
|
|
355
|
+
}`,...U.parameters?.docs?.source}}};_.parameters={..._.parameters,docs:{..._.parameters?.docs,source:{originalSource:`{
|
|
356
|
+
render: props => {
|
|
357
|
+
return <Container padding="md">
|
|
358
|
+
<ParamEditor {...props} />
|
|
359
|
+
</Container>;
|
|
360
|
+
},
|
|
361
|
+
args: {
|
|
362
|
+
defaultValues: {
|
|
363
|
+
"1": "assistant",
|
|
364
|
+
"2": ["javascript", "python"],
|
|
365
|
+
"3": "production",
|
|
366
|
+
"4": ["feature", "bugfix"]
|
|
367
|
+
},
|
|
368
|
+
onChange: () => {},
|
|
369
|
+
params: [{
|
|
370
|
+
id: "1",
|
|
371
|
+
name: "Default Role (Single)",
|
|
372
|
+
type: "selection",
|
|
373
|
+
description: "Choose one default role",
|
|
374
|
+
defaultValue: "assistant",
|
|
375
|
+
options: [{
|
|
376
|
+
id: "user",
|
|
377
|
+
name: "User"
|
|
378
|
+
}, {
|
|
379
|
+
id: "assistant",
|
|
380
|
+
name: "Assistant"
|
|
381
|
+
}, {
|
|
382
|
+
id: "system",
|
|
383
|
+
name: "System"
|
|
384
|
+
}]
|
|
385
|
+
}, {
|
|
386
|
+
id: "2",
|
|
387
|
+
name: "Languages (Multi)",
|
|
388
|
+
type: "selection",
|
|
389
|
+
description: "Select multiple programming languages",
|
|
390
|
+
defaultValue: ["javascript"],
|
|
391
|
+
multiSelect: true,
|
|
392
|
+
options: [{
|
|
393
|
+
id: "javascript",
|
|
394
|
+
name: "JavaScript"
|
|
395
|
+
}, {
|
|
396
|
+
id: "python",
|
|
397
|
+
name: "Python"
|
|
398
|
+
}, {
|
|
399
|
+
id: "java",
|
|
400
|
+
name: "Java"
|
|
401
|
+
}, {
|
|
402
|
+
id: "csharp",
|
|
403
|
+
name: "C#"
|
|
404
|
+
}]
|
|
405
|
+
}, {
|
|
406
|
+
id: "3",
|
|
407
|
+
name: "Environment (Single)",
|
|
408
|
+
type: "selection",
|
|
409
|
+
description: "Choose deployment environment",
|
|
410
|
+
defaultValue: "staging",
|
|
411
|
+
options: [{
|
|
412
|
+
id: "development",
|
|
413
|
+
name: "Development"
|
|
414
|
+
}, {
|
|
415
|
+
id: "staging",
|
|
416
|
+
name: "Staging"
|
|
417
|
+
}, {
|
|
418
|
+
id: "production",
|
|
419
|
+
name: "Production"
|
|
420
|
+
}]
|
|
421
|
+
}, {
|
|
422
|
+
id: "4",
|
|
423
|
+
name: "Branch Types (Multi)",
|
|
424
|
+
type: "selection",
|
|
425
|
+
description: "Select allowed branch types",
|
|
426
|
+
defaultValue: ["feature"],
|
|
427
|
+
multiSelect: true,
|
|
428
|
+
options: [{
|
|
429
|
+
id: "feature",
|
|
430
|
+
name: "Feature Branch"
|
|
431
|
+
}, {
|
|
432
|
+
id: "bugfix",
|
|
433
|
+
name: "Bug Fix"
|
|
434
|
+
}, {
|
|
435
|
+
id: "hotfix",
|
|
436
|
+
name: "Hot Fix"
|
|
437
|
+
}, {
|
|
438
|
+
id: "release",
|
|
439
|
+
name: "Release Branch"
|
|
440
|
+
}]
|
|
441
|
+
}],
|
|
442
|
+
readOnly: false
|
|
443
|
+
}
|
|
444
|
+
}`,..._.parameters?.docs?.source}}};q.parameters={...q.parameters,docs:{...q.parameters?.docs,source:{originalSource:`{
|
|
445
|
+
render: props => {
|
|
446
|
+
return <Container padding="md">
|
|
447
|
+
<ParamEditor {...props} />
|
|
448
|
+
</Container>;
|
|
449
|
+
},
|
|
450
|
+
args: {
|
|
451
|
+
defaultValues: {
|
|
452
|
+
temp: 0.7,
|
|
453
|
+
maxTokens: 150,
|
|
454
|
+
systemMsg: "You are a helpful assistant",
|
|
455
|
+
promptTemplate: "Please help me with:\\n{user_input}",
|
|
456
|
+
role: "assistant",
|
|
457
|
+
startDate: "2024-01-01",
|
|
458
|
+
endDate: "2024-12-31",
|
|
459
|
+
apiUrl: "https://api.example.com",
|
|
460
|
+
timeout: 30
|
|
461
|
+
},
|
|
462
|
+
onChange: () => {},
|
|
463
|
+
groups: [{
|
|
464
|
+
id: "llm-settings",
|
|
465
|
+
title: "LLM Configuration",
|
|
466
|
+
description: "Settings that control the language model behavior",
|
|
467
|
+
collapsible: true,
|
|
468
|
+
defaultCollapsed: false,
|
|
469
|
+
params: [{
|
|
470
|
+
id: "temp",
|
|
471
|
+
name: "Temperature",
|
|
472
|
+
type: "number",
|
|
473
|
+
description: "Controls randomness in the output",
|
|
474
|
+
defaultValue: 0.7,
|
|
475
|
+
min: 0,
|
|
476
|
+
max: 2,
|
|
477
|
+
step: 0.1
|
|
478
|
+
}, {
|
|
479
|
+
id: "maxTokens",
|
|
480
|
+
name: "Max Tokens",
|
|
481
|
+
type: "number",
|
|
482
|
+
description: "Maximum number of tokens to generate",
|
|
483
|
+
defaultValue: 150,
|
|
484
|
+
min: 1,
|
|
485
|
+
max: 1000,
|
|
486
|
+
step: 1
|
|
487
|
+
}]
|
|
488
|
+
}, {
|
|
489
|
+
id: "prompt-settings",
|
|
490
|
+
title: "Prompt Configuration",
|
|
491
|
+
description: "Configure your prompts and system messages",
|
|
492
|
+
collapsible: true,
|
|
493
|
+
defaultCollapsed: false,
|
|
494
|
+
params: [{
|
|
495
|
+
id: "systemMsg",
|
|
496
|
+
name: "System Message",
|
|
497
|
+
type: "text",
|
|
498
|
+
description: "System-level instructions",
|
|
499
|
+
defaultValue: "You are a helpful assistant",
|
|
500
|
+
singleLine: true
|
|
501
|
+
}, {
|
|
502
|
+
id: "promptTemplate",
|
|
503
|
+
name: "Prompt Template",
|
|
504
|
+
type: "text",
|
|
505
|
+
description: "Template for user prompts",
|
|
506
|
+
defaultValue: "Please help with: {request}",
|
|
507
|
+
singleLine: false
|
|
508
|
+
}, {
|
|
509
|
+
id: "role",
|
|
510
|
+
name: "Default Role",
|
|
511
|
+
type: "selection",
|
|
512
|
+
description: "Select the default role",
|
|
513
|
+
defaultValue: "assistant",
|
|
514
|
+
options: [{
|
|
515
|
+
id: "user",
|
|
516
|
+
name: "User"
|
|
517
|
+
}, {
|
|
518
|
+
id: "assistant",
|
|
519
|
+
name: "Assistant"
|
|
520
|
+
}, {
|
|
521
|
+
id: "system",
|
|
522
|
+
name: "System"
|
|
523
|
+
}]
|
|
524
|
+
}]
|
|
525
|
+
}, {
|
|
526
|
+
id: "scheduling",
|
|
527
|
+
title: "Scheduling",
|
|
528
|
+
description: "Date and time configuration",
|
|
529
|
+
collapsible: true,
|
|
530
|
+
defaultCollapsed: true,
|
|
531
|
+
params: [{
|
|
532
|
+
id: "startDate",
|
|
533
|
+
name: "Start Date",
|
|
534
|
+
type: "date",
|
|
535
|
+
description: "Project start date",
|
|
536
|
+
defaultValue: "2024-01-01",
|
|
537
|
+
min: "2024-01-01"
|
|
538
|
+
}, {
|
|
539
|
+
id: "endDate",
|
|
540
|
+
name: "End Date",
|
|
541
|
+
type: "date",
|
|
542
|
+
description: "Project end date",
|
|
543
|
+
defaultValue: "2024-12-31",
|
|
544
|
+
max: "2025-12-31"
|
|
545
|
+
}]
|
|
546
|
+
}, {
|
|
547
|
+
id: "api-settings",
|
|
548
|
+
title: "API Configuration",
|
|
549
|
+
description: "External API settings and timeouts",
|
|
550
|
+
collapsible: true,
|
|
551
|
+
defaultCollapsed: true,
|
|
552
|
+
params: [{
|
|
553
|
+
id: "apiUrl",
|
|
554
|
+
name: "API URL",
|
|
555
|
+
type: "text",
|
|
556
|
+
description: "Base URL for API calls",
|
|
557
|
+
defaultValue: "https://api.example.com",
|
|
558
|
+
singleLine: true
|
|
559
|
+
}, {
|
|
560
|
+
id: "timeout",
|
|
561
|
+
name: "Timeout (seconds)",
|
|
562
|
+
type: "number",
|
|
563
|
+
description: "Request timeout in seconds",
|
|
564
|
+
defaultValue: 30,
|
|
565
|
+
min: 5,
|
|
566
|
+
max: 300,
|
|
567
|
+
step: 5
|
|
568
|
+
}]
|
|
569
|
+
}],
|
|
570
|
+
readOnly: false
|
|
571
|
+
}
|
|
572
|
+
}`,...q.parameters?.docs?.source}}};W.parameters={...W.parameters,docs:{...W.parameters?.docs,source:{originalSource:`{
|
|
573
|
+
render: props => {
|
|
574
|
+
return <Container padding="md">
|
|
575
|
+
<ParamEditor {...props} />
|
|
576
|
+
</Container>;
|
|
577
|
+
},
|
|
578
|
+
args: {
|
|
579
|
+
defaultValues: {
|
|
580
|
+
standalone: "Quick setting",
|
|
581
|
+
temp: 0.8,
|
|
582
|
+
model: "gpt-4",
|
|
583
|
+
env: "production"
|
|
584
|
+
},
|
|
585
|
+
onChange: () => {},
|
|
586
|
+
params: [{
|
|
587
|
+
id: "standalone",
|
|
588
|
+
name: "Quick Setting",
|
|
589
|
+
type: "text",
|
|
590
|
+
description: "A standalone parameter outside of groups",
|
|
591
|
+
defaultValue: "Quick setting",
|
|
592
|
+
singleLine: true
|
|
593
|
+
}],
|
|
594
|
+
groups: [{
|
|
595
|
+
id: "model-config",
|
|
596
|
+
title: "Model Configuration",
|
|
597
|
+
collapsible: false,
|
|
598
|
+
description: "Settings related to AI model configuration",
|
|
599
|
+
params: [{
|
|
600
|
+
id: "temp",
|
|
601
|
+
name: "Temperature",
|
|
602
|
+
type: "number",
|
|
603
|
+
description: "Model temperature",
|
|
604
|
+
defaultValue: 0.8,
|
|
605
|
+
min: 0,
|
|
606
|
+
max: 1,
|
|
607
|
+
step: 0.1
|
|
608
|
+
}, {
|
|
609
|
+
id: "model",
|
|
610
|
+
name: "Model",
|
|
611
|
+
type: "selection",
|
|
612
|
+
description: "Choose the AI model",
|
|
613
|
+
defaultValue: "gpt-4",
|
|
614
|
+
options: [{
|
|
615
|
+
id: "gpt-3.5-turbo",
|
|
616
|
+
name: "GPT-3.5 Turbo"
|
|
617
|
+
}, {
|
|
618
|
+
id: "gpt-4",
|
|
619
|
+
name: "GPT-4"
|
|
620
|
+
}, {
|
|
621
|
+
id: "claude-3",
|
|
622
|
+
name: "Claude 3"
|
|
623
|
+
}]
|
|
624
|
+
}]
|
|
625
|
+
}, {
|
|
626
|
+
id: "deployment",
|
|
627
|
+
title: "Deployment",
|
|
628
|
+
collapsible: true,
|
|
629
|
+
defaultCollapsed: false,
|
|
630
|
+
description: "Settings related to deployment environment",
|
|
631
|
+
params: [{
|
|
632
|
+
id: "env",
|
|
633
|
+
name: "Environment",
|
|
634
|
+
type: "selection",
|
|
635
|
+
description: "Deployment environment",
|
|
636
|
+
defaultValue: "staging",
|
|
637
|
+
options: [{
|
|
638
|
+
id: "development",
|
|
639
|
+
name: "Development"
|
|
640
|
+
}, {
|
|
641
|
+
id: "staging",
|
|
642
|
+
name: "Staging"
|
|
643
|
+
}, {
|
|
644
|
+
id: "production",
|
|
645
|
+
name: "Production"
|
|
646
|
+
}]
|
|
647
|
+
}]
|
|
648
|
+
}],
|
|
649
|
+
readOnly: false
|
|
650
|
+
}
|
|
651
|
+
}`,...W.parameters?.docs?.source}}};Y.parameters={...Y.parameters,docs:{...Y.parameters?.docs,source:{originalSource:`{
|
|
652
|
+
render: props => {
|
|
653
|
+
return <Container padding="md">
|
|
654
|
+
<ParamEditor {...props} />
|
|
655
|
+
</Container>;
|
|
656
|
+
},
|
|
657
|
+
args: {
|
|
658
|
+
defaultValues: {
|
|
659
|
+
"1": "user",
|
|
660
|
+
"2": ["javascript", "typescript"],
|
|
661
|
+
"3": "home-2",
|
|
662
|
+
"4": ["high", "medium"]
|
|
663
|
+
},
|
|
664
|
+
onChange: () => {},
|
|
665
|
+
params: [{
|
|
666
|
+
id: "1",
|
|
667
|
+
name: "User Role",
|
|
668
|
+
type: "selection",
|
|
669
|
+
description: "Select a user role with icons",
|
|
670
|
+
defaultValue: "user",
|
|
671
|
+
options: [{
|
|
672
|
+
id: "user",
|
|
673
|
+
name: "User",
|
|
674
|
+
icon: "user"
|
|
675
|
+
}, {
|
|
676
|
+
id: "assistant",
|
|
677
|
+
name: "Assistant",
|
|
678
|
+
icon: "code"
|
|
679
|
+
}, {
|
|
680
|
+
id: "system",
|
|
681
|
+
name: "System",
|
|
682
|
+
icon: "component"
|
|
683
|
+
}, {
|
|
684
|
+
id: "admin",
|
|
685
|
+
name: "Administrator",
|
|
686
|
+
icon: "teacher"
|
|
687
|
+
}]
|
|
688
|
+
}, {
|
|
689
|
+
id: "2",
|
|
690
|
+
name: "Programming Languages",
|
|
691
|
+
type: "selection",
|
|
692
|
+
description: "Choose programming languages with icons",
|
|
693
|
+
defaultValue: ["javascript", "typescript"],
|
|
694
|
+
multiSelect: true,
|
|
695
|
+
options: [{
|
|
696
|
+
id: "javascript",
|
|
697
|
+
name: "JavaScript",
|
|
698
|
+
icon: "code"
|
|
699
|
+
}, {
|
|
700
|
+
id: "typescript",
|
|
701
|
+
name: "TypeScript",
|
|
702
|
+
icon: "code-1"
|
|
703
|
+
}, {
|
|
704
|
+
id: "python",
|
|
705
|
+
name: "Python",
|
|
706
|
+
icon: "code-circle"
|
|
707
|
+
}, {
|
|
708
|
+
id: "java",
|
|
709
|
+
name: "Java",
|
|
710
|
+
icon: "document-code"
|
|
711
|
+
}, {
|
|
712
|
+
id: "csharp",
|
|
713
|
+
name: "C#",
|
|
714
|
+
icon: "component"
|
|
715
|
+
}]
|
|
716
|
+
}, {
|
|
717
|
+
id: "3",
|
|
718
|
+
name: "Navigation Section",
|
|
719
|
+
type: "selection",
|
|
720
|
+
description: "Choose a navigation section with icons",
|
|
721
|
+
defaultValue: "home-2",
|
|
722
|
+
options: [{
|
|
723
|
+
id: "home-2",
|
|
724
|
+
name: "Home",
|
|
725
|
+
icon: "home-2"
|
|
726
|
+
}, {
|
|
727
|
+
id: "folder-2",
|
|
728
|
+
name: "Projects",
|
|
729
|
+
icon: "folder-2"
|
|
730
|
+
}, {
|
|
731
|
+
id: "user",
|
|
732
|
+
name: "Profile",
|
|
733
|
+
icon: "user"
|
|
734
|
+
}, {
|
|
735
|
+
id: "wallet-2",
|
|
736
|
+
name: "Billing",
|
|
737
|
+
icon: "wallet-2"
|
|
738
|
+
}, {
|
|
739
|
+
id: "component",
|
|
740
|
+
name: "Settings",
|
|
741
|
+
icon: "component"
|
|
742
|
+
}]
|
|
743
|
+
}, {
|
|
744
|
+
id: "4",
|
|
745
|
+
name: "Priority Levels",
|
|
746
|
+
type: "selection",
|
|
747
|
+
description: "Select priority levels with status icons",
|
|
748
|
+
defaultValue: ["high"],
|
|
749
|
+
multiSelect: true,
|
|
750
|
+
options: [{
|
|
751
|
+
id: "low",
|
|
752
|
+
name: "Low Priority",
|
|
753
|
+
icon: "arrow-down"
|
|
754
|
+
}, {
|
|
755
|
+
id: "medium",
|
|
756
|
+
name: "Medium Priority",
|
|
757
|
+
icon: "minus"
|
|
758
|
+
}, {
|
|
759
|
+
id: "high",
|
|
760
|
+
name: "High Priority",
|
|
761
|
+
icon: "arrow-up-3"
|
|
762
|
+
}, {
|
|
763
|
+
id: "urgent",
|
|
764
|
+
name: "Urgent",
|
|
765
|
+
icon: "danger"
|
|
766
|
+
}]
|
|
767
|
+
}],
|
|
768
|
+
readOnly: false
|
|
769
|
+
}
|
|
770
|
+
}`,...Y.parameters?.docs?.source}}};B.parameters={...B.parameters,docs:{...B.parameters?.docs,source:{originalSource:`{
|
|
771
|
+
render: props => {
|
|
772
|
+
return <Container padding="md">
|
|
773
|
+
<ParamEditor {...props} />
|
|
774
|
+
</Container>;
|
|
775
|
+
},
|
|
776
|
+
args: {
|
|
777
|
+
defaultValues: {
|
|
778
|
+
"1": 0.7,
|
|
779
|
+
"2": "You are a helpful assistant",
|
|
780
|
+
"3": "user",
|
|
781
|
+
"4": "2024-01-01"
|
|
782
|
+
},
|
|
783
|
+
onChange: () => {},
|
|
784
|
+
params: [{
|
|
785
|
+
id: "1",
|
|
786
|
+
name: "Temperature",
|
|
787
|
+
type: "number",
|
|
788
|
+
description: "Controls randomness in the output",
|
|
789
|
+
defaultValue: 0.7,
|
|
790
|
+
min: 0,
|
|
791
|
+
max: 2,
|
|
792
|
+
step: 0.1
|
|
793
|
+
}, {
|
|
794
|
+
id: "2",
|
|
795
|
+
name: "System Message",
|
|
796
|
+
type: "text",
|
|
797
|
+
description: "System-level instructions for the AI",
|
|
798
|
+
defaultValue: "You are a helpful assistant",
|
|
799
|
+
singleLine: true
|
|
800
|
+
}, {
|
|
801
|
+
id: "3",
|
|
802
|
+
name: "User Role",
|
|
803
|
+
type: "selection",
|
|
804
|
+
description: "Select a user role",
|
|
805
|
+
defaultValue: "user",
|
|
806
|
+
options: [{
|
|
807
|
+
id: "user",
|
|
808
|
+
name: "User",
|
|
809
|
+
icon: "user"
|
|
810
|
+
}, {
|
|
811
|
+
id: "assistant",
|
|
812
|
+
name: "Assistant",
|
|
813
|
+
icon: "code"
|
|
814
|
+
}, {
|
|
815
|
+
id: "system",
|
|
816
|
+
name: "System",
|
|
817
|
+
icon: "component"
|
|
818
|
+
}]
|
|
819
|
+
}, {
|
|
820
|
+
id: "4",
|
|
821
|
+
name: "Start Date",
|
|
822
|
+
type: "date",
|
|
823
|
+
description: "Project start date",
|
|
824
|
+
defaultValue: "2024-01-01"
|
|
825
|
+
}],
|
|
826
|
+
fullWidth: true,
|
|
827
|
+
readOnly: false
|
|
828
|
+
}
|
|
829
|
+
}`,...B.parameters?.docs?.source}}};G.parameters={...G.parameters,docs:{...G.parameters?.docs,source:{originalSource:`{
|
|
830
|
+
render: props => {
|
|
831
|
+
return <Container padding="md">
|
|
832
|
+
<ParamEditor {...props} />
|
|
833
|
+
</Container>;
|
|
834
|
+
},
|
|
835
|
+
args: {
|
|
836
|
+
defaultValues: {
|
|
837
|
+
temp: 0.7,
|
|
838
|
+
maxTokens: 150,
|
|
839
|
+
systemMsg: "You are a helpful assistant",
|
|
840
|
+
role: "assistant",
|
|
841
|
+
startDate: "2024-01-01",
|
|
842
|
+
apiUrl: "https://api.example.com"
|
|
843
|
+
},
|
|
844
|
+
onChange: () => {},
|
|
845
|
+
groups: [{
|
|
846
|
+
id: "model-settings",
|
|
847
|
+
title: "Model Configuration",
|
|
848
|
+
description: "Configure model parameters and behavior",
|
|
849
|
+
params: [{
|
|
850
|
+
id: "temp",
|
|
851
|
+
name: "Temperature",
|
|
852
|
+
type: "number",
|
|
853
|
+
description: "Controls randomness in the output",
|
|
854
|
+
defaultValue: 0.7,
|
|
855
|
+
min: 0,
|
|
856
|
+
max: 2,
|
|
857
|
+
step: 0.1
|
|
858
|
+
}, {
|
|
859
|
+
id: "maxTokens",
|
|
860
|
+
name: "Max Tokens",
|
|
861
|
+
type: "number",
|
|
862
|
+
description: "Maximum number of tokens to generate",
|
|
863
|
+
defaultValue: 150,
|
|
864
|
+
min: 1,
|
|
865
|
+
max: 1000,
|
|
866
|
+
step: 1
|
|
867
|
+
}]
|
|
868
|
+
}, {
|
|
869
|
+
id: "prompt-settings",
|
|
870
|
+
title: "Prompt Configuration",
|
|
871
|
+
description: "Customize prompt behavior and context",
|
|
872
|
+
params: [{
|
|
873
|
+
id: "systemMsg",
|
|
874
|
+
name: "System Message",
|
|
875
|
+
type: "text",
|
|
876
|
+
description: "System-level instructions",
|
|
877
|
+
defaultValue: "You are a helpful assistant",
|
|
878
|
+
singleLine: true
|
|
879
|
+
}, {
|
|
880
|
+
id: "role",
|
|
881
|
+
name: "Assistant Role",
|
|
882
|
+
type: "selection",
|
|
883
|
+
description: "Choose the assistant's role",
|
|
884
|
+
defaultValue: "assistant",
|
|
885
|
+
options: [{
|
|
886
|
+
id: "assistant",
|
|
887
|
+
name: "Assistant",
|
|
888
|
+
icon: "code"
|
|
889
|
+
}, {
|
|
890
|
+
id: "teacher",
|
|
891
|
+
name: "Teacher",
|
|
892
|
+
icon: "teacher"
|
|
893
|
+
}, {
|
|
894
|
+
id: "consultant",
|
|
895
|
+
name: "Consultant",
|
|
896
|
+
icon: "user"
|
|
897
|
+
}]
|
|
898
|
+
}]
|
|
899
|
+
}, {
|
|
900
|
+
id: "api-settings",
|
|
901
|
+
title: "API Configuration",
|
|
902
|
+
description: "Configure API endpoints and timing",
|
|
903
|
+
params: [{
|
|
904
|
+
id: "apiUrl",
|
|
905
|
+
name: "API Endpoint",
|
|
906
|
+
type: "text",
|
|
907
|
+
description: "Base URL for API requests",
|
|
908
|
+
defaultValue: "https://api.example.com",
|
|
909
|
+
singleLine: true
|
|
910
|
+
}, {
|
|
911
|
+
id: "startDate",
|
|
912
|
+
name: "Start Date",
|
|
913
|
+
type: "date",
|
|
914
|
+
description: "Project start date",
|
|
915
|
+
defaultValue: "2024-01-01"
|
|
916
|
+
}]
|
|
917
|
+
}],
|
|
918
|
+
fullWidth: true,
|
|
919
|
+
readOnly: false
|
|
920
|
+
}
|
|
921
|
+
}`,...G.parameters?.docs?.source}}};const ln=["Demo","TextInputFocus","ReadOnly","DateInputs","MultiSelectExamples","MixedSelectionTypes","WithInputGroups","MixedGroupsAndParams","SelectionsWithIcons","FullWidth","GroupsWithSeparators"];export{R as DateInputs,k as Demo,B as FullWidth,G as GroupsWithSeparators,W as MixedGroupsAndParams,_ as MixedSelectionTypes,U as MultiSelectExamples,O as ReadOnly,Y as SelectionsWithIcons,E as TextInputFocus,q as WithInputGroups,ln as __namedExportsOrder,on as default};
|