meyi-insight-ui-dev 1.0.2 → 1.0.4

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 (95) 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/badge.d.ts +1 -1
  4. package/dist/components/ui/button.d.ts +2 -2
  5. package/dist/components/ui/multi-select.d.ts +15 -0
  6. package/dist/components/ui/single-select.d.ts +15 -0
  7. package/dist/features/alerts/components/AlertFilters.d.ts +15 -0
  8. package/dist/features/alerts/components/ProcessingLifecycle.d.ts +5 -0
  9. package/dist/features/alerts/components/alerts-columns.d.ts +1 -0
  10. package/dist/features/alerts/components/alerts-table.d.ts +6 -9
  11. package/dist/features/alerts/detail.d.ts +7 -0
  12. package/dist/features/alerts/index.d.ts +2 -1
  13. package/dist/features/incidents/analytics.d.ts +1 -0
  14. package/dist/features/incidents/components/IncidentFilters.d.ts +4 -1
  15. package/dist/features/incidents/components/IncidentForm.d.ts +4 -0
  16. package/dist/features/incidents/components/InsightStatusBadge.d.ts +3 -0
  17. package/dist/features/incidents/components/incidents-columns.d.ts +0 -1
  18. package/dist/features/incidents/components/incidents-table.d.ts +3 -4
  19. package/dist/features/incidents/dashboard.d.ts +5 -0
  20. package/dist/features/pipeline/PipelineRuleEditor.d.ts +9 -0
  21. package/dist/features/pipeline/dedup.d.ts +4 -0
  22. package/dist/features/pipeline/editor-dedup.d.ts +4 -0
  23. package/dist/features/pipeline/editor-grouping.d.ts +4 -0
  24. package/dist/features/pipeline/editor-normalization.d.ts +4 -0
  25. package/dist/features/pipeline/grouping.d.ts +4 -0
  26. package/dist/features/pipeline/normalization.d.ts +1 -0
  27. package/dist/features/projects/components/ProjectFilters.d.ts +9 -0
  28. package/dist/features/projects/components/projects-table.d.ts +4 -3
  29. package/dist/features/settings/components/NotificationProvidersManager.d.ts +1 -0
  30. package/dist/features/settings/index.d.ts +5 -1
  31. package/dist/features/sop/components/SopFilters.d.ts +13 -0
  32. package/dist/features/sop/components/sop-table.d.ts +4 -7
  33. package/dist/features/sources/add-wizard/AddSourceConfigureStep.d.ts +8 -0
  34. package/dist/features/sources/add-wizard/AddSourceDeployStep.d.ts +11 -0
  35. package/dist/features/sources/add-wizard/AddSourceOverviewStep.d.ts +4 -0
  36. package/dist/features/sources/add-wizard/AddSourceSourceStep.d.ts +5 -0
  37. package/dist/features/{connectors/prometheus-wizard/PrometheusConnectorWizard.d.ts → sources/add-wizard/AddSourceWizard.d.ts} +1 -1
  38. package/dist/features/sources/add-wizard/add-source-options.d.ts +10 -0
  39. package/dist/features/sources/cloudwatch-wizard/CloudWatchSourceWizard.d.ts +8 -0
  40. package/dist/features/sources/components/InsightSourceDeleteDialog.d.ts +9 -0
  41. package/dist/features/sources/components/InsightSourceForm.d.ts +18 -0
  42. package/dist/features/{connectors/components/ConnectorAwsOnboardingDialog.d.ts → sources/components/SourceAwsOnboardingDialog.d.ts} +1 -1
  43. package/dist/features/{connectors/components/ConnectorDatadogSetupDialog.d.ts → sources/components/SourceDatadogSetupDialog.d.ts} +2 -2
  44. package/dist/features/sources/components/SourceDetailsDialog.d.ts +8 -0
  45. package/dist/features/sources/components/SourceFilters.d.ts +21 -0
  46. package/dist/features/{connectors/components/ConnectorGrafanaSetupDialog.d.ts → sources/components/SourceGrafanaSetupDialog.d.ts} +2 -2
  47. package/dist/features/sources/components/SourceGroupedList.d.ts +18 -0
  48. package/dist/features/{connectors/components/ConnectorPrometheusSetupDialog.d.ts → sources/components/SourcePrometheusSetupDialog.d.ts} +2 -2
  49. package/dist/features/sources/components/SourceTokenPolicyDialog.d.ts +11 -0
  50. package/dist/features/sources/components/WebhookSuccessModal.d.ts +6 -0
  51. package/dist/features/sources/detail/SourceAlarmsTab.d.ts +4 -0
  52. package/dist/features/sources/detail/SourceConfigurationTab.d.ts +10 -0
  53. package/dist/features/sources/detail/SourceDetailHeader.d.ts +11 -0
  54. package/dist/features/sources/detail/SourceDetailPage.d.ts +5 -0
  55. package/dist/features/sources/detail/SourceDetailTabs.d.ts +6 -0
  56. package/dist/features/sources/detail/SourceLogsTab.d.ts +6 -0
  57. package/dist/features/sources/detail/SourceOverviewTab.d.ts +4 -0
  58. package/dist/features/sources/detail/SourceSetupTab.d.ts +10 -0
  59. package/dist/features/sources/detail/SourceTestTab.d.ts +6 -0
  60. package/dist/features/sources/detail/source-detail-utils.d.ts +18 -0
  61. package/dist/features/sources/grafana-wizard/GrafanaSourceWizard.d.ts +7 -0
  62. package/dist/features/sources/index.d.ts +1 -0
  63. package/dist/features/sources/prometheus-wizard/PrometheusSourceWizard.d.ts +5 -0
  64. package/dist/features/sources/source-selection/SourceSourcePickerDialog.d.ts +6 -0
  65. package/dist/features/workflows/components/WorkflowFilters.d.ts +11 -0
  66. package/dist/features/workflows/components/WorkflowFormHelper.d.ts +6 -0
  67. package/dist/features/workflows/components/workflows-columns.d.ts +8 -0
  68. package/dist/features/workflows/components/workflows-table.d.ts +17 -0
  69. package/dist/features/workflows/editor.d.ts +4 -0
  70. package/dist/features/workflows/index.d.ts +4 -1
  71. package/dist/hooks/useInsightPolling.d.ts +1 -0
  72. package/dist/index.d.ts +17 -3
  73. package/dist/index.js +246 -112
  74. package/dist/index.mjs +71807 -73140
  75. package/dist/router.d.ts +1 -1
  76. package/dist/services/insight.d.ts +285 -21
  77. package/dist/services/workflow.d.ts +2 -1
  78. package/dist/style.css +1 -1
  79. package/dist/types.d.ts +128 -51
  80. package/package.json +4 -1
  81. package/dist/features/alerts/components/InsightAlertCard.d.ts +0 -13
  82. package/dist/features/connectors/cloudwatch-wizard/CloudWatchConnectorWizard.d.ts +0 -8
  83. package/dist/features/connectors/components/ConnectorDetailsDialog.d.ts +0 -8
  84. package/dist/features/connectors/components/ConnectorFilters.d.ts +0 -18
  85. package/dist/features/connectors/components/ConnectorTokenPolicyDialog.d.ts +0 -11
  86. package/dist/features/connectors/components/InsightConnectorCard.d.ts +0 -17
  87. package/dist/features/connectors/components/InsightConnectorDeleteDialog.d.ts +0 -9
  88. package/dist/features/connectors/components/InsightConnectorForm.d.ts +0 -18
  89. package/dist/features/connectors/components/WebhookSuccessModal.d.ts +0 -6
  90. package/dist/features/connectors/grafana-wizard/GrafanaConnectorWizard.d.ts +0 -7
  91. package/dist/features/connectors/index.d.ts +0 -1
  92. package/dist/features/connectors/source-selection/ConnectorSourcePickerDialog.d.ts +0 -6
  93. package/dist/features/incidents/components/InsightIncidentCard.d.ts +0 -8
  94. package/dist/features/workflows/components/WorkflowDiagramModal.d.ts +0 -6
  95. package/dist/features/workflows/components/WorkflowFormDialog.d.ts +0 -7
