@sisense/sdk-ui 1.11.0 → 1.12.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 (72) hide show
  1. package/dist/ai/buttons/thumbs-down-button.d.ts +2 -1
  2. package/dist/ai/buttons/thumbs-up-button.d.ts +2 -1
  3. package/dist/ai/chat-config.d.ts +10 -0
  4. package/dist/ai/chat-dropup.d.ts +2 -1
  5. package/dist/ai/chat-input.d.ts +3 -1
  6. package/dist/ai/common/icon-button.d.ts +2 -3
  7. package/dist/ai/icons/light-bulb-icon.d.ts +1 -3
  8. package/dist/ai/index.d.ts +1 -0
  9. package/dist/ai/messages/clickable-message.d.ts +2 -1
  10. package/dist/ai/messages/feedback-wrapper.d.ts +2 -2
  11. package/dist/ai/messages/text-message.d.ts +5 -0
  12. package/dist/ai/use-last-nlq-response.d.ts +19 -0
  13. package/dist/ai.cjs +454 -0
  14. package/dist/ai.js +1073 -1074
  15. package/dist/api/types/dashboard-dto.d.ts +2 -1
  16. package/dist/app/client-application.d.ts +1 -0
  17. package/dist/chart/helpers/use-chart-renderer-props.d.ts +1 -0
  18. package/dist/chart-options-processor/translations/funnel-plot-options.d.ts +2 -1
  19. package/dist/chart-options-processor/translations/pie-plot-options.d.ts +2 -1
  20. package/dist/common/components/loading-indicator.d.ts +17 -4
  21. package/dist/common/hooks/use-fetch.d.ts +1 -1
  22. package/dist/common/hooks/use-has-changed.d.ts +9 -0
  23. package/dist/common/hooks/use-should-load.d.ts +12 -0
  24. package/dist/dashboard/components/content-panel.d.ts +41 -0
  25. package/dist/dashboard/components/dashboard-container.d.ts +2 -0
  26. package/dist/dashboard/components/dashboard-header.d.ts +2 -0
  27. package/dist/dashboard/components/plugin-service.d.ts +21 -0
  28. package/dist/dashboard/constants.d.ts +2 -0
  29. package/dist/dashboard/dashboard-by-id.d.ts +7 -0
  30. package/dist/dashboard/dashboard.d.ts +8 -0
  31. package/dist/dashboard/types.d.ts +41 -0
  32. package/dist/dashboard/utils.d.ts +5 -0
  33. package/dist/dynamic-size-container/dynamic-size-container.d.ts +8 -0
  34. package/dist/filters/components/common/date-range-field-button.d.ts +3 -6
  35. package/dist/filters/components/date-filter/date-filter/date-filter.d.ts +15 -0
  36. package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-display.d.ts +6 -0
  37. package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +6 -0
  38. package/dist/filters/components/date-filter/date-range-filter-tile/editable-date-range-filter.d.ts +14 -0
  39. package/dist/filters/components/date-filter/date-range-filter-tile/use-date-limits.d.ts +1 -2
  40. package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter.d.ts +2 -2
  41. package/dist/filters/components/icons/arrow-icon.d.ts +6 -0
  42. package/dist/filters/components/icons/double-arrow-icon.d.ts +6 -0
  43. package/dist/highcharts-memorized.d.ts +1 -1
  44. package/dist/index.cjs +784 -0
  45. package/dist/index.d.ts +1 -0
  46. package/dist/index.js +11798 -11496
  47. package/dist/models/dashboard/dashboard-model.d.ts +62 -0
  48. package/dist/models/dashboard/get-dashboard-model.d.ts +2 -1
  49. package/dist/models/dashboard/get-dashboard-models.d.ts +2 -1
  50. package/dist/models/dashboard/index.d.ts +1 -1
  51. package/dist/models/dashboard/translate-dashboard-utils.d.ts +5 -0
  52. package/dist/models/dashboard/types.d.ts +2 -14
  53. package/dist/models/dashboard/use-get-dashboard-model.d.ts +1 -1
  54. package/dist/models/dashboard/use-get-dashboard-models.d.ts +1 -1
  55. package/dist/query-execution/query-params-comparator.d.ts +1 -7
  56. package/dist/query-execution/use-execute-pivot-query.d.ts +2 -5
  57. package/dist/query-execution/use-execute-query-by-widget-id.d.ts +3 -4
  58. package/dist/translation/resources/en.d.ts +1 -0
  59. package/dist/translation/resources/index.d.ts +2 -0
  60. package/dist/types.d.ts +31 -10
  61. package/dist/{debounce-BbwkW3DX.js → useQuery-0UWck_2A.js} +12729 -12646
  62. package/dist/useQuery-DVHD0kJ-.cjs +603 -0
  63. package/dist/utils/create-cache.d.ts +0 -1
  64. package/dist/utils/utility-types.d.ts +1 -0
  65. package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
  66. package/package.json +13 -9
  67. package/dist/ai/icons/thumbs-down-hovered-icon.d.ts +0 -2
  68. package/dist/ai/icons/thumbs-up-hovered-icon.d.ts +0 -2
  69. package/dist/ai/messages/clear-history-success-message.d.ts +0 -1
  70. package/dist/filters/components/icons/arrow-right-icon.d.ts +0 -2
  71. package/dist/filters/components/icons/double-arrow-right-icon.d.ts +0 -2
  72. package/dist/models/dashboard/translate-dashboard.d.ts +0 -4
