@thoughtspot/visual-embed-sdk 1.39.1 → 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 (98) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/app.d.ts.map +1 -1
  3. package/cjs/src/embed/app.js +2 -1
  4. package/cjs/src/embed/app.js.map +1 -1
  5. package/cjs/src/embed/app.spec.js +18 -8
  6. package/cjs/src/embed/app.spec.js.map +1 -1
  7. package/cjs/src/embed/conversation.d.ts +60 -2
  8. package/cjs/src/embed/conversation.d.ts.map +1 -1
  9. package/cjs/src/embed/conversation.js +9 -1
  10. package/cjs/src/embed/conversation.js.map +1 -1
  11. package/cjs/src/embed/conversation.spec.js +130 -0
  12. package/cjs/src/embed/conversation.spec.js.map +1 -1
  13. package/cjs/src/embed/embedConfig.d.ts +9 -7
  14. package/cjs/src/embed/embedConfig.d.ts.map +1 -1
  15. package/cjs/src/embed/embedConfig.js +9 -7
  16. package/cjs/src/embed/embedConfig.js.map +1 -1
  17. package/cjs/src/embed/liveboard.d.ts +0 -17
  18. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  19. package/cjs/src/embed/liveboard.js +2 -4
  20. package/cjs/src/embed/liveboard.js.map +1 -1
  21. package/cjs/src/embed/liveboard.spec.js +12 -11
  22. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  23. package/cjs/src/embed/ts-embed.d.ts +5 -0
  24. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  25. package/cjs/src/embed/ts-embed.js +16 -1
  26. package/cjs/src/embed/ts-embed.js.map +1 -1
  27. package/cjs/src/embed/ts-embed.spec.js +164 -0
  28. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  29. package/cjs/src/types.d.ts +34 -2
  30. package/cjs/src/types.d.ts.map +1 -1
  31. package/cjs/src/types.js +17 -1
  32. package/cjs/src/types.js.map +1 -1
  33. package/dist/{index-JaFaxrvQ.js → index-CmEQfuE3.js} +1 -1
  34. package/dist/index-DeFzsyFF.js +7371 -0
  35. package/dist/index-Dpf0rd6w.js +7371 -0
  36. package/dist/index-UuEbsISo.js +7447 -0
  37. package/dist/src/embed/app.d.ts.map +1 -1
  38. package/dist/src/embed/conversation.d.ts +60 -2
  39. package/dist/src/embed/conversation.d.ts.map +1 -1
  40. package/dist/src/embed/embedConfig.d.ts +9 -7
  41. package/dist/src/embed/embedConfig.d.ts.map +1 -1
  42. package/dist/src/embed/liveboard.d.ts +0 -17
  43. package/dist/src/embed/liveboard.d.ts.map +1 -1
  44. package/dist/src/embed/ts-embed.d.ts +5 -0
  45. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  46. package/dist/src/types.d.ts +34 -2
  47. package/dist/src/types.d.ts.map +1 -1
  48. package/dist/tsembed-react.es.js +58 -18
  49. package/dist/tsembed-react.js +57 -17
  50. package/dist/tsembed.es.js +58 -18
  51. package/dist/tsembed.js +57 -17
  52. package/dist/visual-embed-sdk-react-full.d.ts +102 -27
  53. package/dist/visual-embed-sdk-react.d.ts +102 -27
  54. package/dist/visual-embed-sdk.d.ts +102 -27
  55. package/lib/package.json +1 -1
  56. package/lib/src/embed/app.d.ts.map +1 -1
  57. package/lib/src/embed/app.js +2 -1
  58. package/lib/src/embed/app.js.map +1 -1
  59. package/lib/src/embed/app.spec.js +19 -9
  60. package/lib/src/embed/app.spec.js.map +1 -1
  61. package/lib/src/embed/conversation.d.ts +60 -2
  62. package/lib/src/embed/conversation.d.ts.map +1 -1
  63. package/lib/src/embed/conversation.js +10 -2
  64. package/lib/src/embed/conversation.js.map +1 -1
  65. package/lib/src/embed/conversation.spec.js +133 -3
  66. package/lib/src/embed/conversation.spec.js.map +1 -1
  67. package/lib/src/embed/embedConfig.d.ts +9 -7
  68. package/lib/src/embed/embedConfig.d.ts.map +1 -1
  69. package/lib/src/embed/embedConfig.js +9 -7
  70. package/lib/src/embed/embedConfig.js.map +1 -1
  71. package/lib/src/embed/liveboard.d.ts +0 -17
  72. package/lib/src/embed/liveboard.d.ts.map +1 -1
  73. package/lib/src/embed/liveboard.js +2 -4
  74. package/lib/src/embed/liveboard.js.map +1 -1
  75. package/lib/src/embed/liveboard.spec.js +12 -11
  76. package/lib/src/embed/liveboard.spec.js.map +1 -1
  77. package/lib/src/embed/ts-embed.d.ts +5 -0
  78. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  79. package/lib/src/embed/ts-embed.js +16 -1
  80. package/lib/src/embed/ts-embed.js.map +1 -1
  81. package/lib/src/embed/ts-embed.spec.js +164 -0
  82. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  83. package/lib/src/types.d.ts +34 -2
  84. package/lib/src/types.d.ts.map +1 -1
  85. package/lib/src/types.js +17 -1
  86. package/lib/src/types.js.map +1 -1
  87. package/lib/src/visual-embed-sdk.d.ts +103 -28
  88. package/package.json +1 -1
  89. package/src/embed/app.spec.ts +36 -23
  90. package/src/embed/app.ts +2 -0
  91. package/src/embed/conversation.spec.ts +170 -6
  92. package/src/embed/conversation.ts +82 -10
  93. package/src/embed/embedConfig.ts +10 -8
  94. package/src/embed/liveboard.spec.ts +5 -4
  95. package/src/embed/liveboard.ts +2 -22
  96. package/src/embed/ts-embed.spec.ts +225 -0
  97. package/src/embed/ts-embed.ts +19 -0
  98. package/src/types.ts +75 -43
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.39.1 */
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, require('react')) :
@@ -2830,7 +2830,7 @@
2830
2830
  Param["DataSourceId"] = "dataSourceId";
