meyi-insight-ui-dev 1.0.1 → 1.0.3

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.
Files changed (73) hide show
  1. package/dist/components/common/PageSkeleton.d.ts +10 -0
  2. package/dist/components/data-table/toolbar.d.ts +3 -1
  3. package/dist/components/ui/alert-dialog.d.ts +14 -0
  4. package/dist/components/ui/badge.d.ts +1 -1
  5. package/dist/components/ui/button.d.ts +2 -2
  6. package/dist/components/ui/checkbox.d.ts +4 -0
  7. package/dist/components/ui/multi-select.d.ts +15 -0
  8. package/dist/components/ui/single-select.d.ts +15 -0
  9. package/dist/components/ui/switch.d.ts +4 -0
  10. package/dist/features/alerts/components/AlertFilters.d.ts +15 -0
  11. package/dist/features/alerts/components/ProcessingLifecycle.d.ts +5 -0
  12. package/dist/features/alerts/components/alerts-columns.d.ts +1 -0
  13. package/dist/features/alerts/components/alerts-table.d.ts +6 -9
  14. package/dist/features/alerts/detail.d.ts +7 -0
  15. package/dist/features/alerts/index.d.ts +2 -1
  16. package/dist/features/connectors/add-wizard/AddConnectorConfigureStep.d.ts +8 -0
  17. package/dist/features/connectors/add-wizard/AddConnectorDeployStep.d.ts +11 -0
  18. package/dist/features/connectors/add-wizard/AddConnectorOverviewStep.d.ts +4 -0
  19. package/dist/features/connectors/add-wizard/AddConnectorSourceStep.d.ts +5 -0
  20. package/dist/features/connectors/add-wizard/AddConnectorWizard.d.ts +5 -0
  21. package/dist/features/connectors/add-wizard/add-connector-options.d.ts +10 -0
  22. package/dist/features/connectors/components/ConnectorFilters.d.ts +5 -2
  23. package/dist/features/connectors/components/{InsightConnectorCard.d.ts → ConnectorGroupedList.d.ts} +7 -4
  24. package/dist/features/connectors/components/ConnectorPrometheusSetupDialog.d.ts +11 -1
  25. package/dist/features/connectors/detail/ConnectorAlarmsTab.d.ts +4 -0
  26. package/dist/features/connectors/detail/ConnectorConfigurationTab.d.ts +10 -0
  27. package/dist/features/connectors/detail/ConnectorDetailHeader.d.ts +11 -0
  28. package/dist/features/connectors/detail/ConnectorDetailPage.d.ts +5 -0
  29. package/dist/features/connectors/detail/ConnectorDetailTabs.d.ts +6 -0
  30. package/dist/features/connectors/detail/ConnectorLogsTab.d.ts +6 -0
  31. package/dist/features/connectors/detail/ConnectorOverviewTab.d.ts +4 -0
  32. package/dist/features/connectors/detail/ConnectorSetupTab.d.ts +10 -0
  33. package/dist/features/connectors/detail/ConnectorTestTab.d.ts +6 -0
  34. package/dist/features/connectors/detail/connector-detail-utils.d.ts +18 -0
  35. package/dist/features/incidents/analytics.d.ts +1 -0
  36. package/dist/features/incidents/components/IncidentFilters.d.ts +4 -1
  37. package/dist/features/incidents/components/IncidentForm.d.ts +4 -0
  38. package/dist/features/incidents/components/InsightStatusBadge.d.ts +3 -0
  39. package/dist/features/incidents/components/incidents-columns.d.ts +0 -1
  40. package/dist/features/incidents/components/incidents-table.d.ts +3 -4
  41. package/dist/features/incidents/dashboard.d.ts +5 -0
  42. package/dist/features/pipeline/PipelineRuleEditor.d.ts +9 -0
  43. package/dist/features/pipeline/dedup.d.ts +4 -0
  44. package/dist/features/pipeline/editor-dedup.d.ts +4 -0
  45. package/dist/features/pipeline/editor-grouping.d.ts +4 -0
  46. package/dist/features/pipeline/editor-normalization.d.ts +4 -0
  47. package/dist/features/pipeline/grouping.d.ts +4 -0
  48. package/dist/features/pipeline/normalization.d.ts +1 -0
  49. package/dist/features/projects/components/ProjectFilters.d.ts +9 -0
  50. package/dist/features/projects/components/projects-table.d.ts +4 -3
  51. package/dist/features/settings/components/NotificationProvidersManager.d.ts +1 -0
  52. package/dist/features/settings/index.d.ts +5 -1
  53. package/dist/features/sop/components/SopFilters.d.ts +13 -0
  54. package/dist/features/sop/components/sop-table.d.ts +4 -7
  55. package/dist/features/workflows/components/WorkflowExecutionsDrawer.d.ts +6 -0
  56. package/dist/features/workflows/components/WorkflowFilters.d.ts +11 -0
  57. package/dist/features/workflows/components/WorkflowFormHelper.d.ts +6 -0
  58. package/dist/features/workflows/components/workflows-columns.d.ts +8 -0
  59. package/dist/features/workflows/components/workflows-table.d.ts +17 -0
  60. package/dist/features/workflows/editor.d.ts +4 -0
  61. package/dist/features/workflows/index.d.ts +4 -0
  62. package/dist/hooks/useInsightPolling.d.ts +1 -0
  63. package/dist/index.d.ts +17 -3
  64. package/dist/index.js +244 -98
  65. package/dist/index.mjs +38316 -29107
  66. package/dist/router.d.ts +1 -1
  67. package/dist/services/insight.d.ts +273 -1
  68. package/dist/services/workflow.d.ts +13 -0
  69. package/dist/style.css +1 -1
  70. package/dist/types.d.ts +131 -3
  71. package/package.json +9 -1
  72. package/dist/features/alerts/components/InsightAlertCard.d.ts +0 -13
  73. package/dist/features/incidents/components/InsightIncidentCard.d.ts +0 -8
