@thoughtspot/visual-embed-sdk 1.47.1 → 1.47.3

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 (159) hide show
  1. package/cjs/package.json +3 -3
  2. package/cjs/src/embed/app.d.ts +19 -1
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js +7 -1
  5. package/cjs/src/embed/app.js.map +1 -1
  6. package/cjs/src/embed/app.spec.js +141 -0
  7. package/cjs/src/embed/app.spec.js.map +1 -1
  8. package/cjs/src/embed/conversation.d.ts +2 -1
  9. package/cjs/src/embed/conversation.d.ts.map +1 -1
  10. package/cjs/src/embed/conversation.js.map +1 -1
  11. package/cjs/src/embed/hostEventClient/contracts.d.ts +4 -1
  12. package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  13. package/cjs/src/embed/hostEventClient/host-event-client.spec.js +2 -2
  14. package/cjs/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  15. package/cjs/src/embed/liveboard.d.ts +13 -0
  16. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  17. package/cjs/src/embed/liveboard.js +7 -1
  18. package/cjs/src/embed/liveboard.js.map +1 -1
  19. package/cjs/src/embed/liveboard.spec.js +54 -0
  20. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  21. package/cjs/src/embed/search.d.ts +24 -1
  22. package/cjs/src/embed/search.d.ts.map +1 -1
  23. package/cjs/src/embed/search.js +15 -2
  24. package/cjs/src/embed/search.js.map +1 -1
  25. package/cjs/src/embed/search.spec.js +99 -0
  26. package/cjs/src/embed/search.spec.js.map +1 -1
  27. package/cjs/src/embed/spotter-utils.d.ts +3 -0
  28. package/cjs/src/embed/spotter-utils.d.ts.map +1 -1
  29. package/cjs/src/embed/spotter-utils.js +11 -3
  30. package/cjs/src/embed/spotter-utils.js.map +1 -1
  31. package/cjs/src/embed/spotter-utils.spec.js +51 -0
  32. package/cjs/src/embed/spotter-utils.spec.js.map +1 -1
  33. package/cjs/src/embed/ts-embed.d.ts +14 -1
  34. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  35. package/cjs/src/embed/ts-embed.js +29 -3
  36. package/cjs/src/embed/ts-embed.js.map +1 -1
  37. package/cjs/src/embed/ts-embed.spec.js +139 -0
  38. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  39. package/cjs/src/index.d.ts +2 -2
  40. package/cjs/src/index.d.ts.map +1 -1
  41. package/cjs/src/index.js +8 -1
  42. package/cjs/src/index.js.map +1 -1
  43. package/cjs/src/mixpanel-service.d.ts.map +1 -1
  44. package/cjs/src/mixpanel-service.js +2 -0
  45. package/cjs/src/mixpanel-service.js.map +1 -1
  46. package/cjs/src/mixpanel-service.spec.js +2 -0
  47. package/cjs/src/mixpanel-service.spec.js.map +1 -1
  48. package/cjs/src/test/test-utils.d.ts +1 -0
  49. package/cjs/src/test/test-utils.d.ts.map +1 -1
  50. package/cjs/src/test/test-utils.js +26 -1
  51. package/cjs/src/test/test-utils.js.map +1 -1
  52. package/cjs/src/types.d.ts +532 -6
  53. package/cjs/src/types.d.ts.map +1 -1
  54. package/cjs/src/types.js +225 -3
  55. package/cjs/src/types.js.map +1 -1
  56. package/dist/{index-CUgxBnPm.js → index-DZq20cR6.js} +1 -1
  57. package/dist/src/embed/app.d.ts +19 -1
  58. package/dist/src/embed/app.d.ts.map +1 -1
  59. package/dist/src/embed/conversation.d.ts +2 -1
  60. package/dist/src/embed/conversation.d.ts.map +1 -1
  61. package/dist/src/embed/hostEventClient/contracts.d.ts +4 -1
  62. package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  63. package/dist/src/embed/liveboard.d.ts +13 -0
  64. package/dist/src/embed/liveboard.d.ts.map +1 -1
  65. package/dist/src/embed/search.d.ts +24 -1
  66. package/dist/src/embed/search.d.ts.map +1 -1
  67. package/dist/src/embed/spotter-utils.d.ts +3 -0
  68. package/dist/src/embed/spotter-utils.d.ts.map +1 -1
  69. package/dist/src/embed/ts-embed.d.ts +14 -1
  70. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  71. package/dist/src/index.d.ts +2 -2
  72. package/dist/src/index.d.ts.map +1 -1
  73. package/dist/src/mixpanel-service.d.ts.map +1 -1
  74. package/dist/src/test/test-utils.d.ts +1 -0
  75. package/dist/src/test/test-utils.d.ts.map +1 -1
  76. package/dist/src/types.d.ts +532 -6
  77. package/dist/src/types.d.ts.map +1 -1
  78. package/dist/tsembed-react.es.js +299 -17
  79. package/dist/tsembed-react.js +298 -16
  80. package/dist/tsembed.es.js +300 -18
  81. package/dist/tsembed.js +298 -16
  82. package/dist/visual-embed-sdk-react-full.d.ts +572 -6
  83. package/dist/visual-embed-sdk-react.d.ts +572 -6
  84. package/dist/visual-embed-sdk.d.ts +600 -6
  85. package/lib/package.json +3 -3
  86. package/lib/src/embed/app.d.ts +19 -1
  87. package/lib/src/embed/app.d.ts.map +1 -1
  88. package/lib/src/embed/app.js +7 -1
  89. package/lib/src/embed/app.js.map +1 -1
  90. package/lib/src/embed/app.spec.js +142 -1
  91. package/lib/src/embed/app.spec.js.map +1 -1
  92. package/lib/src/embed/conversation.d.ts +2 -1
  93. package/lib/src/embed/conversation.d.ts.map +1 -1
  94. package/lib/src/embed/conversation.js.map +1 -1
  95. package/lib/src/embed/hostEventClient/contracts.d.ts +4 -1
  96. package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  97. package/lib/src/embed/hostEventClient/host-event-client.spec.js +2 -2
  98. package/lib/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  99. package/lib/src/embed/liveboard.d.ts +13 -0
  100. package/lib/src/embed/liveboard.d.ts.map +1 -1
  101. package/lib/src/embed/liveboard.js +7 -1
  102. package/lib/src/embed/liveboard.js.map +1 -1
  103. package/lib/src/embed/liveboard.spec.js +54 -0
  104. package/lib/src/embed/liveboard.spec.js.map +1 -1
  105. package/lib/src/embed/search.d.ts +24 -1
  106. package/lib/src/embed/search.d.ts.map +1 -1
  107. package/lib/src/embed/search.js +15 -2
  108. package/lib/src/embed/search.js.map +1 -1
  109. package/lib/src/embed/search.spec.js +100 -1
  110. package/lib/src/embed/search.spec.js.map +1 -1
  111. package/lib/src/embed/spotter-utils.d.ts +3 -0
  112. package/lib/src/embed/spotter-utils.d.ts.map +1 -1
  113. package/lib/src/embed/spotter-utils.js +11 -3
  114. package/lib/src/embed/spotter-utils.js.map +1 -1
  115. package/lib/src/embed/spotter-utils.spec.js +51 -0
  116. package/lib/src/embed/spotter-utils.spec.js.map +1 -1
  117. package/lib/src/embed/ts-embed.d.ts +14 -1
  118. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  119. package/lib/src/embed/ts-embed.js +28 -2
  120. package/lib/src/embed/ts-embed.js.map +1 -1
  121. package/lib/src/embed/ts-embed.spec.js +139 -0
  122. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  123. package/lib/src/index.d.ts +2 -2
  124. package/lib/src/index.d.ts.map +1 -1
  125. package/lib/src/index.js +2 -2
  126. package/lib/src/index.js.map +1 -1
  127. package/lib/src/mixpanel-service.d.ts.map +1 -1
  128. package/lib/src/mixpanel-service.js +2 -0
  129. package/lib/src/mixpanel-service.js.map +1 -1
  130. package/lib/src/mixpanel-service.spec.js +2 -0
  131. package/lib/src/mixpanel-service.spec.js.map +1 -1
  132. package/lib/src/test/test-utils.d.ts +1 -0
  133. package/lib/src/test/test-utils.d.ts.map +1 -1
  134. package/lib/src/test/test-utils.js +25 -1
  135. package/lib/src/test/test-utils.js.map +1 -1
  136. package/lib/src/types.d.ts +532 -6
  137. package/lib/src/types.d.ts.map +1 -1
  138. package/lib/src/types.js +224 -2
  139. package/lib/src/types.js.map +1 -1
  140. package/lib/src/visual-embed-sdk.d.ts +600 -6
  141. package/package.json +3 -3
  142. package/src/embed/app.spec.ts +179 -0
  143. package/src/embed/app.ts +29 -0
  144. package/src/embed/conversation.ts +2 -1
  145. package/src/embed/hostEventClient/contracts.ts +2 -1
  146. package/src/embed/hostEventClient/host-event-client.spec.ts +2 -2
  147. package/src/embed/liveboard.spec.ts +73 -0
  148. package/src/embed/liveboard.ts +23 -0
  149. package/src/embed/search.spec.ts +118 -0
  150. package/src/embed/search.ts +43 -1
  151. package/src/embed/spotter-utils.spec.ts +52 -0
  152. package/src/embed/spotter-utils.ts +19 -3
  153. package/src/embed/ts-embed.spec.ts +185 -0
  154. package/src/embed/ts-embed.ts +29 -3
  155. package/src/index.ts +16 -0
  156. package/src/mixpanel-service.spec.ts +2 -0
  157. package/src/mixpanel-service.ts +2 -0
  158. package/src/test/test-utils.ts +33 -1
  159. package/src/types.ts +561 -2
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.47.1 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.47.3 */
2
2
  'use client';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
