@sisense/sdk-ui 1.8.0 → 1.10.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 -4
- package/dist/ai/ai-disclaimer.d.ts +4 -2
- package/dist/ai/api/chat-api-provider.d.ts +1 -1
- package/dist/ai/buttons/insights-button.d.ts +3 -0
- package/dist/ai/buttons/thumbs-down-button.d.ts +1 -2
- package/dist/ai/buttons/thumbs-up-button.d.ts +1 -2
- package/dist/ai/chat-box.d.ts +1 -2
- package/dist/ai/chat-config.d.ts +21 -1
- package/dist/ai/chat-dropup.d.ts +11 -0
- package/dist/ai/chat-frame.d.ts +7 -4
- package/dist/ai/chat-home.d.ts +1 -2
- package/dist/ai/chat-input.d.ts +4 -2
- package/dist/ai/chat-router.d.ts +1 -2
- package/dist/ai/chatbot.d.ts +0 -7
- package/dist/ai/common/collapsible.d.ts +1 -2
- package/dist/ai/common/dropup-section.d.ts +7 -0
- package/dist/ai/common/error-container.d.ts +1 -2
- package/dist/ai/common/icon-button.d.ts +12 -0
- package/dist/ai/{toolbar.d.ts → common/toolbar.d.ts} +5 -0
- package/dist/ai/common/tooltip.d.ts +2 -3
- package/dist/ai/data-topics/data-topic-item.d.ts +1 -2
- package/dist/ai/data-topics/data-topic-list.d.ts +1 -2
- package/dist/ai/icons/arrow-left-icon.d.ts +5 -2
- package/dist/ai/icons/clear-chat-icon.d.ts +2 -2
- package/dist/ai/icons/close-dialog-icon.d.ts +1 -2
- package/dist/ai/icons/expand-icon.d.ts +3 -2
- package/dist/ai/icons/info-icon.d.ts +3 -2
- package/dist/ai/icons/light-bulb-icon.d.ts +3 -2
- package/dist/ai/icons/loading-dots-icon.d.ts +1 -2
- package/dist/ai/icons/message-icon.d.ts +2 -2
- package/dist/ai/icons/refresh-icon.d.ts +1 -2
- package/dist/ai/icons/sisense-logo.d.ts +5 -2
- package/dist/ai/icons/three-dots-icon.d.ts +3 -2
- package/dist/ai/icons/thumbs-down-hovered-icon.d.ts +2 -2
- package/dist/ai/icons/thumbs-down-icon.d.ts +2 -2
- package/dist/ai/icons/thumbs-up-hovered-icon.d.ts +2 -2
- package/dist/ai/icons/thumbs-up-icon.d.ts +2 -2
- package/dist/ai/index.d.ts +3 -1
- package/dist/ai/messages/chart-message-toolbar.d.ts +1 -2
- package/dist/ai/messages/chart-message.d.ts +1 -2
- package/dist/ai/messages/chat-welcome-message.d.ts +1 -2
- package/dist/ai/messages/clear-history-message.d.ts +1 -2
- package/dist/ai/messages/clear-history-success-message.d.ts +1 -2
- package/dist/ai/messages/clickable-message.d.ts +4 -2
- package/dist/ai/messages/feedback-wrapper.d.ts +2 -2
- package/dist/ai/messages/get-widget-options.d.ts +14 -0
- package/dist/ai/messages/insights-message.d.ts +1 -7
- package/dist/ai/messages/jaql-element.d.ts +5 -2
- package/dist/ai/messages/message-list-resolver.d.ts +1 -2
- package/dist/ai/messages/message-resolver.d.ts +2 -1
- package/dist/ai/messages/nlq-message-group.d.ts +6 -4
- package/dist/ai/messages/text-message.d.ts +4 -5
- package/dist/ai/nav-back-button.d.ts +6 -4
- package/dist/ai/suggestions/suggestion-item.d.ts +1 -2
- package/dist/ai/suggestions/suggestion-list-skeleton.d.ts +1 -2
- package/dist/ai/suggestions/suggestion-list.d.ts +1 -2
- package/dist/ai/suggestions/suggestions-with-intro.d.ts +1 -2
- package/dist/ai/{translators/use-get-data-source.d.ts → use-get-data-source-fields.d.ts} +2 -2
- package/dist/ai.js +2130 -7264
- package/dist/alert-box/alert-box.d.ts +1 -2
- package/dist/api/types/dashboard-dto.d.ts +16 -0
- package/dist/app/client-application.d.ts +6 -2
- package/dist/area-chart.d.ts +3 -3
- package/dist/bar-chart.d.ts +2 -2
- package/dist/chart/helpers/use-translated-data-options.d.ts +2 -2
- package/dist/chart-data-options/get-translated-data-options.d.ts +2 -2
- package/dist/chart-data-options/utils.d.ts +10 -0
- package/dist/chart-options-processor/style-to-design-options-translator/prepare-design-options.d.ts +4 -2
- package/dist/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +7 -4
- package/dist/chart-options-processor/theme-option-service.d.ts +0 -8
- package/dist/chart-options-processor/translations/design-options.d.ts +9 -7
- package/dist/chart-options-processor/translations/types.d.ts +7 -6
- package/dist/charts/map-charts/areamap/areamap.d.ts +3 -6
- package/dist/charts/map-charts/scattermap/scattermap.d.ts +5 -9
- package/dist/charts/table/data-table-wrapper.d.ts +1 -2
- package/dist/charts/table/header/field-type-icon.d.ts +1 -2
- package/dist/charts/table/pure-table.d.ts +1 -2
- package/dist/column-chart.d.ts +2 -2
- package/dist/common/components/loading-dots.d.ts +1 -2
- package/dist/common/components/loading-indicator.d.ts +83 -2
- package/dist/common/components/loading-overlay.d.ts +1 -1
- package/dist/common/components/loading-spinner.d.ts +1 -2
- package/dist/common/icons/exclamation-mark-icon.d.ts +1 -2
- package/dist/common/icons/loading-icon.d.ts +1 -2
- package/dist/dashboard-widget/translate-widget-style-options.d.ts +3 -2
- package/dist/dashboard-widget/types.d.ts +22 -2
- package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +1 -0
- package/dist/dashboard-widget/utils.d.ts +9 -0
- package/dist/debounce-2yQ2123W.js +76298 -0
- package/dist/decorators/component-decorators/with-tracking/use-track-component-init.d.ts +1 -1
- package/dist/dynamic-size-container/default-size.d.ts +5 -1
- package/dist/dynamic-size-container/dynamic-size-container.d.ts +12 -3
- package/dist/error-boundary/error-boundary-box.d.ts +1 -2
- package/dist/error-boundary/error-boundary.d.ts +1 -1
- package/dist/filters/components/common/dropdown.d.ts +1 -1
- package/dist/filters/components/common/switch.d.ts +4 -1
- package/dist/filters/components/common/triangle-indicator.d.ts +1 -2
- package/dist/filters/components/date-filter/date-filter/calendar-date-selector.d.ts +1 -2
- package/dist/filters/components/date-filter/date-filter/calendar-header.d.ts +1 -2
- package/dist/filters/components/date-filter/date-filter/date-filter.d.ts +1 -2
- package/dist/filters/components/date-filter/date-filter/quick-date-selection-buttons.d.ts +1 -2
- package/dist/filters/components/icons/arrow-down-icon.d.ts +1 -1
- package/dist/filters/components/icons/arrow-right-icon.d.ts +1 -1
- package/dist/filters/components/icons/date-icon.d.ts +1 -1
- package/dist/filters/components/icons/double-arrow-right-icon.d.ts +1 -1
- package/dist/filters/components/icons/menu-icon.d.ts +1 -1
- package/dist/filters/components/icons/pencil-icon.d.ts +1 -1
- package/dist/filters/components/icons/plus-icon.d.ts +1 -1
- package/dist/filters/components/icons/search-icon.d.ts +1 -1
- package/dist/filters/components/icons/trash-icon.d.ts +1 -1
- package/dist/highcharts-memorized.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +35808 -7229
- package/dist/indicator-canvas.d.ts +4 -9
- package/dist/line-chart.d.ts +2 -2
- package/dist/models/dashboard/translate-dashboard.d.ts +3 -2
- package/dist/models/dashboard/types.d.ts +6 -8
- package/dist/models/widget/use-get-widget-model.d.ts +1 -1
- package/dist/models/widget/widget-model.d.ts +50 -6
- package/dist/no-results-overlay/no-results-overlay.d.ts +1 -2
- package/dist/pie-chart.d.ts +2 -2
- package/dist/pivot-table/helpers/prepare-pivot-styling-props.d.ts +20 -0
- package/dist/pivot-table/sorting-utils.d.ts +11 -55
- package/dist/pivot-table/use-get-pivot-table-query.d.ts +10 -2
- package/dist/pivot-table/use-pivot-table-data-options-internal.d.ts +15 -0
- package/dist/polar-chart.d.ts +2 -2
- package/dist/props.d.ts +61 -2
- package/dist/query-execution/use-execute-query.d.ts +1 -1
- package/dist/scatter-chart.d.ts +1 -1
- package/dist/sisense-chart/sisense-chart.d.ts +4 -6
- package/dist/theme-provider/default-theme-settings.d.ts +9 -0
- package/dist/theme-provider/types.d.ts +7 -0
- package/dist/translation/i18n-provider.d.ts +1 -1
- package/dist/translation/resources/en.d.ts +3 -1
- package/dist/translation/resources/index.d.ts +6 -2
- package/dist/types.d.ts +170 -1
- package/dist/widgets/common/context-menu.d.ts +1 -2
- package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
- package/dist/widgets/common/widget-container.d.ts +15 -0
- package/dist/widgets/common/widget-header-info-button.d.ts +1 -2
- package/dist/widgets/drilldown-widget.d.ts +2 -3
- package/dist/widgets/pivot-table-widget.d.ts +22 -0
- package/package.json +18 -19
- package/dist/ai/chat-style-provider.d.ts +0 -22
- package/dist/ai/icons/magic-wand-icon.d.ts +0 -2
- package/dist/ai/magic-wand-dropdown.d.ts +0 -7
- package/dist/ai/suggestions/suggestion-dropdown-item.d.ts +0 -7
- package/dist/ai/suggestions/suggestion-dropdown-list.d.ts +0 -7
- package/dist/ai/translators/code-templates.d.ts +0 -11
- package/dist/ai/translators/generate-code.d.ts +0 -9
- package/dist/ai/translators/index.d.ts +0 -4
- package/dist/ai/translators/model-translator.d.ts +0 -51
- package/dist/ai/translators/query-translator.d.ts +0 -137
- package/dist/ai/translators/translate-filters-to-code.d.ts +0 -2
- package/dist/ai/translators/translate-props-to-code.d.ts +0 -8
- package/dist/ai/translators/types.d.ts +0 -105
- package/dist/ai/translators/utils.d.ts +0 -12
- package/dist/useQuery-cb11e76c.js +0 -121619
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { ChatConfig } from './chat-config';
|
|
3
2
|
export type AiContextProviderProps = {
|
|
4
3
|
children: ReactNode;
|
|
5
|
-
/** @internal */
|
|
6
|
-
config?: Partial<ChatConfig>;
|
|
7
4
|
};
|
|
8
5
|
/**
|
|
9
6
|
* React component that wraps all generative AI components and hooks.
|
|
@@ -30,4 +27,4 @@ export type AiContextProviderProps = {
|
|
|
30
27
|
* @group Generative AI
|
|
31
28
|
* @beta
|
|
32
29
|
*/
|
|
33
|
-
export default function AiContextProvider({ children
|
|
30
|
+
export default function AiContextProvider({ children }: AiContextProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type ThumbsDownButtonProps = {
|
|
3
2
|
onClick?: () => void;
|
|
4
3
|
};
|
|
5
|
-
export default function ThumbsDownButton({ onClick }: ThumbsDownButtonProps): JSX.Element;
|
|
4
|
+
export default function ThumbsDownButton({ onClick }: ThumbsDownButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type ThumbsUpButtonProps = {
|
|
3
2
|
onClick?: () => void;
|
|
4
3
|
};
|
|
5
|
-
export default function ThumbsUpButton({ onClick }: ThumbsUpButtonProps): JSX.Element;
|
|
4
|
+
export default function ThumbsUpButton({ onClick }: ThumbsUpButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export {};
|
package/dist/ai/chat-box.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export type ChatBoxProps = {
|
|
3
2
|
contextTitle: string;
|
|
4
3
|
onGoBack?: () => void;
|
|
5
4
|
};
|
|
6
|
-
export default function ChatBox({ contextTitle, onGoBack }: ChatBoxProps): JSX.Element;
|
|
5
|
+
export default function ChatBox({ contextTitle, onGoBack }: ChatBoxProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/ai/chat-config.d.ts
CHANGED
|
@@ -13,6 +13,12 @@ export interface ChatConfig {
|
|
|
13
13
|
* If not specified, the default value is `4`
|
|
14
14
|
*/
|
|
15
15
|
numOfRecommendations: number;
|
|
16
|
+
/**
|
|
17
|
+
* Number of recent prompts that should be shown in a chat session
|
|
18
|
+
*
|
|
19
|
+
* If not specified, the default value is `5`
|
|
20
|
+
*/
|
|
21
|
+
numOfRecentPrompts: number;
|
|
16
22
|
/**
|
|
17
23
|
* The default context (data model or perspective) title to use for a chat session
|
|
18
24
|
*
|
|
@@ -33,6 +39,20 @@ export interface ChatConfig {
|
|
|
33
39
|
* A value of `false` will hide the welcome text.
|
|
34
40
|
*/
|
|
35
41
|
welcomeText?: string | false;
|
|
42
|
+
/**
|
|
43
|
+
* Boolean flag to show or hide the header in a chat session.
|
|
44
|
+
*
|
|
45
|
+
* @default true
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
enableHeader?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Boolean flag to show or hide the insights button in a chat session.
|
|
51
|
+
*
|
|
52
|
+
* @default true
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
enableInsights?: boolean;
|
|
36
56
|
}
|
|
37
57
|
export declare const DEFAULTS: Readonly<ChatConfig>;
|
|
38
58
|
export type ChatConfigProviderProps = {
|
|
@@ -40,4 +60,4 @@ export type ChatConfigProviderProps = {
|
|
|
40
60
|
value: Partial<ChatConfig>;
|
|
41
61
|
};
|
|
42
62
|
export declare const useChatConfig: () => ChatConfig;
|
|
43
|
-
export declare const ChatConfigProvider: ({ children, value }: ChatConfigProviderProps) => JSX.Element;
|
|
63
|
+
export declare const ChatConfigProvider: ({ children, value }: ChatConfigProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const isCommand: (text: string) => boolean;
|
|
2
|
+
interface ChatDropupProps {
|
|
3
|
+
recentPrompts: string[];
|
|
4
|
+
suggestions: string[];
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
onSelection: (q: string) => void;
|
|
7
|
+
anchorEl: HTMLElement | null;
|
|
8
|
+
text: string;
|
|
9
|
+
}
|
|
10
|
+
export default function ChatDropup({ recentPrompts, suggestions, isLoading, onSelection, anchorEl, text, }: ChatDropupProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
package/dist/ai/chat-frame.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Themable } from '../theme-provider/types';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
type Sizable = {
|
|
3
4
|
width?: CSSProperties['width'];
|
|
4
5
|
height?: CSSProperties['height'];
|
|
5
|
-
children: ReactNode;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export declare const ChatFrame: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
10
|
+
} & Themable & Sizable, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
11
|
export {};
|
package/dist/ai/chat-home.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type ChatHomeProps = {
|
|
3
2
|
onDataTopicClick: (title: string) => void;
|
|
4
3
|
};
|
|
5
|
-
export default function ChatHome({ onDataTopicClick }: ChatHomeProps): JSX.Element;
|
|
4
|
+
export default function ChatHome({ onDataTopicClick }: ChatHomeProps): import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export {};
|
package/dist/ai/chat-input.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export type ChatInputProps = {
|
|
3
2
|
onSendMessage: (message: string) => void;
|
|
4
3
|
onClearHistoryClick?: () => void;
|
|
5
4
|
disabled?: boolean;
|
|
5
|
+
recentPrompts: string[];
|
|
6
|
+
suggestions: string[];
|
|
7
|
+
isLoading: boolean;
|
|
6
8
|
};
|
|
7
|
-
export default function ChatInput({ onSendMessage, onClearHistoryClick, disabled, }: ChatInputProps): JSX.Element;
|
|
9
|
+
export default function ChatInput({ onSendMessage, onClearHistoryClick, disabled, recentPrompts, suggestions, isLoading, }: ChatInputProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/ai/chat-router.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function ChatRouter(): JSX.Element;
|
|
1
|
+
export default function ChatRouter(): import("react/jsx-runtime").JSX.Element;
|
package/dist/ai/chatbot.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { ChatConfig } from './chat-config';
|
|
3
|
-
import { ChatStyle } from './chat-style-provider';
|
|
4
3
|
/**
|
|
5
4
|
* Props for {@link Chatbot} component.
|
|
6
5
|
*/
|
|
@@ -17,12 +16,6 @@ export type ChatbotProps = {
|
|
|
17
16
|
* If not specified, a default height of `900px` will be used.
|
|
18
17
|
*/
|
|
19
18
|
height?: CSSProperties['height'];
|
|
20
|
-
/**
|
|
21
|
-
* Style settings for the chatbot
|
|
22
|
-
*
|
|
23
|
-
* @internal
|
|
24
|
-
*/
|
|
25
|
-
style?: ChatStyle;
|
|
26
19
|
/**
|
|
27
20
|
* Various configuration options for the chatbot
|
|
28
21
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type CollapsibleProps = {
|
|
3
2
|
text: string;
|
|
4
3
|
};
|
|
@@ -7,5 +6,5 @@ type CollapsibleProps = {
|
|
|
7
6
|
*
|
|
8
7
|
* @internal
|
|
9
8
|
*/
|
|
10
|
-
export default function Collapsible({ text }: CollapsibleProps): JSX.Element;
|
|
9
|
+
export default function Collapsible({ text }: CollapsibleProps): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface DropupSectionProps {
|
|
2
|
+
title: string;
|
|
3
|
+
items: string[];
|
|
4
|
+
onSelect: (selection: string) => void;
|
|
5
|
+
alwaysExpanded?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export default function DropupSection({ title, items, onSelect, alwaysExpanded, }: DropupSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type ErrorPageProps = {
|
|
3
2
|
text: string;
|
|
4
3
|
action?: {
|
|
@@ -6,5 +5,5 @@ type ErrorPageProps = {
|
|
|
6
5
|
onClick: () => void;
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
|
-
export default function ErrorContainer({ text, action }: ErrorPageProps): JSX.Element;
|
|
8
|
+
export default function ErrorContainer({ text, action }: ErrorPageProps): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type IconButtonProps as MuiIconButtonProps } from '@mui/material/IconButton';
|
|
3
|
+
import { CompleteThemeSettings } from '../../types';
|
|
4
|
+
interface IconButtonProps extends MuiIconButtonProps {
|
|
5
|
+
$themeSettings?: CompleteThemeSettings;
|
|
6
|
+
}
|
|
7
|
+
declare const IconButton: import("@emotion/styled").StyledComponent<import("@mui/material/IconButton").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
8
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
9
|
+
}, "children" | "style" | "disabled" | "size" | "className" | "tabIndex" | "color" | "action" | "classes" | "sx" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
} & IconButtonProps, {}, {}>;
|
|
12
|
+
export default IconButton;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
type ToolbarStyle = {
|
|
3
|
+
textColor: string;
|
|
4
|
+
backgroundColor: string;
|
|
5
|
+
};
|
|
2
6
|
export interface Props {
|
|
3
7
|
title: string;
|
|
4
8
|
leftNav: ReactNode;
|
|
5
9
|
rightNav?: JSX.Element;
|
|
10
|
+
style: ToolbarStyle;
|
|
6
11
|
}
|
|
7
12
|
declare const _default: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
13
|
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { type TooltipProps as MuiTooltipProps } from '@mui/material';
|
|
1
|
+
import { type TooltipProps as MuiTooltipProps } from '@mui/material/Tooltip';
|
|
3
2
|
type TooltipProps = Pick<MuiTooltipProps, 'title' | 'children'>;
|
|
4
|
-
export default function Tooltip({ title, children }: TooltipProps): JSX.Element;
|
|
3
|
+
export default function Tooltip({ title, children }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type Props = {
|
|
3
2
|
title: string;
|
|
4
3
|
description?: string;
|
|
5
4
|
onClick?: () => void;
|
|
6
5
|
};
|
|
7
|
-
export default function DataTopicItem(props: Props): JSX.Element;
|
|
6
|
+
export default function DataTopicItem(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface DataTopic {
|
|
3
2
|
title: string;
|
|
4
3
|
description: string;
|
|
@@ -7,4 +6,4 @@ export interface DataTopic {
|
|
|
7
6
|
export interface Props {
|
|
8
7
|
dataTopics: DataTopic[];
|
|
9
8
|
}
|
|
10
|
-
export default function DataTopicList(props: Props): JSX.Element;
|
|
9
|
+
export default function DataTopicList(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export default function ClearChatIcon(): JSX.Element;
|
|
1
|
+
import { Themable } from '../../theme-provider/types';
|
|
2
|
+
export default function ClearChatIcon({ theme }: Themable): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function CloseDialogIcon(): JSX.Element;
|
|
1
|
+
export default function CloseDialogIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default function ExpandIcon({ fill }: {
|
|
2
|
+
fill?: string;
|
|
3
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default function InfoIcon({ fill }: {
|
|
2
|
+
fill?: string;
|
|
3
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default function LightBulbIcon({ hover }: {
|
|
2
|
+
hover?: boolean;
|
|
3
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function LoadingDotsIcon(): JSX.Element;
|
|
1
|
+
export default function LoadingDotsIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export default function MessageIcon(): JSX.Element;
|
|
1
|
+
import { Themable } from '../../theme-provider/types';
|
|
2
|
+
export default function MessageIcon({ theme }: Themable): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function RefreshIcon(): JSX.Element;
|
|
1
|
+
export default function RefreshIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export default function SisenseLogo(
|
|
1
|
+
type ColorSchema = 'yellow-white' | 'yellow-black';
|
|
2
|
+
export default function SisenseLogo({ colorSchema }: {
|
|
3
|
+
colorSchema: ColorSchema;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default function ThreeDotsIcon({ fill }: {
|
|
2
|
+
fill?: string;
|
|
3
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export default function ThumbsDownHoveredIcon(): JSX.Element;
|
|
1
|
+
import { Themable } from '../../theme-provider/types';
|
|
2
|
+
export default function ThumbsDownHoveredIcon({ theme }: Themable): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export default function ThumbsDownIcon(): JSX.Element;
|
|
1
|
+
import { Themable } from '../../theme-provider/types';
|
|
2
|
+
export default function ThumbsDownIcon({ theme }: Themable): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export default function ThumbsUpHoveredIcon(): JSX.Element;
|
|
1
|
+
import { Themable } from '../../theme-provider/types';
|
|
2
|
+
export default function ThumbsUpHoveredIcon({ theme }: Themable): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export default function ThumbsUpIcon(): JSX.Element;
|
|
1
|
+
import { Themable } from '../../theme-provider/types';
|
|
2
|
+
export default function ThumbsUpIcon({ theme }: Themable): import("react/jsx-runtime").JSX.Element;
|
package/dist/ai/index.d.ts
CHANGED
|
@@ -3,7 +3,9 @@ export { type ChatConfig } from './chat-config';
|
|
|
3
3
|
export { useGetNlgQueryResult, type UseGetNlgQueryResultParams, type UseGetNlgQueryResultState, } from './use-get-nlg-query-result';
|
|
4
4
|
export { useGetQueryRecommendations, type UseGetQueryRecommendationsParams, type UseGetQueryRecommendationsState, } from './use-get-query-recommendations';
|
|
5
5
|
export { useChatSession, type UseChatSessionResult } from './use-chat-session';
|
|
6
|
+
export { useGetDataSourceFields } from './use-get-data-source-fields';
|
|
6
7
|
export type { GetNlgQueryResultRequest, QueryRecommendationResponse, QueryRecommendation, NlqResponseData, ChartRecommendations, AxesMapping, AxesMappingKey, AllPossibleChartOptionKeys, KeysOfUnion, } from './api/types';
|
|
7
8
|
export { Chatbot, type ChatbotProps } from './chatbot';
|
|
8
9
|
export { default as GetNlgQueryResult, type GetNlgQueryResultProps } from './get-nlg-query-result';
|
|
9
|
-
export
|
|
10
|
+
export { getChartOptions, getTableOptions, deriveChartFamily } from './messages/get-widget-options';
|
|
11
|
+
export { JaqlElement } from './messages/jaql-element';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type ChartMessageToolbarProps = {
|
|
3
2
|
infoTooltipText?: string;
|
|
4
3
|
onRefresh: () => void;
|
|
5
4
|
onExpand: () => void;
|
|
6
5
|
};
|
|
7
|
-
export default function ChartMessageToolbar({ infoTooltipText, onRefresh, onExpand, }: ChartMessageToolbarProps): JSX.Element;
|
|
6
|
+
export default function ChartMessageToolbar({ infoTooltipText, onRefresh, onExpand, }: ChartMessageToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { NlqResponseData } from '../api/types';
|
|
3
2
|
type ChartMessageProps = {
|
|
4
3
|
content: NlqResponseData;
|
|
5
4
|
dataSource: string;
|
|
6
5
|
};
|
|
7
|
-
export default function ChartMessage({ content, dataSource }: ChartMessageProps): JSX.Element;
|
|
6
|
+
export default function ChartMessage({ content, dataSource }: ChartMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function ChatWelcomeMessage(): JSX.Element | null;
|
|
1
|
+
export default function ChatWelcomeMessage(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export type ClearHistoryMessageProps = {
|
|
3
2
|
onConfirm: () => void;
|
|
4
3
|
onCancel: () => void;
|
|
5
4
|
};
|
|
6
|
-
export default function ClearHistoryMessage({ onCancel, onConfirm }: ClearHistoryMessageProps): JSX.Element;
|
|
5
|
+
export default function ClearHistoryMessage({ onCancel, onConfirm }: ClearHistoryMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function ClearHistorySuccessMessage(): JSX.Element;
|
|
1
|
+
export default function ClearHistorySuccessMessage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
type Props = {
|
|
3
3
|
children: string | JSX.Element;
|
|
4
4
|
align: 'left' | 'right';
|
|
5
|
-
onClick
|
|
5
|
+
onClick?: () => void;
|
|
6
6
|
disabled?: boolean;
|
|
7
|
+
onMouseEnter?: () => void;
|
|
8
|
+
onMouseLeave?: () => void;
|
|
7
9
|
};
|
|
8
|
-
export default function ClickableMessage({ children, align, onClick,
|
|
10
|
+
export default function ClickableMessage({ children, align, onClick, onMouseEnter, onMouseLeave, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
export {};
|
|
@@ -3,8 +3,8 @@ type FeedbackWrapperProps = {
|
|
|
3
3
|
sourceId: string;
|
|
4
4
|
data: object;
|
|
5
5
|
type: string;
|
|
6
|
-
|
|
6
|
+
buttonVisibility?: 'onHover' | 'always' | 'never';
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
};
|
|
9
|
-
export default function FeedbackWrapper({ sourceId, data, type,
|
|
9
|
+
export default function FeedbackWrapper({ sourceId, data, type, buttonVisibility, children, }: FeedbackWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -2,13 +2,27 @@ import { MetadataItem } from '@sisense/sdk-query-client';
|
|
|
2
2
|
import { ChartDataOptions, ChartStyleOptions } from '../../types';
|
|
3
3
|
import { ChartRecommendations, NlqResponseData } from '../api/types';
|
|
4
4
|
export declare const getChartRecommendationsOrDefault: (response: NlqResponseData) => ChartRecommendations;
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
5
8
|
export declare const getTableOptions: (jaql: MetadataItem[]) => {
|
|
6
9
|
dataOptions: {
|
|
7
10
|
columns: import("./jaql-element").JaqlElement[];
|
|
8
11
|
};
|
|
9
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
10
16
|
export declare const getChartOptions: (jaql: MetadataItem[], chartRecommendations: ChartRecommendations) => {
|
|
11
17
|
dataOptions: ChartDataOptions;
|
|
12
18
|
chartStyleOptions: ChartStyleOptions;
|
|
13
19
|
expandedChartStyleOptions: ChartStyleOptions;
|
|
14
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* Derives chart family from chart type.
|
|
23
|
+
*
|
|
24
|
+
* @param chartType - chart type
|
|
25
|
+
* @returns chart family
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export declare const deriveChartFamily: (chartType: string) => string;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { GetNlgQueryResultRequest } from '../api/types';
|
|
3
|
-
export declare function InsightsButton({ onClick, disabled }: {
|
|
4
|
-
onClick: () => void;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
}): JSX.Element;
|
|
7
2
|
type InsightsMessageProps = {
|
|
8
3
|
nlgRequest: GetNlgQueryResultRequest;
|
|
9
|
-
visible?: boolean;
|
|
10
4
|
};
|
|
11
|
-
export default function InsightsMessage({ nlgRequest
|
|
5
|
+
export default function InsightsMessage({ nlgRequest }: InsightsMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
12
6
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DimensionalElement } from '@sisense/sdk-data';
|
|
1
|
+
import { DimensionalElement, SortDirection } from '@sisense/sdk-data';
|
|
2
2
|
import { MetadataItem } from '@sisense/sdk-query-client';
|
|
3
3
|
/**
|
|
4
4
|
* This implementation wraps metadata for a JAQL query. The metadata could be
|
|
@@ -15,9 +15,12 @@ import { MetadataItem } from '@sisense/sdk-query-client';
|
|
|
15
15
|
* @internal
|
|
16
16
|
*/
|
|
17
17
|
export declare class JaqlElement extends DimensionalElement {
|
|
18
|
-
private metadataItem;
|
|
18
|
+
private readonly metadataItem;
|
|
19
19
|
expression: string;
|
|
20
20
|
skipValidation: boolean;
|
|
21
|
+
aggregation?: string;
|
|
22
|
+
formula?: string;
|
|
23
|
+
sortType?: SortDirection;
|
|
21
24
|
constructor(item: MetadataItem, type: string);
|
|
22
25
|
get id(): string;
|
|
23
26
|
jaql(): MetadataItem;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ChatMessage } from '../api/types';
|
|
3
2
|
export type MessageListResolverProps = {
|
|
4
3
|
messages: ChatMessage[];
|
|
5
4
|
};
|
|
6
|
-
export default function MessageListResolver({ messages }: MessageListResolverProps): JSX.Element;
|
|
5
|
+
export default function MessageListResolver({ messages }: MessageListResolverProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { ChatMessage } from '../api/types';
|
|
3
3
|
type MessageResolverProps = {
|
|
4
4
|
message: ChatMessage;
|
|
5
|
+
isLastMessage?: boolean;
|
|
5
6
|
};
|
|
6
|
-
declare function MessageResolver({ message }: MessageResolverProps): JSX.Element;
|
|
7
|
+
declare function MessageResolver({ message, isLastMessage }: MessageResolverProps): import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
declare const _default: import("react").MemoExoticComponent<typeof MessageResolver>;
|
|
8
9
|
export default _default;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { NlqResponseData } from '../api/types';
|
|
2
|
+
interface NlqMessageGroupProps {
|
|
3
|
+
data: NlqResponseData;
|
|
4
|
+
alwaysShowFeedback?: boolean;
|
|
5
|
+
}
|
|
3
6
|
/**
|
|
4
7
|
* Renders a NLQ response as a series of chat messages/buttons.
|
|
5
8
|
*
|
|
6
9
|
* @internal
|
|
7
10
|
*/
|
|
8
|
-
export default function NlqMessageGroup({ data }:
|
|
9
|
-
|
|
10
|
-
}): JSX.Element;
|
|
11
|
+
export default function NlqMessageGroup({ data, alwaysShowFeedback }: NlqMessageGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
type
|
|
3
|
-
children: string | JSX.Element;
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
|
+
type Alignable = {
|
|
4
3
|
align: 'left' | 'right' | 'full';
|
|
5
4
|
};
|
|
6
|
-
|
|
7
|
-
export
|
|
5
|
+
declare const TextMessage: FC<PropsWithChildren<Alignable>>;
|
|
6
|
+
export default TextMessage;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type Colorable = {
|
|
2
|
+
color: string;
|
|
3
|
+
};
|
|
4
|
+
type Clickable = {
|
|
3
5
|
onClick: () => void;
|
|
4
|
-
}
|
|
5
|
-
export default function NavBackButton({ onClick }:
|
|
6
|
+
};
|
|
7
|
+
export default function NavBackButton({ onClick, color }: Clickable & Colorable): import("react/jsx-runtime").JSX.Element;
|
|
6
8
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface SuggestedItemProps {
|
|
3
2
|
question: string;
|
|
4
3
|
onClick: () => void;
|
|
5
4
|
}
|
|
6
|
-
export default function SuggestionItem({ question, onClick }: SuggestedItemProps): JSX.Element;
|
|
5
|
+
export default function SuggestionItem({ question, onClick }: SuggestedItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function SuggestionListSkeleton(): JSX.Element;
|
|
1
|
+
export default function SuggestionListSkeleton(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type Props = {
|
|
3
2
|
questions: string[];
|
|
4
3
|
onSelection: (question: string) => void;
|
|
5
4
|
};
|
|
6
|
-
export default function SuggestionList({ questions, onSelection }: Props): JSX.Element;
|
|
5
|
+
export default function SuggestionList({ questions, onSelection }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export {};
|