@sisense/sdk-ui 1.7.0 → 1.7.2

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.
@@ -9,7 +9,6 @@ type GetDashboardsOptions = {
9
9
  };
10
10
  type GetDashboardOptions = {
11
11
  fields?: string[];
12
- expand?: string[];
13
12
  };
14
13
  export declare class RestApi {
15
14
  private httpClient;
@@ -22,6 +21,10 @@ export declare class RestApi {
22
21
  * Get a specific dashboard
23
22
  */
24
23
  getDashboard: (dashboardOid: string, options?: GetDashboardOptions) => Promise<DashboardDto>;
24
+ /**
25
+ * Get all widgets of a specific dashboard
26
+ */
27
+ getDashboardWidgets: (dashboardOid: string) => Promise<WidgetDto[]>;
25
28
  /**
26
29
  * Get a specific widget from a dashboard
27
30
  */
@@ -46,6 +46,30 @@ export type AppConfig = {
46
46
  * @default 20000
47
47
  */
48
48
  queryLimit?: number;
49
+ /**
50
+ * Accessibility configuration
51
+ *
52
+ * This feature is in alpha
53
+ */
54
+ accessibilityConfig?: {
55
+ /**
56
+ * Whether to enable accessibility features
57
+ *
58
+ * If not specified, the default value is `false`
59
+ */
60
+ enabled?: boolean;
61
+ };
62
+ /**
63
+ * Configuration of the component that is rendered in case of an error
64
+ */
65
+ errorBoundaryConfig?: {
66
+ /**
67
+ * Whether to show error text without hovering over the error icon
68
+ *
69
+ * If not specified, the default value is `false`
70
+ */
71
+ alwaysShowErrorText?: boolean;
72
+ };
49
73
  };
50
74
  /**
51
75
  * Stands for a Sisense Client Application which connects to a Sisense Environment
@@ -1,4 +1,4 @@
1
1
  import { HighchartsOptionsInternal } from './chart-options-service';
2
2
  export declare const DEFAULT_ANIMATION_DURATION_MS_INIT = 600;
3
3
  export declare const DEFAULT_ANIMATION_DURATION_MS_UPDATE = 300;
4
- export declare const applyCommonHighchartsOptions: (chartOptions: HighchartsOptionsInternal) => HighchartsOptionsInternal;
4
+ export declare const applyCommonHighchartsOptions: (chartOptions: HighchartsOptionsInternal, accessibilityEnabled: boolean) => HighchartsOptionsInternal;
@@ -4,7 +4,8 @@ export declare const applyThemeToChart: (chartOptions: HighchartsOptionsInternal
4
4
  /**
5
5
  * Returns default theme settings, which can be used as base for custom theme options.
6
6
  *
7
+ * @param isDarkMode - Boolean value whether to get theme settings for dark mode
7
8
  * @returns Theme settings object
8
9
  * @internal
9
10
  */
10
- export declare const getDefaultThemeSettings: () => CompleteThemeSettings;
11
+ export declare const getDefaultThemeSettings: (isDarkMode?: boolean) => CompleteThemeSettings;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export default function ExclamationMarkIcon({ color }: {
3
+ color?: string;
4
+ }): JSX.Element;
package/dist/index.d.ts CHANGED
@@ -44,6 +44,6 @@ export { trackHook } from './decorators/hook-decorators';
44
44
  export * from './common/hooks/data-load-state-reducer';
45
45
  export { createDataOptionsFromPanels } from './dashboard-widget/translate-widget-data-options';
46
46
  export { createFilterFromJaql } from './dashboard-widget/translate-widget-filters';
47
- export { useThemeContext } from './theme-provider/theme-provider';
47
+ export { useThemeContext } from './theme-provider';
48
48
  export { LoadingIndicator } from './common/components/loading-indicator';
49
49
  export { useFetch, type RequestConfig, type UseQueryResult } from './common/hooks/use-fetch';