@thoughtspot/visual-embed-sdk 1.32.4 → 1.32.7

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 (92) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/app.d.ts +42 -0
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js +4 -1
  5. package/cjs/src/embed/app.js.map +1 -1
  6. package/cjs/src/embed/app.spec.js +30 -0
  7. package/cjs/src/embed/app.spec.js.map +1 -1
  8. package/cjs/src/embed/base.d.ts +12 -12
  9. package/cjs/src/embed/base.js +12 -12
  10. package/cjs/src/embed/liveboard.d.ts +42 -0
  11. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  12. package/cjs/src/embed/liveboard.js +4 -1
  13. package/cjs/src/embed/liveboard.js.map +1 -1
  14. package/cjs/src/embed/liveboard.spec.js +33 -0
  15. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  16. package/cjs/src/embed/ts-embed.d.ts +0 -1
  17. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  18. package/cjs/src/embed/ts-embed.js +1 -2
  19. package/cjs/src/embed/ts-embed.js.map +1 -1
  20. package/cjs/src/types.d.ts +66 -8
  21. package/cjs/src/types.d.ts.map +1 -1
  22. package/cjs/src/types.js +59 -7
  23. package/cjs/src/types.js.map +1 -1
  24. package/cjs/src/utils/graphql/answerService/answerService.d.ts +14 -0
  25. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  26. package/cjs/src/utils/graphql/answerService/answerService.js +21 -0
  27. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  28. package/cjs/src/utils/processData.js +2 -2
  29. package/cjs/src/utils/processData.js.map +1 -1
  30. package/cjs/src/utils/processData.spec.js +14 -0
  31. package/cjs/src/utils/processData.spec.js.map +1 -1
  32. package/dist/src/embed/app.d.ts +42 -0
  33. package/dist/src/embed/app.d.ts.map +1 -1
  34. package/dist/src/embed/base.d.ts +12 -12
  35. package/dist/src/embed/liveboard.d.ts +42 -0
  36. package/dist/src/embed/liveboard.d.ts.map +1 -1
  37. package/dist/src/embed/ts-embed.d.ts +0 -1
  38. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  39. package/dist/src/types.d.ts +66 -8
  40. package/dist/src/types.d.ts.map +1 -1
  41. package/dist/src/utils/graphql/answerService/answerService.d.ts +14 -0
  42. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  43. package/dist/tsembed-react.es.js +92 -14
  44. package/dist/tsembed-react.js +92 -14
  45. package/dist/tsembed.es.js +104 -26
  46. package/dist/tsembed.js +104 -26
  47. package/dist/visual-embed-sdk-react-full.d.ts +176 -21
  48. package/dist/visual-embed-sdk-react.d.ts +176 -21
  49. package/dist/visual-embed-sdk.d.ts +176 -21
  50. package/lib/package.json +1 -1
  51. package/lib/src/embed/app.d.ts +42 -0
  52. package/lib/src/embed/app.d.ts.map +1 -1
  53. package/lib/src/embed/app.js +4 -1
  54. package/lib/src/embed/app.js.map +1 -1
  55. package/lib/src/embed/app.spec.js +30 -0
  56. package/lib/src/embed/app.spec.js.map +1 -1
  57. package/lib/src/embed/base.d.ts +12 -12
  58. package/lib/src/embed/base.js +12 -12
  59. package/lib/src/embed/liveboard.d.ts +42 -0
  60. package/lib/src/embed/liveboard.d.ts.map +1 -1
  61. package/lib/src/embed/liveboard.js +4 -1
  62. package/lib/src/embed/liveboard.js.map +1 -1
  63. package/lib/src/embed/liveboard.spec.js +33 -0
  64. package/lib/src/embed/liveboard.spec.js.map +1 -1
  65. package/lib/src/embed/ts-embed.d.ts +0 -1
  66. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  67. package/lib/src/embed/ts-embed.js +1 -2
  68. package/lib/src/embed/ts-embed.js.map +1 -1
  69. package/lib/src/types.d.ts +66 -8
  70. package/lib/src/types.d.ts.map +1 -1
  71. package/lib/src/types.js +59 -7
  72. package/lib/src/types.js.map +1 -1
  73. package/lib/src/utils/graphql/answerService/answerService.d.ts +14 -0
  74. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  75. package/lib/src/utils/graphql/answerService/answerService.js +21 -0
  76. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  77. package/lib/src/utils/processData.js +2 -2
  78. package/lib/src/utils/processData.js.map +1 -1
  79. package/lib/src/utils/processData.spec.js +14 -0
  80. package/lib/src/utils/processData.spec.js.map +1 -1
  81. package/lib/src/visual-embed-sdk.d.ts +176 -21
  82. package/package.json +1 -1
  83. package/src/embed/app.spec.ts +45 -0
  84. package/src/embed/app.ts +48 -0
  85. package/src/embed/base.ts +12 -12
  86. package/src/embed/liveboard.spec.ts +48 -0
  87. package/src/embed/liveboard.ts +48 -0
  88. package/src/embed/ts-embed.ts +1 -2
  89. package/src/types.ts +66 -7
  90. package/src/utils/graphql/answerService/answerService.ts +27 -0
  91. package/src/utils/processData.spec.ts +16 -0
  92. package/src/utils/processData.ts +2 -2
