@thoughtspot/visual-embed-sdk 1.28.0-alpha.1 → 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.
@@ -183,6 +183,7 @@ var AuthType;
183
183
  * .then((response) => response.json())
184
184
  * .then((data) => data.token);
185
185
  * }
186
+ * });
186
187
  * ```
187
188
  */
188
189
  AuthType["TrustedAuthToken"] = "AuthServer";
@@ -525,15 +526,40 @@ var EmbedEvent;
525
526
  */
526
527
  EmbedEvent["VizPointClick"] = "vizPointClick";
527
528
  /**
528
- * An error has occurred.
529
+ * An error has occurred. This event is fired for the following error types:
530
+ *
531
+ * `API` - API call failure error.
532
+ *
533
+ * `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen mode.
534
+ *
535
+ * `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value filter.
529
536
  *
537
+ * `NON_EXIST_FILTER` - Error due to a non-existent filter.
538
+ *
539
+ * `INVALID_DATE_VALUE` - Invalid date value error.
540
+ *
541
+ * `INVALID_OPERATOR` - Use of invalid operator during filter application.
542
+ *
543
+ * For more information, see [Developer Documentation](https://developers.thoughtspot.com/docs/events-app-integration#errorType)
530
544
  * @returns error - An error object or message
531
545
  * @example
532
546
  * ```js
