@thoughtspot/visual-embed-sdk 1.28.0-alpha.2 → 1.28.0-preRender

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 (46) hide show
  1. package/cjs/package.json +3 -2
  2. package/cjs/src/embed/sage.d.ts +5 -5
  3. package/cjs/src/embed/sage.d.ts.map +1 -1
  4. package/cjs/src/embed/sage.js +16 -1
  5. package/cjs/src/embed/sage.js.map +1 -1
  6. package/cjs/src/embed/sage.spec.js +11 -11
  7. package/cjs/src/embed/sage.spec.js.map +1 -1
  8. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  9. package/cjs/src/embed/ts-embed.js +2 -4
  10. package/cjs/src/embed/ts-embed.js.map +1 -1
  11. package/cjs/src/types.d.ts +28 -1
  12. package/cjs/src/types.d.ts.map +1 -1
  13. package/cjs/src/types.js +27 -0
  14. package/cjs/src/types.js.map +1 -1
  15. package/dist/src/embed/sage.d.ts +5 -5
  16. package/dist/src/embed/sage.d.ts.map +1 -1
  17. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  18. package/dist/src/types.d.ts +28 -1
  19. package/dist/src/types.d.ts.map +1 -1
  20. package/dist/tsembed-react.es.js +45 -5
  21. package/dist/tsembed-react.js +45 -5
  22. package/dist/tsembed.es.js +45 -5
  23. package/dist/tsembed.js +45 -5
  24. package/dist/visual-embed-sdk-react-full.d.ts +32 -5
  25. package/dist/visual-embed-sdk-react.d.ts +32 -5
  26. package/dist/visual-embed-sdk.d.ts +32 -5
  27. package/lib/package.json +3 -2
  28. package/lib/src/embed/sage.d.ts +5 -5
  29. package/lib/src/embed/sage.d.ts.map +1 -1
  30. package/lib/src/embed/sage.js +16 -1
  31. package/lib/src/embed/sage.js.map +1 -1
  32. package/lib/src/embed/sage.spec.js +11 -11
  33. package/lib/src/embed/sage.spec.js.map +1 -1
  34. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  35. package/lib/src/embed/ts-embed.js +2 -4
  36. package/lib/src/embed/ts-embed.js.map +1 -1
  37. package/lib/src/types.d.ts +28 -1
  38. package/lib/src/types.d.ts.map +1 -1
  39. package/lib/src/types.js +27 -0
  40. package/lib/src/types.js.map +1 -1
  41. package/lib/src/visual-embed-sdk.d.ts +33 -6
  42. package/package.json +3 -2
  43. package/src/embed/sage.spec.ts +11 -11
  44. package/src/embed/sage.ts +17 -4
  45. package/src/embed/ts-embed.ts +2 -4
  46. package/src/types.ts +30 -0
@@ -3018,6 +3018,33 @@ var Action;
3018
3018
  * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
3019
3019
  */
3020
3020
  Action["AskAi"] = "AskAi";
3021
+ /**
3022
+ * The **Add KPI to Watchlist** action on Home page watchlist.
3023
+ * @example
3024
+ * ```js
3025
+ * disabledActions: [Action.AddToWatchlist]
3026
+ * ```
3027
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
3028
+ */
3029
+ Action["AddToWatchlist"] = "addToWatchlist";
3030
+ /**
3031
+ * The **Remove from watchlist** menu action on KPI watchlist.
3032
+ * @example
3033
+ * ```js
3034
+ * disabledActions: [Action.RemoveFromWatchlist]
3035
+ * ```
3036
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
3037
+ */
3038
+ Action["RemoveFromWatchlist"] = "removeFromWatchlist";
3039
+ /**
3040
+ * The **Copy KPI Link** menu action on KPI watchlist.
3041
+ * @example
3042
+ * ```js
3043
+ * disabledActions: [Action.CopyKpiLink]
3044
+ * ```
3045
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
3046
+ */
3047
+ Action["CopyKpiLink"] = "copyKpiLink";
3021
3048
  })(Action || (Action = {}));
3022
3049
  var PrefetchFeatures;
3023
3050
  (function (PrefetchFeatures) {
@@ -13922,7 +13949,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
13922
13949
  });
13923
13950
  }
13924
13951
 