@@ -19,7 +19,6 @@ type CacheOptions = {
19
19
  * @returns - object with two methods: withCache and clearCache.
20
20
  * "withCache" is a function that wraps the async function you want to cache.
21
21
  * "clearCache" is a function to clear the cache.
22
- *
23
22
  * @example
24
23
  * const myAsyncFn = async (a: number, b: number) => a + b;
25
24
  *
@@ -42,6 +42,7 @@ type PickTypeOf<T, K extends string | number | symbol> = K extends AllKeys<T> ?
42
42
  export type AnyObject = Record<string, any>;
43
43
  /**
44
44
  * Allows you to make a property of an object required.
45
+ *
45
46
  * @example
46
47
  * type T = {
47
48
  * a: string;
@@ -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
- }, "children" | "style" | "disabled" | "size" | "className" | "tabIndex" | "color" | "action" | "classes" | "sx" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
4
+ }, "children" | "style" | "disabled" | "size" | "className" | "tabIndex" | "color" | "sx" | "classes" | "action" | "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
- }, "children" | "style" | "disabled" | "size" | "className" | "tabIndex" | "color" | "action" | "classes" | "sx" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
9
+ }, "children" | "style" | "disabled" | "size" | "className" | "tabIndex" | "color" | "sx" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
10
10
  theme?: import("@emotion/react").Theme | undefined;
11
11
  }, {}, {}>;
package/package.json CHANGED
@@ -11,19 +11,23 @@
11
11
  "Sisense",
12
12
  "Compose SDK"
13
13
  ],
14
- "version": "1.11.0",
14
+ "version": "1.12.0",
15
15
  "type": "module",
16
16
  "exports": {
17
17
  ".": {
18
+ "require": "./dist/index.cjs",
19
+ "import": "./dist/index.js",
18
20
  "types": "./dist/index.d.ts",
19
21
  "default": "./dist/index.js"
20
22
  },
21
23
  "./ai": {
22
24
  "types": "./dist/ai.d.ts",
23
- "default": "./dist/ai.js"
25
+ "default": "./dist/ai.js",
26
+ "require": "./dist/index.cjs",
27
+ "import": "./dist/index.js"
24
28
  }
25
29
  },
26
- "main": "./dist/index.js",
30
+ "main": "./dist/index.cjs",
27
31
  "module": "./dist/index.js",
28
32
  "types": "./dist/index.d.ts",
29
33
  "typesVersions": {
@@ -40,12 +44,12 @@
40
44
  "@emotion/styled": "^11.10.5",
41
45
  "@mui/material": "^5.15.16",
42
46
  "@mui/system": "^5.15.15",
43
- "@sisense/sdk-common": "^1.11.0",
44
- "@sisense/sdk-data": "^1.11.0",
45
- "@sisense/sdk-pivot-client": "^1.11.0",
46
- "@sisense/sdk-query-client": "^1.11.0",
47
- "@sisense/sdk-rest-client": "^1.11.0",
48
- "@sisense/sdk-tracking": "^1.11.0",
47
+ "@sisense/sdk-common": "^1.12.0",
48
+ "@sisense/sdk-data": "^1.12.0",
49
+ "@sisense/sdk-pivot-client": "^1.12.0",
50
+ "@sisense/sdk-query-client": "^1.12.0",
51
+ "@sisense/sdk-rest-client": "^1.12.0",
52
+ "@sisense/sdk-tracking": "^1.12.0",
49
53
  "@sisense/sisense-charts": "5.1.1",
50
54
  "@tanstack/react-query": "4.36.1",
51
55
  "classnames": "^2.3.2",
@@ -1,2 +0,0 @@
1
- import { Themable } from '../../theme-provider/types';
2
- export default function ThumbsDownHoveredIcon({ theme }: Themable): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { Themable } from '../../theme-provider/types';
2
- export default function ThumbsUpHoveredIcon({ theme }: Themable): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export default function ClearHistorySuccessMessage(): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { SVGProps } from 'react';
2
- export declare const ArrowRightIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'fill' | 'onClick'>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { SVGProps } from 'react';
2
- export declare const DoubleArrowRightIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'fill' | 'onClick'>) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import type { DashboardDto, Layout as SisenseLayout } from '../../api/types/dashboard-dto';
2
- import type { Layout, DashboardModel } from './types';
3
- export declare const translateLayout: (layout: SisenseLayout) => Layout;
4
- export declare function translateDashboard({ oid, title, datasource, widgets, layout, filters, }: DashboardDto): DashboardModel;