@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
package/dist/tsembed.js CHANGED
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.35.11 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.35.13 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
4
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
@@ -929,6 +929,11 @@
929
929
  * @hidden
930
930
  */
931
931
  EmbedEvent["AuthFailure"] = "ThoughtspotAuthFailure";
932
+ /**
933
+ * ThoughtSpot failed to re validate the auth session.
934
+ * @hidden
935
+ */
936
+ EmbedEvent["IdleSessionTimeout"] = "IdleSessionTimeout";
932
937
  /**
933
938
  * ThoughtSpot failed to validate the auth session.
934
939
  * @hidden
@@ -1635,6 +1640,36 @@
1635
1640
  * @version SDK : 1.29.0 | ThoughtSpot : 10.3.0.cl
1636
1641
  */
1637
1642
  EmbedEvent["ParameterChanged"] = "parameterChanged";
1643
+ /**
1644
+ * Emitted when the table viz renders.
1645
+ * You can use this event as a hook to trigger
1646
+ * other events on the rendered table viz data.
1647
+ * @example
1648
+ * ```js
1649
+ * searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
1650
+ * console.log(payload);
1651
+ * const columnDataLite = payload.data.data.columnDataLite;
1652
+ * columnDataLite[0].dataValue[0]="new fob";
1653
+ * console.log('>>> new Data', columnDataLite);
1654
+ * searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
1655
+ * })
1656
+ * ```
1657
+ * @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
1658
+ */
1659
+ EmbedEvent["TableVizRendered"] = "TableVizRendered";
1660
+ /**
1661
+ * Emitted when the liveboard is created from pin modal or liveboard list page.
1662
+ * You can use this event as a hook to trigger
1663
+ * other events on liveboard creation.
1664
+ *
1665
+ * ```js
1666
+ * liveboardEmbed.on(EmbedEvent.CreateLiveboard, (payload) => {
1667
+ * console.log('payload', payload);
1668
+ * })
1669
+ *```
1670
+ * @version SDK : 1.36.0 | ThoughtSpot : 10.8.0.cl
1671
+ */
1672
+ EmbedEvent["CreateLiveboard"] = "createLiveboard";
1638
1673
  })(exports.EmbedEvent || (exports.EmbedEvent = {}));
1639
1674
  /**
1640
1675
  * Event types that can be triggered by the host application
@@ -2045,7 +2080,7 @@
2045
2080
  * @param - an object with `vizId` as a key
2046
2081
  * @example
2047
2082
  * ```js
2048
- * liveboardEmbed.trigger(HostEvent.CreateMonitor {
2083
+ * liveboardEmbed.trigger(HostEvent.CreateMonitor, {
2049
2084
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'
2050
2085
  * })
2051
2086
  * ```
@@ -2578,6 +2613,25 @@
2578
2613
  * @hidden
2579
2614
  */
2580
2615
  HostEvent["UIPassthrough"] = "UiPassthrough";
2616
+ /**
2617
+ * Triggers the table viz rerender with the updated data.
2618
+ * Includes the following properties:
2619
+ * @param - columnDataLite - an array of object containing data
2620
+ * transformed from data picked from TableVizRendered event.
2621
+ * For example, { columnDataLite: []}
2622
+ * @example
2623
+ * ```js
2624
+ * searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
2625
+ * console.log(payload);
2626
+ * const columnDataLite = payload.data.data.columnDataLite;
2627
+ * columnDataLite[0].dataValue[0]="new fob";
2628
+ * console.log('>>> new Data', columnDataLite);
2629
+ * searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
2630
+ * })
2631
+ * ```
2632
+ * @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
2633
+ */
2634
+ HostEvent["TransformTableVizData"] = "TransformTableVizData";
2581
2635
  })(exports.HostEvent || (exports.HostEvent = {}));