@@ -1985,6 +1985,53 @@
1985
1985
  * @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
1986
1986
  */
1987
1987
  EmbedEvent["RefreshAuthToken"] = "RefreshAuthToken";
1988
+ /**
1989
+ * Triggered whenever the page context changes, returning the current context along with the navigation stack.
1990
+ * @example
1991
+ * ```js
1992
+ * embed.on(EmbedEvent.EmbedPageContextChanged, (payload) => {
1993
+ * console.log('payload', payload);
1994
+ * })
1995
+ * ```
1996
+ * @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
1997
+ */
1998
+ EmbedEvent["EmbedPageContextChanged"] = "EmbedPageContextChanged";
1999
+ /**
2000
+ * Represents a special embed event that is triggered whenever any host event is subscribed.
2001
+ *
2002
+ * You can listen to this event when you need to dispatch a host event during load or render,
2003
+ * particularly in situations where timing issues may occur.
2004
+ *
2005
+ * @example
2006
+ * ```js
2007
+ * embed.on(`${HostEvent.Save} Subscribed`, () => {
2008
+ * // make action
2009
+ * });
2010
+ * ```
2011
+ *
2012
+ * @example
2013
+ * ```js
2014
+ * embed.on(subscribedEvent(HostEvent.Save), () => {
2015
+ * // make action
2016
+ * });
2017
+ * ```
2018
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.4.0.cl
2019
+ */
2020
+ EmbedEvent["Subscribed"] = "Subscribed";
2021
+ /**
2022
+ * Emitted when a user clicks the **Send Test Email** button in the
2023
+ * Liveboard schedule modal. Requires `isSendNowLiveboardSchedulingEnabled`
2024
+ * to be enabled.
2025
+ * @example
2026
+ * ```js
2027
+ * liveboardEmbed.on(EmbedEvent.SendTestScheduleEmail, (payload) => {
2028
+ * console.log('Send test email', payload);
2029
+ * // payload: { liveboardId: string, sendToSelf: boolean }
2030
+ * })
2031
+ * ```
2032
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
2033
+ */
2034
+ EmbedEvent["SendTestScheduleEmail"] = "sendTestScheduleEmail";
1988
2035
  })(exports.EmbedEvent || (exports.EmbedEvent = {}));
