@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
package/dist/tsembed.js CHANGED
@@ -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) :
@@ -1801,6 +1801,53 @@
1801
1801
  * @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
1802
1802
  */
1803
1803
  EmbedEvent["RefreshAuthToken"] = "RefreshAuthToken";
1804
+ /**
1805
+ * Triggered whenever the page context changes, returning the current context along with the navigation stack.
1806
+ * @example
1807
+ * ```js
1808
+ * embed.on(EmbedEvent.EmbedPageContextChanged, (payload) => {
1809
+ * console.log('payload', payload);
1810
+ * })
1811
+ * ```
1812
+ * @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
1813
+ */
1814
+ EmbedEvent["EmbedPageContextChanged"] = "EmbedPageContextChanged";
1815
+ /**
1816
+ * Represents a special embed event that is triggered whenever any host event is subscribed.
1817
+ *
1818
+ * You can listen to this event when you need to dispatch a host event during load or render,
1819
+ * particularly in situations where timing issues may occur.
1820
+ *
1821
+ * @example
1822
+ * ```js
1823
+ * embed.on(`${HostEvent.Save} Subscribed`, () => {
1824
+ * // make action
1825
+ * });
1826
+ * ```
1827
+ *
1828
+ * @example
1829
+ * ```js
1830
+ * embed.on(subscribedEvent(HostEvent.Save), () => {
1831
+ * // make action
1832
+ * });
1833
+ * ```
1834
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.4.0.cl
1835
+ */
1836
+ EmbedEvent["Subscribed"] = "Subscribed";
1837
+ /**
1838
+ * Emitted when a user clicks the **Send Test Email** button in the
1839
+ * Liveboard schedule modal. Requires `isSendNowLiveboardSchedulingEnabled`
1840
+ * to be enabled.
1841
+ * @example
1842
+ * ```js
1843
+ * liveboardEmbed.on(EmbedEvent.SendTestScheduleEmail, (payload) => {
1844
+ * console.log('Send test email', payload);
1845
+ * // payload: { liveboardId: string, sendToSelf: boolean }
1846
+ * })
1847
+ * ```
1848
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
1849
+ */
1850
+ EmbedEvent["SendTestScheduleEmail"] = "sendTestScheduleEmail";
1804
1851
  })(exports.EmbedEvent || (exports.EmbedEvent = {}));
1805
1852
  /**
1806
1853
  * Event types that can be triggered by the host application
@@ -3500,7 +3547,8 @@
3500
3547
  * ```js
3501
3548
  * // Get parameters from liveboard context
3502
3549
  * import { ContextType } from '@thoughtspot/visual-embed-sdk';
3503
- * liveboardEmbed.trigger(HostEvent.GetParameters, {}, ContextType.Liveboard).then((parameters) => {
3550
+ * liveboardEmbed.trigger(HostEvent.GetParameters, {},
3551
+ * ContextType.Liveboard).then((parameters) => {
3504
3552
  * console.log('parameters', parameters);
3505
3553
  * });
3506
3554
  * ```
@@ -3852,6 +3900,26 @@
3852
3900
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
3853
3901
  */
3854
3902
  HostEvent["GetPageContext"] = "GetPageContext";
3903
+ /**
3904
+ * Trigger the **Send Test Email** action in the Liveboard schedule modal.
3905
+ * Sends a test schedule email to self or all recipients.
3906
+ * Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
3907
+ * @example
3908
+ * ```js
3909
+ * liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
3910
+ * sendToSelf: true,
3911
+ * })
3912
+ * ```
3913
+ * @example
3914
+ * ```js
3915
+ * // Send to all recipients
3916
+ * liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
3917
+ * sendToSelf: false,
3918
+ * })
3919
+ * ```
3920
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
3921
+ */
3922
+ HostEvent["SendTestScheduleEmail"] = "sendTestScheduleEmail";
3855
3923
  })(exports.HostEvent || (exports.HostEvent = {}));
