@thoughtspot/visual-embed-sdk 1.33.8 → 1.33.9

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 (39) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/conversation.d.ts +27 -0
  3. package/cjs/src/embed/conversation.d.ts.map +1 -1
  4. package/cjs/src/embed/conversation.js +9 -1
  5. package/cjs/src/embed/conversation.js.map +1 -1
  6. package/cjs/src/embed/conversation.spec.js +24 -0
  7. package/cjs/src/embed/conversation.spec.js.map +1 -1
  8. package/cjs/src/types.d.ts +30 -1
  9. package/cjs/src/types.d.ts.map +1 -1
  10. package/cjs/src/types.js +29 -0
  11. package/cjs/src/types.js.map +1 -1
  12. package/dist/{index-CHqCPD_I.js → index-BXczdQc7.js} +1 -1
  13. package/dist/src/embed/conversation.d.ts +27 -0
  14. package/dist/src/embed/conversation.d.ts.map +1 -1
  15. package/dist/src/types.d.ts +30 -1
  16. package/dist/src/types.d.ts.map +1 -1
  17. package/dist/tsembed-react.es.js +67 -9
  18. package/dist/tsembed-react.js +66 -8
  19. package/dist/tsembed.es.js +67 -9
  20. package/dist/tsembed.js +66 -8
  21. package/dist/visual-embed-sdk-react-full.d.ts +57 -1
  22. package/dist/visual-embed-sdk-react.d.ts +57 -1
  23. package/dist/visual-embed-sdk.d.ts +57 -1
  24. package/lib/package.json +1 -1
  25. package/lib/src/embed/conversation.d.ts +27 -0
  26. package/lib/src/embed/conversation.d.ts.map +1 -1
  27. package/lib/src/embed/conversation.js +8 -1
  28. package/lib/src/embed/conversation.js.map +1 -1
  29. package/lib/src/embed/conversation.spec.js +24 -0
  30. package/lib/src/embed/conversation.spec.js.map +1 -1
  31. package/lib/src/types.d.ts +30 -1
  32. package/lib/src/types.d.ts.map +1 -1
  33. package/lib/src/types.js +29 -0
  34. package/lib/src/types.js.map +1 -1
  35. package/lib/src/visual-embed-sdk.d.ts +57 -1
  36. package/package.json +1 -1
  37. package/src/embed/conversation.spec.ts +34 -0
  38. package/src/embed/conversation.ts +36 -0
  39. package/src/types.ts +32 -0
package/dist/tsembed.js CHANGED
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.33.8 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.33.9 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
4
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
@@ -333,7 +333,7 @@
333
333
  element.style.removeProperty(styleProperty);
334
334
  });
335
335
  };
336
- const isUndefined = (value) => value === undefined;
336
+ const isUndefined$1 = (value) => value === undefined;
337
337
  // Return if the value is a string, double or boolean.
338
338
  const getTypeFromValue = (value) => {
339
339
  if (typeof value === 'string') {
@@ -2625,6 +2625,8 @@
2625
2625
  Param["IsSageEmbed"] = "isSageEmbed";
2626
2626
  Param["HideWorksheetSelector"] = "hideWorksheetSelector";
2627
2627
  Param["DisableWorksheetChange"] = "disableWorksheetChange";
2628
+ Param["HideSourceSelection"] = "hideSourceSelection";
2629
+ Param["DisableSourceSelection"] = "disableSourceSelection";
2628
2630
  Param["HideEurekaResults"] = "hideEurekaResults";
2629
2631
  Param["HideEurekaSuggestions"] = "hideEurekaSuggestions";
2630
2632
  Param["HideAutocompleteSuggestions"] = "hideAutocompleteSuggestions";
@@ -3718,6 +3720,33 @@
3718
3720
  * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
3719
3721
  */
3720
3722
  Action["ChangeFilterVisibilityInTab"] = "changeFilterVisibilityInTab";
3723
+ /**
3724
+ * Action ID for hide/disable Preview data button in spotter
3725
+ * @example
3726
+ * ```js
3727
+ * hiddenAction: [Action.PreviewDataSpotter]
3728
+ * ```
3729
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
3730
+ */
3731
+ Action["PreviewDataSpotter"] = "previewDataSpotter";
3732
+ /**
3733
+ * Action ID for hide/disable reset button in spotter
3734
+ * @example
3735
+ * ```js
3736
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
3737
+ * ```
3738
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
3739
+ */
3740
+ Action["ResetSpotterChat"] = "resetSpotterChat";
3741
+ /**
3742
+ * Action ID for hide/disable feedback in spotter
3743
+ * @example
3744
+ * ```js
3745
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
3746
+ * ```
3747
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
3748
+ */
3749
+ Action["SpotterFeedback"] = "spotterFeedback";
3721
3750
  })(exports.Action || (exports.Action = {}));