533
- * SearchEmbed.on(EmbedEvent.Error, showErrorMsg)
534
- * //show error messaage
535
- * function showErrorMsg() {
536
- * document.getElementById("error");
547
+ * // API error
548
+ * SearchEmbed.on(EmbedEvent.Error, (error) => {
549
+ * console.log(error);
550
+ * // { type: "Error", data: { errorType: "API", error: { message: '...', error: '...' } } }
551
+ * });
552
+ * ```
553
+ * @example
554
+ * ```js
555
+ * // Fullscreen error (Errors during presenting of a liveboard)
556
+ * LiveboardEmbed.on(EmbedEvent.Error, (error) => {
557
+ * console.log(error);
558
+ * // { type: "Error", data: { errorType: "FULLSCREEN", error: {
559
+ * // message: "Fullscreen API is not enabled",
560
+ * // stack: "..."
561
+ * // } }}
562
+ * })
537
563
  * ```
538
564
  */
539
565
  EmbedEvent["Error"] = "Error";
@@ -1243,7 +1269,7 @@ var EmbedEvent;
1243
1269
  /**
1244
1270
  * Emitted when a LB/viz is renamed
1245
1271
  *
1246
- * @version SDK : 1.28.0 | ThoughtSpot: 9.11.0.cl
1272
+ * @version SDK : 1.28.0 | ThoughtSpot: 9.10.5.cl
1247
1273
  */
1248
1274
  EmbedEvent["Rename"] = "rename";
1249
1275
  })(EmbedEvent || (EmbedEvent = {}));
@@ -1918,7 +1944,7 @@ var HostEvent;
1918
1944
  */
1919
1945
  HostEvent["ResetSearch"] = "resetSearch";
1920
1946
  /**
1921
- * @hidden
1947
+ *
1922
1948
  * Get the currents visible and runtime filters applied on a Liveboard
1923
1949
  * @example
1924
1950
  * liveboardEmbed.trigger(HostEvent.GetFilters)
@@ -1926,7 +1952,7 @@ var HostEvent;
1926
1952
  */
1927
1953
  HostEvent["GetFilters"] = "getFilters";
1928
1954
  /**
1929
- * @hidden
1955
+ *
1930
1956
  * Update the visible filters on the Liveboard.
1931
1957
  * @param - filter: filter object containing column name and filter operation and values
1932
1958
  * @example
@@ -2992,6 +3018,33 @@ var Action;
2992
3018
  * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
2993
3019
  */
2994
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";
2995
3048
  })(Action || (Action = {}));
2996
3049
  var PrefetchFeatures;
2997
3050
  (function (PrefetchFeatures) {
@@ -13896,7 +13949,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
13896
13949
  });
13897
13950
  }
13898
13951
 
13899
- var name="@thoughtspot/visual-embed-sdk";var version="1.28.0-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",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};
13900
13953
 
13901
13954
  /**
13902
13955
  * Copyright (c) 2022
@@ -14815,8 +14868,8 @@ class TsEmbed {
14815
14868
  }
14816
14869
  const elBoundingClient = this.el.getBoundingClientRect();
14817
14870
  setStyleProperties(this.preRenderWrapper, {
14818
- top: `${elBoundingClient.y}px`,
14819
- left: `${elBoundingClient.x}px`,
14871
+ top: `${elBoundingClient.y + window.scrollY}px`,
14872
+ left: `${elBoundingClient.x + window.scrollX}px`,
14820
14873
  width: `${elBoundingClient.width}px`,
14821
14874
  height: `${elBoundingClient.height}px`,
14822
14875
  });
@@ -14836,8 +14889,6 @@ class TsEmbed {
14836
14889
  pointerEvents: 'none',
14837
14890
  zIndex: '-1000',
14838
14891
  position: 'absolute ',
14839
- top: '0',
14840
- left: '0',
14841
14892
  };
14842
14893
  setStyleProperties(this.preRenderWrapper, preRenderHideStyles);
14843
14894
  if (this.resizeObserver) {
package/dist/tsembed.js CHANGED
@@ -181,6 +181,7 @@
181
181
  * .then((response) => response.json())
182
182
  * .then((data) => data.token);
183
183
  * }
184
+ * });
184
185
  * ```
185
186
  */
186
187
  AuthType["TrustedAuthToken"] = "AuthServer";
@@ -490,15 +491,40 @@
490
491
  */
491
492
  EmbedEvent["VizPointClick"] = "vizPointClick";
492
493
  /**
493
- * An error has occurred.
494
+ * An error has occurred. This event is fired for the following error types:
495
+ *
496
+ * `API` - API call failure error.
497
+ *
498
+ * `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen mode.
499
+ *
500
+ * `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value filter.
494
501
  *
502
+ * `NON_EXIST_FILTER` - Error due to a non-existent filter.
503
+ *
504
+ * `INVALID_DATE_VALUE` - Invalid date value error.
505
+ *
506
+ * `INVALID_OPERATOR` - Use of invalid operator during filter application.
507
+ *
508
+ * For more information, see [Developer Documentation](https://developers.thoughtspot.com/docs/events-app-integration#errorType)
495
509
  * @returns error - An error object or message
496
510
  * @example
497
511
  * ```js
498
- * SearchEmbed.on(EmbedEvent.Error, showErrorMsg)
499
- * //show error messaage
500
- * function showErrorMsg() {
501
- * document.getElementById("error");
512
+ * // API error
513
+ * SearchEmbed.on(EmbedEvent.Error, (error) => {
514
+ * console.log(error);
515
+ * // { type: "Error", data: { errorType: "API", error: { message: '...', error: '...' } } }
516
+ * });
517
+ * ```
518
+ * @example
519
+ * ```js
520
+ * // Fullscreen error (Errors during presenting of a liveboard)
521
+ * LiveboardEmbed.on(EmbedEvent.Error, (error) => {
522
+ * console.log(error);
523
+ * // { type: "Error", data: { errorType: "FULLSCREEN", error: {
524
+ * // message: "Fullscreen API is not enabled",
525
+ * // stack: "..."
526
+ * // } }}
527
+ * })
502
528
  * ```
503
529
  */
504
530
  EmbedEvent["Error"] = "Error";
@@ -1208,7 +1234,7 @@
1208
1234
  /**
1209
1235
  * Emitted when a LB/viz is renamed
1210
1236
  *
1211
- * @version SDK : 1.28.0 | ThoughtSpot: 9.11.0.cl
1237
+ * @version SDK : 1.28.0 | ThoughtSpot: 9.10.5.cl
1212
1238
  */
1213
1239
  EmbedEvent["Rename"] = "rename";
1214
1240
  })(exports.EmbedEvent || (exports.EmbedEvent = {}));
@@ -1859,7 +1885,7 @@
1859
1885
  */
1860
1886
  HostEvent["ResetSearch"] = "resetSearch";
1861
1887
  /**
1862
- * @hidden
1888
+ *
1863
1889
  * Get the currents visible and runtime filters applied on a Liveboard
1864
1890
  * @example
1865
1891
  * liveboardEmbed.trigger(HostEvent.GetFilters)
@@ -1867,7 +1893,7 @@
1867
1893
  */
