@stigmer/react 0.4.7 → 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/execution/MessageThread.d.ts +1 -0
- package/execution/MessageThread.d.ts.map +1 -1
- package/execution/MessageThread.js +22 -12
- package/execution/MessageThread.js.map +1 -1
- package/execution/SetupProgress.d.ts +23 -9
- package/execution/SetupProgress.d.ts.map +1 -1
- package/execution/SetupProgress.js +30 -14
- package/execution/SetupProgress.js.map +1 -1
- package/execution/__tests__/thread-keys.test.js +82 -0
- package/execution/__tests__/thread-keys.test.js.map +1 -1
- 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/models/registry.d.ts +4 -1
- package/models/registry.d.ts.map +1 -1
- package/models/registry.js +6 -2
- package/models/registry.js.map +1 -1
- package/package.json +8 -4
- package/provider.js +1 -1
- package/provider.js.map +1 -1
- 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/execution/MessageThread.tsx +26 -15
- package/src/execution/SetupProgress.tsx +35 -14
- package/src/execution/__tests__/thread-keys.test.ts +101 -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/models/registry.ts +10 -2
- package/src/provider.tsx +1 -1
- 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,170 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { useCallback, useRef, useState } from "react";
|
|
4
|
+
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
5
|
+
import { cn } from "@stigmer/theme";
|
|
6
|
+
import { useResourceCollection } from "../hooks/useResourceCollection";
|
|
7
|
+
import { useResourceFilters } from "../hooks/useResourceFilters";
|
|
8
|
+
import { useResourceSelection } from "../hooks/useResourceSelection";
|
|
9
|
+
import { useViewPreference } from "../hooks/useViewPreference";
|
|
10
|
+
import { ResourceTable } from "./ResourceTable";
|
|
11
|
+
import { ResourceCards } from "./ResourceCards";
|
|
12
|
+
import { ResourceList } from "./ResourceList";
|
|
13
|
+
import { FilterBar } from "./FilterBar";
|
|
14
|
+
import { ViewSwitcher } from "./ViewSwitcher";
|
|
15
|
+
import { BulkActionBar } from "./BulkActionBar";
|
|
16
|
+
import { ResourceInspector } from "./ResourceInspector";
|
|
17
|
+
import { EmptyState } from "../../empty-state";
|
|
18
|
+
import { ResourceAvatar } from "./ResourceAvatar";
|
|
19
|
+
// ---------------------------------------------------------------------------
|
|
20
|
+
// Component
|
|
21
|
+
// ---------------------------------------------------------------------------
|
|
22
|
+
const DEBOUNCE_MS = 300;
|
|
23
|
+
/**
|
|
24
|
+
* Full-featured resource collection workbench that composes headless
|
|
25
|
+
* hooks and focused view components into a complete browsing experience.
|
|
26
|
+
*
|
|
27
|
+
* Provides:
|
|
28
|
+
* - Toolbar with search input, filter chips, and view mode switcher
|
|
29
|
+
* - Three view modes: table, cards, and compact list
|
|
30
|
+
* - Row/card selection with bulk action bar
|
|
31
|
+
* - Optional split-panel inspector for item previews
|
|
32
|
+
* - Empty, loading, and error states
|
|
33
|
+
* - Pagination
|
|
34
|
+
*
|
|
35
|
+
* The workbench is the "drop-in" tier of the resource collection
|
|
36
|
+
* architecture. Platform builders who want more control use the
|
|
37
|
+
* individual hooks and view components directly.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```tsx
|
|
41
|
+
* <ResourceWorkbench
|
|
42
|
+
* listFn={(params) => stigmer.agent.list(params)}
|
|
43
|
+
* org={activeOrg}
|
|
44
|
+
* columns={agentColumns}
|
|
45
|
+
* filterDefs={agentFilterDefs}
|
|
46
|
+
* renderItemAction={(item) => <AgentActionMenu item={item} />}
|
|
47
|
+
* onItemClick={(item) => navigate(`/agents/${item.slug}`)}
|
|
48
|
+
* emptyTitle="No agents yet"
|
|
49
|
+
* emptyDescription="Create an agent to get started."
|
|
50
|
+
* />
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
export function ResourceWorkbench({ listFn, org, columns = [], filterDefs = [], viewModes = ["table", "cards", "list"], defaultViewMode = "table", viewModeStorageKey, renderCard, renderRow, renderItemAction, renderInspector, bulkActions = [], onItemClick, initialFilters, initialSort, initialQuery, scope: controlledScope = "org", onScopeChange, onStateChange, enableSelection = false, getItemId = defaultGetId, emptyIcon, emptyTitle = "No resources found", emptyDescription = "Try adjusting your search or filters.", emptyAction, onRetry, headerAction, searchPlaceholder = "Search\u2026", "aria-label": ariaLabel = "Resource workbench", className, }) {
|
|
54
|
+
// --- View preference ---------------------------------------------------
|
|
55
|
+
const { viewMode, setViewMode } = useViewPreference(viewModeStorageKey, defaultViewMode);
|
|
56
|
+
// --- Filter/sort/query state -------------------------------------------
|
|
57
|
+
const filtersHook = useResourceFilters({
|
|
58
|
+
filterDefs,
|
|
59
|
+
initialFilters,
|
|
60
|
+
initialSort,
|
|
61
|
+
initialQuery,
|
|
62
|
+
onStateChange,
|
|
63
|
+
queryDebounceMs: DEBOUNCE_MS,
|
|
64
|
+
});
|
|
65
|
+
// --- Pagination --------------------------------------------------------
|
|
66
|
+
const [page, setPage] = useState(1);
|
|
67
|
+
const prevQueryRef = useRef(filtersHook.debouncedQuery);
|
|
68
|
+
if (prevQueryRef.current !== filtersHook.debouncedQuery) {
|
|
69
|
+
prevQueryRef.current = filtersHook.debouncedQuery;
|
|
70
|
+
setPage(1);
|
|
71
|
+
}
|
|
72
|
+
// --- Collection data ---------------------------------------------------
|
|
73
|
+
const collection = useResourceCollection({
|
|
74
|
+
listFn: listFn,
|
|
75
|
+
org,
|
|
76
|
+
query: filtersHook.debouncedQuery,
|
|
77
|
+
scope: controlledScope,
|
|
78
|
+
page,
|
|
79
|
+
sort: filtersHook.sort,
|
|
80
|
+
onSortChange: filtersHook.setSort,
|
|
81
|
+
columns: columns,
|
|
82
|
+
enableSelection,
|
|
83
|
+
});
|
|
84
|
+
// --- Selection ---------------------------------------------------------
|
|
85
|
+
const selection = useResourceSelection(collection.items, getItemId);
|
|
86
|
+
// --- Inspector ---------------------------------------------------------
|
|
87
|
+
const [inspectedItem, setInspectedItem] = useState(null);
|
|
88
|
+
const inspectorEnabled = !!renderInspector;
|
|
89
|
+
const handleItemClick = useCallback((item) => {
|
|
90
|
+
if (inspectorEnabled) {
|
|
91
|
+
setInspectedItem(item);
|
|
92
|
+
}
|
|
93
|
+
onItemClick?.(item);
|
|
94
|
+
}, [inspectorEnabled, onItemClick]);
|
|
95
|
+
// --- Content resolution ------------------------------------------------
|
|
96
|
+
const showSkeletons = collection.isLoading && collection.items.length === 0;
|
|
97
|
+
const showError = !!collection.error && !collection.isLoading;
|
|
98
|
+
const showEmpty = !collection.isLoading && !collection.error && collection.items.length === 0;
|
|
99
|
+
const showContent = collection.items.length > 0;
|
|
100
|
+
const showPagination = collection.totalPages > 1;
|
|
101
|
+
// --- Selected IDs as Set for cards/list views --------------------------
|
|
102
|
+
const selectedIdSet = selection.selectedIds;
|
|
103
|
+
return (_jsxs("div", { "aria-label": ariaLabel, className: cn("flex flex-col gap-3", className), children: [_jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsxs("div", { className: "relative flex-1", children: [_jsx(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" }), _jsx("input", { type: "text", value: filtersHook.query, onChange: (e) => filtersHook.setQuery(e.target.value), placeholder: searchPlaceholder, "aria-label": searchPlaceholder, className: cn("w-full rounded-md border border-input bg-background py-1.5 pl-8 pr-3 text-sm", "placeholder:text-muted-foreground-subtle", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring") })] }), viewModes.length > 1 && (_jsx(ViewSwitcher, { value: viewMode, onChange: setViewMode, modes: viewModes })), headerAction] }), _jsx(FilterBar, { filters: filtersHook.filters, filterDefs: filterDefs, onRemoveFilter: filtersHook.removeFilter, onClearAll: filtersHook.clearFilters }), _jsxs("div", { className: "flex min-h-0 flex-1", children: [_jsxs("div", { className: cn("min-w-0 flex-1", collection.isRefetching &&
|
|
104
|
+
"pointer-events-none opacity-60 transition-opacity"), children: [showSkeletons && _jsx(SkeletonPlaceholder, { viewMode: viewMode }), showError && (_jsx(EmptyState, { variant: "error", errorMessage: collection.error.message, action: onRetry
|
|
105
|
+
? { label: "Retry", onClick: onRetry ?? collection.refetch }
|
|
106
|
+
: undefined })), showEmpty && (_jsx(EmptyState, { variant: filtersHook.hasActiveFilters || filtersHook.debouncedQuery
|
|
107
|
+
? "zero-results"
|
|
108
|
+
: "first-use", icon: emptyIcon, title: filtersHook.hasActiveFilters || filtersHook.debouncedQuery
|
|
109
|
+
? "No results match your filters"
|
|
110
|
+
: emptyTitle, description: filtersHook.hasActiveFilters || filtersHook.debouncedQuery
|
|
111
|
+
? "Try adjusting your search or removing some filters."
|
|
112
|
+
: emptyDescription, action: filtersHook.hasActiveFilters
|
|
113
|
+
? {
|
|
114
|
+
label: "Clear filters",
|
|
115
|
+
onClick: filtersHook.clearFilters,
|
|
116
|
+
}
|
|
117
|
+
: undefined, children: !filtersHook.hasActiveFilters && !filtersHook.debouncedQuery
|
|
118
|
+
? emptyAction
|
|
119
|
+
: undefined })), showContent && viewMode === "table" && collection.table && (_jsx(ResourceTable, { table: collection.table, enableSelection: enableSelection, renderRowAction: renderItemAction, onRowClick: handleItemClick })), showContent && viewMode === "cards" && (_jsx(ResourceCards, { items: collection.items, renderCard: renderCard ??
|
|
120
|
+
((item) => _jsx(DefaultCardContent, { item: item })), enableSelection: enableSelection, selectedIds: selectedIdSet, onToggleSelection: selection.toggleItem, getItemId: getItemId, renderCardAction: renderItemAction, onCardClick: handleItemClick })), showContent && viewMode === "list" && (_jsx(ResourceList, { items: collection.items, renderRow: renderRow ??
|
|
121
|
+
((item) => _jsx(DefaultRowContent, { item: item })), enableSelection: enableSelection, selectedIds: selectedIdSet, onToggleSelection: selection.toggleItem, getItemId: getItemId, renderRowAction: renderItemAction, onRowClick: handleItemClick })), showPagination && (_jsx(PaginationBar, { currentPage: collection.currentPage, totalPages: collection.totalPages, totalCount: collection.totalCount, onPageChange: setPage }))] }), inspectorEnabled && (_jsx(ResourceInspector, { open: inspectedItem !== null, onClose: () => setInspectedItem(null), children: inspectedItem && renderInspector(inspectedItem) }))] }), enableSelection && selection.hasSelection && (_jsx(BulkActionBar, { selectedCount: selection.selectedCount, selectedItems: selection.selectedItems, actions: bulkActions, onCancel: selection.clearSelection }))] }));
|
|
122
|
+
}
|
|
123
|
+
// ---------------------------------------------------------------------------
|
|
124
|
+
// Internal helpers
|
|
125
|
+
// ---------------------------------------------------------------------------
|
|
126
|
+
function defaultGetId(item) {
|
|
127
|
+
const r = item;
|
|
128
|
+
if (typeof r.id === "string")
|
|
129
|
+
return r.id;
|
|
130
|
+
if (typeof r.slug === "string")
|
|
131
|
+
return r.slug;
|
|
132
|
+
return "";
|
|
133
|
+
}
|
|
134
|
+
function DefaultCardContent({ item }) {
|
|
135
|
+
const isSkill = item.kind === ApiResourceKind.skill;
|
|
136
|
+
return (_jsxs("div", { className: "flex items-start gap-3", children: [_jsx(ResourceAvatar, { name: item.name || item.slug, slug: item.slug, iconUrl: item.iconUrl || undefined, hidden: isSkill }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("span", { className: "text-sm font-medium text-foreground", children: item.name || item.slug }), item.org && (_jsx("p", { className: "text-xs text-muted-foreground", children: item.org })), item.description && (_jsx("p", { className: "mt-0.5 line-clamp-2 text-xs text-muted-foreground", children: item.description }))] })] }));
|
|
137
|
+
}
|
|
138
|
+
function DefaultRowContent({ item }) {
|
|
139
|
+
const isSkill = item.kind === ApiResourceKind.skill;
|
|
140
|
+
return (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(ResourceAvatar, { name: item.name || item.slug, slug: item.slug, iconUrl: item.iconUrl || undefined, hidden: isSkill, size: "sm" }), _jsx("span", { className: "text-sm font-medium text-foreground", children: item.name || item.slug }), item.org && (_jsx("span", { className: "text-xs text-muted-foreground", children: item.org })), item.description && (_jsxs(_Fragment, { children: [_jsx("span", { className: "text-muted-foreground-subtle", "aria-hidden": "true", children: "\u00B7" }), _jsx("span", { className: "truncate text-xs text-muted-foreground", children: item.description })] }))] }));
|
|
141
|
+
}
|
|
142
|
+
// ---------------------------------------------------------------------------
|
|
143
|
+
// Skeleton placeholder
|
|
144
|
+
// ---------------------------------------------------------------------------
|
|
145
|
+
function SkeletonPlaceholder({ viewMode, }) {
|
|
146
|
+
if (viewMode === "cards") {
|
|
147
|
+
return (_jsx("div", { className: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3", "aria-busy": "true", children: Array.from({ length: 6 }, (_, i) => (_jsxs("div", { className: "flex flex-col gap-3 rounded-lg border border-border bg-card p-4", "aria-hidden": "true", children: [_jsx("div", { className: "h-4 w-3/5 animate-pulse rounded bg-muted" }), _jsx("div", { className: "h-3 w-2/5 animate-pulse rounded bg-muted" }), _jsx("div", { className: "h-3 w-full animate-pulse rounded bg-muted" })] }, i))) }));
|
|
148
|
+
}
|
|
149
|
+
return (_jsx("div", { "aria-busy": "true", children: Array.from({ length: 5 }, (_, i) => (_jsxs("div", { className: "flex items-center gap-3 px-3 py-2.5", "aria-hidden": "true", children: [_jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded bg-muted" }), _jsxs("div", { className: "flex-1 space-y-2", children: [_jsx("div", { className: "h-4 animate-pulse rounded bg-muted", style: { width: `${30 + (i * 7) % 25}%` } }), _jsx("div", { className: "h-3 animate-pulse rounded bg-muted", style: { width: `${55 + (i * 5) % 20}%` } })] })] }, i))) }));
|
|
150
|
+
}
|
|
151
|
+
// ---------------------------------------------------------------------------
|
|
152
|
+
// Pagination
|
|
153
|
+
// ---------------------------------------------------------------------------
|
|
154
|
+
function PaginationBar({ currentPage, totalPages, totalCount, onPageChange, }) {
|
|
155
|
+
const navBtnClass = cn("inline-flex items-center rounded-md p-1.5", "border border-input bg-background text-foreground", "hover:bg-accent hover:text-accent-foreground", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", "disabled:pointer-events-none disabled:opacity-50");
|
|
156
|
+
return (_jsxs("nav", { "aria-label": "Pagination", className: "flex items-center justify-between border-t border-border pt-3", children: [_jsxs("span", { className: "text-xs text-muted-foreground", children: [totalCount.toLocaleString(), " ", totalCount === 1 ? "result" : "results"] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("button", { type: "button", onClick: () => onPageChange(currentPage - 1), disabled: currentPage <= 1, "aria-label": "Previous page", className: navBtnClass, children: _jsx(ChevronLeftIcon, {}) }), _jsxs("span", { className: "text-xs text-muted-foreground", children: ["Page ", currentPage, " of ", totalPages] }), _jsx("button", { type: "button", onClick: () => onPageChange(currentPage + 1), disabled: currentPage >= totalPages, "aria-label": "Next page", className: navBtnClass, children: _jsx(ChevronRightIcon, {}) })] })] }));
|
|
157
|
+
}
|
|
158
|
+
// ---------------------------------------------------------------------------
|
|
159
|
+
// Icons
|
|
160
|
+
// ---------------------------------------------------------------------------
|
|
161
|
+
function SearchIcon({ className }) {
|
|
162
|
+
return (_jsxs("svg", { className: className, viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("circle", { cx: "6.5", cy: "6.5", r: "4.5" }), _jsx("path", { d: "m10 10 4 4" })] }));
|
|
163
|
+
}
|
|
164
|
+
function ChevronLeftIcon() {
|
|
165
|
+
return (_jsx("svg", { className: "h-3.5 w-3.5", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: _jsx("path", { d: "m10 3-5 5 5 5" }) }));
|
|
166
|
+
}
|
|
167
|
+
function ChevronRightIcon() {
|
|
168
|
+
return (_jsx("svg", { className: "h-3.5 w-3.5", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: _jsx("path", { d: "m6 3 5 5-5 5" }) }));
|
|
169
|
+
}
|
|
170
|
+
//# sourceMappingURL=ResourceWorkbench.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceWorkbench.js","sourceRoot":"","sources":["../../../src/resource-workbench/components/ResourceWorkbench.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AAEtH,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AASpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAA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AAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,iBACV,MAAM,YAElB,eAAM,CAAC,EAAC,cAAc,GAAG,GACrB,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** Props for {@link SelectionCheckbox}. */
|
|
2
|
+
export interface SelectionCheckboxProps {
|
|
3
|
+
/** Whether the checkbox is checked. */
|
|
4
|
+
readonly checked: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Indeterminate state (e.g. header checkbox when some but not all
|
|
7
|
+
* rows are selected). Overrides `checked` visually.
|
|
8
|
+
*/
|
|
9
|
+
readonly indeterminate?: boolean;
|
|
10
|
+
/** Called when the user toggles the checkbox. */
|
|
11
|
+
readonly onChange: (checked: boolean) => void;
|
|
12
|
+
/** Accessible label for the checkbox. */
|
|
13
|
+
readonly "aria-label": string;
|
|
14
|
+
/** Additional CSS classes. */
|
|
15
|
+
readonly className?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Accessible checkbox for row/card selection and "select all" headers.
|
|
19
|
+
*
|
|
20
|
+
* Uses a native `<input type="checkbox">` with the `indeterminate`
|
|
21
|
+
* property set via ref for proper browser + screen reader support.
|
|
22
|
+
*/
|
|
23
|
+
export declare function SelectionCheckbox({ checked, indeterminate, onChange, "aria-label": ariaLabel, className, }: SelectionCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=SelectionCheckbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectionCheckbox.d.ts","sourceRoot":"","sources":["../../../src/resource-workbench/components/SelectionCheckbox.tsx"],"names":[],"mappings":"AAIA,2CAA2C;AAC3C,MAAM,WAAW,sBAAsB;IACrC,uCAAuC;IACvC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC,iDAAiD;IACjD,QAAQ,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,yCAAyC;IACzC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,8BAA8B;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,aAAqB,EACrB,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,SAAS,GACV,EAAE,sBAAsB,2CAkBxB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "@stigmer/theme";
|
|
4
|
+
/**
|
|
5
|
+
* Accessible checkbox for row/card selection and "select all" headers.
|
|
6
|
+
*
|
|
7
|
+
* Uses a native `<input type="checkbox">` with the `indeterminate`
|
|
8
|
+
* property set via ref for proper browser + screen reader support.
|
|
9
|
+
*/
|
|
10
|
+
export function SelectionCheckbox({ checked, indeterminate = false, onChange, "aria-label": ariaLabel, className, }) {
|
|
11
|
+
return (_jsx("input", { type: "checkbox", role: "checkbox", checked: checked, ref: (el) => {
|
|
12
|
+
if (el)
|
|
13
|
+
el.indeterminate = indeterminate;
|
|
14
|
+
}, onChange: (e) => onChange(e.target.checked), "aria-label": ariaLabel, className: cn("size-3.5 shrink-0 cursor-pointer rounded border border-input accent-primary", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1", className) }));
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=SelectionCheckbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectionCheckbox.js","sourceRoot":"","sources":["../../../src/resource-workbench/components/SelectionCheckbox.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAmBpC;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAChC,OAAO,EACP,aAAa,GAAG,KAAK,EACrB,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,SAAS,GACc;IACvB,OAAO,CACL,gBACE,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE;YACV,IAAI,EAAE;gBAAE,EAAE,CAAC,aAAa,GAAG,aAAa,CAAC;QAC3C,CAAC,EACD,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,gBAC/B,SAAS,EACrB,SAAS,EAAE,EAAE,CACX,6EAA6E,EAC7E,qGAAqG,EACrG,SAAS,CACV,GACD,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { StatusPhase } from "../types";
|
|
2
|
+
/** Props for {@link StatusBadge}. */
|
|
3
|
+
export interface StatusBadgeProps {
|
|
4
|
+
/** The status phase to display. Maps to `--stgm-status-*` tokens. */
|
|
5
|
+
readonly phase: StatusPhase;
|
|
6
|
+
/**
|
|
7
|
+
* Optional human-readable label override. When omitted, the phase
|
|
8
|
+
* name is title-cased (e.g. "ready" becomes "Ready").
|
|
9
|
+
*/
|
|
10
|
+
readonly label?: string;
|
|
11
|
+
/** Tooltip text shown on hover. When omitted, no tooltip renders. */
|
|
12
|
+
readonly tooltip?: string;
|
|
13
|
+
/** Additional CSS classes for the root element. */
|
|
14
|
+
readonly className?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Accessible status indicator that combines a color dot with a text label.
|
|
18
|
+
*
|
|
19
|
+
* Never communicates status through color alone — the text label is always
|
|
20
|
+
* present (WCAG 1.4.1). Colors come from `--stgm-status-*` design tokens
|
|
21
|
+
* defined in `@stigmer/theme`, ensuring correct appearance in both light
|
|
22
|
+
* and dark modes.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <StatusBadge phase="ready" />
|
|
27
|
+
* <StatusBadge phase="failed" label="Unreachable" tooltip="Last checked 2m ago" />
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare function StatusBadge({ phase, label, tooltip, className, }: StatusBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
//# sourceMappingURL=StatusBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusBadge.d.ts","sourceRoot":"","sources":["../../../src/resource-workbench/components/StatusBadge.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,qCAAqC;AACrC,MAAM,WAAW,gBAAgB;IAC/B,qEAAqE;IACrE,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,qEAAqE;IACrE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,mDAAmD;IACnD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAYD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,KAAK,EACL,OAAO,EACP,SAAS,GACV,EAAE,gBAAgB,2CA0BlB"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "@stigmer/theme";
|
|
4
|
+
const PHASE_LABELS = {
|
|
5
|
+
ready: "Ready",
|
|
6
|
+
running: "Running",
|
|
7
|
+
pending: "Pending",
|
|
8
|
+
degraded: "Degraded",
|
|
9
|
+
failed: "Failed",
|
|
10
|
+
disabled: "Disabled",
|
|
11
|
+
draft: "Draft",
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Accessible status indicator that combines a color dot with a text label.
|
|
15
|
+
*
|
|
16
|
+
* Never communicates status through color alone — the text label is always
|
|
17
|
+
* present (WCAG 1.4.1). Colors come from `--stgm-status-*` design tokens
|
|
18
|
+
* defined in `@stigmer/theme`, ensuring correct appearance in both light
|
|
19
|
+
* and dark modes.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* <StatusBadge phase="ready" />
|
|
24
|
+
* <StatusBadge phase="failed" label="Unreachable" tooltip="Last checked 2m ago" />
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export function StatusBadge({ phase, label, tooltip, className, }) {
|
|
28
|
+
const displayLabel = label ?? PHASE_LABELS[phase];
|
|
29
|
+
const badge = (_jsxs("span", { className: cn("inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-[11px] font-medium leading-none", statusClasses(phase), className), children: [_jsx("span", { className: cn("size-1.5 shrink-0 rounded-full", dotClasses(phase)), "aria-hidden": "true" }), displayLabel] }));
|
|
30
|
+
if (!tooltip)
|
|
31
|
+
return badge;
|
|
32
|
+
return (_jsx("span", { title: tooltip, className: "inline-flex", children: badge }));
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Maps a status phase to Tailwind classes using `--stgm-status-*` tokens.
|
|
36
|
+
* Background uses the `-subtle` variant; text uses the main status color.
|
|
37
|
+
*/
|
|
38
|
+
function statusClasses(phase) {
|
|
39
|
+
switch (phase) {
|
|
40
|
+
case "ready":
|
|
41
|
+
return "bg-[var(--stgm-status-ready-subtle)] text-[var(--stgm-status-ready)]";
|
|
42
|
+
case "running":
|
|
43
|
+
return "bg-[var(--stgm-status-running-subtle)] text-[var(--stgm-status-running)]";
|
|
44
|
+
case "pending":
|
|
45
|
+
return "bg-[var(--stgm-status-pending-subtle)] text-[var(--stgm-status-pending)]";
|
|
46
|
+
case "degraded":
|
|
47
|
+
return "bg-[var(--stgm-status-degraded-subtle)] text-[var(--stgm-status-degraded)]";
|
|
48
|
+
case "failed":
|
|
49
|
+
return "bg-[var(--stgm-status-failed-subtle)] text-[var(--stgm-status-failed)]";
|
|
50
|
+
case "disabled":
|
|
51
|
+
return "bg-[var(--stgm-status-disabled-subtle)] text-[var(--stgm-status-disabled)]";
|
|
52
|
+
case "draft":
|
|
53
|
+
return "bg-[var(--stgm-status-draft-subtle)] text-[var(--stgm-status-draft)]";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/** Maps a status phase to the dot's background color (the main token). */
|
|
57
|
+
function dotClasses(phase) {
|
|
58
|
+
switch (phase) {
|
|
59
|
+
case "ready":
|
|
60
|
+
return "bg-[var(--stgm-status-ready)]";
|
|
61
|
+
case "running":
|
|
62
|
+
return "bg-[var(--stgm-status-running)]";
|
|
63
|
+
case "pending":
|
|
64
|
+
return "bg-[var(--stgm-status-pending)]";
|
|
65
|
+
case "degraded":
|
|
66
|
+
return "bg-[var(--stgm-status-degraded)]";
|
|
67
|
+
case "failed":
|
|
68
|
+
return "bg-[var(--stgm-status-failed)]";
|
|
69
|
+
case "disabled":
|
|
70
|
+
return "bg-[var(--stgm-status-disabled)]";
|
|
71
|
+
case "draft":
|
|
72
|
+
return "bg-[var(--stgm-status-draft)]";
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=StatusBadge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusBadge.js","sourceRoot":"","sources":["../../../src/resource-workbench/components/StatusBadge.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAkBpC,MAAM,YAAY,GAAgC;IAChD,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IACl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SAAS;YACZ,OAAO,iCAAiC,CAAC;QAC3C,KAAK,SAAS;YACZ,OAAO,iCAAiC,CAAC;QAC3C,KAAK,UAAU;YACb,OAAO,kCAAkC,CAAC;QAC5C,KAAK,QAAQ;YACX,OAAO,gCAAgC,CAAC;QAC1C,KAAK,UAAU;YACb,OAAO,kCAAkC,CAAC;QAC5C,KAAK,OAAO;YACV,OAAO,+BAA+B,CAAC;IAC3C,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ViewMode } from "../types";
|
|
2
|
+
/** Props for {@link ViewSwitcher}. */
|
|
3
|
+
export interface ViewSwitcherProps {
|
|
4
|
+
/** Currently active view mode. */
|
|
5
|
+
readonly value: ViewMode;
|
|
6
|
+
/** Called when the user selects a different view mode. */
|
|
7
|
+
readonly onChange: (mode: ViewMode) => void;
|
|
8
|
+
/** Which view modes to show. @default ["table", "cards", "list"] */
|
|
9
|
+
readonly modes?: readonly ViewMode[];
|
|
10
|
+
/** Additional CSS classes. */
|
|
11
|
+
readonly className?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Toggle button group for switching between table, cards, and list views.
|
|
15
|
+
*
|
|
16
|
+
* Uses `role="radiogroup"` with `role="radio"` children for accessible
|
|
17
|
+
* view switching. Each button shows an icon and is labeled for screen
|
|
18
|
+
* readers.
|
|
19
|
+
*/
|
|
20
|
+
export declare function ViewSwitcher({ value, onChange, modes, className, }: ViewSwitcherProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=ViewSwitcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewSwitcher.d.ts","sourceRoot":"","sources":["../../../src/resource-workbench/components/ViewSwitcher.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,sCAAsC;AACtC,MAAM,WAAW,iBAAiB;IAChC,kCAAkC;IAClC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IACzB,0DAA0D;IAC1D,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC5C,oEAAoE;IACpE,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,QAAQ,EAAE,CAAC;IACrC,8BAA8B;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAQD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,KAAkC,EAClC,SAAS,GACV,EAAE,iBAAiB,2CAkCnB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "@stigmer/theme";
|
|
4
|
+
const MODE_META = {
|
|
5
|
+
table: { label: "Table view", icon: TableIcon },
|
|
6
|
+
cards: { label: "Card view", icon: CardsIcon },
|
|
7
|
+
list: { label: "List view", icon: ListIcon },
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Toggle button group for switching between table, cards, and list views.
|
|
11
|
+
*
|
|
12
|
+
* Uses `role="radiogroup"` with `role="radio"` children for accessible
|
|
13
|
+
* view switching. Each button shows an icon and is labeled for screen
|
|
14
|
+
* readers.
|
|
15
|
+
*/
|
|
16
|
+
export function ViewSwitcher({ value, onChange, modes = ["table", "cards", "list"], className, }) {
|
|
17
|
+
return (_jsx("div", { role: "radiogroup", "aria-label": "View mode", className: cn("inline-flex rounded-md border border-input", className), children: modes.map((mode) => {
|
|
18
|
+
const { label, icon: Icon } = MODE_META[mode];
|
|
19
|
+
const isActive = value === mode;
|
|
20
|
+
return (_jsx("button", { type: "button", role: "radio", "aria-checked": isActive, "aria-label": label, onClick: () => onChange(mode), className: cn("inline-flex items-center justify-center px-2 py-1.5 transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:z-10", "first:rounded-l-[calc(var(--stgm-radius)-1px)] last:rounded-r-[calc(var(--stgm-radius)-1px)]", "border-r border-input last:border-r-0", isActive
|
|
21
|
+
? "bg-accent text-accent-foreground"
|
|
22
|
+
: "text-muted-foreground hover:text-foreground hover:bg-accent-hover"), children: _jsx(Icon, {}) }, mode));
|
|
23
|
+
}) }));
|
|
24
|
+
}
|
|
25
|
+
// ---------------------------------------------------------------------------
|
|
26
|
+
// Icons (inline SVGs matching the SDK's icon pattern)
|
|
27
|
+
// ---------------------------------------------------------------------------
|
|
28
|
+
function TableIcon() {
|
|
29
|
+
return (_jsxs("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", stroke: "currentColor", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("rect", { x: "1.5", y: "1.5", width: "11", height: "11", rx: "1.5" }), _jsx("path", { d: "M1.5 5.5h11M1.5 9h11M5.5 5.5v6" })] }));
|
|
30
|
+
}
|
|
31
|
+
function CardsIcon() {
|
|
32
|
+
return (_jsxs("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", stroke: "currentColor", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("rect", { x: "1.5", y: "1.5", width: "4.5", height: "4.5", rx: "1" }), _jsx("rect", { x: "8", y: "1.5", width: "4.5", height: "4.5", rx: "1" }), _jsx("rect", { x: "1.5", y: "8", width: "4.5", height: "4.5", rx: "1" }), _jsx("rect", { x: "8", y: "8", width: "4.5", height: "4.5", rx: "1" })] }));
|
|
33
|
+
}
|
|
34
|
+
function ListIcon() {
|
|
35
|
+
return (_jsxs("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", stroke: "currentColor", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("path", { d: "M4.5 3h8M4.5 7h8M4.5 11h8" }), _jsx("circle", { cx: "2", cy: "3", r: "0.75", fill: "currentColor", stroke: "none" }), _jsx("circle", { cx: "2", cy: "7", r: "0.75", fill: "currentColor", stroke: "none" }), _jsx("circle", { cx: "2", cy: "11", r: "0.75", fill: "currentColor", stroke: "none" })] }));
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=ViewSwitcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewSwitcher.js","sourceRoot":"","sources":["../../../src/resource-workbench/components/ViewSwitcher.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAepC,MAAM,SAAS,GAAuE;IACpF,KAAK,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;IAC/C,KAAK,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE;IAC9C,IAAI,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE;CAC7C,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,KAAK,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,EAClC,SAAS,GACS;IAClB,OAAO,CACL,cACE,IAAI,EAAC,YAAY,gBACN,WAAW,EACtB,SAAS,EAAE,EAAE,CAAC,4CAA4C,EAAE,SAAS,CAAC,YAErE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YAClB,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;YAC9C,MAAM,QAAQ,GAAG,KAAK,KAAK,IAAI,CAAC;YAChC,OAAO,CACL,iBAEE,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,OAAO,kBACE,QAAQ,gBACV,KAAK,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,Q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C,EAAE,EAAC,GAAG,GAAG,EACtD,eAAM,CAAC,EAAC,KAAK,EAAC,CAAC,EAAC,GAAG,EAAC,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,EAAE,EAAC,GAAG,GAAG,EACtD,eAAM,CAAC,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,EAAE,EAAC,GAAG,GAAG,IAChD,CACP,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ;IACf,OAAO,CACL,eACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,MAAM,EAClB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,iBACV,MAAM,aAElB,eAAM,CAAC,EAAC,2BAA2B,GAAG,EACtC,iBAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,MAAM,EAAC,IAAI,EAAC,cAAc,EAAC,MAAM,EAAC,MAAM,GAAG,EACnE,iBAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,MAAM,EAAC,IAAI,EAAC,cAAc,EAAC,MAAM,EAAC,MAAM,GAAG,EACnE,iBAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,MAAM,EAAC,IAAI,EAAC,cAAc,EAAC,MAAM,EAAC,MAAM,GAAG,IAChE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { type RowSelectionState, type Table } from "@tanstack/react-table";
|
|
2
|
+
import type { SearchResult } from "@stigmer/protos/ai/stigmer/search/v1/io_pb";
|
|
3
|
+
import type { ListParams, ListResult } from "@stigmer/sdk";
|
|
4
|
+
import type { WorkbenchColumnDef, SortValue } from "../types";
|
|
5
|
+
/** Options for {@link useResourceCollection}. */
|
|
6
|
+
export interface UseResourceCollectionOptions<TData = SearchResult> {
|
|
7
|
+
/**
|
|
8
|
+
* Async function that fetches a page of resources.
|
|
9
|
+
* The hook passes `ListParams` (org, query, page, scope) and expects
|
|
10
|
+
* `ListResult` back. Pass `null` to disable fetching (idle state).
|
|
11
|
+
*/
|
|
12
|
+
readonly listFn: ((params: ListParams) => Promise<ListResult>) | null;
|
|
13
|
+
/** Organization slug to scope the query. Pass `null` to disable fetching. */
|
|
14
|
+
readonly org: string | null;
|
|
15
|
+
/** Text search query. No debouncing is applied — the consumer controls timing. */
|
|
16
|
+
readonly query?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Scope for resource visibility.
|
|
19
|
+
* - `"org"` — resources owned by the active organization.
|
|
20
|
+
* - `"all"` — includes public resources from other organizations.
|
|
21
|
+
* @default "org"
|
|
22
|
+
*/
|
|
23
|
+
readonly scope?: "org" | "all";
|
|
24
|
+
/** Current page number (1-indexed). @default 1 */
|
|
25
|
+
readonly page?: number;
|
|
26
|
+
/** Page size. @default 20 */
|
|
27
|
+
readonly pageSize?: number;
|
|
28
|
+
/** Active sort. When provided, the column header shows the sort indicator. */
|
|
29
|
+
readonly sort?: SortValue | null;
|
|
30
|
+
/** Called when the user changes the sort via a column header click. */
|
|
31
|
+
readonly onSortChange?: (sort: SortValue | null) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Column definitions for the table view. These are converted to
|
|
34
|
+
* TanStack Table column defs internally.
|
|
35
|
+
*/
|
|
36
|
+
readonly columns?: readonly WorkbenchColumnDef<TData>[];
|
|
37
|
+
/** Enable row selection state tracking. @default false */
|
|
38
|
+
readonly enableSelection?: boolean;
|
|
39
|
+
}
|
|
40
|
+
/** Return value of {@link useResourceCollection}. */
|
|
41
|
+
export interface UseResourceCollectionReturn<TData = SearchResult> {
|
|
42
|
+
/** The fetched data items for the current page. */
|
|
43
|
+
readonly items: readonly TData[];
|
|
44
|
+
/** Total number of matching items across all pages. */
|
|
45
|
+
readonly totalCount: number;
|
|
46
|
+
/** Total number of pages. */
|
|
47
|
+
readonly totalPages: number;
|
|
48
|
+
/** The current page number (mirrors input). */
|
|
49
|
+
readonly currentPage: number;
|
|
50
|
+
/** `true` during the initial data fetch (no data yet). */
|
|
51
|
+
readonly isLoading: boolean;
|
|
52
|
+
/** `true` during a background refetch while stale data is shown. */
|
|
53
|
+
readonly isRefetching: boolean;
|
|
54
|
+
/** Error from the last failed fetch, or `null`. */
|
|
55
|
+
readonly error: Error | null;
|
|
56
|
+
/** Imperatively trigger a refetch. */
|
|
57
|
+
readonly refetch: () => void;
|
|
58
|
+
/**
|
|
59
|
+
* The TanStack Table instance. Available for advanced consumers who
|
|
60
|
+
* need direct table API access (e.g. custom renderers). `null` when
|
|
61
|
+
* no columns are provided.
|
|
62
|
+
*/
|
|
63
|
+
readonly table: Table<TData> | null;
|
|
64
|
+
/** Current row selection state (item ID -> selected). */
|
|
65
|
+
readonly rowSelection: RowSelectionState;
|
|
66
|
+
/** Update row selection state directly. */
|
|
67
|
+
readonly setRowSelection: React.Dispatch<React.SetStateAction<RowSelectionState>>;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Headless hook that manages resource collection state: data fetching,
|
|
71
|
+
* sorting, selection, and pagination.
|
|
72
|
+
*
|
|
73
|
+
* Wraps `useFetch` for data and `@tanstack/react-table` for table state
|
|
74
|
+
* (sorting, selection, column visibility). The hook itself produces no
|
|
75
|
+
* DOM — it returns data, state, and a TanStack Table instance that view
|
|
76
|
+
* components (`ResourceTable`, `ResourceCards`, `ResourceList`) consume.
|
|
77
|
+
*
|
|
78
|
+
* Platform builders who want full rendering control use this hook
|
|
79
|
+
* directly. The `ResourceWorkbench` shell composes it internally.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```tsx
|
|
83
|
+
* const collection = useResourceCollection({
|
|
84
|
+
* listFn: (params) => stigmer.agent.list(params),
|
|
85
|
+
* org: "acme",
|
|
86
|
+
* query: debouncedQuery,
|
|
87
|
+
* page: 1,
|
|
88
|
+
* columns: agentColumns,
|
|
89
|
+
* });
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
export declare function useResourceCollection<TData = SearchResult>(options: UseResourceCollectionOptions<TData>): UseResourceCollectionReturn<TData>;
|
|
93
|
+
//# sourceMappingURL=useResourceCollection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResourceCollection.d.ts","sourceRoot":"","sources":["../../../src/resource-workbench/hooks/useResourceCollection.ts"],"names":[],"mappings":"AAGA,OAAO,EAML,KAAK,iBAAiB,EACtB,KAAK,KAAK,EACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,KAAK,EACV,kBAAkB,EAClB,SAAS,EAEV,MAAM,UAAU,CAAC;AAMlB,iDAAiD;AACjD,MAAM,WAAW,4BAA4B,CAAC,KAAK,GAAG,YAAY;IAChE;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,IAAI,CAAC;IACtE,6EAA6E;IAC7E,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,kFAAkF;IAClF,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAC/B,kDAAkD;IAClD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,6BAA6B;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,8EAA8E;IAC9E,QAAQ,CAAC,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