@sisense/sdk-ui 2.22.0 → 2.24.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 (210) hide show
  1. package/dist/ai.cjs +19 -19
  2. package/dist/ai.js +59 -59
  3. package/dist/analytics-composer/node.cjs +1 -1
  4. package/dist/analytics-composer/node.js +2440 -1253
  5. package/dist/analytics-composer.cjs +47 -47
  6. package/dist/analytics-composer.js +135 -131
  7. package/dist/dimensions-C1R5YRt-.js +204 -0
  8. package/dist/dimensions-C7yXAoZs.cjs +1 -0
  9. package/dist/execute-query-0Y9Fn9Pf.cjs +1 -0
  10. package/dist/execute-query-b9oy2Egy.js +5869 -0
  11. package/dist/{index-NyouhE_A.cjs → index-Ck-0gJC9.cjs} +1 -1
  12. package/dist/{index-kxX21arA.js → index-r66Tjiqj.js} +39 -2
  13. package/dist/index.cjs +633 -616
  14. package/dist/index.js +18198 -17875
  15. package/dist/index.umd.js +1006 -949
  16. package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/const.d.ts +1 -0
  17. package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/smart-pointer-sensor.d.ts +17 -0
  18. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-model.d.ts +2 -1
  19. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.d.ts +24 -2
  20. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +2 -1
  21. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/use-dashboard-persistence.d.ts +2 -1
  22. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/jtd/jtd-types.d.ts +1 -1
  23. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/rename-widget/use-widget-renaming.d.ts +34 -0
  24. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-csv-download.d.ts +24 -0
  25. package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +43 -1
  26. package/dist/packages/sdk-ui/src/domains/dashboarding/use-dashboard-theme.d.ts +1 -1
  27. package/dist/packages/sdk-ui/src/domains/data-browser/add-filter-popover/add-filter-data-browser.d.ts +2 -1
  28. package/dist/packages/sdk-ui/src/domains/data-browser/data-schema-browser/data-schema-browser.d.ts +2 -1
  29. package/dist/packages/sdk-ui/src/domains/data-browser/dimensions-browser/types.d.ts +9 -1
  30. package/dist/packages/sdk-ui/src/domains/formulas/fetch-formula.d.ts +1 -1
  31. package/dist/packages/sdk-ui/src/domains/query-execution/core/execute-query.d.ts +1 -1
  32. package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-query-by-widget-id/use-execute-query-by-widget-id.d.ts +1 -1
  33. package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-query-cache/use-query-cache.d.ts +2 -1
  34. package/dist/packages/sdk-ui/src/domains/visualizations/components/boxplot-chart/boxplot-utils.d.ts +1 -1
  35. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/helpers/get-load-data-function.d.ts +1 -1
  36. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/helpers/use-translated-data-options.d.ts +12 -1
  37. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/helpers/data-loading.d.ts +1 -1
  38. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/types.d.ts +1 -1
  39. package/dist/packages/sdk-ui/src/domains/widgets/change-events.d.ts +73 -0
  40. package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/types.d.ts +12 -2
  41. package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/use-chart-widget-csv-download.d.ts +18 -0
  42. package/dist/packages/sdk-ui/src/domains/widgets/components/custom-widget/use-custom-widget-csv-download.d.ts +15 -0
  43. package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/types.d.ts +12 -2
  44. package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/use-pivot-widget-csv-download.d.ts +18 -0
  45. package/dist/packages/sdk-ui/src/domains/widgets/components/tabber-buttons-widget/types.d.ts +8 -8
  46. package/dist/packages/sdk-ui/src/domains/widgets/components/widget/types.d.ts +21 -1
  47. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-dashboard-filters.d.ts +3 -1
  48. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-data-options.d.ts +1 -1
  49. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/to-widget-dto-style.d.ts +11 -2
  50. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/types.d.ts +1 -1
  51. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/utils.d.ts +3 -2
  52. package/dist/packages/sdk-ui/src/domains/widgets/event-to-delta.d.ts +17 -0
  53. package/dist/packages/sdk-ui/src/domains/widgets/helpers/header-menu-utils.d.ts +14 -4
  54. package/dist/packages/sdk-ui/src/domains/widgets/helpers/index.d.ts +1 -0
  55. package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-csv-query-file-loader.d.ts +16 -0
  56. package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-title-renaming.d.ts +27 -0
  57. package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-widget-header-management.d.ts +28 -0
  58. package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-with-csv-download-menu-item.d.ts +22 -0
  59. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-container/widget-container.d.ts +3 -1
  60. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/types.d.ts +31 -0
  61. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-header.d.ts +3 -1
  62. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-menu-button.d.ts +1 -1
  63. package/dist/packages/sdk-ui/src/infra/api/rest-api.d.ts +4 -0
  64. package/dist/packages/sdk-ui/src/infra/api/types/dashboard-dto.d.ts +1 -1
  65. package/dist/packages/sdk-ui/src/infra/app/client-application.d.ts +5 -231
  66. package/dist/packages/sdk-ui/src/infra/app/helpers.d.ts +16 -0
  67. package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +1 -1
  68. package/dist/packages/sdk-ui/src/infra/app/settings/types/deployment-props.d.ts +3 -0
  69. package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +2 -1
  70. package/dist/packages/sdk-ui/src/infra/app/types.d.ts +236 -0
  71. package/dist/packages/sdk-ui/src/infra/contexts/custom-widgets-provider/custom-widgets-provider-adapter.d.ts +2 -1
  72. package/dist/packages/sdk-ui/src/infra/contexts/custom-widgets-provider/use-custom-widgets.d.ts +11 -4
  73. package/dist/packages/sdk-ui/src/infra/contexts/sisense-context/sisense-context.d.ts +1 -1
  74. package/dist/packages/sdk-ui/src/infra/contexts/theme-provider/theme-context.d.ts +2 -1
  75. package/dist/packages/sdk-ui/src/infra/decorators/component-decorators/with-tracking/with-tracking.d.ts +1 -1
  76. package/dist/packages/sdk-ui/src/infra/decorators/hook-decorators/with-tracking.d.ts +1 -1
  77. package/dist/packages/sdk-ui/src/infra/plugins/custom-plugin-context-provider.d.ts +18 -0
  78. package/dist/packages/sdk-ui/src/infra/plugins/plugin-context.d.ts +29 -0
  79. package/dist/packages/sdk-ui/src/infra/{contexts/plugin-provider → plugins}/plugin-provider.d.ts +4 -2
  80. package/dist/packages/sdk-ui/src/infra/{contexts/plugin-provider → plugins}/types.d.ts +12 -4
  81. package/dist/packages/sdk-ui/src/infra/plugins/use-widget-plugin-registry.d.ts +7 -0
  82. package/dist/packages/sdk-ui/src/infra/{contexts/plugin-provider → plugins}/validate-plugins.d.ts +1 -1
  83. package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/types.d.ts +302 -0
  84. package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/widget-plugin-registry.d.ts +33 -0
  85. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +37 -0
  86. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +37 -0
  87. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +37 -0
  88. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +37 -0
  89. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +37 -0
  90. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +37 -0
  91. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +37 -0
  92. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +37 -0
  93. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +37 -0
  94. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +37 -0
  95. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +37 -0
  96. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +37 -0
  97. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +37 -0
  98. package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +37 -0
  99. package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +74 -0
  100. package/dist/packages/sdk-ui/src/modules/ai/use-get-nlq-result.d.ts +1 -0
  101. package/dist/packages/sdk-ui/src/modules/ai/use-get-query-recommendations.d.ts +1 -0
  102. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/axis-type-detection.d.ts +17 -0
  103. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/chart-type-schemas.d.ts +37 -0
  104. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/index.d.ts +9 -0
  105. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/translate-data-options.d.ts +9 -0
  106. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/validate-chart-json.d.ts +19 -0
  107. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/translate-chart-from-json.d.ts +42 -0
  108. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/translate-chart-to-json.d.ts +41 -0
  109. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/translate-dimensions-from-json.d.ts +11 -0
  110. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/translate-dimensions-to-json.d.ts +22 -0
  111. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-filters-from-json.d.ts → constructs/filters/translate-filters-from-json.d.ts} +2 -2
  112. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-filters-to-json.d.ts → constructs/filters/translate-filters-to-json.d.ts} +1 -1
  113. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-measures-from-json.d.ts → constructs/measures/translate-measures-from-json.d.ts} +4 -4
  114. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/measures/translate-measures-to-json.d.ts +22 -0
  115. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/index.d.ts +8 -3
  116. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/index.d.ts +7 -0
  117. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/translate-data-options.d.ts +14 -0
  118. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/validate-pivot-table-json.d.ts +19 -0
  119. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/translate-pivot-table-from-json.d.ts +12 -0
  120. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/translate-pivot-table-to-json.d.ts +12 -0
  121. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/constants.d.ts +8 -0
  122. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-from-json.d.ts → query/translate-query-from-json.d.ts} +3 -3
  123. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-to-jaql.d.ts → query/translate-query-to-jaql.d.ts} +1 -1
  124. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-to-json.d.ts → query/translate-query-to-json.d.ts} +2 -2
  125. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/adapters.d.ts +19 -0
  126. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/index.d.ts +9 -0
  127. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/translate-axis-from-json.d.ts +24 -0
  128. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/translate-axis-to-json.d.ts +18 -0
  129. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/custom-formula/process-custom-formula.d.ts +1 -1
  130. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/custom-formula/validate-custom-formula.d.ts +25 -0
  131. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/execute-function.d.ts +1 -1
  132. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/factory-function-processors.d.ts +1 -1
  133. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/factory-function-schemas.d.ts +1 -1
  134. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/filter-processors.d.ts +1 -1
  135. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/formula-function-schemas.d.ts +41 -0
  136. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/process-arg.d.ts +1 -1
  137. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/process-node.d.ts +1 -1
  138. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/attribute-helpers.d.ts +50 -0
  139. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/fuzzy-match.d.ts +16 -0
  140. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/parse-compose-code.d.ts +34 -0
  141. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/schema-index.d.ts +52 -0
  142. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/translation-helpers.d.ts +31 -0
  143. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +115 -4
  144. package/dist/packages/sdk-ui/src/modules/analytics-composer/types.d.ts +6 -6
  145. package/dist/packages/sdk-ui/src/props.d.ts +20 -2
  146. package/dist/packages/sdk-ui/src/public-api/alpha.d.ts +1 -1
  147. package/dist/packages/sdk-ui/src/public-api/beta.d.ts +1 -1
  148. package/dist/packages/sdk-ui/src/public-api/internal.d.ts +10 -6
  149. package/dist/packages/sdk-ui/src/public-api/public.d.ts +2 -2
  150. package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +14 -5
  151. package/dist/packages/sdk-ui/src/shared/components/grouped-items-browser/types.d.ts +7 -1
  152. package/dist/packages/sdk-ui/src/shared/components/inline-text-editor/inline-text-editor.d.ts +26 -0
  153. package/dist/packages/sdk-ui/src/shared/components/inline-text-editor/use-blur-on-pointer-down-outside.d.ts +11 -0
  154. package/dist/packages/sdk-ui/src/shared/components/loading-indicator.d.ts +2 -1
  155. package/dist/packages/sdk-ui/src/shared/components/quota-notification/quota-notification.d.ts +2 -2
  156. package/dist/packages/sdk-ui/src/shared/const.d.ts +5 -0
  157. package/dist/packages/sdk-ui/src/shared/hooks/use-app-settings.d.ts +2 -1
  158. package/dist/packages/sdk-ui/src/shared/hooks/use-quota-notification.d.ts +4 -4
  159. package/dist/packages/sdk-ui/src/shared/hooks/use-should-load.d.ts +1 -1
  160. package/dist/packages/sdk-ui/src/shared/hooks/use-with-change-detection.d.ts +5 -5
  161. package/dist/packages/sdk-ui/src/shared/types/menu-item.d.ts +5 -1
  162. package/dist/packages/sdk-ui/src/shared/utils/menu-item-converters.d.ts +12 -0
  163. package/dist/packages/sdk-ui/src/types.d.ts +3 -3
  164. package/dist/quota-notification-BqRYSJ7r.cjs +713 -0
  165. package/dist/{quota-notification-D6oMJal8.js → quota-notification-CeKnEyQG.js} +18423 -17044
  166. package/dist/translations/de-de.cjs +1 -1
  167. package/dist/translations/de-de.js +40 -3
  168. package/dist/translations/en-us.cjs +1 -1
  169. package/dist/translations/en-us.js +1 -1
  170. package/dist/translations/es-ar.cjs +1 -1
  171. package/dist/translations/es-ar.js +40 -3
  172. package/dist/translations/es-es.cjs +1 -1
  173. package/dist/translations/es-es.js +40 -3
  174. package/dist/translations/fr-fr.cjs +1 -1
  175. package/dist/translations/fr-fr.js +40 -3
  176. package/dist/translations/it-it.cjs +1 -1
  177. package/dist/translations/it-it.js +42 -5
  178. package/dist/translations/ja-jp.cjs +1 -1
  179. package/dist/translations/ja-jp.js +42 -5
  180. package/dist/translations/ko-kr.cjs +1 -1
  181. package/dist/translations/ko-kr.js +42 -5
  182. package/dist/translations/nl-nl.cjs +1 -1
  183. package/dist/translations/nl-nl.js +42 -5
  184. package/dist/translations/pt-br.cjs +1 -1
  185. package/dist/translations/pt-br.js +40 -3
  186. package/dist/translations/ru-ru.cjs +1 -1
  187. package/dist/translations/ru-ru.js +42 -5
  188. package/dist/translations/tr-tr.cjs +1 -1
  189. package/dist/translations/tr-tr.js +40 -3
  190. package/dist/translations/zh-cn.cjs +1 -1
  191. package/dist/translations/zh-cn.js +42 -5
  192. package/dist/{types-CoY6F8Ma.cjs → types-C0QU2tsE.cjs} +1 -1
  193. package/dist/{types-ixSwJkxM.js → types-DJtC8_5_.js} +1 -1
  194. package/dist/{utils-BP-BglHE.js → utils-BCp2ISWh.js} +3745 -3773
  195. package/dist/{utils-C8YMrOdw.cjs → utils-D8O1_kl3.cjs} +33 -33
  196. package/dist/{widget-composer-DI4sHaNe.cjs → widget-composer-BkHZISs7.cjs} +1 -1
  197. package/dist/{widget-composer-CUUFoCb9.js → widget-composer-CDNL9_XF.js} +8 -8
  198. package/package.json +10 -8
  199. package/dist/dimensions-BiLyFpCg.js +0 -202
  200. package/dist/dimensions-X4_igtmO.cjs +0 -1
  201. package/dist/execute-query-BEeqqDl6.js +0 -5795
  202. package/dist/execute-query-DJDE0zRU.cjs +0 -1
  203. package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/index.d.ts +0 -5
  204. package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/plugin-context.d.ts +0 -15
  205. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/common.d.ts +0 -84
  206. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/parse-compose-code.d.ts +0 -15
  207. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-dimensions-from-json.d.ts +0 -12
  208. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-dimensions-to-json.d.ts +0 -13
  209. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-measures-to-json.d.ts +0 -13
  210. package/dist/quota-notification-z3dv2KoH.cjs +0 -672