1989
2036
  /**
1990
2037
  * Event types that can be triggered by the host application
@@ -3684,7 +3731,8 @@
3684
3731
  * ```js
3685
3732
  * // Get parameters from liveboard context
3686
3733
  * import { ContextType } from '@thoughtspot/visual-embed-sdk';
3687
- * liveboardEmbed.trigger(HostEvent.GetParameters, {}, ContextType.Liveboard).then((parameters) => {
3734
+ * liveboardEmbed.trigger(HostEvent.GetParameters, {},
3735
+ * ContextType.Liveboard).then((parameters) => {
3688
3736
  * console.log('parameters', parameters);
3689
3737
  * });
3690
3738
  * ```
@@ -4036,6 +4084,26 @@
4036
4084
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
4037
4085
  */
4038
4086
  HostEvent["GetPageContext"] = "GetPageContext";
4087
+ /**
4088
+ * Trigger the **Send Test Email** action in the Liveboard schedule modal.
4089
+ * Sends a test schedule email to self or all recipients.
4090
+ * Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
4091
+ * @example
4092
+ * ```js
4093
+ * liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
4094
+ * sendToSelf: true,
4095
+ * })
4096
+ * ```
4097
+ * @example
4098
+ * ```js
4099
+ * // Send to all recipients
4100
+ * liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
4101
+ * sendToSelf: false,
4102
+ * })
4103
+ * ```
4104
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
4105
+ */
4106
+ HostEvent["SendTestScheduleEmail"] = "sendTestScheduleEmail";
4039
4107
  })(exports.HostEvent || (exports.HostEvent = {}));
