@thoughtspot/visual-embed-sdk 1.35.11 → 1.35.13

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 (143) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/auth.d.ts +2 -1
  3. package/cjs/src/auth.d.ts.map +1 -1
  4. package/cjs/src/auth.js +3 -1
  5. package/cjs/src/auth.js.map +1 -1
  6. package/cjs/src/embed/app.d.ts.map +1 -1
  7. package/cjs/src/embed/app.js +2 -0
  8. package/cjs/src/embed/app.js.map +1 -1
  9. package/cjs/src/embed/conversation.d.ts +44 -0
  10. package/cjs/src/embed/conversation.d.ts.map +1 -1
  11. package/cjs/src/embed/conversation.js +10 -1
  12. package/cjs/src/embed/conversation.js.map +1 -1
  13. package/cjs/src/embed/conversation.spec.js +36 -0
  14. package/cjs/src/embed/conversation.spec.js.map +1 -1
  15. package/cjs/src/embed/hostEventClient/contracts.d.ts +3 -3
  16. package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  17. package/cjs/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  18. package/cjs/src/embed/hostEventClient/host-event-client.js +6 -1
  19. package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
  20. package/cjs/src/embed/liveboard.d.ts +5 -4
  21. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  22. package/cjs/src/embed/liveboard.js +11 -4
  23. package/cjs/src/embed/liveboard.js.map +1 -1
  24. package/cjs/src/embed/liveboard.spec.js +1 -1
  25. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  26. package/cjs/src/embed/search-bar.d.ts.map +1 -1
  27. package/cjs/src/embed/search-bar.js +4 -2
  28. package/cjs/src/embed/search-bar.js.map +1 -1
  29. package/cjs/src/embed/search.d.ts.map +1 -1
  30. package/cjs/src/embed/search.js +4 -2
  31. package/cjs/src/embed/search.js.map +1 -1
  32. package/cjs/src/embed/search.spec.js +56 -3
  33. package/cjs/src/embed/search.spec.js.map +1 -1
  34. package/cjs/src/embed/ts-embed.d.ts +6 -0
  35. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  36. package/cjs/src/embed/ts-embed.js +43 -15
  37. package/cjs/src/embed/ts-embed.js.map +1 -1
  38. package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
  39. package/cjs/src/embed/ts-embed.spec.js +193 -81
  40. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  41. package/cjs/src/types.d.ts +85 -20
  42. package/cjs/src/types.d.ts.map +1 -1
  43. package/cjs/src/types.js +80 -9
  44. package/cjs/src/types.js.map +1 -1
  45. package/cjs/src/utils/processData.d.ts.map +1 -1
  46. package/cjs/src/utils/processData.js +9 -2
  47. package/cjs/src/utils/processData.js.map +1 -1
  48. package/cjs/src/utils/processData.spec.js +51 -0
  49. package/cjs/src/utils/processData.spec.js.map +1 -1
  50. package/dist/index-B3hd6DTM.js +7370 -0
  51. package/dist/index-D-9WUCUl.js +7370 -0
  52. package/dist/src/auth.d.ts +2 -1
  53. package/dist/src/auth.d.ts.map +1 -1
  54. package/dist/src/embed/app.d.ts.map +1 -1
  55. package/dist/src/embed/conversation.d.ts +44 -0
  56. package/dist/src/embed/conversation.d.ts.map +1 -1
  57. package/dist/src/embed/hostEventClient/contracts.d.ts +3 -3
  58. package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  59. package/dist/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  60. package/dist/src/embed/liveboard.d.ts +5 -4
  61. package/dist/src/embed/liveboard.d.ts.map +1 -1
  62. package/dist/src/embed/search-bar.d.ts.map +1 -1
  63. package/dist/src/embed/search.d.ts.map +1 -1
  64. package/dist/src/embed/ts-embed.d.ts +6 -0
  65. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  66. package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
  67. package/dist/src/types.d.ts +85 -20
  68. package/dist/src/types.d.ts.map +1 -1
  69. package/dist/src/utils/processData.d.ts.map +1 -1
  70. package/dist/tsembed-react.es.js +175 -40
  71. package/dist/tsembed-react.js +174 -39
  72. package/dist/tsembed.es.js +175 -40
  73. package/dist/tsembed.js +174 -39
  74. package/dist/visual-embed-sdk-react-full.d.ts +138 -27
  75. package/dist/visual-embed-sdk-react.d.ts +138 -27
  76. package/dist/visual-embed-sdk.d.ts +138 -27
  77. package/lib/package.json +1 -1
  78. package/lib/src/auth.d.ts +2 -1
  79. package/lib/src/auth.d.ts.map +1 -1
  80. package/lib/src/auth.js +3 -1
  81. package/lib/src/auth.js.map +1 -1
  82. package/lib/src/embed/app.d.ts.map +1 -1
  83. package/lib/src/embed/app.js +2 -0
  84. package/lib/src/embed/app.js.map +1 -1
  85. package/lib/src/embed/conversation.d.ts +44 -0
  86. package/lib/src/embed/conversation.d.ts.map +1 -1
  87. package/lib/src/embed/conversation.js +10 -1
  88. package/lib/src/embed/conversation.js.map +1 -1
  89. package/lib/src/embed/conversation.spec.js +36 -0
  90. package/lib/src/embed/conversation.spec.js.map +1 -1
  91. package/lib/src/embed/hostEventClient/contracts.d.ts +3 -3
  92. package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  93. package/lib/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  94. package/lib/src/embed/hostEventClient/host-event-client.js +6 -1
  95. package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
  96. package/lib/src/embed/liveboard.d.ts +5 -4
  97. package/lib/src/embed/liveboard.d.ts.map +1 -1
  98. package/lib/src/embed/liveboard.js +11 -4
  99. package/lib/src/embed/liveboard.js.map +1 -1
  100. package/lib/src/embed/liveboard.spec.js +1 -1
  101. package/lib/src/embed/liveboard.spec.js.map +1 -1
  102. package/lib/src/embed/search-bar.d.ts.map +1 -1
  103. package/lib/src/embed/search-bar.js +4 -2
  104. package/lib/src/embed/search-bar.js.map +1 -1
  105. package/lib/src/embed/search.d.ts.map +1 -1
  106. package/lib/src/embed/search.js +4 -2
  107. package/lib/src/embed/search.js.map +1 -1
  108. package/lib/src/embed/search.spec.js +56 -3
  109. package/lib/src/embed/search.spec.js.map +1 -1
  110. package/lib/src/embed/ts-embed.d.ts +6 -0
  111. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  112. package/lib/src/embed/ts-embed.js +43 -15
  113. package/lib/src/embed/ts-embed.js.map +1 -1
  114. package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
  115. package/lib/src/embed/ts-embed.spec.js +195 -83
  116. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  117. package/lib/src/types.d.ts +85 -20
  118. package/lib/src/types.d.ts.map +1 -1
  119. package/lib/src/types.js +80 -9
  120. package/lib/src/types.js.map +1 -1
  121. package/lib/src/utils/processData.d.ts.map +1 -1
  122. package/lib/src/utils/processData.js +9 -2
  123. package/lib/src/utils/processData.js.map +1 -1
  124. package/lib/src/utils/processData.spec.js +51 -0
  125. package/lib/src/utils/processData.spec.js.map +1 -1
  126. package/lib/src/visual-embed-sdk.d.ts +139 -28
  127. package/package.json +1 -1
  128. package/src/auth.ts +3 -1
  129. package/src/embed/app.ts +2 -0
  130. package/src/embed/conversation.spec.ts +52 -3
  131. package/src/embed/conversation.ts +60 -1
  132. package/src/embed/hostEventClient/contracts.ts +3 -3
  133. package/src/embed/hostEventClient/host-event-client.ts +7 -1
  134. package/src/embed/liveboard.spec.ts +1 -1
  135. package/src/embed/liveboard.ts +18 -12
  136. package/src/embed/search-bar.tsx +6 -4
  137. package/src/embed/search.spec.ts +71 -3
  138. package/src/embed/search.ts +6 -5
  139. package/src/embed/ts-embed.spec.ts +234 -102
  140. package/src/embed/ts-embed.ts +50 -34
  141. package/src/types.ts +89 -16
  142. package/src/utils/processData.spec.ts +63 -0
  143. package/src/utils/processData.ts +12 -2
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.35.11 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.35.13 */
2
2
  import * as React from 'react';