3722
3751
  exports.PrefetchFeatures = void 0;
3723
3752
  (function (PrefetchFeatures) {
@@ -3846,7 +3875,7 @@
3846
3875
  canLog(logLevel) {
3847
3876
  if (logLevel === exports.LogLevel.SILENT)
3848
3877
  return false;
3849
- if (!isUndefined(globalLogLevelOverride)) {
3878
+ if (!isUndefined$1(globalLogLevelOverride)) {
3850
3879
  return compareLogLevels(globalLogLevelOverride, logLevel) >= 0;
3851
3880
  }
3852
3881
  return compareLogLevels(this.logLevel, logLevel) >= 0;
@@ -14731,7 +14760,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14731
14760
  });
14732
14761
  }
14733
14762
 
14734
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.8";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 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};
14763
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.9";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 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};
14735
14764
 
14736
14765
  /**
14737
14766
  * Copyright (c) 2022
@@ -14855,7 +14884,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14855
14884
  if (viewConfig.preRenderId) {
14856
14885
  const allOtherKeys = Object.keys(viewConfig).filter((key) => !preRenderAllowedKeys.includes(key) && !key.startsWith('on'));
14857
14886
  allOtherKeys.forEach((key) => {
14858
- if (!isUndefined(viewConfig[key])
14887
+ if (!isUndefined$1(viewConfig[key])
14859
14888
  && !isEqual_1(viewConfig[key], preRenderedObject.viewConfig[key])) {
14860
14889
  logger$3.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
14861
14890
  + `"${key}" as "${JSON.stringify(preRenderedObject.viewConfig[key])}" `
@@ -16294,7 +16323,7 @@ query GetEurekaVizSnapshots(
16294
16323
  beforePrerenderVisible() {
16295
16324
  var _a;
16296
16325
  const embedObj = (_a = this.insertedDomEl) === null || _a === void 0 ? void 0 : _a[this.embedNodeKey];
16297
- if (isUndefined(embedObj))
16326
+ if (isUndefined$1(embedObj))
16298
16327
  return;
16299
16328
  const showDifferentLib = this.viewConfig.liveboardId
16300
16329
  && embedObj.viewConfig.liveboardId !== this.viewConfig.liveboardId;
@@ -16304,7 +16333,7 @@ query GetEurekaVizSnapshots(
16304
16333
  }
16305
16334
  }
16306
16335
  handleRenderForPrerender() {
16307
- if (isUndefined(this.viewConfig.liveboardId)) {
16336
+ if (isUndefined$1(this.viewConfig.liveboardId)) {
16308
16337
  this.prerenderGeneric();
16309
16338
  return;
16310
16339
  }
@@ -17049,6 +17078,29 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
17049
17078
  }
17050
17079
  }
17051
17080
 
17081
+ /**
17082
+ * Checks if `value` is `undefined`.
17083
+ *
17084
+ * @static
17085
+ * @since 0.1.0
17086
+ * @memberOf _
17087
+ * @category Lang
17088
+ * @param {*} value The value to check.
17089
+ * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
17090
+ * @example
17091
+ *
17092
+ * _.isUndefined(void 0);
17093
+ * // => true
17094
+ *
17095
+ * _.isUndefined(null);
17096
+ * // => false
17097
+ */
17098
+ function isUndefined(value) {
17099
+ return value === undefined;
17100
+ }
17101
+
17102
+ var isUndefined_1 = isUndefined;
17103
+
17052
17104
  /**
17053
17105
  * Embed ThoughtSpot AI Conversation.
17054
17106
  * @group Embed components
@@ -17071,13 +17123,19 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
17071
17123
  this.viewConfig = viewConfig;
17072
17124
  }
17073
17125
  getIframeSrc() {
17074
- const { worksheetId, searchOptions, } = this.viewConfig;
17126
+ const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, } = this.viewConfig;
17075
17127
  const path = 'insights/conv-assist';
17076
17128
  if (!worksheetId) {
17077
17129
  this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
17078
17130
  }
17079
17131
  const queryParams = this.getBaseQueryParams();
17080
17132
  queryParams[Param.SpotterEnabled] = true;
17133
+ if (!isUndefined_1(disableSourceSelection)) {
17134
+ queryParams[Param.DisableSourceSelection] = !!disableSourceSelection;
17135
+ }
17136
+ if (!isUndefined_1(hideSourceSelection)) {
17137
+ queryParams[Param.HideSourceSelection] = !!hideSourceSelection;
17138
+ }
17081
17139
  let query = '';
17082
17140
  const queryParamsString = getQueryParamString(queryParams, true);
17083
17141
  if (queryParamsString) {
@@ -1662,6 +1662,33 @@ export interface ConversationViewConfig extends ViewConfig {
1662
1662
  * Ability to pass a starting search query to the conversation.
1663
1663
  */
1664
1664
  searchOptions?: SearchOptions;
1665
+ /**
1666
+ * disableSourceSelection : Disables data source selection
1667
+ * but still display the selected data source.
1668
+ * @example
1669
+ * ```js
1670
+ * const embed = new ConversationEmbed('#tsEmbed', {
1671
+ * ... // other options
1672
+ * disableSourceSelection : true,
1673
+ * })
1674
+ * ```
1675
+ *
1676
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
1677
+ */
1678
+ disableSourceSelection?: boolean;
1679
+ /**
1680
+ * hideSourceSelection : Hide data source selection
1681
+ * @example
1682
+ * ```js
1683
+ * const embed = new ConversationEmbed('#tsEmbed', {
1684
+ * ... // other options
1685
+ * hideSourceSelection : true,
1686
+ * })
1687
+ * ```
1688
+ *
1689
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
1690
+ */
1691
+ hideSourceSelection?: boolean;
1665
1692
  }