4040
4108
  /**
4041
4109
  * The different visual modes that the data sources panel within
@@ -4135,6 +4203,7 @@
4135
4203
  Param["ShowLiveboardTitle"] = "showLiveboardTitle";
4136
4204
  Param["ShowMaskedFilterChip"] = "showMaskedFilterChip";
4137
4205
  Param["IsLiveboardMasterpiecesEnabled"] = "isLiveboardMasterpiecesEnabled";
4206
+ Param["EnableNewChartLibrary"] = "muzeChartPhase1EnabledGA";
4138
4207
  Param["HiddenTabs"] = "hideTabs";
4139
4208
  Param["VisibleTabs"] = "visibleTabs";
4140
4209
  Param["HideTabPanel"] = "hideTabPanel";
@@ -4190,6 +4259,7 @@
4190
4259
  Param["IsWYSIWYGLiveboardPDFEnabled"] = "isWYSIWYGLiveboardPDFEnabled";
4191
4260
  Param["isLiveboardXLSXCSVDownloadEnabled"] = "isLiveboardXLSXCSVDownloadEnabled";
4192
4261
  Param["isGranularXLSXCSVSchedulesEnabled"] = "isGranularXLSXCSVSchedulesEnabled";
4262
+ Param["isSendNowLiveboardSchedulingEnabled"] = "isSendNowLiveboardSchedulingEnabled";
4193
4263
  Param["isCentralizedLiveboardFilterUXEnabled"] = "isCentralizedLiveboardFilterUXEnabled";
4194
4264
  Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
4195
4265
  Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
@@ -4209,6 +4279,7 @@
4209
4279
  Param["HideToolResponseCardBranding"] = "hideToolResponseCardBranding";
4210
4280
  Param["ToolResponseCardBrandingLabel"] = "toolResponseCardBrandingLabel";
4211
4281
  Param["EnableHomepageAnnouncement"] = "enableHomepageAnnouncement";
4282
+ Param["EnableLiveboardDataCache"] = "enableLiveboardDataCache";
4212
4283
  })(Param || (Param = {}));
4213
4284
  /**
4214
4285
  * ThoughtSpot application pages include actions and menu commands
@@ -4530,7 +4601,7 @@
4530
4601
  * ```js
4531
4602
  * disabledActions: [Action.DownloadLiveboard]
4532
4603
  * ```
4533
- * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
4604
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
4534
4605
  */
4535
4606
  Action["DownloadLiveboard"] = "downloadLiveboard";
4536
4607
  /**
@@ -4543,6 +4614,26 @@
4543
4614
  * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
4544
4615
  */
4545
4616
  Action["DownloadLiveboardAsContinuousPDF"] = "downloadLiveboardAsContinuousPDF";
4617
+ /**
4618
+ * The **Download Liveboard as XLSX** menu action on a Liveboard.
4619
+ * Allows downloading the entire Liveboard as an XLSX file.
4620
+ * @example
4621
+ * ```js
4622
+ * disabledActions: [Action.DownloadLiveboardAsXlsx]
4623
+ * ```
4624
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
4625
+ */
4626
+ Action["DownloadLiveboardAsXlsx"] = "downloadLiveboardAsXlsx";
4627
+ /**
4628
+ * The **Download Liveboard as CSV** menu action on a Liveboard.
4629
+ * Allows downloading the entire Liveboard as a CSV file.
4630
+ * @example
4631
+ * ```js
4632
+ * disabledActions: [Action.DownloadLiveboardAsCsv]
4633
+ * ```
4634
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
4635
+ */
4636
+ Action["DownloadLiveboardAsCsv"] = "downloadLiveboardAsCsv";
4546
4637
  /**
4547
4638
  * @hidden
4548
4639
  */
@@ -5805,6 +5896,18 @@
5805
5896
  * @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
5806
5897
  */
5807
5898
  Action["IncludeCurrentPeriod"] = "includeCurrentPeriod";
5899
+ /**
5900
+ * The **Send Test Email** button in the Liveboard schedule modal.
5901
+ * Allows sending a test schedule email to self or all recipients.
5902
+ * Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
5903
+ * @example
5904
+ * ```js
5905
+ * disabledActions: [Action.SendTestScheduleEmail]
5906
+ * hiddenActions: [Action.SendTestScheduleEmail]
5907
+ * ```
5908
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
5909
+ */
5910
+ Action["SendTestScheduleEmail"] = "sendTestScheduleEmail";
5808
5911
  })(exports.Action || (exports.Action = {}));
5809
5912
  var PrefetchFeatures;