3856
3924
  /**
3857
3925
  * The different visual modes that the data sources panel within
@@ -3951,6 +4019,7 @@
3951
4019
  Param["ShowLiveboardTitle"] = "showLiveboardTitle";
3952
4020
  Param["ShowMaskedFilterChip"] = "showMaskedFilterChip";
3953
4021
  Param["IsLiveboardMasterpiecesEnabled"] = "isLiveboardMasterpiecesEnabled";
4022
+ Param["EnableNewChartLibrary"] = "muzeChartPhase1EnabledGA";
3954
4023
  Param["HiddenTabs"] = "hideTabs";
3955
4024
  Param["VisibleTabs"] = "visibleTabs";
3956
4025
  Param["HideTabPanel"] = "hideTabPanel";
@@ -4006,6 +4075,7 @@
4006
4075
  Param["IsWYSIWYGLiveboardPDFEnabled"] = "isWYSIWYGLiveboardPDFEnabled";
4007
4076
  Param["isLiveboardXLSXCSVDownloadEnabled"] = "isLiveboardXLSXCSVDownloadEnabled";
4008
4077
  Param["isGranularXLSXCSVSchedulesEnabled"] = "isGranularXLSXCSVSchedulesEnabled";
4078
+ Param["isSendNowLiveboardSchedulingEnabled"] = "isSendNowLiveboardSchedulingEnabled";
4009
4079
  Param["isCentralizedLiveboardFilterUXEnabled"] = "isCentralizedLiveboardFilterUXEnabled";
4010
4080
  Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
4011
4081
  Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
@@ -4025,6 +4095,7 @@
4025
4095
  Param["HideToolResponseCardBranding"] = "hideToolResponseCardBranding";
4026
4096
  Param["ToolResponseCardBrandingLabel"] = "toolResponseCardBrandingLabel";
4027
4097
  Param["EnableHomepageAnnouncement"] = "enableHomepageAnnouncement";
4098
+ Param["EnableLiveboardDataCache"] = "enableLiveboardDataCache";
4028
4099
  })(Param || (Param = {}));
4029
4100
  /**
4030
4101
  * ThoughtSpot application pages include actions and menu commands
@@ -4346,7 +4417,7 @@
4346
4417
  * ```js
4347
4418
  * disabledActions: [Action.DownloadLiveboard]
4348
4419
  * ```
4349
- * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
4420
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
4350
4421
  */
4351
4422
  Action["DownloadLiveboard"] = "downloadLiveboard";
4352
4423
  /**
@@ -4359,6 +4430,26 @@
4359
4430
  * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
4360
4431
  */
4361
4432
  Action["DownloadLiveboardAsContinuousPDF"] = "downloadLiveboardAsContinuousPDF";
4433
+ /**
4434
+ * The **Download Liveboard as XLSX** menu action on a Liveboard.
4435
+ * Allows downloading the entire Liveboard as an XLSX file.
4436
+ * @example
4437
+ * ```js
4438
+ * disabledActions: [Action.DownloadLiveboardAsXlsx]
4439
+ * ```
4440
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
4441
+ */
4442
+ Action["DownloadLiveboardAsXlsx"] = "downloadLiveboardAsXlsx";
4443
+ /**
4444
+ * The **Download Liveboard as CSV** menu action on a Liveboard.
4445
+ * Allows downloading the entire Liveboard as a CSV file.
4446
+ * @example
4447
+ * ```js
4448
+ * disabledActions: [Action.DownloadLiveboardAsCsv]
4449
+ * ```
4450
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
4451
+ */
4452
+ Action["DownloadLiveboardAsCsv"] = "downloadLiveboardAsCsv";
4362
4453
  /**
4363
4454
  * @hidden
4364
4455
  */
@@ -5621,6 +5712,18 @@
5621
5712
  * @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
5622
5713
  */
5623
5714
  Action["IncludeCurrentPeriod"] = "includeCurrentPeriod";
5715
+ /**
5716
+ * The **Send Test Email** button in the Liveboard schedule modal.
5717
+ * Allows sending a test schedule email to self or all recipients.
5718
+ * Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
5719
+ * @example
5720
+ * ```js
5721
+ * disabledActions: [Action.SendTestScheduleEmail]
5722
+ * hiddenActions: [Action.SendTestScheduleEmail]
5723
+ * ```
5724
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
5725
+ */
5726
+ Action["SendTestScheduleEmail"] = "sendTestScheduleEmail";
5624
5727
  })(exports.Action || (exports.Action = {}));
5625
5728
  exports.PrefetchFeatures = void 0;
