@sisense/sdk-ui 1.12.0 → 1.14.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 +1 -1
- package/dist/ai/api/chat-rest-api.d.ts +10 -11
- package/dist/ai/api/hooks.d.ts +2 -2
- package/dist/ai/api/types.d.ts +2 -16
- package/dist/ai/buttons/scroll-to-bottom-button.d.ts +3 -0
- package/dist/ai/chat-config.d.ts +12 -3
- package/dist/ai/chat-home.d.ts +2 -1
- package/dist/ai/chatbot.d.ts +1 -1
- package/dist/ai/common/constants.d.ts +1 -0
- package/dist/ai/common/tooltip.d.ts +2 -2
- package/dist/ai/data-topics/data-topic-list.d.ts +0 -1
- package/dist/ai/get-nlg-query-result.d.ts +1 -1
- package/dist/ai/icons/scroll-to-bottom-icon.d.ts +1 -0
- package/dist/ai/scroll-to-bottom.d.ts +7 -0
- package/dist/ai/use-get-nlg-query-result.d.ts +1 -1
- package/dist/ai/use-get-query-recommendations.d.ts +1 -1
- package/dist/ai.cjs +89 -80
- package/dist/ai.js +828 -933
- package/dist/api/rest-api.d.ts +7 -7
- package/dist/api/types/dashboard-dto.d.ts +2 -0
- package/dist/chart/helpers/use-synced-data.d.ts +1 -1
- package/dist/chart-options-processor/chart-options-service.d.ts +4 -0
- package/dist/chart-options-processor/subtype-to-design-options.d.ts +13 -1
- package/dist/chart-options-processor/translations/axis-section.d.ts +1 -0
- package/dist/chart-options-processor/translations/sunburst/sunburst-series.d.ts +2 -0
- package/dist/chart-options-processor/translations/tooltip-utils.d.ts +2 -0
- package/dist/chart-options-processor/translations/translations-to-highcharts.d.ts +2 -0
- package/dist/common/components/loading-overlay.d.ts +1 -0
- package/dist/common-filters/common-filters-connector.d.ts +9 -0
- package/dist/common-filters/selection-utils.d.ts +11 -0
- package/dist/common-filters/types.d.ts +18 -0
- package/dist/common-filters/use-common-filters.d.ts +13 -0
- package/dist/common-filters/utils.d.ts +9 -0
- package/dist/common-filters/widget-header-clear-selection-button.d.ts +3 -0
- package/dist/dashboard/components/dashboard-container.d.ts +1 -1
- package/dist/dashboard/dashboard.d.ts +1 -1
- package/dist/dashboard/index.d.ts +3 -0
- package/dist/dashboard/types.d.ts +5 -2
- package/dist/dashboard/utils.d.ts +0 -3
- package/dist/dashboard-widget/translate-dashboard-filters.d.ts +4772 -2
- package/dist/dashboard-widget/translate-widget-data-options.d.ts +1 -1
- package/dist/dashboard-widget/translate-widget-filters.d.ts +200 -37
- package/dist/dashboard-widget/types.d.ts +1 -0
- package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +2 -12
- package/dist/dashboard-widget/utils.d.ts +3 -1
- package/dist/decorators/hook-decorators/with-tracking.d.ts +1 -2
- package/dist/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +31 -0
- package/dist/filters/components/cascading-filter-tile/cascading-level-filter.d.ts +27 -0
- package/dist/filters/components/cascading-filter-tile/index.d.ts +1 -0
- package/dist/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +2 -2
- package/dist/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +7 -0
- package/dist/filters/components/custom-filter-tile.d.ts +46 -0
- package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +8 -0
- package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +9 -2
- package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter.d.ts +2 -2
- package/dist/filters/components/filter-tile.d.ts +24 -1
- package/dist/filters/components/filters-panel/filters-panel-tile.d.ts +4 -2
- package/dist/filters/components/filters-panel/filters-panel.d.ts +4 -2
- package/dist/filters/components/icons/background-filter-icon.d.ts +5 -0
- package/dist/filters/components/icons/index.d.ts +1 -0
- package/dist/filters/components/icons/lock-icon.d.ts +2 -0
- package/dist/filters/components/member-filter-tile/member-filter-tile.d.ts +4 -1
- package/dist/filters/components/member-filter-tile/member-list.d.ts +1 -1
- package/dist/filters/hooks/use-synchronized-filter.d.ts +12 -0
- package/dist/filters/index.d.ts +2 -0
- package/dist/filters/utils.d.ts +7 -0
- package/dist/index.cjs +261 -167
- package/dist/index.d.ts +3 -2
- package/dist/index.js +23372 -18888
- package/dist/models/dashboard/dashboard-model.d.ts +12 -8
- package/dist/models/dashboard/get-dashboard-model.d.ts +2 -1
- package/dist/models/dashboard/translate-dashboard-utils.d.ts +3 -1
- package/dist/models/dashboard/types.d.ts +3 -0
- package/dist/models/widget/get-widget-model.d.ts +2 -1
- package/dist/models/widget/translate-widget.d.ts +5 -2
- package/dist/models/widget/types.d.ts +9 -0
- package/dist/models/widget/widget-model.d.ts +31 -1
- package/dist/pivot-table/formatters/utils.d.ts +1 -1
- package/dist/props.d.ts +12 -12
- package/dist/table/hooks/use-table-data.d.ts +1 -1
- package/dist/table/table-component.d.ts +4 -4
- package/dist/theme-provider/theme-provider.d.ts +2 -0
- package/dist/translation/resources/en.d.ts +5 -0
- package/dist/translation/resources/index.d.ts +10 -0
- package/dist/types.d.ts +204 -186
- package/dist/{useQuery-0UWck_2A.js → useQuery-Cxcx_l05.js} +13983 -13662
- package/dist/{useQuery-DVHD0kJ-.cjs → useQuery-_biaqvma.cjs} +119 -119
- package/dist/utils/color/color-interpolation.d.ts +1 -0
- package/package.json +10 -10
|
@@ -6,7 +6,7 @@ export type AiContextProviderProps = {
|
|
|
6
6
|
* React component that wraps all generative AI components and hooks.
|
|
7
7
|
*
|
|
8
8
|
* ::: warning Note
|
|
9
|
-
* This component is currently under beta release for
|
|
9
|
+
* This component is currently under beta release for our managed cloud customers on version L2024.2 or above. It is subject to changes as we make fixes and improvements.
|
|
10
10
|
* :::
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
|
-
import type { Chat, ChatRequest, ChatResponse, ChatWithoutHistory,
|
|
2
|
+
import type { Chat, ChatRequest, ChatResponse, ChatWithoutHistory, ChatContext, GetNlgQueryResultRequest, GetNlgQueryResultResponse, LlmConfig, QueryRecommendationConfig, QueryRecommendationResponse, SendFeedbackRequest } from './types';
|
|
3
3
|
import { DataSourceField } from '@sisense/sdk-query-client';
|
|
4
4
|
export declare class ChatRestApi {
|
|
5
5
|
private httpClient;
|
|
6
6
|
constructor(httpClient: HttpClient);
|
|
7
|
-
|
|
8
|
-
getPerspectives: () => Promise<Perspective[]>;
|
|
7
|
+
getChatContexts: () => Promise<ChatContext[]>;
|
|
9
8
|
private getNlgQueryResult;
|
|
10
9
|
private getQueryRecommendations;
|
|
11
10
|
private setLlmConfig;
|
|
@@ -17,17 +16,17 @@ export declare class ChatRestApi {
|
|
|
17
16
|
private sendFeedback;
|
|
18
17
|
private getDataSourceFields;
|
|
19
18
|
ai: {
|
|
20
|
-
getNlgQueryResult: (request: GetNlgQueryResultRequest) => Promise<GetNlgQueryResultResponse>;
|
|
21
|
-
getQueryRecommendations: (contextTitle: string, config: QueryRecommendationConfig) => Promise<QueryRecommendationResponse>;
|
|
19
|
+
getNlgQueryResult: (request: GetNlgQueryResultRequest) => Promise<GetNlgQueryResultResponse | undefined>;
|
|
20
|
+
getQueryRecommendations: (contextTitle: string, config: QueryRecommendationConfig) => Promise<QueryRecommendationResponse | undefined>;
|
|
22
21
|
setLlmConfig: (config: LlmConfig) => Promise<unknown>;
|
|
23
22
|
sendFeedback: (request: SendFeedbackRequest) => Promise<unknown>;
|
|
24
|
-
getDataSourceFields: (dataSource: string) => Promise<DataSourceField[]>;
|
|
23
|
+
getDataSourceFields: (dataSource: string) => Promise<DataSourceField[] | undefined>;
|
|
25
24
|
chat: {
|
|
26
|
-
getAll: () => Promise<ChatWithoutHistory[]>;
|
|
27
|
-
getById: (chatId: string) => Promise<Chat>;
|
|
28
|
-
create: (
|
|
29
|
-
post: (chatId: string, request: ChatRequest) => Promise<ChatResponse>;
|
|
30
|
-
clearHistory: (chatId: string) => Promise<void>;
|
|
25
|
+
getAll: () => Promise<ChatWithoutHistory[] | undefined>;
|
|
26
|
+
getById: (chatId: string) => Promise<Chat | undefined>;
|
|
27
|
+
create: (sourceId: string) => Promise<Chat | undefined>;
|
|
28
|
+
post: (chatId: string, request: ChatRequest) => Promise<ChatResponse | undefined>;
|
|
29
|
+
clearHistory: (chatId: string) => Promise<void | undefined>;
|
|
31
30
|
};
|
|
32
31
|
};
|
|
33
32
|
}
|
package/dist/ai/api/hooks.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChatResponse } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
5
|
export declare const useGetDataTopics: () => {
|
|
6
|
-
data: ChatContext[] | undefined;
|
|
6
|
+
data: import("./types").ChatContext[] | undefined;
|
|
7
7
|
isLoading: boolean;
|
|
8
8
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
9
9
|
};
|
package/dist/ai/api/types.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { JaqlQueryPayload, MetadataItem } from '@sisense/sdk-query-client';
|
|
2
2
|
import { ChartDataOptions } from '../../types';
|
|
3
3
|
export interface ChatContext {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type: ChatContextType;
|
|
7
|
-
description: string;
|
|
4
|
+
title: string;
|
|
5
|
+
live: boolean;
|
|
8
6
|
}
|
|
9
|
-
export type ChatContextType = 'datamodel' | 'perspective';
|
|
10
7
|
export interface NlqMessage {
|
|
11
8
|
role: 'assistant';
|
|
12
9
|
content: string;
|
|
@@ -20,7 +17,6 @@ export type ChatMessage = RegularMessage | NlqMessage;
|
|
|
20
17
|
export interface Chat {
|
|
21
18
|
chatId: string;
|
|
22
19
|
contextId: string;
|
|
23
|
-
contextType: ChatContextType;
|
|
24
20
|
contextTitle: string;
|
|
25
21
|
lastUpdate: string;
|
|
26
22
|
tenantId: string;
|
|
@@ -94,16 +90,6 @@ export interface QueryRecommendationConfig {
|
|
|
94
90
|
}
|
|
95
91
|
export type QueryRecommendation = Omit<NlqResponseData, 'followupQuestions'>;
|
|
96
92
|
export type QueryRecommendationResponse = QueryRecommendation[];
|
|
97
|
-
export interface DataModel {
|
|
98
|
-
oid: string;
|
|
99
|
-
title: string;
|
|
100
|
-
}
|
|
101
|
-
export interface Perspective {
|
|
102
|
-
oid: string;
|
|
103
|
-
name: string;
|
|
104
|
-
description: string;
|
|
105
|
-
isDefault: boolean;
|
|
106
|
-
}
|
|
107
93
|
export interface GetNlgQueryResultRequest {
|
|
108
94
|
jaql: Pick<JaqlQueryPayload, 'datasource' | 'metadata' | 'filterRelations'>;
|
|
109
95
|
}
|
package/dist/ai/chat-config.d.ts
CHANGED
|
@@ -20,11 +20,12 @@ export interface ChatConfig {
|
|
|
20
20
|
*/
|
|
21
21
|
numOfRecentPrompts: number;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* List of titles representing allowed contexts (data models or perspectives) for a chat session.
|
|
24
24
|
*
|
|
25
|
-
*
|
|
25
|
+
* Each context will be validated and checked for availability.
|
|
26
|
+
* If only one context is specified, the data topic selector screen will not be shown.
|
|
26
27
|
*/
|
|
27
|
-
|
|
28
|
+
dataTopicsList?: string[];
|
|
28
29
|
/**
|
|
29
30
|
* The chat mode to use for a chat session.
|
|
30
31
|
*
|
|
@@ -63,6 +64,14 @@ export interface ChatConfig {
|
|
|
63
64
|
* @internal
|
|
64
65
|
*/
|
|
65
66
|
enableInsights?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Boolean flag to start a clean chat on every load.
|
|
69
|
+
*
|
|
70
|
+
* Note: When the flag is `true`, chat history will be preserved and stored for the session but will not be fetched or displayed. Changing this setting back to `false` will make the entire history visible again, even if it was previously hidden. Use the "Clear History" button to completely erase the history.
|
|
71
|
+
*
|
|
72
|
+
* @default false
|
|
73
|
+
*/
|
|
74
|
+
hideHistory?: boolean;
|
|
66
75
|
}
|
|
67
76
|
export declare const DEFAULTS: Readonly<ChatConfig>;
|
|
68
77
|
export type ChatConfigProviderProps = {
|
package/dist/ai/chat-home.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
type ChatHomeProps = {
|
|
2
|
+
dataTopicsList: string[];
|
|
2
3
|
onDataTopicClick: (title: string) => void;
|
|
3
4
|
};
|
|
4
|
-
export default function ChatHome({ onDataTopicClick }: ChatHomeProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default function ChatHome({ dataTopicsList, onDataTopicClick }: ChatHomeProps): import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export {};
|
package/dist/ai/chatbot.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export type ChatbotProps = {
|
|
|
25
25
|
* React component that renders a chatbot with data topic selection. You can optionally provide `width` and/or `height`.
|
|
26
26
|
*
|
|
27
27
|
* ::: warning Note
|
|
28
|
-
* This component is currently under beta release for
|
|
28
|
+
* This component is currently under beta release for our managed cloud customers on version L2024.2 or above. It is subject to changes as we make fixes and improvements.
|
|
29
29
|
* :::
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CHAT_INPUT_MAX_LENGTH = 500;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type TooltipProps as MuiTooltipProps } from '@mui/material/Tooltip';
|
|
2
|
-
type TooltipProps = Pick<MuiTooltipProps, 'title' | 'children'>;
|
|
3
|
-
export default function Tooltip({ title, children }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
type TooltipProps = Pick<MuiTooltipProps, 'title' | 'placement' | 'children'>;
|
|
3
|
+
export default function Tooltip({ title, placement, children }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export {};
|
|
@@ -10,7 +10,7 @@ export interface GetNlgQueryResultProps extends Omit<UseGetNlgQueryResultParams,
|
|
|
10
10
|
* Specifying a query is similar to providing parameters to a {@link useExecuteQuery} hook, using dimensions, measures, and filters.
|
|
11
11
|
*
|
|
12
12
|
* ::: warning Note
|
|
13
|
-
* This component is currently under beta release for
|
|
13
|
+
* This component is currently under beta release for our managed cloud customers on version L2024.2 or above. It is subject to changes as we make fixes and improvements.
|
|
14
14
|
* :::
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function ScrollToBottomIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type ScrollToBottomProps = {
|
|
2
|
+
isVisible: boolean;
|
|
3
|
+
anchorElement: HTMLDivElement | null;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const ScrollToBottom: ({ isVisible, onClick, anchorElement }: ScrollToBottomProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -46,7 +46,7 @@ export declare const useGetNlgQueryResultInternal: (params: GetNlgQueryResultPro
|
|
|
46
46
|
* Specifying a query is similar to providing parameters to a {@link useExecuteQuery} hook, using dimensions, measures, and filters.
|
|
47
47
|
*
|
|
48
48
|
* ::: warning Note
|
|
49
|
-
* This hook is currently under beta release for
|
|
49
|
+
* This hook is currently under beta release for our managed cloud customers on version L2024.2 or above. It is subject to changes as we make fixes and improvements.
|
|
50
50
|
* :::
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
@@ -36,7 +36,7 @@ export declare const useGetQueryRecommendationsInternal: (params: UseGetQueryRec
|
|
|
36
36
|
* This hook includes the same code that fetches the initial suggested questions in the chatbot.
|
|
37
37
|
*
|
|
38
38
|
* ::: warning Note
|
|
39
|
-
* This hook is currently under beta release for
|
|
39
|
+
* This hook is currently under beta release for our managed cloud customers on version L2024.2 or above. It is subject to changes as we make fixes and improvements.
|
|
40
40
|
* :::
|
|
41
41
|
*
|
|
42
42
|
* @example
|