2831
2831
  Param["preAuthCache"] = "preAuthCache";
2832
2832
  Param["ShowSpotterLimitations"] = "showSpotterLimitations";
2833
- Param["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
2833
+ Param["CoverAndFilterOptionInPDF"] = "arePdfCoverFilterPageCheckboxesEnabled";
2834
2834
  Param["PrimaryAction"] = "primaryAction";
2835
2835
  Param["isSpotterAgentEmbed"] = "isSpotterAgentEmbed";
2836
2836
  Param["IsLiveboardStylingAndGroupingEnabled"] = "isLiveboardStylingAndGroupingEnabled";
@@ -4056,6 +4056,22 @@
4056
4056
  * @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
4057
4057
  */
4058
4058
  Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
4059
+ /**
4060
+ * Action ID for hide or disable the
4061
+ * Spotter in conversation training widget.
4062
+ * The Add to Coaching feature is currently in beta
4063
+ * and is disabled by default on embed deployments.
4064
+ * To enable this feature on your instance,
4065
+ * contact ThoughtSpot Support.
4066
+ * @example
4067
+ * ```js
4068
+ * hiddenAction: [Action.InConversationTraining]
4069
+ * disabledActions: [Action.InConversationTraining]
4070
+ *
4071
+ * ```
4072
+ * @version SDK: 1.39.0 | ThoughtSpot Cloud: 10.10.0.cl
4073
+ */
4074
+ Action["InConversationTraining"] = "InConversationTraining";
4059
4075
  })(exports.Action || (exports.Action = {}));
4060
4076
  var PrefetchFeatures;
