@thoughtspot/visual-embed-sdk 1.47.2 → 1.48.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 (190) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/auth.d.ts.map +1 -1
  3. package/cjs/src/auth.js +11 -1
  4. package/cjs/src/auth.js.map +1 -1
  5. package/cjs/src/auth.spec.js +38 -0
  6. package/cjs/src/auth.spec.js.map +1 -1
  7. package/cjs/src/authToken.d.ts +2 -0
  8. package/cjs/src/authToken.d.ts.map +1 -1
  9. package/cjs/src/authToken.js +7 -5
  10. package/cjs/src/authToken.js.map +1 -1
  11. package/cjs/src/embed/app.d.ts +7 -2
  12. package/cjs/src/embed/app.d.ts.map +1 -1
  13. package/cjs/src/embed/app.js +4 -1
  14. package/cjs/src/embed/app.js.map +1 -1
  15. package/cjs/src/embed/app.spec.js +121 -0
  16. package/cjs/src/embed/app.spec.js.map +1 -1
  17. package/cjs/src/embed/conversation.d.ts +2 -1
  18. package/cjs/src/embed/conversation.d.ts.map +1 -1
  19. package/cjs/src/embed/conversation.js.map +1 -1
  20. package/cjs/src/embed/liveboard.d.ts +1 -1
  21. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  22. package/cjs/src/embed/liveboard.js +4 -1
  23. package/cjs/src/embed/liveboard.js.map +1 -1
  24. package/cjs/src/embed/liveboard.spec.js +32 -0
  25. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  26. package/cjs/src/embed/search.d.ts +24 -1
  27. package/cjs/src/embed/search.d.ts.map +1 -1
  28. package/cjs/src/embed/search.js +15 -2
  29. package/cjs/src/embed/search.js.map +1 -1
  30. package/cjs/src/embed/search.spec.js +99 -0
  31. package/cjs/src/embed/search.spec.js.map +1 -1
  32. package/cjs/src/embed/spotter-utils.d.ts +3 -0
  33. package/cjs/src/embed/spotter-utils.d.ts.map +1 -1
  34. package/cjs/src/embed/spotter-utils.js +11 -3
  35. package/cjs/src/embed/spotter-utils.js.map +1 -1
  36. package/cjs/src/embed/spotter-utils.spec.js +51 -0
  37. package/cjs/src/embed/spotter-utils.spec.js.map +1 -1
  38. package/cjs/src/embed/ts-embed.d.ts +1 -0
  39. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  40. package/cjs/src/embed/ts-embed.js +17 -5
  41. package/cjs/src/embed/ts-embed.js.map +1 -1
  42. package/cjs/src/embed/ts-embed.spec.js +168 -0
  43. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  44. package/cjs/src/index.d.ts +2 -2
  45. package/cjs/src/index.d.ts.map +1 -1
  46. package/cjs/src/index.js +8 -1
  47. package/cjs/src/index.js.map +1 -1
  48. package/cjs/src/mixpanel-service.d.ts.map +1 -1
  49. package/cjs/src/mixpanel-service.js +2 -0
  50. package/cjs/src/mixpanel-service.js.map +1 -1
  51. package/cjs/src/mixpanel-service.spec.js +2 -0
  52. package/cjs/src/mixpanel-service.spec.js.map +1 -1
  53. package/cjs/src/test/test-utils.d.ts +1 -0
  54. package/cjs/src/test/test-utils.d.ts.map +1 -1
  55. package/cjs/src/test/test-utils.js +26 -1
  56. package/cjs/src/test/test-utils.js.map +1 -1
  57. package/cjs/src/tokenizedFetch.d.ts.map +1 -1
  58. package/cjs/src/tokenizedFetch.js +12 -9
  59. package/cjs/src/tokenizedFetch.js.map +1 -1
  60. package/cjs/src/tokenizedFetch.spec.d.ts +2 -0
  61. package/cjs/src/tokenizedFetch.spec.d.ts.map +1 -0
  62. package/cjs/src/tokenizedFetch.spec.js +68 -0
  63. package/cjs/src/tokenizedFetch.spec.js.map +1 -0
  64. package/cjs/src/types.d.ts +466 -13
  65. package/cjs/src/types.d.ts.map +1 -1
  66. package/cjs/src/types.js +149 -5
  67. package/cjs/src/types.js.map +1 -1
  68. package/dist/{index-CFZ7RDZ9.js → index-Ck-r09gt.js} +1 -1
  69. package/dist/src/auth.d.ts.map +1 -1
  70. package/dist/src/authToken.d.ts +2 -0
  71. package/dist/src/authToken.d.ts.map +1 -1
  72. package/dist/src/embed/app.d.ts +7 -2
  73. package/dist/src/embed/app.d.ts.map +1 -1
  74. package/dist/src/embed/conversation.d.ts +2 -1
  75. package/dist/src/embed/conversation.d.ts.map +1 -1
  76. package/dist/src/embed/liveboard.d.ts +1 -1
  77. package/dist/src/embed/liveboard.d.ts.map +1 -1
  78. package/dist/src/embed/search.d.ts +24 -1
  79. package/dist/src/embed/search.d.ts.map +1 -1
  80. package/dist/src/embed/spotter-utils.d.ts +3 -0
  81. package/dist/src/embed/spotter-utils.d.ts.map +1 -1
  82. package/dist/src/embed/ts-embed.d.ts +1 -0
  83. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  84. package/dist/src/index.d.ts +2 -2
  85. package/dist/src/index.d.ts.map +1 -1
  86. package/dist/src/mixpanel-service.d.ts.map +1 -1
  87. package/dist/src/test/test-utils.d.ts +1 -0
  88. package/dist/src/test/test-utils.d.ts.map +1 -1
  89. package/dist/src/tokenizedFetch.d.ts.map +1 -1
  90. package/dist/src/tokenizedFetch.spec.d.ts +2 -0
  91. package/dist/src/tokenizedFetch.spec.d.ts.map +1 -0
  92. package/dist/src/types.d.ts +466 -13
  93. package/dist/src/types.d.ts.map +1 -1
  94. package/dist/tsembed-react.es.js +226 -29
  95. package/dist/tsembed-react.js +225 -28
  96. package/dist/tsembed.es.js +227 -30
  97. package/dist/tsembed.js +225 -28
  98. package/dist/visual-embed-sdk-react-full.d.ts +469 -15
  99. package/dist/visual-embed-sdk-react.d.ts +469 -15
  100. package/dist/visual-embed-sdk.d.ts +497 -15
  101. package/lib/package.json +1 -1
  102. package/lib/src/auth.d.ts.map +1 -1
  103. package/lib/src/auth.js +12 -2
  104. package/lib/src/auth.js.map +1 -1
  105. package/lib/src/auth.spec.js +38 -0
  106. package/lib/src/auth.spec.js.map +1 -1
  107. package/lib/src/authToken.d.ts +2 -0
  108. package/lib/src/authToken.d.ts.map +1 -1
  109. package/lib/src/authToken.js +2 -2
  110. package/lib/src/authToken.js.map +1 -1
  111. package/lib/src/embed/app.d.ts +7 -2
  112. package/lib/src/embed/app.d.ts.map +1 -1
  113. package/lib/src/embed/app.js +4 -1
  114. package/lib/src/embed/app.js.map +1 -1
  115. package/lib/src/embed/app.spec.js +122 -1
  116. package/lib/src/embed/app.spec.js.map +1 -1
  117. package/lib/src/embed/conversation.d.ts +2 -1
  118. package/lib/src/embed/conversation.d.ts.map +1 -1
  119. package/lib/src/embed/conversation.js.map +1 -1
  120. package/lib/src/embed/liveboard.d.ts +1 -1
  121. package/lib/src/embed/liveboard.d.ts.map +1 -1
  122. package/lib/src/embed/liveboard.js +4 -1
  123. package/lib/src/embed/liveboard.js.map +1 -1
  124. package/lib/src/embed/liveboard.spec.js +32 -0
  125. package/lib/src/embed/liveboard.spec.js.map +1 -1
  126. package/lib/src/embed/search.d.ts +24 -1
  127. package/lib/src/embed/search.d.ts.map +1 -1
  128. package/lib/src/embed/search.js +15 -2
  129. package/lib/src/embed/search.js.map +1 -1
  130. package/lib/src/embed/search.spec.js +100 -1
  131. package/lib/src/embed/search.spec.js.map +1 -1
  132. package/lib/src/embed/spotter-utils.d.ts +3 -0
  133. package/lib/src/embed/spotter-utils.d.ts.map +1 -1
  134. package/lib/src/embed/spotter-utils.js +11 -3
  135. package/lib/src/embed/spotter-utils.js.map +1 -1
  136. package/lib/src/embed/spotter-utils.spec.js +51 -0
  137. package/lib/src/embed/spotter-utils.spec.js.map +1 -1
  138. package/lib/src/embed/ts-embed.d.ts +1 -0
  139. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  140. package/lib/src/embed/ts-embed.js +16 -4
  141. package/lib/src/embed/ts-embed.js.map +1 -1
  142. package/lib/src/embed/ts-embed.spec.js +168 -0
  143. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  144. package/lib/src/index.d.ts +2 -2
  145. package/lib/src/index.d.ts.map +1 -1
  146. package/lib/src/index.js +2 -2
  147. package/lib/src/index.js.map +1 -1
  148. package/lib/src/mixpanel-service.d.ts.map +1 -1
  149. package/lib/src/mixpanel-service.js +2 -0
  150. package/lib/src/mixpanel-service.js.map +1 -1
  151. package/lib/src/mixpanel-service.spec.js +2 -0
  152. package/lib/src/mixpanel-service.spec.js.map +1 -1
  153. package/lib/src/test/test-utils.d.ts +1 -0
  154. package/lib/src/test/test-utils.d.ts.map +1 -1
  155. package/lib/src/test/test-utils.js +25 -1
  156. package/lib/src/test/test-utils.js.map +1 -1
  157. package/lib/src/tokenizedFetch.d.ts.map +1 -1
  158. package/lib/src/tokenizedFetch.js +13 -10
  159. package/lib/src/tokenizedFetch.js.map +1 -1
  160. package/lib/src/tokenizedFetch.spec.d.ts +2 -0
  161. package/lib/src/tokenizedFetch.spec.d.ts.map +1 -0
  162. package/lib/src/tokenizedFetch.spec.js +65 -0
  163. package/lib/src/tokenizedFetch.spec.js.map +1 -0
  164. package/lib/src/types.d.ts +466 -13
  165. package/lib/src/types.d.ts.map +1 -1
  166. package/lib/src/types.js +148 -4
  167. package/lib/src/types.js.map +1 -1
  168. package/lib/src/visual-embed-sdk.d.ts +497 -15
  169. package/package.json +1 -1
  170. package/src/auth.spec.ts +55 -1
  171. package/src/auth.ts +11 -2
  172. package/src/authToken.ts +2 -2
  173. package/src/embed/app.spec.ts +154 -0
  174. package/src/embed/app.ts +13 -2
  175. package/src/embed/conversation.ts +2 -1
  176. package/src/embed/liveboard.spec.ts +46 -0
  177. package/src/embed/liveboard.ts +9 -4
  178. package/src/embed/search.spec.ts +118 -0
  179. package/src/embed/search.ts +43 -1
  180. package/src/embed/spotter-utils.spec.ts +52 -0
  181. package/src/embed/spotter-utils.ts +19 -3
  182. package/src/embed/ts-embed.spec.ts +220 -0
  183. package/src/embed/ts-embed.ts +15 -4
  184. package/src/index.ts +16 -0
  185. package/src/mixpanel-service.spec.ts +2 -0
  186. package/src/mixpanel-service.ts +2 -0
  187. package/src/test/test-utils.ts +33 -1
  188. package/src/tokenizedFetch.spec.ts +81 -0
  189. package/src/tokenizedFetch.ts +14 -11
  190. package/src/types.ts +496 -13
