@sisense/sdk-ui 1.9.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 +1 -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 +1 -1
- package/dist/ai/chat-dropup.d.ts +1 -2
- package/dist/ai/chat-frame.d.ts +1 -1
- package/dist/ai/chat-home.d.ts +1 -2
- package/dist/ai/chat-input.d.ts +1 -2
- package/dist/ai/chat-router.d.ts +1 -2
- package/dist/ai/common/collapsible.d.ts +1 -2
- package/dist/ai/common/dropup-section.d.ts +1 -2
- package/dist/ai/common/error-container.d.ts +1 -2
- package/dist/ai/common/icon-button.d.ts +1 -1
- package/dist/ai/common/tooltip.d.ts +1 -2
- 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 +1 -2
- package/dist/ai/icons/clear-chat-icon.d.ts +1 -2
- package/dist/ai/icons/close-dialog-icon.d.ts +1 -2
- package/dist/ai/icons/expand-icon.d.ts +1 -2
- package/dist/ai/icons/info-icon.d.ts +1 -2
- package/dist/ai/icons/light-bulb-icon.d.ts +1 -2
- package/dist/ai/icons/loading-dots-icon.d.ts +1 -2
- package/dist/ai/icons/message-icon.d.ts +1 -2
- package/dist/ai/icons/refresh-icon.d.ts +1 -2
- package/dist/ai/icons/sisense-logo.d.ts +1 -2
- package/dist/ai/icons/three-dots-icon.d.ts +1 -2
- package/dist/ai/icons/thumbs-down-hovered-icon.d.ts +1 -2
- package/dist/ai/icons/thumbs-down-icon.d.ts +1 -2
- package/dist/ai/icons/thumbs-up-hovered-icon.d.ts +1 -2
- package/dist/ai/icons/thumbs-up-icon.d.ts +1 -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 +1 -1
- package/dist/ai/messages/feedback-wrapper.d.ts +1 -1
- 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/message-list-resolver.d.ts +1 -2
- package/dist/ai/messages/message-resolver.d.ts +1 -1
- package/dist/ai/messages/nlq-message-group.d.ts +1 -2
- package/dist/ai/nav-back-button.d.ts +1 -2
- 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 +1276 -6688
- package/dist/alert-box/alert-box.d.ts +1 -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-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/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/common/components/loading-dots.d.ts +1 -2
- package/dist/common/components/loading-indicator.d.ts +1 -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/utils.d.ts +7 -0
- package/dist/{debounce-Cc9bQD5m.js → debounce-2yQ2123W.js} +64211 -64112
- package/dist/decorators/component-decorators/with-tracking/use-track-component-init.d.ts +1 -1
- package/dist/dynamic-size-container/dynamic-size-container.d.ts +1 -1
- 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/switch.d.ts +2 -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 +1 -0
- package/dist/index.js +23613 -34464
- package/dist/indicator-canvas.d.ts +4 -9
- package/dist/no-results-overlay/no-results-overlay.d.ts +1 -2
- package/dist/props.d.ts +1 -1
- package/dist/sisense-chart/sisense-chart.d.ts +4 -6
- package/dist/translation/i18n-provider.d.ts +1 -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-header-info-button.d.ts +1 -2
- package/dist/widgets/drilldown-widget.d.ts +1 -2
- package/package.json +16 -18
- 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
|
@@ -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
|
@@ -60,4 +60,4 @@ export type ChatConfigProviderProps = {
|
|
|
60
60
|
value: Partial<ChatConfig>;
|
|
61
61
|
};
|
|
62
62
|
export declare const useChatConfig: () => ChatConfig;
|
|
63
|
-
export declare const ChatConfigProvider: ({ children, value }: ChatConfigProviderProps) => JSX.Element;
|
|
63
|
+
export declare const ChatConfigProvider: ({ children, value }: ChatConfigProviderProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/ai/chat-dropup.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const isCommand: (text: string) => boolean;
|
|
3
2
|
interface ChatDropupProps {
|
|
4
3
|
recentPrompts: string[];
|
|
@@ -8,5 +7,5 @@ interface ChatDropupProps {
|
|
|
8
7
|
anchorEl: HTMLElement | null;
|
|
9
8
|
text: string;
|
|
10
9
|
}
|
|
11
|
-
export default function ChatDropup({ recentPrompts, suggestions, isLoading, onSelection, anchorEl, text, }: ChatDropupProps): JSX.Element;
|
|
10
|
+
export default function ChatDropup({ recentPrompts, suggestions, isLoading, onSelection, anchorEl, text, }: ChatDropupProps): import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
export {};
|
package/dist/ai/chat-frame.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ type Sizable = {
|
|
|
6
6
|
};
|
|
7
7
|
export declare const ChatFrame: import("@emotion/styled").StyledComponent<{
|
|
8
8
|
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
-
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
10
10
|
} & Themable & Sizable, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
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,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export type ChatInputProps = {
|
|
3
2
|
onSendMessage: (message: string) => void;
|
|
4
3
|
onClearHistoryClick?: () => void;
|
|
@@ -7,4 +6,4 @@ export type ChatInputProps = {
|
|
|
7
6
|
suggestions: string[];
|
|
8
7
|
isLoading: boolean;
|
|
9
8
|
};
|
|
10
|
-
export default function ChatInput({ onSendMessage, onClearHistoryClick, disabled, recentPrompts, suggestions, isLoading, }: 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;
|
|
@@ -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 {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface DropupSectionProps {
|
|
3
2
|
title: string;
|
|
4
3
|
items: string[];
|
|
5
4
|
onSelect: (selection: string) => void;
|
|
6
5
|
alwaysExpanded?: boolean;
|
|
7
6
|
}
|
|
8
|
-
export default function DropupSection({ title, items, onSelect, alwaysExpanded, }: DropupSectionProps): JSX.Element;
|
|
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 {};
|
|
@@ -6,7 +6,7 @@ interface IconButtonProps extends MuiIconButtonProps {
|
|
|
6
6
|
}
|
|
7
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
8
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
9
|
-
}, "
|
|
9
|
+
}, "children" | "style" | "disabled" | "size" | "className" | "tabIndex" | "color" | "action" | "classes" | "sx" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
|
|
10
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
11
|
} & IconButtonProps, {}, {}>;
|
|
12
12
|
export default IconButton;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
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 @@
|
|
|
1
|
-
|
|
2
|
-
export default function CloseDialogIcon(): JSX.Element;
|
|
1
|
+
export default function CloseDialogIcon(): 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 @@
|
|
|
1
|
-
|
|
2
|
-
export default function RefreshIcon(): JSX.Element;
|
|
1
|
+
export default function RefreshIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Themable } from '../../theme-provider/types';
|
|
3
|
-
export default function ThumbsDownHoveredIcon({ theme }: Themable): JSX.Element;
|
|
2
|
+
export default function ThumbsDownHoveredIcon({ theme }: Themable): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Themable } from '../../theme-provider/types';
|
|
3
|
-
export default function ThumbsUpHoveredIcon({ theme }: Themable): JSX.Element;
|
|
2
|
+
export default function ThumbsUpHoveredIcon({ 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;
|
|
@@ -7,5 +7,5 @@ type Props = {
|
|
|
7
7
|
onMouseEnter?: () => void;
|
|
8
8
|
onMouseLeave?: () => void;
|
|
9
9
|
};
|
|
10
|
-
export default function ClickableMessage({ children, align, onClick,
|
|
10
|
+
export default function ClickableMessage({ children, align, onClick, onMouseEnter, onMouseLeave, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -6,5 +6,5 @@ type FeedbackWrapperProps = {
|
|
|
6
6
|
buttonVisibility?: 'onHover' | 'always' | 'never';
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
};
|
|
9
|
-
export default function FeedbackWrapper({ sourceId, data, type, buttonVisibility, children, }: FeedbackWrapperProps): JSX.Element;
|
|
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,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;
|
|
@@ -4,6 +4,6 @@ type MessageResolverProps = {
|
|
|
4
4
|
message: ChatMessage;
|
|
5
5
|
isLastMessage?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare function MessageResolver({ message, isLastMessage }: MessageResolverProps): JSX.Element;
|
|
7
|
+
declare function MessageResolver({ message, isLastMessage }: MessageResolverProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare const _default: import("react").MemoExoticComponent<typeof MessageResolver>;
|
|
9
9
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { NlqResponseData } from '../api/types';
|
|
3
2
|
interface NlqMessageGroupProps {
|
|
4
3
|
data: NlqResponseData;
|
|
@@ -9,5 +8,5 @@ interface NlqMessageGroupProps {
|
|
|
9
8
|
*
|
|
10
9
|
* @internal
|
|
11
10
|
*/
|
|
12
|
-
export default function NlqMessageGroup({ data, alwaysShowFeedback }: NlqMessageGroupProps): JSX.Element;
|
|
11
|
+
export default function NlqMessageGroup({ data, alwaysShowFeedback }: NlqMessageGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type Colorable = {
|
|
3
2
|
color: string;
|
|
4
3
|
};
|
|
5
4
|
type Clickable = {
|
|
6
5
|
onClick: () => void;
|
|
7
6
|
};
|
|
8
|
-
export default function NavBackButton({ onClick, color }: Clickable & Colorable): JSX.Element;
|
|
7
|
+
export default function NavBackButton({ onClick, color }: Clickable & Colorable): import("react/jsx-runtime").JSX.Element;
|
|
9
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 {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type Props = {
|
|
3
2
|
questions: string[];
|
|
4
3
|
isLoading: boolean;
|
|
5
4
|
onSelection: (question: string) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function SuggestionsWithIntro({ questions, isLoading, onSelection }: Props): JSX.Element | null;
|
|
6
|
+
export default function SuggestionsWithIntro({ questions, isLoading, onSelection }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
8
7
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Gets the fields of a data source.
|
|
2
|
+
* Gets the fields of a data source. This is needed by Analytics Composer.
|
|
3
3
|
*
|
|
4
4
|
* Alternative hook implementation of QueryApiDispatcher.getDataSourceFields
|
|
5
5
|
*
|
|
6
6
|
* @param dataSource - The data source to get the fields for
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const useGetDataSourceFields: (dataSource: string | undefined) => {
|
|
10
10
|
data: import("@sisense/sdk-query-client").DataSourceField[] | undefined;
|
|
11
11
|
isLoading: boolean;
|
|
12
12
|
};
|