13925
- var name="@thoughtspot/visual-embed-sdk";var version="1.28.0-alpha.2";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",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","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","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",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"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};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","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"44 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};
13952
+ var name="@thoughtspot/visual-embed-sdk";var version="1.28.0-preRender";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",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","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","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",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",nirmay:"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"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};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","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"44 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};
13926
13953
 
13927
13954
  /**
13928
13955
  * Copyright (c) 2022
@@ -14841,8 +14868,8 @@ class TsEmbed {
14841
14868
  }
14842
14869
  const elBoundingClient = this.el.getBoundingClientRect();
14843
14870
  setStyleProperties(this.preRenderWrapper, {
14844
- top: `${elBoundingClient.y}px`,
14845
- left: `${elBoundingClient.x}px`,
14871
+ top: `${elBoundingClient.y + window.scrollY}px`,
14872
+ left: `${elBoundingClient.x + window.scrollX}px`,
14846
14873
  width: `${elBoundingClient.width}px`,
14847
14874
  height: `${elBoundingClient.height}px`,
14848
14875
  });
@@ -14862,8 +14889,6 @@ class TsEmbed {
14862
14889
  pointerEvents: 'none',
14863
14890
  zIndex: '-1000',
14864
14891
  position: 'absolute ',
14865
- top: '0',
14866
- left: '0',
14867
14892
  };
14868
14893
  setStyleProperties(this.preRenderWrapper, preRenderHideStyles);
14869
14894
  if (this.resizeObserver) {
@@ -15578,6 +15603,16 @@ class SearchBarEmbed extends TsEmbed {
15578
15603
  * @summary TS Sage embed
15579
15604
  * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
15580
15605
  */
15606
+ const HiddenActionItemByDefaultForSageEmbed = [
15607
+ Action.Save,
15608
+ Action.Pin,
15609
+ Action.EditACopy,
15610
+ Action.SaveAsView,
15611
+ Action.UpdateTML,
15612
+ Action.EditTML,
15613
+ Action.AnswerDelete,
15614
+ Action.Share,
15615
+ ];
15581
15616
  /**
15582
15617
  * Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
15583
15618
  *
@@ -15597,6 +15632,7 @@ class SageEmbed extends V1Embed {
15597
15632
  * @returns {string} query string
15598
15633
  */
15599
15634
  getEmbedParams() {
15635
+ var _a;
15600
15636
  const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSearchBarTitle, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
15601
15637
  const params = this.getBaseQueryParams();
15602
15638
  params[Param.EmbedApp] = true;
@@ -15612,6 +15648,10 @@ class SageEmbed extends V1Embed {
15612
15648
  params[Param.IsProductTour] = !!isProductTour;
15613
15649
  params[Param.HideSearchBarTitle] = !!hideSearchBarTitle;
15614
15650
  params[Param.HideSageAnswerHeader] = !!hideSageAnswerHeader;
15651
+ params[Param.HideActions] = [
15652
+ ...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
15653
+ ...HiddenActionItemByDefaultForSageEmbed,
15654
+ ];
15615
15655
  return getQueryParamString(params, true);
15616
15656
  }
15617
15657
  /**
package/dist/tsembed.js CHANGED
@@ -2924,6 +2924,33 @@
2924
2924
  * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
2925
2925
  */
2926
2926
  Action["AskAi"] = "AskAi";
2927
+ /**
2928
+ * The **Add KPI to Watchlist** action on Home page watchlist.
2929
+ * @example
2930
+ * ```js
2931
+ * disabledActions: [Action.AddToWatchlist]
2932
+ * ```
2933
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
2934
+ */
2935
+ Action["AddToWatchlist"] = "addToWatchlist";
2936
+ /**
2937
+ * The **Remove from watchlist** menu action on KPI watchlist.
2938
+ * @example
2939
+ * ```js
2940
+ * disabledActions: [Action.RemoveFromWatchlist]
2941
+ * ```
2942
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
2943
+ */
2944
+ Action["RemoveFromWatchlist"] = "removeFromWatchlist";
2945
+ /**
2946
+ * The **Copy KPI Link** menu action on KPI watchlist.
2947
+ * @example
2948
+ * ```js
2949
+ * disabledActions: [Action.CopyKpiLink]
2950
+ * ```
2951
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
2952
+ */
2953
+ Action["CopyKpiLink"] = "copyKpiLink";
2927
2954
  })(exports.Action || (exports.Action = {}));