@@ -1,4 +1,4 @@
1
- import { ArgInput, ProcessedArg } from '../types.js';
1
+ import { ArgInput, ProcessedArg } from '../../types.js';
2
2
  /**
3
3
  * Processes a single argument based on its expected type schema
4
4
  *
@@ -1,4 +1,4 @@
1
- import { NodeInput, QueryElement } from '../types.js';
1
+ import { NodeInput, QueryElement } from '../../types.js';
2
2
  /**
3
3
  * Recursively processes a parsed JSON object to execute filterFactory and measureFactory functions.
4
4
  * It includes comprehensive validation based on function schemas.
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Attribute type predicates for filter validation.
3
+ *
4
+ * @internal
5
+ */
6
+ import { Attribute } from '@sisense/sdk-data';
7
+ /**
8
+ * Validates that an attribute is compatible with text values
9
+ *
10
+ * @param attribute - The attribute to validate
11
+ * @returns True if the attribute is a text type
12
+ */
13
+ export declare function isTextAttribute(attribute: Attribute): boolean;
14
+ /**
15
+ * Validates that an attribute is compatible with numeric values
16
+ *
17
+ * @param attribute - The attribute to validate
18
+ * @returns True if the attribute is a numeric type
19
+ */
20
+ export declare function isNumericAttribute(attribute: Attribute): boolean;
21
+ /**
22
+ * Validates that an attribute is a date/datetime type
23
+ *
24
+ * @param attribute - The attribute to validate
25
+ * @returns True if the attribute is a date/datetime type
26
+ */
27
+ export declare function isDateLevelAttribute(attribute: Attribute): boolean;
28
+ /**
29
+ * Validates that an attribute is compatible with text OR numeric values
30
+ * Used for filters like equals, doesntEqual that accept both text and number
31
+ *
32
+ * @param attribute - The attribute to validate
33
+ * @returns True if the attribute is text or numeric type
34
+ */
35
+ export declare function isTextOrNumericAttribute(attribute: Attribute): boolean;
36
+ /**
37
+ * Validates that an attribute is NOT a date type
38
+ * Used for filters that should not work with date attributes
39
+ *
40
+ * @param attribute - The attribute to validate
41
+ * @returns True if the attribute is not a date type
42
+ */
43
+ export declare function isNonDateLevelAttribute(attribute: Attribute): boolean;
44
+ /**
45
+ * Gets a display string for the attribute type
46
+ *
47
+ * @param attribute - The attribute to get the type display string for
48
+ * @returns A human-readable string representing the attribute type
49
+ */
50
+ export declare function getAttributeTypeDisplayString(attribute: Attribute): string;
@@ -0,0 +1,16 @@
1
+ /** Maximum edit distance for suggesting "Did you mean?" in error messages */
2
+ export declare const SUGGESTION_THRESHOLD = 3;
3
+ /**
4
+ * Finds the candidate with the smallest Levenshtein distance to the input.
5
+ * Used to enhance "not found" errors with "Did you mean 'X'?" when distance <= SUGGESTION_THRESHOLD.
6
+ *
7
+ * @param input - The string that was not found
8
+ * @param candidates - Array of valid candidates to match against
9
+ * @param getLabel - Function to extract the label string from each candidate
10
+ * @returns The best match and its distance, or undefined if candidates is empty
11
+ * @internal
12
+ */
13
+ export declare function findBestMatch<T>(input: string, candidates: readonly T[], getLabel: (c: T) => string): {
14
+ best: T;
15
+ distance: number;
16
+ } | undefined;
@@ -0,0 +1,34 @@
1
+ import { FunctionCall } from '../../types.js';
2
+ /**
3
+ * Splits a string by a delimiter, respecting nested structures and strings.
4
+ * Does not split inside parentheses, brackets, braces, or quoted strings.
5
+ *
6
+ * @param str - The string to split
7
+ * @param delimiter - Character to split on (e.g. ',' or ':')
8
+ * @returns Array of trimmed segments
9
+ * @internal
10
+ */
11
+ export declare function splitAtDepthZero(str: string, delimiter: string): string[];
12
+ /**
13
+ * Index of the `)` that closes the `(` at `openParenIndex`, or -1 if unbalanced.
14
+ * Respects strings and nesting of `()`, `[]`, `{}` (same rules as {@link splitAtDepthZero}).
15
+ *
16
+ * @param str - Full source string
17
+ * @param openParenIndex - Index of the opening `(`
18
+ * @internal
19
+ */
20
+ export declare function findMatchingCloseParen(str: string, openParenIndex: number): number;
21
+ /**
22
+ * Parses a composeCode string to FunctionCall format.
23
+ *
24
+ * Handles function calls like:
25
+ * - "measureFactory.sum(DM.Commerce.Revenue, 'Total Revenue')"
26
+ * - "filterFactory.members(DM.Commerce.Date.Years, ['2024-01-01T00:00:00'], { excludeMembers: true })"
27
+ * - "filterFactory.logic.and(filterFactory.members(...), filterFactory.members(...))"
28
+ *
29
+ * @param composeCode - The composeCode string to parse
30
+ * @returns FunctionCall representation
31
+ * @throws Error if composeCode cannot be parsed
32
+ * @internal
33
+ */
34
+ export declare function parseComposeCodeToFunctionCall(composeCode: string): FunctionCall;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Schema index for efficient table/column lookups and dimensional name parsing.
3
+ *
4
+ * @internal
5
+ */
6
+ import { DateDimension, JaqlDataSourceForDto } from '@sisense/sdk-data';
7
+ import type { NormalizedColumn, NormalizedTable } from '../../../types.js';
8
+ /**
9
+ * Schema index for efficient table/column lookups and greedy matching
10
+ * @internal
11
+ */
12
+ export interface SchemaIndex {
13
+ /** Tables sorted by name length (descending) for greedy matching */
14
+ sortedTables: NormalizedTable[];
15
+ /** Columns sorted by name length (descending) per table for greedy matching */
16
+ tableColumnMap: Map<string, NormalizedColumn[]>;
17
+ /** O(1) table lookup by exact name */
18
+ tableMap: Map<string, NormalizedTable>;
19
+ /** O(1) column lookup: table name → (column name → column) */
20
+ columnMap: Map<string, Map<string, NormalizedColumn>>;
21
+ }
22
+ /**
23
+ * Creates a schema index with pre-sorted arrays and Maps for efficient lookups
24
+ *
25
+ * @param tables - Array of normalized tables
26
+ * @returns SchemaIndex with sorted arrays and Maps
27
+ * @internal
28
+ */
29
+ export declare function createSchemaIndex(tables: NormalizedTable[]): SchemaIndex;
30
+ /**
31
+ * Parses a dimensional name using schema-aware greedy matching to handle dots in table/column names.
32
+ * Table and column segments are matched case-insensitively against the schema; returned table/column
33
+ * objects keep canonical names and expressions. Date level suffixes are case-sensitive.
34
+ * If two tables share the same name ignoring case, the first match in {@link SchemaIndex.sortedTables} wins.
35
+ *
36
+ * @param dimensionalName - The dimensional name (e.g., "DM.Brand.io.Brand" or "DM.Commerce.Date.Years")
37
+ * @param schemaIndex - The schema index for efficient matching
38
+ * @returns Parsed result with matched table, column, and optional level
39
+ * @internal
40
+ */
41
+ export declare function parseDimensionalName(dimensionalName: string, schemaIndex: SchemaIndex): {
42
+ table: NormalizedTable;
43
+ column: NormalizedColumn;
44
+ level?: string;
45
+ };
46
+ /** Options for {@link createAttributeFromName} when translating custom formula context. */
47
+ export interface CreateAttributeFromNameOptions {
48
+ /** When the dimensional name has no date level, use this level for datetime columns (e.g. from xdiff function). */
49
+ inferredDateLevel?: string;
50
+ }
51
+ export declare function createAttributeFromName(attributeName: string, dataSource: JaqlDataSourceForDto, schemaIndex: SchemaIndex, options?: CreateAttributeFromNameOptions): import("@sisense/sdk-data").Attribute | import("@sisense/sdk-data").LevelAttribute;
52
+ export declare function createDateDimensionFromName(dateDimensionName: string, dataSource: JaqlDataSourceForDto, schemaIndex: SchemaIndex): DateDimension;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Translation result and JSON helpers.
3
+ *
4
+ * @internal
5
+ */
6
+ import { JSONValue } from '@sisense/sdk-data';
7
+ import type { NlqTranslationError, NlqTranslationResult } from '../../../types.js';
8
+ /**
9
+ * Recursively strips [[delimiters]] from all strings in a JSON structure.
10
+ * Transforms "DM.[[Commerce Sales]].[[Order Date]]" → "DM.Commerce Sales.Order Date"
11
+ *
12
+ * @param value - The JSON value to process
13
+ * @returns The value with all [[delimiters]] stripped from strings
14
+ * @internal
15
+ */
16
+ export declare function stripDelimitersFromJson<T extends JSONValue>(value: T): T;
17
+ export declare function getSuccessData<T>(result: NlqTranslationResult<T>): T;
18
+ export declare function getErrors<T>(result: NlqTranslationResult<T>): string[];
19
+ /**
20
+ * Helper function to collect structured errors from translation operations.
21
+ *
22
+ * Executes a translation function and collects any errors into the provided errors array.
23
+ * Returns the translated data if successful, or null if errors occurred.
24
+ *
25
+ * @param translateFn - Function that returns a NlqTranslationResult
26
+ * @param errors - Array to collect errors into
27
+ * @param mapError - Optional mapper to transform errors before pushing (e.g., add axis context for chart dataOptions)
28
+ * @returns The translated data if successful, or null if errors occurred
29
+ * @internal
30
+ */
31
+ export declare function collectTranslationErrors<T>(translateFn: () => NlqTranslationResult<T>, errors: NlqTranslationError[], mapError?: (e: NlqTranslationError) => NlqTranslationError): T | null;
@@ -1,7 +1,8 @@
1
- import { Filter, FilterRelations, JaqlDataSourceForDto, JSONArray, JSONValue, Measure } from '@sisense/sdk-data';
1
+ import { Attribute, Filter, FilterRelations, JaqlDataSourceForDto, JSONArray, Measure, PivotGrandTotals } from '@sisense/sdk-data';
2
2
  import { CategoryStyle, SeriesStyle, ValueStyle } from '../../../public-api/index.js';