1868
1894
  HostEvent["GetFilters"] = "getFilters";
1869
1895
  /**
1870
- * @hidden
1896
+ *
1871
1897
  * Update the visible filters on the Liveboard.
1872
1898
  * @param - filter: filter object containing column name and filter operation and values
1873
1899
  * @example
@@ -2898,6 +2924,33 @@
2898
2924
  * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
2899
2925
  */
2900
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";
2901
2954
  })(exports.Action || (exports.Action = {}));
2902
2955
  (function (PrefetchFeatures) {
2903
2956
  PrefetchFeatures["FullApp"] = "FullApp";
@@ -13777,7 +13830,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13777
13830
  });
13778
13831
  }
13779
13832
 
13780
- var name="@thoughtspot/visual-embed-sdk";var version="1.28.0-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",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};
13781
13834
 
13782
13835
  /**
13783
13836
  * Copyright (c) 2022
@@ -14696,8 +14749,8 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14696
14749
  }
14697
14750
  const elBoundingClient = this.el.getBoundingClientRect();
14698
14751
  setStyleProperties(this.preRenderWrapper, {
14699
- top: `${elBoundingClient.y}px`,
14700
- left: `${elBoundingClient.x}px`,
14752
+ top: `${elBoundingClient.y + window.scrollY}px`,
14753
+ left: `${elBoundingClient.x + window.scrollX}px`,
14701
14754
  width: `${elBoundingClient.width}px`,
14702
14755
  height: `${elBoundingClient.height}px`,
14703
14756
  });
@@ -14717,8 +14770,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14717
14770
  pointerEvents: 'none',
14718
14771
  zIndex: '-1000',
14719
14772
  position: 'absolute ',
14720
- top: '0',
14721
- left: '0',
14722
14773
  };
14723
14774
  setStyleProperties(this.preRenderWrapper, preRenderHideStyles);
14724
14775
  if (this.resizeObserver) {
@@ -1506,6 +1506,7 @@ export declare enum AuthType {
1506
1506
  * .then((response) => response.json())
1507
1507
  * .then((data) => data.token);
1508
1508
  * }
1509
+ * });
1509
1510
  * ```
1510
1511
  */
1511
1512
  TrustedAuthToken = "AuthServer",
