@yugabytedb/perf-advisor-ui 1.0.134 → 1.0.136

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 (161) hide show
  1. package/README.md +22 -1
  2. package/dist/api.d.ts +96 -0
  3. package/dist/common/ChartCard/ChartCard.d.ts +20 -0
  4. package/dist/common/ChartCard/ChartCard.styles.d.ts +1 -0
  5. package/dist/common/ChartCard/ChartTypeSelector.d.ts +8 -0
  6. package/dist/common/ChartCard/WaitEventTypeSelector.d.ts +8 -0
  7. package/dist/common/ChartCard/buildOptions.d.ts +3 -0
  8. package/dist/common/ChartCard/defaults.d.ts +9 -0
  9. package/dist/common/ChartCard/helpers/anomalyOverlay.d.ts +2 -0
  10. package/dist/common/ChartCard/helpers/axes.d.ts +43 -0
  11. package/dist/common/ChartCard/helpers/index.d.ts +11 -0
  12. package/dist/common/ChartCard/helpers/interactions.d.ts +6 -0
  13. package/dist/common/ChartCard/helpers/legend.d.ts +41 -0
  14. package/dist/common/ChartCard/helpers/series.d.ts +9 -0
  15. package/dist/common/ChartCard/helpers/tooltip.d.ts +27 -0
  16. package/dist/common/ChartCard/index.d.ts +8 -0
  17. package/dist/common/ChartCard/types.d.ts +171 -0
  18. package/dist/common/CopyToClipboardButton/CopyToClipboardButton.d.ts +8 -0
  19. package/dist/common/PAHeader/MetricSplitSelector.d.ts +8 -0
  20. package/dist/common/PAHeader/OutlierSelector.d.ts +13 -0
  21. package/dist/common/PAHeader/QueryTypeSelector.d.ts +8 -0
  22. package/dist/common/PAHeader/YBClusterRegionSelector.d.ts +9 -0
  23. package/dist/common/PAHeader/YBZoneNodeSelector.d.ts +11 -0
  24. package/dist/common/PerfAdvisorCodeBlock/PerfAdvisorCodeBlock.d.ts +23 -0
  25. package/dist/common/YBCheckbox/YBCheckboxField.d.ts +6 -0
  26. package/dist/common/YBCodeBlock/codeBlock.d.ts +1 -0
  27. package/dist/common/YBErrorIndicator/YBErrorIndicator.d.ts +8 -0
  28. package/dist/common/YBInput/YBInputField.d.ts +7 -0
  29. package/dist/common/YBPagination/YBInfinitePagination.d.ts +16 -0
  30. package/dist/common/YBPanelItem/YBPanelItem.d.ts +11 -0
  31. package/dist/common/YBTable/AnomaliesTableFooter.d.ts +4 -0
  32. package/dist/common/YBTable/TableHelper.d.ts +9 -0
  33. package/dist/common/YBToggle/YBToggleField.d.ts +6 -0
  34. package/dist/common/index.d.ts +14 -0
  35. package/dist/components/ConfigureUniverse/ConfigureUniverseMetadata.d.ts +8 -0
  36. package/dist/components/ConfigureUniverse/RemoveUniverseMetadata.d.ts +10 -0
  37. package/dist/components/ConfigureUniverse/UniverseListMetadata.d.ts +14 -0
  38. package/dist/components/GanttChart/GanttChart.d.ts +3 -0
  39. package/dist/components/GanttChart/adapters/anomalyAdapter.d.ts +5 -0
  40. package/dist/components/GanttChart/adapters/backgroundJobsAdapter.d.ts +3 -0
  41. package/dist/components/GanttChart/adapters/qpmAdapter.d.ts +4 -0
  42. package/dist/components/GanttChart/adapters/showMoreAnomalyAdapter.d.ts +3 -0
  43. package/dist/components/GanttChart/adapters/singleLevelAnomalyAdapter.d.ts +3 -0
  44. package/dist/components/GanttChart/components/Bar.d.ts +11 -0
  45. package/dist/components/GanttChart/components/ColumnHeader.d.ts +9 -0
  46. package/dist/components/GanttChart/components/GanttRefetchProgress.d.ts +2 -0
  47. package/dist/components/GanttChart/components/GroupPanel.d.ts +15 -0
  48. package/dist/components/GanttChart/components/GroupRow.d.ts +17 -0
  49. package/dist/components/GanttChart/components/TimeAxis.d.ts +12 -0
  50. package/dist/components/GanttChart/components/TimelinePanel.d.ts +24 -0
  51. package/dist/components/GanttChart/config.d.ts +36 -0
  52. package/dist/components/GanttChart/hooks/useGanttRows.d.ts +9 -0
  53. package/dist/components/GanttChart/hooks/useTimeScale.d.ts +12 -0
  54. package/dist/components/GanttChart/index.d.ts +9 -0
  55. package/dist/components/GanttChart/types.d.ts +111 -0
  56. package/dist/components/GanttChart/utils/mergeIntervals.d.ts +10 -0
  57. package/dist/components/GanttChart/utils/severity.d.ts +19 -0
  58. package/dist/components/GanttChart/utils/timeFormatters.d.ts +12 -0
  59. package/dist/components/GanttChart/utils/truncateLabel.d.ts +16 -0
  60. package/dist/components/Header/BreadCrumbsHeader.d.ts +16 -0
  61. package/dist/components/Header/DateSelectorHeader.d.ts +21 -0
  62. package/dist/components/Header/DbLoadHeader.d.ts +14 -0
  63. package/dist/components/Header/GenericHeader.d.ts +30 -0
  64. package/dist/components/Header/MetadataHeader.d.ts +16 -0
  65. package/dist/components/Header/TimezoneSelector.d.ts +9 -0
  66. package/dist/components/Header/metadata/AnomalyMetadataFields.d.ts +12 -0
  67. package/dist/components/Header/metadata/MetadataField.d.ts +22 -0
  68. package/dist/components/Header/metadata/index.d.ts +4 -0
  69. package/dist/components/Header/metadata/sqlMetadataFields.d.ts +4 -0
  70. package/dist/components/PrimaryDashboard/AshGate.d.ts +7 -0
  71. package/dist/components/PrimaryDashboard/BackgroundJobs.d.ts +15 -0
  72. package/dist/components/PrimaryDashboard/ClusterOverallLoadChart.d.ts +23 -0
  73. package/dist/components/PrimaryDashboard/ColumnSelectorDrawer.d.ts +10 -0
  74. package/dist/components/PrimaryDashboard/DbCPUActivity/CPUByDatabaseChart.d.ts +21 -0
  75. package/dist/components/PrimaryDashboard/DbCPUActivity/CPUByDatabaseMetadata.d.ts +13 -0
  76. package/dist/components/PrimaryDashboard/DbCPUActivity/DbCPUActivityDashboard.d.ts +13 -0
  77. package/dist/components/PrimaryDashboard/DbCPUActivity/DbCPUActivityView.d.ts +13 -0
  78. package/dist/components/PrimaryDashboard/DbLoadMetadata.d.ts +22 -0
  79. package/dist/components/PrimaryDashboard/DbNodeLoadChart.d.ts +22 -0
  80. package/dist/components/PrimaryDashboard/DbStatsTable/databaseStatsColumns.d.ts +51 -0
  81. package/dist/components/PrimaryDashboard/DbStatsTable/useDatabaseStatsTable.d.ts +62 -0
  82. package/dist/components/PrimaryDashboard/DetectedAnomalies.d.ts +19 -0
  83. package/dist/components/PrimaryDashboard/EChartsOptionsGenerator.d.ts +208 -0
  84. package/dist/components/PrimaryDashboard/ExportQueriesModal/BundleColumnsPicker.d.ts +9 -0
  85. package/dist/components/PrimaryDashboard/ExportQueriesModal/BundleDetailsPanel.d.ts +6 -0
  86. package/dist/components/PrimaryDashboard/ExportQueriesModal/ExportFormTab.d.ts +15 -0
  87. package/dist/components/PrimaryDashboard/ExportQueriesModal/RecentExportsTab.d.ts +10 -0
  88. package/dist/components/PrimaryDashboard/ExportQueriesModal/constants.d.ts +12 -0
  89. package/dist/components/PrimaryDashboard/ExportQueriesModal/helpers.d.ts +9 -0
  90. package/dist/components/PrimaryDashboard/ExportQueriesModal/index.d.ts +2 -0
  91. package/dist/components/PrimaryDashboard/ExportQueriesModal/recentExportColumns.d.ts +16 -0
  92. package/dist/components/PrimaryDashboard/ExportQueriesModal/types.d.ts +43 -0
  93. package/dist/components/PrimaryDashboard/HistoricalQueryData.d.ts +25 -0
  94. package/dist/components/PrimaryDashboard/PerfAdvisorBanner.d.ts +8 -0
  95. package/dist/components/PrimaryDashboard/PerfAdvisorEntry.d.ts +14 -0
  96. package/dist/components/PrimaryDashboard/PerfAdvisorTabs.d.ts +30 -0
  97. package/dist/components/PrimaryDashboard/ProcessTopKData.d.ts +11 -0
  98. package/dist/components/PrimaryDashboard/QueryEventsChart.d.ts +7 -0
  99. package/dist/components/PrimaryDashboard/QueryExportDropdown.d.ts +13 -0
  100. package/dist/components/PrimaryDashboard/ShowMoreAnomalies.d.ts +22 -0
  101. package/dist/components/PrimaryDashboard/chartConfigs/clusterLoadConfig.d.ts +8 -0
  102. package/dist/components/PrimaryDashboard/chartConfigs/cpuByDatabaseConfig.d.ts +9 -0
  103. package/dist/components/PrimaryDashboard/chartConfigs/dbNodeLoadConfig.d.ts +9 -0
  104. package/dist/components/PrimaryDashboard/chartConfigs/index.d.ts +7 -0
  105. package/dist/components/PrimaryDashboard/chartConfigs/shared.d.ts +8 -0
  106. package/dist/components/PrimaryDashboard/chartTitles.d.ts +2 -0
  107. package/dist/components/PrimaryDashboard/useChartData.d.ts +29 -0
  108. package/dist/components/RuntimeConfigs/ResetRuntimeConfig.d.ts +14 -0
  109. package/dist/components/RuntimeConfigs/RuntimeConfigs.d.ts +11 -0
  110. package/dist/components/RuntimeConfigs/UpdateRuntimeConfig.d.ts +14 -0
  111. package/dist/components/SecondaryDashboard/AnomalyPossibleCause.d.ts +7 -0
  112. package/dist/components/SecondaryDashboard/AnomalyRouter.d.ts +30 -0
  113. package/dist/components/SecondaryDashboard/DrilldownView/CpuSaturationDrilldown.d.ts +17 -0
  114. package/dist/components/SecondaryDashboard/DrilldownView/HistoricalQueryMetricGraphGrid.d.ts +22 -0
  115. package/dist/components/SecondaryDashboard/DrilldownView/NodeDrilldown.d.ts +23 -0
  116. package/dist/components/SecondaryDashboard/DrilldownView/OtherDrilldown.d.ts +20 -0
  117. package/dist/components/SecondaryDashboard/DrilldownView/QPMExportButton.d.ts +8 -0
  118. package/dist/components/SecondaryDashboard/DrilldownView/QPMPlanSelector.d.ts +9 -0
  119. package/dist/components/SecondaryDashboard/DrilldownView/QueryPlanManagement.d.ts +16 -0
  120. package/dist/components/SecondaryDashboard/DrilldownView/SqlDrilldown.d.ts +20 -0
  121. package/dist/components/SecondaryDashboard/DrilldownView/TabletDrilldown.d.ts +15 -0
  122. package/dist/components/SecondaryDashboard/GraphView.d.ts +39 -0
  123. package/dist/components/SecondaryDashboard/Metadata/AnomalyRCAGraphs.d.ts +25 -0
  124. package/dist/components/SecondaryDashboard/Metadata/NodeLoadMetadata.d.ts +13 -0
  125. package/dist/components/SecondaryDashboard/Metadata/QueriesMetadata.d.ts +20 -0
  126. package/dist/components/SecondaryDashboard/Metadata/QueryLevelTabletMetadata.d.ts +14 -0
  127. package/dist/components/SecondaryDashboard/Metadata/SizeBarChart.d.ts +6 -0
  128. package/dist/components/SecondaryDashboard/Metadata/TabletLevelQueryMetadata.d.ts +14 -0
  129. package/dist/components/SecondaryDashboard/Metadata/TabletMetadata.d.ts +18 -0
  130. package/dist/components/SecondaryDashboard/MetricsAnalysisEntry.d.ts +13 -0
  131. package/dist/components/SecondaryDashboard/MetricsSelectorDrawer.d.ts +17 -0
  132. package/dist/components/SecondaryDashboard/ProcessGraphData.d.ts +21 -0
  133. package/dist/components/SecondaryDashboard/QPMGanttChart.d.ts +14 -0
  134. package/dist/components/SecondaryDashboard/TopKMetricsView.d.ts +21 -0
  135. package/dist/components/hooks/useClusterFilterState.d.ts +27 -0
  136. package/dist/components/hooks/usePrevious.d.ts +1 -0
  137. package/dist/components/index.d.ts +10 -0
  138. package/dist/components/styles.d.ts +1 -0
  139. package/dist/contexts/ExportBundlesContext.d.ts +19 -0
  140. package/dist/esm/index.js +48571 -124378
  141. package/dist/esm/index.js.map +1 -1
  142. package/dist/helpers/anomalyRecommendationRenderer.d.ts +2 -0
  143. package/dist/helpers/columnPreferences.d.ts +11 -0
  144. package/dist/helpers/config.d.ts +2 -0
  145. package/dist/helpers/constants.d.ts +543 -0
  146. package/dist/helpers/dateUtils.d.ts +45 -0
  147. package/dist/helpers/downloadUtils.d.ts +72 -0
  148. package/dist/helpers/dtos.d.ts +862 -0
  149. package/dist/helpers/errorHandlingUtils.d.ts +1 -0
  150. package/dist/helpers/exportBundlesStorage.d.ts +47 -0
  151. package/dist/helpers/objectUtils.d.ts +11 -0
  152. package/dist/helpers/qpmStatus.d.ts +7 -0
  153. package/dist/helpers/utils.d.ts +240 -0
  154. package/dist/index.d.ts +8 -0
  155. package/dist/providers/YBThemeWrapper.d.ts +12 -0
  156. package/dist/theme/mainTheme.d.ts +14 -0
  157. package/dist/theme/variables.d.ts +50 -0
  158. package/package.json +34 -28
  159. package/dist/cjs/index.js +0 -19
  160. package/dist/cjs/index.js.map +0 -1
  161. package/dist/types.d.ts +0 -1870
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @yugabytedb/perf-advisor-ui
2
2
 
