@yugabytedb/perf-advisor-ui 1.0.67 → 1.0.69

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/dist/types.d.ts CHANGED
@@ -1,12 +1,9 @@
1
- import React, { ReactNode, FC, ReactElement, HTMLAttributes, VFC } from 'react';
1
+ import { MUIDataTableColumnOptions, YBInputProps, YBToggleProps, YBCheckboxProps } from '@yugabyte-ui-library/core';
2
2
  import * as axios from 'axios';
3
- import { ButtonProps, MenuProps, SelectProps, StandardTextFieldProps, CheckboxProps, InputProps, PopperProps, TooltipProps } from '@material-ui/core';
4
- import { LinkProps } from 'react-router-dom';
3
+ import React, { FC, ReactElement, ReactNode } from 'react';
5
4
  import * as _material_ui_core_styles_withStyles from '@material-ui/core/styles/withStyles';
6
5
  import { FieldValues, UseControllerProps } from 'react-hook-form';
7
- import { YBInputProps, YBToggleProps, YBCheckboxProps as YBCheckboxProps$1 } from '@yugabyte-ui-library/core';
8
6
  import { FetchNextPageOptions, InfiniteQueryObserverResult } from 'react-query';
9
- import { MUIDataTableColumn, MUIDataTableOptions } from 'mui-datatables';
10
7
 