5810
5913
  (function (PrefetchFeatures) {
@@ -6149,7 +6252,126 @@
6149
6252
  * The apis that are use to get the data for the liveboard
6150
6253
  */
6151
6254
  InterceptedApiType["LiveboardData"] = "LiveboardData";
6152
- })(InterceptedApiType || (InterceptedApiType = {}));
6255
+ })(InterceptedApiType || (InterceptedApiType = {}));
6256
+ /**
6257
+ * Data label filter operators
6258
+ * @group Visual Overrides
6259
+ */
6260
+ var DataLabelFilterOperator;
6261
+ (function (DataLabelFilterOperator) {
6262
+ /** Greater than */
6263
+ DataLabelFilterOperator["GreaterThan"] = "GREATER_THAN";
6264
+ /** Less than */
6265
+ DataLabelFilterOperator["LessThan"] = "LESS_THAN";
6266
+ /** Greater than or equal to */
6267
+ DataLabelFilterOperator["GreaterThanOrEqualTo"] = "GREATER_THAN_OR_EQUAL_TO";
6268
+ /** Less than or equal to */
6269
+ DataLabelFilterOperator["LessThanOrEqualTo"] = "LESS_THAN_OR_EQUAL_TO";
6270
+ /** Equal to */
6271
+ DataLabelFilterOperator["EqualTo"] = "EQUAL_TO";
6272
+ /** Not equal to */
6273
+ DataLabelFilterOperator["NotEqualTo"] = "NOT_EQUAL_TO";
6274
+ })(DataLabelFilterOperator || (DataLabelFilterOperator = {}));
6275
+ /**
6276
+ * Conditional formatting operators
6277
+ * @group Visual Overrides
6278
+ */
6279
+ var ConditionalFormattingOperator;
6280
+ (function (ConditionalFormattingOperator) {
6281
+ /** Is equal to */
6282
+ ConditionalFormattingOperator["Is"] = "IS";
6283
+ /** Is not equal to */
6284
+ ConditionalFormattingOperator["IsNot"] = "IS_NOT";
6285
+ /** Contains */
6286
+ ConditionalFormattingOperator["Contains"] = "CONTAINS";
6287
+ /** Does not contain */
6288
+ ConditionalFormattingOperator["DoesNotContain"] = "DOES_NOT_CONTAIN";
6289
+ /** Starts with */
6290
+ ConditionalFormattingOperator["StartsWith"] = "STARTS_WITH";
6291
+ /** Ends with */
6292
+ ConditionalFormattingOperator["EndsWith"] = "ENDS_WITH";
6293
+ /** Greater than */
6294
+ ConditionalFormattingOperator["GreaterThan"] = "GREATER_THAN";
6295
+ /** Less than */
6296
+ ConditionalFormattingOperator["LessThan"] = "LESS_THAN";
6297
+ /** Greater than or equal to */
6298
+ ConditionalFormattingOperator["GreaterThanEqualTo"] = "GREATER_THAN_EQUAL_TO";
6299
+ /** Less than or equal to */
6300
+ ConditionalFormattingOperator["LessThanEqualTo"] = "LESS_THAN_EQUAL_TO";
6301
+ /** Equal to */
6302
+ ConditionalFormattingOperator["EqualTo"] = "EQUAL_TO";
6303
+ /** Not equal to */
6304
+ ConditionalFormattingOperator["NotEqualTo"] = "NOT_EQUAL_TO";
6305
+ /** Is between */
6306
+ ConditionalFormattingOperator["IsBetween"] = "IS_BETWEEN";
6307
+ /** Is null */
6308
+ ConditionalFormattingOperator["IsNull"] = "IS_NULL";
6309
+ /** Is not null */
6310
+ ConditionalFormattingOperator["IsNotNull"] = "IS_NOT_NULL";
6311
+ })(ConditionalFormattingOperator || (ConditionalFormattingOperator = {}));
6312
+ /**
6313
+ * Background format types for conditional formatting
6314
+ * @group Visual Overrides
6315
+ */
6316
+ var BackgroundFormatType;
6317
+ (function (BackgroundFormatType) {
6318
+ /** Solid color background */
6319
+ BackgroundFormatType["Solid"] = "SOLID";
6320
+ /** Gradient background */
6321
+ BackgroundFormatType["Gradient"] = "GRADIENT";
6322
+ })(BackgroundFormatType || (BackgroundFormatType = {}));
6323
+ /**
6324
+ * Comparison types for conditional formatting
6325
+ * @group Visual Overrides
6326
+ */
6327
+ var ConditionalFormattingComparisonType;
6328
+ (function (ConditionalFormattingComparisonType) {
6329
+ /** Value-based comparison */
6330
+ ConditionalFormattingComparisonType["ValueBased"] = "VALUE_BASED";
6331
+ /** Column-based comparison */
6332
+ ConditionalFormattingComparisonType["ColumnBased"] = "COLUMN_BASED";
6333
+ /** Parameter-based comparison */
6334
+ ConditionalFormattingComparisonType["ParameterBased"] = "PARAMETER_BASED";
6335
+ })(ConditionalFormattingComparisonType || (ConditionalFormattingComparisonType = {}));
6336
+ /**
6337
+ * Legend position options
6338
+ * @group Visual Overrides
6339
+ */
6340
+ var LegendPosition;
6341
+ (function (LegendPosition) {
6342
+ /** Position legend at the top */
6343
+ LegendPosition["Top"] = "top";
6344
+ /** Position legend at the bottom */
6345
+ LegendPosition["Bottom"] = "bottom";
6346
+ /** Position legend on the left */
6347
+ LegendPosition["Left"] = "left";
6348
+ /** Position legend on the right */
6349
+ LegendPosition["Right"] = "right";
6350
+ })(LegendPosition || (LegendPosition = {}));
6351
+ /**
6352
+ * Table theme options
6353
+ * @group Visual Overrides
6354
+ */
6355
+ var TableTheme;
6356
+ (function (TableTheme) {
6357
+ /** Outline theme */
6358
+ TableTheme["Outline"] = "OUTLINE";
6359
+ /** Row theme */
6360
+ TableTheme["Row"] = "ROW";
6361
+ /** Zebra theme */
6362
+ TableTheme["Zebra"] = "ZEBRA";
6363
+ })(TableTheme || (TableTheme = {}));
6364
+ /**
6365
+ * Table content density options
6366
+ * @group Visual Overrides
6367
+ */
6368
+ var TableContentDensity;
6369
+ (function (TableContentDensity) {
6370
+ /** Regular density */
6371
+ TableContentDensity["Regular"] = "REGULAR";
6372
+ /** Compact density */
6373
+ TableContentDensity["Compact"] = "COMPACT";
6374
+ })(TableContentDensity || (TableContentDensity = {}));
6153
6375
 
