@datawheel/data-explorer 1.1.13 → 1.1.15
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/main.d.mts +17 -12
- package/dist/main.mjs +5642 -5667
- package/package.json +6 -6
package/dist/main.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { MRT_TableInstance, MRT_ColumnDef, MRT_PaginationState, MRT_TableOptions } from 'mantine-react-table';
|
|
3
3
|
import { TranslationDict, TranslationContextProps } from '@datawheel/use-translation';
|
|
4
|
+
import { Translation as Translation$1, VizbuilderProvider } from '@datawheel/vizbuilder/react';
|
|
4
5
|
import { CSSObject } from '@mantine/core';
|
|
5
|
-
import { Translation as Translation$1 } from '@datawheel/vizbuilder/react';
|
|
6
6
|
import { StepType, TourProps } from '@reactour/tour';
|
|
7
7
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
8
8
|
import { StateFromReducersMapObject } from '@reduxjs/toolkit';
|
|
@@ -1037,6 +1037,17 @@ declare const defaultTranslation: {
|
|
|
1037
1037
|
declare const useTranslation: any;
|
|
1038
1038
|
declare const TranslationConsumer: any;
|
|
1039
1039
|
|
|
1040
|
+
interface ToolBarButtonProps {
|
|
1041
|
+
icon: ReactNode;
|
|
1042
|
+
label?: string;
|
|
1043
|
+
onClick?: () => void;
|
|
1044
|
+
}
|
|
1045
|
+
interface ToolbarConfigType {
|
|
1046
|
+
buttons: ToolBarButtonProps[];
|
|
1047
|
+
showLabels: Boolean;
|
|
1048
|
+
}
|
|
1049
|
+
declare function ToolbarButton({ icon, label, onClick }: ToolBarButtonProps): React.JSX.Element;
|
|
1050
|
+
|
|
1040
1051
|
interface ExplorerStepType extends StepType {
|
|
1041
1052
|
actionBefore?: () => void;
|
|
1042
1053
|
}
|
|
@@ -1050,17 +1061,7 @@ interface TourStepsPropsType {
|
|
|
1050
1061
|
texts: string[] | string;
|
|
1051
1062
|
}
|
|
1052
1063
|
|
|
1053
|
-
|
|
1054
|
-
icon: ReactNode;
|
|
1055
|
-
label?: string;
|
|
1056
|
-
onClick?: () => void;
|
|
1057
|
-
}
|
|
1058
|
-
interface ToolbarConfigType {
|
|
1059
|
-
buttons: ToolBarButtonProps[];
|
|
1060
|
-
showLabels: Boolean;
|
|
1061
|
-
}
|
|
1062
|
-
declare function ToolbarButton({ icon, label, onClick }: ToolBarButtonProps): React.JSX.Element;
|
|
1063
|
-
|
|
1064
|
+
type VizbuilderProviderProps = React.ComponentProps<typeof VizbuilderProvider>;
|
|
1064
1065
|
type Pagination = {
|
|
1065
1066
|
rowsLimits: number[];
|
|
1066
1067
|
defaultLimit: Pagination["rowsLimits"][number];
|
|
@@ -1159,6 +1160,10 @@ declare function ExplorerComponent<Locale extends string>(props: {
|
|
|
1159
1160
|
* The Translation labels to use in the UI.
|
|
1160
1161
|
*/
|
|
1161
1162
|
translations?: Record<Locale, Translation>;
|
|
1163
|
+
/**
|
|
1164
|
+
* Set of settings to pass to the VizbuilderProvider.
|
|
1165
|
+
*/
|
|
1166
|
+
vizbuilderSettings?: VizbuilderProviderProps;
|
|
1162
1167
|
/**
|
|
1163
1168
|
* Determines whether Explorer should be rendered within a MantineProvider
|
|
1164
1169
|
* @default true
|