@sisense/sdk-ui 0.13.0 → 0.15.0

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 (121) hide show
  1. package/dist/ai/api/chat-api-context.d.ts +12 -0
  2. package/dist/ai/api/chat-rest-api.d.ts +28 -0
  3. package/dist/ai/api/hooks.d.ts +74 -0
  4. package/dist/ai/api/types.d.ts +139 -0
  5. package/dist/ai/chat-box.d.ts +6 -0
  6. package/dist/ai/chat-frame.d.ts +8 -0
  7. package/dist/ai/chat-home.d.ts +2 -0
  8. package/dist/ai/chat-input.d.ts +7 -0
  9. package/dist/ai/chatbot-context.d.ts +11 -0
  10. package/dist/ai/chatbot.d.ts +27 -0
  11. package/dist/ai/data-topics/data-topic-item.d.ts +8 -0
  12. package/dist/ai/data-topics/data-topic-list.d.ts +10 -0
  13. package/dist/ai/data-topics/index.d.ts +2 -0
  14. package/dist/ai/icons/arrow-left-icon.d.ts +2 -0
  15. package/dist/ai/icons/clear-chat-icon.d.ts +2 -0
  16. package/dist/ai/icons/close-dialog-icon.d.ts +2 -0
  17. package/dist/ai/icons/expand-icon.d.ts +2 -0
  18. package/dist/ai/icons/info-icon.d.ts +2 -0
  19. package/dist/ai/icons/light-bulb-icon.d.ts +2 -0
  20. package/dist/ai/icons/loading-dots-icon.d.ts +2 -0
  21. package/dist/ai/icons/magic-wand-icon.d.ts +2 -0
  22. package/dist/ai/icons/message-icon.d.ts +2 -0
  23. package/dist/ai/icons/refresh-icon.d.ts +2 -0
  24. package/dist/ai/icons/sisense-logo.d.ts +2 -0
  25. package/dist/ai/icons/three-dots-icon.d.ts +2 -0
  26. package/dist/ai/index.d.ts +4 -0
  27. package/dist/ai/magic-wand-dropdown.d.ts +7 -0
  28. package/dist/ai/messages/chart-message-toolbar.d.ts +8 -0
  29. package/dist/ai/messages/chart-message.d.ts +8 -0
  30. package/dist/ai/messages/clear-history-message.d.ts +6 -0
  31. package/dist/ai/messages/get-widget-options.d.ts +13 -0
  32. package/dist/ai/messages/insights-message.d.ts +10 -0
  33. package/dist/ai/messages/jaql-element.d.ts +25 -0
  34. package/dist/ai/messages/message-list-resolver.d.ts +7 -0
  35. package/dist/ai/messages/message-resolver.d.ts +11 -0
  36. package/dist/ai/messages/text-message.d.ts +8 -0
  37. package/dist/ai/nav-back-button.d.ts +6 -0
  38. package/dist/ai/nlg-query-result.d.ts +20 -0
  39. package/dist/ai/suggestions/index.d.ts +4 -0
  40. package/dist/ai/suggestions/suggestion-dropdown-item.d.ts +7 -0
  41. package/dist/ai/suggestions/suggestion-dropdown-list.d.ts +7 -0
  42. package/dist/ai/suggestions/suggestion-item.d.ts +7 -0
  43. package/dist/ai/suggestions/suggestion-list-skeleton.d.ts +2 -0
  44. package/dist/ai/suggestions/suggestion-list.d.ts +7 -0
  45. package/dist/ai/suggestions/suggestions-with-intro.d.ts +8 -0
  46. package/dist/ai/toolbar.d.ts +8 -0
  47. package/dist/ai/use-chat-session.d.ts +22 -0
  48. package/dist/ai.d.ts +1 -0
  49. package/dist/ai.js +3390 -0
  50. package/dist/api/types/dashboard-dto.d.ts +13 -5
  51. package/dist/chart-data-options/types.d.ts +11 -5
  52. package/dist/chart-options-processor/translations/axis-section.d.ts +1 -0
  53. package/dist/chart-options-processor/translations/scatter-series.d.ts +1 -0
  54. package/dist/chart-options-processor/translations/sunburst/sunburst-series.d.ts +2 -1
  55. package/dist/chart-options-processor/translations/translations-to-highcharts.d.ts +3 -2
  56. package/dist/charts/indicator/chart/indicator.d.ts +1 -1
  57. package/dist/charts/indicator/chart/ticker.d.ts +2 -2
  58. package/dist/charts/indicator/indicator-legacy-chart-options/default-options.d.ts +2 -1
  59. package/dist/charts/indicator/types.d.ts +47 -6
  60. package/dist/common/components/loading-indicator.d.ts +33 -0
  61. package/dist/common/icons/loading-icon.d.ts +6 -0
  62. package/dist/dashboard-widget/translate-dashboard-filters.d.ts +13 -0
  63. package/dist/dashboard-widget/translate-panel-color-format.d.ts +3 -2
  64. package/dist/dashboard-widget/translate-widget-data-options.d.ts +2 -2
  65. package/dist/dashboard-widget/translate-widget-filters.d.ts +21 -2
  66. package/dist/dashboard-widget/types.d.ts +14 -52
  67. package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +48 -0
  68. package/dist/dashboard-widget/utils.d.ts +3 -3
  69. package/dist/decorators/{with-tracking → component-decorators/with-tracking}/error-tracker.d.ts +1 -1
  70. package/dist/decorators/hook-decorators/index.d.ts +1 -0
  71. package/dist/decorators/hook-decorators/with-tracking.d.ts +2 -0
  72. package/dist/filters/components/common/basic-input.d.ts +8 -0
  73. package/dist/filters/components/common/index.d.ts +3 -0
  74. package/dist/filters/components/common/triangle-indicator.d.ts +2 -0
  75. package/dist/filters/components/criteria-filter-tile/criteria-filter-display.d.ts +25 -0
  76. package/dist/filters/components/criteria-filter-tile/criteria-filter-menu.d.ts +20 -0
  77. package/dist/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +62 -0
  78. package/dist/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +27 -0
  79. package/dist/filters/components/criteria-filter-tile/index.d.ts +2 -0
  80. package/dist/filters/components/date-filter/date-filter/date-filter.d.ts +4 -0
  81. package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +12 -4
  82. package/dist/filters/components/date-filter/date-range-filter-tile/use-date-limits.d.ts +2 -2
  83. package/dist/filters/components/filter-tile.d.ts +5 -2
  84. package/dist/filters/components/member-filter-tile/basic-member-filter-tile.d.ts +2 -0
  85. package/dist/filters/components/member-filter-tile/member-filter-tile.d.ts +4 -2
  86. package/dist/filters/index.d.ts +1 -0
  87. package/dist/formulas/fetch-formula.d.ts +16 -0
  88. package/dist/formulas/index.d.ts +1 -0
  89. package/dist/formulas/use-get-shared-formula.d.ts +95 -0
  90. package/dist/funnel-chart.d.ts +1 -1
  91. package/dist/highcharts-memorized.d.ts +6 -0
  92. package/dist/index.d.ts +2 -1
  93. package/dist/index.js +8248 -71295
  94. package/dist/indicator-chart.d.ts +1 -1
  95. package/dist/models/dashboard/get-dashboard-models.d.ts +1 -1
  96. package/dist/models/dashboard/use-get-dashboard-model.d.ts +6 -1
  97. package/dist/models/dashboard/use-get-dashboard-models.d.ts +6 -1
  98. package/dist/pie-chart.d.ts +1 -1
  99. package/dist/props.d.ts +66 -19
  100. package/dist/query-execution/use-execute-query-by-widget-id.d.ts +18 -5
  101. package/dist/query-execution/use-execute-query.d.ts +10 -6
  102. package/dist/scatter-chart.d.ts +1 -1
  103. package/dist/table-widget-7b20ecf7.js +64167 -0
  104. package/dist/themes/colors.d.ts +86 -0
  105. package/dist/translation/resources/en.d.ts +25 -0
  106. package/dist/translation/resources/index.d.ts +50 -0
  107. package/dist/treemap-chart.d.ts +1 -2
  108. package/dist/types.d.ts +13 -3
  109. package/dist/widgets/chart-widget.d.ts +2 -2
  110. package/dist/widgets/common/drilldown.d.ts +1 -1
  111. package/dist/widgets/common/widget-header-info-button.d.ts +8 -0
  112. package/dist/widgets/common/widget-header.d.ts +1 -1
  113. package/dist/widgets/table-widget.d.ts +1 -2
  114. package/package.json +18 -7
  115. /package/dist/decorators/{as-sisense-component.d.ts → component-decorators/as-sisense-component.d.ts} +0 -0
  116. /package/dist/decorators/{with-default-translations.d.ts → component-decorators/with-default-translations.d.ts} +0 -0
  117. /package/dist/decorators/{with-error-boundary.d.ts → component-decorators/with-error-boundary.d.ts} +0 -0
  118. /package/dist/decorators/{with-sisense-context-validation.d.ts → component-decorators/with-sisense-context-validation.d.ts} +0 -0
  119. /package/dist/decorators/{with-tracking → component-decorators/with-tracking}/index.d.ts +0 -0
  120. /package/dist/decorators/{with-tracking → component-decorators/with-tracking}/use-track-component-init.d.ts +0 -0
  121. /package/dist/decorators/{with-tracking → component-decorators/with-tracking}/with-tracking.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { IndicatorChartProps } from './props';
