@sisense/sdk-ui 1.8.0 → 1.9.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 (80) hide show
  1. package/dist/ai/ai-disclaimer.d.ts +4 -1
  2. package/dist/ai/chat-config.d.ts +20 -0
  3. package/dist/ai/chat-dropup.d.ts +12 -0
  4. package/dist/ai/chat-frame.d.ts +7 -4
  5. package/dist/ai/chat-input.d.ts +4 -1
  6. package/dist/ai/chatbot.d.ts +0 -7
  7. package/dist/ai/common/dropup-section.d.ts +8 -0
  8. package/dist/ai/common/icon-button.d.ts +12 -0
  9. package/dist/ai/{toolbar.d.ts → common/toolbar.d.ts} +5 -0
  10. package/dist/ai/common/tooltip.d.ts +1 -1
  11. package/dist/ai/icons/arrow-left-icon.d.ts +5 -1
  12. package/dist/ai/icons/clear-chat-icon.d.ts +2 -1
  13. package/dist/ai/icons/expand-icon.d.ts +3 -1
  14. package/dist/ai/icons/info-icon.d.ts +3 -1
  15. package/dist/ai/icons/light-bulb-icon.d.ts +3 -1
  16. package/dist/ai/icons/message-icon.d.ts +2 -1
  17. package/dist/ai/icons/sisense-logo.d.ts +5 -1
  18. package/dist/ai/icons/three-dots-icon.d.ts +3 -1
  19. package/dist/ai/icons/thumbs-down-hovered-icon.d.ts +2 -1
  20. package/dist/ai/icons/thumbs-down-icon.d.ts +2 -1
  21. package/dist/ai/icons/thumbs-up-hovered-icon.d.ts +2 -1
  22. package/dist/ai/icons/thumbs-up-icon.d.ts +2 -1
  23. package/dist/ai/messages/clickable-message.d.ts +4 -2
  24. package/dist/ai/messages/feedback-wrapper.d.ts +2 -2
  25. package/dist/ai/messages/insights-message.d.ts +2 -2
  26. package/dist/ai/messages/jaql-element.d.ts +5 -2
  27. package/dist/ai/messages/message-resolver.d.ts +2 -1
  28. package/dist/ai/messages/nlq-message-group.d.ts +6 -3
  29. package/dist/ai/messages/text-message.d.ts +4 -5
  30. package/dist/ai/nav-back-button.d.ts +6 -3
  31. package/dist/ai.js +2864 -2586
  32. package/dist/api/types/dashboard-dto.d.ts +16 -0
  33. package/dist/app/client-application.d.ts +6 -2
  34. package/dist/area-chart.d.ts +3 -3
  35. package/dist/bar-chart.d.ts +2 -2
  36. package/dist/chart-data-options/utils.d.ts +10 -0
  37. package/dist/chart-options-processor/theme-option-service.d.ts +0 -8
  38. package/dist/column-chart.d.ts +2 -2
  39. package/dist/common/components/loading-indicator.d.ts +82 -0
  40. package/dist/dashboard-widget/translate-widget-style-options.d.ts +3 -2
  41. package/dist/dashboard-widget/types.d.ts +22 -2
  42. package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +1 -0
  43. package/dist/dashboard-widget/utils.d.ts +2 -0
  44. package/dist/debounce-Cc9bQD5m.js +76199 -0
  45. package/dist/dynamic-size-container/default-size.d.ts +5 -1
  46. package/dist/dynamic-size-container/dynamic-size-container.d.ts +12 -3
  47. package/dist/filters/components/common/dropdown.d.ts +1 -1
  48. package/dist/filters/components/common/switch.d.ts +3 -1
  49. package/dist/index.d.ts +1 -1
  50. package/dist/index.js +46825 -7395
  51. package/dist/line-chart.d.ts +2 -2
  52. package/dist/models/dashboard/translate-dashboard.d.ts +3 -2
  53. package/dist/models/dashboard/types.d.ts +6 -8
  54. package/dist/models/widget/use-get-widget-model.d.ts +1 -1
  55. package/dist/models/widget/widget-model.d.ts +50 -6
  56. package/dist/pie-chart.d.ts +2 -2
  57. package/dist/pivot-table/helpers/prepare-pivot-styling-props.d.ts +20 -0
  58. package/dist/pivot-table/sorting-utils.d.ts +11 -55
  59. package/dist/pivot-table/use-get-pivot-table-query.d.ts +10 -2
  60. package/dist/pivot-table/use-pivot-table-data-options-internal.d.ts +15 -0
  61. package/dist/polar-chart.d.ts +2 -2
  62. package/dist/props.d.ts +60 -1
  63. package/dist/query-execution/use-execute-query.d.ts +1 -1
  64. package/dist/scatter-chart.d.ts +1 -1
  65. package/dist/theme-provider/default-theme-settings.d.ts +9 -0
  66. package/dist/theme-provider/types.d.ts +7 -0
  67. package/dist/translation/resources/en.d.ts +3 -1
  68. package/dist/translation/resources/index.d.ts +6 -2
  69. package/dist/types.d.ts +170 -1
  70. package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
  71. package/dist/widgets/common/widget-container.d.ts +15 -0
  72. package/dist/widgets/drilldown-widget.d.ts +1 -1
  73. package/dist/widgets/pivot-table-widget.d.ts +22 -0
  74. package/package.json +10 -9
  75. package/dist/ai/chat-style-provider.d.ts +0 -22
  76. package/dist/ai/icons/magic-wand-icon.d.ts +0 -2
  77. package/dist/ai/magic-wand-dropdown.d.ts +0 -7
  78. package/dist/ai/suggestions/suggestion-dropdown-item.d.ts +0 -7
  79. package/dist/ai/suggestions/suggestion-dropdown-list.d.ts +0 -7
  80. package/dist/useQuery-cb11e76c.js +0 -121619
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  export declare const StyledPrevButton: 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"> & {
3
3
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
4
- }, "style" | "children" | "disabled" | "size" | "className" | "tabIndex" | "color" | "action" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
4
+ }, "style" | "children" | "disabled" | "size" | "className" | "tabIndex" | "color" | "action" | "classes" | "sx" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
5
5
  theme?: import("@emotion/react").Theme | undefined;