3
- Troubleshoot UI for Yugabyte applications
3
+ Troubleshoot UI library for Yugabyte applications. Bundled with [Vite](https://vite.dev/) in library mode and published to npm as an ESM-only package.
4
4
 
5
5
  ## install
6
6
 
@@ -24,6 +24,27 @@ Selecting the anomaly to view the secondary dashboard will list the main graph w
24
24
 
25
25
  The corresponding RCA graphs will also be listed in secondary dashboard to help user diagnose the issue
26
26
 
27
+ ## Local development
28
+
29
+ This package is consumed by [`perf-advisor-web`](../perf-advisor-web). When iterating on it alongside the host app, use [yalc](https://github.com/wclr/yalc) — Vite picks up library changes via the `watch-yalc-lib` plugin in `perf-advisor-web/vite.config.ts`.
30
+
31
+ 1. Ensure the node version is `v22.18.0` (see `engines` in `package.json`).
32
+ 2. Install dependencies: `npm ci`.
33
+ 3. Build once in watch mode: `npm run dev` (alias for `vite build --watch`). The build also runs `yalc push` after each rebuild via the `yalc-push` plugin, so consumers that have linked this package via yalc receive updates automatically.
34
+ 4. To consume in `perf-advisor-web`, follow the yalc setup steps in [`perf-advisor-web/README.md`](../perf-advisor-web/README.md).
35
+
36
+ ### Configuring the backend URL
37
+
38
+ The library reads `REACT_APP_API_URL` the same way `perf-advisor-web` does ([`src/helpers/config.ts`](src/helpers/config.ts)). When the library is used inside `perf-advisor-web` in dev, the variable is set in the host app's terminal / `.env.local` — see the host app's README. The library itself doesn't need any env configuration to develop.
39
+
40
+ ## Other scripts
41
+
42
+ - `npm run build` — production build of the library (`NODE_ENV=production vite build`) into `dist/`.
43
+ - `npm run build:dev` — non-minified development build (used before `yalc publish`).
44
+ - `npm run typecheck` — `tsc --noEmit`.
45
+ - `npm run lint` / `npm run lint:fix`.
46
+ - `npm run format` / `npm run format:check`.
47
+
27
48
  ## license
28
49
 
29
50
  The MIT License (MIT)
package/dist/api.d.ts ADDED
@@ -0,0 +1,96 @@
1
+ import { Anomaly, AnomalyDetectionStatus, AnomalyGroup, BackgroundTasksResponse, ClusterLoadResponseData, MetadataFields, GraphRequestParams, QueryPlanData, QueryStatsPagedBody, ClusterDetails } from './helpers/dtos';
2
+ export declare enum QUERY_KEY {
3
+ fetchAnomalies = "fetchAnomalies",
4
+ fetchGraphs = "fetchGraphs",
5
+ fetchUniverseMetadataList = "fetchUniverseMetadataList",
6
+ deleteUniverseMetadata = "deleteUniverseMetadata",
7
+ updateUniverseMetadata = "updateUniverseMetadata",
8
+ fetchUniverseListDetails = "fetchUniverseListDetails",
9
+ fetchUniverseById = "fetchUniverseById",
10
+ fetchAnomalyDetectionStatus = "fetchAnomalyDetectionStatus",
11
+ scheduleAnomalyDetectionStatus = "scheduleAnomalyDetectionStatus",
12
+ fetchAnomaliesPage = "fetchAnomaliesPage",
13
+ fetchQueriesPage = "fetchQueriesPage",
14
+ fetchQueriesStatsPage = "fetchQueriesStatsPage",
15
+ fetchQueriesDatabases = "fetchQueriesDatabases",
16
+ fetchCustomerMetadataList = "fetchCustomerMetadataList",
17
+ fetchQueryStats = "fetchQueryStats",
18
+ fetchTablesPage = "fetchTablesPage",
19
+ fetchNamespaces = "fetchNamespaces",
20
+ deleteRuntimeConfig = "deleteRuntimeConfig",
21
+ fetchRuntimeConfigs = "fetchRuntimeConfigs",
22
+ fetchSpecificRuntimeConfigs = "fetchSpecificRuntimeConfigs",
23
+ fetchSpecificRuntimeConfigsKey = "fetchSpecificRuntimeConfigsKey",
24
+ updateRuntimeConfig = "updateRuntimeConfig",
25
+ fetchAnomalyGroups = "fetchAnomalyGroups",
26
+ fetchAnomalyGroupsByType = "fetchAnomalyGroupsByType",
27
+ fetchAnomalyGroupsById = "fetchAnomalyGroupsById",
28
+ getUniverseMetadata = "getUniverseMetadata",
29
+ fetchMetricsGraphs = "fetchMetricsGraphs",
30
+ fetchLoadDbStatsPage = "fetchLoadDbStatsPage",
31
+ fetchTabletsStatsPage = "fetchTabletsStatsPage",
32
+ fetchNodeLoadStatsPage = "fetchNodeLoadStatsPage",
33
+ sendTelemetryEvent = "sendTelemetryEvent",
34
+ fetchBackgroundTasks = "fetchBackgroundTasks",
35
+ fetchClusterDetails = "fetchClusterDetails"
36
+ }
37
+ declare class ApiService {
38
+ fetchAnomalies: (universeUuid: string, startTime?: Date | null, endTime?: Date | null, apiUrl?: string) => Promise<Anomaly[]>;
39
+ fetchAnomaliesPage: (universeUuid: string, pageno: number, apiUrl?: string, records_to_fetch?: number, startTime?: Date | null, endTime?: Date | null, category?: any, searchInput?: string) => Promise<import('axios').AxiosResponse<Anomaly[]>>;
40
+ fetchQueriesPage: (universeUuid: string, payload: any) => Promise<import('axios').AxiosResponse<GraphRequestParams[]>>;
41
+ fetchLoadDbStatsPage: (universeUuid: string, payload: any) => Promise<import('axios').AxiosResponse<GraphRequestParams[]>>;
42
+ fetchTabletStatsPage: (universeUuid: string, payload: any, getClusterDetails: () => ClusterDetails) => Promise<import('axios').AxiosResponse<GraphRequestParams[]>>;
43
+ fetchNodeLoadStatsPage: (universeUuid: string, payload: any) => Promise<import('axios').AxiosResponse<GraphRequestParams[]>>;
44
+ fetchQueriesStatsPage: (universeUuid: string, payload: any, getClusterDetails: () => ClusterDetails, filteredLegends: string[], showSystemQueries?: boolean) => Promise<import('axios').AxiosResponse<GraphRequestParams[]>>;
45
+ fetchNamespaceSchemas: (universeUuid: string, namespaceName: string, apiUrl?: string) => Promise<string[]>;
46
+ fetchQueryStats: (universeUuid: string, payload: {
47
+ queryId: string;
48
+ startTime?: string;
49
+ endTime?: string;
50
+ dbId?: string;
51
+ }, apiUrl?: string) => Promise<QueryPlanData>;
52
+ fetchQueriesExport: (universeUuid: string, payload: {
53
+ apiUrl?: string | undefined;
54
+ startTime?: string | undefined;
55
+ endTime?: string | undefined;
56
+ search?: string | undefined;
57
+ database?: string | undefined;
58
+ queryType?: string | undefined;
59
+ sortBy?: string | undefined;
60
+ sortDirection?: string | undefined;
61
+ topN: number;
62
+ queryKeys?: string[] | undefined;
63
+ includePlans?: boolean | undefined;
64
+ excludeTpUser?: boolean | undefined;
65
+ excludeSystemDBs?: boolean | undefined;
66
+ }, apiUrl?: string, signal?: AbortSignal) => Promise<QueryStatsPagedBody>;
67
+ fetchTablesPage: (universeUuid: string, payload: any) => Promise<import('axios').AxiosResponse<any[]>>;
68
+ fetchNamespaces: (universeUuid: string, apiUrl?: string) => Promise<string[]>;
69
+ fetchQueriesDatabases: (universeUuid: string, apiUrl?: string) => Promise<string[]>;
70
+ fetchAnomaliesById: (universeUuid: string, anomalyUuid: string, apiUrl?: string) => Promise<Anomaly>;
71
+ fetchGraphs: (universeUuid: String, data: any, apiUrl?: string, requestKey?: string) => Promise<ClusterLoadResponseData[]>;
72
+ fetchCustomerMetadataList: (apiUrl?: string) => Promise<MetadataFields[]>;
73
+ fetchCustomerMetadataById: (customerUuid: string, apiUrl?: string) => Promise<any>;
74
+ updateCustomerMetadata: (customerUuid: string, data: any, apiUrl?: string) => Promise<any>;
75
+ deleteCustomerMetadataById: (customerUuid: string, apiUrl?: string) => Promise<any>;
76
+ fetchUniverseMetadataList: (apiUrl?: string, customerUuid?: string, universeUuid?: string) => Promise<MetadataFields[]>;
77
+ getUniverseMetadata: (universeUuid: string, apiUrl?: string) => Promise<any>;
78
+ updateUniverseMetadata: (universeUuid: string, data: any, apiUrl?: string) => Promise<any>;
79
+ deleteUniverseMetadata: (universeUuid: string, apiUrl?: string) => Promise<any>;
80
+ fetchUniverseListDetails: (apiUrl?: string, customerUuid?: string, universeUuid?: string) => Promise<any>;
81
+ fetchUniverseById: (universeUuid: string, apiUrl?: string) => Promise<any>;
82
+ fetchAnomalyDetectionStatus: (universeUuid: string, apiUrl?: string) => Promise<AnomalyDetectionStatus>;
83
+ scheduleAnomalyDetectionStatus: (universeUuid: string, apiUrl?: string) => Promise<AnomalyDetectionStatus>;
84
+ fetchRuntimeConfigs: (scopeUuid?: string, apiUrl?: string) => Promise<string[]>;
85
+ fetchSpecificRuntimeConfigs: (scopeUuid: string | undefined, keys: string[], apiUrl?: string) => Promise<string[]>;
86
+ updateRuntimeConfig: (scopeUuid: string | undefined, configKey: string, configValue: string, apiUrl?: string) => Promise<any>;
87
+ deleteRuntimeConfig: (scopeUuid: string | undefined, configKey: string, apiUrl?: string) => Promise<any>;
88
+ fetchBackgroundTasks: (universeUuid: string, startTime: string | null, endTime: string | null, limit?: number | null, apiUrl?: string) => Promise<BackgroundTasksResponse>;
89
+ fetchAnomalyGroups: (universeUuid: string, startTime: string | null, endTime: string | null, anomalyType: string | undefined, getClusterDetails: () => ClusterDetails, apiUrl?: string) => {};
90
+ fetchAnomalyGroupsByType: (universeUuid: string, startTime: string, endTime: string, anomalyType: string, apiUrl?: string) => Promise<AnomalyGroup[]>;
91
+ fetchAnomalyGroupById: (universeUuid: string, anomalyGroupId: string, startTime: string, endTime: string, apiUrl?: string) => {};
92
+ sendTelemetryEvent: (universeUuid: string, payload: any, apiUrl?: string) => Promise<any>;
93
+ fetchClusterDetails: (universeUuid: string, startTime: string | null, endTime: string | null, apiUrl?: string) => Promise<any>;
94
+ }
95
+ export declare const PerfAdvisorAPI: ApiService;
96
+ export {};
@@ -0,0 +1,20 @@
1
+ import { ReactNode } from 'react';
2
+ import { ChartConfig, RenderErrorFn } from './types';
3
+ import { ChartType, ClusterLoadResponseData } from '../../helpers/dtos';
4
+ export interface ChartCardProps {
5
+ title: string;
6
+ titleInfo?: ReactNode;
7
+ headerRightSlot?: ReactNode;
8
+ data: ClusterLoadResponseData[] | null;
9
+ chartType: ChartType;
10
+ isLoading: boolean;
11
+ isError: boolean;
12
+ errorText?: string;
13
+ metricKey: string;
14
+ timezone?: string;
15
+ config?: ChartConfig;
16
+ renderError?: RenderErrorFn;
17
+ onEChartsDateSelect: (start: number, end: number) => void;
18
+ onFilterBarData?: (data: string[]) => void;
19
+ }
20
+ export declare const ChartCard: ({ title, titleInfo, headerRightSlot, data, chartType, isLoading, isError, errorText, metricKey, timezone, config, renderError, onEChartsDateSelect, onFilterBarData }: ChartCardProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const useChartCardStyles: (props?: any) => import('@material-ui/styles').ClassNameMap<"loadingContainer" | "card" | "titleRow" | "titleGroup" | "titleText" | "rightGroup" | "chartWrapper" | "chart">;
@@ -0,0 +1,8 @@
1
+ import { ChartType } from '../../helpers/dtos';
2
+ interface ChartTypeSelectorProps {
3
+ value: ChartType;
4
+ onChange: (chartType: ChartType) => void;
5
+ dataTestId?: string;
6
+ }
7
+ export declare const ChartTypeSelector: ({ value, onChange, dataTestId }: ChartTypeSelectorProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { DbWaitEventType } from '../../helpers/dtos';
2
+ interface WaitEventTypeSelectorProps {
3
+ value: DbWaitEventType;
4
+ onChange: (waitEventType: DbWaitEventType) => void;
5
+ dataTestId?: string;
6
+ }
7
+ export declare const WaitEventTypeSelector: ({ value, onChange, dataTestId }: WaitEventTypeSelectorProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ClusterLoadResponseData } from '../../helpers/dtos';
2
+ import { BuildOptionsParams, BuildOptionsResult } from './types';
3
+ export declare const buildOptions: (overallMetrics: ClusterLoadResponseData[] | null, params: BuildOptionsParams) => BuildOptionsResult;
@@ -0,0 +1,9 @@
1
+ import { ChartConfig, ResolvedChartDefaults, TooltipFormatter } from './types';
2
+ export declare const MAX_LEGENDS_SIZE = 55;
3
+ export declare const DEFAULT_MAX_NAME_LENGTH = 30;
4
+ export declare const BAR_STACK_NAME = "total";
5
+ export declare const DEFAULT_CHART_DEFAULTS: ResolvedChartDefaults;
6
+ export declare const defaultAbbreviate: (name: string) => string;
7
+ export declare const defaultTooltipFormatter: TooltipFormatter;
8
+ export declare const resolveDefaults: (config: ChartConfig) => ResolvedChartDefaults;
9
+ export declare const DEFAULT_CHART_CONFIG: ChartConfig;
@@ -0,0 +1,2 @@
1
+ import { AnomalyOverlayConfig, EChartsSeriesItem } from '../types';
2
+ export declare const applyAnomalyOverlay: (processedData: EChartsSeriesItem[], startTime: number | undefined, endTime: number | undefined, overlay: AnomalyOverlayConfig | undefined) => void;
@@ -0,0 +1,43 @@
1
+ import { EChartsSeriesItem } from '../types';
2
+ export declare const computeYAxisMax: (processedData: EChartsSeriesItem[]) => number;
3
+ export interface TimeAxisConfig {
4
+ type: 'time';
5
+ min?: number;
6
+ max?: number;
7
+ axisLabel: {
8
+ color: string;
9
+ textStyle: {
10
+ fontFamily: string;
11
+ fontSize: number;
12
+ };
13
+ formatter: (value: number) => string;
14
+ };
15
+ axisLine: {
16
+ lineStyle: {
17
+ color: string;
18
+ };
19
+ };
20
+ }
21
+ export interface ValueAxisConfig {
22
+ type: 'value';
23
+ axisLine: {
24
+ lineStyle: {
25
+ color: string;
26
+ };
27
+ };
28
+ axisLabel: {
29
+ color: string;
30
+ margin: number;
31
+ textStyle: {
32
+ fontFamily: string;
33
+ fontSize: number;
34
+ };
35
+ precision: number;
36
+ };
37
+ splitNumber: number;
38
+ max: number;
39
+ }
40
+ export declare const buildAxes: (timezone: string | undefined, startTime: number | undefined, endTime: number | undefined, yAxisMax: number) => {
41
+ xAxis: TimeAxisConfig;
42
+ yAxis: ValueAxisConfig;
43
+ };
@@ -0,0 +1,11 @@
1
+ export { buildAxes, computeYAxisMax } from './axes';
2
+ export type { TimeAxisConfig, ValueAxisConfig } from './axes';
3
+ export { buildSeries } from './series';
4
+ export type { BuildSeriesResult } from './series';
5
+ export { buildLegend } from './legend';
6
+ export type { BuiltLegend } from './legend';
7
+ export { buildTooltip } from './tooltip';
8
+ export type { BuiltTooltip } from './tooltip';
9
+ export { applyAnomalyOverlay } from './anomalyOverlay';
10
+ export { wireDragToZoom, wireLegendIsolation, injectLegendTestIds } from './interactions';
11
+ export type { DateSelectHandler } from './interactions';
@@ -0,0 +1,6 @@
1
+ import { MutableRefObject } from 'react';
2
+ import * as echarts from 'echarts/core';
3
+ export type DateSelectHandler = (start: number, end: number) => void;
4
+ export declare const wireDragToZoom: (instance: echarts.EChartsType, onSelectRef: MutableRefObject<DateSelectHandler>) => (() => void);
5
+ export declare const wireLegendIsolation: (instance: echarts.EChartsType, activeLegendsRef: MutableRefObject<string[]>, onChange: (newActive: string[]) => void) => void;
6
+ export declare const injectLegendTestIds: (container: HTMLElement | null, nameMapping: Record<string, string>) => void;
@@ -0,0 +1,41 @@
1
+ import { LegendPosition } from '../../../helpers/dtos';
2
+ import { ChartConfig, EChartsSeriesItem, LegendIconOverride, LegendRichStyles } from '../types';
3
+ interface LegendDataEntry {
4
+ name: string;
5
+ icon?: LegendIconOverride;
6
+ }
7
+ export interface BuiltLegend {
8
+ type: 'scroll';
9
+ tooltip: {
10
+ show: boolean;
11
+ formatter: (params: {
12
+ name: string;
13
+ }) => string | null;
14
+ };
15
+ orient: 'horizontal' | 'vertical';
16
+ icon: 'roundRect';
17
+ itemWidth: number;
18
+ itemHeight: number;
19
+ itemGap: number;
20
+ itemStyle: {
21
+ borderColor: string;
22
+ borderWidth: number;
23
+ };
24
+ left?: number;
25
+ top?: number;
26
+ bottom?: number;
27
+ height?: number;
28
+ width?: number;
29
+ padding?: number;
30
+ textStyle: {
31
+ fontFamily: string;
32
+ fontWeight: number;
33
+ fontSize: number;
34
+ color: string;
35
+ rich: LegendRichStyles;
36
+ };
37
+ data: Array<string | LegendDataEntry>;
38
+ formatter: (name: string) => string;
39
+ }
40
+ export declare const buildLegend: (legendPosition: LegendPosition, processedData: EChartsSeriesItem[], nameMapping: Record<string, string>, config: ChartConfig) => BuiltLegend;
41
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ChartType, ClusterLoadResponseData } from '../../../helpers/dtos';
2
+ import { ChartConfig, EChartsSeriesItem } from '../types';
3
+ export interface BuildSeriesResult {
4
+ processedData: EChartsSeriesItem[];
5
+ nameMapping: Record<string, string>;
6
+ startTime: number | undefined;
7
+ endTime: number | undefined;
8
+ }
9
+ export declare const buildSeries: (overallMetrics: ClusterLoadResponseData[] | null, config: ChartConfig, chartType: ChartType, showLineSymbols: boolean) => BuildSeriesResult;
@@ -0,0 +1,27 @@
1
+ import { ChartConfig, EChartsTooltipParams, EChartsTooltipTrigger } from '../types';
2
+ export interface BuiltTooltip {
3
+ trigger: EChartsTooltipTrigger;
4
+ appendToBody: boolean;
5
+ confine: boolean;
6
+ axisPointer: {
7
+ type: 'shadow';
8
+ shadowStyle: {
9
+ color: string;
10
+ };
11
+ lineStyle: {
12
+ color: string;
13
+ width: number;
14
+ };
15
+ };
16
+ textStyle: {
17
+ fontFamily: string;
18
+ fontSize: number;
19
+ lineHeight: number;
20
+ color: string;
21
+ fontWeight: number;
22
+ };
23
+ extraCssText: string;
24
+ z: number;
25
+ formatter: (params: EChartsTooltipParams) => string;
26
+ }
27
+ export declare const buildTooltip: (timezone: string | undefined, nameMapping: Record<string, string>, config: ChartConfig) => BuiltTooltip;
@@ -0,0 +1,8 @@
1
+ export { ChartCard } from './ChartCard';
2
+ export type { ChartCardProps } from './ChartCard';
3
+ export { ChartTypeSelector } from './ChartTypeSelector';
4
+ export { WaitEventTypeSelector } from './WaitEventTypeSelector';
5
+ export { buildOptions } from './buildOptions';
6
+ export { DEFAULT_CHART_CONFIG } from './defaults';
7
+ export { ChartLineType } from './types';
8
+ export type { ChartConfig, ChartConfigDefaults, AnomalyOverlayConfig, AbbreviationConfig, ResolvedChartDefaults, SeriesDataItem, SeriesNameContext, SeriesBuildContext, LegendItemDescriptor, LegendIconOverride, LegendRichStyles, RichTextFragment, EChartsAxisValue, EChartsPoint, EChartsSymbol, EChartsLineStyle, EChartsItemStyle, EChartsSeriesEmphasis, EChartsSeriesItem, EChartsMarkArea, EChartsMarkAreaDatum, EChartsTooltipTrigger, EChartsTooltipParam, EChartsTooltipParams, EChartsLegendSelectChangedParams, ZrMouseEvent, MarkAreaStyleOverride, TooltipFormatter, RenderErrorFn, BuildOptionsParams, BuildOptionsResult, BuiltChartOption } from './types';
@@ -0,0 +1,171 @@
1
+ import { ReactNode } from 'react';
2
+ import { AnomalyGroup, ChartType, ClusterLoadResponseData, LegendPosition } from '../../helpers/dtos';
3
+ export interface SeriesDataItem {
4
+ name: string;
5
+ x: number[] | string[];
6
+ y: string[] | number[];
7
+ type?: string;
8
+ namespaceName?: string;
9
+ instanceName?: string;
10
+ }
11
+ export type EChartsAxisValue = number | string;
12
+ export type EChartsPoint = [EChartsAxisValue, EChartsAxisValue];
13
+ export declare enum ChartLineType {
14
+ SOLID = "solid",
15
+ DASHED = "dashed",
16
+ DOTTED = "dotted"
17
+ }
18
+ export type EChartsSymbol = 'none' | 'circle';
19
+ export type EChartsTooltipTrigger = 'axis' | 'item';
20
+ export interface EChartsLineStyle {
21
+ color?: string;
22
+ width?: number;
23
+ type?: ChartLineType | number[];
24
+ }
25
+ export interface EChartsItemStyle {
26
+ color?: string;
27
+ borderColor?: string;
28
+ borderWidth?: number;
29
+ }
30
+ export interface EChartsSeriesEmphasis {
31
+ lineStyle?: EChartsLineStyle;
32
+ itemStyle?: EChartsItemStyle;
33
+ symbolSize?: number;
34
+ }
35
+ export interface EChartsMarkAreaDatum {
36
+ xAxis: EChartsAxisValue;
37
+ }
38
+ export interface EChartsMarkArea {
39
+ xAxisIndex?: number;
40
+ data: Array<[EChartsMarkAreaDatum, EChartsMarkAreaDatum]>;
41
+ itemStyle?: EChartsItemStyle;
42
+ }
43
+ export interface EChartsSeriesItem {
44
+ name: string;
45
+ type: 'line' | 'bar';
46
+ stack?: string | null;
47
+ data: EChartsPoint[];
48
+ showLegend: boolean;
49
+ tooltip?: {
50
+ show: boolean;
51
+ };
52
+ lineStyle?: EChartsLineStyle;
53
+ itemStyle?: EChartsItemStyle;
54
+ symbol?: EChartsSymbol;
55
+ symbolSize?: number;
56
+ silent?: boolean;
57
+ z?: number;
58
+ emphasis?: EChartsSeriesEmphasis;
59
+ markArea?: EChartsMarkArea;
60
+ thresholdCap?: boolean;
61
+ }
62
+ export interface EChartsTooltipParam {
63
+ seriesName: string;
64
+ value: EChartsAxisValue | EChartsPoint;
65
+ color: string;
66
+ axisValueLabel?: string;
67
+ }
68
+ export type EChartsTooltipParams = EChartsTooltipParam | EChartsTooltipParam[];
69
+ export type TooltipFormatter = (params: EChartsTooltipParams, nameMapping: Record<string, string>, timezone?: string) => string;
70
+ export interface EChartsLegendSelectChangedParams {
71
+ name: string;
72
+ selected: Record<string, boolean>;
73
+ }
74
+ export interface ZrMouseEvent {
75
+ offsetX: number;
76
+ offsetY: number;
77
+ }
78
+ export interface RichTextFragment {
79
+ backgroundColor?: string | {
80
+ image: string;
81
+ };
82
+ width?: number;
83
+ height?: number;
84
+ padding?: number | [number, number, number, number];
85
+ lineHeight?: number;
86
+ borderWidth?: number;
87
+ borderColor?: string;
88
+ borderType?: 'solid' | 'dashed' | 'dotted';
89
+ color?: string;
90
+ fontSize?: number;
91
+ fontWeight?: number | 'normal' | 'bold';
92
+ fontFamily?: string;
93
+ }
94
+ export type LegendRichStyles = Record<string, RichTextFragment>;
95
+ export interface SeriesNameContext {
96
+ item: SeriesDataItem;
97
+ metric: ClusterLoadResponseData;
98
+ index: number;
99
+ }
100
+ export interface SeriesBuildContext {
101
+ item: SeriesDataItem;
102
+ rawName: string;
103
+ resolvedName: string;
104
+ displayName: string;
105
+ index: number;
106
+ defaultColor: string;
107
+ seriesType: 'line' | 'bar';
108
+ showLegend: boolean;
109
+ showLineSymbols: boolean;
110
+ }
111
+ export type LegendIconOverride = 'none' | 'roundRect' | 'circle';
112
+ export interface LegendItemDescriptor {
113
+ iconOverride?: LegendIconOverride;
114
+ formattedLabel?: string;
115
+ }
116
+ export type MarkAreaStyleOverride = Partial<Omit<EChartsMarkArea, 'data' | 'xAxisIndex'>>;
117
+ export interface AnomalyOverlayConfig {
118
+ data: AnomalyGroup | null | undefined;
119
+ markAreaStyle?: MarkAreaStyleOverride;
120
+ enabled?: () => boolean;
121
+ }
122
+ export interface AbbreviationConfig {
123
+ enabled: boolean;
124
+ maxLength: number;
125
+ abbreviate?: (name: string) => string;
126
+ }
127
+ export interface ChartConfigDefaults {
128
+ legendPosition?: LegendPosition;
129
+ showLineSymbols?: boolean;
130
+ enableLegendIsolation?: boolean;
131
+ }
132
+ export interface ChartConfig {
133
+ resolveSeriesName: (ctx: SeriesNameContext) => string;
134
+ sortSeries?: (items: SeriesDataItem[]) => SeriesDataItem[];
135
+ buildSeriesItem?: (ctx: SeriesBuildContext) => EChartsSeriesItem[] | null;
136
+ getLegendItem?: (name: string) => LegendItemDescriptor | null;
137
+ legendRichStyles?: LegendRichStyles;
138
+ tooltipTrigger?: EChartsTooltipTrigger;
139
+ tooltipFormatter?: TooltipFormatter;
140
+ abbreviation?: AbbreviationConfig;
141
+ anomalyOverlay?: AnomalyOverlayConfig;
142
+ defaults?: ChartConfigDefaults;
143
+ }
144
+ export interface ResolvedChartDefaults {
145
+ legendPosition: LegendPosition;
146
+ showLineSymbols: boolean;
147
+ enableLegendIsolation: boolean;
148
+ }
149
+ export interface BuildOptionsParams {
150
+ config: ChartConfig;
151
+ chartType: ChartType;
152
+ timezone?: string;
153
+ }
154
+ export interface BuiltChartOption {
155
+ tooltip: unknown;
156
+ legend: unknown;
157
+ grid: unknown;
158
+ xAxis: unknown;
159
+ yAxis: unknown;
160
+ series: unknown[];
161
+ toolbox: {
162
+ show: boolean;
163
+ };
164
+ brush?: unknown;
165
+ graphic?: unknown;
166
+ }
167
+ export interface BuildOptionsResult {
168
+ options: BuiltChartOption;
169
+ nameMapping: Record<string, string>;
170
+ }
171
+ export type RenderErrorFn = (errorText?: string) => ReactNode;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface CopyToClipboardButtonProps {
3
+ text: string;
4
+ altText?: string;
5
+ resetMs?: number;
6
+ }
7
+ export declare const CopyToClipboardButton: ({ text, altText, resetMs }: CopyToClipboardButtonProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { AnomalyGroup, MetricMeasure } from '../../helpers/dtos';
2
+ interface MetricSplitSelectorProps {
3
+ metricSplitSelectors: any;
4
+ anomalyData?: AnomalyGroup | null;
5
+ onSplitTypeSelected: (selectedOption: MetricMeasure) => void;
6
+ }
7
+ export declare const MetricSplitSelector: ({ metricSplitSelectors, onSplitTypeSelected, anomalyData }: MetricSplitSelectorProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,13 @@
1
+ import { MetricMeasure, SplitMode } from '../../helpers/dtos';
2
+ interface OutlierSelectorProps {
3
+ metricOutlierSelectors: any;
4
+ selectedNumNodes: number;
5
+ outlierType: SplitMode;
6
+ onOutlierTypeSelected: (selectedOption: SplitMode) => void;
7
+ onNumNodesChanged: (numNodes: number) => void;
8
+ metricMeasure?: MetricMeasure;
9
+ showNumNodesInput?: boolean;
10
+ showNumNodesSelector?: boolean;
11
+ }
12
+ export declare const OutlierSelector: ({ metricOutlierSelectors, selectedNumNodes, outlierType, onOutlierTypeSelected, onNumNodesChanged, metricMeasure, showNumNodesInput, showNumNodesSelector }: OutlierSelectorProps) => JSX.Element;
13
+ export {};
@@ -0,0 +1,8 @@
1
+ import { QueryTypeMode } from '../../helpers/dtos';
2
+ interface QueryTypeSelectorProps {
3
+ queryTypeSelectors: any;
4
+ queryType: QueryTypeMode;
5
+ onQueryTypeSelected: (selectedOption: QueryTypeMode) => void;
6
+ }
7
+ export declare const QueryTypeSelector: ({ queryTypeSelectors, queryType, onQueryTypeSelected }: QueryTypeSelectorProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ClusterRegionSelection } from '../../components/hooks/useClusterFilterState';
2
+ interface ClusterRegionSelectorProps {
3
+ selectedItem: string;
4
+ primaryClusterToRegionMap: any;
5
+ asyncClusterToRegionMap: any;
6
+ onClusterRegionSelected: (selection: ClusterRegionSelection) => void;
7
+ }
8
+ export declare const ClusterRegionSelector: ({ selectedItem, primaryClusterToRegionMap, asyncClusterToRegionMap, onClusterRegionSelected }: ClusterRegionSelectorProps) => JSX.Element;
9
+ export {};
@@ -0,0 +1,11 @@
1
+ import { ZoneNodeSelection } from '../../components/hooks/useClusterFilterState';
2
+ interface ZoneNodeSelectorProps {
3
+ selectedItem: string;
4
+ primaryZoneToNodesMap: any;
5
+ asyncZoneToNodesMap: any;
6
+ primaryClusterUuid?: string;
7
+ asyncClusterUuid?: string;
8
+ onZoneNodeSelected: (selection: ZoneNodeSelection) => void;
9
+ }
10
+ export declare const ZoneNodeSelector: ({ selectedItem, primaryZoneToNodesMap, asyncZoneToNodesMap, primaryClusterUuid, asyncClusterUuid, onZoneNodeSelected }: ZoneNodeSelectorProps) => JSX.Element;
11
+ export {};
@@ -0,0 +1,23 @@
1
+ import { AceMode } from '../../helpers/utils';
2
+ export interface MetadataEntry {
3
+ label: string;
4
+ value: string;
5
+ }
6
+ interface PerfAdvisorCodeBlockProps {
7
+ text: string;
8
+ mode?: AceMode;
9
+ metadata?: MetadataEntry[];
10
+ loading?: boolean;
11
+ showLineNumbers?: boolean;
12
+ showCopyButton?: boolean;
13
+ maxLines?: number;
14
+ minLines?: number;
15
+ fontSize?: number;
16
+ fontFamily?: string;
17
+ width?: string;
18
+ height?: string;
19
+ className?: string;
20
+ copyText?: string;
21
+ }
22
+ export declare const PerfAdvisorCodeBlock: ({ text, mode, metadata, loading, showLineNumbers, showCopyButton, maxLines, minLines, fontSize, fontFamily, width, height, className, copyText }: PerfAdvisorCodeBlockProps) => JSX.Element;
23
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ import { FieldValues, UseControllerProps } from 'react-hook-form';
3
+ import { YBCheckboxProps } from '@yugabyte-ui-library/core';
4
+ type YBCheckboxFieldProps<T extends FieldValues> = UseControllerProps<T> & YBCheckboxProps;
5
+ export declare const YBCheckboxField: <T extends FieldValues>(props: YBCheckboxFieldProps<T>) => ReactElement;
6
+ export {};
@@ -0,0 +1 @@
1
+ export declare const useCodeBlockStyles: (props?: any) => import('@material-ui/styles').ClassNameMap<"searchBox" | "containerClassName" | "preClassName" | "codeClassName" | "refreshBtn" | "codeBlock" | "codeBlockSqlView" | "tableHeaderCell" | "rowTableCell" | "tableContainer" | "tableRow" | "queryTableRow" | "queryTableCell" | "queryPreBlock" | "queryPreBlockYBM" | "queryPreBlockWeb" | "queryPreBlockFull" | "queryCodeElement" | "queryCodeElementWeb" | "queryContainerCodeInTable" | "queryContainerCodeInBreadcrumbs" | "codeClassNameInTable" | "preClassNameInTable" | "defaultActions" | "overrideExpandBtn" | "preQueryBlock" | "queryCellBox">;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface YBErrorIndicatorProps {
3
+ type?: string;
4
+ uuid?: string;
5
+ customErrorMessage?: string;
6
+ }
7
+ export declare const YBErrorIndicator: ({ type, uuid, customErrorMessage }: YBErrorIndicatorProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from 'react';
2
+ import { UseControllerProps, FieldValues } from 'react-hook-form';
3
+ import { YBInputProps } from '@yugabyte-ui-library/core';
4
+ export type YBInputFieldProps<T extends FieldValues> = UseControllerProps<T> & YBInputProps & {
5
+ dataTestId?: string;
6
+ };
7
+ export declare const YBInputField: <T extends FieldValues>(props: YBInputFieldProps<T>) => ReactElement;