4061
4077
  (function (PrefetchFeatures) {
@@ -7098,13 +7114,14 @@
7098
7114
  *
7099
7115
  * @example
7100
7116
  * ```js
7117
+ * import { getInitConfig } from '@thoughtspot/visual-embed-sdk';
7118
+ * // Call the getInitConfig method to retrieve the embed configuration
7101
7119
  * const config = getInitConfig();
7120
+ * // Log the configuration settings
7102
7121
  * console.log(config);
7103
7122
  * ```
7104
- * @example
7105
- *
7106
- * Returns the `EmbedConfig` object, which
7107
- * contains the configuration settings used to
7123
+ * Returns the link:https://developers.thoughtspot.com/docs/Interface_EmbedConfig[EmbedConfig]
7124
+ * object, which contains the configuration settings used to
7108
7125
  * initialize the SDK, including the following:
7109
7126
  *
7110
7127
  * - `thoughtSpotHost` - ThoughtSpot host URL
@@ -7113,9 +7130,10 @@
7113
7130
  * - `customizations` - Style, text, and icon customization settings
7114
7131
  * that were applied during the SDK initialization.
7115
7132
  *
7116
- * For a comprehensive list of embed configuration settings,
7117
- * see link:https://developers.thoughtspot.com/docs/Interface_EmbedConfig[Developer Documentation].
7133
+ * The following JSON output shows the embed configuration
7134
+ * settings returned from the code in the previous example:
7118
7135
  *
7136
+ * @example
7119
7137
  * ```json
7120
7138
  * {
7121
7139
  * "thoughtSpotHost": "https://{ThoughtSpot-Host}",
@@ -7137,7 +7155,7 @@
7137
7155
  * "authTriggerContainer": "#your-own-div"
7138
7156
  * }
7139
7157
  * ```
7140
- * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.cl, and later
7158
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw, and later
7141
7159
  * @group Global methods
7142
7160
  */
7143
7161
  const getEmbedConfig = () => getValueFromWindow(configKey) || {};
@@ -15513,7 +15531,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15513
15531
  return e;
15514
15532
  }
15515
15533
 
15516
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.39.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};
15534
+ 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};
15517
15535
 
15518
15536
  /**
15519
15537
  * Reloads the ThoughtSpot iframe.
@@ -15911,10 +15929,25 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15911
15929
  // - cached auth info would be for wrong org
15912
15930
  // - info call response changes for each different overrideOrgId
15913
15931
  // 2. disablePreauthCache is explicitly set to true
15932
+ // 3. FullAppEmbed has primary navbar visible since:
15933
+ // - primary navbar requires fresh auth state for navigation
15934
+ // - cached auth may not reflect current user permissions
15914
15935
  const isDisabled = (this.viewConfig.overrideOrgId !== undefined
15915
- || this.embedConfig.disablePreauthCache === true);
15936
+ || this.embedConfig.disablePreauthCache === true
15937
+ || this.isFullAppEmbedWithVisiblePrimaryNavbar());
15916
15938
  return !isDisabled;
15917
15939
  }
15940
+ /**
15941
+ * Checks if current embed is FullAppEmbed with visible primary navbar
15942
+ * @returns boolean
15943
+ */
15944
+ isFullAppEmbedWithVisiblePrimaryNavbar() {
15945
+ const appViewConfig = this.viewConfig;
15946
+ // Check if this is a FullAppEmbed (AppEmbed)
15947
+ // showPrimaryNavbar defaults to true if not explicitly set to false
15948
+ return (appViewConfig.embedComponentType === 'AppEmbed'
15949
+ && appViewConfig.showPrimaryNavbar === true);
15950
+ }
15918
15951
  /**
15919
15952
  * fix for ts7.sep.cl
15920
15953
  * will be removed for ts7.oct.cl
@@ -17376,7 +17409,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17376
17409
  getEmbedParams() {
17377
17410
  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,
17378
17411
  /* eslint-disable-next-line max-len */
17379
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, isLiveboardStylingAndGroupingEnabled, } = this.viewConfig;
17412
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, } = this.viewConfig;
17380
17413
  let params = {};
17381
17414
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
17382
17415
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -17392,6 +17425,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17392
17425
  params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
17393
17426
  params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
17394
17427
  params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
17428
+ params[Param.CoverAndFilterOptionInPDF] = !!coverAndFilterOptionInPDF;
17395
17429
  params = this.getBaseQueryParams(params);