3
- import { NlqTranslationInput } from '../types.js';
4
- import type { SchemaIndex } from './common.js';
3
+ import type { PivotTableStyleOptions } from '../../../types.js';
4
+ import { DataSchemaContext, NlqTranslationInput } from '../types.js';
5
+ import type { SchemaIndex } from './shared/utils/schema-index.js';
5
6
  /**
6
7
  * Internal context type that uses schemaIndex for efficient lookups
7
8
  * @internal
@@ -11,6 +12,8 @@ export interface InternalDataSchemaContext {
11
12
  dataSource: JaqlDataSourceForDto;
12
13
  /** Schema index for efficient table/column lookups */
13
14
  schemaIndex: SchemaIndex;
15
+ /** Chart type for axis-specific translation (e.g., pivot columns, boxplot value) */
16
+ chartType?: string;
14
17
  }
15
18
  export declare const DIMENSIONAL_NAME_PREFIX = "DM.";
16
19
  export type ArgType = 'string' | 'string[]' | 'number' | 'number[]' | 'boolean' | 'Attribute' | 'Attribute[]' | 'Measure' | 'BaseMeasure' | 'Measure[]' | 'Filter' | 'Filter[]' | 'FilterRelationsNode' | 'DateDimension' | 'LevelAttribute' | 'Measure | number' | 'Date | string' | 'string | number' | 'BaseFilterConfig' | 'MembersFilterConfig' | 'CustomFormulaContext' | 'any';
