@sisense/sdk-ui 1.2.0 → 1.4.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.
- package/dist/ai/ai-context-provider.d.ts +32 -0
- package/dist/ai/api/chat-api-provider.d.ts +17 -0
- package/dist/ai/api/chat-rest-api.d.ts +3 -1
- package/dist/ai/api/errors.d.ts +1 -0
- package/dist/ai/api/hooks.d.ts +10 -49
- package/dist/ai/api/types.d.ts +16 -27
- package/dist/ai/buttons/thumbs-down-button.d.ts +6 -0
- package/dist/ai/buttons/thumbs-up-button.d.ts +6 -0
- package/dist/ai/chat-box.d.ts +3 -3
- package/dist/ai/chat-config.d.ts +28 -0
- package/dist/ai/chat-home.d.ts +5 -1
- package/dist/ai/chat-router.d.ts +2 -0
- package/dist/ai/chatbot.d.ts +26 -4
- package/dist/ai/common/tooltip.d.ts +5 -0
- package/dist/ai/error-page.d.ts +10 -0
- package/dist/ai/get-nlg-query-result.d.ts +78 -0
- package/dist/ai/icons/thumbs-down-hovered-icon.d.ts +2 -0
- package/dist/ai/icons/thumbs-down-icon.d.ts +2 -0
- package/dist/ai/icons/thumbs-up-hovered-icon.d.ts +2 -0
- package/dist/ai/icons/thumbs-up-icon.d.ts +2 -0
- package/dist/ai/index.d.ts +6 -3
- package/dist/ai/loading-page.d.ts +2 -0
- package/dist/ai/messages/clear-history-success-message.d.ts +2 -0
- package/dist/ai/messages/feedback-wrapper.d.ts +9 -0
- package/dist/ai/messages/get-widget-options.d.ts +2 -1
- package/dist/ai/messages/message-resolver.d.ts +1 -2
- package/dist/ai/messages/text-message.d.ts +1 -1
- package/dist/ai/toolbar.d.ts +2 -2
- package/dist/ai/use-chat-session.d.ts +1 -1
- package/dist/ai/use-get-nlg-query-result.d.ts +103 -0
- package/dist/ai/use-get-query-recommendations.d.ts +67 -0
- package/dist/ai.js +1866 -1518
- package/dist/api/types/dashboard-dto.d.ts +4 -1
- package/dist/app/client-application.d.ts +6 -1
- package/dist/{chart.d.ts → chart/chart.d.ts} +1 -1
- package/dist/chart/helpers/use-synced-data.d.ts +8 -0
- package/dist/chart/helpers/use-translated-data-options.d.ts +7 -0
- package/dist/chart/index.d.ts +1 -0
- package/dist/chart-data/types.d.ts +5 -4
- package/dist/chart-data-options/translate-data-options.d.ts +5 -1
- package/dist/chart-data-options/types.d.ts +107 -12
- package/dist/chart-options-processor/apply-event-handlers.d.ts +5 -28
- package/dist/chart-options-processor/boxplot-chart-options.d.ts +2 -2
- package/dist/chart-options-processor/category-chart-options.d.ts +1 -1
- package/dist/chart-options-processor/chart-options-service.d.ts +7 -0
- package/dist/chart-options-processor/plot-bands.d.ts +2 -2
- package/dist/chart-options-processor/scatter-chart-options.d.ts +2 -2
- package/dist/chart-options-processor/style-to-design-options-translator/index.d.ts +1 -0
- package/dist/chart-options-processor/style-to-design-options-translator/prepare-design-options.d.ts +4 -0
- package/dist/chart-options-processor/style-to-design-options-translator/translate-style-to-design-options.d.ts +2 -2
- package/dist/chart-options-processor/translations/base-design-options.d.ts +3 -3
- package/dist/chart-options-processor/translations/boxplot/boxplot-plot-options.d.ts +2 -2
- package/dist/chart-options-processor/translations/design-options.d.ts +4 -2
- package/dist/chart-options-processor/translations/number-format-config.d.ts +10 -16
- package/dist/chart-options-processor/translations/translations-to-highcharts.d.ts +4 -4
- package/dist/chart-options-processor/translations/types.d.ts +18 -6
- package/dist/chart-options-processor/translations/value-label-section.d.ts +9 -4
- package/dist/charts/indicator/indicator-legacy-chart-options/indicator-legacy-chart-options.d.ts +3 -0
- package/dist/charts/indicator/indicator-legacy-chart-options/prepare-ticker-options.d.ts +2 -0
- package/dist/charts/indicator/types.d.ts +2 -0
- package/dist/charts/map-charts/areamap/areamap-map.d.ts +2 -1
- package/dist/charts/map-charts/areamap/areamap.d.ts +6 -4
- package/dist/charts/map-charts/areamap/use-geo-json.d.ts +1 -1
- package/dist/charts/map-charts/scattermap/scattermap.d.ts +11 -5
- package/dist/charts/map-charts/scattermap/utils/location.d.ts +3 -0
- package/dist/charts/map-charts/scattermap/utils/markers.d.ts +4 -14
- package/dist/charts/table/helpers/calc-column-widths.d.ts +3 -1
- package/dist/common/components/loading-overlay.d.ts +14 -0
- package/dist/common/hooks/data-load-state-reducer.d.ts +10 -0
- package/dist/common/hooks/use-hover.d.ts +8 -0
- package/dist/common/icons/yellow-exclamation-mark-icon.d.ts +2 -0
- package/dist/dashboard-widget/translate-widget-data-options.d.ts +1 -1
- package/dist/dashboard-widget/translate-widget-filters.d.ts +1 -1
- package/dist/dashboard-widget/types.d.ts +1 -0
- package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +3 -0
- package/dist/dashboard-widget/utils.d.ts +26 -1
- package/dist/decorators/hook-decorators/with-tracking.d.ts +11 -0
- package/dist/filters/components/common/checkbox.d.ts +1 -0
- package/dist/formulas/fetch-formula.d.ts +2 -0
- package/dist/formulas/index.d.ts +1 -0
- package/dist/formulas/use-get-shared-formula.d.ts +5 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.js +35370 -11599
- package/dist/indicator-canvas.d.ts +2 -2
- package/dist/models/dashboard/use-get-dashboard-model.d.ts +8 -0
- package/dist/models/dashboard/use-get-dashboard-models.d.ts +6 -0
- package/dist/models/widget/widget-model.d.ts +2 -2
- package/dist/pivot-table/index.d.ts +1 -0
- package/dist/pivot-table/pivot-table.d.ts +42 -0
- package/dist/pivot-table/use-get-pivot-table-query.d.ts +14 -0
- package/dist/props.d.ts +209 -52
- package/dist/query-execution/query-state-reducer.d.ts +1 -0
- package/dist/query-execution/types.d.ts +3 -3
- package/dist/query-execution/use-execute-query-by-widget-id.d.ts +2 -5
- package/dist/sisense-chart/index.d.ts +2 -0
- package/dist/sisense-chart/sisense-chart.d.ts +23 -0
- package/dist/sisense-chart/types.d.ts +5 -0
- package/dist/table/hooks/use-table-data.d.ts +2 -2
- package/dist/translation/resources/en.d.ts +1 -0
- package/dist/translation/resources/index.d.ts +2 -0
- package/dist/types.d.ts +126 -14
- package/dist/utils/filters-comparator.d.ts +2 -2
- package/dist/utils/utility-types.d.ts +12 -0
- package/dist/widgets/common/custom-drilldown.d.ts +1 -1
- package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
- package/dist/widgets/common/drilldown.d.ts +4 -2
- package/dist/{table-widget-65f3e04e.js → with-tracking-b583e949.js} +40958 -40712
- package/package.json +13 -13
- package/dist/ai/api/chat-api-context.d.ts +0 -12
- package/dist/ai/chatbot-context.d.ts +0 -11
- package/dist/ai/nlg-query-result.d.ts +0 -20
- package/dist/dashboard-widget/translate-widget.d.ts +0 -12
- package/dist/query-execution/utils.d.ts +0 -9
- package/dist/sisense-chart.d.ts +0 -23
package/package.json
CHANGED
|
@@ -11,16 +11,16 @@
|
|
|
11
11
|
"Sisense",
|
|
12
12
|
"Compose SDK"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.4.0",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"default": "./dist/index.js"
|
|
20
20
|
},
|
|
21
21
|
"./ai": {
|
|
22
|
-
"
|
|
23
|
-
"
|
|
22
|
+
"types": "./dist/ai.d.ts",
|
|
23
|
+
"default": "./dist/ai.js"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"main": "./dist/index.js",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"@emotion/react": "^11.10.5",
|
|
40
40
|
"@emotion/styled": "^11.10.5",
|
|
41
41
|
"@mui/material": "^5.11.6",
|
|
42
|
-
"@sisense/sdk-common": "^1.
|
|
43
|
-
"@sisense/sdk-data": "^1.
|
|
44
|
-
"@sisense/sdk-pivot-client": "^1.
|
|
45
|
-
"@sisense/sdk-query-client": "^1.
|
|
46
|
-
"@sisense/sdk-rest-client": "^1.
|
|
47
|
-
"@sisense/sdk-tracking": "^1.
|
|
42
|
+
"@sisense/sdk-common": "^1.4.0",
|
|
43
|
+
"@sisense/sdk-data": "^1.4.0",
|
|
44
|
+
"@sisense/sdk-pivot-client": "^1.4.0",
|
|
45
|
+
"@sisense/sdk-query-client": "^1.4.0",
|
|
46
|
+
"@sisense/sdk-rest-client": "^1.4.0",
|
|
47
|
+
"@sisense/sdk-tracking": "^1.4.0",
|
|
48
48
|
"@sisense/sisense-charts": "5.1.0-alpha-04052758.0",
|
|
49
49
|
"@tanstack/react-query": "4.36.1",
|
|
50
50
|
"classnames": "^2.3.2",
|
|
@@ -121,6 +121,7 @@
|
|
|
121
121
|
"canvas": "^2.11.2",
|
|
122
122
|
"eslint": "^8.40.0",
|
|
123
123
|
"jsdom": "^22.1.0",
|
|
124
|
+
"msw": "2.2.1",
|
|
124
125
|
"plotly.js": "^2.25.2",
|
|
125
126
|
"postcss": "^8.4.31",
|
|
126
127
|
"prettier": "2.8.4",
|
|
@@ -136,8 +137,7 @@
|
|
|
136
137
|
"vite-plugin-checker": "^0.6.1",
|
|
137
138
|
"vite-plugin-css-injected-by-js": "3.0.1",
|
|
138
139
|
"vite-plugin-dts": "^2.3.0",
|
|
139
|
-
"vitest-canvas-mock": "^0.3.2"
|
|
140
|
-
"vitest-fetch-mock": "^0.2.2"
|
|
140
|
+
"vitest-canvas-mock": "^0.3.2"
|
|
141
141
|
},
|
|
142
142
|
"peerDependencies": {
|
|
143
143
|
"react": "^16.14.0 || ^17.0.0 || ^18.0.0",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ChatRestApi } from './chat-rest-api';
|
|
3
|
-
export declare const useChatApi: () => ChatRestApi | undefined;
|
|
4
|
-
/**
|
|
5
|
-
* React component that allows wrapped components to access the AI Chat API on a
|
|
6
|
-
* Sisense instance. Depends on {@link SisenseContextProvider}.
|
|
7
|
-
*
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
export declare const ChatApiContextProvider: ({ children }: {
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
}) => JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ChatContext } from './api/types';
|
|
3
|
-
type ChatbotContextProviderProps = {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
};
|
|
6
|
-
export declare const useChatbotContext: () => {
|
|
7
|
-
selectedContext?: ChatContext | undefined;
|
|
8
|
-
setSelectedContext: (context: ChatContext | undefined) => void;
|
|
9
|
-
};
|
|
10
|
-
export declare function ChatbotContextProvider({ children }: ChatbotContextProviderProps): JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* Props for {@link NlgQueryResult} component.
|
|
4
|
-
*
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export type NlgQueryResultProps = {
|
|
8
|
-
/** The data source that the JAQL metadata targets - e.g. `Sample ECommerce` */
|
|
9
|
-
dataSource: string;
|
|
10
|
-
/** The metadata that composes the JAQL to be analyzed */
|
|
11
|
-
metadata: unknown[];
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Fetch and display a collapsible analysis of the provided JAQL.
|
|
15
|
-
*
|
|
16
|
-
* @param props - {@link NlgQueryResultProps}
|
|
17
|
-
* @returns A response object containing a text summary
|
|
18
|
-
* @internal
|
|
19
|
-
*/
|
|
20
|
-
export default function NlgQueryResult(props: NlgQueryResultProps): JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CompleteThemeSettings } from '../types';
|
|
2
|
-
import { WidgetDto } from './types';
|
|
3
|
-
import { ChartWidgetProps, TableWidgetProps } from '../props';
|
|
4
|
-
export type TableWidgetExtractedProps = {
|
|
5
|
-
type: 'table';
|
|
6
|
-
props: TableWidgetProps;
|
|
7
|
-
};
|
|
8
|
-
export type ChartWidgetExtractedProps = {
|
|
9
|
-
type: 'chart';
|
|
10
|
-
props: ChartWidgetProps;
|
|
11
|
-
};
|
|
12
|
-
export declare function extractWidgetProps(widget: WidgetDto, themeSettings?: CompleteThemeSettings): TableWidgetExtractedProps | ChartWidgetExtractedProps;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ExecuteQueryParams } from './index';
|
|
2
|
-
import type { WidgetDto } from '../dashboard-widget/types';
|
|
3
|
-
/**
|
|
4
|
-
* Extracts query parameters from a widget object.
|
|
5
|
-
*
|
|
6
|
-
* @param {WidgetDto} widget - The widget from which to extract query parameters.
|
|
7
|
-
* @returns {ExecuteQueryParams} An object containing extracted query parameters.
|
|
8
|
-
*/
|
|
9
|
-
export declare function extractQueryFromWidget(widget: WidgetDto): ExecuteQueryParams;
|
package/dist/sisense-chart.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ChartDataOptionsInternal } from './chart-data-options/types';
|
|
3
|
-
import { ChartData } from './chart-data/types';
|
|
4
|
-
import { DataPointEventHandler, DataPointsEventHandler, ScatterDataPointEventHandler, ScatterDataPointsEventHandler } from './chart-options-processor/apply-event-handlers';
|
|
5
|
-
import { BeforeRenderHandler } from './props';
|
|
6
|
-
import { ChartDesignOptions } from './chart-options-processor/translations/types';
|
|
7
|
-
import { ChartType, CompleteThemeSettings } from './types';
|
|
8
|
-
interface Props {
|
|
9
|
-
chartType: ChartType;
|
|
10
|
-
chartData: ChartData;
|
|
11
|
-
chartDataOptions: ChartDataOptionsInternal;
|
|
12
|
-
designOptions: ChartDesignOptions;
|
|
13
|
-
themeSettings?: CompleteThemeSettings;
|
|
14
|
-
onDataPointClick?: DataPointEventHandler | ScatterDataPointEventHandler;
|
|
15
|
-
onDataPointContextMenu?: DataPointEventHandler | ScatterDataPointEventHandler;
|
|
16
|
-
onDataPointsSelected?: DataPointsEventHandler | ScatterDataPointsEventHandler;
|
|
17
|
-
onBeforeRender?: BeforeRenderHandler;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
export declare const SisenseChart: ({ chartType, chartData, chartDataOptions, designOptions, themeSettings, onDataPointClick, onDataPointContextMenu, onDataPointsSelected, onBeforeRender, }: Props) => JSX.Element | null;
|
|
23
|
-
export {};
|