6154
6376
  const logFunctions = {
6155
6377
  [exports.LogLevel.SILENT]: () => undefined,
@@ -7700,7 +7922,7 @@
7700
7922
  * @name has
7701
7923
  * @memberOf SetCache
7702
7924
  * @param {*} value The value to search for.
7703
- * @returns {number} Returns `true` if `value` is found, else `false`.
7925
+ * @returns {boolean} Returns `true` if `value` is found, else `false`.
7704
7926
  */
7705
7927
  function setCacheHas(value) {
7706
7928
  return this.__data__.has(value);
@@ -11069,7 +11291,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
11069
11291
  if (isArray_1(iteratee)) {
11070
11292
  return function(value) {
11071
11293
  return _baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
11072
- }
11294
+ };
11073
11295
  }
11074
11296
  return iteratee;
11075
11297
  });
@@ -17723,6 +17945,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17723
17945
  default: mixpanel_cjs
17724
17946
  }, [mixpanel_cjs]);
17725
17947
 
17948
+ var version="1.47.3";
17949
+
17726
17950
  // Needed to avoid error in CJS builds on some bundlers.
17727
17951
  const mixpanelLib = mixpanel_cjs || mixpanel$1;
17728
17952
  let mixpanelInstance;
@@ -17789,6 +18013,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17789
18013
  clusterName: sessionInfo.clusterName,
17790
18014
  releaseVersion: sessionInfo.releaseVersion,
17791
18015
  hostAppUrl: ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.host) || '',
18016
+ sdkVersion: version,
17792
18017
  });
17793
18018
  isMixpanelInitialized = true;
17794
18019
  emptyQueue();
@@ -19287,8 +19512,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19287
19512
  return eventData;
19288
19513
  }
19289
19514
 