5626
5729
  (function (PrefetchFeatures) {
@@ -5965,7 +6068,126 @@
5965
6068
  * The apis that are use to get the data for the liveboard
5966
6069
  */
5967
6070
  InterceptedApiType["LiveboardData"] = "LiveboardData";
5968
- })(exports.InterceptedApiType || (exports.InterceptedApiType = {}));
6071
+ })(exports.InterceptedApiType || (exports.InterceptedApiType = {}));
6072
+ /**
6073
+ * Data label filter operators
6074
+ * @group Visual Overrides
6075
+ */
6076
+ exports.DataLabelFilterOperator = void 0;
6077
+ (function (DataLabelFilterOperator) {
6078
+ /** Greater than */
6079
+ DataLabelFilterOperator["GreaterThan"] = "GREATER_THAN";
6080
+ /** Less than */
6081
+ DataLabelFilterOperator["LessThan"] = "LESS_THAN";
6082
+ /** Greater than or equal to */
6083
+ DataLabelFilterOperator["GreaterThanOrEqualTo"] = "GREATER_THAN_OR_EQUAL_TO";
6084
+ /** Less than or equal to */
6085
+ DataLabelFilterOperator["LessThanOrEqualTo"] = "LESS_THAN_OR_EQUAL_TO";
6086
+ /** Equal to */
6087
+ DataLabelFilterOperator["EqualTo"] = "EQUAL_TO";
6088
+ /** Not equal to */
6089
+ DataLabelFilterOperator["NotEqualTo"] = "NOT_EQUAL_TO";
6090
+ })(exports.DataLabelFilterOperator || (exports.DataLabelFilterOperator = {}));
6091
+ /**
6092
+ * Conditional formatting operators
6093
+ * @group Visual Overrides
6094
+ */
6095
+ exports.ConditionalFormattingOperator = void 0;
6096
+ (function (ConditionalFormattingOperator) {
6097
+ /** Is equal to */
6098
+ ConditionalFormattingOperator["Is"] = "IS";
6099
+ /** Is not equal to */
6100
+ ConditionalFormattingOperator["IsNot"] = "IS_NOT";
6101
+ /** Contains */
6102
+ ConditionalFormattingOperator["Contains"] = "CONTAINS";
6103
+ /** Does not contain */
6104
+ ConditionalFormattingOperator["DoesNotContain"] = "DOES_NOT_CONTAIN";
6105
+ /** Starts with */
6106
+ ConditionalFormattingOperator["StartsWith"] = "STARTS_WITH";
6107
+ /** Ends with */
6108
+ ConditionalFormattingOperator["EndsWith"] = "ENDS_WITH";
6109
+ /** Greater than */
6110
+ ConditionalFormattingOperator["GreaterThan"] = "GREATER_THAN";
6111
+ /** Less than */
6112
+ ConditionalFormattingOperator["LessThan"] = "LESS_THAN";
6113
+ /** Greater than or equal to */
6114
+ ConditionalFormattingOperator["GreaterThanEqualTo"] = "GREATER_THAN_EQUAL_TO";
6115
+ /** Less than or equal to */
6116
+ ConditionalFormattingOperator["LessThanEqualTo"] = "LESS_THAN_EQUAL_TO";
6117
+ /** Equal to */
6118
+ ConditionalFormattingOperator["EqualTo"] = "EQUAL_TO";
6119
+ /** Not equal to */
6120
+ ConditionalFormattingOperator["NotEqualTo"] = "NOT_EQUAL_TO";
6121
+ /** Is between */
6122
+ ConditionalFormattingOperator["IsBetween"] = "IS_BETWEEN";
6123
+ /** Is null */
6124
+ ConditionalFormattingOperator["IsNull"] = "IS_NULL";
6125
+ /** Is not null */
6126
+ ConditionalFormattingOperator["IsNotNull"] = "IS_NOT_NULL";
6127
+ })(exports.ConditionalFormattingOperator || (exports.ConditionalFormattingOperator = {}));
6128
+ /**
6129
+ * Background format types for conditional formatting
6130
+ * @group Visual Overrides
6131
+ */
6132
+ exports.BackgroundFormatType = void 0;
6133
+ (function (BackgroundFormatType) {
6134
+ /** Solid color background */
6135
+ BackgroundFormatType["Solid"] = "SOLID";
6136
+ /** Gradient background */
6137
+ BackgroundFormatType["Gradient"] = "GRADIENT";
6138
+ })(exports.BackgroundFormatType || (exports.BackgroundFormatType = {}));
6139
+ /**
6140
+ * Comparison types for conditional formatting
6141
+ * @group Visual Overrides
6142
+ */
6143
+ exports.ConditionalFormattingComparisonType = void 0;
6144
+ (function (ConditionalFormattingComparisonType) {
6145
+ /** Value-based comparison */
6146
+ ConditionalFormattingComparisonType["ValueBased"] = "VALUE_BASED";
6147
+ /** Column-based comparison */
6148
+ ConditionalFormattingComparisonType["ColumnBased"] = "COLUMN_BASED";
6149
+ /** Parameter-based comparison */
6150
+ ConditionalFormattingComparisonType["ParameterBased"] = "PARAMETER_BASED";
6151
+ })(exports.ConditionalFormattingComparisonType || (exports.ConditionalFormattingComparisonType = {}));
6152
+ /**
6153
+ * Legend position options
6154
+ * @group Visual Overrides
6155
+ */
6156
+ exports.LegendPosition = void 0;
6157
+ (function (LegendPosition) {
6158
+ /** Position legend at the top */
6159
+ LegendPosition["Top"] = "top";
6160
+ /** Position legend at the bottom */
6161
+ LegendPosition["Bottom"] = "bottom";
6162
+ /** Position legend on the left */
6163
+ LegendPosition["Left"] = "left";
6164
+ /** Position legend on the right */
6165
+ LegendPosition["Right"] = "right";
6166
+ })(exports.LegendPosition || (exports.LegendPosition = {}));
6167
+ /**
6168
+ * Table theme options
6169
+ * @group Visual Overrides
6170
+ */
6171
+ exports.TableTheme = void 0;
6172
+ (function (TableTheme) {
6173
+ /** Outline theme */
6174
+ TableTheme["Outline"] = "OUTLINE";
6175
+ /** Row theme */
6176
+ TableTheme["Row"] = "ROW";
6177
+ /** Zebra theme */
6178
+ TableTheme["Zebra"] = "ZEBRA";
6179
+ })(exports.TableTheme || (exports.TableTheme = {}));
6180
+ /**
6181
+ * Table content density options
6182
+ * @group Visual Overrides
6183
+ */
6184
+ exports.TableContentDensity = void 0;
6185
+ (function (TableContentDensity) {
6186
+ /** Regular density */
6187
+ TableContentDensity["Regular"] = "REGULAR";
6188
+ /** Compact density */
6189
+ TableContentDensity["Compact"] = "COMPACT";
6190
+ })(exports.TableContentDensity || (exports.TableContentDensity = {}));
5969
6191
 