2928
2955
  (function (PrefetchFeatures) {
2929
2956
  PrefetchFeatures["FullApp"] = "FullApp";
@@ -13803,7 +13830,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13803
13830
  });
13804
13831
  }
13805
13832
 
13806
- var name="@thoughtspot/visual-embed-sdk";var version="1.28.0-alpha.2";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",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","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","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",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"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};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","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"44 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};
13833
+ var name="@thoughtspot/visual-embed-sdk";var version="1.28.0-preRender";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",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","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","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",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",nirmay:"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"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};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","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"44 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};
13807
13834
 
13808
13835
  /**
13809
13836
  * Copyright (c) 2022
@@ -14722,8 +14749,8 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14722
14749
  }
14723
14750
  const elBoundingClient = this.el.getBoundingClientRect();
14724
14751
  setStyleProperties(this.preRenderWrapper, {
14725
- top: `${elBoundingClient.y}px`,
14726
- left: `${elBoundingClient.x}px`,
14752
+ top: `${elBoundingClient.y + window.scrollY}px`,
14753
+ left: `${elBoundingClient.x + window.scrollX}px`,
14727
14754
  width: `${elBoundingClient.width}px`,
14728
14755
  height: `${elBoundingClient.height}px`,
14729
14756
  });
@@ -14743,8 +14770,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14743
14770
  pointerEvents: 'none',
14744
14771
  zIndex: '-1000',
14745
14772
  position: 'absolute ',
14746
- top: '0',
14747
- left: '0',
14748
14773
  };
14749
14774
  setStyleProperties(this.preRenderWrapper, preRenderHideStyles);
14750
14775
  if (this.resizeObserver) {
@@ -15454,6 +15479,16 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
15454
15479
  * @summary TS Sage embed
15455
15480
  * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
15456
15481
  */
15482
+ const HiddenActionItemByDefaultForSageEmbed = [
15483
+ exports.Action.Save,
15484
+ exports.Action.Pin,
15485
+ exports.Action.EditACopy,
15486
+ exports.Action.SaveAsView,
15487
+ exports.Action.UpdateTML,
15488
+ exports.Action.EditTML,
15489
+ exports.Action.AnswerDelete,
15490
+ exports.Action.Share,
15491
+ ];
15457
15492
  /**
15458
15493
  * Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
15459
15494
  *
@@ -15473,6 +15508,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
15473
15508
  * @returns {string} query string
15474
15509
  */
15475
15510
  getEmbedParams() {
15511
+ var _a;
15476
15512
  const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSearchBarTitle, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
15477
15513
  const params = this.getBaseQueryParams();
15478
15514
  params[Param.EmbedApp] = true;
@@ -15488,6 +15524,10 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
15488
15524
  params[Param.IsProductTour] = !!isProductTour;
15489
15525
  params[Param.HideSearchBarTitle] = !!hideSearchBarTitle;
15490
15526
  params[Param.HideSageAnswerHeader] = !!hideSageAnswerHeader;
15527
+ params[Param.HideActions] = [
15528
+ ...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
15529
+ ...HiddenActionItemByDefaultForSageEmbed,
15530
+ ];
15491
15531
  return getQueryParamString(params, true);
15492
15532
  }
15493
15533
  /**
@@ -354,17 +354,15 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
354
354
  isProductTour?: boolean;
355
355
  /**
356
356
  * Show or hide the search bar title.
357
- * @version SDK: 1.29.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
358
357
  *
359
- * @deprecated Thoughtspot: 9.10.0.cl | search bar doesn't have the title from 9.10.0.cl
358
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
360
359
  */
361
360
  hideSearchBarTitle?: boolean;
362
361
  /**
363
362
  * Show or hide the Answer header, that is, the `AI Answer` title
364
363
  * at the top of the Answer page.
365
- * @version SDK: 1.29.0 | Thoughtspot: 9.10.0.cl
366
364
  *
367
- * @deprecated Thoughtspot: 9.12.0.cl | sage answer doesn't have the header from 9.12.0.cl
365
+ * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
368
366
  */
369
367
  hideSageAnswerHeader?: boolean;
370
368
  /**
@@ -397,6 +395,7 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
397
395
  * Show or hide sample questions.
398
396
  * The sample questions are autogenerated based on the worksheet
399
397
  * selected for the search operation.
398
+ *
400
399
  * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
401
400
  */
402
401
  hideSampleQuestions?: boolean;