19290
- var version$1="1.47.1";var pkgInfo = {version:version$1};
19291
-
19292
19515
  function isValidUpdateFiltersPayload(payload) {
19293
19516
  if (!payload)
19294
19517
  return false;
@@ -19699,7 +19922,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19699
19922
  * @summary Base classes
19700
19923
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
19701
19924
  */
19702
- const { version } = pkgInfo;
19703
19925
  /**
19704
19926
  * Global prefix for all ThoughtSpot postHash Params.
19705
19927
  */
@@ -20614,6 +20836,17 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20614
20836
  setIFrameHeight(height) {
20615
20837
  this.iFrame.style.height = getCssDimension(height);
20616
20838
  }
20839
+ shouldSkipEvent(eventType, data) {
20840
+ var _a, _b, _c;
20841
+ const errorType = (_a = data === null || data === void 0 ? void 0 : data.errorType) !== null && _a !== void 0 ? _a : (_b = data === null || data === void 0 ? void 0 : data.data) === null || _b === void 0 ? void 0 : _b.code;
20842
+ if (eventType === exports.EmbedEvent.Error
20843
+ && errorType === EmbedErrorCodes.HOST_EVENT_VALIDATION
20844
+ && (!getHostEventsConfig(this.viewConfig).useHostEventsV2 || getHostEventsConfig(this.viewConfig).shouldBypassPayloadValidation)) {
20845
+ logger$3.warn(`Host Event Validation failed: ${(_c = data === null || data === void 0 ? void 0 : data.data) === null || _c === void 0 ? void 0 : _c.message}`);
20846
+ return true;
20847
+ }
20848
+ return false;
20849
+ }
20617
20850
  /**
20618
20851
  * Executes all registered event handlers for a particular event type
20619
20852
  * @param eventType The event type
@@ -20621,6 +20854,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20621
20854
  * @param eventPort The event Port for a specific MessageChannel
20622
20855
  */
20623
20856
  executeCallbacks(eventType, data, eventPort) {
20857
+ if (this.shouldSkipEvent(eventType, data))
20858
+ return;
20624
20859
  const eventHandlers = this.eventHandlerMap.get(eventType) || [];
20625
20860
  const allHandlers = this.eventHandlerMap.get(exports.EmbedEvent.ALL) || [];
20626
20861
  const callbacks = [...eventHandlers, ...allHandlers];
@@ -20933,6 +21168,20 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20933
21168
  });
20934
21169
  });
20935
21170
  }
21171
+ /**
21172
+ * Generates the event name for a "Subscribed" embed event.
21173
+ *
21174
+ * This helper appends the "Subscribed" suffix to a given host or action event,
21175
+ * allowing you to listen for subscription lifecycle events in a consistent format.
21176
+ *
21177
+ * @param eventName - The host or action event to generate the subscribed event name for.
21178
+ * @returns The formatted event name (e.g., "Save Subscribed").
21179
+ *
21180
+ * @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
21181
+ */
21182
+ subscribedEvent(eventName) {
21183
+ return `${eventName} ${exports.EmbedEvent.Subscribed}`;
21184
+ }
20936
21185
  /**
20937
21186
  * Creates the preRender shell
20938
21187
  * @param showPreRenderByDefault - Show the preRender after render, hidden by default
@@ -21422,11 +21671,21 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21422
21671
  }
21423
21672
  async getAppInitData() {
21424
21673
  const defaultAppInitData = await super.getAppInitData();
21425
- return { ...defaultAppInitData, ...this.getSearchInitData() };
21674
+ const result = {
21675
+ ...defaultAppInitData,
21676
+ ...this.getSearchInitData(),
21677
+ };
21678
+ if (this.viewConfig.visualOverrides) {
21679
+ result.embedParams = {
21680
+ ...(defaultAppInitData.embedParams || {}),
21681
+ visualOverridesParams: this.viewConfig.visualOverrides,
21682
+ };
21683
+ }
21684
+ return result;
21426
21685
  }
21427
21686
  getEmbedParamsObject() {
21428
21687
  var _a;
21429
- const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
21688
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, isThisPeriodInDateFiltersEnabled, newChartsLibrary, } = this.viewConfig;
21430
21689
  const queryParams = this.getBaseQueryParams();
21431
21690
  queryParams[Param.HideActions] = [
21432
21691
  ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
@@ -21464,6 +21723,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21464
21723
  if (isThisPeriodInDateFiltersEnabled !== undefined) {
21465
21724
  queryParams[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
21466
21725
  }
21726
+ if (newChartsLibrary !== undefined) {
21727
+ queryParams[Param.EnableNewChartLibrary] = newChartsLibrary;
21728
+ }
21467
21729
  queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
21468
21730
  queryParams[Param.DataSourceMode] = this.getDataSourceMode();
21469
21731
  queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;
@@ -21540,14 +21802,21 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21540
21802
  ? params.spotterSidebarConfigValue
21541
21803
  : params.standaloneValue);
21542
21804
  function buildSpotterSidebarAppInitData(defaultAppInitData, viewConfig, handleError) {
21543
- const { spotterSidebarConfig, enablePastConversationsSidebar } = viewConfig;
21805
+ const { spotterSidebarConfig, enablePastConversationsSidebar, visualOverrides } = viewConfig;
21544
21806
  const resolvedEnablePastConversations = resolveEnablePastConversationsSidebar({
21545
21807
  spotterSidebarConfigValue: spotterSidebarConfig === null || spotterSidebarConfig === void 0 ? void 0 : spotterSidebarConfig.enablePastConversationsSidebar,
21546
21808
  standaloneValue: enablePastConversationsSidebar,
21547
21809
  });
21548
21810
  const hasConfig = spotterSidebarConfig || resolvedEnablePastConversations !== undefined;
21549
- if (!hasConfig)
21550
- return defaultAppInitData;
21811
+ if (!hasConfig) {
21812
+ if (visualOverrides === undefined) {
21813
+ return defaultAppInitData;
21814
+ }
21815
+ return {
21816
+ ...defaultAppInitData,
21817
+ embedParams: { visualOverridesParams: visualOverrides },
21818
+ };
21819
+ }
21551
21820
  const resolvedSidebarConfig = {
21552
21821
  ...spotterSidebarConfig,
21553
21822
  ...(resolvedEnablePastConversations !== undefined && {
@@ -21571,6 +21840,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21571
21840
  embedParams: {
21572
21841
  ...(defaultAppInitData.embedParams || {}),
21573
21842
  spotterSidebarConfig: resolvedSidebarConfig,
21843
+ ...(visualOverrides !== undefined ? { visualOverridesParams: visualOverrides } : {}),
21574
21844
  },
21575
21845
  };
21576
21846
  }
@@ -21781,7 +22051,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21781
22051
  * embedded Liveboard or visualization.
21782
22052
  */
