@thoughtspot/visual-embed-sdk 1.39.0 → 1.39.2-alpha.1

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 (109) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/app.d.ts +13 -13
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js +2 -1
  5. package/cjs/src/embed/app.js.map +1 -1
  6. package/cjs/src/embed/app.spec.js +18 -8
  7. package/cjs/src/embed/app.spec.js.map +1 -1
  8. package/cjs/src/embed/conversation.d.ts +64 -6
  9. package/cjs/src/embed/conversation.d.ts.map +1 -1
  10. package/cjs/src/embed/conversation.js +9 -1
  11. package/cjs/src/embed/conversation.js.map +1 -1
  12. package/cjs/src/embed/conversation.spec.js +130 -0
  13. package/cjs/src/embed/conversation.spec.js.map +1 -1
  14. package/cjs/src/embed/embedConfig.d.ts +49 -4
  15. package/cjs/src/embed/embedConfig.d.ts.map +1 -1
  16. package/cjs/src/embed/embedConfig.js +49 -4
  17. package/cjs/src/embed/embedConfig.js.map +1 -1
  18. package/cjs/src/embed/liveboard.d.ts +2 -19
  19. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  20. package/cjs/src/embed/liveboard.js +3 -5
  21. package/cjs/src/embed/liveboard.js.map +1 -1
  22. package/cjs/src/embed/liveboard.spec.js +12 -11
  23. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  24. package/cjs/src/embed/sage.d.ts +10 -10
  25. package/cjs/src/embed/search.d.ts +4 -4
  26. package/cjs/src/embed/ts-embed.d.ts +5 -0
  27. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  28. package/cjs/src/embed/ts-embed.js +16 -1
  29. package/cjs/src/embed/ts-embed.js.map +1 -1
  30. package/cjs/src/embed/ts-embed.spec.js +164 -0
  31. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  32. package/cjs/src/types.d.ts +41 -8
  33. package/cjs/src/types.d.ts.map +1 -1
  34. package/cjs/src/types.js +23 -6
  35. package/cjs/src/types.js.map +1 -1
  36. package/dist/{index-sSREbWM-.js → index-CmEQfuE3.js} +1 -1
  37. package/dist/index-DeFzsyFF.js +7371 -0
  38. package/dist/index-Dpf0rd6w.js +7371 -0
  39. package/dist/index-UuEbsISo.js +7447 -0
  40. package/dist/src/embed/app.d.ts +13 -13
  41. package/dist/src/embed/app.d.ts.map +1 -1
  42. package/dist/src/embed/conversation.d.ts +64 -6
  43. package/dist/src/embed/conversation.d.ts.map +1 -1
  44. package/dist/src/embed/embedConfig.d.ts +49 -4
  45. package/dist/src/embed/embedConfig.d.ts.map +1 -1
  46. package/dist/src/embed/liveboard.d.ts +2 -19
  47. package/dist/src/embed/liveboard.d.ts.map +1 -1
  48. package/dist/src/embed/sage.d.ts +10 -10
  49. package/dist/src/embed/search.d.ts +4 -4
  50. package/dist/src/embed/ts-embed.d.ts +5 -0
  51. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  52. package/dist/src/types.d.ts +41 -8
  53. package/dist/src/types.d.ts.map +1 -1
  54. package/dist/tsembed-react.es.js +105 -21
  55. package/dist/tsembed-react.js +104 -20
  56. package/dist/tsembed.es.js +105 -21
  57. package/dist/tsembed.js +104 -20
  58. package/dist/visual-embed-sdk-react-full.d.ts +182 -63
  59. package/dist/visual-embed-sdk-react.d.ts +182 -63
  60. package/dist/visual-embed-sdk.d.ts +182 -63
  61. package/lib/package.json +1 -1
  62. package/lib/src/embed/app.d.ts +13 -13
  63. package/lib/src/embed/app.d.ts.map +1 -1
  64. package/lib/src/embed/app.js +2 -1
  65. package/lib/src/embed/app.js.map +1 -1
  66. package/lib/src/embed/app.spec.js +19 -9
  67. package/lib/src/embed/app.spec.js.map +1 -1
  68. package/lib/src/embed/conversation.d.ts +64 -6
  69. package/lib/src/embed/conversation.d.ts.map +1 -1
  70. package/lib/src/embed/conversation.js +10 -2
  71. package/lib/src/embed/conversation.js.map +1 -1
  72. package/lib/src/embed/conversation.spec.js +133 -3
  73. package/lib/src/embed/conversation.spec.js.map +1 -1
  74. package/lib/src/embed/embedConfig.d.ts +49 -4
  75. package/lib/src/embed/embedConfig.d.ts.map +1 -1
  76. package/lib/src/embed/embedConfig.js +49 -4
  77. package/lib/src/embed/embedConfig.js.map +1 -1
  78. package/lib/src/embed/liveboard.d.ts +2 -19
  79. package/lib/src/embed/liveboard.d.ts.map +1 -1
  80. package/lib/src/embed/liveboard.js +3 -5
  81. package/lib/src/embed/liveboard.js.map +1 -1
  82. package/lib/src/embed/liveboard.spec.js +12 -11
  83. package/lib/src/embed/liveboard.spec.js.map +1 -1
  84. package/lib/src/embed/sage.d.ts +10 -10
  85. package/lib/src/embed/search.d.ts +4 -4
  86. package/lib/src/embed/ts-embed.d.ts +5 -0
  87. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  88. package/lib/src/embed/ts-embed.js +16 -1
  89. package/lib/src/embed/ts-embed.js.map +1 -1
  90. package/lib/src/embed/ts-embed.spec.js +164 -0
  91. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  92. package/lib/src/types.d.ts +41 -8
  93. package/lib/src/types.d.ts.map +1 -1
  94. package/lib/src/types.js +23 -6
  95. package/lib/src/types.js.map +1 -1
  96. package/lib/src/visual-embed-sdk.d.ts +183 -64
  97. package/package.json +1 -1
  98. package/src/embed/app.spec.ts +36 -23
  99. package/src/embed/app.ts +15 -13
  100. package/src/embed/conversation.spec.ts +170 -6
  101. package/src/embed/conversation.ts +86 -14
  102. package/src/embed/embedConfig.ts +50 -5
  103. package/src/embed/liveboard.spec.ts +5 -4
  104. package/src/embed/liveboard.ts +4 -24
  105. package/src/embed/sage.ts +10 -10
  106. package/src/embed/search.ts +4 -4
  107. package/src/embed/ts-embed.spec.ts +225 -0
  108. package/src/embed/ts-embed.ts +19 -0
  109. package/src/types.ts +82 -49
