@thoughtspot/visual-embed-sdk 1.35.5-hostEvent.7 → 1.35.5

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 (120) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/app.d.ts +1 -1
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js +14 -2
  5. package/cjs/src/embed/app.js.map +1 -1
  6. package/cjs/src/embed/base.d.ts +1 -1
  7. package/cjs/src/embed/base.js +1 -1
  8. package/cjs/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  9. package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
  10. package/cjs/src/embed/liveboard.d.ts +8 -7
  11. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  12. package/cjs/src/embed/liveboard.js +2 -2
  13. package/cjs/src/embed/liveboard.js.map +1 -1
  14. package/cjs/src/embed/ts-embed.d.ts +1 -1
  15. package/cjs/src/embed/ts-embed.js +1 -1
  16. package/cjs/src/types.d.ts +22 -20
  17. package/cjs/src/types.d.ts.map +1 -1
  18. package/cjs/src/types.js +17 -18
  19. package/cjs/src/types.js.map +1 -1
  20. package/dist/{index-CbltIawo.js → index-FKywZXHG.js} +1 -1
  21. package/dist/src/embed/app.d.ts +1 -1
  22. package/dist/src/embed/app.d.ts.map +1 -1
  23. package/dist/src/embed/base.d.ts +1 -1
  24. package/dist/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  25. package/dist/src/embed/liveboard.d.ts +8 -7
  26. package/dist/src/embed/liveboard.d.ts.map +1 -1
  27. package/dist/src/embed/ts-embed.d.ts +1 -1
  28. package/dist/src/types.d.ts +22 -20
  29. package/dist/src/types.d.ts.map +1 -1
  30. package/dist/tsembed-react.es.js +37 -26
  31. package/dist/tsembed-react.js +36 -25
  32. package/dist/tsembed.es.js +38 -27
  33. package/dist/tsembed.js +37 -26
  34. package/dist/visual-embed-sdk-react-full.d.ts +33 -30
  35. package/dist/visual-embed-sdk-react.d.ts +33 -30
  36. package/dist/visual-embed-sdk.d.ts +33 -30
  37. package/lib/package.json +1 -1
  38. package/lib/src/embed/app.d.ts +1 -1
  39. package/lib/src/embed/app.d.ts.map +1 -1
  40. package/lib/src/embed/app.js +14 -2
  41. package/lib/src/embed/app.js.map +1 -1
  42. package/lib/src/embed/base.d.ts +1 -1
  43. package/lib/src/embed/base.js +1 -1
  44. package/lib/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  45. package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
  46. package/lib/src/embed/liveboard.d.ts +8 -7
  47. package/lib/src/embed/liveboard.d.ts.map +1 -1
  48. package/lib/src/embed/liveboard.js +2 -2
  49. package/lib/src/embed/liveboard.js.map +1 -1
  50. package/lib/src/embed/ts-embed.d.ts +1 -1
  51. package/lib/src/embed/ts-embed.js +1 -1
  52. package/lib/src/types.d.ts +22 -20
  53. package/lib/src/types.d.ts.map +1 -1
  54. package/lib/src/types.js +17 -18
  55. package/lib/src/types.js.map +1 -1
  56. package/lib/src/visual-embed-sdk.d.ts +33 -30
  57. package/package.json +1 -1
  58. package/src/embed/app.ts +17 -3
  59. package/src/embed/base.ts +1 -1
  60. package/src/embed/hostEventClient/host-event-client.ts +0 -5
  61. package/src/embed/liveboard.ts +8 -7
  62. package/src/embed/ts-embed.ts +1 -1
  63. package/src/types.ts +22 -20
  64. package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts +0 -2
  65. package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts.map +0 -1
  66. package/cjs/src/embed/searchEmbed-basic-auth.spec.js +0 -104
  67. package/cjs/src/embed/searchEmbed-basic-auth.spec.js.map +0 -1
  68. package/cjs/src/hostEventsTypeMapping.d.ts +0 -2
  69. package/cjs/src/hostEventsTypeMapping.d.ts.map +0 -1
  70. package/cjs/src/hostEventsTypeMapping.js +0 -4
  71. package/cjs/src/hostEventsTypeMapping.js.map +0 -1
  72. package/cjs/src/utils/embedApi/contracts.d.ts +0 -101
  73. package/cjs/src/utils/embedApi/contracts.d.ts.map +0 -1
  74. package/cjs/src/utils/embedApi/contracts.js +0 -17
  75. package/cjs/src/utils/embedApi/contracts.js.map +0 -1
  76. package/cjs/src/utils/embedApi/embedApiClient.d.ts +0 -12
  77. package/cjs/src/utils/embedApi/embedApiClient.d.ts.map +0 -1
  78. package/cjs/src/utils/embedApi/embedApiClient.js +0 -46
  79. package/cjs/src/utils/embedApi/embedApiClient.js.map +0 -1
  80. package/cjs/src/utils/embedApi/processEmbedApi.d.ts +0 -9
  81. package/cjs/src/utils/embedApi/processEmbedApi.d.ts.map +0 -1
  82. package/cjs/src/utils/embedApi/processEmbedApi.js +0 -18
  83. package/cjs/src/utils/embedApi/processEmbedApi.js.map +0 -1
  84. package/dist/index-CENLvayL.js +0 -7370
  85. package/dist/index-CoQfqaHj.js +0 -7370
  86. package/dist/index-CzwzS0P4.js +0 -7370
  87. package/dist/index-DFwi_pV_.js +0 -7370
  88. package/dist/index-DOIjN0N_.js +0 -7370
  89. package/dist/index-DYBx8SuE.js +0 -7370
  90. package/dist/index-DaLHJaLd.js +0 -7370
  91. package/dist/src/embed/searchEmbed-basic-auth.spec.d.ts +0 -2
  92. package/dist/src/embed/searchEmbed-basic-auth.spec.d.ts.map +0 -1
  93. package/dist/src/hostEventsTypeMapping.d.ts +0 -2
  94. package/dist/src/hostEventsTypeMapping.d.ts.map +0 -1
  95. package/dist/src/utils/embedApi/contracts.d.ts +0 -101
  96. package/dist/src/utils/embedApi/contracts.d.ts.map +0 -1
  97. package/dist/src/utils/embedApi/embedApiClient.d.ts +0 -12
  98. package/dist/src/utils/embedApi/embedApiClient.d.ts.map +0 -1
  99. package/dist/src/utils/embedApi/processEmbedApi.d.ts +0 -9
  100. package/dist/src/utils/embedApi/processEmbedApi.d.ts.map +0 -1
  101. package/lib/src/embed/searchEmbed-basic-auth.spec.d.ts +0 -2
  102. package/lib/src/embed/searchEmbed-basic-auth.spec.d.ts.map +0 -1
  103. package/lib/src/embed/searchEmbed-basic-auth.spec.js +0 -101
  104. package/lib/src/embed/searchEmbed-basic-auth.spec.js.map +0 -1
  105. package/lib/src/hostEventsTypeMapping.d.ts +0 -2
  106. package/lib/src/hostEventsTypeMapping.d.ts.map +0 -1
  107. package/lib/src/hostEventsTypeMapping.js +0 -2
  108. package/lib/src/hostEventsTypeMapping.js.map +0 -1
  109. package/lib/src/utils/embedApi/contracts.d.ts +0 -101
  110. package/lib/src/utils/embedApi/contracts.d.ts.map +0 -1
  111. package/lib/src/utils/embedApi/contracts.js +0 -14
  112. package/lib/src/utils/embedApi/contracts.js.map +0 -1
  113. package/lib/src/utils/embedApi/embedApiClient.d.ts +0 -12
  114. package/lib/src/utils/embedApi/embedApiClient.d.ts.map +0 -1
  115. package/lib/src/utils/embedApi/embedApiClient.js +0 -42
  116. package/lib/src/utils/embedApi/embedApiClient.js.map +0 -1
  117. package/lib/src/utils/embedApi/processEmbedApi.d.ts +0 -9
  118. package/lib/src/utils/embedApi/processEmbedApi.d.ts.map +0 -1
  119. package/lib/src/utils/embedApi/processEmbedApi.js +0 -14
  120. package/lib/src/utils/embedApi/processEmbedApi.js.map +0 -1
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.35.5-hostEvent.7 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.35.5 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
@@ -1851,7 +1851,7 @@
1851
1851
  * @param - autoDrillDown - Optional. If true, the drill down will be
