@stigmer/react 0.4.8 → 0.5.0
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/action-menu/ActionMenu.d.ts +64 -0
- package/action-menu/ActionMenu.d.ts.map +1 -0
- package/action-menu/ActionMenu.js +78 -0
- package/action-menu/ActionMenu.js.map +1 -0
- package/action-menu/index.d.ts +3 -0
- package/action-menu/index.d.ts.map +1 -0
- package/action-menu/index.js +2 -0
- package/action-menu/index.js.map +1 -0
- package/action-menu/types.d.ts +65 -0
- package/action-menu/types.d.ts.map +1 -0
- package/action-menu/types.js +2 -0
- package/action-menu/types.js.map +1 -0
- package/agent/AgentCreationWizard.d.ts +55 -0
- package/agent/AgentCreationWizard.d.ts.map +1 -0
- package/agent/AgentCreationWizard.js +115 -0
- package/agent/AgentCreationWizard.js.map +1 -0
- package/agent/AgentDetailView.d.ts +77 -9
- package/agent/AgentDetailView.d.ts.map +1 -1
- package/agent/AgentDetailView.js +265 -87
- package/agent/AgentDetailView.js.map +1 -1
- package/agent/index.d.ts +8 -0
- package/agent/index.d.ts.map +1 -1
- package/agent/index.js +4 -0
- package/agent/index.js.map +1 -1
- package/agent/internal/agentToInput.d.ts +12 -0
- package/agent/internal/agentToInput.d.ts.map +1 -0
- package/agent/internal/agentToInput.js +72 -0
- package/agent/internal/agentToInput.js.map +1 -0
- package/agent/steps/CapabilitiesStep.d.ts +16 -0
- package/agent/steps/CapabilitiesStep.d.ts.map +1 -0
- package/agent/steps/CapabilitiesStep.js +80 -0
- package/agent/steps/CapabilitiesStep.js.map +1 -0
- package/agent/steps/IdentityStep.d.ts +18 -0
- package/agent/steps/IdentityStep.d.ts.map +1 -0
- package/agent/steps/IdentityStep.js +43 -0
- package/agent/steps/IdentityStep.js.map +1 -0
- package/agent/steps/ReviewStep.d.ts +23 -0
- package/agent/steps/ReviewStep.d.ts.map +1 -0
- package/agent/steps/ReviewStep.js +73 -0
- package/agent/steps/ReviewStep.js.map +1 -0
- package/agent/steps/types.d.ts +35 -0
- package/agent/steps/types.d.ts.map +1 -0
- package/agent/steps/types.js +16 -0
- package/agent/steps/types.js.map +1 -0
- package/agent/useCreateAgent.d.ts +45 -0
- package/agent/useCreateAgent.d.ts.map +1 -0
- package/agent/useCreateAgent.js +50 -0
- package/agent/useCreateAgent.js.map +1 -0
- package/agent/useUpdateAgent.d.ts +24 -0
- package/agent/useUpdateAgent.d.ts.map +1 -0
- package/agent/useUpdateAgent.js +35 -0
- package/agent/useUpdateAgent.js.map +1 -0
- package/dependency-graph/DependencyGraph.d.ts +37 -0
- package/dependency-graph/DependencyGraph.d.ts.map +1 -0
- package/dependency-graph/DependencyGraph.js +88 -0
- package/dependency-graph/DependencyGraph.js.map +1 -0
- package/dependency-graph/DependencyTreeNode.d.ts +23 -0
- package/dependency-graph/DependencyTreeNode.d.ts.map +1 -0
- package/dependency-graph/DependencyTreeNode.js +99 -0
- package/dependency-graph/DependencyTreeNode.js.map +1 -0
- package/dependency-graph/index.d.ts +4 -0
- package/dependency-graph/index.d.ts.map +1 -0
- package/dependency-graph/index.js +5 -0
- package/dependency-graph/index.js.map +1 -0
- package/dependency-graph/types.d.ts +130 -0
- package/dependency-graph/types.d.ts.map +1 -0
- package/dependency-graph/types.js +2 -0
- package/dependency-graph/types.js.map +1 -0
- package/dependency-graph/useDependencyGraph.d.ts +27 -0
- package/dependency-graph/useDependencyGraph.d.ts.map +1 -0
- package/dependency-graph/useDependencyGraph.js +129 -0
- package/dependency-graph/useDependencyGraph.js.map +1 -0
- package/empty-state/EmptyState.d.ts +29 -0
- package/empty-state/EmptyState.d.ts.map +1 -0
- package/empty-state/EmptyState.js +45 -0
- package/empty-state/EmptyState.js.map +1 -0
- package/empty-state/index.d.ts +4 -0
- package/empty-state/index.d.ts.map +1 -0
- package/empty-state/index.js +3 -0
- package/empty-state/index.js.map +1 -0
- package/empty-state/types.d.ts +73 -0
- package/empty-state/types.d.ts.map +1 -0
- package/empty-state/types.js +2 -0
- package/empty-state/types.js.map +1 -0
- package/empty-state/useEmptyState.d.ts +18 -0
- package/empty-state/useEmptyState.d.ts.map +1 -0
- package/empty-state/useEmptyState.js +72 -0
- package/empty-state/useEmptyState.js.map +1 -0
- package/feedback/StigmerToaster.d.ts +18 -0
- package/feedback/StigmerToaster.d.ts.map +1 -0
- package/feedback/StigmerToaster.js +31 -0
- package/feedback/StigmerToaster.js.map +1 -0
- package/feedback/index.d.ts +4 -0
- package/feedback/index.d.ts.map +1 -0
- package/feedback/index.js +3 -0
- package/feedback/index.js.map +1 -0
- package/feedback/toast.d.ts +14 -0
- package/feedback/toast.d.ts.map +1 -0
- package/feedback/toast.js +14 -0
- package/feedback/toast.js.map +1 -0
- package/feedback/types.d.ts +4 -0
- package/feedback/types.d.ts.map +1 -0
- package/feedback/types.js +2 -0
- package/feedback/types.js.map +1 -0
- package/index.d.ts +30 -10
- package/index.d.ts.map +1 -1
- package/index.js +29 -9
- package/index.js.map +1 -1
- package/inline-edit/InlineEditImage.d.ts +20 -0
- package/inline-edit/InlineEditImage.d.ts.map +1 -0
- package/inline-edit/InlineEditImage.js +85 -0
- package/inline-edit/InlineEditImage.js.map +1 -0
- package/inline-edit/InlineEditKeyValue.d.ts +29 -0
- package/inline-edit/InlineEditKeyValue.d.ts.map +1 -0
- package/inline-edit/InlineEditKeyValue.js +67 -0
- package/inline-edit/InlineEditKeyValue.js.map +1 -0
- package/inline-edit/InlineEditResourceList.d.ts +34 -0
- package/inline-edit/InlineEditResourceList.d.ts.map +1 -0
- package/inline-edit/InlineEditResourceList.js +99 -0
- package/inline-edit/InlineEditResourceList.js.map +1 -0
- package/inline-edit/InlineEditSelect.d.ts +18 -0
- package/inline-edit/InlineEditSelect.d.ts.map +1 -0
- package/inline-edit/InlineEditSelect.js +54 -0
- package/inline-edit/InlineEditSelect.js.map +1 -0
- package/inline-edit/InlineEditText.d.ts +23 -0
- package/inline-edit/InlineEditText.d.ts.map +1 -0
- package/inline-edit/InlineEditText.js +79 -0
- package/inline-edit/InlineEditText.js.map +1 -0
- package/inline-edit/InlineEditTextarea.d.ts +22 -0
- package/inline-edit/InlineEditTextarea.d.ts.map +1 -0
- package/inline-edit/InlineEditTextarea.js +83 -0
- package/inline-edit/InlineEditTextarea.js.map +1 -0
- package/inline-edit/index.d.ts +16 -0
- package/inline-edit/index.d.ts.map +1 -0
- package/inline-edit/index.js +8 -0
- package/inline-edit/index.js.map +1 -0
- package/inline-edit/types.d.ts +42 -0
- package/inline-edit/types.d.ts.map +1 -0
- package/inline-edit/types.js +2 -0
- package/inline-edit/types.js.map +1 -0
- package/inline-edit/useInlineFieldSave.d.ts +23 -0
- package/inline-edit/useInlineFieldSave.d.ts.map +1 -0
- package/inline-edit/useInlineFieldSave.js +44 -0
- package/inline-edit/useInlineFieldSave.js.map +1 -0
- package/internal/Tabs.d.ts +4 -38
- package/internal/Tabs.d.ts.map +1 -1
- package/internal/Tabs.js +3 -62
- package/internal/Tabs.js.map +1 -1
- package/library/ImportResourceDialog.d.ts +43 -0
- package/library/ImportResourceDialog.d.ts.map +1 -0
- package/library/ImportResourceDialog.js +90 -0
- package/library/ImportResourceDialog.js.map +1 -0
- package/library/index.d.ts +7 -4
- package/library/index.d.ts.map +1 -1
- package/library/index.js +4 -2
- package/library/index.js.map +1 -1
- package/library/serialize-resource-yaml.d.ts +53 -0
- package/library/serialize-resource-yaml.d.ts.map +1 -1
- package/library/serialize-resource-yaml.js +275 -0
- package/library/serialize-resource-yaml.js.map +1 -1
- package/library/useExportResource.d.ts +56 -0
- package/library/useExportResource.d.ts.map +1 -0
- package/library/useExportResource.js +137 -0
- package/library/useExportResource.js.map +1 -0
- package/library/useImportResource.d.ts +84 -0
- package/library/useImportResource.d.ts.map +1 -0
- package/library/useImportResource.js +188 -0
- package/library/useImportResource.js.map +1 -0
- package/mcp-server/McpServerCreationWizard.d.ts +55 -0
- package/mcp-server/McpServerCreationWizard.d.ts.map +1 -0
- package/mcp-server/McpServerCreationWizard.js +121 -0
- package/mcp-server/McpServerCreationWizard.js.map +1 -0
- package/mcp-server/McpServerDetailView.d.ts +21 -1
- package/mcp-server/McpServerDetailView.d.ts.map +1 -1
- package/mcp-server/McpServerDetailView.js +113 -20
- package/mcp-server/McpServerDetailView.js.map +1 -1
- package/mcp-server/index.d.ts +8 -0
- package/mcp-server/index.d.ts.map +1 -1
- package/mcp-server/index.js +4 -0
- package/mcp-server/index.js.map +1 -1
- package/mcp-server/internal/mcpServerToInput.d.ts +12 -0
- package/mcp-server/internal/mcpServerToInput.d.ts.map +1 -0
- package/mcp-server/internal/mcpServerToInput.js +81 -0
- package/mcp-server/internal/mcpServerToInput.js.map +1 -0
- package/mcp-server/steps/EnvironmentAuthStep.d.ts +15 -0
- package/mcp-server/steps/EnvironmentAuthStep.d.ts.map +1 -0
- package/mcp-server/steps/EnvironmentAuthStep.js +55 -0
- package/mcp-server/steps/EnvironmentAuthStep.js.map +1 -0
- package/mcp-server/steps/IdentityTransportStep.d.ts +19 -0
- package/mcp-server/steps/IdentityTransportStep.d.ts.map +1 -0
- package/mcp-server/steps/IdentityTransportStep.js +73 -0
- package/mcp-server/steps/IdentityTransportStep.js.map +1 -0
- package/mcp-server/steps/ReviewStep.d.ts +23 -0
- package/mcp-server/steps/ReviewStep.d.ts.map +1 -0
- package/mcp-server/steps/ReviewStep.js +137 -0
- package/mcp-server/steps/ReviewStep.js.map +1 -0
- package/mcp-server/steps/types.d.ts +56 -0
- package/mcp-server/steps/types.d.ts.map +1 -0
- package/mcp-server/steps/types.js +27 -0
- package/mcp-server/steps/types.js.map +1 -0
- package/mcp-server/useCreateMcpServer.d.ts +45 -0
- package/mcp-server/useCreateMcpServer.d.ts.map +1 -0
- package/mcp-server/useCreateMcpServer.js +50 -0
- package/mcp-server/useCreateMcpServer.js.map +1 -0
- package/mcp-server/useUpdateMcpServer.d.ts +24 -0
- package/mcp-server/useUpdateMcpServer.d.ts.map +1 -0
- package/mcp-server/useUpdateMcpServer.js +35 -0
- package/mcp-server/useUpdateMcpServer.js.map +1 -0
- package/package.json +8 -4
- package/resource-creation/CreationPicker.d.ts +60 -0
- package/resource-creation/CreationPicker.d.ts.map +1 -0
- package/resource-creation/CreationPicker.js +74 -0
- package/resource-creation/CreationPicker.js.map +1 -0
- package/resource-creation/StepIndicator.d.ts +28 -0
- package/resource-creation/StepIndicator.d.ts.map +1 -0
- package/resource-creation/StepIndicator.js +40 -0
- package/resource-creation/StepIndicator.js.map +1 -0
- package/resource-creation/TemplateCard.d.ts +24 -0
- package/resource-creation/TemplateCard.d.ts.map +1 -0
- package/resource-creation/TemplateCard.js +68 -0
- package/resource-creation/TemplateCard.js.map +1 -0
- package/resource-creation/TemplateGallery.d.ts +43 -0
- package/resource-creation/TemplateGallery.d.ts.map +1 -0
- package/resource-creation/TemplateGallery.js +78 -0
- package/resource-creation/TemplateGallery.js.map +1 -0
- package/resource-creation/WizardNav.d.ts +31 -0
- package/resource-creation/WizardNav.d.ts.map +1 -0
- package/resource-creation/WizardNav.js +29 -0
- package/resource-creation/WizardNav.js.map +1 -0
- package/resource-creation/WizardShell.d.ts +41 -0
- package/resource-creation/WizardShell.d.ts.map +1 -0
- package/resource-creation/WizardShell.js +55 -0
- package/resource-creation/WizardShell.js.map +1 -0
- package/resource-creation/index.d.ts +21 -0
- package/resource-creation/index.d.ts.map +1 -0
- package/resource-creation/index.js +14 -0
- package/resource-creation/index.js.map +1 -0
- package/resource-creation/templates/agent-templates.d.ts +15 -0
- package/resource-creation/templates/agent-templates.d.ts.map +1 -0
- package/resource-creation/templates/agent-templates.js +148 -0
- package/resource-creation/templates/agent-templates.js.map +1 -0
- package/resource-creation/templates/index.d.ts +5 -0
- package/resource-creation/templates/index.d.ts.map +1 -0
- package/resource-creation/templates/index.js +5 -0
- package/resource-creation/templates/index.js.map +1 -0
- package/resource-creation/templates/mcp-server-templates.d.ts +15 -0
- package/resource-creation/templates/mcp-server-templates.d.ts.map +1 -0
- package/resource-creation/templates/mcp-server-templates.js +92 -0
- package/resource-creation/templates/mcp-server-templates.js.map +1 -0
- package/resource-creation/templates/types.d.ts +48 -0
- package/resource-creation/templates/types.d.ts.map +1 -0
- package/resource-creation/templates/types.js +16 -0
- package/resource-creation/templates/types.js.map +1 -0
- package/resource-creation/types.d.ts +88 -0
- package/resource-creation/types.d.ts.map +1 -0
- package/resource-creation/types.js +2 -0
- package/resource-creation/types.js.map +1 -0
- package/resource-creation/useTemplateFilter.d.ts +43 -0
- package/resource-creation/useTemplateFilter.d.ts.map +1 -0
- package/resource-creation/useTemplateFilter.js +73 -0
- package/resource-creation/useTemplateFilter.js.map +1 -0
- package/resource-creation/useWizardState.d.ts +67 -0
- package/resource-creation/useWizardState.d.ts.map +1 -0
- package/resource-creation/useWizardState.js +143 -0
- package/resource-creation/useWizardState.js.map +1 -0
- package/resource-detail/ConfirmDialog.d.ts +44 -0
- package/resource-detail/ConfirmDialog.d.ts.map +1 -0
- package/resource-detail/ConfirmDialog.js +62 -0
- package/resource-detail/ConfirmDialog.js.map +1 -0
- package/resource-detail/ResourceActionBar.d.ts +42 -0
- package/resource-detail/ResourceActionBar.d.ts.map +1 -0
- package/resource-detail/ResourceActionBar.js +64 -0
- package/resource-detail/ResourceActionBar.js.map +1 -0
- package/resource-detail/ResourceDetailShell.d.ts +36 -0
- package/resource-detail/ResourceDetailShell.d.ts.map +1 -0
- package/resource-detail/ResourceDetailShell.js +65 -0
- package/resource-detail/ResourceDetailShell.js.map +1 -0
- package/resource-detail/Section.d.ts +18 -0
- package/resource-detail/Section.d.ts.map +1 -0
- package/resource-detail/Section.js +18 -0
- package/resource-detail/Section.js.map +1 -0
- package/resource-detail/index.d.ts +15 -0
- package/resource-detail/index.d.ts.map +1 -0
- package/resource-detail/index.js +10 -0
- package/resource-detail/index.js.map +1 -0
- package/resource-detail/types.d.ts +146 -0
- package/resource-detail/types.d.ts.map +1 -0
- package/resource-detail/types.js +2 -0
- package/resource-detail/types.js.map +1 -0
- package/resource-detail/useConfirmAction.d.ts +41 -0
- package/resource-detail/useConfirmAction.d.ts.map +1 -0
- package/resource-detail/useConfirmAction.js +30 -0
- package/resource-detail/useConfirmAction.js.map +1 -0
- package/resource-detail/useCopyResource.d.ts +28 -0
- package/resource-detail/useCopyResource.d.ts.map +1 -0
- package/resource-detail/useCopyResource.js +46 -0
- package/resource-detail/useCopyResource.js.map +1 -0
- package/resource-detail/useDeleteResource.d.ts +40 -0
- package/resource-detail/useDeleteResource.d.ts.map +1 -0
- package/resource-detail/useDeleteResource.js +83 -0
- package/resource-detail/useDeleteResource.js.map +1 -0
- package/resource-detail/useDetailTabs.d.ts +46 -0
- package/resource-detail/useDetailTabs.d.ts.map +1 -0
- package/resource-detail/useDetailTabs.js +47 -0
- package/resource-detail/useDetailTabs.js.map +1 -0
- package/resource-workbench/components/BulkActionBar.d.ts +36 -0
- package/resource-workbench/components/BulkActionBar.d.ts.map +1 -0
- package/resource-workbench/components/BulkActionBar.js +35 -0
- package/resource-workbench/components/BulkActionBar.js.map +1 -0
- package/resource-workbench/components/ColumnHeader.d.ts +23 -0
- package/resource-workbench/components/ColumnHeader.d.ts.map +1 -0
- package/resource-workbench/components/ColumnHeader.js +25 -0
- package/resource-workbench/components/ColumnHeader.js.map +1 -0
- package/resource-workbench/components/FilterBar.d.ts +33 -0
- package/resource-workbench/components/FilterBar.d.ts.map +1 -0
- package/resource-workbench/components/FilterBar.js +72 -0
- package/resource-workbench/components/FilterBar.js.map +1 -0
- package/resource-workbench/components/ResourceAvatar.d.ts +29 -0
- package/resource-workbench/components/ResourceAvatar.d.ts.map +1 -0
- package/resource-workbench/components/ResourceAvatar.js +51 -0
- package/resource-workbench/components/ResourceAvatar.js.map +1 -0
- package/resource-workbench/components/ResourceCards.d.ts +39 -0
- package/resource-workbench/components/ResourceCards.d.ts.map +1 -0
- package/resource-workbench/components/ResourceCards.js +41 -0
- package/resource-workbench/components/ResourceCards.js.map +1 -0
- package/resource-workbench/components/ResourceInspector.d.ts +26 -0
- package/resource-workbench/components/ResourceInspector.d.ts.map +1 -0
- package/resource-workbench/components/ResourceInspector.js +22 -0
- package/resource-workbench/components/ResourceInspector.js.map +1 -0
- package/resource-workbench/components/ResourceList.d.ts +39 -0
- package/resource-workbench/components/ResourceList.d.ts.map +1 -0
- package/resource-workbench/components/ResourceList.js +41 -0
- package/resource-workbench/components/ResourceList.js.map +1 -0
- package/resource-workbench/components/ResourceTable.d.ts +47 -0
- package/resource-workbench/components/ResourceTable.d.ts.map +1 -0
- package/resource-workbench/components/ResourceTable.js +78 -0
- package/resource-workbench/components/ResourceTable.js.map +1 -0
- package/resource-workbench/components/ResourceWorkbench.d.ts +131 -0
- package/resource-workbench/components/ResourceWorkbench.d.ts.map +1 -0
- package/resource-workbench/components/ResourceWorkbench.js +170 -0
- package/resource-workbench/components/ResourceWorkbench.js.map +1 -0
- package/resource-workbench/components/SelectionCheckbox.d.ts +24 -0
- package/resource-workbench/components/SelectionCheckbox.d.ts.map +1 -0
- package/resource-workbench/components/SelectionCheckbox.js +16 -0
- package/resource-workbench/components/SelectionCheckbox.js.map +1 -0
- package/resource-workbench/components/StatusBadge.d.ts +31 -0
- package/resource-workbench/components/StatusBadge.d.ts.map +1 -0
- package/resource-workbench/components/StatusBadge.js +75 -0
- package/resource-workbench/components/StatusBadge.js.map +1 -0
- package/resource-workbench/components/ViewSwitcher.d.ts +21 -0
- package/resource-workbench/components/ViewSwitcher.d.ts.map +1 -0
- package/resource-workbench/components/ViewSwitcher.js +37 -0
- package/resource-workbench/components/ViewSwitcher.js.map +1 -0
- package/resource-workbench/hooks/useResourceCollection.d.ts +93 -0
- package/resource-workbench/hooks/useResourceCollection.d.ts.map +1 -0
- package/resource-workbench/hooks/useResourceCollection.js +133 -0
- package/resource-workbench/hooks/useResourceCollection.js.map +1 -0
- package/resource-workbench/hooks/useResourceFilters.d.ts +73 -0
- package/resource-workbench/hooks/useResourceFilters.d.ts.map +1 -0
- package/resource-workbench/hooks/useResourceFilters.js +105 -0
- package/resource-workbench/hooks/useResourceFilters.js.map +1 -0
- package/resource-workbench/hooks/useResourceSelection.d.ts +44 -0
- package/resource-workbench/hooks/useResourceSelection.d.ts.map +1 -0
- package/resource-workbench/hooks/useResourceSelection.js +123 -0
- package/resource-workbench/hooks/useResourceSelection.js.map +1 -0
- package/resource-workbench/hooks/useViewPreference.d.ts +32 -0
- package/resource-workbench/hooks/useViewPreference.d.ts.map +1 -0
- package/resource-workbench/hooks/useViewPreference.js +60 -0
- package/resource-workbench/hooks/useViewPreference.js.map +1 -0
- package/resource-workbench/index.d.ts +34 -0
- package/resource-workbench/index.d.ts.map +1 -0
- package/resource-workbench/index.js +19 -0
- package/resource-workbench/index.js.map +1 -0
- package/resource-workbench/types.d.ts +165 -0
- package/resource-workbench/types.d.ts.map +1 -0
- package/resource-workbench/types.js +2 -0
- package/resource-workbench/types.js.map +1 -0
- package/runner/RunnerDetailView.d.ts +44 -0
- package/runner/RunnerDetailView.d.ts.map +1 -0
- package/runner/RunnerDetailView.js +154 -0
- package/runner/RunnerDetailView.js.map +1 -0
- package/runner/RunnerListPanel.d.ts +26 -1
- package/runner/RunnerListPanel.d.ts.map +1 -1
- package/runner/RunnerListPanel.js +68 -46
- package/runner/RunnerListPanel.js.map +1 -1
- package/runner/index.d.ts +7 -1
- package/runner/index.d.ts.map +1 -1
- package/runner/index.js +3 -0
- package/runner/index.js.map +1 -1
- package/runner/shared.d.ts +31 -0
- package/runner/shared.d.ts.map +1 -0
- package/runner/shared.js +55 -0
- package/runner/shared.js.map +1 -0
- package/runner/useRunner.d.ts +37 -0
- package/runner/useRunner.d.ts.map +1 -0
- package/runner/useRunner.js +24 -0
- package/runner/useRunner.js.map +1 -0
- package/session/__tests__/group-sessions.test.js +3 -3
- package/session/__tests__/group-sessions.test.js.map +1 -1
- package/skill/SkillDetailView.d.ts +70 -7
- package/skill/SkillDetailView.d.ts.map +1 -1
- package/skill/SkillDetailView.js +107 -39
- package/skill/SkillDetailView.js.map +1 -1
- package/skill/SkillDiffDialog.d.ts +42 -0
- package/skill/SkillDiffDialog.d.ts.map +1 -0
- package/skill/SkillDiffDialog.js +72 -0
- package/skill/SkillDiffDialog.js.map +1 -0
- package/skill/SkillFileBrowser.d.ts +31 -0
- package/skill/SkillFileBrowser.d.ts.map +1 -0
- package/skill/SkillFileBrowser.js +105 -0
- package/skill/SkillFileBrowser.js.map +1 -0
- package/skill/SkillUploader.d.ts +39 -0
- package/skill/SkillUploader.d.ts.map +1 -0
- package/skill/SkillUploader.js +141 -0
- package/skill/SkillUploader.js.map +1 -0
- package/skill/index.d.ts +18 -0
- package/skill/index.d.ts.map +1 -1
- package/skill/index.js +9 -0
- package/skill/index.js.map +1 -1
- package/skill/internal/computeArtifactHash.d.ts +9 -0
- package/skill/internal/computeArtifactHash.d.ts.map +1 -0
- package/skill/internal/computeArtifactHash.js +14 -0
- package/skill/internal/computeArtifactHash.js.map +1 -0
- package/skill/internal/fetchAndUnpackArtifact.d.ts +16 -0
- package/skill/internal/fetchAndUnpackArtifact.d.ts.map +1 -0
- package/skill/internal/fetchAndUnpackArtifact.js +34 -0
- package/skill/internal/fetchAndUnpackArtifact.js.map +1 -0
- package/skill/usePushSkill.d.ts +53 -0
- package/skill/usePushSkill.d.ts.map +1 -0
- package/skill/usePushSkill.js +57 -0
- package/skill/usePushSkill.js.map +1 -0
- package/skill/useSkillArtifact.d.ts +37 -0
- package/skill/useSkillArtifact.d.ts.map +1 -0
- package/skill/useSkillArtifact.js +76 -0
- package/skill/useSkillArtifact.js.map +1 -0
- package/skill/useSkillDiff.d.ts +31 -0
- package/skill/useSkillDiff.d.ts.map +1 -0
- package/skill/useSkillDiff.js +97 -0
- package/skill/useSkillDiff.js.map +1 -0
- package/skill/useSkillDuplicateCheck.d.ts +34 -0
- package/skill/useSkillDuplicateCheck.d.ts.map +1 -0
- package/skill/useSkillDuplicateCheck.js +58 -0
- package/skill/useSkillDuplicateCheck.js.map +1 -0
- package/skill/useSkillUpload.d.ts +69 -0
- package/skill/useSkillUpload.d.ts.map +1 -0
- package/skill/useSkillUpload.js +157 -0
- package/skill/useSkillUpload.js.map +1 -0
- package/skill/useSkillVersions.d.ts +46 -0
- package/skill/useSkillVersions.d.ts.map +1 -0
- package/skill/useSkillVersions.js +104 -0
- package/skill/useSkillVersions.js.map +1 -0
- package/src/action-menu/ActionMenu.tsx +151 -0
- package/src/action-menu/index.ts +9 -0
- package/src/action-menu/types.ts +70 -0
- package/src/agent/AgentCreationWizard.tsx +201 -0
- package/src/agent/AgentDetailView.tsx +817 -321
- package/src/agent/index.ts +16 -0
- package/src/agent/internal/agentToInput.ts +95 -0
- package/src/agent/steps/CapabilitiesStep.tsx +363 -0
- package/src/agent/steps/IdentityStep.tsx +259 -0
- package/src/agent/steps/ReviewStep.tsx +211 -0
- package/src/agent/steps/types.ts +53 -0
- package/src/agent/useCreateAgent.ts +76 -0
- package/src/agent/useUpdateAgent.ts +55 -0
- package/src/dependency-graph/DependencyGraph.tsx +153 -0
- package/src/dependency-graph/DependencyTreeNode.tsx +282 -0
- package/src/dependency-graph/index.ts +15 -0
- package/src/dependency-graph/types.ts +131 -0
- package/src/dependency-graph/useDependencyGraph.ts +158 -0
- package/src/empty-state/EmptyState.tsx +90 -0
- package/src/empty-state/index.ts +9 -0
- package/src/empty-state/types.ts +81 -0
- package/src/empty-state/useEmptyState.ts +85 -0
- package/src/feedback/StigmerToaster.tsx +45 -0
- package/src/feedback/index.ts +3 -0
- package/src/feedback/toast.ts +13 -0
- package/src/feedback/types.ts +7 -0
- package/src/index.ts +270 -8
- package/src/inline-edit/InlineEditImage.tsx +208 -0
- package/src/inline-edit/InlineEditKeyValue.tsx +278 -0
- package/src/inline-edit/InlineEditResourceList.tsx +325 -0
- package/src/inline-edit/InlineEditSelect.tsx +150 -0
- package/src/inline-edit/InlineEditText.tsx +211 -0
- package/src/inline-edit/InlineEditTextarea.tsx +209 -0
- package/src/inline-edit/index.ts +28 -0
- package/src/inline-edit/types.ts +47 -0
- package/src/inline-edit/useInlineFieldSave.ts +62 -0
- package/src/internal/Tabs.tsx +4 -164
- package/src/library/ImportResourceDialog.tsx +227 -0
- package/src/library/index.ts +18 -8
- package/src/library/serialize-resource-yaml.ts +356 -0
- package/src/library/useExportResource.ts +183 -0
- package/src/library/useImportResource.ts +253 -0
- package/src/mcp-server/McpServerCreationWizard.tsx +206 -0
- package/src/mcp-server/McpServerDetailView.tsx +392 -105
- package/src/mcp-server/index.ts +16 -0
- package/src/mcp-server/internal/mcpServerToInput.ts +95 -0
- package/src/mcp-server/steps/EnvironmentAuthStep.tsx +462 -0
- package/src/mcp-server/steps/IdentityTransportStep.tsx +531 -0
- package/src/mcp-server/steps/ReviewStep.tsx +297 -0
- package/src/mcp-server/steps/types.ts +85 -0
- package/src/mcp-server/useCreateMcpServer.ts +76 -0
- package/src/mcp-server/useUpdateMcpServer.ts +55 -0
- package/src/resource-creation/CreationPicker.tsx +292 -0
- package/src/resource-creation/StepIndicator.tsx +156 -0
- package/src/resource-creation/TemplateCard.tsx +143 -0
- package/src/resource-creation/TemplateGallery.tsx +222 -0
- package/src/resource-creation/WizardNav.tsx +163 -0
- package/src/resource-creation/WizardShell.tsx +124 -0
- package/src/resource-creation/index.ts +45 -0
- package/src/resource-creation/templates/agent-templates.ts +160 -0
- package/src/resource-creation/templates/index.ts +7 -0
- package/src/resource-creation/templates/mcp-server-templates.ts +106 -0
- package/src/resource-creation/templates/types.ts +64 -0
- package/src/resource-creation/types.ts +105 -0
- package/src/resource-creation/useTemplateFilter.ts +117 -0
- package/src/resource-creation/useWizardState.ts +223 -0
- package/src/resource-detail/ConfirmDialog.tsx +127 -0
- package/src/resource-detail/ResourceActionBar.tsx +157 -0
- package/src/resource-detail/ResourceDetailShell.tsx +184 -0
- package/src/resource-detail/Section.tsx +78 -0
- package/src/resource-detail/index.ts +34 -0
- package/src/resource-detail/types.ts +177 -0
- package/src/resource-detail/useConfirmAction.ts +70 -0
- package/src/resource-detail/useCopyResource.ts +74 -0
- package/src/resource-detail/useDeleteResource.ts +110 -0
- package/src/resource-detail/useDetailTabs.ts +93 -0
- package/src/resource-workbench/components/BulkActionBar.tsx +122 -0
- package/src/resource-workbench/components/ColumnHeader.tsx +105 -0
- package/src/resource-workbench/components/FilterBar.tsx +173 -0
- package/src/resource-workbench/components/ResourceAvatar.tsx +109 -0
- package/src/resource-workbench/components/ResourceCards.tsx +126 -0
- package/src/resource-workbench/components/ResourceInspector.tsx +88 -0
- package/src/resource-workbench/components/ResourceList.tsx +121 -0
- package/src/resource-workbench/components/ResourceTable.tsx +222 -0
- package/src/resource-workbench/components/ResourceWorkbench.tsx +695 -0
- package/src/resource-workbench/components/SelectionCheckbox.tsx +52 -0
- package/src/resource-workbench/components/StatusBadge.tsx +119 -0
- package/src/resource-workbench/components/ViewSwitcher.tsx +135 -0
- package/src/resource-workbench/hooks/useResourceCollection.ts +261 -0
- package/src/resource-workbench/hooks/useResourceFilters.ts +216 -0
- package/src/resource-workbench/hooks/useResourceSelection.ts +178 -0
- package/src/resource-workbench/hooks/useViewPreference.ts +75 -0
- package/src/resource-workbench/index.ts +73 -0
- package/src/resource-workbench/types.ts +220 -0
- package/src/runner/RunnerDetailView.tsx +410 -0
- package/src/runner/RunnerListPanel.tsx +126 -111
- package/src/runner/index.ts +13 -1
- package/src/runner/shared.tsx +124 -0
- package/src/runner/useRunner.ts +59 -0
- package/src/session/__tests__/group-sessions.test.ts +5 -3
- package/src/skill/SkillDetailView.tsx +371 -165
- package/src/skill/SkillDiffDialog.tsx +213 -0
- package/src/skill/SkillFileBrowser.tsx +289 -0
- package/src/skill/SkillUploader.tsx +481 -0
- package/src/skill/index.ts +34 -0
- package/src/skill/internal/computeArtifactHash.ts +13 -0
- package/src/skill/internal/fetchAndUnpackArtifact.ts +48 -0
- package/src/skill/usePushSkill.ts +101 -0
- package/src/skill/useSkillArtifact.ts +107 -0
- package/src/skill/useSkillDiff.ts +128 -0
- package/src/skill/useSkillDuplicateCheck.ts +92 -0
- package/src/skill/useSkillUpload.ts +231 -0
- package/src/skill/useSkillVersions.ts +165 -0
- package/src/styles.css +28 -0
- package/src/tabs/Tabs.tsx +184 -0
- package/src/tabs/index.ts +2 -0
- package/src/version-history/DiffFileList.tsx +111 -0
- package/src/version-history/DiffSummary.tsx +61 -0
- package/src/version-history/DiffViewer.tsx +163 -0
- package/src/version-history/MultiFileDiffView.tsx +114 -0
- package/src/version-history/VersionTimeline.tsx +232 -0
- package/src/version-history/VersionTimelineEntry.tsx +254 -0
- package/src/version-history/computeDiff.ts +61 -0
- package/src/version-history/computeMultiFileDiff.ts +97 -0
- package/src/version-history/index.ts +22 -0
- package/src/version-history/types.ts +129 -0
- package/styles.css +1 -1
- package/tabs/Tabs.d.ts +58 -0
- package/tabs/Tabs.d.ts.map +1 -0
- package/tabs/Tabs.js +80 -0
- package/tabs/Tabs.js.map +1 -0
- package/tabs/index.d.ts +3 -0
- package/tabs/index.d.ts.map +1 -0
- package/tabs/index.js +2 -0
- package/tabs/index.js.map +1 -0
- package/version-history/DiffFileList.d.ts +22 -0
- package/version-history/DiffFileList.d.ts.map +1 -0
- package/version-history/DiffFileList.js +37 -0
- package/version-history/DiffFileList.js.map +1 -0
- package/version-history/DiffSummary.d.ts +21 -0
- package/version-history/DiffSummary.d.ts.map +1 -0
- package/version-history/DiffSummary.js +16 -0
- package/version-history/DiffSummary.js.map +1 -0
- package/version-history/DiffViewer.d.ts +31 -0
- package/version-history/DiffViewer.d.ts.map +1 -0
- package/version-history/DiffViewer.js +60 -0
- package/version-history/DiffViewer.js.map +1 -0
- package/version-history/MultiFileDiffView.d.ts +30 -0
- package/version-history/MultiFileDiffView.d.ts.map +1 -0
- package/version-history/MultiFileDiffView.js +40 -0
- package/version-history/MultiFileDiffView.js.map +1 -0
- package/version-history/VersionTimeline.d.ts +29 -0
- package/version-history/VersionTimeline.d.ts.map +1 -0
- package/version-history/VersionTimeline.js +87 -0
- package/version-history/VersionTimeline.js.map +1 -0
- package/version-history/VersionTimelineEntry.d.ts +22 -0
- package/version-history/VersionTimelineEntry.d.ts.map +1 -0
- package/version-history/VersionTimelineEntry.js +98 -0
- package/version-history/VersionTimelineEntry.js.map +1 -0
- package/version-history/computeDiff.d.ts +16 -0
- package/version-history/computeDiff.d.ts.map +1 -0
- package/version-history/computeDiff.js +54 -0
- package/version-history/computeDiff.js.map +1 -0
- package/version-history/computeMultiFileDiff.d.ts +15 -0
- package/version-history/computeMultiFileDiff.d.ts.map +1 -0
- package/version-history/computeMultiFileDiff.js +83 -0
- package/version-history/computeMultiFileDiff.js.map +1 -0
- package/version-history/index.d.ts +14 -0
- package/version-history/index.d.ts.map +1 -0
- package/version-history/index.js +9 -0
- package/version-history/index.js.map +1 -0
- package/version-history/types.d.ts +106 -0
- package/version-history/types.d.ts.map +1 -0
- package/version-history/types.js +2 -0
- package/version-history/types.js.map +1 -0
- package/library/ResourceListView.d.ts +0 -174
- package/library/ResourceListView.d.ts.map +0 -1
- package/library/ResourceListView.js +0 -318
- package/library/ResourceListView.js.map +0 -1
- package/src/library/ResourceListView.tsx +0 -956
|
@@ -0,0 +1,695 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useCallback, useRef, useState, type ReactNode } from "react";
|
|
4
|
+
import type { SearchResult } from "@stigmer/protos/ai/stigmer/search/v1/io_pb";
|
|
5
|
+
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
6
|
+
import type { ListParams, ListResult } from "@stigmer/sdk";
|
|
7
|
+
import { cn } from "@stigmer/theme";
|
|
8
|
+
import type {
|
|
9
|
+
WorkbenchColumnDef,
|
|
10
|
+
FilterDef,
|
|
11
|
+
FilterValue,
|
|
12
|
+
SortValue,
|
|
13
|
+
BulkAction,
|
|
14
|
+
ViewMode,
|
|
15
|
+
} from "../types";
|
|
16
|
+
import { useResourceCollection } from "../hooks/useResourceCollection";
|
|
17
|
+
import { useResourceFilters } from "../hooks/useResourceFilters";
|
|
18
|
+
import { useResourceSelection } from "../hooks/useResourceSelection";
|
|
19
|
+
import { useViewPreference } from "../hooks/useViewPreference";
|
|
20
|
+
import { ResourceTable } from "./ResourceTable";
|
|
21
|
+
import { ResourceCards } from "./ResourceCards";
|
|
22
|
+
import { ResourceList } from "./ResourceList";
|
|
23
|
+
import { FilterBar } from "./FilterBar";
|
|
24
|
+
import { ViewSwitcher } from "./ViewSwitcher";
|
|
25
|
+
import { BulkActionBar } from "./BulkActionBar";
|
|
26
|
+
import { ResourceInspector } from "./ResourceInspector";
|
|
27
|
+
import { EmptyState } from "../../empty-state";
|
|
28
|
+
import { ResourceAvatar } from "./ResourceAvatar";
|
|
29
|
+
|
|
30
|
+
// ---------------------------------------------------------------------------
|
|
31
|
+
// Props
|
|
32
|
+
// ---------------------------------------------------------------------------
|
|
33
|
+
|
|
34
|
+
/** Props for {@link ResourceWorkbench}. */
|
|
35
|
+
export interface ResourceWorkbenchProps<TData = SearchResult> {
|
|
36
|
+
/**
|
|
37
|
+
* Async function that fetches a page of resources. Receives `ListParams`
|
|
38
|
+
* and returns `ListResult`. Pass `null` to disable fetching.
|
|
39
|
+
*/
|
|
40
|
+
readonly listFn: ((params: ListParams) => Promise<ListResult>) | null;
|
|
41
|
+
/** Organization slug. Pass `null` to disable fetching. */
|
|
42
|
+
readonly org: string | null;
|
|
43
|
+
|
|
44
|
+
// --- View configuration ------------------------------------------------
|
|
45
|
+
|
|
46
|
+
/** Column definitions for the table view. */
|
|
47
|
+
readonly columns?: readonly WorkbenchColumnDef<TData>[];
|
|
48
|
+
/** Available filter definitions. */
|
|
49
|
+
readonly filterDefs?: readonly FilterDef[];
|
|
50
|
+
/** Available view modes. @default ["table", "cards", "list"] */
|
|
51
|
+
readonly viewModes?: readonly ViewMode[];
|
|
52
|
+
/** Default view mode. @default "table" */
|
|
53
|
+
readonly defaultViewMode?: ViewMode;
|
|
54
|
+
/**
|
|
55
|
+
* localStorage key for persisting view mode preference.
|
|
56
|
+
* Pass `undefined` to disable persistence.
|
|
57
|
+
*/
|
|
58
|
+
readonly viewModeStorageKey?: string;
|
|
59
|
+
|
|
60
|
+
// --- Rendering slots ---------------------------------------------------
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Custom card renderer for card view. Receives the item and its index.
|
|
64
|
+
* When omitted, the workbench falls back to a default card layout.
|
|
65
|
+
*/
|
|
66
|
+
readonly renderCard?: (item: TData, index: number) => ReactNode;
|
|
67
|
+
/**
|
|
68
|
+
* Custom row renderer for list view. Receives the item and its index.
|
|
69
|
+
* When omitted, falls back to a default row layout.
|
|
70
|
+
*/
|
|
71
|
+
readonly renderRow?: (item: TData, index: number) => ReactNode;
|
|
72
|
+
/** Per-item action renderer (shown in table rows, card corners, list ends). */
|
|
73
|
+
readonly renderItemAction?: (item: TData) => ReactNode;
|
|
74
|
+
/**
|
|
75
|
+
* Inspector content renderer. When provided, clicking an item opens
|
|
76
|
+
* the split-panel inspector with this content. When omitted, the
|
|
77
|
+
* inspector is disabled.
|
|
78
|
+
*/
|
|
79
|
+
readonly renderInspector?: (item: TData) => ReactNode;
|
|
80
|
+
|
|
81
|
+
// --- Actions -----------------------------------------------------------
|
|
82
|
+
|
|
83
|
+
/** Bulk actions available when items are selected. */
|
|
84
|
+
readonly bulkActions?: readonly BulkAction<TData>[];
|
|
85
|
+
/** Called when an item is clicked (navigates to detail, etc.). */
|
|
86
|
+
readonly onItemClick?: (item: TData) => void;
|
|
87
|
+
|
|
88
|
+
// --- State & persistence -----------------------------------------------
|
|
89
|
+
|
|
90
|
+
/** Initial filter values (e.g. restored from URL on mount). */
|
|
91
|
+
readonly initialFilters?: readonly FilterValue[];
|
|
92
|
+
/** Initial sort (e.g. restored from URL on mount). */
|
|
93
|
+
readonly initialSort?: SortValue | null;
|
|
94
|
+
/** Initial search query (e.g. restored from URL on mount). */
|
|
95
|
+
readonly initialQuery?: string;
|
|
96
|
+
/** Scope for resource visibility. @default "org" */
|
|
97
|
+
readonly scope?: "org" | "all";
|
|
98
|
+
/** Called when scope changes (for Console to persist). */
|
|
99
|
+
readonly onScopeChange?: (scope: "org" | "all") => void;
|
|
100
|
+
/** Called when any filter/sort/query state changes (for URL sync). */
|
|
101
|
+
readonly onStateChange?: (state: {
|
|
102
|
+
filters: readonly FilterValue[];
|
|
103
|
+
sort: SortValue | null;
|
|
104
|
+
query: string;
|
|
105
|
+
}) => void;
|
|
106
|
+
|
|
107
|
+
// --- Selection ---------------------------------------------------------
|
|
108
|
+
|
|
109
|
+
/** Enable selection checkboxes and bulk actions. @default false */
|
|
110
|
+
readonly enableSelection?: boolean;
|
|
111
|
+
/** Extracts a unique ID from an item (for selection tracking). */
|
|
112
|
+
readonly getItemId?: (item: TData) => string;
|
|
113
|
+
|
|
114
|
+
// --- Empty & error states ----------------------------------------------
|
|
115
|
+
|
|
116
|
+
/** Icon for the empty state. */
|
|
117
|
+
readonly emptyIcon?: ReactNode;
|
|
118
|
+
/** Title for the empty state. */
|
|
119
|
+
readonly emptyTitle?: string;
|
|
120
|
+
/** Description for the empty state. */
|
|
121
|
+
readonly emptyDescription?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Custom CTA rendered in the first-use empty state (no items, no
|
|
124
|
+
* active filters). Use this to provide a creation entry point that
|
|
125
|
+
* is visually co-located with the "no resources yet" message.
|
|
126
|
+
*
|
|
127
|
+
* Accepts any ReactNode — typically a `<Link>` or `<button>`.
|
|
128
|
+
*/
|
|
129
|
+
readonly emptyAction?: ReactNode;
|
|
130
|
+
/** Called when the user clicks "Retry" after an error. */
|
|
131
|
+
readonly onRetry?: () => void;
|
|
132
|
+
|
|
133
|
+
// --- Header action -----------------------------------------------------
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Primary action rendered right-aligned in the toolbar, after the
|
|
137
|
+
* view mode switcher. Use this for the workbench's main creation
|
|
138
|
+
* entry point — e.g. a "Create agent" button or link.
|
|
139
|
+
*
|
|
140
|
+
* Accepts any ReactNode so consumers control routing and styling.
|
|
141
|
+
*/
|
|
142
|
+
readonly headerAction?: ReactNode;
|
|
143
|
+
|
|
144
|
+
// --- Layout ------------------------------------------------------------
|
|
145
|
+
|
|
146
|
+
/** Search input placeholder text. @default "Search\u2026" */
|
|
147
|
+
readonly searchPlaceholder?: string;
|
|
148
|
+
/** Accessible label for the workbench region. @default "Resource workbench" */
|
|
149
|
+
readonly "aria-label"?: string;
|
|
150
|
+
/** Additional CSS classes for the root container. */
|
|
151
|
+
readonly className?: string;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// ---------------------------------------------------------------------------
|
|
155
|
+
// Component
|
|
156
|
+
// ---------------------------------------------------------------------------
|
|
157
|
+
|
|
158
|
+
const DEBOUNCE_MS = 300;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Full-featured resource collection workbench that composes headless
|
|
162
|
+
* hooks and focused view components into a complete browsing experience.
|
|
163
|
+
*
|
|
164
|
+
* Provides:
|
|
165
|
+
* - Toolbar with search input, filter chips, and view mode switcher
|
|
166
|
+
* - Three view modes: table, cards, and compact list
|
|
167
|
+
* - Row/card selection with bulk action bar
|
|
168
|
+
* - Optional split-panel inspector for item previews
|
|
169
|
+
* - Empty, loading, and error states
|
|
170
|
+
* - Pagination
|
|
171
|
+
*
|
|
172
|
+
* The workbench is the "drop-in" tier of the resource collection
|
|
173
|
+
* architecture. Platform builders who want more control use the
|
|
174
|
+
* individual hooks and view components directly.
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* ```tsx
|
|
178
|
+
* <ResourceWorkbench
|
|
179
|
+
* listFn={(params) => stigmer.agent.list(params)}
|
|
180
|
+
* org={activeOrg}
|
|
181
|
+
* columns={agentColumns}
|
|
182
|
+
* filterDefs={agentFilterDefs}
|
|
183
|
+
* renderItemAction={(item) => <AgentActionMenu item={item} />}
|
|
184
|
+
* onItemClick={(item) => navigate(`/agents/${item.slug}`)}
|
|
185
|
+
* emptyTitle="No agents yet"
|
|
186
|
+
* emptyDescription="Create an agent to get started."
|
|
187
|
+
* />
|
|
188
|
+
* ```
|
|
189
|
+
*/
|
|
190
|
+
export function ResourceWorkbench<TData = SearchResult>({
|
|
191
|
+
listFn,
|
|
192
|
+
org,
|
|
193
|
+
columns = [],
|
|
194
|
+
filterDefs = [],
|
|
195
|
+
viewModes = ["table", "cards", "list"],
|
|
196
|
+
defaultViewMode = "table",
|
|
197
|
+
viewModeStorageKey,
|
|
198
|
+
renderCard,
|
|
199
|
+
renderRow,
|
|
200
|
+
renderItemAction,
|
|
201
|
+
renderInspector,
|
|
202
|
+
bulkActions = [],
|
|
203
|
+
onItemClick,
|
|
204
|
+
initialFilters,
|
|
205
|
+
initialSort,
|
|
206
|
+
initialQuery,
|
|
207
|
+
scope: controlledScope = "org",
|
|
208
|
+
onScopeChange,
|
|
209
|
+
onStateChange,
|
|
210
|
+
enableSelection = false,
|
|
211
|
+
getItemId = defaultGetId as (item: TData) => string,
|
|
212
|
+
emptyIcon,
|
|
213
|
+
emptyTitle = "No resources found",
|
|
214
|
+
emptyDescription = "Try adjusting your search or filters.",
|
|
215
|
+
emptyAction,
|
|
216
|
+
onRetry,
|
|
217
|
+
headerAction,
|
|
218
|
+
searchPlaceholder = "Search\u2026",
|
|
219
|
+
"aria-label": ariaLabel = "Resource workbench",
|
|
220
|
+
className,
|
|
221
|
+
}: ResourceWorkbenchProps<TData>) {
|
|
222
|
+
// --- View preference ---------------------------------------------------
|
|
223
|
+
const { viewMode, setViewMode } = useViewPreference(
|
|
224
|
+
viewModeStorageKey,
|
|
225
|
+
defaultViewMode,
|
|
226
|
+
);
|
|
227
|
+
|
|
228
|
+
// --- Filter/sort/query state -------------------------------------------
|
|
229
|
+
const filtersHook = useResourceFilters({
|
|
230
|
+
filterDefs,
|
|
231
|
+
initialFilters,
|
|
232
|
+
initialSort,
|
|
233
|
+
initialQuery,
|
|
234
|
+
onStateChange,
|
|
235
|
+
queryDebounceMs: DEBOUNCE_MS,
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
// --- Pagination --------------------------------------------------------
|
|
239
|
+
const [page, setPage] = useState(1);
|
|
240
|
+
const prevQueryRef = useRef(filtersHook.debouncedQuery);
|
|
241
|
+
if (prevQueryRef.current !== filtersHook.debouncedQuery) {
|
|
242
|
+
prevQueryRef.current = filtersHook.debouncedQuery;
|
|
243
|
+
setPage(1);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
// --- Collection data ---------------------------------------------------
|
|
247
|
+
const collection = useResourceCollection<TData>({
|
|
248
|
+
listFn: listFn as ((params: ListParams) => Promise<ListResult>) | null,
|
|
249
|
+
org,
|
|
250
|
+
query: filtersHook.debouncedQuery,
|
|
251
|
+
scope: controlledScope,
|
|
252
|
+
page,
|
|
253
|
+
sort: filtersHook.sort,
|
|
254
|
+
onSortChange: filtersHook.setSort,
|
|
255
|
+
columns: columns as WorkbenchColumnDef<TData>[],
|
|
256
|
+
enableSelection,
|
|
257
|
+
});
|
|
258
|
+
|
|
259
|
+
// --- Selection ---------------------------------------------------------
|
|
260
|
+
const selection = useResourceSelection(collection.items, getItemId);
|
|
261
|
+
|
|
262
|
+
// --- Inspector ---------------------------------------------------------
|
|
263
|
+
const [inspectedItem, setInspectedItem] = useState<TData | null>(null);
|
|
264
|
+
const inspectorEnabled = !!renderInspector;
|
|
265
|
+
|
|
266
|
+
const handleItemClick = useCallback(
|
|
267
|
+
(item: TData) => {
|
|
268
|
+
if (inspectorEnabled) {
|
|
269
|
+
setInspectedItem(item);
|
|
270
|
+
}
|
|
271
|
+
onItemClick?.(item);
|
|
272
|
+
},
|
|
273
|
+
[inspectorEnabled, onItemClick],
|
|
274
|
+
);
|
|
275
|
+
|
|
276
|
+
// --- Content resolution ------------------------------------------------
|
|
277
|
+
const showSkeletons = collection.isLoading && collection.items.length === 0;
|
|
278
|
+
const showError = !!collection.error && !collection.isLoading;
|
|
279
|
+
const showEmpty =
|
|
280
|
+
!collection.isLoading && !collection.error && collection.items.length === 0;
|
|
281
|
+
const showContent = collection.items.length > 0;
|
|
282
|
+
const showPagination = collection.totalPages > 1;
|
|
283
|
+
|
|
284
|
+
// --- Selected IDs as Set for cards/list views --------------------------
|
|
285
|
+
const selectedIdSet = selection.selectedIds;
|
|
286
|
+
|
|
287
|
+
return (
|
|
288
|
+
<div
|
|
289
|
+
aria-label={ariaLabel}
|
|
290
|
+
className={cn("flex flex-col gap-3", className)}
|
|
291
|
+
>
|
|
292
|
+
{/* --- Toolbar: search + filters + view switcher --- */}
|
|
293
|
+
<div className="flex flex-wrap items-center gap-2">
|
|
294
|
+
<div className="relative flex-1">
|
|
295
|
+
<SearchIcon className="pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground-subtle" />
|
|
296
|
+
<input
|
|
297
|
+
type="text"
|
|
298
|
+
value={filtersHook.query}
|
|
299
|
+
onChange={(e) => filtersHook.setQuery(e.target.value)}
|
|
300
|
+
placeholder={searchPlaceholder}
|
|
301
|
+
aria-label={searchPlaceholder}
|
|
302
|
+
className={cn(
|
|
303
|
+
"w-full rounded-md border border-input bg-background py-1.5 pl-8 pr-3 text-sm",
|
|
304
|
+
"placeholder:text-muted-foreground-subtle",
|
|
305
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
306
|
+
)}
|
|
307
|
+
/>
|
|
308
|
+
</div>
|
|
309
|
+
{viewModes.length > 1 && (
|
|
310
|
+
<ViewSwitcher
|
|
311
|
+
value={viewMode}
|
|
312
|
+
onChange={setViewMode}
|
|
313
|
+
modes={viewModes}
|
|
314
|
+
/>
|
|
315
|
+
)}
|
|
316
|
+
{headerAction}
|
|
317
|
+
</div>
|
|
318
|
+
|
|
319
|
+
{/* --- Active filter chips --- */}
|
|
320
|
+
<FilterBar
|
|
321
|
+
filters={filtersHook.filters}
|
|
322
|
+
filterDefs={filterDefs}
|
|
323
|
+
onRemoveFilter={filtersHook.removeFilter}
|
|
324
|
+
onClearAll={filtersHook.clearFilters}
|
|
325
|
+
/>
|
|
326
|
+
|
|
327
|
+
{/* --- Main content area with optional inspector --- */}
|
|
328
|
+
<div className="flex min-h-0 flex-1">
|
|
329
|
+
<div
|
|
330
|
+
className={cn(
|
|
331
|
+
"min-w-0 flex-1",
|
|
332
|
+
collection.isRefetching &&
|
|
333
|
+
"pointer-events-none opacity-60 transition-opacity",
|
|
334
|
+
)}
|
|
335
|
+
>
|
|
336
|
+
{showSkeletons && <SkeletonPlaceholder viewMode={viewMode} />}
|
|
337
|
+
|
|
338
|
+
{showError && (
|
|
339
|
+
<EmptyState
|
|
340
|
+
variant="error"
|
|
341
|
+
errorMessage={collection.error!.message}
|
|
342
|
+
action={
|
|
343
|
+
onRetry
|
|
344
|
+
? { label: "Retry", onClick: onRetry ?? collection.refetch }
|
|
345
|
+
: undefined
|
|
346
|
+
}
|
|
347
|
+
/>
|
|
348
|
+
)}
|
|
349
|
+
|
|
350
|
+
{showEmpty && (
|
|
351
|
+
<EmptyState
|
|
352
|
+
variant={
|
|
353
|
+
filtersHook.hasActiveFilters || filtersHook.debouncedQuery
|
|
354
|
+
? "zero-results"
|
|
355
|
+
: "first-use"
|
|
356
|
+
}
|
|
357
|
+
icon={emptyIcon}
|
|
358
|
+
title={
|
|
359
|
+
filtersHook.hasActiveFilters || filtersHook.debouncedQuery
|
|
360
|
+
? "No results match your filters"
|
|
361
|
+
: emptyTitle
|
|
362
|
+
}
|
|
363
|
+
description={
|
|
364
|
+
filtersHook.hasActiveFilters || filtersHook.debouncedQuery
|
|
365
|
+
? "Try adjusting your search or removing some filters."
|
|
366
|
+
: emptyDescription
|
|
367
|
+
}
|
|
368
|
+
action={
|
|
369
|
+
filtersHook.hasActiveFilters
|
|
370
|
+
? {
|
|
371
|
+
label: "Clear filters",
|
|
372
|
+
onClick: filtersHook.clearFilters,
|
|
373
|
+
}
|
|
374
|
+
: undefined
|
|
375
|
+
}
|
|
376
|
+
>
|
|
377
|
+
{!filtersHook.hasActiveFilters && !filtersHook.debouncedQuery
|
|
378
|
+
? emptyAction
|
|
379
|
+
: undefined}
|
|
380
|
+
</EmptyState>
|
|
381
|
+
)}
|
|
382
|
+
|
|
383
|
+
{showContent && viewMode === "table" && collection.table && (
|
|
384
|
+
<ResourceTable
|
|
385
|
+
table={collection.table}
|
|
386
|
+
enableSelection={enableSelection}
|
|
387
|
+
renderRowAction={renderItemAction}
|
|
388
|
+
onRowClick={handleItemClick}
|
|
389
|
+
/>
|
|
390
|
+
)}
|
|
391
|
+
|
|
392
|
+
{showContent && viewMode === "cards" && (
|
|
393
|
+
<ResourceCards
|
|
394
|
+
items={collection.items}
|
|
395
|
+
renderCard={
|
|
396
|
+
renderCard ??
|
|
397
|
+
((item) => <DefaultCardContent item={item as unknown as SearchResult} />)
|
|
398
|
+
}
|
|
399
|
+
enableSelection={enableSelection}
|
|
400
|
+
selectedIds={selectedIdSet}
|
|
401
|
+
onToggleSelection={selection.toggleItem}
|
|
402
|
+
getItemId={getItemId}
|
|
403
|
+
renderCardAction={renderItemAction}
|
|
404
|
+
onCardClick={handleItemClick}
|
|
405
|
+
/>
|
|
406
|
+
)}
|
|
407
|
+
|
|
408
|
+
{showContent && viewMode === "list" && (
|
|
409
|
+
<ResourceList
|
|
410
|
+
items={collection.items}
|
|
411
|
+
renderRow={
|
|
412
|
+
renderRow ??
|
|
413
|
+
((item) => <DefaultRowContent item={item as unknown as SearchResult} />)
|
|
414
|
+
}
|
|
415
|
+
enableSelection={enableSelection}
|
|
416
|
+
selectedIds={selectedIdSet}
|
|
417
|
+
onToggleSelection={selection.toggleItem}
|
|
418
|
+
getItemId={getItemId}
|
|
419
|
+
renderRowAction={renderItemAction}
|
|
420
|
+
onRowClick={handleItemClick}
|
|
421
|
+
/>
|
|
422
|
+
)}
|
|
423
|
+
|
|
424
|
+
{showPagination && (
|
|
425
|
+
<PaginationBar
|
|
426
|
+
currentPage={collection.currentPage}
|
|
427
|
+
totalPages={collection.totalPages}
|
|
428
|
+
totalCount={collection.totalCount}
|
|
429
|
+
onPageChange={setPage}
|
|
430
|
+
/>
|
|
431
|
+
)}
|
|
432
|
+
</div>
|
|
433
|
+
|
|
434
|
+
{/* --- Inspector panel --- */}
|
|
435
|
+
{inspectorEnabled && (
|
|
436
|
+
<ResourceInspector
|
|
437
|
+
open={inspectedItem !== null}
|
|
438
|
+
onClose={() => setInspectedItem(null)}
|
|
439
|
+
>
|
|
440
|
+
{inspectedItem && renderInspector!(inspectedItem)}
|
|
441
|
+
</ResourceInspector>
|
|
442
|
+
)}
|
|
443
|
+
</div>
|
|
444
|
+
|
|
445
|
+
{/* --- Bulk action bar --- */}
|
|
446
|
+
{enableSelection && selection.hasSelection && (
|
|
447
|
+
<BulkActionBar
|
|
448
|
+
selectedCount={selection.selectedCount}
|
|
449
|
+
selectedItems={selection.selectedItems}
|
|
450
|
+
actions={bulkActions}
|
|
451
|
+
onCancel={selection.clearSelection}
|
|
452
|
+
/>
|
|
453
|
+
)}
|
|
454
|
+
</div>
|
|
455
|
+
);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
// ---------------------------------------------------------------------------
|
|
459
|
+
// Internal helpers
|
|
460
|
+
// ---------------------------------------------------------------------------
|
|
461
|
+
|
|
462
|
+
function defaultGetId(item: unknown): string {
|
|
463
|
+
const r = item as Record<string, unknown>;
|
|
464
|
+
if (typeof r.id === "string") return r.id;
|
|
465
|
+
if (typeof r.slug === "string") return r.slug;
|
|
466
|
+
return "";
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
function DefaultCardContent({ item }: { readonly item: SearchResult }) {
|
|
470
|
+
const isSkill = item.kind === ApiResourceKind.skill;
|
|
471
|
+
return (
|
|
472
|
+
<div className="flex items-start gap-3">
|
|
473
|
+
<ResourceAvatar
|
|
474
|
+
name={item.name || item.slug}
|
|
475
|
+
slug={item.slug}
|
|
476
|
+
iconUrl={item.iconUrl || undefined}
|
|
477
|
+
hidden={isSkill}
|
|
478
|
+
/>
|
|
479
|
+
<div className="min-w-0 flex-1">
|
|
480
|
+
<span className="text-sm font-medium text-foreground">
|
|
481
|
+
{item.name || item.slug}
|
|
482
|
+
</span>
|
|
483
|
+
{item.org && (
|
|
484
|
+
<p className="text-xs text-muted-foreground">{item.org}</p>
|
|
485
|
+
)}
|
|
486
|
+
{item.description && (
|
|
487
|
+
<p className="mt-0.5 line-clamp-2 text-xs text-muted-foreground">
|
|
488
|
+
{item.description}
|
|
489
|
+
</p>
|
|
490
|
+
)}
|
|
491
|
+
</div>
|
|
492
|
+
</div>
|
|
493
|
+
);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
function DefaultRowContent({ item }: { readonly item: SearchResult }) {
|
|
497
|
+
const isSkill = item.kind === ApiResourceKind.skill;
|
|
498
|
+
return (
|
|
499
|
+
<div className="flex items-center gap-2">
|
|
500
|
+
<ResourceAvatar
|
|
501
|
+
name={item.name || item.slug}
|
|
502
|
+
slug={item.slug}
|
|
503
|
+
iconUrl={item.iconUrl || undefined}
|
|
504
|
+
hidden={isSkill}
|
|
505
|
+
size="sm"
|
|
506
|
+
/>
|
|
507
|
+
<span className="text-sm font-medium text-foreground">
|
|
508
|
+
{item.name || item.slug}
|
|
509
|
+
</span>
|
|
510
|
+
{item.org && (
|
|
511
|
+
<span className="text-xs text-muted-foreground">{item.org}</span>
|
|
512
|
+
)}
|
|
513
|
+
{item.description && (
|
|
514
|
+
<>
|
|
515
|
+
<span className="text-muted-foreground-subtle" aria-hidden="true">
|
|
516
|
+
{"\u00B7"}
|
|
517
|
+
</span>
|
|
518
|
+
<span className="truncate text-xs text-muted-foreground">
|
|
519
|
+
{item.description}
|
|
520
|
+
</span>
|
|
521
|
+
</>
|
|
522
|
+
)}
|
|
523
|
+
</div>
|
|
524
|
+
);
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
// ---------------------------------------------------------------------------
|
|
528
|
+
// Skeleton placeholder
|
|
529
|
+
// ---------------------------------------------------------------------------
|
|
530
|
+
|
|
531
|
+
function SkeletonPlaceholder({
|
|
532
|
+
viewMode,
|
|
533
|
+
}: {
|
|
534
|
+
readonly viewMode: ViewMode;
|
|
535
|
+
}) {
|
|
536
|
+
if (viewMode === "cards") {
|
|
537
|
+
return (
|
|
538
|
+
<div
|
|
539
|
+
className="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3"
|
|
540
|
+
aria-busy="true"
|
|
541
|
+
>
|
|
542
|
+
{Array.from({ length: 6 }, (_, i) => (
|
|
543
|
+
<div
|
|
544
|
+
key={i}
|
|
545
|
+
className="flex flex-col gap-3 rounded-lg border border-border bg-card p-4"
|
|
546
|
+
aria-hidden="true"
|
|
547
|
+
>
|
|
548
|
+
<div className="h-4 w-3/5 animate-pulse rounded bg-muted" />
|
|
549
|
+
<div className="h-3 w-2/5 animate-pulse rounded bg-muted" />
|
|
550
|
+
<div className="h-3 w-full animate-pulse rounded bg-muted" />
|
|
551
|
+
</div>
|
|
552
|
+
))}
|
|
553
|
+
</div>
|
|
554
|
+
);
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
return (
|
|
558
|
+
<div aria-busy="true">
|
|
559
|
+
{Array.from({ length: 5 }, (_, i) => (
|
|
560
|
+
<div
|
|
561
|
+
key={i}
|
|
562
|
+
className="flex items-center gap-3 px-3 py-2.5"
|
|
563
|
+
aria-hidden="true"
|
|
564
|
+
>
|
|
565
|
+
<div className="h-4 w-4 shrink-0 animate-pulse rounded bg-muted" />
|
|
566
|
+
<div className="flex-1 space-y-2">
|
|
567
|
+
<div
|
|
568
|
+
className="h-4 animate-pulse rounded bg-muted"
|
|
569
|
+
style={{ width: `${30 + (i * 7) % 25}%` }}
|
|
570
|
+
/>
|
|
571
|
+
<div
|
|
572
|
+
className="h-3 animate-pulse rounded bg-muted"
|
|
573
|
+
style={{ width: `${55 + (i * 5) % 20}%` }}
|
|
574
|
+
/>
|
|
575
|
+
</div>
|
|
576
|
+
</div>
|
|
577
|
+
))}
|
|
578
|
+
</div>
|
|
579
|
+
);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
// ---------------------------------------------------------------------------
|
|
583
|
+
// Pagination
|
|
584
|
+
// ---------------------------------------------------------------------------
|
|
585
|
+
|
|
586
|
+
function PaginationBar({
|
|
587
|
+
currentPage,
|
|
588
|
+
totalPages,
|
|
589
|
+
totalCount,
|
|
590
|
+
onPageChange,
|
|
591
|
+
}: {
|
|
592
|
+
readonly currentPage: number;
|
|
593
|
+
readonly totalPages: number;
|
|
594
|
+
readonly totalCount: number;
|
|
595
|
+
readonly onPageChange: (page: number) => void;
|
|
596
|
+
}) {
|
|
597
|
+
const navBtnClass = cn(
|
|
598
|
+
"inline-flex items-center rounded-md p-1.5",
|
|
599
|
+
"border border-input bg-background text-foreground",
|
|
600
|
+
"hover:bg-accent hover:text-accent-foreground",
|
|
601
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
602
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
603
|
+
);
|
|
604
|
+
|
|
605
|
+
return (
|
|
606
|
+
<nav
|
|
607
|
+
aria-label="Pagination"
|
|
608
|
+
className="flex items-center justify-between border-t border-border pt-3"
|
|
609
|
+
>
|
|
610
|
+
<span className="text-xs text-muted-foreground">
|
|
611
|
+
{totalCount.toLocaleString()}{" "}
|
|
612
|
+
{totalCount === 1 ? "result" : "results"}
|
|
613
|
+
</span>
|
|
614
|
+
<div className="flex items-center gap-2">
|
|
615
|
+
<button
|
|
616
|
+
type="button"
|
|
617
|
+
onClick={() => onPageChange(currentPage - 1)}
|
|
618
|
+
disabled={currentPage <= 1}
|
|
619
|
+
aria-label="Previous page"
|
|
620
|
+
className={navBtnClass}
|
|
621
|
+
>
|
|
622
|
+
<ChevronLeftIcon />
|
|
623
|
+
</button>
|
|
624
|
+
<span className="text-xs text-muted-foreground">
|
|
625
|
+
Page {currentPage} of {totalPages}
|
|
626
|
+
</span>
|
|
627
|
+
<button
|
|
628
|
+
type="button"
|
|
629
|
+
onClick={() => onPageChange(currentPage + 1)}
|
|
630
|
+
disabled={currentPage >= totalPages}
|
|
631
|
+
aria-label="Next page"
|
|
632
|
+
className={navBtnClass}
|
|
633
|
+
>
|
|
634
|
+
<ChevronRightIcon />
|
|
635
|
+
</button>
|
|
636
|
+
</div>
|
|
637
|
+
</nav>
|
|
638
|
+
);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
// ---------------------------------------------------------------------------
|
|
642
|
+
// Icons
|
|
643
|
+
// ---------------------------------------------------------------------------
|
|
644
|
+
|
|
645
|
+
function SearchIcon({ className }: { readonly className?: string }) {
|
|
646
|
+
return (
|
|
647
|
+
<svg
|
|
648
|
+
className={className}
|
|
649
|
+
viewBox="0 0 16 16"
|
|
650
|
+
fill="none"
|
|
651
|
+
stroke="currentColor"
|
|
652
|
+
strokeWidth="1.5"
|
|
653
|
+
strokeLinecap="round"
|
|
654
|
+
strokeLinejoin="round"
|
|
655
|
+
aria-hidden="true"
|
|
656
|
+
>
|
|
657
|
+
<circle cx="6.5" cy="6.5" r="4.5" />
|
|
658
|
+
<path d="m10 10 4 4" />
|
|
659
|
+
</svg>
|
|
660
|
+
);
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
function ChevronLeftIcon() {
|
|
664
|
+
return (
|
|
665
|
+
<svg
|
|
666
|
+
className="h-3.5 w-3.5"
|
|
667
|
+
viewBox="0 0 16 16"
|
|
668
|
+
fill="none"
|
|
669
|
+
stroke="currentColor"
|
|
670
|
+
strokeWidth="1.5"
|
|
671
|
+
strokeLinecap="round"
|
|
672
|
+
strokeLinejoin="round"
|
|
673
|
+
aria-hidden="true"
|
|
674
|
+
>
|
|
675
|
+
<path d="m10 3-5 5 5 5" />
|
|
676
|
+
</svg>
|
|
677
|
+
);
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
function ChevronRightIcon() {
|
|
681
|
+
return (
|
|
682
|
+
<svg
|
|
683
|
+
className="h-3.5 w-3.5"
|
|
684
|
+
viewBox="0 0 16 16"
|
|
685
|
+
fill="none"
|
|
686
|
+
stroke="currentColor"
|
|
687
|
+
strokeWidth="1.5"
|
|
688
|
+
strokeLinecap="round"
|
|
689
|
+
strokeLinejoin="round"
|
|
690
|
+
aria-hidden="true"
|
|
691
|
+
>
|
|
692
|
+
<path d="m6 3 5 5-5 5" />
|
|
693
|
+
</svg>
|
|
694
|
+
);
|
|
695
|
+
}
|