3
3
  import React__default from 'react';
4
4
 
@@ -1038,6 +1038,11 @@ var EmbedEvent;
1038
1038
  * @hidden
1039
1039
  */
1040
1040
  EmbedEvent["AuthFailure"] = "ThoughtspotAuthFailure";
1041
+ /**
1042
+ * ThoughtSpot failed to re validate the auth session.
1043
+ * @hidden
1044
+ */
1045
+ EmbedEvent["IdleSessionTimeout"] = "IdleSessionTimeout";
1041
1046
  /**
1042
1047
  * ThoughtSpot failed to validate the auth session.
1043
1048
  * @hidden
@@ -1744,6 +1749,36 @@ var EmbedEvent;
1744
1749
  * @version SDK : 1.29.0 | ThoughtSpot : 10.3.0.cl
1745
1750
  */
1746
1751
  EmbedEvent["ParameterChanged"] = "parameterChanged";
1752
+ /**
1753
+ * Emitted when the table viz renders.
1754
+ * You can use this event as a hook to trigger
1755
+ * other events on the rendered table viz data.
1756
+ * @example
1757
+ * ```js
1758
+ * searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
1759
+ * console.log(payload);
1760
+ * const columnDataLite = payload.data.data.columnDataLite;
1761
+ * columnDataLite[0].dataValue[0]="new fob";
1762
+ * console.log('>>> new Data', columnDataLite);
1763
+ * searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
1764
+ * })
1765
+ * ```
1766
+ * @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
1767
+ */
1768
+ EmbedEvent["TableVizRendered"] = "TableVizRendered";
1769
+ /**
1770
+ * Emitted when the liveboard is created from pin modal or liveboard list page.
1771
+ * You can use this event as a hook to trigger
1772
+ * other events on liveboard creation.
1773
+ *
1774
+ * ```js
1775
+ * liveboardEmbed.on(EmbedEvent.CreateLiveboard, (payload) => {
1776
+ * console.log('payload', payload);
1777
+ * })
1778
+ *```
1779
+ * @version SDK : 1.36.0 | ThoughtSpot : 10.8.0.cl
1780
+ */
1781
+ EmbedEvent["CreateLiveboard"] = "createLiveboard";
1747
1782
  })(EmbedEvent || (EmbedEvent = {}));