@@ -52,12 +55,35 @@ export type ArgInput = NlqTranslationInput<Arg, ArgContext>;
52
55
  * Custom processor function signature.
53
56
  */
54
57
  export type CustomFunctionProcessor = (processedArgs: ProcessedArg[], context: FunctionContext) => void;
55
- export declare function isFunctionCall(value: JSONValue): value is FunctionCall;
58
+ /**
59
+ * Type guard: value is a non-null object (Record<string, unknown>).
60
+ * @internal
61
+ */
62
+ export declare function isRecordStringUnknown(value: unknown): value is Record<string, unknown>;
63
+ export declare function isFunctionCall(value: unknown): value is FunctionCall;
56
64
  export declare function isFunctionCallArray(value: JSONArray): value is FunctionCall[];
57
65
  export declare function isFilterElement(arg: QueryElement): arg is Filter;
58
66
  export declare function isFilterRelationsElement(arg: QueryElement): arg is FilterRelations;
59
67
  export declare function isMeasureElement(arg: QueryElement): arg is Measure;
60
68
  export declare function isStringArray(value: JSONArray): value is string[];
69
+ /**
70
+ * Enriched dimension translation result. Style uses CategoryStyle (same as StyledColumn).
71
+ *
72
+ * @internal
73
+ */
74
+ export type DimensionTranslationItem = {
75
+ attribute: Attribute;
76
+ style?: CategoryStyle;
77
+ };
78
+ /**
79
+ * Enriched measure translation result. Style uses ValueStyle & SeriesStyle (same as StyledMeasureColumn).
80
+ *
81
+ * @internal
82
+ */
83
+ export type MeasureTranslationItem = {
84
+ measure: Measure;
85
+ style?: ValueStyle & SeriesStyle;
86
+ };
61
87
  /**
62
88
  * JSON-facing type for a styled dimension/attribute.
63
89
  * Reusable for query JSON and future chart JSON (translateChartFromJSON).
@@ -102,3 +128,88 @@ export declare function isStyledColumnJSON(value: unknown): value is StyledColum
102
128
  * @internal
103
129
  */