21783
22053
  getEmbedParams() {
21784
- const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement = false, isContinuousLiveboardPDFEnabled, } = this.viewConfig;
22054
+ const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, newChartsLibrary, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement = false, isContinuousLiveboardPDFEnabled, enableLiveboardDataCache, } = this.viewConfig;
21785
22055
  let params = {};
21786
22056
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
21787
22057
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -21792,6 +22062,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21792
22062
  params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
21793
22063
  params[Param.ShowMaskedFilterChip] = showMaskedFilterChip;
21794
22064
  params[Param.IsLiveboardMasterpiecesEnabled] = isLiveboardMasterpiecesEnabled;
22065
+ if (newChartsLibrary !== undefined) {
22066
+ params[Param.EnableNewChartLibrary] = newChartsLibrary;
22067
+ }
21795
22068
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
21796
22069
  params[Param.IsFullAppEmbed] = true;
21797
22070
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
@@ -21889,6 +22162,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21889
22162
  params[Param.IsWYSIWYGLiveboardPDFEnabled] = isContinuousLiveboardPDFEnabled;
21890
22163
  }
21891
22164
  this.defaultHeight = minimumHeight || this.defaultHeight;
22165
+ if (enableLiveboardDataCache !== undefined) {
22166
+ params[Param.EnableLiveboardDataCache] = enableLiveboardDataCache;
22167
+ }
21892
22168
  params[Param.DataPanelV2Enabled] = dataPanelV2;
21893
22169
  params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
21894
22170
  params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
@@ -22246,7 +22522,7 @@ query GetEurekaVizSnapshots(
22246
22522
  getEmbedParamsObject() {
22247
22523
  let params = {};
22248
22524
  params = this.getBaseQueryParams(params);
22249
- const { enableVizTransformations, fullHeight, defaultHeight, minimumHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, isEnhancedFilterInteractivityEnabled = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, showSpotterLimitations, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, isThisPeriodInDateFiltersEnabled, isContinuousLiveboardPDFEnabled, } = this.viewConfig;
22525
+ const { enableVizTransformations, fullHeight, defaultHeight, minimumHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, newChartsLibrary, isEnhancedFilterInteractivityEnabled = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, showSpotterLimitations, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, isThisPeriodInDateFiltersEnabled, isContinuousLiveboardPDFEnabled, enableLiveboardDataCache, } = this.viewConfig;
22250
22526
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
22251
22527
  || this.viewConfig.preventPinboardFilterRemoval;
22252
22528
  if (fullHeight === true) {
@@ -22341,6 +22617,12 @@ query GetEurekaVizSnapshots(
22341
22617
  if (isContinuousLiveboardPDFEnabled !== undefined) {
22342
22618
  params[Param.IsWYSIWYGLiveboardPDFEnabled] = isContinuousLiveboardPDFEnabled;
22343
22619
  }
22620
+ if (enableLiveboardDataCache !== undefined) {
22621
+ params[Param.EnableLiveboardDataCache] = enableLiveboardDataCache;
22622
+ }
22623
+ if (newChartsLibrary !== undefined) {
22624
+ params[Param.EnableNewChartLibrary] = newChartsLibrary;
22625
+ }
22344
22626
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
22345
22627
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
22346
22628
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;