@@ -1614,21 +1614,61 @@ var EmbedEvent;
1614
1614
  */
1615
1615
  EmbedEvent["Rename"] = "rename";
1616
1616
  /**
1617
- * Emitted when user wants to intercept the search execution
1617
+ * Emitted if the user wants to intercept the search execution
1618
+ * and implement logic to decide whether to run the search or not
1618
1619
  *
1619
- * Set IsOnBeforeGetVizDataInterceptEnabled : true to use
1620
- * this embed event
1620
+ * Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
1621
+ * for this embed event to get emitted.
1622
+ *
1623
+ * Parameter: payload
1624
+ * Parameter: responder
1625
+ * Contains elements that lets developers define whether ThoughtSpot
1626
+ * will run the search or not, and if not, which error message to provide.
1627
+ *
1628
+ * execute: When execute returns true, the search will be run.
1629
+ * When execute returns false, the search will not be executed.
1630
+ *
1631
+ * error: Developers can customize the user facing message when execute is
1632
+ * set to false using the error parameter in responder
1633
+ *
1634
+ * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
1621
1635
  *
1622
1636
  *```js
1623
- * searchEmbed.on(EmbedEvent.OnBeforeGetVizDataIntercept,
1637
+ * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
1624
1638
  * (payload, responder) => {
1625
1639
  * responder({
1626
1640
  * data: {
1627
- * execute: true,
1628
- * }})
1641
+ * execute:false,
1642
+ * error: {
1643
+ * //Provide a custom error message to explain to your end user
1644
+ * //why their search did not run
1645
+ * errorText: "This search query cannot be run.
1646
+ * Please contact your administrator for more details."
1647
+ * }
1648
+ * }})
1649
+ * })
1650
+ * ```
1651
+ *
1652
+ *```js
1653
+ * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
1654
+ * (payload, responder) => {
1655
+ * const query = payload.data.data.answer.search_query
1656
+ * responder({
1657
+ * data: {
1658
+ * // returns true as long as the query does not include
1659
+ * // both the 'sales' AND the 'county' column
1660
+ * execute: !(query.includes("sales")&&query.includes("county")),
1661
+ * error: {
1662
+ * //Provide a custom error message to explain to your end user
1663
+ * // why their search did not run, and which searches are accepted by your custom logic.
1664
+ * errorText: "You can't use this query :" + query + ".
1665
+ * The 'sales' measures can never be used at the 'county' level.
1666
+ * Please try another measure, or remove 'county' from your search."
1667
+ * }
1668
+ * }})
1629
1669
  * })
1630
1670
  *```
1631
- * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
1671
+ *
1632
1672
  */
1633
1673
  EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
1634
1674
  /**
@@ -1748,6 +1788,15 @@ var HostEvent;
1748
1788
  * @hidden
1749
1789
  */
1750
1790
  HostEvent["Reload"] = "reload";