104
130
  export declare function isStyledMeasureColumnJSON(value: unknown): value is StyledMeasureColumnJSON;
131
+ /**
132
+ * JSON representation of chart data options.
133
+ * Maps axis names to arrays of dimension or measure items.
134
+ * Supports all chart types (cartesian, categorical, scatter, etc.).
135
+ *
136
+ * @internal
137
+ */
138
+ export interface DataOptionsJSON {
139
+ category?: DimensionItemJSON[];
140
+ /** Array for cartesian/categorical; single for calendar-heatmap */
141
+ value?: MeasureItemJSON[] | MeasureItemJSON;
142
+ breakBy?: DimensionItemJSON[];
143
+ x?: DimensionItemJSON | MeasureItemJSON;
144
+ y?: DimensionItemJSON | MeasureItemJSON;
145
+ breakByPoint?: DimensionItemJSON;
146
+ breakByColor?: DimensionItemJSON | MeasureItemJSON;
147
+ size?: MeasureItemJSON;
148
+ boxType?: MeasureItemJSON;
149
+ outliers?: MeasureItemJSON[];
150
+ geo?: DimensionItemJSON[];
151
+ colorBy?: MeasureItemJSON;
152
+ details?: DimensionItemJSON;
153
+ color?: MeasureItemJSON[];
154
+ date?: DimensionItemJSON;
155
+ columns?: (DimensionItemJSON | MeasureItemJSON)[];
156
+ rows?: DimensionItemJSON[];
157
+ values?: MeasureItemJSON[];
158
+ secondary?: MeasureItemJSON[];
159
+ min?: MeasureItemJSON[];
160
+ max?: MeasureItemJSON[];
161
+ }
162
+ /**
163
+ * JSON representation of a chart configuration from NLQ API.
164
+ * Matches the structure returned by NLQ v3 for chart recommendations.
165
+ * Reusable for chart JSON translation (translateChartFromJSON/translateChartToJSON).
166
+ *
167
+ * @internal
168
+ */
169
+ export interface ChartJSON {
170
+ /** Chart type (e.g., 'column', 'line', 'bar', 'pie', 'scatter') */
171
+ chartType: string;
172
+ /** Data options mapping chart axes to dimensions/measures */
173
+ dataOptions: DataOptionsJSON;
174
+ /** Optional style options for chart appearance (colors, legend, axes, etc.) */
175
+ styleOptions?: Record<string, unknown>;
176
+ /** Optional filters to apply to the chart data */
177
+ filters?: FunctionCall[];
178
+ /** Optional highlights (filter criteria) to apply to the chart */
179
+ highlights?: FunctionCall[];
180
+ }
181
+ /**
182
+ * Input type for chart translation (JSON → CSDK).
183
+ * Combines chartJSON with data schema context.
184
+ *
185
+ * @internal
186
+ */
187
+ export type ChartInput = NlqTranslationInput<ChartJSON, DataSchemaContext>;
188
+ /**
189
+ * JSON representation of pivot table data options.
190
+ *
191
+ * @internal
192
+ */
193
+ export interface PivotTableDataOptionsJSON {
194
+ rows?: DimensionItemJSON[];
195
+ columns?: DimensionItemJSON[];
196
+ values?: MeasureItemJSON[];
197
+ grandTotals?: PivotGrandTotals;
198
+ }
199
+ /**
200
+ * JSON representation of pivot table config from NLQ API.
201
+ *
202
+ * @internal
203
+ */
204
+ export interface PivotTableJSON {
205
+ dataOptions: PivotTableDataOptionsJSON;
206
+ styleOptions?: PivotTableStyleOptions;
207
+ filters?: FunctionCall[];
208
+ highlights?: FunctionCall[];
209
+ }
210
+ /**
211
+ * Input type for pivot table translation (JSON → CSDK).
212
+ *
213
+ * @internal
214
+ */
215
+ export type PivotTableInput = NlqTranslationInput<PivotTableJSON, DataSchemaContext>;
@@ -1,4 +1,4 @@
1
- import { JaqlDataSourceForDto, JSONArray, JSONValue, MetadataItem } from '@sisense/sdk-data';
1
+ import { JaqlDataSourceForDto, JSONArray, MetadataItem } from '@sisense/sdk-data';
2
2
  import type { DashboardByIdConfig } from '../../domains/dashboarding';
3
3
  import { DashboardProps } from '../../domains/dashboarding/types.js';