1666
1693
  /**
1667
1694
  * Embed ThoughtSpot AI Conversation.
@@ -5303,6 +5330,8 @@ export declare enum Param {
5303
5330
  IsSageEmbed = "isSageEmbed",
5304
5331
  HideWorksheetSelector = "hideWorksheetSelector",
5305
5332
  DisableWorksheetChange = "disableWorksheetChange",
5333
+ HideSourceSelection = "hideSourceSelection",
5334
+ DisableSourceSelection = "disableSourceSelection",
5306
5335
  HideEurekaResults = "hideEurekaResults",
5307
5336
  HideEurekaSuggestions = "hideEurekaSuggestions",
5308
5337
  HideAutocompleteSuggestions = "hideAutocompleteSuggestions",
@@ -6393,7 +6422,34 @@ export declare enum Action {
6393
6422
  * ```
6394
6423
  * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
6395
6424
  */
6396
- ChangeFilterVisibilityInTab = "changeFilterVisibilityInTab"
6425
+ ChangeFilterVisibilityInTab = "changeFilterVisibilityInTab",
6426
+ /**
6427
+ * Action ID for hide/disable Preview data button in spotter
6428
+ * @example
6429
+ * ```js
6430
+ * hiddenAction: [Action.PreviewDataSpotter]
6431
+ * ```
6432
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
6433
+ */
6434
+ PreviewDataSpotter = "previewDataSpotter",
6435
+ /**
6436
+ * Action ID for hide/disable reset button in spotter
6437
+ * @example
6438
+ * ```js
6439
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
6440
+ * ```
6441
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
6442
+ */
6443
+ ResetSpotterChat = "resetSpotterChat",
6444
+ /**
6445
+ * Action ID for hide/disable feedback in spotter
6446
+ * @example
6447
+ * ```js
6448
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
6449
+ * ```
6450
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
6451
+ */
6452
+ SpotterFeedback = "spotterFeedback"
6397
6453
  }