17396
17430
  if (hideObjectSearch) {
17397
17431
  params[Param.HideObjectSearch] = !!hideObjectSearch;
@@ -17711,7 +17745,7 @@ query GetEurekaVizSnapshots(
17711
17745
  getEmbedParams() {
17712
17746
  let params = {};
17713
17747
  params = this.getBaseQueryParams(params);
17714
- 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;
17748
+ 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;
17715
17749
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
17716
17750
  || this.viewConfig.preventPinboardFilterRemoval;
17717
17751
  if (fullHeight === true) {
@@ -17763,9 +17797,6 @@ query GetEurekaVizSnapshots(
17763
17797
  if (dataSourceId !== undefined) {
17764
17798
  params[Param.DataSourceId] = dataSourceId;
17765
17799
  }
17766
- if (coverAndFilterOptionInPDF !== undefined) {
17767
- params[Param.CoverAndFilterOptionInPDF] = coverAndFilterOptionInPDF;
17768
- }
17769
17800
  if (isLiveboardStylingAndGroupingEnabled !== undefined) {
17770
17801
  params[Param.IsLiveboardStylingAndGroupingEnabled] = isLiveboardStylingAndGroupingEnabled;
17771
17802
  }
@@ -17776,6 +17807,7 @@ query GetEurekaVizSnapshots(
17776
17807
  params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
17777
17808
  params[Param.DataPanelV2Enabled] = dataPanelV2;
17778
17809
  params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
17810
+ params[Param.CoverAndFilterOptionInPDF] = coverAndFilterOptionInPDF;
17779
17811
  const queryParams = getQueryParamString(params, true);
17780
17812
  return queryParams;
17781
17813
  }
@@ -18441,7 +18473,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
18441
18473
  this.viewConfig = viewConfig;
18442
18474
  }
18443
18475
  getIframeSrc() {
18444
- const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, } = this.viewConfig;
18476
+ const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, } = this.viewConfig;
18445
18477
  const path = 'insights/conv-assist';
18446
18478
  if (!worksheetId) {
18447
18479
  this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
@@ -18468,6 +18500,14 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
18468
18500
  if (queryParamsString) {
18469
18501
  query = `?${queryParamsString}`;
18470
18502
  }
18503
+ const filterQuery = getFilterQuery(runtimeFilters || []);
18504
+ if (filterQuery && !excludeRuntimeFiltersfromURL) {
18505
+ query += `&${filterQuery}`;
18506
+ }
18507
+ const parameterQuery = getRuntimeParameters(runtimeParameters || []);
18508
+ if (parameterQuery && !excludeRuntimeParametersfromURL) {
18509
+ query += `&${parameterQuery}`;
18510
+ }
18471
18511
  const tsPostHashParams = this.getThoughtSpotPostUrlParams({
18472
18512
  worksheet: worksheetId,
18473
18513
  query: (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchQuery) || '',
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.39.1 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.39.2-alpha.1 */
2
2
  'use client';
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -3062,7 +3062,7 @@ var Param;
3062
3062
  Param["DataSourceId"] = "dataSourceId";
3063
3063
  Param["preAuthCache"] = "preAuthCache";
3064
3064
  Param["ShowSpotterLimitations"] = "showSpotterLimitations";
3065
- Param["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
3065
+ Param["CoverAndFilterOptionInPDF"] = "arePdfCoverFilterPageCheckboxesEnabled";
3066
3066
  Param["PrimaryAction"] = "primaryAction";
3067
3067
  Param["isSpotterAgentEmbed"] = "isSpotterAgentEmbed";
3068
3068
  Param["IsLiveboardStylingAndGroupingEnabled"] = "isLiveboardStylingAndGroupingEnabled";
@@ -4288,6 +4288,22 @@ var Action;
4288
4288
  * @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
4289
4289
  */
4290
4290
  Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
4291
+ /**
4292
+ * Action ID for hide or disable the
4293
+ * Spotter in conversation training widget.
4294
+ * The Add to Coaching feature is currently in beta
4295
+ * and is disabled by default on embed deployments.
4296
+ * To enable this feature on your instance,
4297
+ * contact ThoughtSpot Support.
4298
+ * @example
4299
+ * ```js
4300
+ * hiddenAction: [Action.InConversationTraining]
4301
+ * disabledActions: [Action.InConversationTraining]
4302
+ *
4303
+ * ```
4304
+ * @version SDK: 1.39.0 | ThoughtSpot Cloud: 10.10.0.cl
4305
+ */
4306
+ Action["InConversationTraining"] = "InConversationTraining";
4291
4307
  })(Action || (Action = {}));
4292
4308
  var PrefetchFeatures;
4293
4309
  (function (PrefetchFeatures) {
@@ -6961,13 +6977,14 @@ const configKey = 'embedConfig';
6961
6977
  *
6962
6978
  * @example
6963
6979
  * ```js
6980
+ * import { getInitConfig } from '@thoughtspot/visual-embed-sdk';
6981
+ * // Call the getInitConfig method to retrieve the embed configuration
6964
6982
  * const config = getInitConfig();
6983
+ * // Log the configuration settings
6965
6984
  * console.log(config);
6966
6985
  * ```
6967
- * @example
6968
- *
6969
- * Returns the `EmbedConfig` object, which
6970
- * contains the configuration settings used to
6986
+ * Returns the link:https://developers.thoughtspot.com/docs/Interface_EmbedConfig[EmbedConfig]
6987
+ * object, which contains the configuration settings used to
6971
6988
  * initialize the SDK, including the following:
6972
6989
  *
6973
6990
  * - `thoughtSpotHost` - ThoughtSpot host URL
@@ -6976,9 +6993,10 @@ const configKey = 'embedConfig';
6976
6993
  * - `customizations` - Style, text, and icon customization settings
6977
6994
  * that were applied during the SDK initialization.
6978
6995
  *
6979
- * For a comprehensive list of embed configuration settings,
6980
- * see link:https://developers.thoughtspot.com/docs/Interface_EmbedConfig[Developer Documentation].
6996
+ * The following JSON output shows the embed configuration
6997
+ * settings returned from the code in the previous example:
6981
6998
  *
6999
+ * @example
6982
7000
  * ```json
6983
7001
  * {
6984
7002
  * "thoughtSpotHost": "https://{ThoughtSpot-Host}",
@@ -7000,7 +7018,7 @@ const configKey = 'embedConfig';
7000
7018
  * "authTriggerContainer": "#your-own-div"
7001
7019
  * }
7002
7020
  * ```
7003
- * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.cl, and later
7021
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw, and later
7004
7022
  * @group Global methods
7005
7023
  */
7006
7024
  const getEmbedConfig = () => getValueFromWindow(configKey) || {};
@@ -7642,7 +7660,7 @@ class AnswerService {
7642
7660
  async getTML() {
7643
7661
  const { object } = await this.executeQuery(getAnswerTML, {});
7644
7662
  const edoc = object[0].edoc;
7645
- const YAML = await import('./index-JaFaxrvQ.js');
7663
+ const YAML = await import('./index-Dpf0rd6w.js');
7646
7664
  const parsedDoc = YAML.parse(edoc);
7647
7665
  return {
7648
7666
  answer: {
@@ -15542,7 +15560,7 @@ function processEventData(type, e, thoughtSpotHost, containerEl) {
15542
15560
  return e;
15543
15561
  }
15544
15562
 
15545
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.39.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={".":{"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,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};
15563
+ 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={".":{"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,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};
15546
15564
 
15547
15565
  /**
15548
15566
  * Reloads the ThoughtSpot iframe.
@@ -15940,10 +15958,25 @@ class TsEmbed {
15940
15958
  // - cached auth info would be for wrong org
15941
15959
  // - info call response changes for each different overrideOrgId
15942
15960
  // 2. disablePreauthCache is explicitly set to true
15961
+ // 3. FullAppEmbed has primary navbar visible since:
15962
+ // - primary navbar requires fresh auth state for navigation
15963
+ // - cached auth may not reflect current user permissions
15943
15964
  const isDisabled = (this.viewConfig.overrideOrgId !== undefined
15944
- || this.embedConfig.disablePreauthCache === true);
15965
+ || this.embedConfig.disablePreauthCache === true
15966
+ || this.isFullAppEmbedWithVisiblePrimaryNavbar());
15945
15967
  return !isDisabled;
15946
15968
  }
15969
+ /**
15970
+ * Checks if current embed is FullAppEmbed with visible primary navbar
15971
+ * @returns boolean
15972
+ */
15973
+ isFullAppEmbedWithVisiblePrimaryNavbar() {
15974
+ const appViewConfig = this.viewConfig;
15975
+ // Check if this is a FullAppEmbed (AppEmbed)
15976
+ // showPrimaryNavbar defaults to true if not explicitly set to false
15977
+ return (appViewConfig.embedComponentType === 'AppEmbed'
15978
+ && appViewConfig.showPrimaryNavbar === true);
15979
+ }
15947
15980
  /**
15948
15981
  * fix for ts7.sep.cl
15949
15982
  * will be removed for ts7.oct.cl
@@ -17077,7 +17110,7 @@ class AppEmbed extends V1Embed {
17077
17110
  getEmbedParams() {
17078
17111
  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,
17079
17112
  /* eslint-disable-next-line max-len */
17080
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, isLiveboardStylingAndGroupingEnabled, } = this.viewConfig;
17113
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, } = this.viewConfig;
17081
17114
  let params = {};
17082
17115
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
17083
17116
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -17093,6 +17126,7 @@ class AppEmbed extends V1Embed {
17093
17126
  params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
17094
17127
  params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
17095
17128
  params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
17129
+ params[Param.CoverAndFilterOptionInPDF] = !!coverAndFilterOptionInPDF;
17096
17130
  params = this.getBaseQueryParams(params);
17097
17131
  if (hideObjectSearch) {
17098
17132
  params[Param.HideObjectSearch] = !!hideObjectSearch;
@@ -17412,7 +17446,7 @@ class LiveboardEmbed extends V1Embed {
17412
17446
  getEmbedParams() {
17413
17447
  let params = {};
17414
17448
  params = this.getBaseQueryParams(params);
17415
- 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;
17449
+ 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;
17416
17450
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
17417
17451
  || this.viewConfig.preventPinboardFilterRemoval;
17418
17452
  if (fullHeight === true) {
@@ -17464,9 +17498,6 @@ class LiveboardEmbed extends V1Embed {
17464
17498
  if (dataSourceId !== undefined) {
17465
17499
  params[Param.DataSourceId] = dataSourceId;
17466
17500
  }
17467
- if (coverAndFilterOptionInPDF !== undefined) {
17468
- params[Param.CoverAndFilterOptionInPDF] = coverAndFilterOptionInPDF;
17469
- }
17470
17501
  if (isLiveboardStylingAndGroupingEnabled !== undefined) {
17471
17502
  params[Param.IsLiveboardStylingAndGroupingEnabled] = isLiveboardStylingAndGroupingEnabled;
17472
17503
  }
@@ -17477,6 +17508,7 @@ class LiveboardEmbed extends V1Embed {
17477
17508
  params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
17478
17509
  params[Param.DataPanelV2Enabled] = dataPanelV2;
17479
17510
  params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
17511
+ params[Param.CoverAndFilterOptionInPDF] = coverAndFilterOptionInPDF;
17480
17512
  const queryParams = getQueryParamString(params, true);
17481
17513
  return queryParams;
17482
17514
  }
@@ -18402,7 +18434,7 @@ class SpotterEmbed extends TsEmbed {
18402
18434
  this.viewConfig = viewConfig;
18403
18435
  }
18404
18436
  getIframeSrc() {
18405
- const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, } = this.viewConfig;
18437
+ const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, } = this.viewConfig;
18406
18438
  const path = 'insights/conv-assist';
18407
18439
  if (!worksheetId) {
18408
18440
  this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
@@ -18429,6 +18461,14 @@ class SpotterEmbed extends TsEmbed {
18429
18461
  if (queryParamsString) {
18430
18462
  query = `?${queryParamsString}`;
18431
18463
  }
18464
+ const filterQuery = getFilterQuery(runtimeFilters || []);
18465
+ if (filterQuery && !excludeRuntimeFiltersfromURL) {
18466
+ query += `&${filterQuery}`;
18467
+ }
18468
+ const parameterQuery = getRuntimeParameters(runtimeParameters || []);
18469
+ if (parameterQuery && !excludeRuntimeParametersfromURL) {
18470
+ query += `&${parameterQuery}`;
18471
+ }
18432
18472
  const tsPostHashParams = this.getThoughtSpotPostUrlParams({
18433
18473
  worksheet: worksheetId,
18434
18474
  query: (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchQuery) || '',