2582
2636
  /**
2583
2637
  * The different visual modes that the data sources panel within
@@ -2622,6 +2676,7 @@
2622
2676
  Param["HideResult"] = "hideResult";
2623
2677
  Param["UseLastSelectedDataSource"] = "useLastSelectedSources";
2624
2678
  Param["Tag"] = "tag";
2679
+ Param["AutoLogin"] = "autoLogin";
2625
2680
  Param["searchTokenString"] = "searchTokenString";
2626
2681
  Param["executeSearch"] = "executeSearch";
2627
2682
  Param["fullHeight"] = "isFullHeightPinboard";
@@ -2644,7 +2699,12 @@
2644
2699
  Param["AuthType"] = "authType";
2645
2700
  Param["IconSpriteUrl"] = "iconSprite";
2646
2701
  Param["cookieless"] = "cookieless";
2647
- Param["ContextMenuTrigger"] = "isContextMenuEnabledOnLeftClick";
2702
+ // Deprecated: `isContextMenuEnabledOnLeftClick`
2703
+ // Introduced: `contextMenuEnabledOnWhichClick` with values: 'left',
2704
+ // 'right', or 'both'. This update only affects ThoughtSpot URL parameters
2705
+ // and does not impact existing workflows or use cases. Added support for
2706
+ // 'both' clicks in `contextMenuTrigger` configuration.
2707
+ Param["ContextMenuTrigger"] = "contextMenuEnabledOnWhichClick";
2648
2708
  Param["LinkOverride"] = "linkOverride";
2649
2709
  Param["blockNonEmbedFullAppAccess"] = "blockNonEmbedFullAppAccess";
2650
2710
  Param["ShowInsertToSlide"] = "insertInToSlide";
@@ -2699,10 +2759,10 @@
2699
2759
  Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
2700
2760
  Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
2701
2761
  Param["OverrideOrgId"] = "orgId";
2702
- Param["EnableFlipTooltipToContextMenu"] = "flipTooltipToContextMenuEnabled";
2703
2762
  Param["OauthPollingInterval"] = "oAuthPollingInterval";
2704
2763
  Param["IsForceRedirect"] = "isForceRedirect";
2705
2764
  Param["DataSourceId"] = "dataSourceId";
2765
+ Param["ShowSpotterLimitations"] = "showSpotterLimitations";
2706
2766
  })(Param || (Param = {}));
2707
2767
  /**
2708
2768
  * ThoughtSpot application pages include actions and menu commands
@@ -3901,16 +3961,25 @@
3901
3961
  })(exports.PrefetchFeatures || (exports.PrefetchFeatures = {}));
3902
3962
  /**
3903
3963
  * Enum for options to change context trigger
3964
+ * BOTH_CLICKS option is introduced in 10.7
3904
3965
  */
3905
3966
  exports.ContextMenuTriggerOptions = void 0;
3906
3967
  (function (ContextMenuTriggerOptions) {
3907
3968
  ContextMenuTriggerOptions["LEFT_CLICK"] = "left-click";
3908
3969
  ContextMenuTriggerOptions["RIGHT_CLICK"] = "right-click";
3970
+ ContextMenuTriggerOptions["BOTH_CLICKS"] = "both-clicks";
3909
3971
  })(exports.ContextMenuTriggerOptions || (exports.ContextMenuTriggerOptions = {}));
3972
+ /**
3973
+ * Enum options to show or suppress Visual Embed SDK and
3974
+ * ThoughtSpot application logs in the console output.
3975
+ * This attribute doesn't support suppressing
3976
+ * browser warnings or errors.
3977
+ */
3910
3978
  exports.LogLevel = void 0;
