@databrainhq/plugin 0.13.0-beta.2 → 0.13.0-beta.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.
@@ -8,6 +8,7 @@ export type ChartProps = {
8
8
  className?: string;
9
9
  colors?: string[];
10
10
  isShowFullScreen?: boolean;
11
+ isShowFullScreenEnabled?: boolean;
11
12
  filterValues?: Record<string, any>;
12
13
  onMaximize?: () => void;
13
14
  };
@@ -21,4 +22,4 @@ export type ChartProps = {
21
22
  * @prop colors (optional) - the admin provided chart color palettes.
22
23
  * @returns JSX - chart visaulization content.
23
24
  */
24
- export declare const Chart: React.MemoExoticComponent<({ chartOptions, data, events, colors, config, className, isShowFullScreen, onMaximize, }: ChartProps) => React.JSX.Element>;
25
+ export declare const Chart: React.MemoExoticComponent<({ chartOptions, data, events, colors, config, className, isShowFullScreen, isShowFullScreenEnabled, onMaximize, }: ChartProps) => React.JSX.Element>;
@@ -24,9 +24,10 @@ type Props = {
24
24
  onLoadMore?: () => void;
25
25
  hasMoreData?: boolean;
26
26
  isShowFullScreen?: boolean;
27
+ isShowFullScreenEnabled?: boolean;
27
28
  filterValues?: Record<string, any>;
28
29
  onMaximize?: () => void;
29
30
  headerAlignment?: 'left' | 'center' | 'right';
30
31
  };
31
- export declare const Table: ({ data, isLoading, error, tableSettings, tableName, className, onColumnSizingChange, onChartReady, onChangePage, isExternalChart, isEnableNextBtn, isEnablePrevBtn, paginationInfo, setChartSettings, isInfiniteScroll, onLoadMore, hasMoreData, isShowFullScreen, onMaximize, headerAlignment, }: Props) => React.JSX.Element;
32
+ export declare const Table: ({ data, isLoading, error, tableSettings, tableName, className, onColumnSizingChange, onChartReady, onChangePage, isExternalChart, isEnableNextBtn, isEnablePrevBtn, paginationInfo, setChartSettings, isInfiniteScroll, onLoadMore, hasMoreData, isShowFullScreen, isShowFullScreenEnabled, onMaximize, headerAlignment, }: Props) => React.JSX.Element;
32
33
  export {};
@@ -3,8 +3,6 @@ import { UseDropProps } from '@/types';
3
3
  declare const useDrop: ({ identifier, events, modifiers }: UseDropProps) => {
4
4
  dragStatus: {
5
5
  isDragOver: boolean;
6
- isDragEnter: boolean;
7
- isDragLeave: boolean;
8
6
  isDrop: boolean;
9
7
  };
10
8
  isEnableDrop: boolean;
@@ -146,7 +146,7 @@ export type CustomSettings = {
146
146
  export type Colors = 'primary' | 'primary-dark' | 'secondary' | 'secondary-dark' | 'alert' | 'alert-dark' | 'alert-light' | 'success' | 'success-dark' | 'success-light' | 'warning' | 'warning-dark' | 'info' | 'info-light' | 'white' | 'gray' | 'gray-dark' | 'light' | 'dark' | 'infoAlert';
147
147
  export type IconType = 'undo' | 'redo' | 'maximize' | 'minimize' | 'fullscreen' | 'download' | 'archive' | 'format' | 'company' | 'profile' | 'users' | 'bar-chart' | 'bar-chart-2' | 'kebab-menu-horizontal' | 'kebab-menu-vertical' | 'paint-brush' | 'funnel' | 'funnel-simple' | 'cross' | 'columns' | 'gear' | 'presentation-chart' | 'chevron-down' | 'plus' | 'info' | 'arrow-down' | 'arrow-up' | 'arrow-left' | 'arrow-right' | 'double-arrow-left' | 'double-arrow-right' | 'expand-arrows' | 'eye' | 'eye-slash' | 'database' | 'magnifying-glass' | 'pencil-simple-line' | 'pencil-simple' | 'file-sql' | 'code' | 'sign-out' | 'save' | 'delete' | 'align-space-even' | 'align-bottom' | 'align-left' | 'align-right' | 'align-top' | 'trend-up' | 'trend-up-chart' | 'caret-down-fill' | 'caret-up-fill' | 'caret-up-down' | 'pie-chart' | 'table-view' | 'task-done-file' | 'right-angle' | 'text-rotation-angle-up' | 'text-rotation-none' | 'text-rotation-up' | 'preview-file' | 'share' | 'image' | 'text' | 'color-palette' | 'shuffle' | 'table' | 'chart' | 'calendar' | 'horizontal-rule' | 'short-text' | 'subheader' | 'copy' | 'timer' | 'link' | 'not-found' | 'bar-chart-horizontal' | 'line-chart' | 'line-chart-trend-up' | 'globe' | 'map' | 'leaderboard' | 'radar' | 'scale' | 'scatter-plot' | 'tree' | 'donut-chart' | 'scatter-chart' | 'waterfall-chart' | 'area-chart' | 'bubble-chart' | 'candlestick-chart' | 'string' | 'boolean' | 'date' | 'number' | 'unknown' | 'array' | 'right-join' | 'left-join' | 'outer-join' | 'right-full-join' | 'left-full-join' | 'inner-join';
148
148
  export type LogoType = 'redshift' | 'postgres' | 'mysql' | 'mongodb' | 'bigquery' | 'snowflake' | 'microsoft' | 'google' | 'elasticsearch' | 'redis' | 'databrick' | 'clickhouse';
149
- export type IconSizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
149
+ export type IconSizes = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
150
150
  export type IconConfig = {
151
151
  size: IconSizes;
152
152
  color: Colors;
@@ -4,7 +4,13 @@ export type UseDragProps = {
4
4
  type?: string;
5
5
  };
6
6
  data?: any;
7
- modifiers?: Record<string, any>;
7
+ modifiers?: {
8
+ highlightDrop?: {
9
+ onDrag?: boolean;
10
+ onDragOver?: boolean;
11
+ highlightClass?: string;
12
+ };
13
+ };
8
14
  events?: {
9
15
  onDragStart?: (event: DragEvent, data: DndStateProp) => void;
10
16
  onDragEnd?: (event: DragEvent, data: DndStateProp) => void;
@@ -37,6 +43,7 @@ export type DndStateProp = {
37
43
  }) | null;
38
44
  over: (UseDropProps & {
39
45
  setDropNodeRef: any;
46
+ isOver?: boolean;
40
47
  }) | null;
41
48
  DragPreviewCreateRoot?: any;
42
49
  };