@@ -1847,9 +1847,10 @@ export interface BaseViewConfig extends ApiInterceptFlags {
1847
1847
  styleSheet__unstable?: string;
1848
1848
  /**
1849
1849
  * The list of actions to disable from the primary menu, more menu
1850
- * (...), and the contextual menu. These actions will be disabled
1851
- * for the user.
1852
- * Use this to disable actions.
1850
+ * (...), and the contextual menu. Disabled actions are grayed out
1851
+ * and still visible to the user, but cannot be clicked.
1852
+ * Use this when you want to disable an action (keep it visible but non-interactive).
1853
+ * To completely remove an action from the UI, use {@link hiddenActions} instead.
1853
1854
  *
1854
1855
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
1855
1856
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
@@ -1880,9 +1881,10 @@ export interface BaseViewConfig extends ApiInterceptFlags {
1880
1881
  */
1881
1882
  disabledActionReason?: string;
1882
1883
  /**
1883
- * The list of actions to hide from the embedded view.
1884
- * These actions will be hidden from the user.
1885
- * Use this to hide an action.
1884
+ * The list of actions to completely remove from the embedded view.
1885
+ * Hidden actions are not visible to the user at all (fully removed from the UI).
1886
+ * Use this when you want to remove an action entirely.
1887
+ * To keep an action visible but non-interactive (grayed out), use {@link disabledActions} instead.
1886
1888
  *
1887
1889
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
1888
1890
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
@@ -1901,9 +1903,8 @@ export interface BaseViewConfig extends ApiInterceptFlags {
1901
1903
  * The list of actions to display from the primary menu, more menu
1902
1904
  * (...), and the contextual menu. These will be only actions that
1903
1905
  * are visible to the user.
1904
- * Use this to hide all actions except the ones you want to show.
1905
- *
1906
- * Use either this or hiddenActions.
1906
+ * Use this as an allowlist only the actions listed here will be shown.
1907
+ * All other actions will be hidden. Use either this or {@link hiddenActions}, not both.
1907
1908
  *
1908
1909
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
1909
1910
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
@@ -2357,6 +2358,7 @@ export interface BaseViewConfig extends ApiInterceptFlags {
2357
2358
  /**
2358
2359
  * Refresh the auth token when the token is near expiry.
2359
2360
  * @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
2361
+ * @default true
2360
2362
  * @example
2361
2363
  * ```js
2362
2364
  * const embed = new AppEmbed('#tsEmbed', {
@@ -2906,6 +2908,22 @@ export interface LiveboardAppEmbedViewConfig {
2906
2908
  * ```
2907
2909
  */
2908
2910
  isLiveboardMasterpiecesEnabled?: boolean;
2911
+ /**
2912
+ * Enable or disable Muze chart phase 1 GA
2913
+ *
2914
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
2915
+ * @version SDK: 1.49.0 | ThoughtSpot Cloud: 26.6.0.cl
2916
+ * @default false
2917
+ * @example
2918
+ * ```js
2919
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
2920
+ * const embed = new <EmbedComponent>('#tsEmbed', {
2921
+ * ... // other embed view config
2922
+ * newChartsLibrary: true,
2923
+ * })
2924
+ * ```
2925
+ */
2926
+ newChartsLibrary?: boolean;
2909
2927
  }