1791
+ /**
1792
+ * Get current iframe src
1793
+ * @example
1794
+ * ```js
1795
+ * const frameUrl = AppEmbed.trigger(HostEvent.GetIframeUrl)
1796
+ * ```
1797
+ * @version SDK: 1.35.0 | Thoughtspot: 10.4.0.cl
1798
+ */
1799
+ HostEvent["GetIframeUrl"] = "GetIframeUrl";
1751
1800
  /**
1752
1801
  * Display specific visualizations on a Liveboard.
1753
1802
  * @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
@@ -2618,6 +2667,9 @@ var Param;
2618
2667
  Param["FocusSearchBarOnRender"] = "focusSearchBarOnRender";
2619
2668
  Param["DisableRedirectionLinksInNewTab"] = "disableRedirectionLinksInNewTab";
2620
2669
  Param["HomePageSearchBarMode"] = "homePageSearchBarMode";
2670
+ Param["ShowLiveboardVerifiedBadge"] = "showLiveboardVerifiedBadge";
2671
+ Param["ShowLiveboardReverifyBanner"] = "showLiveboardReverifyBanner";
2672
+ Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
2621
2673
  })(Param || (Param = {}));
2622
2674
  /**
2623
2675
  * ThoughtSpot application pages include actions and menu commands
@@ -6687,6 +6739,20 @@ class AnswerService {
6687
6739
  credentials: 'include',
6688
6740
  });
6689
6741
  }
6742
+ /**
6743
+ * Fetch the data for the answer as a PNG blob. This might be
6744
+ * quicker for larger data.
6745
+ * @param userLocale
6746
+ * @param omitBackground Omit the background in the PNG
6747
+ * @param deviceScaleFactor The scale factor for the PNG
6748
+ * @return Response
6749
+ */
6750
+ async fetchPNGBlob(userLocale = 'en-us', includeInfo = false, omitBackground = false, deviceScaleFactor = 2) {
6751
+ const fetchUrl = this.getFetchPNGBlobUrl(userLocale, omitBackground, deviceScaleFactor);
6752
+ return tokenizedFetch(fetchUrl, {
6753
+ credentials: 'include',
6754
+ });
6755
+ }
6690
6756
  /**
6691
6757
  * Just get the internal URL for this answer's data
6692
6758
  * as a CSV blob.
@@ -6697,6 +6763,13 @@ class AnswerService {
6697
6763
  getFetchCSVBlobUrl(userLocale = 'en-us', includeInfo = false) {
6698
6764
  return `${this.thoughtSpotHost}/prism/download/answer/csv?sessionId=${this.session.sessionId}&genNo=${this.session.genNo}&userLocale=${userLocale}&exportFileName=data&hideCsvHeader=${!includeInfo}`;
6699
6765
  }
6766
+ /**
6767
+ * Just get the internal URL for this answer's data
6768
+ * as a PNG blob.
6769
+ */
6770
+ getFetchPNGBlobUrl(userLocale = 'en-us', omitBackground = false, deviceScaleFactor = 2) {
6771
+ return `${this.thoughtSpotHost}/prism/download/answer/png?sessionId=${this.session.sessionId}&deviceScaleFactor=${deviceScaleFactor}&omitBackground=${omitBackground}&genNo=${this.session.genNo}&userLocale=${userLocale}&exportFileName=data`;
6772
+ }
6700
6773
  /**
6701
6774
  * Get underlying data given a point and the output column names.
6702
6775
  * In case of a context menu action, the selectedPoints are
@@ -13873,8 +13946,8 @@ function processNoCookieAccess(e, containerEl) {
13873
13946
  * @param containerEl
13874
13947
  */
13875
13948
  function processAuthFailure(e, containerEl) {
13876
- const { loginFailedMessage, authType } = getEmbedConfig();
13877
- if (authType !== AuthType.None) {
13949
+ const { loginFailedMessage, authType, disableLoginFailurePage } = getEmbedConfig();
13950
+ if (authType !== AuthType.None && !disableLoginFailurePage) {
13878
13951
  // eslint-disable-next-line no-param-reassign
13879
13952
  containerEl.innerHTML = loginFailedMessage;
13880
13953
  notifyAuthFailure(AuthFailureType.OTHER);
@@ -13975,7 +14048,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
13975
14048
  });
13976
14049
  }
13977
14050
 
13978
- var name="@thoughtspot/visual-embed-sdk";var version="1.32.4";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","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.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/mixpanel-browser":"^2.35.6","@types/lodash":"^4.17.0","@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","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","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:"2.30.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,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"48 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};
14051
+ var name="@thoughtspot/visual-embed-sdk";var version="1.32.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","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.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/mixpanel-browser":"^2.35.6","@types/lodash":"^4.17.0","@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","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","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:"2.30.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,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"48 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};
13979
14052
 