4
4
  import { ExecutePivotQueryParams, ExecuteQueryParams } from '../../domains/query-execution/index.js';
@@ -353,12 +353,12 @@ export type QueryInput = NlqTranslationInput<NlqResponseJSON, DataSchemaContext>
353
353
  * @internal
354
354
  */
355
355
  export type NlqTranslationErrorContext = {
356
- /** The category of the query element that failed (dimensions, measures, filters, highlights) */
357
- category: 'dimensions' | 'measures' | 'filters' | 'highlights';
358
- /** The index of the element within its category array */
359
- index: number;
356
+ /** The category of the query/chart element that failed (dimensions, measures, filters, highlights, dataOptions, chartType, styleOptions) */
357
+ category: 'dimensions' | 'measures' | 'filters' | 'highlights' | 'dataOptions' | 'chartType' | 'styleOptions';
358
+ /** The index of the element within its category array, or axis key for dataOptions (e.g. "category", "value") */
359
+ index: number | string;
360
360
  /** The complete original input that caused the error */
361
- input: JSONValue;
361
+ input: unknown;
362
362
  };
363
363
  /**
364
364
  * Structured error information for translation failures.
@@ -8,8 +8,8 @@ import { AreamapChartDataOptions, BoxplotChartCustomDataOptions, BoxplotChartDat
8
8
  import { HighchartsOptions } from './domains/visualizations/core/chart-options-processor/chart-options-service';
9
9
  import type { ChartWidgetProps } from './domains/widgets/components/chart-widget/types';
10
10
  import { FiltersMergeStrategy } from './domains/widgets/components/widget-by-id/types';
11
- import { AppConfig } from './infra/app/client-application';
12
- import type { Plugin } from './infra/contexts/plugin-provider/types';
11
+ import { type AppConfig } from './infra/app/types';
12
+ import type { Plugin } from './infra/plugins/types';
13
13
  import { AreamapDataPoint, AreamapStyleOptions, AreaRangeStyleOptions, AreaStyleOptions, BoxplotDataPoint, BoxplotStyleOptions, CalendarHeatmapDataPoint, CalendarHeatmapStyleOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ChartDataPoints, ChartStyleOptions, ChartType, CustomDrilldownResult, DataPoint, DrilldownOptions, DrilldownSelection, FunnelStyleOptions, IndicatorDataPoint, IndicatorRenderOptions, IndicatorStyleOptions, LineStyleOptions, MenuAlignment, MenuItemSection, MenuPosition, PieStyleOptions, PivotTableDataPoint, PivotTableDrilldownOptions, PivotTableStyleOptions, PolarStyleOptions, RegularChartStyleOptions, RegularChartType, ScatterDataPoint, ScattermapDataPoint, ScattermapStyleOptions, ScatterStyleOptions, StackableStyleOptions, StreamgraphStyleOptions, SunburstStyleOptions, TableStyleOptions, TabularChartStyleOptions, TextWidgetDataPoint, ThemeConfig, ThemeOid, ThemeSettings, TreemapStyleOptions, WidgetByIdStyleOptions } from './types';
14
14
  export type { TabberButtonsWidgetProps } from './domains/widgets/components/tabber-buttons-widget/types';
15
15
  export type { WidgetProps, WidgetType, WithCommonWidgetProps, } from './domains/widgets/components/widget/types';
@@ -126,6 +126,24 @@ export interface SisenseContextProviderProps {
126
126
  * @internal
127
127
  */
128
128
  alternativeSsoHost?: string;
129
+ /**
130
+ * Maximum number of SSO redirect attempts before stopping.
131
+ * Prevents infinite refresh loops when auth cookies fail to land (e.g. third-party
132
+ * cookie restrictions, SSO configuration issues, browser privacy settings).
133
+ * Redirect attempts are tracked in localStorage per Sisense URL and reset on successful auth.
134
+ * If not specified, the default value is `3`.
135
+ *
136
+ * @category Sisense Authentication
137
+ * @alpha
138
+ */
139
+ ssoMaxAuthRedirectAttempts?: number;
140
+ /**
141
+ * Milliseconds after the latest redirect timestamp before the counter resets. Use `0` to disable expiry (counter only resets on successful auth). Default is `5000` (5 seconds).
142
+ *
143
+ * @category Sisense Authentication
144
+ * @alpha
145
+ */
146
+ ssoRedirectAttemptsTtlMs?: number;
129
147
  /**
130
148
  * Boolean flag to use the default palette from Compose SDK.
131
149
  * Set to true in case of WAT authentication causing errors for the `/api/palettes` endpoint on older versions of Fusion (pre 2024.3)
@@ -4,4 +4,4 @@
4
4
  * Alpha APIs are highly experimental and subject to change.
5
5
  * Not recommended for production use.
6
6
  */
7
- export { useQueryCache } from '../domains/query-execution/hooks/use-query-cache/use-query-cache';
7
+ export { useDashboardTheme } from '../domains/dashboarding/use-dashboard-theme.js';
@@ -4,4 +4,4 @@
4
4
  * Beta APIs are under evaluation and may change in future releases.
5
5
  * Not recommended for production use.
6
6
  */
7
- export {};
7
+ export { useQueryCache } from '../domains/query-execution/hooks/use-query-cache/use-query-cache';
@@ -4,11 +4,12 @@
4
4
  * Such APIs are for CSDK cross-packages usage only.
5
5
  * These APIs may change without notice and are not part of the public contract.
6
6
  */
7
- export { type ClientApplication, createClientApplication } from '../infra/app/client-application';
7
+ export { type ClientApplication } from '../infra/app/types';
8
+ export { createClientApplication } from '../infra/app/client-application';
8
9
  export { queryStateReducer } from '../domains/query-execution/hooks/shared/query-state-reducer';
9
10
  export { useExecuteCsvQueryInternal, useExecutePivotQueryInternal, executeQueryByWidgetId, } from '../domains/query-execution';
10
11
  export { executeCsvQuery, executePivotQuery, executeQuery, } from '../domains/query-execution/core/execute-query';
11
- export { useDashboardModel, getDashboardModel, getDashboardModels, translateToDashboardResponse, translateToDashboardsResponse, translateFiltersAndRelationsToDto, } from '../domains/dashboarding/dashboard-model';
12
+ export { useDashboardModel, getDashboardModel, getDashboardModels, translateToDashboardResponse, translateToDashboardsResponse, } from '../domains/dashboarding/dashboard-model';
12
13
  export { getWidgetModel } from '../domains/widgets/widget-model';
13
14
  export { getHierarchyModels } from '../domains/drilldown/hierarchy-model';
14
15
  export { getThemeSettingsByOid } from '../infra/themes/theme-loader';
@@ -18,13 +19,16 @@ export { getSelectionTitleMenuItem, getDrilldownMenuItems, } from '../domains/dr
18
19
  export { processDrilldownSelections } from '../domains/drilldown/hooks/use-drilldown-core';