2910
2928
  export interface AllEmbedViewConfig extends BaseViewConfig, SearchLiveboardCommonViewConfig, HomePageConfig, LiveboardAppEmbedViewConfig {
2911
2929
  }
@@ -6633,10 +6651,14 @@ export declare enum DataSourceVisualMode {
6633
6651
  /**
6634
6652
  * ThoughtSpot application pages include actions and menu commands
6635
6653
  * for various user-initiated operations. These actions are represented
6636
- * as enumeration members in the SDK. To show, hide, or disable
6637
- * specific actions in the embedded view, define the Action
6638
- * enumeration members in the `disabledActions`, `visibleActions`,
6639
- * or `hiddenActions` array.
6654
+ * as enumeration members in the SDK. To control actions in the embedded view:
6655
+ * - disabledActions the action is grayed out and still visible, but non-interactive (user can see but not click).
6656
+ * - hiddenActions the action is completely removed from the UI (user cannot see it at all).
6657
+ * - visibleActions — allowlist, only these actions are shown; all others are hidden.
6658
+ *
6659
+ * Use disabledActions to disable (gray out) an action.
6660
+ * Use hiddenActions to hide (fully remove) an action.
6661
+ * Use visibleActions to show only specific actions.
6640
6662
  * @example
6641
6663
  * ```js
6642
6664
  * const embed = new LiveboardEmbed('#tsEmbed', {
@@ -7483,6 +7505,26 @@ export declare enum Action {
7483
7505
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.1.sw
7484
7506
  */
7485
7507
  AxisMenuRemove = "axisMenuRemove",
7508
+ /**
7509
+ * The **Compare with** action in the chart axis customization menu.
7510
+ * Allows comparing data across dimensions or measures.
7511
+ * @example
7512
+ * ```js
7513
+ * disabledActions: [Action.AxisMenuCompare]
7514
+ * ```
7515
+ * @version SDK: 1.50.0 | ThoughtSpot: 26.7.0.cl
7516
+ */
7517
+ AxisMenuCompare = "axisMenuCompare",
7518
+ /**
7519
+ * The **Merge with** action in the chart axis customization menu.
7520
+ * Allows merging data across dimensions or measures.
7521
+ * @example
7522
+ * ```js
7523
+ * disabledActions: [Action.AxisMenuMerge]
7524
+ * ```
7525
+ * @version SDK: 1.50.0 | ThoughtSpot: 26.7.0.cl
7526
+ */
7527
+ AxisMenuMerge = "axisMenuMerge",
7486
7528
  /**
7487
7529
  * @hidden
7488
7530
  */
@@ -8596,6 +8638,9 @@ export interface DefaultAppInitData {
8596
8638
  customActions: CustomAction[];
8597
8639
  interceptTimeout: number | undefined;
8598
8640
  interceptUrls: (string | InterceptedApiType)[];
8641
+ embedExpiryInAuthToken: boolean;
8642
+ shouldBypassPayloadValidation?: boolean;
8643
+ useHostEventsV2?: boolean;
8599
8644
  }
8600
8645
  /**
8601
8646
  * Enum for the type of API intercepted
@@ -8713,6 +8758,385 @@ export interface ContextObject {
8713
8758
  objectIds: ObjectIds;
8714
8759
  };
8715
8760
  }
8761
+ export interface FontProperties {
8762
+ color?: string;
8763
+ bold?: boolean;
8764
+ italic?: boolean;
8765
+ strikeThrough?: boolean;
8766
+ underline?: boolean;
8767
+ }
8768
+ export interface SolidBackgroundAttrs {
8769
+ color?: string;
8770
+ }
8771
+ export interface GradientBackgroundAttrs {
8772
+ backgroundFormatMidpoint?: number;
8773
+ colors?: string[];
8774
+ backgroundFormatRange?: number[];
8775
+ isAutoScaled?: boolean;
8776
+ }
8777
+ declare enum DataLabelFilterOperator {
8778
+ /** Greater than */
8779
+ GreaterThan = "GREATER_THAN",
8780
+ /** Less than */
8781
+ LessThan = "LESS_THAN",
8782
+ /** Greater than or equal to */
8783
+ GreaterThanOrEqualTo = "GREATER_THAN_OR_EQUAL_TO",
8784
+ /** Less than or equal to */
8785
+ LessThanOrEqualTo = "LESS_THAN_OR_EQUAL_TO",
8786
+ /** Equal to */
8787
+ EqualTo = "EQUAL_TO",
8788
+ /** Not equal to */
8789
+ NotEqualTo = "NOT_EQUAL_TO"
8790
+ }
8791
+ declare enum ConditionalFormattingOperator {
8792
+ /** Is equal to */
8793
+ Is = "IS",
8794
+ /** Is not equal to */
8795
+ IsNot = "IS_NOT",
8796
+ /** Contains */
8797
+ Contains = "CONTAINS",
8798
+ /** Does not contain */
8799
+ DoesNotContain = "DOES_NOT_CONTAIN",
8800
+ /** Starts with */
8801
+ StartsWith = "STARTS_WITH",
8802
+ /** Ends with */
8803
+ EndsWith = "ENDS_WITH",
8804
+ /** Greater than */
8805
+ GreaterThan = "GREATER_THAN",
8806
+ /** Less than */
8807
+ LessThan = "LESS_THAN",
8808
+ /** Greater than or equal to */
8809
+ GreaterThanEqualTo = "GREATER_THAN_EQUAL_TO",
8810
+ /** Less than or equal to */
8811
+ LessThanEqualTo = "LESS_THAN_EQUAL_TO",
8812
+ /** Equal to */
8813
+ EqualTo = "EQUAL_TO",
8814
+ /** Not equal to */
8815
+ NotEqualTo = "NOT_EQUAL_TO",
8816
+ /** Is between */
8817
+ IsBetween = "IS_BETWEEN",
8818
+ /** Is null */
8819
+ IsNull = "IS_NULL",
8820
+ /** Is not null */
8821
+ IsNotNull = "IS_NOT_NULL"
8822
+ }
8823
+ declare enum BackgroundFormatType {
8824
+ /** Solid color background */
8825
+ Solid = "SOLID",
8826
+ /** Gradient background */
8827
+ Gradient = "GRADIENT"
8828
+ }
8829
+ declare enum ConditionalFormattingComparisonType {
8830
+ /** Value-based comparison */
8831
+ ValueBased = "VALUE_BASED",
8832
+ /** Column-based comparison */
8833
+ ColumnBased = "COLUMN_BASED",
8834
+ /** Parameter-based comparison */
8835
+ ParameterBased = "PARAMETER_BASED"
8836
+ }
8837
+ /**
8838
+ * A single conditional formatting rule row
8839
+ * @group Visual Overrides
8840
+ */
8841
+ export interface ConditionalFormattingRow {
8842
+ /** Comparison operator */
8843
+ operator: ConditionalFormattingOperator | string;
8844
+ /** Value to compare against */
8845
+ value?: string;
8846
+ /** Range values for range-based comparisons */
8847
+ rangeValues?: {
8848
+ min: number;
8849
+ max: number;
8850
+ };
8851
+ /** Plot the formatting as a band/area */
8852
+ plotAsBand?: boolean;
8853
+ /** Highlight this row if the condition is met */
8854
+ isHighlightRow?: boolean;
8855
+ /** Type of comparison: value-based, column-based, or parameter-based */
8856
+ comparisonType?: ConditionalFormattingComparisonType | string;
8857
+ /** Column ID to apply the formatting to (left-hand side) */
8858
+ lhsColumnId?: string;
8859
+ /** Column name to compare against (right-hand side) */
8860
+ columnToCompare?: string;
8861
+ /** Parameter ID to compare against */
8862
+ comparisonParameterId?: string;
8863
+ /** Font properties to apply (color, bold, italic, etc.) */
8864
+ fontProperties?: FontProperties;
8865
+ /** Background format type: solid color or gradient */
8866
+ backgroundFormatType?: BackgroundFormatType | string;
8867
+ /** Solid background color attributes */
8868
+ solidBackgroundAttrs?: SolidBackgroundAttrs;
8869
+ /** Gradient background attributes */
8870
+ gradientBackgroundAttrs?: GradientBackgroundAttrs;
8871
+ }
8872
+ /**
8873
+ * Conditional formatting configuration
8874
+ * @group Visual Overrides
8875
+ */
8876
+ export interface ConditionalFormatting {
8877
+ /** Array of conditional formatting rules */
8878
+ rows?: ConditionalFormattingRow[];
8879
+ }
8880
+ /**
8881
+ * Color palette for charts
8882
+ * @group Visual Overrides
8883
+ */
8884
+ export interface ColorPalette {
8885
+ /** Array of color values (hex codes or color names) */
8886
+ colors?: string[];
8887
+ }
8888
+ declare enum LegendPosition {
8889
+ /** Position legend at the top */
8890
+ Top = "top",
8891
+ /** Position legend at the bottom */
8892
+ Bottom = "bottom",
8893
+ /** Position legend on the left */
8894
+ Left = "left",
8895
+ /** Position legend on the right */
8896
+ Right = "right"
8897
+ }
8898
+ declare enum TableTheme {
8899
+ /** Outline theme */
8900
+ Outline = "OUTLINE",
8901
+ /** Row theme */
8902
+ Row = "ROW",
8903
+ /** Zebra theme */
8904
+ Zebra = "ZEBRA"
8905
+ }
8906
+ declare enum TableContentDensity {
8907
+ /** Regular density */
8908
+ Regular = "REGULAR",
8909
+ /** Compact density */
8910
+ Compact = "COMPACT"
8911
+ }
8912
+ /**
8913
+ * Chart legend configuration
8914
+ * @group Visual Overrides
8915
+ */
8916
+ export interface ChartLegend {
8917
+ /** Show or hide the legend */
8918
+ show?: boolean;
8919
+ /** Position of the legend */
8920
+ position?: LegendPosition | string;
8921
+ /** Color palette to use for legend colors */
8922
+ colorPalette?: ColorPalette;
8923
+ }
8924
+ /**
8925
+ * Filter for data labels
8926
+ * @group Visual Overrides
8927
+ */
8928
+ export interface DataLabelFilter {
8929
+ /** Filter threshold value */
8930
+ value?: number;
8931
+ /** Filter operator */
8932
+ operator?: DataLabelFilterOperator | string;
8933
+ }
8934
+ /**
8935
+ * Data label configuration for a specific column
8936
+ * @group Visual Overrides
8937
+ */
8938
+ export interface ColumnDataLabel {
8939
+ /** Column name to apply data label overrides to */
8940
+ name: string;
8941
+ /** Show or hide data labels for this column */
8942
+ visible?: boolean;
8943
+ /** Filter to apply to data labels */
8944
+ filter?: DataLabelFilter | null;
8945
+ }
8946
+ /**
8947
+ * Chart data label configuration
8948
+ * @group Visual Overrides
8949
+ */
8950
+ export interface ChartDataLabel {
8951
+ /** Show labels for all data points */
8952
+ allLabels?: boolean;
8953
+ /** Show labels for stacked values */
8954
+ stackLabels?: boolean;
8955
+ /** Per-column data label configurations */
8956
+ columnDataLabel?: ColumnDataLabel[];
8957
+ }
8958
+ /**
8959
+ * Chart summaries and totals configuration
8960
+ * @group Visual Overrides
8961
+ */
8962
+ export interface ChartSummaries {
8963
+ /** Show row totals */
8964
+ showRowTotals?: boolean;
8965
+ /** Show column totals */
8966
+ showColumnTotals?: boolean;
8967
+ /** Show row grand totals */
8968
+ showRowGrandTotals?: boolean;
8969
+ /** Show column grand totals */
8970
+ showColumnGrandTotals?: boolean;
8971
+ }
8972
+ /**
8973
+ * Gridline configuration
8974
+ * @group Visual Overrides
8975
+ */
8976
+ export interface GridLine {
8977
+ /** Show vertical gridlines */
8978
+ x?: boolean;
8979
+ /** Show horizontal gridlines */
8980
+ y?: boolean;
8981
+ }
8982
+ /**
8983
+ * Chart display configuration
8984
+ * @group Visual Overrides
8985
+ */
8986
+ export interface ChartDisplay {
8987
+ /** Summary and totals configuration */
8988
+ summaries?: ChartSummaries;
8989
+ /** Show regression line on chart */
8990
+ regressionLine?: boolean;
8991
+ /** Gridline visibility configuration */
8992
+ gridLine?: GridLine;
8993
+ }
8994
+ /**
8995
+ * Y-axis range configuration
8996
+ * @group Visual Overrides
8997
+ */
8998
+ export interface YAxisRange {
8999
+ /** Minimum value for Y-axis */
9000
+ min?: number;
9001
+ /** Maximum value for Y-axis */
9002
+ max?: number;
9003
+ }
9004
+ /**
9005
+ * Chart axis configuration
9006
+ * @group Visual Overrides
9007
+ */
9008
+ export interface ChartAxis {
9009
+ /** Column names to link to this axis */
9010
+ linkedColumns?: string[];
9011
+ /** Show the axis name */
9012
+ showName?: boolean;
9013
+ /** Show the axis label values */
9014
+ showLabelValue?: boolean;
9015
+ /** Y-axis range configuration */
9016
+ yAxisRange?: YAxisRange;
9017
+ }
9018
+ /**
9019
+ * Chart column override configuration
9020
+ * @group Visual Overrides
9021
+ */
9022
+ export interface ChartColumn {
9023
+ /** Column name to apply overrides to */
9024
+ name: string;
9025
+ /** Color for the column (hex code) */
9026
+ color?: string;
9027
+ /** Conditional formatting rules to apply to the column */
9028
+ conditionalFormatting?: ConditionalFormatting;
9029
+ }
9030
+ /**
9031
+ * Chart visualization overrides
9032
+ * @group Visual Overrides
9033
+ */
9034
+ export interface ChartOverrides {
9035
+ /** Legend configuration */
9036
+ legend?: ChartLegend;
9037
+ /** Data label configuration */
9038
+ dataLabel?: ChartDataLabel;
9039
+ /** Display properties (summaries, regression line, gridlines) */
9040
+ display?: ChartDisplay;
9041
+ /** Per-axis configurations */
9042
+ axis?: ChartAxis[];
9043
+ /** Per-column configurations */
9044
+ columns?: ChartColumn[];
9045
+ /** Update mask paths for partial updates */
9046
+ updateMaskPaths?: string[];
9047
+ }
9048
+ /**
9049
+ * Table column override configuration
9050
+ * @group Visual Overrides
9051
+ */
9052
+ export interface TableColumn {
9053
+ /**
9054
+ * Name of the column to apply overrides to
9055
+ */
9056
+ name: string;
9057
+ /**
9058
+ * Enable or disable text wrapping for the column
9059
+ */
9060
+ wrapText?: boolean;
9061
+ /**
9062
+ * Show or hide the column
9063
+ */
9064
+ show?: boolean;
9065
+ /**
9066
+ * Conditional formatting rules to apply to the column
9067
+ */
9068
+ conditionalFormatting?: ConditionalFormatting;
9069
+ }
9070
+ /**
9071
+ * Table display configuration
9072
+ * @group Visual Overrides
9073
+ */
9074
+ export interface TableDisplay {
9075
+ /** Table theme */
9076
+ tableTheme?: TableTheme | string;
9077
+ /** Table content density */
9078
+ tableContentDensity?: TableContentDensity | string;
9079
+ }
9080
+ /**
9081
+ * Column summary visibility configuration
9082
+ * @group Visual Overrides
9083
+ */
9084
+ export interface ColumnSummaryVisibility {
9085
+ /** Column ID to control summary visibility for */
9086
+ columnId: string;
9087
+ /** Show or hide summary for this column */
9088
+ visible: boolean;
9089
+ }
9090
+ /**
9091
+ * Display summary configuration
9092
+ * @group Visual Overrides
9093
+ */
9094
+ export interface DisplaySummaryConfig {
9095
+ /** Show all column summaries by default */
9096
+ showAllSummaries?: boolean;
9097
+ /** Per-column summary visibility overrides */
9098
+ columnVisibility?: ColumnSummaryVisibility[];
9099
+ }
9100
+ /**
9101
+ * Table visualization overrides
9102
+ * @group Visual Overrides
9103
+ */
9104
+ export interface TableOverrides {
9105
+ /** Per-column configurations (properties, conditional formatting) */
9106
+ columns?: TableColumn[];
9107
+ /** Table display properties (theme, density) */
9108
+ display?: TableDisplay;
9109
+ /** Summary/headline column visibility configuration */
9110
+ displaySummaryConfig?: DisplaySummaryConfig;
9111
+ /** Update mask paths for partial updates */
9112
+ updateMaskPaths?: string[];
9113
+ }
9114
+ /**
9115
+ * Visualization overrides to customize chart and table rendering
9116
+ * within embedded ThoughtSpot components.
9117
+ *
9118
+ * @group Visual Overrides
9119
+ * @example
9120
+ * ```js
9121
+ * const embed = new AppEmbed('#tsEmbed', {
9122
+ * visualOverrides: {
9123
+ * chart: {
9124
+ * legend: { show: true, position: 'bottom' },
9125
+ * columns: [{ name: 'Revenue', color: '#1f77b4' }],
9126
+ * },
9127
+ * table: {
9128
+ * display: { tableTheme: 'ZEBRA', tableContentDensity: 'COMPACT' },
9129
+ * },
9130
+ * },
9131
+ * });
9132
+ * ```
9133
+ */
9134
+ export interface VisualizationOverrides {
9135
+ /** Chart visualization overrides */
9136
+ chart?: ChartOverrides;
9137
+ /** Table visualization overrides */
9138
+ table?: TableOverrides;
9139
+ }
8716
9140
  /**
8717
9141
  * Enum for auth failure types.
8718
9142
  * This value is passed to the listener for {@link AuthStatus.FAILURE}.
@@ -9344,6 +9768,7 @@ declare class TsEmbed {
9344
9768
  * @returns
9345
9769
  */