5970
6192
  const logFunctions = {
5971
6193
  [exports.LogLevel.SILENT]: () => undefined,
@@ -7568,7 +7790,7 @@
7568
7790
  * @name has
7569
7791
  * @memberOf SetCache
7570
7792
  * @param {*} value The value to search for.
7571
- * @returns {number} Returns `true` if `value` is found, else `false`.
7793
+ * @returns {boolean} Returns `true` if `value` is found, else `false`.
7572
7794
  */
7573
7795
  function setCacheHas(value) {
7574
7796
  return this.__data__.has(value);
@@ -10937,7 +11159,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
10937
11159
  if (isArray_1(iteratee)) {
10938
11160
  return function(value) {
10939
11161
  return _baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
10940
- }
11162
+ };
10941
11163
  }
10942
11164
  return iteratee;
10943
11165
  });
@@ -17591,6 +17813,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17591
17813
  default: mixpanel_cjs
17592
17814
  }, [mixpanel_cjs]);
17593
17815
 
17816
+ var version="1.47.3";
17817
+
17594
17818
  // Needed to avoid error in CJS builds on some bundlers.
17595
17819
  const mixpanelLib = mixpanel_cjs || mixpanel$1;
17596
17820
  let mixpanelInstance;
@@ -17660,6 +17884,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17660
17884
  clusterName: sessionInfo.clusterName,
17661
17885
  releaseVersion: sessionInfo.releaseVersion,
17662
17886
  hostAppUrl: ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.host) || '',
17887
+ sdkVersion: version,
17663
17888
  });
17664
17889
  isMixpanelInitialized = true;
17665
17890
  emptyQueue();
@@ -19337,8 +19562,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19337
19562
  return eventData;
19338
19563
  }
19339
19564
 