6398
6454
  export interface AnswerServiceType {
6399
6455
  getAnswer?: (offset: number, batchSize: number) => any;
@@ -1652,6 +1652,33 @@ export interface ConversationViewConfig extends ViewConfig {
1652
1652
  * Ability to pass a starting search query to the conversation.
1653
1653
  */
1654
1654
  searchOptions?: SearchOptions;
1655
+ /**
1656
+ * disableSourceSelection : Disables data source selection
1657
+ * but still display the selected data source.
1658
+ * @example
1659
+ * ```js
1660
+ * const embed = new ConversationEmbed('#tsEmbed', {
1661
+ * ... // other options
1662
+ * disableSourceSelection : true,
1663
+ * })
1664
+ * ```
1665
+ *
1666
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
1667
+ */
1668
+ disableSourceSelection?: boolean;
1669
+ /**
1670
+ * hideSourceSelection : Hide data source selection
1671
+ * @example
1672
+ * ```js
1673
+ * const embed = new ConversationEmbed('#tsEmbed', {
1674
+ * ... // other options
1675
+ * hideSourceSelection : true,
1676
+ * })
1677
+ * ```
1678
+ *
1679
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
1680
+ */
1681
+ hideSourceSelection?: boolean;
1655
1682
  }
1656
1683
  /**
1657
1684
  * Embed ThoughtSpot AI Conversation.
@@ -4895,6 +4922,8 @@ export declare enum Param {
4895
4922
  IsSageEmbed = "isSageEmbed",
4896
4923
  HideWorksheetSelector = "hideWorksheetSelector",
4897
4924
  DisableWorksheetChange = "disableWorksheetChange",
4925
+ HideSourceSelection = "hideSourceSelection",
4926
+ DisableSourceSelection = "disableSourceSelection",
4898
4927
  HideEurekaResults = "hideEurekaResults",
4899
4928
  HideEurekaSuggestions = "hideEurekaSuggestions",
4900
4929
  HideAutocompleteSuggestions = "hideAutocompleteSuggestions",
@@ -5985,7 +6014,34 @@ export declare enum Action {
5985
6014
  * ```
5986
6015
  * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
5987
6016
  */
5988
- ChangeFilterVisibilityInTab = "changeFilterVisibilityInTab"
6017
+ ChangeFilterVisibilityInTab = "changeFilterVisibilityInTab",
6018
+ /**
6019
+ * Action ID for hide/disable Preview data button in spotter
6020
+ * @example
6021
+ * ```js
6022
+ * hiddenAction: [Action.PreviewDataSpotter]
6023
+ * ```
6024
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
6025
+ */
6026
+ PreviewDataSpotter = "previewDataSpotter",
6027
+ /**
6028
+ * Action ID for hide/disable reset button in spotter
6029
+ * @example
6030
+ * ```js
6031
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
6032
+ * ```
6033
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
6034
+ */
6035
+ ResetSpotterChat = "resetSpotterChat",
6036
+ /**
6037
+ * Action ID for hide/disable feedback in spotter
6038
+ * @example
6039
+ * ```js
6040
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
6041
+ * ```
6042
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
6043
+ */
6044
+ SpotterFeedback = "spotterFeedback"
5989
6045
  }