19
20
  export { CommonWidget, type CommonWidgetProps } from '../domains/widgets/components/common-widget';
20
21
  export { TableWidget, type TableWidgetProps } from '../domains/widgets/components/table-widget';
21
- export * from '../infra/contexts/custom-widgets-provider/custom-widgets-provider-adapter';
22
+ export { CustomWidgetsProviderAdapter, type CustomWidgetsContextAdapter, type CustomWidgetsProviderAdapterProps, } from '../infra/contexts/custom-widgets-provider/custom-widgets-provider-adapter';
23
+ export { CustomPluginContextProvider } from '../infra/plugins/custom-plugin-context-provider.js';
24
+ export type { CustomPluginContextProviderProps, CustomPluginContextProviderContext, } from '../infra/plugins/custom-plugin-context-provider.js';
22
25
  export { useGetSharedFormulaInternal } from '../domains/formulas/use-get-shared-formula';
23
26
  export { translateColumnToAttribute } from '../domains/visualizations/core/chart-data-options/utils';
24
27
  export { isSameAttribute } from '../shared/utils/filters';
25
- export { isChartWidgetProps, isPivotTableWidgetProps, isTextWidgetProps, isCustomWidgetProps, } from '../domains/widgets/components/widget-by-id/utils';
28
+ export { isTextWidgetProps, isCustomWidgetProps, } from '../domains/widgets/components/widget-by-id/utils';
26
29
  export { getChartType } from '../domains/widgets/components/widget-by-id/utils';
27
30
  export type { SoftUnion } from '../shared/utils/utility-types';
28
31
  export type { BeforeMenuOpenHandler } from '../infra/contexts/menu-provider/types';
29
- export * from '../shared/hooks/data-load-state-reducer';
30
- export * from '../domains/widgets/helpers';
32
+ export { type DataState, type DataLoadingState, type DataErrorState, type DataSuccessState, dataLoadStateReducer, } from '../shared/hooks/data-load-state-reducer';
33
+ export { trackHook } from '../infra/decorators/hook-decorators/with-tracking';
34
+ export { widgetHelpers } from '../domains/widgets/helpers';
@@ -49,8 +49,8 @@ export { type CustomWidgetProps } from '../domains/widgets/components/custom-wid
49
49
  export { TabberButtonsWidget } from '../domains/widgets/components/tabber-buttons-widget';
50
50
  export { DrilldownBreadcrumbs } from '../domains/drilldown/components/drilldown-breadcrumbs';
51
51
  export * from '../infra/contexts/custom-widgets-provider/types';
52
- export { useCustomWidgets } from '../infra/contexts/custom-widgets-provider';
53
- export { useGetDashboardModel, useGetDashboardModels, useDashboardModel, type DashboardModel, type GetDashboardModelParams, type GetDashboardModelsParams, type DashboardModelState, type DashboardModelLoadingState, type DashboardModelSuccessState, type DashboardModelErrorState, type DashboardModelsState, type DashboardModelsLoadingState, type DashboardModelsSuccessState, type DashboardModelsErrorState, type GetDashboardModelOptions, type GetDashboardModelsOptions, type WidgetsPanelColumnLayout, type WidgetsPanelLayout, type WidgetsPanelColumn, type WidgetsPanelRow, type WidgetsPanelCell, type WidgetId, type DashboardId, type WidgetsOptions, type SpecificWidgetOptions, type CommonFiltersOptions, type CommonFiltersApplyMode, type FiltersIgnoringRules, UseDashboardModelActionType, } from '../domains/dashboarding/dashboard-model';
52
+ export { useCustomWidgets, type UseCustomWidgetsResult, } from '../infra/contexts/custom-widgets-provider';
53
+ export { useGetDashboardModel, useGetDashboardModels, useDashboardModel, type DashboardModel, type GetDashboardModelParams, type GetDashboardModelsParams, type DashboardModelState, type DashboardModelLoadingState, type DashboardModelSuccessState, type DashboardModelErrorState, type DashboardModelsState, type DashboardModelsLoadingState, type DashboardModelsSuccessState, type DashboardModelsErrorState, type GetDashboardModelOptions, type GetDashboardModelsOptions, type WidgetsPanelColumnLayout, type WidgetsPanelLayout, type WidgetsPanelColumn, type WidgetsPanelRow, type WidgetsPanelCell, type WidgetId, type DashboardId, type WidgetsOptions, type SpecificWidgetOptions, type CommonFiltersOptions, type CommonFiltersApplyMode, type FiltersIgnoringRules, } from '../domains/dashboarding/dashboard-model';
54
54
  export { useGetWidgetModel, type WidgetModel, type WidgetDataOptions, type WidgetModelState, type WidgetModelLoadingState, type WidgetModelErrorState, type WidgetModelSuccessState, type GetWidgetModelParams, } from '../domains/widgets/widget-model';
55
55
  export { useGetHierarchyModels, type HierarchyModel, type Hierarchy, type HierarchyId, type GetHierarchyModelsParams, type HierarchyModelsState, type HierarchyModelsLoadingState, type HierarchyModelsErrorState, type HierarchyModelsSuccessState, } from '../domains/drilldown/hierarchy-model';
56
56
  export * from '../domains/filters';
@@ -5,17 +5,26 @@
5
5
  * These APIs may change for in-company needs and are not part of the public contract.
6
6
  */
7
7
  export { useDashboardPersistence } from '../domains/dashboarding/dashboard-model';
8
- export * from '../infra/decorators/component-decorators/with-tracking';
9
- /** List of unclear exports which should be verified */
8
+ export { translateFiltersAndRelationsToDto } from '../domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.js';
9
+ export { UseDashboardModelActionType } from '../domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.js';
10
+ export { type DashboardDto } from '../infra/api/types/dashboard-dto';
11
+ export { type WidgetDto } from '../domains/widgets/components/widget-by-id/types';
12
+ export { getDashboardModel } from '../domains/dashboarding/dashboard-model/get-dashboard-model.js';
13
+ export { withTracking } from '../infra/decorators/component-decorators/with-tracking';
10
14
  export { createDataOptionsFromPanels } from '../domains/widgets/components/widget-by-id/translate-widget-data-options';
11
15
  export { extractCombinedFilters } from '../domains/widgets/components/widget-by-id/translate-dashboard-filters';
12
- export { trackHook } from '../infra/decorators/hook-decorators';
13
16
  export { useThemeContext } from '../infra/contexts/theme-provider';
14
- export { type DashboardDto } from '../infra/api/types/dashboard-dto';
15
- export { type WidgetDto } from '../domains/widgets/components/widget-by-id/types';
16
17
  export { useAppSettings } from '../shared/hooks/use-app-settings';