@@ -0,0 +1,11 @@
1
+ import { InsightSource } from '../../../types.js';
2
+ type Props = {
3
+ source: InsightSource;
4
+ disabling: boolean;
5
+ testing: boolean;
6
+ onBack: () => void;
7
+ onToggleActive: () => void;
8
+ onTest: () => void;
9
+ };
10
+ export declare function SourceDetailHeader({ source, disabling, testing, onBack, onToggleActive, onTest }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ sourceId: string;
3
+ };
4
+ export declare function SourceDetailPage({ sourceId }: Props): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ export type SourceDetailTab = "overview" | "alarms" | "configuration" | "setup" | "logs" | "test";
2
+ export declare function SourceDetailTabs({ activeTab, showSetup, onChange, }: {
3
+ activeTab: SourceDetailTab;
4
+ showSetup: boolean;
5
+ onChange: (tab: SourceDetailTab) => void;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { InsightSourceLog } from '../../../types.js';
2
+ export declare function SourceLogsTab({ logs, search, onSearchChange, }: {
3
+ logs: InsightSourceLog[];
4
+ search: string;
5
+ onSearchChange: (value: string) => void;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { InsightSourceOverview } from '../../../types.js';
2
+ export declare function SourceOverviewTab({ overview }: {
3
+ overview: InsightSourceOverview;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { InsightCloudTrailConsoleDeploy, InsightCloudWatchConsoleDeployResult, InsightSource, InsightDatadogOnboarding, InsightGrafanaOnboarding, InsightPrometheusOnboarding } from '../../../types.js';
2
+ export declare function SourceSetupTab({ source, loading, cloudWatch, cloudTrail, grafana, prometheus, datadog, }: {
3
+ source: InsightSource;
4
+ loading: boolean;
5
+ cloudWatch: InsightCloudWatchConsoleDeployResult | null;
6
+ cloudTrail: InsightCloudTrailConsoleDeploy | null;
7
+ grafana: InsightGrafanaOnboarding | null;
8
+ prometheus: InsightPrometheusOnboarding | null;
9
+ datadog: InsightDatadogOnboarding | null;
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { InsightSourceTestResult } from '../../../types.js';
2
+ export declare function SourceTestTab({ result, running, onRun, }: {
3
+ result: InsightSourceTestResult | null;
4
+ running: boolean;
5
+ onRun: () => void;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { InsightSource, InsightSourceType } from '../../../types.js';
2
+ export declare const sourceMeta: Record<string, {
3
+ label: string;
4
+ mono: string;
5
+ color: string;
6
+ }>;
7
+ export declare function normalizeSourceType(value: unknown): InsightSourceType;
8
+ export declare function sourceProvider(source: InsightSource): {
9
+ label: string;
10
+ mono: string;
11
+ color: string;
12
+ };
13
+ export declare function sourceRegion(source: InsightSource): string;
14
+ export declare function sourceEndpoint(source: InsightSource): string;
15
+ export declare function sourceSetupStatus(source: InsightSource): string;
16
+ export declare function isSourceSetupComplete(source: InsightSource): boolean;
17
+ export declare function timeAgo(value?: string | null): string;
18
+ export declare function severityClass(value: string): "im-sev-critical" | "im-sev-high" | "im-sev-medium" | "im-sev-low";
@@ -0,0 +1,7 @@
1
+ import { InsightSource } from '../../../types.js';
2
+ export declare function GrafanaSourceWizard({ open, source, onOpenChange, onCreated, }: {
3
+ open: boolean;
4
+ source?: InsightSource | null;
5
+ onOpenChange: (open: boolean) => void;
6
+ onCreated: () => void;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function InsightSourcesPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare function PrometheusSourceWizard({ open, onOpenChange, onCreated, }: {
2
+ open: boolean;
3
+ onOpenChange: (open: boolean) => void;
4
+ onCreated: () => void;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { InsightSourceType } from '../../../types.js';
2
+ export declare function SourceSourcePickerDialog({ open, onOpenChange, onSelect, }: {
3
+ open: boolean;
4
+ onOpenChange: (open: boolean) => void;
5
+ onSelect: (type: InsightSourceType) => void;
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;
@@ -1 +1,4 @@
1
- export declare function InsightWorkflowsPage(): import("react/jsx-runtime").JSX.Element;
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, InsightWorkflow, InsightWorkflowExecution, } from './types.js';
5
- export declare const insightNavItems: {
4
+ export type { InsightIncident, InsightAnalysisResult, NewInsightAnalysisResult, InsightSource, InsightSourceType, 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
+ })[];