5990
6046
  export interface AnswerServiceType {
5991
6047
  getAnswer?: (offset: number, batchSize: number) => any;
@@ -1428,6 +1428,33 @@ export interface ConversationViewConfig extends ViewConfig {
1428
1428
  * Ability to pass a starting search query to the conversation.
1429
1429
  */
1430
1430
  searchOptions?: SearchOptions;
1431
+ /**
1432
+ * disableSourceSelection : Disables data source selection
1433
+ * but still display the selected data source.
1434
+ * @example
1435
+ * ```js
1436
+ * const embed = new ConversationEmbed('#tsEmbed', {
1437
+ * ... // other options
1438
+ * disableSourceSelection : true,
1439
+ * })
1440
+ * ```
1441
+ *
1442
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
1443
+ */
1444
+ disableSourceSelection?: boolean;
1445
+ /**
1446
+ * hideSourceSelection : Hide data source selection
1447
+ * @example
1448
+ * ```js
1449
+ * const embed = new ConversationEmbed('#tsEmbed', {
1450
+ * ... // other options
1451
+ * hideSourceSelection : true,
1452
+ * })
1453
+ * ```
1454
+ *
1455
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
1456
+ */
1457
+ hideSourceSelection?: boolean;
1431
1458
  }
1432
1459
  /**
1433
1460
  * Embed ThoughtSpot AI Conversation.
@@ -4892,6 +4919,8 @@ export enum Param {
4892
4919
  IsSageEmbed = "isSageEmbed",
4893
4920
  HideWorksheetSelector = "hideWorksheetSelector",
4894
4921
  DisableWorksheetChange = "disableWorksheetChange",
4922
+ HideSourceSelection = "hideSourceSelection",
4923
+ DisableSourceSelection = "disableSourceSelection",
4895
4924
  HideEurekaResults = "hideEurekaResults",
4896
4925
  HideEurekaSuggestions = "hideEurekaSuggestions",
4897
4926
  HideAutocompleteSuggestions = "hideAutocompleteSuggestions",
@@ -5982,7 +6011,34 @@ export enum Action {
5982
6011
  * ```
5983
6012
  * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
5984
6013
  */
5985
- ChangeFilterVisibilityInTab = "changeFilterVisibilityInTab"
6014
+ ChangeFilterVisibilityInTab = "changeFilterVisibilityInTab",
6015
+ /**
6016
+ * Action ID for hide/disable Preview data button in spotter
6017
+ * @example
6018
+ * ```js
6019
+ * hiddenAction: [Action.PreviewDataSpotter]
6020
+ * ```
6021
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
6022
+ */
6023
+ PreviewDataSpotter = "previewDataSpotter",
6024
+ /**
6025
+ * Action ID for hide/disable reset button in spotter
6026
+ * @example
6027
+ * ```js
6028
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
6029
+ * ```
6030
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
6031
+ */
6032
+ ResetSpotterChat = "resetSpotterChat",
6033
+ /**
6034
+ * Action ID for hide/disable feedback in spotter
6035
+ * @example
6036
+ * ```js
6037
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
6038
+ * ```
6039
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
6040
+ */
6041
+ SpotterFeedback = "spotterFeedback"
5986
6042
  }