@@ -426,6 +425,7 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
426
425
  */
427
426
  searchOptions?: SearchOptions;
428
427
  }
428
+ export declare const HiddenActionItemByDefaultForSageEmbed: Action[];
429
429
  /**
430
430
  * Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
431
431
  *
@@ -5038,7 +5038,34 @@ export declare enum Action {
5038
5038
  * ```
5039
5039
  * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
5040
5040
  */
5041
- AskAi = "AskAi"
5041
+ AskAi = "AskAi",
5042
+ /**
5043
+ * The **Add KPI to Watchlist** action on Home page watchlist.
5044
+ * @example
5045
+ * ```js
5046
+ * disabledActions: [Action.AddToWatchlist]
5047
+ * ```
5048
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
5049
+ */
5050
+ AddToWatchlist = "addToWatchlist",
5051
+ /**
5052
+ * The **Remove from watchlist** menu action on KPI watchlist.
5053
+ * @example
5054
+ * ```js
5055
+ * disabledActions: [Action.RemoveFromWatchlist]
5056
+ * ```
5057
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
5058
+ */
5059
+ RemoveFromWatchlist = "removeFromWatchlist",
5060
+ /**
5061
+ * The **Copy KPI Link** menu action on KPI watchlist.
5062
+ * @example
5063
+ * ```js
5064
+ * disabledActions: [Action.CopyKpiLink]
5065
+ * ```
5066
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
5067
+ */
5068
+ CopyKpiLink = "copyKpiLink"
5042
5069
  }
5043
5070
  export interface AnswerServiceType {
5044
5071
  getAnswer?: (offset: number, batchSize: number) => any;
@@ -343,17 +343,15 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
343
343
  isProductTour?: boolean;
344
344
  /**
345
345
  * Show or hide the search bar title.
346
- * @version SDK: 1.29.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
347
346
  *
348
- * @deprecated Thoughtspot: 9.10.0.cl | search bar doesn't have the title from 9.10.0.cl
347
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
349
348
  */
350
349
  hideSearchBarTitle?: boolean;
351
350
  /**
352
351
  * Show or hide the Answer header, that is, the `AI Answer` title
353
352
  * at the top of the Answer page.
354
- * @version SDK: 1.29.0 | Thoughtspot: 9.10.0.cl
355
353
  *
356
- * @deprecated Thoughtspot: 9.12.0.cl | sage answer doesn't have the header from 9.12.0.cl
354
+ * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
357
355
  */
358
356
  hideSageAnswerHeader?: boolean;
359
357
  /**
@@ -386,6 +384,7 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
386
384
  * Show or hide sample questions.
387
385
  * The sample questions are autogenerated based on the worksheet
388
386
  * selected for the search operation.
387
+ *
389
388
  * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
390
389
  */
391
390
  hideSampleQuestions?: boolean;
@@ -415,6 +414,7 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
415
414
  */
416
415
  searchOptions?: SearchOptions;
417
416
  }
417
+ export declare const HiddenActionItemByDefaultForSageEmbed: Action[];
418
418
  /**
419
419
  * Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
420
420
  *
@@ -4728,7 +4728,34 @@ export declare enum Action {
4728
4728
  * ```
4729
4729
  * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
4730
4730
  */
4731
- AskAi = "AskAi"
4731
+ AskAi = "AskAi",
4732
+ /**
4733
+ * The **Add KPI to Watchlist** action on Home page watchlist.
4734
+ * @example
4735
+ * ```js
4736
+ * disabledActions: [Action.AddToWatchlist]
4737
+ * ```
4738
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
4739
+ */
4740
+ AddToWatchlist = "addToWatchlist",
4741
+ /**
4742
+ * The **Remove from watchlist** menu action on KPI watchlist.
4743
+ * @example
4744
+ * ```js
4745
+ * disabledActions: [Action.RemoveFromWatchlist]
4746
+ * ```
4747
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
4748
+ */
4749
+ RemoveFromWatchlist = "removeFromWatchlist",
4750
+ /**
4751
+ * The **Copy KPI Link** menu action on KPI watchlist.
4752
+ * @example
4753
+ * ```js
4754
+ * disabledActions: [Action.CopyKpiLink]
4755
+ * ```
4756
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
4757
+ */
4758
+ CopyKpiLink = "copyKpiLink"
4732
4759
  }