1748
1783
  /**
1749
1784
  * Event types that can be triggered by the host application
@@ -2154,7 +2189,7 @@ var HostEvent;
2154
2189
  * @param - an object with `vizId` as a key
2155
2190
  * @example
2156
2191
  * ```js
2157
- * liveboardEmbed.trigger(HostEvent.CreateMonitor {
2192
+ * liveboardEmbed.trigger(HostEvent.CreateMonitor, {
2158
2193
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'
2159
2194
  * })
2160
2195
  * ```
@@ -2687,6 +2722,25 @@ var HostEvent;
2687
2722
  * @hidden
2688
2723
  */
2689
2724
  HostEvent["UIPassthrough"] = "UiPassthrough";
2725
+ /**
2726
+ * Triggers the table viz rerender with the updated data.
2727
+ * Includes the following properties:
2728
+ * @param - columnDataLite - an array of object containing data
2729
+ * transformed from data picked from TableVizRendered event.
2730
+ * For example, { columnDataLite: []}
2731
+ * @example
2732
+ * ```js
2733
+ * searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
2734
+ * console.log(payload);
2735
+ * const columnDataLite = payload.data.data.columnDataLite;
2736
+ * columnDataLite[0].dataValue[0]="new fob";
2737
+ * console.log('>>> new Data', columnDataLite);
2738
+ * searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
2739
+ * })
2740
+ * ```
2741
+ * @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
2742
+ */
2743
+ HostEvent["TransformTableVizData"] = "TransformTableVizData";
2690
2744
  })(HostEvent || (HostEvent = {}));
2691
2745
  /**
2692
2746
  * The different visual modes that the data sources panel within
@@ -2731,6 +2785,7 @@ var Param;
2731
2785
  Param["HideResult"] = "hideResult";
2732
2786
  Param["UseLastSelectedDataSource"] = "useLastSelectedSources";
2733
2787
  Param["Tag"] = "tag";
2788
+ Param["AutoLogin"] = "autoLogin";
2734
2789
  Param["searchTokenString"] = "searchTokenString";
2735
2790
  Param["executeSearch"] = "executeSearch";
2736
2791
  Param["fullHeight"] = "isFullHeightPinboard";
@@ -2753,7 +2808,12 @@ var Param;
2753
2808
  Param["AuthType"] = "authType";
2754
2809
  Param["IconSpriteUrl"] = "iconSprite";
2755
2810
  Param["cookieless"] = "cookieless";
2756
- Param["ContextMenuTrigger"] = "isContextMenuEnabledOnLeftClick";
2811
+ // Deprecated: `isContextMenuEnabledOnLeftClick`
2812
+ // Introduced: `contextMenuEnabledOnWhichClick` with values: 'left',
2813
+ // 'right', or 'both'. This update only affects ThoughtSpot URL parameters
2814
+ // and does not impact existing workflows or use cases. Added support for
2815
+ // 'both' clicks in `contextMenuTrigger` configuration.
2816
+ Param["ContextMenuTrigger"] = "contextMenuEnabledOnWhichClick";
2757
2817
  Param["LinkOverride"] = "linkOverride";
2758
2818
  Param["blockNonEmbedFullAppAccess"] = "blockNonEmbedFullAppAccess";
2759
2819
  Param["ShowInsertToSlide"] = "insertInToSlide";
@@ -2808,10 +2868,10 @@ var Param;
2808
2868
  Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
2809
2869
  Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
2810
2870
  Param["OverrideOrgId"] = "orgId";
2811
- Param["EnableFlipTooltipToContextMenu"] = "flipTooltipToContextMenuEnabled";
2812
2871
  Param["OauthPollingInterval"] = "oAuthPollingInterval";
2813
2872
  Param["IsForceRedirect"] = "isForceRedirect";
2814
2873
  Param["DataSourceId"] = "dataSourceId";
2874
+ Param["ShowSpotterLimitations"] = "showSpotterLimitations";
2815
2875
  })(Param || (Param = {}));
2816
2876
  /**
2817
2877
  * ThoughtSpot application pages include actions and menu commands
@@ -4010,16 +4070,25 @@ var PrefetchFeatures;
4010
4070
  })(PrefetchFeatures || (PrefetchFeatures = {}));
4011
4071
  /**
4012
4072
  * Enum for options to change context trigger
4073
+ * BOTH_CLICKS option is introduced in 10.7
4013
4074
  */