9346
9770
  protected createEmbedEventResponder: (eventPort: MessagePort | void, eventType: EmbedEvent) => (payload: any) => void;
9771
+ private shouldSkipEvent;
9347
9772
  /**
9348
9773
  * Executes all registered event handlers for a particular event type
9349
9774
  * @param eventType The event type
@@ -9918,9 +10343,32 @@ export interface SearchViewConfig extends SearchLiveboardCommonViewConfig, Omit<
9918
10343
  * ```
9919
10344
  */
9920
10345
  focusSearchBarOnRender?: boolean;
10346
+ /**
10347
+ * Enable or disable Muze chart phase 1 GA
10348
+ *
10349
+ * Supported embed types: `SearchEmbed`
10350
+ * @version SDK: 1.49.0 | ThoughtSpot Cloud: 26.6.0.cl
10351
+ * @default false
10352
+ * @example
10353
+ * ```js
10354
+ * const embed = new SearchEmbed('#tsEmbed', {
10355
+ * ... // other embed view config
10356
+ * newChartsLibrary: true,
10357
+ * })
10358
+ * ```
10359
+ */
10360
+ newChartsLibrary?: boolean;
10361
+ /**
10362
+ * Visual overrides to customize the chart or table properties.
10363
+ * @version SDK: 1.49.0 | ThoughtSpot: 26.6.0.cl
10364
+ */
10365
+ visualOverrides?: VisualizationOverrides;
9921
10366
  }