17
18
  export type { AppSettings } from '../infra/app/settings/settings';
18
19
  export { QuotaNotification } from '../shared/components/quota-notification/quota-notification.js';
19
20
  export type { QuotaNotificationProps } from '../shared/components/quota-notification/quota-notification.js';
20
21
  export { useQuotaNotification } from '../shared/hooks/use-quota-notification.js';
21
22
  export type { QuotaNotificationOptions, QuotaApiResponse, QuotaState, } from '../shared/hooks/use-quota-notification.js';
23
+ export type { Plugin } from '../infra/plugins/types.js';
24
+ export type { WidgetPlugin, CustomVisualization, CustomVisualizationProps, CustomVisualizationStyleOptions, CustomVisualizationEventProps, CustomVisualizationDataPoint, CustomVisualizationDataPointEventHandler, CustomVisualizationDataPointContextMenuHandler, CustomVisualizationDataPointsEventHandler, DesignPanelProps, DesignPanel, } from '../infra/plugins/widget-plugins/types.js';
25
+ export { LoadingIndicator } from '../shared/components/loading-indicator.js';
26
+ export { DataSchemaBrowser } from '../domains/data-browser/data-schema-browser/data-schema-browser.js';
27
+ export type { NlqChartWidgetStyleOptions } from '../types';
28
+ export type { RenderTitleHandler } from '../types';
29
+ export { isChartWidgetProps } from '../domains/widgets/components/widget-by-id/utils.js';
30
+ export { isPivotTableWidgetProps } from '../domains/widgets/components/widget-by-id/utils.js';
@@ -36,10 +36,16 @@ export type GroupSecondaryActionConfig = {
36
36
  };
37
37
  export type ItemActionConfig = {
38
38
  onClick(this: void, item: Item): void;
39
+ getLabel?: (this: void, item: Item) => string;
39
40
  };
40
41
  export type ItemSecondaryActionConfig = {
41
42
  SecondaryActionButtonIcon: React.ComponentType<{
42
43
  item: Item;
43
44
  }>;
44
- onClick(this: void, item: Item): void;
45
+ /**
46
+ * When true, the row keeps hover/focus style after the secondary action is clicked (e.g. while a menu is open).
47
+ * The row is cleared when the consumer calls the `onSubmit` callback passed to `onClick`.
48
+ */
49
+ keepFocusedOnClick?: boolean;
50
+ onClick(this: void, item: Item, event: React.MouseEvent, onSubmit: () => void): void;
45
51
  };
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Props for the InlineTextEditor component.
4
+ */
5
+ export interface InlineTextEditorProps {
6
+ /** Current text value */
7
+ value: string;
8
+ /** Whether the editor is in editing mode */
9
+ isEditing: boolean;
10
+ /** Called when text is committed (on blur / Enter) */
11
+ onCommit: (newValue: string) => void;
12
+ /** Called to request entering/leaving edit mode */
13
+ onEditingChange: (editing: boolean) => void;
14
+ /** Called when editing is cancelled (on Escape). May be undefined if onEditingChange handles it. */
15
+ onCancel?: () => void;
16
+ /** Placeholder text when value is empty */
17
+ placeholder?: string;
18
+ }
19
+ /**
20
+ * Inline text editor for editable titles.
21
+ * Renders as plain text when not editing; switches to an input when in edit mode.
22
+ * Supports double-click to enter edit mode, Enter/blur to commit, Escape to cancel.
23
+ *
24
+ * @internal
25
+ */
26
+ export declare function InlineTextEditor({ value, isEditing, onCommit, onEditingChange, onCancel, placeholder, }: InlineTextEditorProps): React.ReactElement;
@@ -0,0 +1,11 @@
1
+ import { type RefObject } from 'react';
2
+ /**
3
+ * Blurs the given element when a pointerdown occurs outside it.
4
+ * Used to commit inline editors when the user clicks on elements that call
5
+ * preventDefault() on mousedown (e.g. chart libraries), so the browser never fires blur.
6
+ *
7
+ * @param elementRef - Ref to the element that should lose focus on outside pointerdown
8
+ * @param isActive - When true, the document listener is attached; when false, it is removed
9
+ * @internal
10
+ */
11
+ export declare function useBlurOnPointerDownOutside(elementRef: RefObject<HTMLElement | null>, isActive: boolean): void;
@@ -8,7 +8,8 @@ import { CompleteThemeSettings } from '../../types.js';
8
8
  * @returns A loading indicator with optional cancel.
9
9
  *
10
10
  * @deprecated Use LoadingOverlay instead.
11
- * @internal
11
+ *
12
+ * @sisenseInternal
12
13
  */
13
14
  export declare const LoadingIndicator: ({ themeSettings, onCancel, }: {
14
15
  themeSettings?: CompleteThemeSettings | undefined;
@@ -2,7 +2,7 @@ import { type QuotaNotificationOptions } from '../../hooks/use-quota-notificatio
2
2
  /**
3
3
  * Props for QuotaNotification component
4
4
  *
5
- * @internal
5
+ * @sisenseInternal
6
6
  */
7
7
  export interface QuotaNotificationProps extends QuotaNotificationOptions {
8
8
  /**
@@ -27,6 +27,6 @@ export interface QuotaNotificationProps extends QuotaNotificationOptions {
27
27
  *
28
28
  * @param props - QuotaNotification props
29
29
  * @returns QuotaNotification component or null
30
- * @internal
30
+ * @sisenseInternal
31
31
  */
32
32
  export declare function QuotaNotification({ className, warningDismissed: controlledWarningDismissed, onDismissWarning, enabled, warningThreshold, exceededThreshold, }?: QuotaNotificationProps): import("react/jsx-runtime").JSX.Element | null;
@@ -5,3 +5,8 @@ export declare const DEFAULT_BACKGROUND_COLOR = "#F4F4F8";
5
5
  export declare const ERROR_COLOR = "#FA5656";
6
6
  export declare const NOT_AVAILABLE_DATA_VALUE = "N\\A";
7
7
  export declare const NOT_AVAILABLE_TEXT = "N/A";
8
+ /** WCAG 2.5.8 Target Size (Minimum) — minimum 24×24 CSS pixels for interactive controls. */
9
+ export declare const MIN_TOUCH_TARGET_SIZE: {
10
+ readonly minWidth: "24px";
11
+ readonly minHeight: "24px";
12
+ };
@@ -6,6 +6,7 @@ import type { AppSettings } from '../../infra/app/settings/settings';
6
6
  * when customizing components wrapped inside SisenseContextProvider.
7
7
  *
8
8
  * @returns AppSettings when app is initialized, undefined otherwise
9
- * @internal
9
+ *
10
+ * @sisenseInternal
10
11
  */
11
12
  export declare const useAppSettings: () => AppSettings | undefined;