@@ -2102,14 +2103,14 @@ export interface ViewConfig {
2102
2103
  * Hide the home page modules
2103
2104
  * eg: hiddenHomepageModules = [HomepageModule.MyLibrary]
2104
2105
  *
2105
- * @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
2106
+ * @version SDK: 1.27.0 | Thoughtspot: 9.12.0.cl
2106
2107
  */
2107
2108
  hiddenHomepageModules?: HomepageModule[];
2108
2109
  /**
2109
2110
  * reordering the home page modules
2110
2111
  * eg: reorderedHomepageModules = [HomepageModule.MyLibrary, HomepageModule.Watchlist]
2111
2112
  *
2112
- * @version SDK: 1.28.0 | Thoughtspot: 9.9.0.cl
2113
+ * @version SDK: 1.28.0 | Thoughtspot: 9.12.0.cl
2113
2114
  */
2114
2115
  reorderedHomepageModules?: HomepageModule[];
2115
2116
  /**
@@ -2136,7 +2137,7 @@ export interface ViewConfig {
2136
2137
  * hiddenHomeLeftNavItems = [HomeLeftNavItem.Home]
2137
2138
  * ```
2138
2139
  *
2139
- * @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
2140
+ * @version SDK: 1.27.0 | Thoughtspot: 9.12.0.cl
2140
2141
  */
2141
2142
  hiddenHomeLeftNavItems?: HomeLeftNavItem[];
2142
2143
  /**
@@ -2555,15 +2556,40 @@ export declare enum EmbedEvent {
2555
2556
  */
2556
2557
  VizPointClick = "vizPointClick",
2557
2558
  /**
2558
- * An error has occurred.
2559
+ * An error has occurred. This event is fired for the following error types:
2560
+ *
2561
+ * `API` - API call failure error.
2562
+ *
2563
+ * `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen mode.
2564
+ *
2565
+ * `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value filter.
2566
+ *
2567
+ * `NON_EXIST_FILTER` - Error due to a non-existent filter.
2568
+ *
2569
+ * `INVALID_DATE_VALUE` - Invalid date value error.
2570
+ *
2571
+ * `INVALID_OPERATOR` - Use of invalid operator during filter application.
2559
2572
  *
2573
+ * For more information, see [Developer Documentation](https://developers.thoughtspot.com/docs/events-app-integration#errorType)
2560
2574
  * @returns error - An error object or message
2561
2575
  * @example
2562
2576
  * ```js
2563
- * SearchEmbed.on(EmbedEvent.Error, showErrorMsg)
2564
- * //show error messaage
2565
- * function showErrorMsg() {
2566
- * document.getElementById("error");
2577
+ * // API error
2578
+ * SearchEmbed.on(EmbedEvent.Error, (error) => {
2579
+ * console.log(error);
2580
+ * // { type: "Error", data: { errorType: "API", error: { message: '...', error: '...' } } }
2581
+ * });
2582
+ * ```
2583
+ * @example
2584
+ * ```js
2585
+ * // Fullscreen error (Errors during presenting of a liveboard)
2586
+ * LiveboardEmbed.on(EmbedEvent.Error, (error) => {
2587
+ * console.log(error);
2588
+ * // { type: "Error", data: { errorType: "FULLSCREEN", error: {
2589
+ * // message: "Fullscreen API is not enabled",
2590
+ * // stack: "..."
2591
+ * // } }}
2592
+ * })
2567
2593
  * ```
2568
2594
  */
2569
2595
  Error = "Error",
@@ -3273,7 +3299,7 @@ export declare enum EmbedEvent {
3273
3299
  /**
3274
3300
  * Emitted when a LB/viz is renamed
3275
3301
  *
3276
- * @version SDK : 1.28.0 | ThoughtSpot: 9.11.0.cl
3302
+ * @version SDK : 1.28.0 | ThoughtSpot: 9.10.5.cl
3277
3303
  */
3278
3304
  Rename = "rename"
3279
3305
  }
@@ -3946,7 +3972,7 @@ export declare enum HostEvent {
3946
3972
  */
3947
3973
  ResetSearch = "resetSearch",
3948
3974
  /**
3949
- * @hidden
3975
+ *
3950
3976
  * Get the currents visible and runtime filters applied on a Liveboard
3951
3977
  * @example
3952
3978
  * liveboardEmbed.trigger(HostEvent.GetFilters)
@@ -3954,7 +3980,7 @@ export declare enum HostEvent {
3954
3980
  */
3955
3981
  GetFilters = "getFilters",
3956
3982
  /**
3957
- * @hidden
3983
+ *
3958
3984
  * Update the visible filters on the Liveboard.
3959
3985
  * @param - filter: filter object containing column name and filter operation and values
3960
3986
  * @example
@@ -5012,7 +5038,34 @@ export declare enum Action {
5012
5038
  * ```
5013
5039
  * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
5014
5040
  */
5015
- 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"
5016
5069
  }
5017
5070
  export interface AnswerServiceType {
5018
5071
  getAnswer?: (offset: number, batchSize: number) => any;
@@ -1196,6 +1196,7 @@ export declare enum AuthType {
1196
1196
  * .then((response) => response.json())
1197
1197
  * .then((data) => data.token);
1198
1198
  * }
1199
+ * });
1199
1200
  * ```
1200
1201
  */
1201
1202
  TrustedAuthToken = "AuthServer",
@@ -1792,14 +1793,14 @@ export interface ViewConfig {
1792
1793
  * Hide the home page modules
1793
1794
  * eg: hiddenHomepageModules = [HomepageModule.MyLibrary]
1794
1795
  *
1795
- * @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
1796
+ * @version SDK: 1.27.0 | Thoughtspot: 9.12.0.cl
1796
1797
  */
1797
1798
  hiddenHomepageModules?: HomepageModule[];
1798
1799
  /**
1799
1800
  * reordering the home page modules
1800
1801
  * eg: reorderedHomepageModules = [HomepageModule.MyLibrary, HomepageModule.Watchlist]
1801
1802
  *
1802
- * @version SDK: 1.28.0 | Thoughtspot: 9.9.0.cl
1803
+ * @version SDK: 1.28.0 | Thoughtspot: 9.12.0.cl
1803
1804
  */
1804
1805
  reorderedHomepageModules?: HomepageModule[];
1805
1806
  /**
@@ -1826,7 +1827,7 @@ export interface ViewConfig {
1826
1827
  * hiddenHomeLeftNavItems = [HomeLeftNavItem.Home]
1827
1828
  * ```