package/dist/tsembed.js CHANGED
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.39.0 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.39.2-alpha.1 */
2
2
  'use client';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -1728,7 +1728,7 @@
1728
1728
  *
1729
1729
  * error: Developers can customize the error message text when `execute`
1730
1730
  * returns `false` using the error parameter in responder.
1731
- * @version SDK : 1.29.0 | ThoughtSpot : 10.3.0.cl
1731
+ * @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
1732
1732
  * @example
1733
1733
  *```js
1734
1734
  * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
@@ -1775,7 +1775,7 @@
1775
1775
  * console.log('payload', payload);
1776
1776
  * })
1777
1777
  *```
1778
- * @version SDK : 1.29.0 | ThoughtSpot : 10.3.0.cl
1778
+ * @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
1779
1779
  */
1780
1780
  EmbedEvent["ParameterChanged"] = "parameterChanged";
1781
1781
  /**
@@ -1831,18 +1831,18 @@
1831
1831
  * console.log('payload', payload);
1832
1832
  * })
1833
1833
  *```
1834
- * @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
1834
+ * @version SDK : 1.37.0 | ThoughtSpot: 10.8.0.cl
1835
1835
  */
1836
1836
  EmbedEvent["CreateLiveboard"] = "createLiveboard";
1837
1837
  /**
1838
1838
  * Emitted when a user creates a Model.
1839
- * @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
1839
+ * @version SDK : 1.37.0 | ThoughtSpot: 10.8.0.cl
1840
1840
  */