4014
4075
  var ContextMenuTriggerOptions;
4015
4076
  (function (ContextMenuTriggerOptions) {
4016
4077
  ContextMenuTriggerOptions["LEFT_CLICK"] = "left-click";
4017
4078
  ContextMenuTriggerOptions["RIGHT_CLICK"] = "right-click";
4079
+ ContextMenuTriggerOptions["BOTH_CLICKS"] = "both-clicks";
4018
4080
  })(ContextMenuTriggerOptions || (ContextMenuTriggerOptions = {}));
4081
+ /**
4082
+ * Enum options to show or suppress Visual Embed SDK and
4083
+ * ThoughtSpot application logs in the console output.
4084
+ * This attribute doesn't support suppressing
4085
+ * browser warnings or errors.
4086
+ */
4019
4087
  var LogLevel;
4020
4088
  (function (LogLevel) {
4021
4089
  /**
4022
- * No logs will be logged in the console.
4090
+ * No application or SDK-related logs will be logged
4091
+ * in the console output.
4023
4092
  * @example
4024
4093
  * ```js
4025
4094
  * init({
@@ -4031,7 +4100,7 @@ var LogLevel;
4031
4100
  */
4032
4101
  LogLevel["SILENT"] = "SILENT";
4033
4102
  /**
4034
- * Only ERROR logs will be logged in the console.
4103
+ * Log only errors in the console output.
4035
4104
  * @example
4036
4105
  * ```js
4037
4106
  * init({
@@ -4043,7 +4112,7 @@ var LogLevel;
4043
4112
  */
4044
4113
  LogLevel["ERROR"] = "ERROR";
4045
4114
  /**
4046
- * Only WARN and ERROR logs will be logged in the console.
4115
+ * Log only warnings and errors in the console output.
4047
4116
  * @example
4048
4117
  * ```js
4049
4118
  * init({
@@ -4055,7 +4124,8 @@ var LogLevel;
4055
4124
  */
4056
4125
  LogLevel["WARN"] = "WARN";
4057
4126
  /**
4058
- * Only INFO, WARN, and ERROR logs will be logged in the console.
4127
+ * Log only the information alerts, warnings, and errors
4128
+ * in the console output.
4059
4129
  * @example
4060
4130
  * ```js
4061
4131
  * init({
@@ -4067,7 +4137,8 @@ var LogLevel;
4067
4137
  */
4068
4138
  LogLevel["INFO"] = "INFO";
4069
4139
  /**
4070
- * Only DEBUG, INFO, WARN, and ERROR logs will be logged in the console.
4140
+ * Log debug messages, warnings, information alerts,
4141
+ * and errors in the console output.
4071
4142
  * @example
4072
4143
  * ```js
4073
4144
  * init({
@@ -4079,7 +4150,7 @@ var LogLevel;
4079
4150
  */
4080
4151
  LogLevel["DEBUG"] = "DEBUG";
4081
4152
  /**
4082
- * All logs will be logged in the console.
4153
+ * All logs will be logged in the browser console.
4083
4154
  * @example
4084
4155
  * ```js
4085
4156
  * init({
@@ -7257,7 +7328,7 @@ class AnswerService {
7257
7328
  async getTML() {
7258
7329
  const { object } = await this.executeQuery(getAnswerTML, {});
7259
7330
  const edoc = object[0].edoc;
7260
- const YAML = await import('./index-IDmSUe93.js');
7331
+ const YAML = await import('./index-B3hd6DTM.js');
7261
7332
  const parsedDoc = YAML.parse(edoc);
7262
7333
  return {
7263
7334
  answer: {
@@ -14102,6 +14173,7 @@ var AuthFailureType;
14102
14173
  AuthFailureType["NO_COOKIE_ACCESS"] = "NO_COOKIE_ACCESS";
14103
14174
  AuthFailureType["EXPIRY"] = "EXPIRY";
14104
14175
  AuthFailureType["OTHER"] = "OTHER";
14176
+ AuthFailureType["IDLE_SESSION_TIMEOUT"] = "IDLE_SESSION_TIMEOUT";
14105
14177
  })(AuthFailureType || (AuthFailureType = {}));
14106
14178
  /**
14107
14179
  * Enum for auth status emitted by the emitter returned from {@link init}.
@@ -14407,7 +14479,8 @@ const doOIDCAuth = async (embedConfig) => {
14407
14479
  ? `${thoughtSpotHost}/v2/#/embed/saml-complete`
14408
14480
  : getRedirectUrl(window.location.href, SSO_REDIRECTION_MARKER_GUID, embedConfig.redirectPath);
14409
14481
  // bring back the page to the same URL
14410
- const ssoEndPoint = `${EndPoints.OIDC_LOGIN_TEMPLATE(encodeURIComponent(ssoRedirectUrl))}`;
14482
+ const baseEndpoint = `${EndPoints.OIDC_LOGIN_TEMPLATE(encodeURIComponent(ssoRedirectUrl))}`;
14483
+ const ssoEndPoint = `${baseEndpoint}${baseEndpoint.includes('?') ? '&' : '?'}forceSAMLAutoRedirect=true`;
14411
14484
  await doSSOAuth(embedConfig, ssoEndPoint);
14412
14485
  return loggedInStatus;
14413
14486
  };
@@ -14554,8 +14627,15 @@ function processNoCookieAccess(e, containerEl) {
14554
14627
  * @param containerEl
14555
14628
  */
14556
14629
  function processAuthFailure(e, containerEl) {
14557
- const { loginFailedMessage, authType, disableLoginFailurePage } = getEmbedConfig();
14558
- if (authType !== AuthType.None && !disableLoginFailurePage) {
14630
+ const { loginFailedMessage, authType, disableLoginFailurePage, autoLogin, } = getEmbedConfig();
14631
+ if (autoLogin
14632
+ && (authType === AuthType.TrustedAuthToken
14633
+ || authType === AuthType.TrustedAuthTokenCookieless)) {
14634
+ // eslint-disable-next-line no-param-reassign
14635
+ containerEl.innerHTML = loginFailedMessage;
14636
+ notifyAuthFailure(AuthFailureType.IDLE_SESSION_TIMEOUT);
14637
+ }
14638
+ else if (authType !== AuthType.None && !disableLoginFailurePage) {
14559
14639
  // eslint-disable-next-line no-param-reassign
14560
14640
  containerEl.innerHTML = loginFailedMessage;
14561
14641
  notifyAuthFailure(AuthFailureType.OTHER);
@@ -14600,7 +14680,7 @@ function processEventData(type, e, thoughtSpotHost, containerEl) {
14600
14680
  return e;
14601
14681
  }
14602
14682
 
14603
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.11";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
14683
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.13";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
14604
14684
 
14605
14685
  /**
14606
14686
  * Reloads the ThoughtSpot iframe.
@@ -14725,7 +14805,12 @@ class HostEventClient {
14725
14805
  if (!payload || !('newVizName' in payload)) {
14726
14806
  return this.hostEventFallback(HostEvent.Pin, payload);
14727
14807
  }
14728
- return this.handleHostEventWithParam(UIPassthroughEvent.PinAnswerToLiveboard, payload);
14808
+ const formattedPayload = {
14809
+ ...payload,
14810
+ pinboardId: payload.liveboardId,
14811
+ newPinboardName: payload.newLiveboardName,
14812
+ };
14813
+ return this.handleHostEventWithParam(UIPassthroughEvent.PinAnswerToLiveboard, formattedPayload);
14729
14814
  }
14730
14815
  async handleSaveAnswerEvent(payload) {
14731
14816
  var _a, _b, _c, _d;
@@ -14844,12 +14929,37 @@ class TsEmbed {
14844
14929
  }
14845
14930
  notifyAuthFailure(AuthFailureType.EXPIRY);
14846
14931
  };
14932
+ /**
14933
+ * Auto Login and send updated authToken to the iFrame to avoid user session logout
14934
+ * @param _
14935
+ * @param responder
14936
+ */
14937
+ this.idleSessionTimeout = (_, responder) => {
14938
+ handleAuth().then(async () => {
14939
+ let authToken = '';
14940
+ try {
14941
+ authToken = await getAuthenticationToken(this.embedConfig);
14942
+ responder({
14943
+ type: EmbedEvent.IdleSessionTimeout,
14944
+ data: { authToken },
14945
+ });
14946
+ }
14947
+ catch (e) {
14948
+ logger$3.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e === null || e === void 0 ? void 0 : e.message}`);
14949
+ processAuthFailure(e, this.isPreRendered ? this.preRenderWrapper : this.el);
14950
+ }
14951
+ }).catch((e) => {
14952
+ logger$3.error(`Auto Login failed, Error : ${e === null || e === void 0 ? void 0 : e.message}`);
14953
+ });
14954
+ notifyAuthFailure(AuthFailureType.IDLE_SESSION_TIMEOUT);
14955
+ };
14847
14956
  /**
14848
14957
  * Register APP_INIT event and sendback init payload
14849
14958
  */
14850
14959
  this.registerAppInit = () => {
14851
14960
  this.on(EmbedEvent.APP_INIT, this.appInitCb, { start: false }, true);
14852
14961
  this.on(EmbedEvent.AuthExpire, this.updateAuthToken, { start: false }, true);
14962
+ this.on(EmbedEvent.IdleSessionTimeout, this.idleSessionTimeout, { start: false }, true);
14853
14963
  };
14854
14964
  this.showPreRenderByDefault = false;
14855
14965
  this.validatePreRenderViewConfig = (viewConfig) => {
@@ -15032,7 +15142,7 @@ class TsEmbed {
15032
15142
  * @param query
15033
15143
  */
15034
15144
  getEmbedBasePath(query) {
15035
- let queryString = (query.startsWith('?')) ? query : `?${query}`;
15145
+ let queryString = query.startsWith('?') ? query : `?${query}`;
15036
15146
  if (this.shouldEncodeUrlQueryParams) {
15037
15147
  queryString = `?base64UrlEncodedFlags=${getEncodedQueryParamsString(queryString.substr(1))}`;
15038
15148
  }
@@ -15047,20 +15157,22 @@ class TsEmbed {
15047
15157
  * @returns queryParams
15048
15158
  */
15049
15159
  getBaseQueryParams(queryParams = {}) {
15050
- var _a, _b, _c;
15160
+ var _a, _b;
15051
15161
  let hostAppUrl = ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.host) || '';
15052
15162
  // The below check is needed because TS Cloud firewall, blocks
15053
15163
  // localhost/127.0.0.1 in any url param.
15054
15164
  if (hostAppUrl.includes('localhost') || hostAppUrl.includes('127.0.0.1')) {
15055
15165
  hostAppUrl = 'local-host';
15056
15166
  }
15167
+ const blockNonEmbedFullAppAccess = (_b = this.embedConfig.blockNonEmbedFullAppAccess) !== null && _b !== void 0 ? _b : true;
15057
15168
  queryParams[Param.EmbedApp] = true;
15058
15169
  queryParams[Param.HostAppUrl] = encodeURIComponent(hostAppUrl);
15059
15170
  queryParams[Param.ViewPortHeight] = window.innerHeight;
15060
15171
  queryParams[Param.ViewPortWidth] = window.innerWidth;
15061
15172
  queryParams[Param.Version] = version;
15062
15173
  queryParams[Param.AuthType] = this.embedConfig.authType;
15063
- queryParams[Param.blockNonEmbedFullAppAccess] = (_b = this.embedConfig.blockNonEmbedFullAppAccess) !== null && _b !== void 0 ? _b : true;
15174
+ queryParams[Param.blockNonEmbedFullAppAccess] = blockNonEmbedFullAppAccess;
15175
+ queryParams[Param.AutoLogin] = this.embedConfig.autoLogin;
15064
15176
  if (this.embedConfig.disableLoginRedirect === true || this.embedConfig.autoLogin === true) {
15065
15177
  queryParams[Param.DisableLoginRedirect] = true;
15066
15178
  }
@@ -15082,15 +15194,12 @@ class TsEmbed {
15082
15194
  if (this.embedConfig.currencyFormat) {
15083
15195
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
15084
15196
  }
15085
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, enableFlipTooltipToContextMenu = false, } = this.viewConfig;
15197
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
15086
15198
  const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
15087
15199
  const additionalFlags = {
15088
15200
  ...additionalFlagsFromInit,
15089
15201
  ...additionalFlagsFromView,
15090
15202
  };
15091
- if (enableFlipTooltipToContextMenu) {
15092
- queryParams[Param.EnableFlipTooltipToContextMenu] = enableFlipTooltipToContextMenu;
15093
- }
15094
15203
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
15095
15204
  this.handleError('You cannot have both hidden actions and visible actions');
15096
15205
  return queryParams;
@@ -15121,13 +15230,16 @@ class TsEmbed {
15121
15230
  * menu click
15122
15231
  */
15123
15232
  if (contextMenuTrigger === ContextMenuTriggerOptions.LEFT_CLICK) {
15124
- queryParams[Param.ContextMenuTrigger] = true;
15233
+ queryParams[Param.ContextMenuTrigger] = 'left';
15125
15234
  }
15126
15235
  else if (contextMenuTrigger === ContextMenuTriggerOptions.RIGHT_CLICK) {
15127
- queryParams[Param.ContextMenuTrigger] = false;
15236
+ queryParams[Param.ContextMenuTrigger] = 'right';
15128
15237
  }
15129
- const spriteUrl = (customizations === null || customizations === void 0 ? void 0 : customizations.iconSpriteUrl)
15130
- || ((_c = this.embedConfig.customizations) === null || _c === void 0 ? void 0 : _c.iconSpriteUrl);
15238
+ else if (contextMenuTrigger === ContextMenuTriggerOptions.BOTH_CLICKS) {
15239
+ queryParams[Param.ContextMenuTrigger] = 'both';
15240
+ }
15241
+ const embedCustomizations = this.embedConfig.customizations;
15242
+ const spriteUrl = (customizations === null || customizations === void 0 ? void 0 : customizations.iconSpriteUrl) || (embedCustomizations === null || embedCustomizations === void 0 ? void 0 : embedCustomizations.iconSpriteUrl);
15131
15243
  if (spriteUrl) {
15132
15244
  queryParams[Param.IconSpriteUrl] = spriteUrl.replace('https://', '');
15133
15245
  }
@@ -15199,7 +15311,8 @@ class TsEmbed {
15199
15311
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
15200
15312
  // @ts-ignore
15201
15313
  iFrame.allow = 'clipboard-read; clipboard-write; fullscreen;';
15202
- const { height: frameHeight, width: frameWidth, ...restParams } = this.viewConfig.frameParams || {};
15314
+ const frameParams = this.viewConfig.frameParams;
15315
+ const { height: frameHeight, width: frameWidth, ...restParams } = frameParams || {};
15203
15316
  const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
15204
15317
  const height = getCssDimension(frameHeight || DEFAULT_EMBED_HEIGHT);
15205
15318
  setAttributes(iFrame, restParams);
@@ -15304,8 +15417,8 @@ class TsEmbed {
15304
15417
  }
15305
15418
  connectPreRendered() {
15306
15419
  const preRenderIds = this.getPreRenderIds();
15307
- this.preRenderWrapper = this.preRenderWrapper
15308
- || document.getElementById(preRenderIds.wrapper);
15420
+ const preRenderWrapperElement = document.getElementById(preRenderIds.wrapper);
15421
+ this.preRenderWrapper = this.preRenderWrapper || preRenderWrapperElement;
15309
15422
  this.preRenderChild = this.preRenderChild || document.getElementById(preRenderIds.child);
15310
15423
  if (this.preRenderWrapper && this.preRenderChild) {
15311
15424
  this.isPreRendered = true;
@@ -15807,7 +15920,7 @@ class V1Embed extends TsEmbed {
15807
15920
  const filterQuery = getFilterQuery(runtimeFilters || []);
15808
15921
  queryString = [filterQuery, queryString].filter(Boolean).join('&');
15809
15922
  }
15810
- return (this.viewConfig.enableV2Shell_experimental)
15923
+ return this.viewConfig.enableV2Shell_experimental
15811
15924
  ? this.getEmbedBasePath(queryString)
15812
15925
  : this.getV1EmbedBasePath(queryString);
15813
15926
  }
@@ -15862,8 +15975,10 @@ let SearchBarEmbed$1 = class SearchBarEmbed extends TsEmbed {
15862
15975
  if (dataSource) {
15863
15976
  queryParams[Param.DataSources] = `["${dataSource}"]`;
15864
15977
  }
15865
- if ((searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) && !excludeSearchTokenStringFromURL) {
15866
- queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
15978
+ if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
15979
+ if (!excludeSearchTokenStringFromURL) {
15980
+ queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
15981
+ }
15867
15982
  if (searchOptions.executeSearch) {
15868
15983
  queryParams[Param.executeSearch] = true;
15869
15984
  }
@@ -16066,8 +16181,10 @@ let SearchEmbed$1 = class SearchEmbed extends TsEmbed {
16066
16181
  if (dataSource) {
16067
16182
  queryParams[Param.DataSources] = `["${dataSource}"]`;
16068
16183
  }
16069
- if ((searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) && !excludeSearchTokenStringFromURL) {
16070
- queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
16184
+ if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
16185
+ if (!excludeSearchTokenStringFromURL) {
16186
+ queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
16187
+ }
16071
16188
  if (searchOptions.executeSearch) {
16072
16189
  queryParams[Param.executeSearch] = true;
16073
16190
  }
@@ -16262,6 +16379,8 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
16262
16379
  '/embed/insights/viz/',
16263
16380
  '/liveboard/',
16264
16381
  '/insights/liveboard/',
16382
+ '/tsl-editor/PINBOARD_ANSWER_BOOK/',
16383
+ '/import-tsl/PINBOARD_ANSWER_BOOK/',
16265
16384
  ];
16266
16385
  if (liveboardRelatedRoutes.some((path) => data.data.currentPath.startsWith(path))) {
16267
16386
  // Ignore the height reset of the frame, if the navigation is
@@ -16523,6 +16642,12 @@ const addPreviewStylesIfNotPresent = () => {
16523
16642
  * @summary Liveboard & visualization embed
16524
16643
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
16525
16644
  */
16645
+ const liveboardHeightWhitelistedRoutes = [
16646
+ '/embed/viz/',
16647
+ '/embed/insights/viz/',
16648
+ '/tsl-editor/PINBOARD_ANSWER_BOOK/',
16649
+ '/import-tsl/PINBOARD_ANSWER_BOOK/',
16650
+ ];
16526
16651
  /**
16527
16652
  * Embed a ThoughtSpot Liveboard or visualization. When rendered it already
16528
16653
  * waits for the authentication to complete, so you need not wait for
@@ -16557,8 +16682,8 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
16557
16682
  responder({ type: EmbedEvent.EmbedIframeCenter, data: obj });
16558
16683
  };
16559
16684
  this.setIframeHeightForNonEmbedLiveboard = (data) => {
16560
- if (data.data.currentPath.startsWith('/embed/viz/')
16561
- || data.data.currentPath.startsWith('/embed/insights/viz/')) {
16685
+ const routePath = data.data.currentPath;
16686
+ if (liveboardHeightWhitelistedRoutes.some((path) => routePath.startsWith(path))) {
16562
16687
  return;
16563
16688
  }
16564
16689
  this.setIFrameHeight(this.defaultHeight);
@@ -16718,8 +16843,9 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
16718
16843
  }
16719
16844
  /**
16720
16845
  * Triggers an event to the embedded app
16721
- * @param messageType The event type
16722
- * @param data The payload to send with the message
16846
+ * @param {HostEvent} messageType The event type
16847
+ * @param {any} data The payload to send with the message
16848
+ * @returns A promise that resolves with the response from the embedded app
16723
16849
  */
16724
16850
  trigger(messageType, data = {}) {
16725
16851
  const dataWithVizId = data;
@@ -16841,7 +16967,7 @@ let ConversationEmbed$1 = class ConversationEmbed extends TsEmbed {
16841
16967
  this.viewConfig = viewConfig;
16842
16968
  }
16843
16969
  getIframeSrc() {
16844
- const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, } = this.viewConfig;
16970
+ const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, } = this.viewConfig;
16845
16971
  const path = 'insights/conv-assist';
16846
16972
  if (!worksheetId) {
16847
16973
  this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
@@ -16854,6 +16980,15 @@ let ConversationEmbed$1 = class ConversationEmbed extends TsEmbed {
16854
16980
  if (!isUndefined_1(hideSourceSelection)) {
16855
16981
  queryParams[Param.HideSourceSelection] = !!hideSourceSelection;
16856
16982
  }
16983
+ if (!isUndefined_1(dataPanelV2)) {
16984
+ queryParams[Param.DataPanelV2Enabled] = !!dataPanelV2;
16985
+ }
16986
+ if (!isUndefined_1(showSpotterLimitations)) {
16987
+ queryParams[Param.ShowSpotterLimitations] = !!showSpotterLimitations;
16988
+ }
16989
+ if (!isUndefined_1(hideSampleQuestions)) {
16990
+ queryParams[Param.HideSampleQuestions] = !!hideSampleQuestions;
16991
+ }
16857
16992
  let query = '';
16858
16993
  const queryParamsString = getQueryParamString(queryParams, true);
16859
16994
  if (queryParamsString) {