5987
6043
  export interface AnswerServiceType {
5988
6044
  getAnswer?: (offset: number, batchSize: number) => any;
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.33.8",
3
+ "version": "1.33.9",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -18,6 +18,33 @@ export interface ConversationViewConfig extends ViewConfig {
18
18
  * Ability to pass a starting search query to the conversation.
19
19
  */
20
20
  searchOptions?: SearchOptions;
21
+ /**
22
+ * disableSourceSelection : Disables data source selection
23
+ * but still display the selected data source.
24
+ * @example
25
+ * ```js
26
+ * const embed = new ConversationEmbed('#tsEmbed', {
27
+ * ... // other options
28
+ * disableSourceSelection : true,
29
+ * })
30
+ * ```
31
+ *
32
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
33
+ */
34
+ disableSourceSelection?: boolean;
35
+ /**
36
+ * hideSourceSelection : Hide data source selection
37
+ * @example
38
+ * ```js
39
+ * const embed = new ConversationEmbed('#tsEmbed', {
40
+ * ... // other options
41
+ * hideSourceSelection : true,
42
+ * })
43
+ * ```
44
+ *
45
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
46
+ */
47
+ hideSourceSelection?: boolean;
21
48
  }
22
49
  /**
23
50
  * Embed ThoughtSpot AI Conversation.
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../src/embed/conversation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAS,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAuB,SAAQ,UAAU;IACtD;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,iBAAkB,SAAQ,OAAO;IACN,SAAS,CAAC,UAAU,EAAE,sBAAsB;gBAApE,SAAS,EAAE,WAAW,EAAY,UAAU,EAAE,sBAAsB;IAKzE,YAAY;IAyBN,MAAM,IAAI,OAAO,CAAC,iBAAiB,CAAC;CAMpD"}
1
+ {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../src/embed/conversation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAS,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAuB,SAAQ,UAAU;IACtD;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;;;;;;;;;OAYG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;;;;;;;;;;OAWG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,iBAAkB,SAAQ,OAAO;IACN,SAAS,CAAC,UAAU,EAAE,sBAAsB;gBAApE,SAAS,EAAE,WAAW,EAAY,UAAU,EAAE,sBAAsB;IAKzE,YAAY;IAiCN,MAAM,IAAI,OAAO,CAAC,iBAAiB,CAAC;CAMpD"}
@@ -1,3 +1,4 @@
1
+ import isUndefined from 'lodash/isUndefined';
1
2
  import { ERROR_MESSAGE } from '../errors';
2
3
  import { Param } from '../types';
3
4
  import { TsEmbed } from './ts-embed';
@@ -24,13 +25,19 @@ export class ConversationEmbed extends TsEmbed {
24
25
  this.viewConfig = viewConfig;
25
26
  }
26
27
  getIframeSrc() {
27
- const { worksheetId, searchOptions, } = this.viewConfig;
28
+ const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, } = this.viewConfig;
28
29
  const path = 'insights/conv-assist';
29
30
  if (!worksheetId) {
30
31
  this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
31
32
  }
32
33
  const queryParams = this.getBaseQueryParams();
33
34
  queryParams[Param.SpotterEnabled] = true;
35
+ if (!isUndefined(disableSourceSelection)) {
36
+ queryParams[Param.DisableSourceSelection] = !!disableSourceSelection;
37
+ }
38
+ if (!isUndefined(hideSourceSelection)) {
39
+ queryParams[Param.HideSourceSelection] = !!hideSourceSelection;
40
+ }
34
41
  let query = '';
35
42
  const queryParamsString = getQueryParamString(queryParams, true);
36
43
  if (queryParamsString) {
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.js","sourceRoot":"","sources":["../../../src/embed/conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAc,KAAK,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAuB/C;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,iBAAkB,SAAQ,OAAO;IAC1C,YAAY,SAAsB,EAAY,UAAkC;QAC5E,UAAU,CAAC,kBAAkB,GAAG,cAAc,CAAC;QAC/C,KAAK,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;QAFa,eAAU,GAAV,UAAU,CAAwB;IAGhF,CAAC;IAEM,YAAY;QACf,MAAM,EACF,WAAW,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AAa,CAAE,WAAW,KAAI,EAAE;SAC1C,CAAC,CAAC;QAEH,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,UAAU,IAAI,GAAG,gBAAgB,EAAE,CAAC;IAC9E,CAAC;IAEM,KAAK,CAAC,MAAM;QACf,KAAK,CAAC,MAAM,EAAE,CAAC;QACf,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"}
@@ -26,6 +26,30 @@ describe('ConversationEmbed', () => {
26
26
  await conversationEmbed.render();
27
27
  expectUrlMatchesWithParams(getIFrameSrc(), `http://${thoughtSpotHost}/v2/?${defaultParams}&isSpotterExperienceEnabled=true#/embed/insights/conv-assist?worksheet=worksheetId&query=searchQuery`);
28
28
  });
29
+ it('should render the conversation embed with worksheets disabled', async () => {
30
+ const viewConfig = {
31
+ worksheetId: 'worksheetId',
32
+ searchOptions: {
33
+ searchQuery: 'searchQuery',
34
+ },
35
+ disableSourceSelection: true,
36
+ };
37
+ const conversationEmbed = new ConversationEmbed(getRootEl(), viewConfig);
38
+ await conversationEmbed.render();
39
+ expectUrlMatchesWithParams(getIFrameSrc(), `http://${thoughtSpotHost}/v2/?${defaultParams}&isSpotterExperienceEnabled=true&disableSourceSelection=true#/embed/insights/conv-assist?worksheet=worksheetId&query=searchQuery`);
40
+ });
41
+ it('should render the conversation embed with worksheets hidden', async () => {
42
+ const viewConfig = {
43
+ worksheetId: 'worksheetId',
44
+ searchOptions: {
45
+ searchQuery: 'searchQuery',
46
+ },
47
+ hideSourceSelection: true,
48
+ };
49
+ const conversationEmbed = new ConversationEmbed(getRootEl(), viewConfig);
50
+ await conversationEmbed.render();
51
+ expectUrlMatchesWithParams(getIFrameSrc(), `http://${thoughtSpotHost}/v2/?${defaultParams}&isSpotterExperienceEnabled=true&hideSourceSelection=true#/embed/insights/conv-assist?worksheet=worksheetId&query=searchQuery`);
52
+ });
29
53
  it('should handle error when worksheetId is not provided', async () => {
30
54
  const viewConfig = {
31
55
  worksheetId: '',
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.spec.js","sourceRoot":"","sources":["../../../src/embed/conversation.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,iBAAiB,GAEpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,YAAY,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAU,QAAQ,EAAmB,MAAM,UAAU,CAAC;AAC7D,OAAO,EAEH,eAAe,EACf,YAAY,EACZ,SAAS,EAET,iCAAiC,IAAI,aAAa,EAClD,0BAA0B,GAC7B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,eAAe,GAAG,QAAQ,CAAC;AAEjC,SAAS,CAAC,GAAG,EAAE;IACX,IAAI,CAAC;QACD,eAAe;QACf,QAAQ,EAAE,QAAQ,CAAC,IAAI;KAC1B,CAAC,CAAC;IACH,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3F,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,SAAS,GAAG,eAAe,EAAE,CAAC;AAChD,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IAC/B,EAAE,CAAC,sCAAsC,EAAE,KAAK,IAAI,EAAE;QAClD,MAAM,UAAU,GAA2B;YACvC,WAAW,EAAE,aAAa;YAC1B,aAAa,EAAE;gBACX,WAAW,EAAE,aAAa;aAC7B;SACJ,CAAC;QAEF,MAAM,iBAAiB,GAAG,IAAI,iBA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AAK,IAAI,EAAE;QACzE,MAAM,UAAU,GAA2B;YACvC,WAAW,EAAE,aAAa;YAC1B,aAAa,EAAE;gBACX,WAAW,EAAE,aAAa;aAC7B;YACD,mBAAmB,EAAE,IAAI;SAC5B,CAAC;QAEF,MAAM,iBAAiB,GAAG,IAAI,iBAAiB,CAAC,SAAS,EAAE,EAAE,UAAU,CAAC,CAAC;QACzE,MAAM,iBAAiB,CAAC,MAAM,EAAE,CAAC;QACjC,0BAA0B,CACtB,YAAY,EAAE,EACd,UAAU,eAAe,QAAQ,aAAa,+HAA+H,CAChL,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sDAAsD,EAAE,KAAK,IAAI,EAAE;QAClE,MAAM,UAAU,GAA2B;YACvC,WAAW,EAAE,EAAE;YACf,aAAa,EAAE;gBACX,WAAW,EAAE,aAAa;aAC7B;SACJ,CAAC;QACF,MAAM,iBAAiB,GAAG,IAAI,iBAAiB,CAAC,SAAS,EAAE,EAAE,UAAU,CAAC,CAAC;QACxE,iBAAyB,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QACnD,MAAM,iBAAiB,CAAC,MAAM,EAAE,CAAC;QACjC,MAAM,CAAE,iBAAyB,CAAC,WAAW,CAAC,CAAC,oBAAoB,CAC/D,aAAa,CAAC,oCAAoC,CACrD,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -3210,6 +3210,8 @@ export declare enum Param {
3210
3210
  IsSageEmbed = "isSageEmbed",
3211
3211
  HideWorksheetSelector = "hideWorksheetSelector",
3212
3212
  DisableWorksheetChange = "disableWorksheetChange",
3213
+ HideSourceSelection = "hideSourceSelection",
3214
+ DisableSourceSelection = "disableSourceSelection",
3213
3215
  HideEurekaResults = "hideEurekaResults",
3214
3216
  HideEurekaSuggestions = "hideEurekaSuggestions",
3215
3217
  HideAutocompleteSuggestions = "hideAutocompleteSuggestions",
@@ -4300,7 +4302,34 @@ export declare enum Action {
4300
4302
  * ```
4301
4303
  * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
4302
4304
  */
4303
- ChangeFilterVisibilityInTab = "changeFilterVisibilityInTab"
4305
+ ChangeFilterVisibilityInTab = "changeFilterVisibilityInTab",
4306
+ /**
4307
+ * Action ID for hide/disable Preview data button in spotter
4308
+ * @example
4309
+ * ```js
4310
+ * hiddenAction: [Action.PreviewDataSpotter]
4311
+ * ```
4312
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
4313
+ */
4314
+ PreviewDataSpotter = "previewDataSpotter",
4315
+ /**
4316
+ * Action ID for hide/disable reset button in spotter
4317
+ * @example
4318
+ * ```js
4319
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
4320
+ * ```
4321
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
4322
+ */
4323
+ ResetSpotterChat = "resetSpotterChat",
4324
+ /**
4325
+ * Action ID for hide/disable feedback in spotter
4326
+ * @example
4327
+ * ```js
4328
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
4329
+ * ```
4330
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
4331
+ */
4332
+ SpotterFeedback = "spotterFeedback"
4304
4333
  }
4305
4334
  export interface AnswerServiceType {
4306
4335
  getAnswer?: (offset: number, batchSize: number) => any;