1841
1841
  EmbedEvent["CreateModel"] = "createModel";
1842
1842
  /**
1843
1843
  * @hidden
1844
1844
  * Emitted when a user exits present mode.
1845
- * @version SDK : 1.40.0 | ThoughtSpot : 10.11.0.cl
1845
+ * @version SDK : 1.40.0 | ThoughtSpot: 10.11.0.cl
1846
1846
  */
1847
1847
  EmbedEvent["ExitPresentMode"] = "exitPresentMode";
1848
1848
  })(exports.EmbedEvent || (exports.EmbedEvent = {}));
@@ -3068,7 +3068,7 @@
3068
3068
  Param["DataSourceId"] = "dataSourceId";
3069
3069
  Param["preAuthCache"] = "preAuthCache";
3070
3070
  Param["ShowSpotterLimitations"] = "showSpotterLimitations";
3071
- Param["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
3071
+ Param["CoverAndFilterOptionInPDF"] = "arePdfCoverFilterPageCheckboxesEnabled";
3072
3072
  Param["PrimaryAction"] = "primaryAction";
3073
3073
  Param["isSpotterAgentEmbed"] = "isSpotterAgentEmbed";
3074
3074
  Param["IsLiveboardStylingAndGroupingEnabled"] = "isLiveboardStylingAndGroupingEnabled";
@@ -3098,6 +3098,7 @@
3098
3098
  * hiddenActions: [Action.Edit, ActionAction.Explore],
3099
3099
  * })