1852
1852
  * done automatically on the most popular column.
1853
1853
  * @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
1854
- * in case of a liveboard.
1854
+ * in case of a Liveboard.
1855
1855
  * @example
1856
1856
  * ```js
1857
1857
  * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
@@ -1938,25 +1938,23 @@
1938
1938
  */
1939
1939
  HostEvent["SetActiveTab"] = "SetActiveTab";
1940
1940
  /**
1941
- * Update runtime filters applied on a Saved Answer or Liveboard. The
1942
- * runtime filters passed here are appended to the existing runtime
1943
- * filters.
1941
+ * Updates the runtime filters applied on a Liveboard. The filter
1942
+ * attributes passed with this event are appended to the existing runtime
1943
+ * filters applied on a Liveboard.
1944
+ *
1944
1945
  * Pass an array of runtime filters with the following attributes:
1945
1946
  *
1946
- * `columnName`
1947
- * _String_. The name of the column to filter on.
1947
+ * `columnName` - _String_. The name of the column to filter on.
1948
1948
  *
1949
- * `operator`
1950
- * Runtime filter operator to apply. For information,
1949
+ * `operator` - Runtime filter operator to apply. For more information,
1951
1950
  * see link:https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator[Developer Documentation].
1952
1951
  *
1953
- * `values`
1954
- * List of operands. Some operators such as EQ, LE allow a single value, whereas
1955
- * operators such as BW and IN accept multiple operands.
1952
+ * `values` - List of operands. Some operators such as EQ and LE allow a
1953
+ * single value, whereas BW and IN accept multiple values.
1956
1954
  *
1957
- * **Note**: `HostEvent.UpdateRuntimeFilters` is not supported in
1958
- * Search embedding (SearchEmbed) and Natural Language Search
1959
- * embedding (SageEmbed).
1955
+ * **Note**: `HostEvent.UpdateRuntimeFilters` is supported in `LiveboardEmbed`
1956
+ * and `AppEmbed` only. In full application embedding, this event updates
1957
+ * the runtime filters applied on the Liveboard and saved Answer objects.
1960
1958
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
1961
1959
  * @example
1962
1960
  * ```js