11
8
  interface Universe {
12
9
  creationDate: string;
@@ -507,34 +504,10 @@ declare enum AnomalyTypeFilter {
507
504
  PERF_ANOMALY = "PERF_ANOMALY",
508
505
  INSIGHT = "INSIGHT"
509
506
  }
510
- interface MUIDataTableMeta {
511
- rowIndex: number;
512
- columnIndex: number;
513
- columnData: unknown[];
514
- rowData: unknown[];
515
- tableData: unknown[][];
516
- tableState: unknown;
517
- }
518
- interface MUIDataTableColumnMeta {
519
- index: number;
520
- name: string;
521
- label?: string;
522
- }
523
- type SortOrder = "asc" | "desc" | "none";
524
- interface ColumnOptions {
525
- display?: boolean | "true" | "false" | "excluded";
526
- filter?: boolean;
527
- sort?: boolean;
528
- customBodyRender?: (value: unknown, tableMeta: MUIDataTableMeta, updateValue: (value: unknown) => void) => ReactNode;
529
- customHeadRender?: (columnMeta: MUIDataTableColumnMeta, updateDirection?: (direction: SortOrder) => void, sortOrder?: SortOrder) => ReactNode;
530
- setCellProps?: () => Record<string, unknown>;
531
- setCellHeaderProps?: () => Record<string, unknown>;
532
- hideHeader?: boolean;
533
- }
534
507
  interface Column {
535
508
  name: string;
536
509
  label?: string;
537
- options?: ColumnOptions;
510
+ options?: MUIDataTableColumnOptions;
538
511
  }
539
512
  interface GraphAxisData {
540
513
  labels: Record<string, string>;
@@ -680,14 +653,6 @@ declare class ApiService {
680
653
  }
681
654
  declare const PerfAdvisorAPI: ApiService;
682
655
 
683
- type MUIButtonProps = ButtonProps & Partial<LinkProps>;
684
- interface YBButtonProps extends Omit<MUIButtonProps, 'variant' | 'color' | 'classes'> {
685
- variant?: 'primary' | 'secondary' | 'ghost' | 'gradient' | 'pill';
686
- showSpinner?: boolean;
687
- selected?: boolean;
688
- }
689
- declare const YBButton: FC<YBButtonProps>;
690
-
691
656
  interface CodeBlockProps {
692
657
  showCopyButton?: boolean;
693
658
  multiBlock?: boolean;
@@ -715,53 +680,10 @@ interface YBErrorIndicatorProps {
715
680
  }
716
681
  declare const YBErrorIndicator: ({ type, uuid, customErrorMessage }: YBErrorIndicatorProps) => JSX.Element;
717
682
 
718
- type YBInputFieldProps$1<T extends FieldValues> = UseControllerProps<T> & YBInputProps;
719
- declare const YBInputField: <T extends FieldValues>(props: YBInputFieldProps$1<T>) => ReactElement;
720
-
721
- type YBSelectProps = {
722
- tooltip?: ReactNode;
723
- renderValue?: (value: unknown) => ReactNode;
724
- menuProps?: Partial<MenuProps>;
725
- selectProps?: Partial<SelectProps>;
726
- } & Omit<StandardTextFieldProps, 'variant' | 'color' | 'classes' | 'select' | 'size' | 'placeholder' | 'FormHelperTextProps' | 'SelectProps'>;
727
- declare const YBSelect: FC<YBSelectProps>;
728
-
729
- declare enum AlertVariant {
730
- Info = "info",
731
- Warning = "warning",
732
- Error = "error",
733
- Success = "success",
734
- InProgress = "inProgress"
735
- }
736
- interface TransitionProps {
737
- appear?: number;
738
- enter?: number;
739
- exit?: number;
740
- }
741
- interface AlertProps {
742
- open: boolean;
743
- text: string | ReactNode;
744
- icon?: ReactNode;
745
- onClose?: () => void;
746
- autoDismiss?: number;
747
- width?: number;
748
- isToast?: boolean;
749
- variant?: AlertVariant;
750
- key?: string | number;
751
- position?: number;
752
- className?: string;
683
+ type YBInputFieldProps$1<T extends FieldValues> = UseControllerProps<T> & YBInputProps & {
753
684
  dataTestId?: string;
754
- transitionTimeout?: number | TransitionProps;
755
- }
756
- declare const YBAlert: FC<AlertProps>;
757
-
758
- interface YBCheckboxProps extends CheckboxProps {
759
- label: React.ReactNode;
760
- labelClassName?: string;
761
- showCheckedIcon?: boolean;
762
- inputProps?: InputProps['inputProps'];
763
- }
764
- declare const YBCheckbox: FC<YBCheckboxProps>;
685
+ };
686
+ declare const YBInputField: <T extends FieldValues>(props: YBInputFieldProps$1<T>) => ReactElement;
765
687
 
766
688
  interface YBInfinitePaginationProps<T> {
767
689
  dataPrefetchFn: (options?: FetchNextPageOptions | undefined) => Promise<InfiniteQueryObserverResult<T, unknown>>;
@@ -799,20 +721,6 @@ interface YBPanelItemProps {
799
721
  }
800
722
  declare const YBPanelItem: ({ noBackground, className, bodyClassName, children, body, header, title }: YBPanelItemProps) => JSX.Element;
801
723
 
802
- interface CustomTableOptions extends MUIDataTableOptions {
803
- customHeader?: ReactNode;
804
- }
805
- interface YBTableProps extends HTMLAttributes<unknown> {
806
- tableTitle?: ReactNode;
807
- selectableRows?: 'single' | 'multiple' | 'none';
808
- data: (Record<any, any> | number[] | string[])[];
809
- columns: MUIDataTableColumn[];
810
- options?: CustomTableOptions;
811
- withBorder?: boolean;
812
- dataTestId?: string;
813
- }
814
- declare const YBTable: ({ tableTitle, selectableRows, withBorder, data, columns, options, className, dataTestId }: YBTableProps) => ReactElement;
815
-
816
724
  type CustomFooterFunction = (count: number, page: number, rowsPerPage: number, changeRowsPerPage: (newPage: string | number) => void, changePage: (newPage: number) => void) => ReactNode;
817
725
  declare const getCustomFooterComponent: <T>(fetchNextPage: (options?: FetchNextPageOptions) => Promise<InfiniteQueryObserverResult<T, unknown>>, pageSizeCaptionText: string, dataLength: number, hasNextPage?: boolean) => CustomFooterFunction | undefined;
818
726
 
@@ -824,16 +732,7 @@ interface RowItemClasses {
824
732
  queryContainerCode: string;
825
733
  overrideExpandBtn: string;
826
734
  }
827
- declare const getRowCellComponent: (appName: AppName, currentTablePage: number, displayedRows: any[], classes: any & RowItemClasses, showQuery: boolean, tableColumns: MUIDataTableColumn[], ignoredColumns: string[], startTime: string | null, endTime: string | null, expandedRowIndex: number | null, handleExpandedRowIndex: (index: number | null) => void, onSelectedQuery?: ((queryId: string, params: QueryPageParams) => void) | undefined) => (data: any[], dataIndex: number) => ReactNode;
828
-
829
- type YBTooltipProps = {
830
- children?: ReactElement;
831
- dark?: boolean;
832
- PopperProps?: Partial<PopperProps> & {
833
- 'data-testid'?: string;
834
- };
835
- } & Omit<TooltipProps, 'children'>;
836
- declare const YBTooltip: VFC<YBTooltipProps>;
735
+ declare const getRowCellComponent: (appName: AppName, currentTablePage: number, displayedRows: any[], classes: any & RowItemClasses, showQuery: boolean, tableColumns: Column[], ignoredColumns: string[], startTime: string | null, endTime: string | null, expandedRowIndex: number | null, handleExpandedRowIndex: (index: number | null) => void, onSelectedQuery?: ((queryId: string, params: QueryPageParams) => void) | undefined) => (data: any[], dataIndex: number) => ReactNode;
837
736
 
838
737
  type YBInputFieldProps<T extends FieldValues> = UseControllerProps<T> & YBToggleProps;
839
738
  declare const YBToggleField: <T extends FieldValues>(props: YBInputFieldProps<T>) => ReactElement;
@@ -851,8 +750,10 @@ interface OutlierSelectorProps {
851
750
  outlierType: SplitMode;
852
751
  onOutlierTypeSelected: (selectedOption: SplitMode) => void;
853
752
  onNumNodesChanged: (numNodes: number) => void;
753
+ showNumNodesInput?: boolean;
754
+ showNumNodesSelector?: boolean;
854
755
  }
855
- declare const OutlierSelector: ({ metricOutlierSelectors, selectedNumNodes, outlierType, onOutlierTypeSelected, onNumNodesChanged }: OutlierSelectorProps) => JSX.Element;
756
+ declare const OutlierSelector: ({ metricOutlierSelectors, selectedNumNodes, outlierType, onOutlierTypeSelected, onNumNodesChanged, showNumNodesInput, showNumNodesSelector }: OutlierSelectorProps) => JSX.Element;
856
757
 
857
758
  interface ClusterRegionSelectorProps$1 {
858
759
  selectedItem: string;
@@ -870,7 +771,7 @@ interface ClusterRegionSelectorProps {
870
771
  }
871
772
  declare const ClusterRegionSelector: ({ selectedItem, primaryClusterToRegionMap, asyncClusterToRegionMap, onClusterRegionSelected }: ClusterRegionSelectorProps) => JSX.Element;
872
773
 
873
- type YBCheckboxFieldProps<T extends FieldValues> = UseControllerProps<T> & YBCheckboxProps$1;
774
+ type YBCheckboxFieldProps<T extends FieldValues> = UseControllerProps<T> & YBCheckboxProps;
874
775
  declare const YBCheckboxField: <T extends FieldValues>(props: YBCheckboxFieldProps<T>) => ReactElement;
875
776
 
876
777
  declare const IN_DEVELOPMENT_MODE: boolean;
@@ -1270,4 +1171,4 @@ interface YBThemeWrapperProps {
1270
1171
  */
1271
1172
  declare const YBThemeWrapper: React.FC<YBThemeWrapperProps>;
1272
1173
 
1273
- export { ACTIVE_SESSION_HISOTRY_EPS_CLIENT_NODE, ACTIVE_SESSION_HISTORY_EPS_GLOBAL, ACTIVE_SESSION_HISTORY_QUERY_EVENTS, ALL, ALL_REGIONS, ALL_ZONES, ANOMALY_CATEGORY_LIST, ANOMALY_FILTER_DURATION_OPTIONS, ANOMALY_TAG, ANOMALY_TYPE_TO_NAME_MAP, ASH, ASH_GROUPBY_VALUES, AggregatedLineSettings, Aggregation, AlertVariant, Anomaly, AnomalyCategory, AnomalyDetails, AnomalyDetectionStatus, AnomalyDetectionStatusText, AnomalyGroup, AnomalyInstance, AnomalyResponse, AnomalyType, AnomalyTypeFilter, AppName, AttachUniversePayload, AuthDetails, BACKGROUND_QUERY_REQUEST_GRAPHS, CATALOG_READ_REQUEST_GRAPH, CATEGORY_HEADER_DATA_MAP, COLORS, CORES, CPU_CORES, CPU_COUNT, CQL_QUERY_REQUEST_GRAPHS, ChartType, ClusterLoadOverallTabs, ClusterLoadResponseData, ClusterLoadSubTabs, ClusterNodeInfo, ClusterNodeListMetadata, ClusterRegionSelector, Column, ColumnOptions, ConfigureUniverseMetadata, DB_CAPS_TAG_, DB_TAG, DEFAULT_ERROR_MESSAGES, DEFAULT_RECORDS_PER_PAGE, ELLIPSIS, FormattedAnomalyRca, GLOBAL_RUNTIME_CONFIG, GROUP_BY_OPERATIONS, GraphAxisData, GraphFilters, GraphMetadata, GraphRequestParams, GraphResponse, GraphSettings, GraphType, GroupEventsParam, IN_DEVELOPMENT_MODE, InsightsTabs, MAX_OUTLIER_NUM_NODES, METRICS_OUTLIER_DATABASES_STORAGE_KEY, METRICS_OUTLIER_TABLES_STORAGE_KEY, METRICS_SESSION_STORAGE_KEY, METRIC_DB_RESOURCES_WITH_GRAPHS, METRIC_FONT, METRIC_NAMES, METRIC_RESOURCES_WITH_GRAPHS, METRIC_TABLES_RESOURCES_WITH_GRAPHS, METRIC_TABS, METRIC_TABS_DATABASES, METRIC_TABS_TABLES, MIN_OUTLIER_NUM_NODES, MORE, MetadataFields, MetricConsts, MetricMeasure, MetricOrigin, MetricSplitSelector, MetricsAnalysisEntry, MetricsAnalysisEntryProps, NAME_COLOR_MAPPING, NodeData, NodeDataCloudInfo, NodeDataMetrics, NodeDetails, NodeInfo, NodeState, OutlierSelector, PAUrlParams, PerfAdvisorAPI, PerfAdvisorEntry, PrimaryDashboardViewTabs, QUERIES, QUERY_DETAILS, QUERY_KEY, QUERY_TAG, QUERY_TYPE_TAG, QueryPageParams, QueryType, QueryTypeMode, QueryWaitEvents, RCAGuideline, RCA_GANT_CHART, REACT_APP_API_URL, REGION_TAG, REGION_ZONE_TAG, RUNTIME_CONFIG_KEYS, Resources, RowItemClasses$1 as RowItemClasses, RuntimeConfigData, RuntimeConfigType, RuntimeConfigs, SQL_QUERY_REQUEST_GRAPHS, SortDirection, SplitMode, SplitType, TABLET_ID_TAG, TABLET_TAG, TABLE_REQUEST_GRAPHS, TABLE_TAG, TIME_FILTER_LABEL, TIME_FILTER_VALUES, TPFeatureFlags, TYPE, TableInfo, TablePageParams, TroubleshootingRecommendations, URL_TAB_PATH, USER_TAG, Universe, UniverseConfig, UniverseMetadataFields, UniverseQueryData, UniverseQueryStatsData, UpdateMetadataFormFields, UpdateRuntimeConfigFormFields, UrlParams, VIEW_MORE, WAIT_EVENT_MAPPING, WaitEventClassification, YBAlert, YBButton, YBCheckbox, YBCheckboxField, YBCodeBlock, YBErrorIndicator, YBInfinitePagination, YBInputField, YBPagination, YBPanelItem, YBSelect, YBTable, YBThemeWrapper, YBToggleField, YBTooltip, ZONE_TAG, ZoneNodeSelector, filterDurations, getCustomFooterComponent, getRowCellComponent, isDefinedNotNull, isEmptyArray, isEmptyObject, isEmptyString, isNonEmptyArray, isNonEmptyObject, isNonEmptyString, isNullOrEmpty, isValidObject, isYAxisGreaterThanThousand, metricOutlierSelectors, metricSplitSelectors, otherSplitSelectors, queryTypeSelectors, removeNullProperties, useCodeBlockStyles };
1174
+ export { ACTIVE_SESSION_HISOTRY_EPS_CLIENT_NODE, ACTIVE_SESSION_HISTORY_EPS_GLOBAL, ACTIVE_SESSION_HISTORY_QUERY_EVENTS, ALL, ALL_REGIONS, ALL_ZONES, ANOMALY_CATEGORY_LIST, ANOMALY_FILTER_DURATION_OPTIONS, ANOMALY_TAG, ANOMALY_TYPE_TO_NAME_MAP, ASH, ASH_GROUPBY_VALUES, AggregatedLineSettings, Aggregation, Anomaly, AnomalyCategory, AnomalyDetails, AnomalyDetectionStatus, AnomalyDetectionStatusText, AnomalyGroup, AnomalyInstance, AnomalyResponse, AnomalyType, AnomalyTypeFilter, AppName, AttachUniversePayload, AuthDetails, BACKGROUND_QUERY_REQUEST_GRAPHS, CATALOG_READ_REQUEST_GRAPH, CATEGORY_HEADER_DATA_MAP, COLORS, CORES, CPU_CORES, CPU_COUNT, CQL_QUERY_REQUEST_GRAPHS, ChartType, ClusterLoadOverallTabs, ClusterLoadResponseData, ClusterLoadSubTabs, ClusterNodeInfo, ClusterNodeListMetadata, ClusterRegionSelector, Column, ConfigureUniverseMetadata, DB_CAPS_TAG_, DB_TAG, DEFAULT_ERROR_MESSAGES, DEFAULT_RECORDS_PER_PAGE, ELLIPSIS, FormattedAnomalyRca, GLOBAL_RUNTIME_CONFIG, GROUP_BY_OPERATIONS, GraphAxisData, GraphFilters, GraphMetadata, GraphRequestParams, GraphResponse, GraphSettings, GraphType, GroupEventsParam, IN_DEVELOPMENT_MODE, InsightsTabs, MAX_OUTLIER_NUM_NODES, METRICS_OUTLIER_DATABASES_STORAGE_KEY, METRICS_OUTLIER_TABLES_STORAGE_KEY, METRICS_SESSION_STORAGE_KEY, METRIC_DB_RESOURCES_WITH_GRAPHS, METRIC_FONT, METRIC_NAMES, METRIC_RESOURCES_WITH_GRAPHS, METRIC_TABLES_RESOURCES_WITH_GRAPHS, METRIC_TABS, METRIC_TABS_DATABASES, METRIC_TABS_TABLES, MIN_OUTLIER_NUM_NODES, MORE, MetadataFields, MetricConsts, MetricMeasure, MetricOrigin, MetricSplitSelector, MetricsAnalysisEntry, MetricsAnalysisEntryProps, NAME_COLOR_MAPPING, NodeData, NodeDataCloudInfo, NodeDataMetrics, NodeDetails, NodeInfo, NodeState, OutlierSelector, PAUrlParams, PerfAdvisorAPI, PerfAdvisorEntry, PrimaryDashboardViewTabs, QUERIES, QUERY_DETAILS, QUERY_KEY, QUERY_TAG, QUERY_TYPE_TAG, QueryPageParams, QueryType, QueryTypeMode, QueryWaitEvents, RCAGuideline, RCA_GANT_CHART, REACT_APP_API_URL, REGION_TAG, REGION_ZONE_TAG, RUNTIME_CONFIG_KEYS, Resources, RowItemClasses$1 as RowItemClasses, RuntimeConfigData, RuntimeConfigType, RuntimeConfigs, SQL_QUERY_REQUEST_GRAPHS, SortDirection, SplitMode, SplitType, TABLET_ID_TAG, TABLET_TAG, TABLE_REQUEST_GRAPHS, TABLE_TAG, TIME_FILTER_LABEL, TIME_FILTER_VALUES, TPFeatureFlags, TYPE, TableInfo, TablePageParams, TroubleshootingRecommendations, URL_TAB_PATH, USER_TAG, Universe, UniverseConfig, UniverseMetadataFields, UniverseQueryData, UniverseQueryStatsData, UpdateMetadataFormFields, UpdateRuntimeConfigFormFields, UrlParams, VIEW_MORE, WAIT_EVENT_MAPPING, WaitEventClassification, YBCheckboxField, YBCodeBlock, YBErrorIndicator, YBInfinitePagination, YBInputField, YBPagination, YBPanelItem, YBThemeWrapper, YBToggleField, ZONE_TAG, ZoneNodeSelector, filterDurations, getCustomFooterComponent, getRowCellComponent, isDefinedNotNull, isEmptyArray, isEmptyObject, isEmptyString, isNonEmptyArray, isNonEmptyObject, isNonEmptyString, isNullOrEmpty, isValidObject, isYAxisGreaterThanThousand, metricOutlierSelectors, metricSplitSelectors, otherSplitSelectors, queryTypeSelectors, removeNullProperties, useCodeBlockStyles };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yugabytedb/perf-advisor-ui",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
4
4
  "main": "dist/cjs/index.js",
5
5
  "types": "dist/types.d.ts",
6
6
  "author": "Rajagopalan Madhavan",
@@ -28,7 +28,7 @@
28
28
  "eslint-plugin-import": "2.23.4",
29
29
  "nodemon": "3.1.10",
30
30
  "rollup": "2.79.1",
31
- "@yugabyte-ui-library/core": "2.0.9",
31
+ "@yugabyte-ui-library/core": "2.0.10",
32
32
  "rollup-plugin-dts": "4.2.3",
33
33
  "rollup-plugin-peer-deps-external": "2.2.4",
34
34
  "rollup-plugin-postcss": "^4.0.2",