6
6
  }, {}, {}>;
7
7
  export declare const StyledNextButton: 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
- }, "style" | "children" | "disabled" | "size" | "className" | "tabIndex" | "color" | "action" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
9
+ }, "style" | "children" | "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
  }, {}, {}>;
@@ -0,0 +1,15 @@
1
+ import { type ReactNode } from 'react';
2
+ import { WidgetStyleOptions } from '../../types';
3
+ interface WidgetContainerProps {
4
+ dataSetName?: string;
5
+ styleOptions?: WidgetStyleOptions;
6
+ title?: string;
7
+ description?: string;
8
+ topSlot?: ReactNode;
9
+ bottomSlot?: ReactNode;
10
+ children: ReactNode;
11
+ onRefresh?: () => void;
12
+ }
13
+ /** @internal */
14
+ export declare const WidgetContainer: React.FC<WidgetContainerProps>;
15
+ export {};
@@ -29,7 +29,7 @@ import { DrilldownWidgetProps } from '../props';
29
29
  *
30
30
  * Additional drilldown examples:
31
31
  *
32
- * - [Detached Breadcrumbs](https://csdk-playground.sisense.com/?example=use-cases%2Fdrilldown-detached-breadcrumbs)
32
+ * - [Detached Breadcrumbs](https://www.sisense.com/platform/compose-sdk/playground/?example=use-cases%2Fdrilldown-detached-breadcrumbs)
33
33
  *
34
34
  * @param props - DrilldownWidget properties
35
35
  * @returns DrilldownWidget wrapper component
@@ -0,0 +1,22 @@
1
+ import { type FunctionComponent } from 'react';
2
+ import { PivotTableWidgetProps } from '../props';
3
+ /**
4
+ * The PivotTableWidget component extending the PivotTable component to support widget style options.
5
+ *
6
+ * @example
7
+ * Example of using the `PivotTableWidget` component to
8
+ * plot a pivot table over the `Sample ECommerce` data source hosted in a Sisense instance.
9
+ * ```tsx
10
+ * <PivotTableWidget
11
+ * dataSource={DM.DataSource}
12
+ * dataOptions={{
13
+ * rows: [DM.Category.Category],
14
+ * values: [measureFactory.sum(DM.Commerce.Cost, 'Total Cost')]
15
+ * }}
16
+ * />
17
+ * ```
18
+ * @param props - Pivot Table Widget properties
19
+ * @returns Widget component representing a pivot table
20
+ * @internal
21
+ */
22
+ export declare const PivotTableWidget: FunctionComponent<PivotTableWidgetProps>;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "Sisense",
12
12
  "Compose SDK"
13
13
  ],
14
- "version": "1.8.0",
14
+ "version": "1.9.0",
15
15
  "type": "module",
16
16
  "exports": {
17
17
  ".": {
@@ -39,13 +39,14 @@
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.8.0",
43
- "@sisense/sdk-data": "^1.8.0",
44
- "@sisense/sdk-pivot-client": "^1.8.0",
45
- "@sisense/sdk-query-client": "^1.8.0",
46
- "@sisense/sdk-rest-client": "^1.8.0",
47
- "@sisense/sdk-tracking": "^1.8.0",
48
- "@sisense/sisense-charts": "5.1.0-alpha-831b13b4.0",
42
+ "@mui/system": "^5.15.15",
43
+ "@sisense/sdk-common": "^1.9.0",
44
+ "@sisense/sdk-data": "^1.9.0",
45
+ "@sisense/sdk-pivot-client": "^1.9.0",
46
+ "@sisense/sdk-query-client": "^1.9.0",
47
+ "@sisense/sdk-rest-client": "^1.9.0",
48
+ "@sisense/sdk-tracking": "^1.9.0",
49
+ "@sisense/sisense-charts": "5.1.0-alpha-e8a83de6.0",
49
50
  "@tanstack/react-query": "4.36.1",
50
51
  "classnames": "^2.3.2",
51
52
  "colorjs.io": "^0.4.3",
@@ -138,7 +139,7 @@
138
139
  "storybook": "7.0.24",
139
140
  "tailwindcss": "^3.3.1",
140
141
  "typescript": "4.8.4",
141
- "vite": "4.1.4",
142
+ "vite": "5.2.10",
142
143
  "vite-plugin-checker": "^0.6.1",
143
144
  "vite-plugin-css-injected-by-js": "3.0.1",
144
145
  "vite-plugin-dts": "^2.3.0",
@@ -1,22 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface ChatStyle {
3
- backgroundColor?: string;
4
- primaryTextColor?: string;
5
- secondaryTextColor?: string;
6
- messageBackgroundColor?: string;
7
- inputBackgroundColor?: string;
8
- border?: false | string;
9
- suggestions?: {
10
- textColor?: string;
11
- border?: string;
12
- hoverBackgroundColor?: string;
13
- loadingGradient?: [string, string];
14
- };
15
- iconColor?: string;
16
- }
17
- export type ChatStyleProviderProps = {
18
- children: ReactNode;
19
- value: ChatStyle;
20
- };
21
- export declare const useChatStyle: () => ChatStyle;
22
- export declare const ChatStyleProvider: ({ children, value }: ChatStyleProviderProps) => JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export default function MagicWandIcon(): JSX.Element;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export default function MagicWandDropdown({ questions, onSelection, isLoading, anchorEl, }: {
3
- questions: string[];
4
- onSelection: (question: string) => void;
5
- isLoading: boolean;
6
- anchorEl: Element | null;
7
- }): JSX.Element;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- type SuggestionDropdownItemProps = {
3
- onClick: () => void;
4
- text: string;
5
- };
6
- export default function SuggestionDropdownItem(props: SuggestionDropdownItemProps): JSX.Element;
7
- export {};
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export interface SuggestionDropdownListProps {
3
- onSelect: (selection: string) => void;
4
- suggestions: string[];
5
- isLoading: boolean;
6
- }
7
- export default function SuggestionDropdownList(props: SuggestionDropdownListProps): JSX.Element;