@@ -2656,7 +2654,7 @@
2656
2654
  */
2657
2655
  HostEvent["ResetLiveboardPersonalisedView"] = "ResetLiveboardPersonalisedView";
2658
2656
  /**
2659
- * Triggers Update RuntimeParameters for answers and liveboard
2657
+ * Triggers an event to Update Parameter values for Answers and Liveboard
2660
2658
  * @example
2661
2659
  * ```js
2662
2660
  * liveboardEmbed.trigger(HostEvent.UpdateParameters, [{
@@ -2678,7 +2676,7 @@
2678
2676
  */
2679
2677
  HostEvent["GetParameters"] = "GetParameters";
2680
2678
  /**
2681
- * Triggers update of persoanlised view for a liveboard
2679
+ * Triggers an event to update a persoanlised view of a Liveboard
2682
2680
  * ```js
2683
2681
  * liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
2684
2682
  * ```
@@ -3674,7 +3672,7 @@
3674
3672
  */
3675
3673
  Action["ModifySageAnswer"] = "modifySageAnswer";
3676
3674
  /**
3677
- * The **Move to Tab** menu action on visualizations in liveboard edit mode.
3675
+ * The **Move to Tab** menu action on visualizations in Liveboard edit mode.
3678
3676
  * Allows moving a visualization to a different tab.
3679
3677
  * @example
3680
3678
  * ```js
@@ -3727,7 +3725,8 @@
3727
3725
  */
