@invect/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/LICENSE +21 -0
- package/README.md +77 -0
- package/dist/Invect-CWpIwZ5F.js +92738 -0
- package/dist/Invect.d.ts +25 -0
- package/dist/InvectShell.d.ts +14 -0
- package/dist/api/agent-tools.api.d.ts +1 -0
- package/dist/api/client.d.ts +207 -0
- package/dist/api/credentials.api.d.ts +47 -0
- package/dist/api/executions.api.d.ts +43 -0
- package/dist/api/flows.api.d.ts +100 -0
- package/dist/api/index.d.ts +9 -0
- package/dist/api/node-data.api.d.ts +66 -0
- package/dist/api/query-keys.d.ts +22 -0
- package/dist/api/triggers.api.d.ts +44 -0
- package/dist/api/types.d.ts +147 -0
- package/dist/api/use-flow-run-stream.d.ts +12 -0
- package/dist/assets/invect-branding.d.ts +4 -0
- package/dist/assets/provider-icons/index.d.ts +8 -0
- package/dist/babel-C9OtljFZ.js +9721 -0
- package/dist/components/PageLayout.d.ts +17 -0
- package/dist/components/chat/ChatInput.d.ts +17 -0
- package/dist/components/chat/ChatMessageList.d.ts +14 -0
- package/dist/components/chat/ChatModelSelector.d.ts +11 -0
- package/dist/components/chat/ChatPanel.d.ts +19 -0
- package/dist/components/chat/ChatPromptOverlay.d.ts +13 -0
- package/dist/components/chat/ChatProviderSelector.d.ts +9 -0
- package/dist/components/chat/ChatSettingsPanel.d.ts +11 -0
- package/dist/components/chat/InlineCredentialSetup.d.ts +9 -0
- package/dist/components/chat/MarkdownRenderer.d.ts +7 -0
- package/dist/components/chat/chat-memory.d.ts +21 -0
- package/dist/components/chat/chat.store.d.ts +416 -0
- package/dist/components/chat/index.d.ts +5 -0
- package/dist/components/chat/use-chat.d.ts +28 -0
- package/dist/components/credentials/CreateCredentialModal.d.ts +13 -0
- package/dist/components/credentials/CredentialDetailDialog.d.ts +17 -0
- package/dist/components/credentials/EditCredentialModal.d.ts +11 -0
- package/dist/components/credentials/OAuth2ConnectButton.d.ts +38 -0
- package/dist/components/credentials/OAuth2ProviderSelector.d.ts +15 -0
- package/dist/components/credentials/credential-utils.d.ts +12 -0
- package/dist/components/credentials/index.d.ts +9 -0
- package/dist/components/dashboard/FailedRunsAlert.d.ts +3 -0
- package/dist/components/dashboard/FlowCard.d.ts +7 -0
- package/dist/components/dashboard/RecentActivityTable.d.ts +9 -0
- package/dist/components/dashboard/StatCard.d.ts +10 -0
- package/dist/components/dashboard/index.d.ts +5 -0
- package/dist/components/dashboard/status-helpers.d.ts +5 -0
- package/dist/components/flow-editor/ActionsSidebar.d.ts +2 -0
- package/dist/components/flow-editor/FlowEditor.d.ts +21 -0
- package/dist/components/flow-editor/FlowHeader.d.ts +9 -0
- package/dist/components/flow-editor/FlowLayout.d.ts +24 -0
- package/dist/components/flow-editor/ModeSwitcher.d.ts +7 -0
- package/dist/components/flow-editor/NodeSidebar.d.ts +24 -0
- package/dist/components/flow-editor/RunControls.d.ts +12 -0
- package/dist/components/flow-editor/ToolConfigPanel.d.ts +16 -0
- package/dist/components/flow-editor/ValidationPanel.d.ts +5 -0
- package/dist/components/flow-editor/flow-editor.store.d.ts +1 -0
- package/dist/components/flow-editor/index.d.ts +6 -0
- package/dist/components/flow-editor/inline-edit.d.ts +10 -0
- package/dist/components/flow-editor/node-config-panel/ConfigFieldWithTemplate.d.ts +26 -0
- package/dist/components/flow-editor/node-config-panel/CredentialCombobox.d.ts +21 -0
- package/dist/components/flow-editor/node-config-panel/CredentialsSection.d.ts +19 -0
- package/dist/components/flow-editor/node-config-panel/DroppableInput.d.ts +20 -0
- package/dist/components/flow-editor/node-config-panel/DynamicSelectField.d.ts +22 -0
- package/dist/components/flow-editor/node-config-panel/JsonPreviewPanel.d.ts +25 -0
- package/dist/components/flow-editor/node-config-panel/NodeConfigPanel.d.ts +14 -0
- package/dist/components/flow-editor/node-config-panel/NodeConfigPanelHeader.d.ts +15 -0
- package/dist/components/flow-editor/node-config-panel/ParametersSection.d.ts +16 -0
- package/dist/components/flow-editor/node-config-panel/SearchableSelectField.d.ts +17 -0
- package/dist/components/flow-editor/node-config-panel/SwitchCasesField.d.ts +18 -0
- package/dist/components/flow-editor/node-config-panel/hooks/index.d.ts +2 -0
- package/dist/components/flow-editor/node-config-panel/hooks/use-node-config-panel-state.d.ts +24 -0
- package/dist/components/flow-editor/node-config-panel/hooks/use-node-execution.d.ts +46 -0
- package/dist/components/flow-editor/node-config-panel/hooks/use-upstream-slots.d.ts +16 -0
- package/dist/components/flow-editor/node-config-panel/panels/AgentToolsPanel.d.ts +18 -0
- package/dist/components/flow-editor/node-config-panel/panels/ConfigurationPanel.d.ts +49 -0
- package/dist/components/flow-editor/node-config-panel/panels/DataMapperPane.d.ts +40 -0
- package/dist/components/flow-editor/node-config-panel/panels/InputPanel.d.ts +49 -0
- package/dist/components/flow-editor/node-config-panel/panels/OutputPanel.d.ts +7 -0
- package/dist/components/flow-editor/node-config-panel/panels/index.d.ts +4 -0
- package/dist/components/flow-editor/node-config-panel/types.d.ts +19 -0
- package/dist/components/flow-editor/node-config-panel/use-node-config-panel-store.d.ts +49 -0
- package/dist/components/flow-editor/node-config-panel/use-node-config-state.d.ts +26 -0
- package/dist/components/flow-editor/node-config-panel/use-run-node.d.ts +16 -0
- package/dist/components/flow-editor/node-config-panel/utils.d.ts +9 -0
- package/dist/components/flow-editor/serialize-to-sdk.d.ts +20 -0
- package/dist/components/flow-editor/toolbar-context.d.ts +2 -0
- package/dist/components/flow-editor/use-copy-paste.d.ts +7 -0
- package/dist/components/flow-editor/use-copy-paste.types.d.ts +38 -0
- package/dist/components/flow-editor/use-flow-editor.d.ts +44 -0
- package/dist/components/flow-runs-table/FlowRunsTable.d.ts +6 -0
- package/dist/components/flow-runs-table/index.d.ts +1 -0
- package/dist/components/flow-viewer/FlowRunsView.d.ts +7 -0
- package/dist/components/flow-viewer/FlowStatusView.d.ts +21 -0
- package/dist/components/flow-viewer/RunSelector.d.ts +13 -0
- package/dist/components/flow-viewer/RunsSidebar.d.ts +14 -0
- package/dist/components/flow-viewer/agent-tool-executions-list.d.ts +7 -0
- package/dist/components/flow-viewer/index.d.ts +1 -0
- package/dist/components/flow-viewer/logs-panel.d.ts +18 -0
- package/dist/components/flow-viewer/use-execution-log-data.d.ts +113 -0
- package/dist/components/graph/BatchFlowEdge.d.ts +33 -0
- package/dist/components/graph/LayoutSelector.d.ts +9 -0
- package/dist/components/graph/index.d.ts +47 -0
- package/dist/components/graph/styleUtils.d.ts +124 -0
- package/dist/components/nodes/AgentConfigPanel.d.ts +24 -0
- package/dist/components/nodes/AgentNode.d.ts +8 -0
- package/dist/components/nodes/AgentToolsBox.d.ts +41 -0
- package/dist/components/nodes/NodeAppendix.d.ts +19 -0
- package/dist/components/nodes/NodeStatusIndicator.d.ts +30 -0
- package/dist/components/nodes/NodeViewContext.d.ts +18 -0
- package/dist/components/nodes/ToolParamField.d.ts +28 -0
- package/dist/components/nodes/ToolSelectorModal.d.ts +80 -0
- package/dist/components/nodes/ToolSelectorParts.d.ts +30 -0
- package/dist/components/nodes/UniversalNode.d.ts +2 -0
- package/dist/components/nodes/createContextAwareNodes.d.ts +6 -0
- package/dist/components/nodes/index.d.ts +22 -0
- package/dist/components/nodes/nodeRegistry.d.ts +13 -0
- package/dist/components/nodes/withNodeContext.d.ts +7 -0
- package/dist/components/shared/InvectLoader.d.ts +8 -0
- package/dist/components/shared/InvectLogo.d.ts +9 -0
- package/dist/components/shared/ProviderIcon.d.ts +23 -0
- package/dist/components/side-menu/side-menu.d.ts +4 -0
- package/dist/components/sidebar/BaseSidebar.d.ts +17 -0
- package/dist/components/sidebar/index.d.ts +1 -0
- package/dist/components/triggers/CronPreview.d.ts +12 -0
- package/dist/components/triggers/index.d.ts +1 -0
- package/dist/components/ui/alert-dialog.d.ts +18 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/button.d.ts +13 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/codemirror-js-editor.d.ts +25 -0
- package/dist/components/ui/codemirror-json-editor.d.ts +18 -0
- package/dist/components/ui/codemirror-nunjucks-editor.d.ts +13 -0
- package/dist/components/ui/codemirror-vscode-theme.d.ts +24 -0
- package/dist/components/ui/collapsible.d.ts +6 -0
- package/dist/components/ui/command.d.ts +18 -0
- package/dist/components/ui/dialog.d.ts +18 -0
- package/dist/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/components/ui/empty-state.d.ts +21 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/popover.d.ts +10 -0
- package/dist/components/ui/resizable.d.ts +8 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/select.d.ts +18 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/switch.d.ts +3 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/components/ui/tree-view.d.ts +107 -0
- package/dist/contexts/AgentToolCallbacksContext.d.ts +23 -0
- package/dist/contexts/ApiContext.d.ts +11 -0
- package/dist/contexts/FlowDataContext.d.ts +9 -0
- package/dist/contexts/NodeRegistryContext.d.ts +14 -0
- package/dist/contexts/PluginRegistryContext.d.ts +39 -0
- package/dist/contexts/ThemeProvider.d.ts +18 -0
- package/dist/contexts/ValidationContext.d.ts +22 -0
- package/dist/demo/DemoInvect.d.ts +11 -0
- package/dist/demo/FlowViewer.d.ts +31 -0
- package/dist/demo/demo-api-client.d.ts +33 -0
- package/dist/demo/index.d.ts +6 -0
- package/dist/demo/sample-data.d.ts +1538 -0
- package/dist/demo.d.ts +2 -0
- package/dist/demo.js +2774 -0
- package/dist/estree-ClbRfS-1.js +7076 -0
- package/dist/fonts/geist-cyrillic-wght-normal.woff2 +0 -0
- package/dist/fonts/geist-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/geist-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/iosevka-latin-400-normal.woff2 +0 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-document-title.d.ts +1 -0
- package/dist/hooks/use-flow-data.d.ts +22 -0
- package/dist/hooks/use-invect-portal-class.d.ts +21 -0
- package/dist/hooks/useFlowEditorStore.d.ts +1 -0
- package/dist/index.css +3 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +717 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/prettier.d.ts +13 -0
- package/dist/routes/all-flow-runs.d.ts +5 -0
- package/dist/routes/credentials.d.ts +5 -0
- package/dist/routes/flow-route-layout.d.ts +19 -0
- package/dist/routes/flow-runs.d.ts +5 -0
- package/dist/routes/flow.d.ts +5 -0
- package/dist/routes/home.d.ts +5 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/standalone-C3Df7W52.js +3463 -0
- package/dist/stores/executionViewStore.d.ts +64 -0
- package/dist/stores/flow-editor.store.d.ts +137 -0
- package/dist/stores/flowEditorStore.d.ts +1 -0
- package/dist/stores/index.d.ts +2 -0
- package/dist/stores/uiStore.d.ts +45 -0
- package/dist/types/agent-tools.types.d.ts +53 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/node-definition.types.d.ts +85 -0
- package/dist/types/plugin.types.d.ts +100 -0
- package/dist/utils/credentialBranding.d.ts +8 -0
- package/dist/utils/credentialFiltering.d.ts +20 -0
- package/dist/utils/flowTransformations.d.ts +16 -0
- package/dist/utils/layoutUtils.d.ts +23 -0
- package/dist/utils/nodeReferenceUtils.d.ts +37 -0
- package/dist/vendor.d.ts +5 -0
- package/package.json +130 -0
- package/src/.DS_Store +0 -0
- package/src/Invect.tsx +229 -0
- package/src/InvectShell.tsx +55 -0
- package/src/api/agent-tools.api.ts +23 -0
- package/src/api/client.ts +899 -0
- package/src/api/credentials.api.ts +197 -0
- package/src/api/executions.api.ts +228 -0
- package/src/api/flows.api.ts +195 -0
- package/src/api/index.ts +17 -0
- package/src/api/node-data.api.ts +167 -0
- package/src/api/query-keys.ts +44 -0
- package/src/api/triggers.api.ts +120 -0
- package/src/api/types.ts +212 -0
- package/src/api/use-flow-run-stream.ts +206 -0
- package/src/app.css +560 -0
- package/src/assets/.DS_Store +0 -0
- package/src/assets/favicon.ico +0 -0
- package/src/assets/fonts/geist-cyrillic-wght-normal.woff2 +0 -0
- package/src/assets/fonts/geist-latin-ext-wght-normal.woff2 +0 -0
- package/src/assets/fonts/geist-latin-wght-normal.woff2 +0 -0
- package/src/assets/fonts/iosevka-latin-400-normal.woff2 +0 -0
- package/src/assets/invect-branding.ts +51 -0
- package/src/assets/provider-icons/anthropic.svg +1 -0
- package/src/assets/provider-icons/anthropic_light.svg +1 -0
- package/src/assets/provider-icons/github.svg +1 -0
- package/src/assets/provider-icons/github_light.svg +1 -0
- package/src/assets/provider-icons/gmail.svg +1 -0
- package/src/assets/provider-icons/google_calendar.svg +1 -0
- package/src/assets/provider-icons/google_docs.svg +1 -0
- package/src/assets/provider-icons/google_drive.svg +1 -0
- package/src/assets/provider-icons/google_sheets.svg +1 -0
- package/src/assets/provider-icons/index.ts +55 -0
- package/src/assets/provider-icons/linear.svg +1 -0
- package/src/assets/provider-icons/openai.svg +1 -0
- package/src/assets/provider-icons/postgres.svg +1 -0
- package/src/assets/provider-icons/slack.svg +1 -0
- package/src/assets/small-loader-dark.svg +22 -0
- package/src/assets/small-loader-light.svg +22 -0
- package/src/assets/small.svg +7 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/PageLayout.tsx +55 -0
- package/src/components/chat/ChatInput.tsx +115 -0
- package/src/components/chat/ChatMessageList.tsx +788 -0
- package/src/components/chat/ChatModelSelector.tsx +208 -0
- package/src/components/chat/ChatPanel.tsx +243 -0
- package/src/components/chat/ChatPromptOverlay.tsx +150 -0
- package/src/components/chat/ChatProviderSelector.tsx +135 -0
- package/src/components/chat/ChatSettingsPanel.tsx +277 -0
- package/src/components/chat/InlineCredentialSetup.tsx +343 -0
- package/src/components/chat/MarkdownRenderer.tsx +140 -0
- package/src/components/chat/chat-memory.ts +88 -0
- package/src/components/chat/chat.store.ts +479 -0
- package/src/components/chat/index.ts +5 -0
- package/src/components/chat/use-chat.ts +473 -0
- package/src/components/credentials/CreateCredentialModal.tsx +609 -0
- package/src/components/credentials/CredentialDetailDialog.tsx +882 -0
- package/src/components/credentials/EditCredentialModal.tsx +399 -0
- package/src/components/credentials/OAuth2ConnectButton.tsx +288 -0
- package/src/components/credentials/OAuth2ProviderSelector.tsx +360 -0
- package/src/components/credentials/credential-utils.ts +99 -0
- package/src/components/credentials/index.ts +10 -0
- package/src/components/dashboard/FailedRunsAlert.tsx +67 -0
- package/src/components/dashboard/FlowCard.tsx +64 -0
- package/src/components/dashboard/RecentActivityTable.tsx +92 -0
- package/src/components/dashboard/StatCard.tsx +32 -0
- package/src/components/dashboard/index.ts +5 -0
- package/src/components/dashboard/status-helpers.tsx +102 -0
- package/src/components/flow-editor/ActionsSidebar.tsx +503 -0
- package/src/components/flow-editor/FlowEditor.tsx +1002 -0
- package/src/components/flow-editor/FlowHeader.tsx +87 -0
- package/src/components/flow-editor/FlowLayout.tsx +117 -0
- package/src/components/flow-editor/ModeSwitcher.tsx +49 -0
- package/src/components/flow-editor/NodeSidebar.tsx +343 -0
- package/src/components/flow-editor/RunControls.tsx +109 -0
- package/src/components/flow-editor/ToolConfigPanel.tsx +434 -0
- package/src/components/flow-editor/ValidationPanel.tsx +167 -0
- package/src/components/flow-editor/flow-editor.store.ts +2 -0
- package/src/components/flow-editor/index.ts +6 -0
- package/src/components/flow-editor/inline-edit.tsx +111 -0
- package/src/components/flow-editor/node-config-panel/ConfigFieldWithTemplate.tsx +334 -0
- package/src/components/flow-editor/node-config-panel/CredentialCombobox.tsx +217 -0
- package/src/components/flow-editor/node-config-panel/CredentialsSection.tsx +154 -0
- package/src/components/flow-editor/node-config-panel/DroppableInput.tsx +45 -0
- package/src/components/flow-editor/node-config-panel/DynamicSelectField.tsx +223 -0
- package/src/components/flow-editor/node-config-panel/JsonPreviewPanel.tsx +134 -0
- package/src/components/flow-editor/node-config-panel/NodeConfigPanel.tsx +650 -0
- package/src/components/flow-editor/node-config-panel/NodeConfigPanelHeader.tsx +91 -0
- package/src/components/flow-editor/node-config-panel/ParametersSection.tsx +144 -0
- package/src/components/flow-editor/node-config-panel/SearchableSelectField.tsx +126 -0
- package/src/components/flow-editor/node-config-panel/SwitchCasesField.tsx +212 -0
- package/src/components/flow-editor/node-config-panel/hooks/index.ts +2 -0
- package/src/components/flow-editor/node-config-panel/hooks/use-node-config-panel-state.ts +284 -0
- package/src/components/flow-editor/node-config-panel/hooks/use-node-execution.ts +287 -0
- package/src/components/flow-editor/node-config-panel/hooks/use-upstream-slots.ts +310 -0
- package/src/components/flow-editor/node-config-panel/panels/AgentToolsPanel.tsx +837 -0
- package/src/components/flow-editor/node-config-panel/panels/ConfigurationPanel.tsx +383 -0
- package/src/components/flow-editor/node-config-panel/panels/DataMapperPane.tsx +456 -0
- package/src/components/flow-editor/node-config-panel/panels/InputPanel.tsx +338 -0
- package/src/components/flow-editor/node-config-panel/panels/OutputPanel.tsx +109 -0
- package/src/components/flow-editor/node-config-panel/panels/index.ts +4 -0
- package/src/components/flow-editor/node-config-panel/types.ts +20 -0
- package/src/components/flow-editor/node-config-panel/use-node-config-panel-store.ts +283 -0
- package/src/components/flow-editor/node-config-panel/use-node-config-state.ts +172 -0
- package/src/components/flow-editor/node-config-panel/use-run-node.ts +147 -0
- package/src/components/flow-editor/node-config-panel/utils.ts +73 -0
- package/src/components/flow-editor/serialize-to-sdk.ts +204 -0
- package/src/components/flow-editor/toolbar-context.ts +9 -0
- package/src/components/flow-editor/use-copy-paste.ts +575 -0
- package/src/components/flow-editor/use-copy-paste.types.ts +35 -0
- package/src/components/flow-editor/use-flow-editor.ts +241 -0
- package/src/components/flow-runs-table/FlowRunsTable.tsx +631 -0
- package/src/components/flow-runs-table/index.ts +1 -0
- package/src/components/flow-viewer/FlowRunsView.tsx +268 -0
- package/src/components/flow-viewer/FlowStatusView.tsx +351 -0
- package/src/components/flow-viewer/RunSelector.tsx +422 -0
- package/src/components/flow-viewer/RunsSidebar.tsx +125 -0
- package/src/components/flow-viewer/agent-tool-executions-list.tsx +298 -0
- package/src/components/flow-viewer/index.ts +1 -0
- package/src/components/flow-viewer/logs-panel.tsx +567 -0
- package/src/components/flow-viewer/use-execution-log-data.ts +374 -0
- package/src/components/graph/BatchFlowEdge.tsx +229 -0
- package/src/components/graph/LayoutSelector.tsx +42 -0
- package/src/components/graph/index.ts +61 -0
- package/src/components/graph/styleUtils.ts +375 -0
- package/src/components/nodes/.DS_Store +0 -0
- package/src/components/nodes/AgentConfigPanel.tsx +1033 -0
- package/src/components/nodes/AgentNode.tsx +298 -0
- package/src/components/nodes/AgentToolsBox.tsx +193 -0
- package/src/components/nodes/NodeAppendix.tsx +98 -0
- package/src/components/nodes/NodeStatusIndicator.tsx +74 -0
- package/src/components/nodes/NodeViewContext.tsx +45 -0
- package/src/components/nodes/ToolParamField.tsx +282 -0
- package/src/components/nodes/ToolSelectorModal.tsx +648 -0
- package/src/components/nodes/ToolSelectorParts.tsx +505 -0
- package/src/components/nodes/UniversalNode.tsx +356 -0
- package/src/components/nodes/createContextAwareNodes.ts +19 -0
- package/src/components/nodes/index.ts +45 -0
- package/src/components/nodes/nodeRegistry.ts +50 -0
- package/src/components/nodes/withNodeContext.tsx +55 -0
- package/src/components/shared/InvectLoader.tsx +59 -0
- package/src/components/shared/InvectLogo.tsx +59 -0
- package/src/components/shared/ProviderIcon.tsx +115 -0
- package/src/components/side-menu/side-menu.tsx +267 -0
- package/src/components/sidebar/BaseSidebar.tsx +148 -0
- package/src/components/sidebar/index.ts +1 -0
- package/src/components/triggers/CronPreview.tsx +243 -0
- package/src/components/triggers/index.ts +1 -0
- package/src/components/ui/alert-dialog.tsx +152 -0
- package/src/components/ui/badge.tsx +39 -0
- package/src/components/ui/button.tsx +58 -0
- package/src/components/ui/card.tsx +75 -0
- package/src/components/ui/codemirror-js-editor.tsx +432 -0
- package/src/components/ui/codemirror-json-editor.tsx +816 -0
- package/src/components/ui/codemirror-nunjucks-editor.tsx +451 -0
- package/src/components/ui/codemirror-vscode-theme.ts +243 -0
- package/src/components/ui/collapsible.tsx +12 -0
- package/src/components/ui/command.tsx +162 -0
- package/src/components/ui/dialog.tsx +140 -0
- package/src/components/ui/dropdown-menu.tsx +232 -0
- package/src/components/ui/empty-state.tsx +93 -0
- package/src/components/ui/input.tsx +26 -0
- package/src/components/ui/label.tsx +19 -0
- package/src/components/ui/popover.tsx +53 -0
- package/src/components/ui/resizable.tsx +61 -0
- package/src/components/ui/scroll-area.tsx +56 -0
- package/src/components/ui/select.tsx +179 -0
- package/src/components/ui/separator.tsx +26 -0
- package/src/components/ui/slider.tsx +58 -0
- package/src/components/ui/switch.tsx +22 -0
- package/src/components/ui/table.tsx +90 -0
- package/src/components/ui/textarea.tsx +23 -0
- package/src/components/ui/tooltip.tsx +54 -0
- package/src/components/ui/tree-view.tsx +574 -0
- package/src/contexts/AgentToolCallbacksContext.tsx +31 -0
- package/src/contexts/ApiContext.tsx +51 -0
- package/src/contexts/FlowDataContext.tsx +21 -0
- package/src/contexts/NodeRegistryContext.tsx +54 -0
- package/src/contexts/PluginRegistryContext.tsx +182 -0
- package/src/contexts/ThemeProvider.tsx +106 -0
- package/src/contexts/ValidationContext.tsx +122 -0
- package/src/demo/DemoInvect.tsx +42 -0
- package/src/demo/FlowViewer.tsx +294 -0
- package/src/demo/demo-api-client.ts +246 -0
- package/src/demo/index.ts +28 -0
- package/src/demo/sample-data.ts +1980 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-document-title.ts +8 -0
- package/src/hooks/use-flow-data.ts +144 -0
- package/src/hooks/use-invect-portal-class.ts +27 -0
- package/src/hooks/useFlowEditorStore.ts +2 -0
- package/src/index.ts +70 -0
- package/src/lib/utils.ts +6 -0
- package/src/prettier.d.ts +13 -0
- package/src/routes/all-flow-runs.tsx +27 -0
- package/src/routes/credentials.tsx +362 -0
- package/src/routes/flow-route-layout.tsx +113 -0
- package/src/routes/flow-runs.tsx +22 -0
- package/src/routes/flow.tsx +22 -0
- package/src/routes/home.tsx +282 -0
- package/src/services/index.ts +6 -0
- package/src/stores/executionViewStore.ts +211 -0
- package/src/stores/flow-editor.store.ts +738 -0
- package/src/stores/flowEditorStore.ts +2 -0
- package/src/stores/index.ts +10 -0
- package/src/stores/uiStore.ts +189 -0
- package/src/types/agent-tools.types.ts +64 -0
- package/src/types/index.ts +5 -0
- package/src/types/node-definition.types.ts +104 -0
- package/src/types/plugin.types.ts +123 -0
- package/src/utils/credentialBranding.ts +116 -0
- package/src/utils/credentialFiltering.ts +68 -0
- package/src/utils/flowTransformations.ts +137 -0
- package/src/utils/layoutUtils.ts +127 -0
- package/src/utils/nodeReferenceUtils.ts +135 -0
- package/src/vendor.d.ts +7 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChatProviderSelector — Inline combobox for selecting the LLM credential/provider
|
|
3
|
+
* directly from the chat input toolbar.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import React, { useState, useCallback, useMemo } from 'react';
|
|
7
|
+
import { Check, ChevronsUpDown, Key, Plus } from 'lucide-react';
|
|
8
|
+
import { cn } from '~/lib/utils';
|
|
9
|
+
import { Button } from '~/components/ui/button';
|
|
10
|
+
import { Popover, PopoverContent, PopoverTrigger } from '~/components/ui/popover';
|
|
11
|
+
import {
|
|
12
|
+
Command,
|
|
13
|
+
CommandEmpty,
|
|
14
|
+
CommandGroup,
|
|
15
|
+
CommandItem,
|
|
16
|
+
CommandList,
|
|
17
|
+
} from '~/components/ui/command';
|
|
18
|
+
import { useChatStore } from './chat.store';
|
|
19
|
+
import { useCredentials, useCreateCredential } from '~/api/credentials.api';
|
|
20
|
+
import { CreateCredentialModal } from '~/components/credentials/CreateCredentialModal';
|
|
21
|
+
import type { CreateCredentialInput } from '~/api/types';
|
|
22
|
+
|
|
23
|
+
interface ChatProviderSelectorProps {
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function ChatProviderSelector({ className }: ChatProviderSelectorProps) {
|
|
28
|
+
const [open, setOpen] = useState(false);
|
|
29
|
+
const [showCreateModal, setShowCreateModal] = useState(false);
|
|
30
|
+
|
|
31
|
+
const credentialId = useChatStore((s) => s.settings.credentialId);
|
|
32
|
+
const updateSettings = useChatStore((s) => s.updateSettings);
|
|
33
|
+
|
|
34
|
+
const { data: credentials = [], isLoading } = useCredentials({ type: 'llm', isActive: true });
|
|
35
|
+
const createCredentialMutation = useCreateCredential();
|
|
36
|
+
|
|
37
|
+
const selectedCredential = useMemo(
|
|
38
|
+
() => credentials.find((c) => c.id === credentialId),
|
|
39
|
+
[credentials, credentialId],
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
const displayLabel = selectedCredential?.name ?? 'Select provider';
|
|
43
|
+
|
|
44
|
+
const handleSelect = useCallback(
|
|
45
|
+
(id: string) => {
|
|
46
|
+
updateSettings({ credentialId: id, model: null });
|
|
47
|
+
setOpen(false);
|
|
48
|
+
},
|
|
49
|
+
[updateSettings],
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
const handleCreateCredential = useCallback(
|
|
53
|
+
(data: CreateCredentialInput) => {
|
|
54
|
+
createCredentialMutation.mutate(data, {
|
|
55
|
+
onSuccess: (created) => {
|
|
56
|
+
setShowCreateModal(false);
|
|
57
|
+
updateSettings({ credentialId: created.id, model: null });
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
},
|
|
61
|
+
[createCredentialMutation, updateSettings],
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
return (
|
|
65
|
+
<>
|
|
66
|
+
<Popover open={open} onOpenChange={setOpen}>
|
|
67
|
+
<PopoverTrigger asChild>
|
|
68
|
+
<Button
|
|
69
|
+
variant="ghost"
|
|
70
|
+
size="sm"
|
|
71
|
+
role="combobox"
|
|
72
|
+
aria-expanded={open}
|
|
73
|
+
className={cn(
|
|
74
|
+
'h-6 gap-1 px-2 text-[11px] font-normal text-muted-foreground hover:text-foreground max-w-40',
|
|
75
|
+
className,
|
|
76
|
+
)}
|
|
77
|
+
>
|
|
78
|
+
<Key className="size-3 shrink-0" />
|
|
79
|
+
<span className="truncate">{displayLabel}</span>
|
|
80
|
+
<ChevronsUpDown className="ml-auto size-3 shrink-0 opacity-50" />
|
|
81
|
+
</Button>
|
|
82
|
+
</PopoverTrigger>
|
|
83
|
+
<PopoverContent className="w-56 p-0" align="start" side="top" sideOffset={8}>
|
|
84
|
+
<Command>
|
|
85
|
+
<CommandList>
|
|
86
|
+
{isLoading && (
|
|
87
|
+
<div className="py-4 text-xs text-center text-muted-foreground">
|
|
88
|
+
Loading providers…
|
|
89
|
+
</div>
|
|
90
|
+
)}
|
|
91
|
+
{!isLoading && credentials.length === 0 && (
|
|
92
|
+
<CommandEmpty>No LLM credentials found</CommandEmpty>
|
|
93
|
+
)}
|
|
94
|
+
{credentials.length > 0 && (
|
|
95
|
+
<CommandGroup heading="LLM Providers">
|
|
96
|
+
{credentials.map((c) => (
|
|
97
|
+
<CommandItem
|
|
98
|
+
key={c.id}
|
|
99
|
+
value={c.id}
|
|
100
|
+
onSelect={() => handleSelect(c.id)}
|
|
101
|
+
className="text-xs"
|
|
102
|
+
>
|
|
103
|
+
<span className="truncate">{c.name}</span>
|
|
104
|
+
{credentialId === c.id && <Check className="ml-auto size-3" />}
|
|
105
|
+
</CommandItem>
|
|
106
|
+
))}
|
|
107
|
+
</CommandGroup>
|
|
108
|
+
)}
|
|
109
|
+
<CommandGroup>
|
|
110
|
+
<CommandItem
|
|
111
|
+
onSelect={() => {
|
|
112
|
+
setOpen(false);
|
|
113
|
+
setShowCreateModal(true);
|
|
114
|
+
}}
|
|
115
|
+
className="text-xs"
|
|
116
|
+
>
|
|
117
|
+
<Plus className="mr-1.5 size-3" />
|
|
118
|
+
New LLM Credential
|
|
119
|
+
</CommandItem>
|
|
120
|
+
</CommandGroup>
|
|
121
|
+
</CommandList>
|
|
122
|
+
</Command>
|
|
123
|
+
</PopoverContent>
|
|
124
|
+
</Popover>
|
|
125
|
+
|
|
126
|
+
<CreateCredentialModal
|
|
127
|
+
open={showCreateModal}
|
|
128
|
+
onClose={() => setShowCreateModal(false)}
|
|
129
|
+
onSubmit={handleCreateCredential}
|
|
130
|
+
isLoading={createCredentialMutation.isPending}
|
|
131
|
+
initialType="llm"
|
|
132
|
+
/>
|
|
133
|
+
</>
|
|
134
|
+
);
|
|
135
|
+
}
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChatSettingsPanel — Inline panel for configuring chat assistant settings.
|
|
3
|
+
*
|
|
4
|
+
* Renders within the ChatPanel as a slide-over view when the user clicks
|
|
5
|
+
* the settings gear icon. Settings are persisted to localStorage.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React, { useState, useCallback, useEffect, useMemo } from 'react';
|
|
9
|
+
import { ArrowLeft, Settings2, Bot, Key, Plus } from 'lucide-react';
|
|
10
|
+
import { Button } from '~/components/ui/button';
|
|
11
|
+
import {
|
|
12
|
+
Select,
|
|
13
|
+
SelectContent,
|
|
14
|
+
SelectItem,
|
|
15
|
+
SelectTrigger,
|
|
16
|
+
SelectValue,
|
|
17
|
+
} from '~/components/ui/select';
|
|
18
|
+
import { useChatStore } from './chat.store';
|
|
19
|
+
import { useCredentials, useCreateCredential } from '~/api/credentials.api';
|
|
20
|
+
import { CreateCredentialModal } from '~/components/credentials/CreateCredentialModal';
|
|
21
|
+
import type { CreateCredentialInput } from '~/api/types';
|
|
22
|
+
|
|
23
|
+
// =====================================
|
|
24
|
+
// ChatSettingsPanel (main export)
|
|
25
|
+
// =====================================
|
|
26
|
+
|
|
27
|
+
interface ChatSettingsPanelProps {
|
|
28
|
+
onClose: () => void;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function ChatSettingsPanel({ onClose }: ChatSettingsPanelProps) {
|
|
32
|
+
const settings = useChatStore((s) => s.settings);
|
|
33
|
+
const updateSettings = useChatStore((s) => s.updateSettings);
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<div className="flex flex-col h-full">
|
|
37
|
+
{/* Header */}
|
|
38
|
+
<div className="flex items-center gap-2 px-4 py-3 border-b border-border">
|
|
39
|
+
<Button variant="ghost" size="icon-sm" onClick={onClose} title="Back to chat">
|
|
40
|
+
<ArrowLeft className="size-4" />
|
|
41
|
+
</Button>
|
|
42
|
+
<Settings2 className="size-4 text-primary" />
|
|
43
|
+
<span className="text-sm font-medium">Chat Settings</span>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
{/* Description */}
|
|
47
|
+
<div className="px-4 py-2 text-xs border-b border-border text-muted-foreground bg-muted/20">
|
|
48
|
+
Configure how the AI assistant behaves. Settings are saved locally in your browser.
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
{/* Settings */}
|
|
52
|
+
<div className="flex flex-col gap-6 p-4">
|
|
53
|
+
{/* LLM Credential */}
|
|
54
|
+
<LlmCredentialSetting
|
|
55
|
+
credentialId={settings.credentialId}
|
|
56
|
+
onChange={(credentialId) => updateSettings({ credentialId })}
|
|
57
|
+
/>
|
|
58
|
+
|
|
59
|
+
{/* Max Steps */}
|
|
60
|
+
<MaxStepsSetting
|
|
61
|
+
value={settings.maxSteps}
|
|
62
|
+
onChange={(maxSteps) => updateSettings({ maxSteps })}
|
|
63
|
+
/>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// =====================================
|
|
70
|
+
// LlmCredentialSetting
|
|
71
|
+
// =====================================
|
|
72
|
+
|
|
73
|
+
function LlmCredentialSetting({
|
|
74
|
+
credentialId,
|
|
75
|
+
onChange,
|
|
76
|
+
}: {
|
|
77
|
+
credentialId: string | null;
|
|
78
|
+
onChange: (credentialId: string | null) => void;
|
|
79
|
+
}) {
|
|
80
|
+
// Fetch only active LLM credentials
|
|
81
|
+
const { data: credentials = [], isLoading } = useCredentials({ type: 'llm', isActive: true });
|
|
82
|
+
const createCredentialMutation = useCreateCredential();
|
|
83
|
+
const [showCreateModal, setShowCreateModal] = useState(false);
|
|
84
|
+
const hasSelectedCredential = useMemo(
|
|
85
|
+
() => Boolean(credentialId && credentials.some((credential) => credential.id === credentialId)),
|
|
86
|
+
[credentialId, credentials],
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
useEffect(() => {
|
|
90
|
+
if (credentialId && !isLoading && !hasSelectedCredential) {
|
|
91
|
+
onChange(null);
|
|
92
|
+
}
|
|
93
|
+
}, [credentialId, hasSelectedCredential, isLoading, onChange]);
|
|
94
|
+
|
|
95
|
+
const handleCredentialChange = useCallback(
|
|
96
|
+
(value: string) => {
|
|
97
|
+
if (value === '__none__') {
|
|
98
|
+
onChange(null);
|
|
99
|
+
} else {
|
|
100
|
+
onChange(value);
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
[onChange],
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
const handleCreateCredential = useCallback(
|
|
107
|
+
(data: CreateCredentialInput) => {
|
|
108
|
+
createCredentialMutation.mutate(data, {
|
|
109
|
+
onSuccess: (created) => {
|
|
110
|
+
setShowCreateModal(false);
|
|
111
|
+
// Auto-select the newly created credential
|
|
112
|
+
onChange(created.id);
|
|
113
|
+
},
|
|
114
|
+
});
|
|
115
|
+
},
|
|
116
|
+
[createCredentialMutation, onChange],
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
return (
|
|
120
|
+
<div className="space-y-3">
|
|
121
|
+
<div className="flex items-center gap-2">
|
|
122
|
+
<Bot className="size-4 text-primary" />
|
|
123
|
+
<label className="text-sm font-medium text-foreground">LLM Credential</label>
|
|
124
|
+
</div>
|
|
125
|
+
|
|
126
|
+
<p className="text-xs leading-relaxed text-muted-foreground">
|
|
127
|
+
Select the API credential the assistant uses. Only credentials with type{' '}
|
|
128
|
+
<span className="font-medium">LLM Provider</span> are shown.
|
|
129
|
+
</p>
|
|
130
|
+
|
|
131
|
+
{/* Credential selector */}
|
|
132
|
+
<div className="space-y-1.5">
|
|
133
|
+
<label className="flex items-center gap-1 text-xs text-muted-foreground">
|
|
134
|
+
<Key className="size-3" />
|
|
135
|
+
Credential
|
|
136
|
+
</label>
|
|
137
|
+
{isLoading ? (
|
|
138
|
+
<div className="py-2 text-xs text-muted-foreground">Loading credentials…</div>
|
|
139
|
+
) : credentials.length === 0 ? (
|
|
140
|
+
<div className="p-4 space-y-3 text-xs border border-dashed rounded-lg border-muted-foreground/30 bg-muted/30 text-muted-foreground">
|
|
141
|
+
<div className="space-y-1">
|
|
142
|
+
<p className="font-medium text-foreground">No LLM credentials yet</p>
|
|
143
|
+
<p>Add an API key for OpenAI, Anthropic, or OpenRouter to get started.</p>
|
|
144
|
+
</div>
|
|
145
|
+
<Button
|
|
146
|
+
variant="outline"
|
|
147
|
+
size="sm"
|
|
148
|
+
className="w-full gap-1.5"
|
|
149
|
+
onClick={() => setShowCreateModal(true)}
|
|
150
|
+
>
|
|
151
|
+
<Plus className="size-3.5" />
|
|
152
|
+
New LLM Credential
|
|
153
|
+
</Button>
|
|
154
|
+
</div>
|
|
155
|
+
) : (
|
|
156
|
+
<div className="flex gap-1.5">
|
|
157
|
+
<Select
|
|
158
|
+
value={hasSelectedCredential ? (credentialId ?? '__none__') : '__none__'}
|
|
159
|
+
onValueChange={handleCredentialChange}
|
|
160
|
+
>
|
|
161
|
+
<SelectTrigger className="w-full">
|
|
162
|
+
<SelectValue placeholder="Select a credential…" />
|
|
163
|
+
</SelectTrigger>
|
|
164
|
+
<SelectContent>
|
|
165
|
+
<SelectItem value="__none__">
|
|
166
|
+
<span className="text-muted-foreground">None selected</span>
|
|
167
|
+
</SelectItem>
|
|
168
|
+
{credentials.map((c) => (
|
|
169
|
+
<SelectItem key={c.id} value={c.id}>
|
|
170
|
+
{c.name}
|
|
171
|
+
</SelectItem>
|
|
172
|
+
))}
|
|
173
|
+
</SelectContent>
|
|
174
|
+
</Select>
|
|
175
|
+
<Button
|
|
176
|
+
variant="outline"
|
|
177
|
+
size="icon-sm"
|
|
178
|
+
title="New LLM credential"
|
|
179
|
+
onClick={() => setShowCreateModal(true)}
|
|
180
|
+
>
|
|
181
|
+
<Plus className="size-3.5" />
|
|
182
|
+
</Button>
|
|
183
|
+
</div>
|
|
184
|
+
)}
|
|
185
|
+
</div>
|
|
186
|
+
|
|
187
|
+
{/* Inline credential creation modal */}
|
|
188
|
+
<CreateCredentialModal
|
|
189
|
+
open={showCreateModal}
|
|
190
|
+
onClose={() => setShowCreateModal(false)}
|
|
191
|
+
onSubmit={handleCreateCredential}
|
|
192
|
+
isLoading={createCredentialMutation.isPending}
|
|
193
|
+
initialType="llm"
|
|
194
|
+
/>
|
|
195
|
+
</div>
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// =====================================
|
|
200
|
+
// MaxStepsSetting
|
|
201
|
+
// =====================================
|
|
202
|
+
|
|
203
|
+
function MaxStepsSetting({
|
|
204
|
+
value,
|
|
205
|
+
onChange,
|
|
206
|
+
}: {
|
|
207
|
+
value: number;
|
|
208
|
+
onChange: (value: number) => void;
|
|
209
|
+
}) {
|
|
210
|
+
const [localValue, setLocalValue] = useState(String(value));
|
|
211
|
+
|
|
212
|
+
const handleBlur = useCallback(() => {
|
|
213
|
+
const num = parseInt(localValue, 10);
|
|
214
|
+
if (!isNaN(num) && num >= 1 && num <= 200) {
|
|
215
|
+
onChange(num);
|
|
216
|
+
setLocalValue(String(num));
|
|
217
|
+
} else {
|
|
218
|
+
// Reset to current value on invalid input
|
|
219
|
+
setLocalValue(String(value));
|
|
220
|
+
}
|
|
221
|
+
}, [localValue, value, onChange]);
|
|
222
|
+
|
|
223
|
+
const handleKeyDown = useCallback((e: React.KeyboardEvent) => {
|
|
224
|
+
if (e.key === 'Enter') {
|
|
225
|
+
(e.target as HTMLInputElement).blur();
|
|
226
|
+
}
|
|
227
|
+
}, []);
|
|
228
|
+
|
|
229
|
+
return (
|
|
230
|
+
<div className="space-y-2">
|
|
231
|
+
<div className="flex items-center justify-between">
|
|
232
|
+
<label className="text-sm font-medium text-foreground" htmlFor="max-steps">
|
|
233
|
+
Max tool steps per message
|
|
234
|
+
</label>
|
|
235
|
+
<input
|
|
236
|
+
id="max-steps"
|
|
237
|
+
type="number"
|
|
238
|
+
min={1}
|
|
239
|
+
max={200}
|
|
240
|
+
value={localValue}
|
|
241
|
+
onChange={(e) => setLocalValue(e.target.value)}
|
|
242
|
+
onBlur={handleBlur}
|
|
243
|
+
onKeyDown={handleKeyDown}
|
|
244
|
+
className="w-16 h-8 px-2 text-sm text-center border rounded-md bg-background focus:outline-none focus:ring-1 focus:ring-primary"
|
|
245
|
+
/>
|
|
246
|
+
</div>
|
|
247
|
+
<p className="text-xs leading-relaxed text-muted-foreground">
|
|
248
|
+
Maximum number of tool-calling iterations the assistant can perform per message. Higher
|
|
249
|
+
values let the assistant handle more complex multi-step tasks but take longer.
|
|
250
|
+
<br />
|
|
251
|
+
<span className="text-muted-foreground/70">Default: 50 · Range: 1-200</span>
|
|
252
|
+
</p>
|
|
253
|
+
|
|
254
|
+
{/* Quick presets */}
|
|
255
|
+
<div className="flex items-center gap-2 pt-1">
|
|
256
|
+
<span className="mr-1 text-xs text-muted-foreground">Presets:</span>
|
|
257
|
+
{[25, 50, 100, 150, 200].map((preset) => (
|
|
258
|
+
<button
|
|
259
|
+
key={preset}
|
|
260
|
+
type="button"
|
|
261
|
+
onClick={() => {
|
|
262
|
+
onChange(preset);
|
|
263
|
+
setLocalValue(String(preset));
|
|
264
|
+
}}
|
|
265
|
+
className={`px-2 py-0.5 rounded text-xs font-medium transition-colors ${
|
|
266
|
+
value === preset
|
|
267
|
+
? 'bg-primary text-primary-foreground'
|
|
268
|
+
: 'bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground'
|
|
269
|
+
}`}
|
|
270
|
+
>
|
|
271
|
+
{preset}
|
|
272
|
+
</button>
|
|
273
|
+
))}
|
|
274
|
+
</div>
|
|
275
|
+
</div>
|
|
276
|
+
);
|
|
277
|
+
}
|