3
3
  /**
4
- * A React component that displays a single value.
4
+ * A React component that provides various options for displaying one or two numeric values as a number, gauge or ticker.
5
5
  * See [Indicator](https://docs.sisense.com/main/SisenseLinux/indicator.htm) for more information.
6
6
  *
7
7
  * @example
@@ -3,7 +3,7 @@ export interface GetDashboardModelsOptions {
3
3
  /**
4
4
  * Dashboard title to search by
5
5
  *
6
- * The dashboard title is not unique, therefore, the result may return multiple dashboards.
6
+ * Dashboard titles are not necessarily unique, so the result may contain multiple dashboards.
7
7
  */
8
8
  searchByTitle?: string;
9
9
  /**
@@ -6,7 +6,7 @@ import { HookEnableParam } from '../../common/hooks/types';
6
6
  */
7
7
  export interface GetDashboardModelParams extends GetDashboardModelOptions, HookEnableParam {
8
8
  /**
9
- * Identifier of the dashboard that contains the widget
9
+ * Dashboard identifier
10
10
  */
11
11
  dashboardOid: string;
12
12
  }
@@ -97,3 +97,8 @@ export type DashboardModelSuccessState = {
97
97
  * @returns Dashboard load state that contains the status of the execution, the result dashboard model, or the error if any
98
98
  */
99
99
  export declare const useGetDashboardModel: (params: GetDashboardModelParams) => DashboardModelState;
100
+ /**
101
+ * {@link useGetDashboardModel} without tracking to be used inside other hooks or components in Compose SDK.
102
+ * @internal
103
+ */
104
+ export declare function useGetDashboardModelInternal(params: GetDashboardModelParams): DashboardModelState;
@@ -81,4 +81,9 @@ export type DashboardModelsSuccessState = {
81
81
  * @param params - Parameters of the dashboards to be retrieved
82
82
  * @returns Load state that contains the status of the execution, the result dashboards, or the error if any
83
83
  */
84
- export declare const useGetDashboardModels: (params?: GetDashboardModelsParams) => DashboardModelsState;
84
+ export declare const useGetDashboardModels: (params?: GetDashboardModelsParams | undefined) => DashboardModelsState;
85
+ /**
86
+ * {@link useGetDashboardModels} without tracking to be used inside other hooks or components in Compose SDK.
87
+ * @internal
88
+ */
89
+ export declare function useGetDashboardModelsInternal(params?: GetDashboardModelsParams): DashboardModelsState;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { PieChartProps } from './props';
3
3
  /**
4
- * A React component representing data in circular graph with the data shown as slices of a whole,
4
+ * A React component representing data in a circular graph with the data shown as slices of a whole,
5
5
  * with each slice representing a proportion of the total.
6
6
  * See [Pie Chart](https://docs.sisense.com/main/SisenseLinux/pie-chart.htm) for more information.
7
7
  *
package/dist/props.d.ts CHANGED
@@ -7,6 +7,7 @@ import { DataPointEventHandler, DataPointsEventHandler, ScatterDataPointEventHan
7
7
  import { AppConfig } from './app/client-application';
8
8
  import { ExecuteQueryParams } from './query-execution';
9
9
  import { FiltersMergeStrategy } from './dashboard-widget/types';
10
+ import { HookEnableParam } from './common/hooks/types';
10
11
  export type { ScatterDataPointEventHandler, ScatterDataPointsEventHandler, DataPointEventHandler, DataPointsEventHandler, MenuItemSection, HighchartsOptions, };
11
12
  /**
12
13
  * Configurations for Sisense Context
@@ -73,7 +74,7 @@ export interface ExecuteQueryProps {
73
74
  /**
74
75
  * Data source the query is run against - e.g. `Sample ECommerce`
75
76
  *
76
- * If not specified, the query will use the `defaultDataSource` specified in the parent {@link SisenseContextProvider} component.
77
+ * If not specified, the query will use the `defaultDataSource` specified in the parent Sisense Context.
77
78
  */
78
79
  dataSource?: DataSource;
79
80
  /** Dimensions of the query */
@@ -102,6 +103,14 @@ export interface ExecuteQueryProps {
102
103
  onDataChanged?: (data: QueryResultData) => void;
103
104
  /**
104
105
  * Sync or async callback that allows to modify the JAQL payload before it is sent to the server.
106
+ *
107
+ * **Note:** wrap this function in `useCallback` hook to avoid triggering query execution on each render.
108
+ * ```tsx
109
+ * const onBeforeQuery = useCallback((jaql) => {
110
+ * // modify jaql here
111
+ * return jaql;
112
+ * }, []);
113
+ * ```
105
114
  */
106
115
  onBeforeQuery?: (jaql: any) => any | Promise<any>;
107
116
  }
@@ -165,7 +174,7 @@ interface BaseChartEventProps {
165
174
  * Before render handler callback that allows adjusting
166
175
  * detail chart options prior to render
167
176
  *
168
- * This callback is not yet supported for {@link IndicatorChart}
177
+ * This callback is not yet supported for Indicator Chart
169
178
  *
170
179
  * @category Callbacks
171
180
  */
@@ -221,7 +230,7 @@ export interface BaseChartProps {
221
230
  * Data set for this component, which supports two options:
222
231
  *
223
232
  * (1) Data source name (as a `string`) - e.g. `Sample ECommerce`. Under the hood,
224
- * the chart will have an internal {@link ExecuteQuery} connect to the data source
233
+ * the chart will have an internal query connect to the data source
225
234
  * and load the data as specified in {@link dataOptions}, {@link filters}, and {@link highlights}.
226
235
  *
227
236
  * OR
@@ -233,7 +242,7 @@ export interface BaseChartProps {
233
242
  * with user-provided data.
234
243
  *
235
244
  * If neither option is specified,
236
- * the chart will use the `defaultDataSource` specified in the parent {@link SisenseContextProvider} component.
245
+ * the chart will use the `defaultDataSource` specified in the parent Sisense Context.
237
246
  *
238
247
  *
239
248
  * @category Data
@@ -493,6 +502,12 @@ export interface DashboardWidgetProps extends Omit<ChartWidgetProps, 'dataSource
493
502
  * @category Data
494
503
  */
495
504
  filtersMergeStrategy?: FiltersMergeStrategy;
505
+ /**
506
+ * {@inheritDoc ExecuteQueryByWidgetIdProps.includeDashboardFilters}
507
+ *
508
+ * @category Data
509
+ */
510
+ includeDashboardFilters?: boolean;
496
511
  /**
497
512
  * Title of the widget
498
513
  *
@@ -555,7 +570,7 @@ export interface ChartWidgetProps extends BaseChartEventProps {
555
570
  /**
556
571
  * Data source the query is run against - e.g. `Sample ECommerce`
557
572
  *
558
- * If not specified, the query will use the `defaultDataSource` specified in the parent {@link SisenseContextProvider} component.
573
+ * If not specified, the query will use the `defaultDataSource` specified in the parent Sisense Context.
559
574
  *
560
575
  * @category Data
561
576
  */
@@ -599,7 +614,6 @@ export interface ChartWidgetProps extends BaseChartEventProps {
599
614
  /**
600
615
  * List of categories to allow drilldowns on
601
616
  *
602
- * @deprecated Use {@link DrilldownWidget} instead
603
617
  * @category Widget
604
618
  */
605
619
  drilldownOptions?: DrilldownOptions;
@@ -646,7 +660,7 @@ export interface ChartWidgetProps extends BaseChartEventProps {
646
660
  /**
647
661
  * Boolean flag whether selecting data points triggers highlight filter of the selected data
648
662
  *
649
- * Recommended to turn on when the ChartWidget is enhanced with data drilldown by {@link DrilldownWidget}
663
+ * Recommended to turn on when the Chart Widget component is enhanced with data drilldown by the Drilldown Widget component
650
664
  *
651
665
  * If not specified, the default value is `false`
652
666
  *
@@ -663,7 +677,7 @@ export interface TableWidgetProps {
663
677
  /**
664
678
  * Data source the query is run against - e.g. `Sample ECommerce`
665
679
  *
666
- * If not specified, the query will use the `defaultDataSource` specified in the parent {@link SisenseContextProvider} component.
680
+ * If not specified, the query will use the `defaultDataSource` specified in the parent Sisense Context.
667
681
  *
668
682
  * @category Data
669
683
  */
@@ -738,7 +752,7 @@ export interface ExecuteQueryByWidgetIdProps {
738
752
  /** {@inheritDoc ExecuteQueryProps.offset} */
739
753
  offset?: number;
740
754
  /**
741
- * Strategy for merging the existing widget filters with the filters provided via the `filters` prop:
755
+ * Strategy for merging the existing widget filters (including highlights) with the filters provided via the `filters` and `highlights` props:
742
756
  *
743
757
  * - `widgetFirst` - prioritizes the widget filters over the provided filters in case of filter conflicts by certain attributes.
744
758
  * - `codeFirst` - prioritizes the provided filters over the widget filters in case of filter conflicts by certain attributes.
@@ -747,12 +761,26 @@ export interface ExecuteQueryByWidgetIdProps {
747
761
  * If not specified, the default strategy is `codeFirst`.
748
762
  */
749
763
  filtersMergeStrategy?: FiltersMergeStrategy;
764
+ /**
765
+ * Boolean flag whether to include dashboard filters in the widget's `filters` and `highlights`
766
+ *
767
+ * If not specified, the default value is `false`.
768
+ */
769
+ includeDashboardFilters?: boolean;
750
770
  /** Function as child component that is called to render the query results */
751
771
  children?: (queryResult: QueryResultData, queryParams: ExecuteQueryParams) => ReactNode;
752
772
  /** Callback function that is evaluated when query results are ready */
753
773
  onDataChanged?: (data: QueryResultData, queryParams: ExecuteQueryParams) => void;
754
774
  /**
755
775
  * Sync or async callback that allows to modify the JAQL payload before it is sent to the server.
776
+ *
777
+ * **Note:** wrap this function in `useCallback` hook to avoid triggering query execution on each render.
778
+ * ```tsx
779
+ * const onBeforeQuery = useCallback((jaql) => {
780
+ * // modify jaql here
781
+ * return jaql;
782
+ * }, []);
783
+ * ```
756
784
  */
757
785
  onBeforeQuery?: (jaql: any) => any | Promise<any>;
758
786
  }
@@ -793,21 +821,21 @@ export interface SunburstChartProps extends BaseChartProps, ChartEventProps {
793
821
  /**
794
822
  * Props for {@link ContextMenu} component.
795
823
  */
796
- export type ContextMenuProps = {
824
+ export interface ContextMenuProps {
797
825
  /**
798
- * Position of the context menu
826
+ * Context menu position
799
827
  *
800
828
  * @category Widget
801
829
  */
802
830
  position?: MenuPosition | null;
803
831
  /**
804
- * Callback function that is evaluated when context menu is closed
832
+ * Callback function that is evaluated when the context menu is closed
805
833
  *
806
834
  * @category Widget
807
835
  */
808
836
  closeContextMenu: () => void;
809
837
  /**
810
- * Sections of menu items
838
+ * Menu item sections
811
839
  *
812
840
  * @category Widget
813
841
  */
@@ -818,8 +846,8 @@ export type ContextMenuProps = {
818
846
  * @category Widget
819
847
  */
820
848
  children?: React.ReactNode;
821
- };
822
- export type DrilldownBreadcrumbsProps = {
849
+ }
850
+ export interface DrilldownBreadcrumbsProps {
823
851
  /**
824
852
  * List of drilldown filters formatted to be displayed as breadcrumbs
825
853
  *
@@ -833,7 +861,7 @@ export type DrilldownBreadcrumbsProps = {
833
861
  */
834
862
  currentDimension: Attribute;
835
863
  /**
836
- * Callback function that is evaluated when X button is clicked
864
+ * Callback function that is evaluated when the close (X) button is clicked
837
865
  *
838
866
  * @category Widget
839
867
  */
@@ -844,7 +872,7 @@ export type DrilldownBreadcrumbsProps = {
844
872
  * @category Widget
845
873
  */
846
874
  sliceDrilldownSelections: (i: number) => void;
847
- };
875
+ }
848
876
  /**
849
877
  * An object that allows users to pass advanced configuration options as a prop for the {@link DrilldownWidget} component
850
878
  */
@@ -873,7 +901,7 @@ export type DrilldownWidgetConfig = {
873
901
  /**
874
902
  * Props for the {@link DrilldownWidget} component
875
903
  */
876
- export type DrilldownWidgetProps = {
904
+ export interface DrilldownWidgetProps {
877
905
  /**
878
906
  * List of dimensions to allow drilldowns on
879
907
  *
@@ -900,4 +928,23 @@ export type DrilldownWidgetProps = {
900
928
  * @category Widget
901
929
  */
902
930
  children: (customDrilldownResult: CustomDrilldownResult) => ReactNode;
903
- };
931
+ }
932
+ /**
933
+ * Params of the {@link useGetSharedFormula} hook
934
+ *
935
+ * Can consist either of an oid or a name/dataSource pair
936
+ */
937
+ export interface UseGetSharedFormulaParams extends HookEnableParam {
938
+ /**
939
+ * Formula identifier
940
+ */
941
+ oid?: string;
942
+ /**
943
+ * Formula name
944
+ */
945
+ name?: string;
946
+ /**
947
+ * Data source - e.g. `Sample ECommerce`
948
+ */
949
+ dataSource?: DataSource;
950
+ }
@@ -1,8 +1,8 @@
1
1
  import { type Filter } from '@sisense/sdk-data';
2
- import { ExecuteQueryParams } from './index.js';
3
- import { QueryState } from './query-state-reducer.js';
4
- import { FiltersMergeStrategy } from '../dashboard-widget/types.js';
5
- import { ClientApplication } from '../app/client-application.js';
2
+ import { ExecuteQueryParams } from './';
3
+ import { QueryState } from './query-state-reducer';
4
+ import { FiltersMergeStrategy } from '../dashboard-widget/types';
5
+ import { ClientApplication } from '../app/client-application';
6
6
  /**
7
7
  * Parameters for {@link useExecuteQueryByWidgetId} hook.
8
8
  */
@@ -21,8 +21,16 @@ export interface ExecuteQueryByWidgetIdParams {
21
21
  offset?: number;
22
22
  /** {@inheritDoc ExecuteQueryByWidgetIdProps.filtersMergeStrategy} */
23
23
  filtersMergeStrategy?: FiltersMergeStrategy;
24
+ /** {@inheritDoc ExecuteQueryByWidgetIdProps.includeDashboardFilters} */
25
+ includeDashboardFilters?: boolean;
24
26
  /** {@inheritDoc ExecuteQueryByWidgetIdProps.onBeforeQuery} */
25
27
  onBeforeQuery?: (jaql: any) => any | Promise<any>;
28
+ /**
29
+ * Boolean flag to control if query is executed
30
+ *
31
+ * If not specified, the default value is `true`
32
+ */
33
+ enabled?: boolean;
26
34
  }
27
35
  export type QueryByWidgetIdState = QueryState & {
28
36
  /** Query parameters constructed over the widget */
@@ -57,6 +65,11 @@ export type QueryByWidgetIdState = QueryState & {
57
65
  * @returns Query state that contains the status of the query execution, the result data, the constructed query parameters, or the error if any occurred
58
66
  */
59
67
  export declare const useExecuteQueryByWidgetId: (params: ExecuteQueryByWidgetIdParams) => QueryByWidgetIdState;
68
+ /**
69
+ * {@link useExecuteQueryByWidgetId} without tracking to be used inside other hooks or components in Compose SDK.
70
+ * @internal
71
+ */
72
+ export declare function useExecuteQueryByWidgetIdInternal(params: ExecuteQueryByWidgetIdParams): QueryByWidgetIdState;
60
73
  /**
61
74
  * Checks if the parameters have changed by deep comparison.
62
75
  *
@@ -65,7 +78,7 @@ export declare const useExecuteQueryByWidgetId: (params: ExecuteQueryByWidgetIdP
65
78
  */
66
79
  export declare function isParamsChanged(prevParams: ExecuteQueryByWidgetIdParams | undefined, newParams: ExecuteQueryByWidgetIdParams): boolean;
67
80
  /** @internal */
68
- export declare function executeQueryByWidgetId({ widgetOid, dashboardOid, filters, highlights, filtersMergeStrategy, count, offset, app, onBeforeQuery, }: ExecuteQueryByWidgetIdParams & {
81
+ export declare function executeQueryByWidgetId({ widgetOid, dashboardOid, filters, highlights, filtersMergeStrategy, count, offset, includeDashboardFilters, app, onBeforeQuery, }: ExecuteQueryByWidgetIdParams & {
69
82
  app: ClientApplication;
70
83
  }): Promise<{
71
84
  data: import("@sisense/sdk-data").QueryResultData;
@@ -3,11 +3,11 @@ import { QueryState } from './query-state-reducer';
3
3
  /**
4
4
  * Parameters for {@link useExecuteQuery} hook.
5
5
  */
6
- export type ExecuteQueryParams = {
6
+ export interface ExecuteQueryParams {
7
7
  /**
8
8
  * Data source the query is run against - e.g. `Sample ECommerce`
9
9
  *
10
- * If not specified, the query will use the `defaultDataSource` specified in the parent {@link SisenseContextProvider} component.
10
+ * If not specified, the query will use the `defaultDataSource` specified in the parent Sisense Context.
11
11
  */
12
12
  dataSource?: DataSource;
13
13
  /** Dimensions of the query */
@@ -28,11 +28,9 @@ export type ExecuteQueryParams = {
28
28
  * If not specified, the default value is `true`
29
29
  */
30
30
  enabled?: boolean;
31
- /**
32
- * Sync or async callback that allows to modify the JAQL payload before it is sent to the server.
33
- */
31
+ /** {@inheritDoc ExecuteQueryProps.onBeforeQuery} */
34
32
  onBeforeQuery?: (jaql: any) => any | Promise<any>;
35
- };
33
+ }
36
34
  /**
37
35
  * React hook that executes a data query.
38
36
  * This approach, which offers an alternative to {@link ExecuteQuery} component, is similar to React Query's `useQuery` hook.
@@ -65,3 +63,9 @@ export type ExecuteQueryParams = {
65
63
  * @returns Query state that contains the status of the query execution, the result data, or the error if any occurred
66
64
  */
67
65
  export declare const useExecuteQuery: (params: ExecuteQueryParams) => QueryState;
66
+ /**
67
+ * {@link useExecuteQuery} without tracking to be used inside other hooks or components in Compose SDK.
68
+ *
69
+ * @internal
70
+ */
71
+ export declare function useExecuteQueryInternal(params: ExecuteQueryParams): QueryState;
@@ -7,7 +7,7 @@ import { ScatterChartProps } from './props';
7
7
  * **Point**: A field that for each of its members a scatter point is drawn. The maximum amount of data points is 500.
8
8
  *
9
9
  * **Size**: An optional field represented by the size of the circles.
10
- * If omitted, all scatter points are equal in size. If used, the circle size is relative to their value.
10
+ * If omitted, all scatter points are equal in size. If used, the circle sizes are relative to their values.
11
11
  *
12
12
  * See [Scatter Chart](https://docs.sisense.com/main/SisenseLinux/scatter-chart.htm) for more information.
13
13
  *