19340
- var version$1="1.47.1";var pkgInfo = {version:version$1};
19341
-
19342
19565
  function isValidUpdateFiltersPayload(payload) {
19343
19566
  if (!payload)
19344
19567
  return false;
@@ -19749,7 +19972,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19749
19972
  * @summary Base classes
19750
19973
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
19751
19974
  */
19752
- const { version } = pkgInfo;
19753
19975
  /**
19754
19976
  * Global prefix for all ThoughtSpot postHash Params.
19755
19977
  */
@@ -20664,6 +20886,17 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20664
20886
  setIFrameHeight(height) {
20665
20887
  this.iFrame.style.height = getCssDimension(height);
20666
20888
  }
20889
+ shouldSkipEvent(eventType, data) {
20890
+ var _a, _b, _c;
20891
+ 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;
20892
+ if (eventType === exports.EmbedEvent.Error
20893
+ && errorType === exports.EmbedErrorCodes.HOST_EVENT_VALIDATION
20894
+ && (!getHostEventsConfig(this.viewConfig).useHostEventsV2 || getHostEventsConfig(this.viewConfig).shouldBypassPayloadValidation)) {
20895
+ 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}`);
20896
+ return true;
20897
+ }
20898
+ return false;
20899
+ }
20667
20900
  /**
20668
20901
  * Executes all registered event handlers for a particular event type
20669
20902
  * @param eventType The event type
@@ -20671,6 +20904,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20671
20904
  * @param eventPort The event Port for a specific MessageChannel
20672
20905
  */
20673
20906
  executeCallbacks(eventType, data, eventPort) {
20907
+ if (this.shouldSkipEvent(eventType, data))
20908
+ return;
20674
20909
  const eventHandlers = this.eventHandlerMap.get(eventType) || [];
20675
20910
  const allHandlers = this.eventHandlerMap.get(exports.EmbedEvent.ALL) || [];
20676
20911
  const callbacks = [...eventHandlers, ...allHandlers];
@@ -20983,6 +21218,20 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20983
21218
  });
20984
21219
  });
20985
21220
  }
21221
+ /**
21222
+ * Generates the event name for a "Subscribed" embed event.
21223
+ *
21224
+ * This helper appends the "Subscribed" suffix to a given host or action event,
21225
+ * allowing you to listen for subscription lifecycle events in a consistent format.
21226
+ *
21227
+ * @param eventName - The host or action event to generate the subscribed event name for.
21228
+ * @returns The formatted event name (e.g., "Save Subscribed").
21229
+ *
21230
+ * @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
21231
+ */
21232
+ subscribedEvent(eventName) {
21233
+ return `${eventName} ${exports.EmbedEvent.Subscribed}`;
21234
+ }
20986
21235
  /**
20987
21236
  * Creates the preRender shell
20988
21237
  * @param showPreRenderByDefault - Show the preRender after render, hidden by default
@@ -21331,14 +21580,21 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21331
21580
  ? params.spotterSidebarConfigValue
21332
21581
  : params.standaloneValue);
21333
21582
  function buildSpotterSidebarAppInitData(defaultAppInitData, viewConfig, handleError) {
21334
- const { spotterSidebarConfig, enablePastConversationsSidebar } = viewConfig;
21583
+ const { spotterSidebarConfig, enablePastConversationsSidebar, visualOverrides } = viewConfig;
21335
21584
  const resolvedEnablePastConversations = resolveEnablePastConversationsSidebar({
21336
21585
  spotterSidebarConfigValue: spotterSidebarConfig === null || spotterSidebarConfig === void 0 ? void 0 : spotterSidebarConfig.enablePastConversationsSidebar,
21337
21586
  standaloneValue: enablePastConversationsSidebar,
21338
21587
  });
21339
21588
  const hasConfig = spotterSidebarConfig || resolvedEnablePastConversations !== undefined;
21340
- if (!hasConfig)
21341
- return defaultAppInitData;
21589
+ if (!hasConfig) {
21590
+ if (visualOverrides === undefined) {
21591
+ return defaultAppInitData;
21592
+ }
21593
+ return {
21594
+ ...defaultAppInitData,
21595
+ embedParams: { visualOverridesParams: visualOverrides },
21596
+ };
21597
+ }
21342
21598
  const resolvedSidebarConfig = {
21343
21599
  ...spotterSidebarConfig,
21344
21600
  ...(resolvedEnablePastConversations !== undefined && {
@@ -21362,6 +21618,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21362
21618
  embedParams: {
21363
21619
  ...(defaultAppInitData.embedParams || {}),
21364
21620
  spotterSidebarConfig: resolvedSidebarConfig,
21621
+ ...(visualOverrides !== undefined ? { visualOverridesParams: visualOverrides } : {}),
21365
21622
  },
21366
21623
  };
21367
21624
  }
@@ -21572,7 +21829,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21572
21829
  * embedded Liveboard or visualization.
21573
21830
  */
21574
21831
  getEmbedParams() {
21575
- 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 = exports.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;
21832
+ 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 = exports.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;
21576
21833
  let params = {};
21577
21834
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
21578
21835
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -21583,6 +21840,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21583
21840
  params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
21584
21841
  params[Param.ShowMaskedFilterChip] = showMaskedFilterChip;
21585
21842
  params[Param.IsLiveboardMasterpiecesEnabled] = isLiveboardMasterpiecesEnabled;
21843
+ if (newChartsLibrary !== undefined) {
21844
+ params[Param.EnableNewChartLibrary] = newChartsLibrary;
21845
+ }
21586
21846
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
21587
21847
  params[Param.IsFullAppEmbed] = true;
21588
21848
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
@@ -21680,6 +21940,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21680
21940
  params[Param.IsWYSIWYGLiveboardPDFEnabled] = isContinuousLiveboardPDFEnabled;
21681
21941
  }
21682
21942
  this.defaultHeight = minimumHeight || this.defaultHeight;
21943
+ if (enableLiveboardDataCache !== undefined) {
21944
+ params[Param.EnableLiveboardDataCache] = enableLiveboardDataCache;
21945
+ }
21683
21946
  params[Param.DataPanelV2Enabled] = dataPanelV2;
21684
21947
  params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
21685
21948
  params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
@@ -22037,7 +22300,7 @@ query GetEurekaVizSnapshots(
22037
22300
  getEmbedParamsObject() {
22038
22301
  let params = {};
22039
22302
  params = this.getBaseQueryParams(params);
22040
- 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;
22303
+ 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;
22041
22304
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
22042
22305
  || this.viewConfig.preventPinboardFilterRemoval;
22043
22306
  if (fullHeight === true) {
@@ -22132,6 +22395,12 @@ query GetEurekaVizSnapshots(
22132
22395
  if (isContinuousLiveboardPDFEnabled !== undefined) {
22133
22396
  params[Param.IsWYSIWYGLiveboardPDFEnabled] = isContinuousLiveboardPDFEnabled;
22134
22397
  }
22398
+ if (enableLiveboardDataCache !== undefined) {
22399
+ params[Param.EnableLiveboardDataCache] = enableLiveboardDataCache;
22400
+ }
22401
+ if (newChartsLibrary !== undefined) {
22402
+ params[Param.EnableNewChartLibrary] = newChartsLibrary;
22403
+ }
22135
22404
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
22136
22405
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
22137
22406
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
@@ -22419,11 +22688,21 @@ query GetEurekaVizSnapshots(
22419
22688
  }
22420
22689
  async getAppInitData() {
22421
22690
  const defaultAppInitData = await super.getAppInitData();
22422
- return { ...defaultAppInitData, ...this.getSearchInitData() };
22691
+ const result = {
22692
+ ...defaultAppInitData,
22693
+ ...this.getSearchInitData(),
22694
+ };
22695
+ if (this.viewConfig.visualOverrides) {
22696
+ result.embedParams = {
22697
+ ...(defaultAppInitData.embedParams || {}),
22698
+ visualOverridesParams: this.viewConfig.visualOverrides,
22699
+ };
22700
+ }
22701
+ return result;
22423
22702
  }
22424
22703
  getEmbedParamsObject() {
22425
22704
  var _a;
22426
- const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
22705
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, isThisPeriodInDateFiltersEnabled, newChartsLibrary, } = this.viewConfig;
22427
22706
  const queryParams = this.getBaseQueryParams();
22428
22707
  queryParams[Param.HideActions] = [
22429
22708
  ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
@@ -22461,6 +22740,9 @@ query GetEurekaVizSnapshots(
22461
22740
  if (isThisPeriodInDateFiltersEnabled !== undefined) {
22462
22741
  queryParams[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
22463
22742
  }
22743
+ if (newChartsLibrary !== undefined) {
22744
+ queryParams[Param.EnableNewChartLibrary] = newChartsLibrary;
22745
+ }
22464
22746
  queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
22465
22747
  queryParams[Param.DataSourceMode] = this.getDataSourceMode();
22466
22748
  queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;