3100
3100
  * ```
3101
+ * See also link:https://developers.thoughtspot.com/docs/actions[Action IDs in the SDK]
3101
3102
  */
3102
3103
  // eslint-disable-next-line no-shadow
3103
3104
  exports.Action = void 0;
@@ -4293,6 +4294,22 @@
4293
4294
  * @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
4294
4295
  */
4295
4296
  Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
4297
+ /**
4298
+ * Action ID for hide or disable the
4299
+ * Spotter in conversation training widget.
4300
+ * The Add to Coaching feature is currently in beta
4301
+ * and is disabled by default on embed deployments.
4302
+ * To enable this feature on your instance,
4303
+ * contact ThoughtSpot Support.
4304
+ * @example
4305
+ * ```js
4306
+ * hiddenAction: [Action.InConversationTraining]
4307
+ * disabledActions: [Action.InConversationTraining]
4308
+ *
4309
+ * ```
4310
+ * @version SDK: 1.39.0 | ThoughtSpot Cloud: 10.10.0.cl
4311
+ */
4312
+ Action["InConversationTraining"] = "InConversationTraining";
4296
4313
  })(exports.Action || (exports.Action = {}));
4297
4314
  exports.PrefetchFeatures = void 0;
4298
4315
  (function (PrefetchFeatures) {
@@ -6960,9 +6977,54 @@
6960
6977
 
6961
6978
  const configKey = 'embedConfig';
6962
6979
  /**
6963
- * Gets the configuration embed was initialized with.
6964
- * @returns {@link EmbedConfig} The configuration embed was initialized with.
6965
- * @version SDK: 1.19.0 | ThoughtSpot: *
6980
+ * Gets the embed configuration settings that were used to
6981
+ * initialize the SDK.
6982
+ * @returns {@link EmbedConfig}
6983
+ *
6984
+ * @example
6985
+ * ```js
6986
+ * import { getInitConfig } from '@thoughtspot/visual-embed-sdk';
6987
+ * // Call the getInitConfig method to retrieve the embed configuration
6988
+ * const config = getInitConfig();
6989
+ * // Log the configuration settings
6990
+ * console.log(config);
6991
+ * ```
6992
+ * Returns the link:https://developers.thoughtspot.com/docs/Interface_EmbedConfig[EmbedConfig]
6993
+ * object, which contains the configuration settings used to
6994
+ * initialize the SDK, including the following:
6995
+ *
6996
+ * - `thoughtSpotHost` - ThoughtSpot host URL
6997
+ * - `authType`: The authentication method used. For example,
6998
+ * `AuthServerCookieless` for `AuthType.TrustedAuthTokenCookieless`
6999
+ * - `customizations` - Style, text, and icon customization settings
7000
+ * that were applied during the SDK initialization.
7001
+ *
7002
+ * The following JSON output shows the embed configuration
7003
+ * settings returned from the code in the previous example:
7004
+ *
7005
+ * @example
7006
+ * ```json
7007
+ * {
7008
+ * "thoughtSpotHost": "https://{ThoughtSpot-Host}",
7009
+ * "authType": "AuthServerCookieless",
7010
+ * "customizations": {
7011
+ * "style": {
7012
+ * "customCSS": {
7013
+ * "variables": {
7014
+ * "--ts-var-button--secondary-background": "#7492d5",
7015
+ * "--ts-var-button--secondary--hovers-background": "#aac2f8",
7016
+ * "--ts-var-root-background": "#f1f4f8"
7017
+ * }
7018
+ * }
7019
+ * }
7020
+ * },
7021
+ * "loginFailedMessage": "Login failed, please try again",
7022
+ * "authTriggerText": "Authorize",
7023
+ * "disableTokenVerification": true,
7024
+ * "authTriggerContainer": "#your-own-div"
7025
+ * }
7026
+ * ```
7027
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw, and later
6966
7028
  * @group Global methods
6967
7029
  */
6968
7030
  const getEmbedConfig = () => getValueFromWindow(configKey) || {};
@@ -6970,7 +7032,7 @@
6970
7032
  * Sets the configuration embed was initialized with.
6971
7033
  * And returns the new configuration.
6972
7034
  * @param newConfig The configuration to set.
6973
- * @version SDK: 1.27.0 | ThoughtSpot: *
7035
+ * @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.1.sw, and later
6974
7036
  * @group Global methods
6975
7037
  */
6976
7038
  const setEmbedConfig = (newConfig) => {
@@ -15504,7 +15566,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15504
15566
  return e;
15505
15567
  }
15506
15568
 
15507
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.39.0";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={classnames:"^2.3.1",eventemitter3:"^4.0.7",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":"^8.28.0","@typescript-eslint/parser":"^8.28.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:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.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",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","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};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};
15569
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.39.2-alpha.1";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={classnames:"^2.3.1",eventemitter3:"^4.0.7",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":"^8.28.0","@typescript-eslint/parser":"^8.28.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:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.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",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","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};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};
15508
15570
 
15509
15571
  /**
15510
15572
  * Reloads the ThoughtSpot iframe.
@@ -15902,10 +15964,25 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15902
15964
  // - cached auth info would be for wrong org
15903
15965
  // - info call response changes for each different overrideOrgId
15904
15966
  // 2. disablePreauthCache is explicitly set to true
15967
+ // 3. FullAppEmbed has primary navbar visible since:
15968
+ // - primary navbar requires fresh auth state for navigation
15969
+ // - cached auth may not reflect current user permissions
15905
15970
  const isDisabled = (this.viewConfig.overrideOrgId !== undefined
15906
- || this.embedConfig.disablePreauthCache === true);
15971
+ || this.embedConfig.disablePreauthCache === true
15972
+ || this.isFullAppEmbedWithVisiblePrimaryNavbar());
15907
15973
  return !isDisabled;
15908
15974
  }
15975
+ /**
15976
+ * Checks if current embed is FullAppEmbed with visible primary navbar
15977
+ * @returns boolean
15978
+ */
15979
+ isFullAppEmbedWithVisiblePrimaryNavbar() {
15980
+ const appViewConfig = this.viewConfig;
15981
+ // Check if this is a FullAppEmbed (AppEmbed)
15982
+ // showPrimaryNavbar defaults to true if not explicitly set to false
15983
+ return (appViewConfig.embedComponentType === 'AppEmbed'
15984
+ && appViewConfig.showPrimaryNavbar === true);
15985
+ }
15909
15986
  /**
15910
15987
  * fix for ts7.sep.cl
15911
15988
  * will be removed for ts7.oct.cl
@@ -17039,7 +17116,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17039
17116
  getEmbedParams() {
17040
17117
  const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
17041
17118
  /* eslint-disable-next-line max-len */
17042
- dataPanelCustomGroupsAccordionInitialState = exports.DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, isLiveboardStylingAndGroupingEnabled, } = this.viewConfig;
17119
+ dataPanelCustomGroupsAccordionInitialState = exports.DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, } = this.viewConfig;
17043
17120
  let params = {};
17044
17121
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
17045
17122
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -17055,6 +17132,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17055
17132
  params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
17056
17133
  params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
17057
17134
  params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
17135
+ params[Param.CoverAndFilterOptionInPDF] = !!coverAndFilterOptionInPDF;
17058
17136
  params = this.getBaseQueryParams(params);
17059
17137
  if (hideObjectSearch) {
17060
17138
  params[Param.HideObjectSearch] = !!hideObjectSearch;
@@ -17374,7 +17452,7 @@ query GetEurekaVizSnapshots(
17374
17452
  getEmbedParams() {
17375
17453
  let params = {};
17376
17454
  params = this.getBaseQueryParams(params);
17377
- const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF, isLiveboardStylingAndGroupingEnabled, } = this.viewConfig;
17455
+ const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, } = this.viewConfig;
17378
17456
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
17379
17457
  || this.viewConfig.preventPinboardFilterRemoval;
17380
17458
  if (fullHeight === true) {
@@ -17426,9 +17504,6 @@ query GetEurekaVizSnapshots(
17426
17504
  if (dataSourceId !== undefined) {
17427
17505
  params[Param.DataSourceId] = dataSourceId;
17428
17506
  }
17429
- if (coverAndFilterOptionInPDF !== undefined) {
17430
- params[Param.CoverAndFilterOptionInPDF] = coverAndFilterOptionInPDF;
17431
- }
17432
17507
  if (isLiveboardStylingAndGroupingEnabled !== undefined) {
17433
17508
  params[Param.IsLiveboardStylingAndGroupingEnabled] = isLiveboardStylingAndGroupingEnabled;
17434
17509
  }
@@ -17439,6 +17514,7 @@ query GetEurekaVizSnapshots(
17439
17514
  params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
17440
17515
  params[Param.DataPanelV2Enabled] = dataPanelV2;
17441
17516
  params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
17517
+ params[Param.CoverAndFilterOptionInPDF] = coverAndFilterOptionInPDF;
17442
17518
  const queryParams = getQueryParamString(params, true);
17443
17519
  return queryParams;
17444
17520
  }
@@ -17565,7 +17641,7 @@ query GetEurekaVizSnapshots(
17565
17641
  }
17566
17642
  /**
17567
17643
  * Returns the full url of the Liveboard/visualization which can be used to open
17568
- * this Liveboard inside the full Thoughtspot application in a new tab.
17644
+ * this Liveboard inside the full ThoughtSpot application in a new tab.
17569
17645
  * @returns url string
17570
17646
  */
17571
17647
  getLiveboardUrl() {
@@ -18364,7 +18440,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
18364
18440
  this.viewConfig = viewConfig;
18365
18441
  }
18366
18442
  getIframeSrc() {
18367
- const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, } = this.viewConfig;
18443
+ const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, } = this.viewConfig;
18368
18444
  const path = 'insights/conv-assist';
18369
18445
  if (!worksheetId) {
18370
18446
  this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
@@ -18391,6 +18467,14 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
18391
18467
  if (queryParamsString) {
18392
18468
  query = `?${queryParamsString}`;
18393
18469
  }
18470
+ const filterQuery = getFilterQuery(runtimeFilters || []);
18471
+ if (filterQuery && !excludeRuntimeFiltersfromURL) {
18472
+ query += `&${filterQuery}`;
18473
+ }
18474
+ const parameterQuery = getRuntimeParameters(runtimeParameters || []);
18475
+ if (parameterQuery && !excludeRuntimeParametersfromURL) {
18476
+ query += `&${parameterQuery}`;
18477
+ }
18394
18478
  const tsPostHashParams = this.getThoughtSpotPostUrlParams({
18395
18479
  worksheet: worksheetId,
18396
18480
  query: (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchQuery) || '',