@datawheel/data-explorer 1.1.14 → 1.1.16

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 (3) hide show
  1. package/dist/main.d.mts +24 -12
  2. package/dist/main.mjs +5723 -5673
  3. 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
- interface ToolBarButtonProps {
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];
@@ -1101,6 +1102,13 @@ declare function ExplorerComponent<Locale extends string>(props: {
1101
1102
  * @default "en"
1102
1103
  */
1103
1104
  defaultLocale?: Locale;
1105
+ /**
1106
+ * The locale to use for sorting cube items within the SelectCubes component.
1107
+ * This controls the sorting of subtopics and cube buttons.
1108
+ * If not set, the defaultLocale will be used.
1109
+ * @default undefined
1110
+ */
1111
+ sortLocale?: string;
1104
1112
  /**
1105
1113
  * Specifies which property should be used to filter elements in the member
1106
1114
  * selection control of the Cuts parameter area.
@@ -1159,6 +1167,10 @@ declare function ExplorerComponent<Locale extends string>(props: {
1159
1167
  * The Translation labels to use in the UI.
1160
1168
  */
1161
1169
  translations?: Record<Locale, Translation>;
1170
+ /**
1171
+ * Set of settings to pass to the VizbuilderProvider.
1172
+ */
1173
+ vizbuilderSettings?: VizbuilderProviderProps;
1162
1174
  /**
1163
1175
  * Determines whether Explorer should be rendered within a MantineProvider
1164
1176
  * @default true