@@ -1,20 +1,17 @@
1
+ import { default as React } from 'react';
1
2
  import { InsightSop } from '../../../types.js';
2
3
  interface SopTableProps {
3
4
  data: InsightSop[];
4
5
  total: number;
5
6
  page: number;
6
7
  limit: number;
8
+ loading?: boolean;
7
9
  onPageChange: (page: number) => void;
8
10
  onLimitChange: (limit: number) => void;
9
11
  onView: (id: string) => void;
10
12
  onEdit: (sop: InsightSop) => void;
11
13
  onDelete: (sop: InsightSop) => void;
12
- search: string;
13
- onSearchChange: (search: string) => void;
14
- severityFilter: string;
15
- onSeverityChange: (severity: string) => void;
16
- statusFilter: string;
17
- onStatusChange: (status: string) => void;
14
+ renderFilters?: (table: any) => React.ReactNode;
18
15
  }
19
- export declare function SopTable({ data, total, page, limit, onPageChange, onLimitChange, onView, onEdit, onDelete, search, onSearchChange, severityFilter, onSeverityChange, statusFilter, onStatusChange, }: SopTableProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function SopTable({ data, total, page, limit, loading, onPageChange, onLimitChange, onView, onEdit, onDelete, renderFilters, }: SopTableProps): import("react/jsx-runtime").JSX.Element;
20
17
  export {};
@@ -0,0 +1,6 @@
1
+ import { InsightWorkflow } from '../../../types.js';
2
+ export declare function WorkflowExecutionsDrawer({ open, onOpenChange, workflow, }: {
3
+ open: boolean;
4
+ onOpenChange: (open: boolean) => void;
5
+ workflow?: InsightWorkflow;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ interface Props {
2
+ search: string;
3
+ onSearchChange: (value: string) => void;
4
+ statusFilter: string[];
5
+ onStatusChange: (statuses: string[]) => void;
6
+ onRefresh?: () => void;
7
+ loading?: boolean;
8
+ children?: React.ReactNode;
9
+ }
10
+ export declare function WorkflowFilters({ search, onSearchChange, statusFilter, onStatusChange, onRefresh, loading, children, }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,6 @@
1
+ interface WorkflowFormHelperProps {
2
+ yamlDefinition: string;
3
+ onYamlUpdate: (newYaml: string) => void;
4
+ }
5
+ export declare function WorkflowFormHelper({ yamlDefinition, onYamlUpdate }: WorkflowFormHelperProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ColumnDef } from '@tanstack/react-table';
2
+ import { InsightWorkflow } from '../../../types.js';
3
+ export declare const getWorkflowsColumns: (actions: {
4
+ onEdit: (workflow: InsightWorkflow) => void;
5
+ onToggleActive: (workflow: InsightWorkflow) => void;
6
+ onDelete: (workflow: InsightWorkflow) => void;
7
+ onOpenExecutions: (workflow: InsightWorkflow) => void;
8
+ }) => ColumnDef<InsightWorkflow>[];
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { InsightWorkflow } from '../../../types.js';
3
+ interface WorkflowsTableProps {
4
+ data: InsightWorkflow[];
5
+ total: number;
6
+ page: number;
7
+ limit: number;
8
+ onPageChange: (page: number) => void;
9
+ onLimitChange: (limit: number) => void;
10
+ onEdit: (workflow: InsightWorkflow) => void;
11
+ onToggleActive: (workflow: InsightWorkflow) => void;
12
+ onDelete: (workflow: InsightWorkflow) => void;
13
+ onOpenExecutions: (workflow: InsightWorkflow) => void;
14
+ renderFilters?: (table: any) => React.ReactNode;
15
+ }
16
+ export declare function WorkflowsTable({ data, total, page, limit, onPageChange, onLimitChange, onEdit, onToggleActive, onDelete, onOpenExecutions, renderFilters, }: WorkflowsTableProps): import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare function InsightWorkflowEditorPage({ workflowId, onBack, }: {
2
+ workflowId?: string;
3
+ onBack: () => void;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare function InsightWorkflowsPage({ embedded, basePath, }?: {
2
+ embedded?: boolean;
3
+ basePath?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  export declare const ACTIVE_STATUSES: Set<string>;
2
+ export declare function isActiveStatus(status?: string | null): boolean;
2
3
  /**
3
4
  * Polls /incidents/:id/status while analysis is in-flight.
4
5
  *
package/dist/index.d.ts CHANGED
@@ -1,10 +1,24 @@
1
1
  export { InsightPage, type InsightPageProps } from './InsightPage.js';
2
2
  export { configureApi, api } from './api.js';
3
3
  export { createRouteTree } from './router.js';
4
- export type { InsightIncident, InsightAnalysisResult, NewInsightAnalysisResult, InsightConnector, InsightConnectorType, InsightAlert, InsightAlertSeverity, InsightAlertStatus, InsightProject, InsightSop, InsightSopSeverity, InsightSopStatus, } from './types.js';
5
- export declare const insightNavItems: {
4
+ export type { InsightIncident, InsightAnalysisResult, NewInsightAnalysisResult, InsightConnector, InsightConnectorType, InsightAlert, InsightAlertSeverity, InsightAlertStatus, InsightProject, InsightSop, InsightSopSeverity, InsightSopStatus, InsightWorkflow, InsightWorkflowExecution, } from './types.js';
5
+ export declare const insightNavItems: ({
6
6
  title: string;
7
7
  url: string;
8
8
  icon: string;
9
9
  roles: string[];
10
- }[];
10
+ badge?: undefined;
11
+ items?: undefined;
12
+ } | {
13
+ title: string;
14
+ url: string;
15
+ icon: string;
16
+ roles: string[];
17
+ badge: string;
18
+ items: {
19
+ title: string;
20
+ url: string;
21
+ icon: string;
22
+ roles: string[];
23
+ }[];
24
+ })[];