1828
1829
  *
1829
- * @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
1830
+ * @version SDK: 1.27.0 | Thoughtspot: 9.12.0.cl
1830
1831
  */
1831
1832
  hiddenHomeLeftNavItems?: HomeLeftNavItem[];
1832
1833
  /**
@@ -2245,15 +2246,40 @@ export declare enum EmbedEvent {
2245
2246
  */
2246
2247
  VizPointClick = "vizPointClick",
2247
2248
  /**
2248
- * An error has occurred.
2249
+ * An error has occurred. This event is fired for the following error types:
2250
+ *
2251
+ * `API` - API call failure error.
2252
+ *
2253
+ * `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen mode.
2254
+ *
2255
+ * `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value filter.
2256
+ *
2257
+ * `NON_EXIST_FILTER` - Error due to a non-existent filter.
2258
+ *
2259
+ * `INVALID_DATE_VALUE` - Invalid date value error.
2260
+ *
2261
+ * `INVALID_OPERATOR` - Use of invalid operator during filter application.
2249
2262
  *
2263
+ * For more information, see [Developer Documentation](https://developers.thoughtspot.com/docs/events-app-integration#errorType)
2250
2264
  * @returns error - An error object or message
2251
2265
  * @example
2252
2266
  * ```js
2253
- * SearchEmbed.on(EmbedEvent.Error, showErrorMsg)
2254
- * //show error messaage
2255
- * function showErrorMsg() {
2256
- * document.getElementById("error");
2267
+ * // API error
2268
+ * SearchEmbed.on(EmbedEvent.Error, (error) => {
2269
+ * console.log(error);
2270
+ * // { type: "Error", data: { errorType: "API", error: { message: '...', error: '...' } } }
2271
+ * });
2272
+ * ```
2273
+ * @example
2274
+ * ```js
2275
+ * // Fullscreen error (Errors during presenting of a liveboard)
2276
+ * LiveboardEmbed.on(EmbedEvent.Error, (error) => {
2277
+ * console.log(error);
2278
+ * // { type: "Error", data: { errorType: "FULLSCREEN", error: {
2279
+ * // message: "Fullscreen API is not enabled",
2280
+ * // stack: "..."
2281
+ * // } }}
2282
+ * })
2257
2283
  * ```
2258
2284
  */
2259
2285
  Error = "Error",
@@ -2963,7 +2989,7 @@ export declare enum EmbedEvent {
2963
2989
  /**
2964
2990
  * Emitted when a LB/viz is renamed
2965
2991
  *
2966
- * @version SDK : 1.28.0 | ThoughtSpot: 9.11.0.cl
2992
+ * @version SDK : 1.28.0 | ThoughtSpot: 9.10.5.cl
2967
2993
  */
2968
2994
  Rename = "rename"
2969
2995
  }
@@ -3636,7 +3662,7 @@ export declare enum HostEvent {
3636
3662
  */
3637
3663
  ResetSearch = "resetSearch",
3638
3664
  /**
3639
- * @hidden
3665
+ *
3640
3666
  * Get the currents visible and runtime filters applied on a Liveboard
3641
3667
  * @example
3642
3668
  * liveboardEmbed.trigger(HostEvent.GetFilters)
@@ -3644,7 +3670,7 @@ export declare enum HostEvent {
3644
3670
  */
3645
3671
  GetFilters = "getFilters",
3646
3672
  /**
3647
- * @hidden
3673
+ *
3648
3674
  * Update the visible filters on the Liveboard.
3649
3675
  * @param - filter: filter object containing column name and filter operation and values
3650
3676
  * @example
@@ -4702,7 +4728,34 @@ export declare enum Action {
4702
4728
  * ```
4703
4729
  * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
4704
4730
  */
4705
- 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"
4706
4759
  }
4707
4760
  export interface AnswerServiceType {
4708
4761
  getAnswer?: (offset: number, batchSize: number) => any;