13980
14053
  /**
13981
14054
  * Copyright (c) 2022
@@ -14935,7 +15008,7 @@ class TsEmbed {
14935
15008
  * @version SDK: 1.25.0 / ThoughtSpot 9.10.0
14936
15009
  */
14937
15010
  async getAnswerService(vizId) {
14938
- const { session } = await this.trigger(HostEvent.GetAnswerSession, vizId);
15011
+ const { session } = await this.trigger(HostEvent.GetAnswerSession, vizId ? { vizId } : {});
14939
15012
  return new AnswerService(session, null, this.embedConfig.thoughtSpotHost);
14940
15013
  }
14941
15014
  }
@@ -14950,7 +15023,6 @@ class V1Embed extends TsEmbed {
14950
15023
  super(domSelector, viewConfig);
14951
15024
  /**
14952
15025
  * Only for testing purposes.
14953
- *
14954
15026
  * @hidden
14955
15027
  */
14956
15028
  // eslint-disable-next-line camelcase
@@ -15416,7 +15488,7 @@ class AppEmbed extends V1Embed {
15416
15488
  getEmbedParams() {
15417
15489
  const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15418
15490
  /* eslint-disable-next-line max-len */
15419
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, homePageSearchBarMode, } = this.viewConfig;
15491
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
15420
15492
  let params = {};
15421
15493
  params[Param.EmbedApp] = true;
15422
15494
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
@@ -15428,6 +15500,9 @@ class AppEmbed extends V1Embed {
15428
15500
  params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
15429
15501
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
15430
15502
  params[Param.IsFullAppEmbed] = true;
15503
+ params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
15504
+ params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
15505
+ params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
15431
15506
  params = this.getBaseQueryParams(params);
15432
15507
  if (fullHeight === true) {
15433
15508
  params[Param.fullHeight] = true;
@@ -15700,7 +15775,7 @@ class LiveboardEmbed extends V1Embed {
15700
15775
  let params = {};
15701
15776
  params[Param.EmbedApp] = true;
15702
15777
  params = this.getBaseQueryParams(params);
15703
- const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, } = this.viewConfig;
15778
+ const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, } = this.viewConfig;
15704
15779
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
15705
15780
  || this.viewConfig.preventPinboardFilterRemoval;
15706
15781
  if (fullHeight === true) {
@@ -15744,6 +15819,9 @@ class LiveboardEmbed extends V1Embed {
15744
15819
  params[Param.enableAskSage] = enableAskSage;
15745
15820
  }
15746
15821
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
15822
+ params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
15823
+ params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
15824
+ params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
15747
15825
  params[Param.DataPanelV2Enabled] = dataPanelV2;
15748
15826
  const queryParams = getQueryParamString(params, true);
15749
15827
  return queryParams;
@@ -1578,21 +1578,61 @@
1578
1578
  */
1579
1579
  EmbedEvent["Rename"] = "rename";
1580
1580
  /**
1581
- * Emitted when user wants to intercept the search execution
1581
+ * Emitted if the user wants to intercept the search execution
1582
+ * and implement logic to decide whether to run the search or not
1582
1583
  *
1583
- * Set IsOnBeforeGetVizDataInterceptEnabled : true to use
1584
- * this embed event
1584
+ * Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
1585
+ * for this embed event to get emitted.
1586
+ *
1587
+ * Parameter: payload
1588
+ * Parameter: responder
1589
+ * Contains elements that lets developers define whether ThoughtSpot
1590
+ * will run the search or not, and if not, which error message to provide.
1591
+ *
1592
+ * execute: When execute returns true, the search will be run.
1593
+ * When execute returns false, the search will not be executed.
1594
+ *
1595
+ * error: Developers can customize the user facing message when execute is
1596
+ * set to false using the error parameter in responder
1597
+ *
1598
+ * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
1585
1599
  *
1586
1600
  *```js
1587
- * searchEmbed.on(EmbedEvent.OnBeforeGetVizDataIntercept,
1601
+ * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
1588
1602
  * (payload, responder) => {
1589
1603
  * responder({
1590
1604
  * data: {
1591
- * execute: true,
1592
- * }})
1605
+ * execute:false,
1606
+ * error: {
1607
+ * //Provide a custom error message to explain to your end user
1608
+ * //why their search did not run
1609
+ * errorText: "This search query cannot be run.
1610
+ * Please contact your administrator for more details."
1611
+ * }
1612
+ * }})
1613
+ * })
1614
+ * ```
1615
+ *
1616
+ *```js
1617
+ * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
1618
+ * (payload, responder) => {
1619
+ * const query = payload.data.data.answer.search_query
1620
+ * responder({
1621
+ * data: {
1622
+ * // returns true as long as the query does not include
1623
+ * // both the 'sales' AND the 'county' column
1624
+ * execute: !(query.includes("sales")&&query.includes("county")),
1625
+ * error: {
1626
+ * //Provide a custom error message to explain to your end user
1627
+ * // why their search did not run, and which searches are accepted by your custom logic.
1628
+ * errorText: "You can't use this query :" + query + ".
1629
+ * The 'sales' measures can never be used at the 'county' level.
1630
+ * Please try another measure, or remove 'county' from your search."
1631
+ * }
1632
+ * }})
1593
1633
  * })
1594
1634
  *```
1595
- * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
1635
+ *
1596
1636
  */
1597
1637
  EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
1598
1638
  /**
@@ -1689,6 +1729,15 @@
1689
1729
  * @hidden
1690
1730
  */
1691
1731
  HostEvent["Reload"] = "reload";
1732
+ /**
1733
+ * Get current iframe src
1734
+ * @example
1735
+ * ```js
1736
+ * const frameUrl = AppEmbed.trigger(HostEvent.GetIframeUrl)
1737
+ * ```
1738
+ * @version SDK: 1.35.0 | Thoughtspot: 10.4.0.cl
1739
+ */
1740
+ HostEvent["GetIframeUrl"] = "GetIframeUrl";
1692
1741
  /**
1693
1742
  * Display specific visualizations on a Liveboard.
1694
1743
  * @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
@@ -2559,6 +2608,9 @@
2559
2608
  Param["FocusSearchBarOnRender"] = "focusSearchBarOnRender";
2560
2609
  Param["DisableRedirectionLinksInNewTab"] = "disableRedirectionLinksInNewTab";
2561
2610
  Param["HomePageSearchBarMode"] = "homePageSearchBarMode";
2611
+ Param["ShowLiveboardVerifiedBadge"] = "showLiveboardVerifiedBadge";
2612
+ Param["ShowLiveboardReverifyBanner"] = "showLiveboardReverifyBanner";
2613
+ Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
2562
2614
  })(Param || (Param = {}));
2563
2615
  (function (Action) {
2564
2616
  /**
@@ -6599,6 +6651,20 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
6599
6651
  credentials: 'include',
6600
6652
  });
6601
6653
  }
6654
+ /**
6655
+ * Fetch the data for the answer as a PNG blob. This might be
6656
+ * quicker for larger data.
6657
+ * @param userLocale
6658
+ * @param omitBackground Omit the background in the PNG
6659
+ * @param deviceScaleFactor The scale factor for the PNG
6660
+ * @return Response
6661
+ */
6662
+ async fetchPNGBlob(userLocale = 'en-us', includeInfo = false, omitBackground = false, deviceScaleFactor = 2) {
6663
+ const fetchUrl = this.getFetchPNGBlobUrl(userLocale, omitBackground, deviceScaleFactor);
6664
+ return tokenizedFetch(fetchUrl, {
6665
+ credentials: 'include',
6666
+ });
6667
+ }
6602
6668
  /**
6603
6669
  * Just get the internal URL for this answer's data
6604
6670
  * as a CSV blob.
@@ -6609,6 +6675,13 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
6609
6675
  getFetchCSVBlobUrl(userLocale = 'en-us', includeInfo = false) {
6610
6676
  return `${this.thoughtSpotHost}/prism/download/answer/csv?sessionId=${this.session.sessionId}&genNo=${this.session.genNo}&userLocale=${userLocale}&exportFileName=data&hideCsvHeader=${!includeInfo}`;
6611
6677
  }
6678
+ /**
6679
+ * Just get the internal URL for this answer's data
6680
+ * as a PNG blob.
6681
+ */
6682
+ getFetchPNGBlobUrl(userLocale = 'en-us', omitBackground = false, deviceScaleFactor = 2) {
6683
+ return `${this.thoughtSpotHost}/prism/download/answer/png?sessionId=${this.session.sessionId}&deviceScaleFactor=${deviceScaleFactor}&omitBackground=${omitBackground}&genNo=${this.session.genNo}&userLocale=${userLocale}&exportFileName=data`;
6684
+ }
6612
6685
  /**
6613
6686
  * Get underlying data given a point and the output column names.
6614
6687
  * In case of a context menu action, the selectedPoints are
@@ -13785,8 +13858,8 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13785
13858
  * @param containerEl
13786
13859
  */
13787
13860
  function processAuthFailure(e, containerEl) {
13788
- const { loginFailedMessage, authType } = getEmbedConfig();
13789
- if (authType !== AuthType.None) {
13861
+ const { loginFailedMessage, authType, disableLoginFailurePage } = getEmbedConfig();
13862
+ if (authType !== AuthType.None && !disableLoginFailurePage) {
13790
13863
  // eslint-disable-next-line no-param-reassign
13791
13864
  containerEl.innerHTML = loginFailedMessage;
13792
13865
  notifyAuthFailure(AuthFailureType.OTHER);
@@ -13887,7 +13960,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13887
13960
  });
13888
13961
  }
13889
13962
 
13890
- var name="@thoughtspot/visual-embed-sdk";var version="1.32.4";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","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.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/mixpanel-browser":"^2.35.6","@types/lodash":"^4.17.0","@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","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","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:"2.30.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,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"48 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};
13963
+ var name="@thoughtspot/visual-embed-sdk";var version="1.32.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","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.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/mixpanel-browser":"^2.35.6","@types/lodash":"^4.17.0","@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","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","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:"2.30.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,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"48 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};
13891
13964
 
13892
13965
  /**
13893
13966
  * Copyright (c) 2022
@@ -14847,7 +14920,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14847
14920
  * @version SDK: 1.25.0 / ThoughtSpot 9.10.0
14848
14921
  */
14849
14922
  async getAnswerService(vizId) {
14850
- const { session } = await this.trigger(exports.HostEvent.GetAnswerSession, vizId);
14923
+ const { session } = await this.trigger(exports.HostEvent.GetAnswerSession, vizId ? { vizId } : {});
14851
14924
  return new AnswerService(session, null, this.embedConfig.thoughtSpotHost);
14852
14925
  }
14853
14926
  }
@@ -14862,7 +14935,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14862
14935
  super(domSelector, viewConfig);
14863
14936
  /**
14864
14937
  * Only for testing purposes.
14865
- *
14866
14938
  * @hidden
14867
14939
  */
14868
14940
  // eslint-disable-next-line camelcase
@@ -15323,7 +15395,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
15323
15395
  getEmbedParams() {
15324
15396
  const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15325
15397
  /* eslint-disable-next-line max-len */
15326
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, homePageSearchBarMode, } = this.viewConfig;
15398
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
15327
15399
  let params = {};
15328
15400
  params[Param.EmbedApp] = true;
15329
15401
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
@@ -15335,6 +15407,9 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
15335
15407
  params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
15336
15408
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
15337
15409
  params[Param.IsFullAppEmbed] = true;
15410
+ params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
15411
+ params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
15412
+ params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
15338
15413
  params = this.getBaseQueryParams(params);
15339
15414
  if (fullHeight === true) {
15340
15415
  params[Param.fullHeight] = true;
@@ -15607,7 +15682,7 @@ query GetEurekaVizSnapshots(
15607
15682
  let params = {};
15608
15683
  params[Param.EmbedApp] = true;
15609
15684
  params = this.getBaseQueryParams(params);
15610
- const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, } = this.viewConfig;
15685
+ const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, } = this.viewConfig;
15611
15686
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
15612
15687
  || this.viewConfig.preventPinboardFilterRemoval;
15613
15688
  if (fullHeight === true) {
@@ -15651,6 +15726,9 @@ query GetEurekaVizSnapshots(
15651
15726
  params[Param.enableAskSage] = enableAskSage;
15652
15727
  }
15653
15728
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
15729
+ params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
15730
+ params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
15731
+ params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
15654
15732
  params[Param.DataPanelV2Enabled] = dataPanelV2;
15655
15733
  const queryParams = getQueryParamString(params, true);
15656
15734
  return queryParams;