3911
3979
  (function (LogLevel) {
3912
3980
  /**
3913
- * No logs will be logged in the console.
3981
+ * No application or SDK-related logs will be logged
3982
+ * in the console output.
3914
3983
  * @example
3915
3984
  * ```js
3916
3985
  * init({
@@ -3922,7 +3991,7 @@
3922
3991
  */
3923
3992
  LogLevel["SILENT"] = "SILENT";
3924
3993
  /**
3925
- * Only ERROR logs will be logged in the console.
3994
+ * Log only errors in the console output.
3926
3995
  * @example
3927
3996
  * ```js
3928
3997
  * init({
@@ -3934,7 +4003,7 @@
3934
4003
  */
3935
4004
  LogLevel["ERROR"] = "ERROR";
3936
4005
  /**
3937
- * Only WARN and ERROR logs will be logged in the console.
4006
+ * Log only warnings and errors in the console output.
3938
4007
  * @example
3939
4008
  * ```js
3940
4009
  * init({
@@ -3946,7 +4015,8 @@
3946
4015
  */
3947
4016
  LogLevel["WARN"] = "WARN";
3948
4017
  /**
3949
- * Only INFO, WARN, and ERROR logs will be logged in the console.
4018
+ * Log only the information alerts, warnings, and errors
4019
+ * in the console output.
3950
4020
  * @example
3951
4021
  * ```js
3952
4022
  * init({
@@ -3958,7 +4028,8 @@
3958
4028
  */
3959
4029
  LogLevel["INFO"] = "INFO";
3960
4030
  /**
3961
- * Only DEBUG, INFO, WARN, and ERROR logs will be logged in the console.
4031
+ * Log debug messages, warnings, information alerts,
4032
+ * and errors in the console output.
3962
4033
  * @example
3963
4034
  * ```js
3964
4035
  * init({
@@ -3970,7 +4041,7 @@
3970
4041
  */
3971
4042
  LogLevel["DEBUG"] = "DEBUG";
3972
4043
  /**
3973
- * All logs will be logged in the console.
4044
+ * All logs will be logged in the browser console.
3974
4045
  * @example
3975
4046
  * ```js
3976
4047
  * init({
@@ -14065,6 +14136,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14065
14136
  AuthFailureType["NO_COOKIE_ACCESS"] = "NO_COOKIE_ACCESS";
14066
14137
  AuthFailureType["EXPIRY"] = "EXPIRY";
14067
14138
  AuthFailureType["OTHER"] = "OTHER";
14139
+ AuthFailureType["IDLE_SESSION_TIMEOUT"] = "IDLE_SESSION_TIMEOUT";
14068
14140
  })(exports.AuthFailureType || (exports.AuthFailureType = {}));
14069
14141
  /**
14070
14142
  * Enum for auth status emitted by the emitter returned from {@link init}.
@@ -14390,7 +14462,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14390
14462
  ? `${thoughtSpotHost}/v2/#/embed/saml-complete`
14391
14463
  : getRedirectUrl(window.location.href, SSO_REDIRECTION_MARKER_GUID, embedConfig.redirectPath);
14392
14464
  // bring back the page to the same URL
14393
- const ssoEndPoint = `${EndPoints.OIDC_LOGIN_TEMPLATE(encodeURIComponent(ssoRedirectUrl))}`;
14465
+ const baseEndpoint = `${EndPoints.OIDC_LOGIN_TEMPLATE(encodeURIComponent(ssoRedirectUrl))}`;
14466
+ const ssoEndPoint = `${baseEndpoint}${baseEndpoint.includes('?') ? '&' : '?'}forceSAMLAutoRedirect=true`;
14394
14467
  await doSSOAuth(embedConfig, ssoEndPoint);
14395
14468
  return loggedInStatus;
14396
14469
  };
@@ -14802,8 +14875,15 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14802
14875
  * @param containerEl
14803
14876
  */
14804
14877
  function processAuthFailure(e, containerEl) {
14805
- const { loginFailedMessage, authType, disableLoginFailurePage } = getEmbedConfig();
14806
- if (authType !== exports.AuthType.None && !disableLoginFailurePage) {
14878
+ const { loginFailedMessage, authType, disableLoginFailurePage, autoLogin, } = getEmbedConfig();
14879
+ if (autoLogin
14880
+ && (authType === exports.AuthType.TrustedAuthToken
14881
+ || authType === exports.AuthType.TrustedAuthTokenCookieless)) {
14882
+ // eslint-disable-next-line no-param-reassign
14883
+ containerEl.innerHTML = loginFailedMessage;
14884
+ notifyAuthFailure(exports.AuthFailureType.IDLE_SESSION_TIMEOUT);
14885
+ }
14886
+ else if (authType !== exports.AuthType.None && !disableLoginFailurePage) {
14807
14887
  // eslint-disable-next-line no-param-reassign
14808
14888
  containerEl.innerHTML = loginFailedMessage;
14809
14889
  notifyAuthFailure(exports.AuthFailureType.OTHER);
@@ -14848,7 +14928,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14848
14928
  return e;
14849
14929
  }
14850
14930
 
14851
- 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$1={".":{"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$1,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};
14931
+ 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$1={".":{"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$1,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};
14852
14932
 
14853
14933
  /**
14854
14934
  * Reloads the ThoughtSpot iframe.
@@ -14973,7 +15053,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14973
15053
  if (!payload || !('newVizName' in payload)) {
14974
15054
  return this.hostEventFallback(exports.HostEvent.Pin, payload);
14975
15055
  }
14976
- return this.handleHostEventWithParam(exports.UIPassthroughEvent.PinAnswerToLiveboard, payload);
15056
+ const formattedPayload = {
15057
+ ...payload,
15058
+ pinboardId: payload.liveboardId,
15059
+ newPinboardName: payload.newLiveboardName,
15060
+ };
15061
+ return this.handleHostEventWithParam(exports.UIPassthroughEvent.PinAnswerToLiveboard, formattedPayload);
14977
15062
  }
14978
15063
  async handleSaveAnswerEvent(payload) {
14979
15064
  var _a, _b, _c, _d;
@@ -15092,12 +15177,37 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15092
15177
  }
15093
15178
  notifyAuthFailure(exports.AuthFailureType.EXPIRY);
15094
15179
  };
15180
+ /**
15181
+ * Auto Login and send updated authToken to the iFrame to avoid user session logout
15182
+ * @param _
15183
+ * @param responder
15184
+ */
15185
+ this.idleSessionTimeout = (_, responder) => {
15186
+ handleAuth().then(async () => {
15187
+ let authToken = '';
15188
+ try {
15189
+ authToken = await getAuthenticationToken(this.embedConfig);
15190
+ responder({
15191
+ type: exports.EmbedEvent.IdleSessionTimeout,
15192
+ data: { authToken },
15193
+ });
15194
+ }
15195
+ catch (e) {
15196
+ logger$3.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e === null || e === void 0 ? void 0 : e.message}`);
15197
+ processAuthFailure(e, this.isPreRendered ? this.preRenderWrapper : this.el);
15198
+ }
15199
+ }).catch((e) => {
15200
+ logger$3.error(`Auto Login failed, Error : ${e === null || e === void 0 ? void 0 : e.message}`);
15201
+ });
15202
+ notifyAuthFailure(exports.AuthFailureType.IDLE_SESSION_TIMEOUT);
15203
+ };
15095
15204
  /**
15096
15205
  * Register APP_INIT event and sendback init payload
15097
15206
  */
15098
15207
  this.registerAppInit = () => {
15099
15208
  this.on(exports.EmbedEvent.APP_INIT, this.appInitCb, { start: false }, true);
15100
15209
  this.on(exports.EmbedEvent.AuthExpire, this.updateAuthToken, { start: false }, true);
15210
+ this.on(exports.EmbedEvent.IdleSessionTimeout, this.idleSessionTimeout, { start: false }, true);
15101
15211
  };
15102
15212
  this.showPreRenderByDefault = false;
15103
15213
  this.validatePreRenderViewConfig = (viewConfig) => {
@@ -15280,7 +15390,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15280
15390
  * @param query
15281
15391
  */
15282
15392
  getEmbedBasePath(query) {
15283
- let queryString = (query.startsWith('?')) ? query : `?${query}`;
15393
+ let queryString = query.startsWith('?') ? query : `?${query}`;
15284
15394
  if (this.shouldEncodeUrlQueryParams) {
15285
15395
  queryString = `?base64UrlEncodedFlags=${getEncodedQueryParamsString(queryString.substr(1))}`;
15286
15396
  }
@@ -15295,20 +15405,22 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15295
15405
  * @returns queryParams
15296
15406
  */
15297
15407
  getBaseQueryParams(queryParams = {}) {
15298
- var _a, _b, _c;
15408
+ var _a, _b;
15299
15409
  let hostAppUrl = ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.host) || '';
15300
15410
  // The below check is needed because TS Cloud firewall, blocks
15301
15411
  // localhost/127.0.0.1 in any url param.
15302
15412
  if (hostAppUrl.includes('localhost') || hostAppUrl.includes('127.0.0.1')) {
15303
15413
  hostAppUrl = 'local-host';
15304
15414
  }
15415
+ const blockNonEmbedFullAppAccess = (_b = this.embedConfig.blockNonEmbedFullAppAccess) !== null && _b !== void 0 ? _b : true;
15305
15416
  queryParams[Param.EmbedApp] = true;
15306
15417
  queryParams[Param.HostAppUrl] = encodeURIComponent(hostAppUrl);
15307
15418
  queryParams[Param.ViewPortHeight] = window.innerHeight;
15308
15419
  queryParams[Param.ViewPortWidth] = window.innerWidth;
15309
15420
  queryParams[Param.Version] = version;
15310
15421
  queryParams[Param.AuthType] = this.embedConfig.authType;
15311
- queryParams[Param.blockNonEmbedFullAppAccess] = (_b = this.embedConfig.blockNonEmbedFullAppAccess) !== null && _b !== void 0 ? _b : true;
15422
+ queryParams[Param.blockNonEmbedFullAppAccess] = blockNonEmbedFullAppAccess;
15423
+ queryParams[Param.AutoLogin] = this.embedConfig.autoLogin;
15312
15424
  if (this.embedConfig.disableLoginRedirect === true || this.embedConfig.autoLogin === true) {
15313
15425
  queryParams[Param.DisableLoginRedirect] = true;
15314
15426
  }
@@ -15330,15 +15442,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15330
15442
  if (this.embedConfig.currencyFormat) {
15331
15443
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
15332
15444
  }
15333
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, enableFlipTooltipToContextMenu = false, } = this.viewConfig;
15445
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
15334
15446
  const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
15335
15447
  const additionalFlags = {
15336
15448
  ...additionalFlagsFromInit,
15337
15449
  ...additionalFlagsFromView,
15338
15450
  };
15339
- if (enableFlipTooltipToContextMenu) {
15340
- queryParams[Param.EnableFlipTooltipToContextMenu] = enableFlipTooltipToContextMenu;
15341
- }
15342
15451
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
15343
15452
  this.handleError('You cannot have both hidden actions and visible actions');
15344
15453
  return queryParams;
@@ -15369,13 +15478,16 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15369
15478
  * menu click
15370
15479
  */
15371
15480
  if (contextMenuTrigger === exports.ContextMenuTriggerOptions.LEFT_CLICK) {
15372
- queryParams[Param.ContextMenuTrigger] = true;
15481
+ queryParams[Param.ContextMenuTrigger] = 'left';
15373
15482
  }
15374
15483
  else if (contextMenuTrigger === exports.ContextMenuTriggerOptions.RIGHT_CLICK) {
15375
- queryParams[Param.ContextMenuTrigger] = false;
15484
+ queryParams[Param.ContextMenuTrigger] = 'right';
15376
15485
  }
15377
- const spriteUrl = (customizations === null || customizations === void 0 ? void 0 : customizations.iconSpriteUrl)
15378
- || ((_c = this.embedConfig.customizations) === null || _c === void 0 ? void 0 : _c.iconSpriteUrl);
15486
+ else if (contextMenuTrigger === exports.ContextMenuTriggerOptions.BOTH_CLICKS) {
15487
+ queryParams[Param.ContextMenuTrigger] = 'both';
15488
+ }
15489
+ const embedCustomizations = this.embedConfig.customizations;
15490
+ const spriteUrl = (customizations === null || customizations === void 0 ? void 0 : customizations.iconSpriteUrl) || (embedCustomizations === null || embedCustomizations === void 0 ? void 0 : embedCustomizations.iconSpriteUrl);
15379
15491
  if (spriteUrl) {
15380
15492
  queryParams[Param.IconSpriteUrl] = spriteUrl.replace('https://', '');
15381
15493
  }
@@ -15447,7 +15559,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15447
15559
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
15448
15560
  // @ts-ignore
15449
15561
  iFrame.allow = 'clipboard-read; clipboard-write; fullscreen;';
15450
- const { height: frameHeight, width: frameWidth, ...restParams } = this.viewConfig.frameParams || {};
15562
+ const frameParams = this.viewConfig.frameParams;
15563
+ const { height: frameHeight, width: frameWidth, ...restParams } = frameParams || {};
15451
15564
  const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
15452
15565
  const height = getCssDimension(frameHeight || DEFAULT_EMBED_HEIGHT);
15453
15566
  setAttributes(iFrame, restParams);
@@ -15552,8 +15665,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15552
15665
  }
15553
15666
  connectPreRendered() {
15554
15667
  const preRenderIds = this.getPreRenderIds();
15555
- this.preRenderWrapper = this.preRenderWrapper
15556
- || document.getElementById(preRenderIds.wrapper);
15668
+ const preRenderWrapperElement = document.getElementById(preRenderIds.wrapper);
15669
+ this.preRenderWrapper = this.preRenderWrapper || preRenderWrapperElement;
15557
15670
  this.preRenderChild = this.preRenderChild || document.getElementById(preRenderIds.child);
15558
15671
  if (this.preRenderWrapper && this.preRenderChild) {
15559
15672
  this.isPreRendered = true;
@@ -16055,7 +16168,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
16055
16168
  const filterQuery = getFilterQuery(runtimeFilters || []);
16056
16169
  queryString = [filterQuery, queryString].filter(Boolean).join('&');
16057
16170
  }
16058
- return (this.viewConfig.enableV2Shell_experimental)
16171
+ return this.viewConfig.enableV2Shell_experimental
16059
16172
  ? this.getEmbedBasePath(queryString)
16060
16173
  : this.getV1EmbedBasePath(queryString);
16061
16174
  }
@@ -16188,6 +16301,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
16188
16301
  '/embed/insights/viz/',
16189
16302
  '/liveboard/',
16190
16303
  '/insights/liveboard/',
16304
+ '/tsl-editor/PINBOARD_ANSWER_BOOK/',
16305
+ '/import-tsl/PINBOARD_ANSWER_BOOK/',
16191
16306
  ];
16192
16307
  if (liveboardRelatedRoutes.some((path) => data.data.currentPath.startsWith(path))) {
16193
16308
  // Ignore the height reset of the frame, if the navigation is
@@ -16449,6 +16564,12 @@ query GetEurekaVizSnapshots(
16449
16564
  * @summary Liveboard & visualization embed
16450
16565
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
16451
16566
  */
16567
+ const liveboardHeightWhitelistedRoutes = [
16568
+ '/embed/viz/',
16569
+ '/embed/insights/viz/',
16570
+ '/tsl-editor/PINBOARD_ANSWER_BOOK/',
16571
+ '/import-tsl/PINBOARD_ANSWER_BOOK/',
16572
+ ];
16452
16573
  /**
16453
16574
  * Embed a ThoughtSpot Liveboard or visualization. When rendered it already
16454
16575
  * waits for the authentication to complete, so you need not wait for
@@ -16483,8 +16604,8 @@ query GetEurekaVizSnapshots(
16483
16604
  responder({ type: exports.EmbedEvent.EmbedIframeCenter, data: obj });
16484
16605
  };
16485
16606
  this.setIframeHeightForNonEmbedLiveboard = (data) => {
16486
- if (data.data.currentPath.startsWith('/embed/viz/')
16487
- || data.data.currentPath.startsWith('/embed/insights/viz/')) {
16607
+ const routePath = data.data.currentPath;
16608
+ if (liveboardHeightWhitelistedRoutes.some((path) => routePath.startsWith(path))) {
16488
16609
  return;
16489
16610
  }
16490
16611
  this.setIFrameHeight(this.defaultHeight);
@@ -16644,8 +16765,9 @@ query GetEurekaVizSnapshots(
16644
16765
  }
16645
16766
  /**
16646
16767
  * Triggers an event to the embedded app
16647
- * @param messageType The event type
16648
- * @param data The payload to send with the message
16768
+ * @param {HostEvent} messageType The event type
16769
+ * @param {any} data The payload to send with the message
16770
+ * @returns A promise that resolves with the response from the embedded app
16649
16771
  */
16650
16772
  trigger(messageType, data = {}) {
16651
16773
  const dataWithVizId = data;
@@ -16794,8 +16916,10 @@ query GetEurekaVizSnapshots(
16794
16916
  if (dataSource) {
16795
16917
  queryParams[Param.DataSources] = `["${dataSource}"]`;
16796
16918
  }
16797
- if ((searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) && !excludeSearchTokenStringFromURL) {
16798
- queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
16919
+ if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
16920
+ if (!excludeSearchTokenStringFromURL) {
16921
+ queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
16922
+ }
16799
16923
  if (searchOptions.executeSearch) {
16800
16924
  queryParams[Param.executeSearch] = true;
16801
16925
  }
@@ -16912,8 +17036,10 @@ query GetEurekaVizSnapshots(
16912
17036
  if (dataSource) {
16913
17037
  queryParams[Param.DataSources] = `["${dataSource}"]`;
16914
17038
  }
16915
- if ((searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) && !excludeSearchTokenStringFromURL) {
16916
- queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
17039
+ if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
17040
+ if (!excludeSearchTokenStringFromURL) {
17041
+ queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
17042
+ }
16917
17043
  if (searchOptions.executeSearch) {
16918
17044
  queryParams[Param.executeSearch] = true;
16919
17045
  }
@@ -17453,7 +17579,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
17453
17579
  this.viewConfig = viewConfig;
17454
17580
  }
17455
17581
  getIframeSrc() {
17456
- const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, } = this.viewConfig;
17582
+ const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, } = this.viewConfig;
17457
17583
  const path = 'insights/conv-assist';
17458
17584
  if (!worksheetId) {
17459
17585
  this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
@@ -17466,6 +17592,15 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
17466
17592
  if (!isUndefined_1(hideSourceSelection)) {
17467
17593
  queryParams[Param.HideSourceSelection] = !!hideSourceSelection;
17468
17594
  }
17595
+ if (!isUndefined_1(dataPanelV2)) {
17596
+ queryParams[Param.DataPanelV2Enabled] = !!dataPanelV2;
17597
+ }
17598
+ if (!isUndefined_1(showSpotterLimitations)) {
17599
+ queryParams[Param.ShowSpotterLimitations] = !!showSpotterLimitations;
17600
+ }
17601
+ if (!isUndefined_1(hideSampleQuestions)) {
17602
+ queryParams[Param.HideSampleQuestions] = !!hideSampleQuestions;
17603
+ }
17469
17604
  let query = '';
17470
17605
  const queryParamsString = getQueryParamString(queryParams, true);
17471
17606
  if (queryParamsString) {