3728
3726
  Action["TML"] = "tml";
3729
3727
  /**
3730
- * Action Id for CreateLiveboard for liveboard list page & Pin Modal
3728
+ * Action ID for the create Liveboard option on the Liveboard list page
3729
+ * and Pin modal
3731
3730
  * @example
3732
3731
  * ```js
3733
3732
  * hiddenAction: [Action.CreateLiveboard]
@@ -14525,7 +14524,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14525
14524
  return e;
14526
14525
  }
14527
14526
 
14528
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.5-hostEvent.7";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};
14527
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.5";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};
14529
14528
 
14530
14529
  /**
14531
14530
  * Reloads the ThoughtSpot iframe.
@@ -15669,7 +15668,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15669
15668
  /**
15670
15669
  * Returns the answerService which can be used to make arbitrary graphql calls on top
15671
15670
  * session.
15672
- * @param vizId [Optional] to get for a specific viz in case of a liveboard.
15671
+ * @param vizId [Optional] to get for a specific viz in case of a Liveboard.
15673
15672
  * @version SDK: 1.25.0 / ThoughtSpot 9.10.0
15674
15673
  */
15675
15674
  async getAnswerService(vizId) {
@@ -16136,9 +16135,21 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
16136
16135
  };
16137
16136
  this.setIframeHeightForNonEmbedLiveboard = (data) => {
16138
16137
  const { height: frameHeight, ...restParams } = this.viewConfig.frameParams || {};
16139
- if (!data.data.currentPath.startsWith('/pinboard/')) {
16140
- this.setIFrameHeight(frameHeight || this.defaultHeight);
16138
+ const liveboardRelatedRoutes = [
16139
+ '/pinboard/',
16140
+ '/insights/pinboard/',
16141
+ '/schedules/',
16142
+ '/embed/viz/',
16143
+ '/embed/insights/viz/',
16144
+ '/liveboard/',
16145
+ '/insights/liveboard/',
16146
+ ];
16147
+ if (liveboardRelatedRoutes.some((path) => data.data.currentPath.startsWith(path))) {
16148
+ // Ignore the height reset of the frame, if the navigation is
16149
+ // only within the liveboard page.
16150
+ return;
16141
16151
  }
16152
+ this.setIFrameHeight(frameHeight || this.defaultHeight);
16142
16153
  };
16143
16154
  if (this.viewConfig.fullHeight === true) {
16144
16155
  this.on(exports.EmbedEvent.RouteChange, this.setIframeHeightForNonEmbedLiveboard);
@@ -16630,8 +16641,8 @@ query GetEurekaVizSnapshots(
16630
16641
  }
16631
16642
  }
16632
16643
  /**
16633
- * Returns the full url of the liveboard/viz which can be used to open
16634
- * this liveboard inside the full Thoughtspot application in a new tab.
16644
+ * Returns the full url of the Liveboard/visualization which can be used to open
16645
+ * this Liveboard inside the full Thoughtspot application in a new tab.
16635
16646
  * @returns url string
16636
16647
  */
16637
16648
  getLiveboardUrl() {
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.35.5-hostEvent.7 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.35.5 */
2
2
  function _mergeNamespaces(n, m) {
3
3
  m.forEach(function (e) {
4
4
  e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
@@ -1714,7 +1714,7 @@ var HostEvent;
1714
1714
  * @param - autoDrillDown - Optional. If true, the drill down will be
1715
1715
  * done automatically on the most popular column.
1716
1716
  * @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
1717
- * in case of a liveboard.
1717
+ * in case of a Liveboard.
1718
1718
  * @example
1719
1719
  * ```js
1720
1720
  * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
@@ -1801,25 +1801,23 @@ var HostEvent;
1801
1801
  */
1802
1802
  HostEvent["SetActiveTab"] = "SetActiveTab";
1803
1803
  /**
1804
- * Update runtime filters applied on a Saved Answer or Liveboard. The
1805
- * runtime filters passed here are appended to the existing runtime
1806
- * filters.
1804
+ * Updates the runtime filters applied on a Liveboard. The filter
1805
+ * attributes passed with this event are appended to the existing runtime
1806
+ * filters applied on a Liveboard.
1807
+ *
1807
1808
  * Pass an array of runtime filters with the following attributes:
1808
1809
  *
1809
- * `columnName`
1810
- * _String_. The name of the column to filter on.
1810
+ * `columnName` - _String_. The name of the column to filter on.
1811
1811
  *
1812
- * `operator`
1813
- * Runtime filter operator to apply. For information,
1812
+ * `operator` - Runtime filter operator to apply. For more information,
1814
1813
  * see link:https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator[Developer Documentation].
1815
1814
  *
1816
- * `values`
1817
- * List of operands. Some operators such as EQ, LE allow a single value, whereas
1818
- * operators such as BW and IN accept multiple operands.
1815
+ * `values` - List of operands. Some operators such as EQ and LE allow a
1816
+ * single value, whereas BW and IN accept multiple values.
1819
1817
  *
1820
- * **Note**: `HostEvent.UpdateRuntimeFilters` is not supported in
1821
- * Search embedding (SearchEmbed) and Natural Language Search
1822
- * embedding (SageEmbed).
1818
+ * **Note**: `HostEvent.UpdateRuntimeFilters` is supported in `LiveboardEmbed`
1819
+ * and `AppEmbed` only. In full application embedding, this event updates
1820
+ * the runtime filters applied on the Liveboard and saved Answer objects.
1823
1821
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
1824
1822
  * @example
1825
1823
  * ```js
@@ -2519,7 +2517,7 @@ var HostEvent;
2519
2517
  */
2520
2518
  HostEvent["ResetLiveboardPersonalisedView"] = "ResetLiveboardPersonalisedView";
2521
2519
  /**
2522
- * Triggers Update RuntimeParameters for answers and liveboard
2520
+ * Triggers an event to Update Parameter values for Answers and Liveboard
2523
2521
  * @example
2524
2522
  * ```js
2525
2523
  * liveboardEmbed.trigger(HostEvent.UpdateParameters, [{
@@ -2541,7 +2539,7 @@ var HostEvent;
2541
2539
  */
2542
2540
  HostEvent["GetParameters"] = "GetParameters";
2543
2541
  /**
2544
- * Triggers update of persoanlised view for a liveboard
2542
+ * Triggers an event to update a persoanlised view of a Liveboard
2545
2543
  * ```js
2546
2544
  * liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
2547
2545
  * ```
@@ -3537,7 +3535,7 @@ var Action;
3537
3535
  */
3538
3536
  Action["ModifySageAnswer"] = "modifySageAnswer";
3539
3537
  /**
3540
- * The **Move to Tab** menu action on visualizations in liveboard edit mode.
3538
+ * The **Move to Tab** menu action on visualizations in Liveboard edit mode.
3541
3539
  * Allows moving a visualization to a different tab.
3542
3540
  * @example
3543
3541
  * ```js
@@ -3590,7 +3588,8 @@ var Action;
3590
3588
  */
3591
3589
  Action["TML"] = "tml";
3592
3590
  /**
3593
- * Action Id for CreateLiveboard for liveboard list page & Pin Modal
3591
+ * Action ID for the create Liveboard option on the Liveboard list page
3592
+ * and Pin modal
3594
3593
  * @example
3595
3594
  * ```js
3596
3595
  * hiddenAction: [Action.CreateLiveboard]
@@ -7059,7 +7058,7 @@ class AnswerService {
7059
7058
  async getTML() {
7060
7059
  const { object } = await this.executeQuery(getAnswerTML, {});
7061
7060
  const edoc = object[0].edoc;
7062
- const YAML = await import('./index-DaLHJaLd.js');
7061
+ const YAML = await import('./index-FKywZXHG.js');
7063
7062
  const parsedDoc = YAML.parse(edoc);
7064
7063
  return {
7065
7064
  answer: {
@@ -14439,7 +14438,7 @@ function backwardCompat(embedConfig) {
14439
14438
  /**
14440
14439
  * Initializes the Visual Embed SDK globally and perform
14441
14440
  * authentication if applicable. This function needs to be called before any ThoughtSpot
14442
- * component like liveboard etc can be embedded. But need not wait for AuthEvent.SUCCESS
14441
+ * component like Liveboard etc can be embedded. But need not wait for AuthEvent.SUCCESS
14443
14442
  * to actually embed. That is handled internally.
14444
14443
  * @param embedConfig The configuration object containing ThoughtSpot host,
14445
14444
  * authentication mechanism and so on.
@@ -14745,7 +14744,7 @@ function processEventData(type, e, thoughtSpotHost, containerEl) {
14745
14744
  return e;
14746
14745
  }
14747
14746
 
14748
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.5-hostEvent.7";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};
14747
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.5";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};
14749
14748
 
14750
14749
  /**
14751
14750
  * Reloads the ThoughtSpot iframe.
@@ -15889,7 +15888,7 @@ class TsEmbed {
15889
15888
  /**
15890
15889
  * Returns the answerService which can be used to make arbitrary graphql calls on top
15891
15890
  * session.
15892
- * @param vizId [Optional] to get for a specific viz in case of a liveboard.
15891
+ * @param vizId [Optional] to get for a specific viz in case of a Liveboard.
15893
15892
  * @version SDK: 1.25.0 / ThoughtSpot 9.10.0
15894
15893
  */
15895
15894
  async getAnswerService(vizId) {
@@ -16059,9 +16058,21 @@ class AppEmbed extends V1Embed {
16059
16058
  };
16060
16059
  this.setIframeHeightForNonEmbedLiveboard = (data) => {
16061
16060
  const { height: frameHeight, ...restParams } = this.viewConfig.frameParams || {};
16062
- if (!data.data.currentPath.startsWith('/pinboard/')) {
16063
- this.setIFrameHeight(frameHeight || this.defaultHeight);
16061
+ const liveboardRelatedRoutes = [
16062
+ '/pinboard/',
16063
+ '/insights/pinboard/',
16064
+ '/schedules/',
16065
+ '/embed/viz/',
16066
+ '/embed/insights/viz/',
16067
+ '/liveboard/',
16068
+ '/insights/liveboard/',
16069
+ ];
16070
+ if (liveboardRelatedRoutes.some((path) => data.data.currentPath.startsWith(path))) {
16071
+ // Ignore the height reset of the frame, if the navigation is
16072
+ // only within the liveboard page.
16073
+ return;
16064
16074
  }
16075
+ this.setIFrameHeight(frameHeight || this.defaultHeight);
16065
16076
  };
16066
16077
  if (this.viewConfig.fullHeight === true) {
16067
16078
  this.on(EmbedEvent.RouteChange, this.setIframeHeightForNonEmbedLiveboard);
@@ -16553,8 +16564,8 @@ class LiveboardEmbed extends V1Embed {
16553
16564
  }
16554
16565
  }
16555
16566
  /**
16556
- * Returns the full url of the liveboard/viz which can be used to open
16557
- * this liveboard inside the full Thoughtspot application in a new tab.
16567
+ * Returns the full url of the Liveboard/visualization which can be used to open
16568
+ * this Liveboard inside the full Thoughtspot application in a new tab.
16558
16569
  * @returns url string
16559
16570
  */
16560
16571
  getLiveboardUrl() {
package/dist/tsembed.js CHANGED
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.35.5-hostEvent.7 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.35.5 */
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) :
@@ -1720,7 +1720,7 @@
1720
1720
  * @param - autoDrillDown - Optional. If true, the drill down will be
1721
1721
  * done automatically on the most popular column.
1722
1722
  * @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
1723
- * in case of a liveboard.
1723
+ * in case of a Liveboard.
1724
1724
  * @example
1725
1725
  * ```js
1726
1726
  * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
@@ -1807,25 +1807,23 @@
1807
1807
  */
1808
1808
  HostEvent["SetActiveTab"] = "SetActiveTab";
1809
1809
  /**
1810
- * Update runtime filters applied on a Saved Answer or Liveboard. The
1811
- * runtime filters passed here are appended to the existing runtime
1812
- * filters.
1810
+ * Updates the runtime filters applied on a Liveboard. The filter
1811
+ * attributes passed with this event are appended to the existing runtime
1812
+ * filters applied on a Liveboard.
1813
+ *
1813
1814
  * Pass an array of runtime filters with the following attributes:
1814
1815
  *
1815
- * `columnName`
1816
- * _String_. The name of the column to filter on.
1816
+ * `columnName` - _String_. The name of the column to filter on.
1817
1817
  *
1818
- * `operator`
1819
- * Runtime filter operator to apply. For information,
1818
+ * `operator` - Runtime filter operator to apply. For more information,
1820
1819
  * see link:https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator[Developer Documentation].
1821
1820
  *
1822
- * `values`
1823
- * List of operands. Some operators such as EQ, LE allow a single value, whereas
1824
- * operators such as BW and IN accept multiple operands.
1821
+ * `values` - List of operands. Some operators such as EQ and LE allow a
1822
+ * single value, whereas BW and IN accept multiple values.
1825
1823
  *
1826
- * **Note**: `HostEvent.UpdateRuntimeFilters` is not supported in
1827
- * Search embedding (SearchEmbed) and Natural Language Search
1828
- * embedding (SageEmbed).
1824
+ * **Note**: `HostEvent.UpdateRuntimeFilters` is supported in `LiveboardEmbed`
1825
+ * and `AppEmbed` only. In full application embedding, this event updates
1826
+ * the runtime filters applied on the Liveboard and saved Answer objects.
1829
1827
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
1830
1828
  * @example
1831
1829
  * ```js
@@ -2525,7 +2523,7 @@
2525
2523
  */
2526
2524
  HostEvent["ResetLiveboardPersonalisedView"] = "ResetLiveboardPersonalisedView";
2527
2525
  /**
2528
- * Triggers Update RuntimeParameters for answers and liveboard
2526
+ * Triggers an event to Update Parameter values for Answers and Liveboard
2529
2527
  * @example
2530
2528
  * ```js
2531
2529
  * liveboardEmbed.trigger(HostEvent.UpdateParameters, [{
@@ -2547,7 +2545,7 @@
2547
2545
  */
2548
2546
  HostEvent["GetParameters"] = "GetParameters";
2549
2547
  /**
2550
- * Triggers update of persoanlised view for a liveboard
2548
+ * Triggers an event to update a persoanlised view of a Liveboard
2551
2549
  * ```js
2552
2550
  * liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
2553
2551
  * ```
@@ -3543,7 +3541,7 @@
3543
3541
  */
3544
3542
  Action["ModifySageAnswer"] = "modifySageAnswer";
3545
3543
  /**
3546
- * The **Move to Tab** menu action on visualizations in liveboard edit mode.
3544
+ * The **Move to Tab** menu action on visualizations in Liveboard edit mode.
3547
3545
  * Allows moving a visualization to a different tab.
3548
3546
  * @example
3549
3547
  * ```js
@@ -3596,7 +3594,8 @@
3596
3594
  */
3597
3595
  Action["TML"] = "tml";
3598
3596
  /**
3599
- * Action Id for CreateLiveboard for liveboard list page & Pin Modal
3597
+ * Action ID for the create Liveboard option on the Liveboard list page
3598
+ * and Pin modal
3600
3599
  * @example
3601
3600
  * ```js
3602
3601
  * hiddenAction: [Action.CreateLiveboard]
@@ -14445,7 +14444,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14445
14444
  /**
14446
14445
  * Initializes the Visual Embed SDK globally and perform
14447
14446
  * authentication if applicable. This function needs to be called before any ThoughtSpot
14448
- * component like liveboard etc can be embedded. But need not wait for AuthEvent.SUCCESS
14447
+ * component like Liveboard etc can be embedded. But need not wait for AuthEvent.SUCCESS
14449
14448
  * to actually embed. That is handled internally.
14450
14449
  * @param embedConfig The configuration object containing ThoughtSpot host,
14451
14450
  * authentication mechanism and so on.
@@ -14751,7 +14750,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14751
14750
  return e;
14752
14751
  }
14753
14752
 
14754
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.5-hostEvent.7";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};
14753
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.5";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};
14755
14754
 
14756
14755
  /**
14757
14756
  * Reloads the ThoughtSpot iframe.
@@ -15895,7 +15894,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15895
15894
  /**
15896
15895
  * Returns the answerService which can be used to make arbitrary graphql calls on top
15897
15896
  * session.
15898
- * @param vizId [Optional] to get for a specific viz in case of a liveboard.
15897
+ * @param vizId [Optional] to get for a specific viz in case of a Liveboard.
15899
15898
  * @version SDK: 1.25.0 / ThoughtSpot 9.10.0
15900
15899
  */
15901
15900
  async getAnswerService(vizId) {
@@ -16065,9 +16064,21 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
16065
16064
  };
16066
16065
  this.setIframeHeightForNonEmbedLiveboard = (data) => {
16067
16066
  const { height: frameHeight, ...restParams } = this.viewConfig.frameParams || {};
16068
- if (!data.data.currentPath.startsWith('/pinboard/')) {
16069
- this.setIFrameHeight(frameHeight || this.defaultHeight);
16067
+ const liveboardRelatedRoutes = [
16068
+ '/pinboard/',
16069
+ '/insights/pinboard/',
16070
+ '/schedules/',
16071
+ '/embed/viz/',
16072
+ '/embed/insights/viz/',
16073
+ '/liveboard/',
16074
+ '/insights/liveboard/',
16075
+ ];
16076
+ if (liveboardRelatedRoutes.some((path) => data.data.currentPath.startsWith(path))) {
16077
+ // Ignore the height reset of the frame, if the navigation is
16078
+ // only within the liveboard page.
16079
+ return;
16070
16080
  }
16081
+ this.setIFrameHeight(frameHeight || this.defaultHeight);
16071
16082
  };
16072
16083
  if (this.viewConfig.fullHeight === true) {
16073
16084
  this.on(exports.EmbedEvent.RouteChange, this.setIframeHeightForNonEmbedLiveboard);
@@ -16559,8 +16570,8 @@ query GetEurekaVizSnapshots(
16559
16570
  }
16560
16571
  }
16561
16572
  /**
16562
- * Returns the full url of the liveboard/viz which can be used to open
16563
- * this liveboard inside the full Thoughtspot application in a new tab.
16573
+ * Returns the full url of the Liveboard/visualization which can be used to open
16574
+ * this Liveboard inside the full Thoughtspot application in a new tab.
16564
16575
  * @returns url string
16565
16576
  */
16566
16577
  getLiveboardUrl() {