9922
10367
  export interface SearchAppInitData extends DefaultAppInitData {
9923
10368
  searchOptions?: SearchOptions;
10369
+ embedParams?: {
10370
+ visualOverridesParams?: VisualizationOverrides | null;
10371
+ };
9924
10372
  }
9925
10373
  declare class SearchEmbed extends TsEmbed {
9926
10374
  /**
@@ -10418,6 +10866,7 @@ export interface ConversationViewConfig extends SpotterEmbedViewConfig {
10418
10866
  export interface SpotterAppInitData extends DefaultAppInitData {
10419
10867
  embedParams?: {
10420
10868
  spotterSidebarConfig?: SpotterSidebarViewConfig;
10869
+ visualOverridesParams?: VisualizationOverrides | null;
10421
10870
  };
10422
10871
  }
10423
10872
  declare class SpotterEmbed extends TsEmbed {
@@ -10987,7 +11436,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
10987
11436
  /**
10988
11437
  * Enables the 'what you see is what you get' PDF export for Liveboards. Each tab is rendered on a single page
10989
11438
  * following the exact UI layout, instead of splitting visualizations across multiple A4 pages.
10990
- * This feature is GA from version 26.5.0.cl and is enabled by default on embed deployments.
11439
+ * This feature is GA from version 26.5.0.cl. It is disabled by default in embed deployments.
10991
11440
  *
10992
11441
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`
10993
11442
  * @type {boolean}
@@ -11191,6 +11640,11 @@ export interface AppViewConfig extends AllEmbedViewConfig {
11191
11640
  * ```
11192
11641
  */
11193
11642
  enableLiveboardDataCache?: boolean;
11643
+ /**
11644
+ * Visual overrides to customize the chart or table properties.
11645
+ * @version SDK: 1.49.0 | ThoughtSpot: 26.6.0.cl
11646
+ */
11647
+ visualOverrides?: VisualizationOverrides;
11194
11648
  }
11195
11649
  /**
11196
11650
  * APP_INIT data shape for AppEmbed.
@@ -11638,7 +12092,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
11638
12092
  /**
11639
12093
  * Enables the 'what you see is what you get' PDF export for Liveboards. Each tab is rendered on a single page
11640
12094
  * following the exact UI layout, instead of splitting visualizations across multiple A4 pages.
11641
- * This feature is GA from version 26.5.0.cl and is enabled by default on embed deployments.
12095
+ * This feature is GA from version 26.5.0.cl. It is disabled by default in embed deployments.
11642
12096
  *
11643
12097
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`
11644
12098
  * @type {boolean}