4733
4760
  export interface AnswerServiceType {
4734
4761
  getAnswer?: (offset: number, batchSize: number) => any;
@@ -4637,7 +4637,34 @@ export enum Action {
4637
4637
  * ```
4638
4638
  * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
4639
4639
  */
4640
- AskAi = "AskAi"
4640
+ AskAi = "AskAi",
4641
+ /**
4642
+ * The **Add KPI to Watchlist** action on Home page watchlist.
4643
+ * @example
4644
+ * ```js
4645
+ * disabledActions: [Action.AddToWatchlist]
4646
+ * ```
4647
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
4648
+ */
4649
+ AddToWatchlist = "addToWatchlist",
4650
+ /**
4651
+ * The **Remove from watchlist** menu action on KPI watchlist.
4652
+ * @example
4653
+ * ```js
4654
+ * disabledActions: [Action.RemoveFromWatchlist]
4655
+ * ```
4656
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
4657
+ */
4658
+ RemoveFromWatchlist = "removeFromWatchlist",
4659
+ /**
4660
+ * The **Copy KPI Link** menu action on KPI watchlist.
4661
+ * @example
4662
+ * ```js
4663
+ * disabledActions: [Action.CopyKpiLink]
4664
+ * ```
4665
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
4666
+ */
4667
+ CopyKpiLink = "copyKpiLink"
4641
4668
  }
4642
4669
  export interface AnswerServiceType {
4643
4670
  getAnswer?: (offset: number, batchSize: number) => any;
@@ -5173,17 +5200,15 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
5173
5200
  isProductTour?: boolean;
5174
5201
  /**
5175
5202
  * Show or hide the search bar title.
5176
- * @version SDK: 1.29.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
5177
5203
  *
5178
- * @deprecated Thoughtspot: 9.10.0.cl | search bar doesn't have the title from 9.10.0.cl
5204
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
5179
5205
  */
5180
5206
  hideSearchBarTitle?: boolean;
5181
5207
  /**
5182
5208
  * Show or hide the Answer header, that is, the `AI Answer` title
5183
5209
  * at the top of the Answer page.
5184
- * @version SDK: 1.29.0 | Thoughtspot: 9.10.0.cl
5185
5210
  *
5186
- * @deprecated Thoughtspot: 9.12.0.cl | sage answer doesn't have the header from 9.12.0.cl
5211
+ * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
5187
5212
  */
5188
5213
  hideSageAnswerHeader?: boolean;
5189
5214
  /**
@@ -5216,6 +5241,7 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
5216
5241
  * Show or hide sample questions.
5217
5242
  * The sample questions are autogenerated based on the worksheet
5218
5243
  * selected for the search operation.
5244
+ *
5219
5245
  * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
5220
5246
  */
5221
5247
  hideSampleQuestions?: boolean;
@@ -5245,6 +5271,7 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
5245
5271
  */
5246
5272
  searchOptions?: SearchOptions;
5247
5273
  }
5274
+ export const HiddenActionItemByDefaultForSageEmbed: Action[];
5248
5275
  /**
5249
5276
  * Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
5250
5277
  *
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.28.0-alpha.2",
3
+ "version": "1.28.0-preRender",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -67,7 +67,8 @@
67
67
  "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",
68
68
  "check-size": "npm run build && size-limit",
69
69
  "publish-dev": "npm publish --tag dev",
70
- "publish-prod": "npm publish --tag latest"
70
+ "publish-prod": "npm publish --tag latest",
71
+ "nirmay": "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"
71
72
  },
72
73
  "peerDependencies": {
73
74
  "react": "> 16.8.0",
@@ -6,7 +6,7 @@
6
6
  * @summary TS Sage embed
7
7
  * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
8
8
  */
9
- import { DOMSelector, ViewConfig } from '../types';
9
+ import { Action, DOMSelector, ViewConfig } from '../types';
10
10
  import { V1Embed } from './ts-embed';
11
11
  /**
12
12
  * Configuration for search options
@@ -55,17 +55,15 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
55
55
  isProductTour?: boolean;
56
56
  /**
57
57
  * Show or hide the search bar title.
58
- * @version SDK: 1.29.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
59
58
  *
60
- * @deprecated Thoughtspot: 9.10.0.cl | search bar doesn't have the title from 9.10.0.cl
59
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
61
60
  */
62
61
  hideSearchBarTitle?: boolean;
63
62
  /**
64
63
  * Show or hide the Answer header, that is, the `AI Answer` title
65
64
  * at the top of the Answer page.
66
- * @version SDK: 1.29.0 | Thoughtspot: 9.10.0.cl
67
65
  *
68
- * @deprecated Thoughtspot: 9.12.0.cl | sage answer doesn't have the header from 9.12.0.cl
66
+ * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
69
67
  */
70
68
  hideSageAnswerHeader?: boolean;
71
69
  /**
@@ -98,6 +96,7 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
98
96
  * Show or hide sample questions.
99
97
  * The sample questions are autogenerated based on the worksheet
100
98
  * selected for the search operation.
99
+ *
101
100
  * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
102
101
  */
103
102
  hideSampleQuestions?: boolean;
@@ -127,6 +126,7 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
127
126
  */
128
127
  searchOptions?: SearchOptions;
129
128
  }
129
+ export declare const HiddenActionItemByDefaultForSageEmbed: Action[];
130
130
  /**
131
131
  * Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
132
132
  *
@@ -1 +1 @@
1
- {"version":3,"file":"sage.d.ts","sourceRoot":"","sources":["../../../src/embed/sage.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACK,WAAW,EAAS,UAAU,EACzC,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,cACb,SAAQ,IAAI,CACR,UAAU,EACV,uBAAuB,GAAG,wBAAwB,GAAG,YAAY,GAAG,aAAa,GAAG,0BAA0B,CACjH;IACD;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;;;OAMG;I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G;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;OAIG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC;;;;;;OAMG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC;AACD,eAAO,MAAM,qCAAqC,UASjD,CAAC;AACF;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,OAAO;IAClC;;;OAGG;IACH,SAAS,CAAC,UAAU,EAAE,cAAc,CAAC;gBAGzB,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc;IAKhE;;;;;OAKG;IACH,SAAS,CAAC,cAAc,IAAI,MAAM;IAkClC;;;;;OAKG;IACI,YAAY,IAAI,MAAM;IAqB7B;;;;OAIG;IACI,MAAM,IAAI,SAAS;CAQ7B"}
@@ -6,9 +6,19 @@
6
6
  * @summary TS Sage embed
7
7
  * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
8
8
  */
9
- import { Param, } from '../types';
9
+ import { Action, Param, } from '../types';
10
10
  import { getQueryParamString } from '../utils';
11
11
  import { V1Embed } from './ts-embed';
12
+ export const HiddenActionItemByDefaultForSageEmbed = [
13
+ Action.Save,
14
+ Action.Pin,
15
+ Action.EditACopy,
16
+ Action.SaveAsView,
17
+ Action.UpdateTML,
18
+ Action.EditTML,
19
+ Action.AnswerDelete,
20
+ Action.Share,
21
+ ];
12
22
  /**
13
23
  * Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
14
24
  *
@@ -28,6 +38,7 @@ export class SageEmbed extends V1Embed {
28
38
  * @returns {string} query string
29
39
  */
30
40
  getEmbedParams() {
41
+ var _a;
31
42
  const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSearchBarTitle, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
32
43
  const params = this.getBaseQueryParams();
33
44
  params[Param.EmbedApp] = true;
@@ -43,6 +54,10 @@ export class SageEmbed extends V1Embed {
43
54
  params[Param.IsProductTour] = !!isProductTour;
44
55
  params[Param.HideSearchBarTitle] = !!hideSearchBarTitle;
45
56
  params[Param.HideSageAnswerHeader] = !!hideSageAnswerHeader;
57
+ params[Param.HideActions] = [
58
+ ...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
59
+ ...HiddenActionItemByDefaultForSageEmbed,
60
+ ];
46
61
  return getQueryParamString(params, true);
47
62
  }
48
63
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sage.js","sourceRoot":"","sources":["../../../src/embed/sage.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACkB,KAAK,GAC7B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AA8HrC;;;;;GAKG;AACH,MAAM,OAAO,SAAU,SAAQ,OAAO;IAOlC,kDAAkD;IAClD,YAAY,WAAwB,EAAE,UAA0B;QAC5D,UAAU,CAAC,kBAAkB,GAAG,WAAW,CAAC;QAC5C,KAAK,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IACnC,CAAC;IAED;;;;;OAKG;IACO,cAAc;QACpB,MAAM,EACF,sBAAsB,EACtB,qBA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