@thoughtspot/visual-embed-sdk 1.46.3 → 1.46.4
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.
- package/cjs/package.json +2 -2
- package/dist/{index-DyX-x6uN.js → index-DGV_zh53.js} +1 -1
- package/dist/tsembed-react.es.js +3 -3
- package/dist/tsembed-react.js +2 -2
- package/dist/tsembed.es.js +3 -3
- package/dist/tsembed.js +2 -2
- package/lib/package.json +2 -2
- package/lib/src/visual-embed-sdk.d.ts +61 -60
- package/package.json +2 -2
package/cjs/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thoughtspot/visual-embed-sdk",
|
|
3
|
-
"version": "1.46.
|
|
3
|
+
"version": "1.46.4",
|
|
4
4
|
"description": "ThoughtSpot Embed SDK",
|
|
5
5
|
"module": "lib/src/index.js",
|
|
6
6
|
"main": "dist/tsembed.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"lint:fix": "eslint 'src/**/*.*' --fix",
|
|
47
47
|
"tsc": "tsc -p tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs",
|
|
48
48
|
"build-and-publish": "npm run build:gatsby && npm run publish",
|
|
49
|
-
"bundle-dts-file": "dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js",
|
|
49
|
+
"bundle-dts-file": "dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js && node dts-config/wrap-ambient-module.mjs",
|
|
50
50
|
"bundle-dts": "dts-bundle-generator --config ./dts-config/dts-bundle.config.js",
|
|
51
51
|
"bundle-dts-react": "dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js",
|
|
52
52
|
"bundle-dts-react-full": "dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",
|
package/dist/tsembed-react.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.46.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.46.4 */
|
|
2
2
|
'use client';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { useRef, useCallback } from 'react';
|
|
@@ -9163,7 +9163,7 @@ class AnswerService {
|
|
|
9163
9163
|
async getTML() {
|
|
9164
9164
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
9165
9165
|
const edoc = object[0].edoc;
|
|
9166
|
-
const YAML = await import('./index-
|
|
9166
|
+
const YAML = await import('./index-DGV_zh53.js');
|
|
9167
9167
|
const parsedDoc = YAML.parse(edoc);
|
|
9168
9168
|
return {
|
|
9169
9169
|
answer: {
|
|
@@ -18465,7 +18465,7 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
|
|
|
18465
18465
|
return eventData;
|
|
18466
18466
|
}
|
|
18467
18467
|
|
|
18468
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.
|
|
18468
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.4";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 tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js && node dts-config/wrap-ambient-module.mjs","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | npx coveralls-next || echo 'Warning: Coveralls upload failed but not breaking the build.'","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.23","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^11.2.0","@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":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"32 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};
|
|
18469
18469
|
|
|
18470
18470
|
class HostEventClient {
|
|
18471
18471
|
constructor(iFrame) {
|
package/dist/tsembed-react.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.46.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.46.4 */
|
|
2
2
|
'use client';
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
|
|
@@ -18487,7 +18487,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
18487
18487
|
return eventData;
|
|
18488
18488
|
}
|
|
18489
18489
|
|
|
18490
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.
|
|
18490
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.4";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 tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js && node dts-config/wrap-ambient-module.mjs","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | npx coveralls-next || echo 'Warning: Coveralls upload failed but not breaking the build.'","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.23","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^11.2.0","@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":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"32 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};
|
|
18491
18491
|
|
|
18492
18492
|
class HostEventClient {
|
|
18493
18493
|
constructor(iFrame) {
|
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.46.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.46.4 */
|
|
2
2
|
'use client';
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
@@ -9048,7 +9048,7 @@ class AnswerService {
|
|
|
9048
9048
|
async getTML() {
|
|
9049
9049
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
9050
9050
|
const edoc = object[0].edoc;
|
|
9051
|
-
const YAML = await import('./index-
|
|
9051
|
+
const YAML = await import('./index-DGV_zh53.js');
|
|
9052
9052
|
const parsedDoc = YAML.parse(edoc);
|
|
9053
9053
|
return {
|
|
9054
9054
|
answer: {
|
|
@@ -18529,7 +18529,7 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
|
|
|
18529
18529
|
return eventData;
|
|
18530
18530
|
}
|
|
18531
18531
|
|
|
18532
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.
|
|
18532
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.4";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 tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js && node dts-config/wrap-ambient-module.mjs","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | npx coveralls-next || echo 'Warning: Coveralls upload failed but not breaking the build.'","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.23","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^11.2.0","@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":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"32 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};
|
|
18533
18533
|
|
|
18534
18534
|
class HostEventClient {
|
|
18535
18535
|
constructor(iFrame) {
|
package/dist/tsembed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.46.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.46.4 */
|
|
2
2
|
'use client';
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -18535,7 +18535,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
18535
18535
|
return eventData;
|
|
18536
18536
|
}
|
|
18537
18537
|
|
|
18538
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.
|
|
18538
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.4";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 tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js && node dts-config/wrap-ambient-module.mjs","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | npx coveralls-next || echo 'Warning: Coveralls upload failed but not breaking the build.'","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.23","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^11.2.0","@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":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"32 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};
|
|
18539
18539
|
|
|
18540
18540
|
class HostEventClient {
|
|
18541
18541
|
constructor(iFrame) {
|
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thoughtspot/visual-embed-sdk",
|
|
3
|
-
"version": "1.46.
|
|
3
|
+
"version": "1.46.4",
|
|
4
4
|
"description": "ThoughtSpot Embed SDK",
|
|
5
5
|
"module": "lib/src/index.js",
|
|
6
6
|
"main": "dist/tsembed.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"lint:fix": "eslint 'src/**/*.*' --fix",
|
|
47
47
|
"tsc": "tsc -p tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs",
|
|
48
48
|
"build-and-publish": "npm run build:gatsby && npm run publish",
|
|
49
|
-
"bundle-dts-file": "dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js",
|
|
49
|
+
"bundle-dts-file": "dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js && node dts-config/wrap-ambient-module.mjs",
|
|
50
50
|
"bundle-dts": "dts-bundle-generator --config ./dts-config/dts-bundle.config.js",
|
|
51
51
|
"bundle-dts-react": "dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js",
|
|
52
52
|
"bundle-dts-react-full": "dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
declare module '@thoughtspot/visual-embed-sdk' {
|
|
1
2
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -811,7 +812,7 @@ export interface UnderlyingDataPoint {
|
|
|
811
812
|
* @version SDK: 1.25.0 | ThoughtSpot: 9.10.0.cl
|
|
812
813
|
* @group Events
|
|
813
814
|
*/
|
|
814
|
-
export
|
|
815
|
+
export class AnswerService {
|
|
815
816
|
private session;
|
|
816
817
|
private thoughtSpotHost;
|
|
817
818
|
private selectedPoints?;
|
|
@@ -953,7 +954,7 @@ export declare class AnswerService {
|
|
|
953
954
|
* the embedded app
|
|
954
955
|
* @group Authentication / Init
|
|
955
956
|
*/
|
|
956
|
-
export
|
|
957
|
+
export enum AuthType {
|
|
957
958
|
/**
|
|
958
959
|
* No authentication on the SDK. Pass-through to the embedded App. Alias for
|
|
959
960
|
* `Passthrough`.
|
|
@@ -1113,7 +1114,7 @@ export declare enum AuthType {
|
|
|
1113
1114
|
* **Note**: This attribute is not supported in the classic (V1) homepage experience.
|
|
1114
1115
|
*
|
|
1115
1116
|
*/
|
|
1116
|
-
export
|
|
1117
|
+
export enum HomeLeftNavItem {
|
|
1117
1118
|
/**
|
|
1118
1119
|
* The *Search data* option in
|
|
1119
1120
|
* the *Insights* left navigation panel.
|
|
@@ -2931,7 +2932,7 @@ responder?: (data: any) => void) => void;
|
|
|
2931
2932
|
/**
|
|
2932
2933
|
* A map of the supported runtime filter operations
|
|
2933
2934
|
*/
|
|
2934
|
-
export
|
|
2935
|
+
export enum RuntimeFilterOp {
|
|
2935
2936
|
/**
|
|
2936
2937
|
* Equals
|
|
2937
2938
|
*/
|
|
@@ -3001,7 +3002,7 @@ export declare enum RuntimeFilterOp {
|
|
|
3001
3002
|
* **Note**: This option is not supported in the classic (v1) experience.
|
|
3002
3003
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3003
3004
|
*/
|
|
3004
|
-
export
|
|
3005
|
+
export enum HomepageModule {
|
|
3005
3006
|
/**
|
|
3006
3007
|
* Search bar
|
|
3007
3008
|
*/
|
|
@@ -3032,7 +3033,7 @@ export declare enum HomepageModule {
|
|
|
3032
3033
|
* **Note**: This option is applicable to full app embedding only.
|
|
3033
3034
|
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
3034
3035
|
*/
|
|
3035
|
-
export
|
|
3036
|
+
export enum ListPageColumns {
|
|
3036
3037
|
/**
|
|
3037
3038
|
* Favorites
|
|
3038
3039
|
*/
|
|
@@ -3136,7 +3137,7 @@ export interface RuntimeParameter {
|
|
|
3136
3137
|
* ```
|
|
3137
3138
|
* @group Events
|
|
3138
3139
|
*/
|
|
3139
|
-
export
|
|
3140
|
+
export enum EmbedEvent {
|
|
3140
3141
|
/**
|
|
3141
3142
|
* Rendering has initialized.
|
|
3142
3143
|
* @example
|
|
@@ -4497,7 +4498,7 @@ export declare enum EmbedEvent {
|
|
|
4497
4498
|
* ```
|
|
4498
4499
|
* @group Events
|
|
4499
4500
|
*/
|
|
4500
|
-
export
|
|
4501
|
+
export enum HostEvent {
|
|
4501
4502
|
/**
|
|
4502
4503
|
* Triggers a search operation with the search tokens specified in
|
|
4503
4504
|
* the search query string.
|
|
@@ -5847,7 +5848,7 @@ export declare enum HostEvent {
|
|
|
5847
5848
|
* The different visual modes that the data sources panel within
|
|
5848
5849
|
* search could appear in, such as hidden, collapsed, or expanded.
|
|
5849
5850
|
*/
|
|
5850
|
-
export
|
|
5851
|
+
export enum DataSourceVisualMode {
|
|
5851
5852
|
/**
|
|
5852
5853
|
* The data source panel is hidden.
|
|
5853
5854
|
*/
|
|
@@ -5888,7 +5889,7 @@ export declare enum DataSourceVisualMode {
|
|
|
5888
5889
|
* ```
|
|
5889
5890
|
* See also link:https://developers.thoughtspot.com/docs/actions[Developer Documentation].
|
|
5890
5891
|
*/
|
|
5891
|
-
export
|
|
5892
|
+
export enum Action {
|
|
5892
5893
|
/**
|
|
5893
5894
|
* The **Save** action on an Answer or Liveboard.
|
|
5894
5895
|
* Allows users to save the changes.
|
|
@@ -7386,7 +7387,7 @@ export declare enum Action {
|
|
|
7386
7387
|
*/
|
|
7387
7388
|
IncludeCurrentPeriod = "includeCurrentPeriod"
|
|
7388
7389
|
}
|
|
7389
|
-
export
|
|
7390
|
+
export enum PrefetchFeatures {
|
|
7390
7391
|
FullApp = "FullApp",
|
|
7391
7392
|
SearchEmbed = "SearchEmbed",
|
|
7392
7393
|
LiveboardEmbed = "LiveboardEmbed",
|
|
@@ -7396,7 +7397,7 @@ export declare enum PrefetchFeatures {
|
|
|
7396
7397
|
* Enum for options to change context trigger.
|
|
7397
7398
|
* The `BOTH_CLICKS` option is available from 10.8.0.cl.
|
|
7398
7399
|
*/
|
|
7399
|
-
export
|
|
7400
|
+
export enum ContextMenuTriggerOptions {
|
|
7400
7401
|
LEFT_CLICK = "left-click",
|
|
7401
7402
|
RIGHT_CLICK = "right-click",
|
|
7402
7403
|
BOTH_CLICKS = "both-clicks"
|
|
@@ -7463,7 +7464,7 @@ export interface CustomAction {
|
|
|
7463
7464
|
* Enum options to show custom actions at different
|
|
7464
7465
|
* positions in the application.
|
|
7465
7466
|
*/
|
|
7466
|
-
export
|
|
7467
|
+
export enum CustomActionsPosition {
|
|
7467
7468
|
/**
|
|
7468
7469
|
* Shows the action as a primary button
|
|
7469
7470
|
* in the toolbar area of the embed.
|
|
@@ -7489,7 +7490,7 @@ export declare enum CustomActionsPosition {
|
|
|
7489
7490
|
* associated with, and also controls which positions and scoping options
|
|
7490
7491
|
* are available.
|
|
7491
7492
|
*/
|
|
7492
|
-
export
|
|
7493
|
+
export enum CustomActionTarget {
|
|
7493
7494
|
/**
|
|
7494
7495
|
* Action applies at the Liveboard level.
|
|
7495
7496
|
* Supported positions:
|
|
@@ -7545,7 +7546,7 @@ export declare enum CustomActionTarget {
|
|
|
7545
7546
|
* This attribute doesn't support suppressing
|
|
7546
7547
|
* browser warnings or errors.
|
|
7547
7548
|
*/
|
|
7548
|
-
export
|
|
7549
|
+
export enum LogLevel {
|
|
7549
7550
|
/**
|
|
7550
7551
|
* No application or SDK-related logs will be logged
|
|
7551
7552
|
* in the console output.
|
|
@@ -7651,7 +7652,7 @@ export declare enum LogLevel {
|
|
|
7651
7652
|
* });
|
|
7652
7653
|
* ```
|
|
7653
7654
|
*/
|
|
7654
|
-
export
|
|
7655
|
+
export enum ErrorDetailsTypes {
|
|
7655
7656
|
/** API call failure */
|
|
7656
7657
|
API = "API",
|
|
7657
7658
|
/** General validation error */
|
|
@@ -7690,7 +7691,7 @@ export declare enum ErrorDetailsTypes {
|
|
|
7690
7691
|
* });
|
|
7691
7692
|
* ```
|
|
7692
7693
|
* */
|
|
7693
|
-
export
|
|
7694
|
+
export enum EmbedErrorCodes {
|
|
7694
7695
|
/** Worksheet ID not found or does not exist */
|
|
7695
7696
|
WORKSHEET_ID_NOT_FOUND = "WORKSHEET_ID_NOT_FOUND",
|
|
7696
7697
|
/** Required Liveboard ID is missing from configuration */
|
|
@@ -7777,7 +7778,7 @@ export interface EmbedErrorDetailsEvent {
|
|
|
7777
7778
|
/** Additional context-specific for backward compatibility */
|
|
7778
7779
|
[key: string]: any;
|
|
7779
7780
|
}
|
|
7780
|
-
export
|
|
7781
|
+
export enum ContextType {
|
|
7781
7782
|
/**
|
|
7782
7783
|
* Search answer context for search page or edit viz dialog on liveboard page.
|
|
7783
7784
|
*/
|
|
@@ -7813,7 +7814,7 @@ export interface DefaultAppInitData {
|
|
|
7813
7814
|
/**
|
|
7814
7815
|
* Enum for the type of API intercepted
|
|
7815
7816
|
*/
|
|
7816
|
-
export
|
|
7817
|
+
export enum InterceptedApiType {
|
|
7817
7818
|
/**
|
|
7818
7819
|
* The apis that are use to get the data for the embed
|
|
7819
7820
|
*/
|
|
@@ -7953,7 +7954,7 @@ export interface ContextObject {
|
|
|
7953
7954
|
objectIds: ObjectIds;
|
|
7954
7955
|
};
|
|
7955
7956
|
}
|
|
7956
|
-
export
|
|
7957
|
+
export enum UIPassthroughEvent {
|
|
7957
7958
|
PinAnswerToLiveboard = "addVizToPinboard",
|
|
7958
7959
|
SaveAnswer = "saveAnswer",
|
|
7959
7960
|
GetDiscoverabilityStatus = "getDiscoverabilityStatus",
|
|
@@ -8040,7 +8041,7 @@ export type HostEventRequest<HostEventT extends HostEvent> = HostEventT extends
|
|
|
8040
8041
|
export type HostEventResponse<HostEventT extends HostEvent, ContextT extends ContextType> = HostEventT extends keyof EmbedApiHostEventMapping ? UIPassthroughResponse<EmbedApiHostEventMapping[HostEventT]> : any;
|
|
8041
8042
|
export type TriggerPayload<PayloadT, HostEventT extends HostEvent> = PayloadT | HostEventRequest<HostEventT>;
|
|
8042
8043
|
export type TriggerResponse<PayloadT, HostEventT extends HostEvent, ContextT extends ContextType> = PayloadT extends HostEventRequest<HostEventT> ? HostEventResponse<HostEventT, ContextT> : any;
|
|
8043
|
-
|
|
8044
|
+
class HostEventClient {
|
|
8044
8045
|
iFrame: HTMLIFrameElement;
|
|
8045
8046
|
constructor(iFrame?: HTMLIFrameElement);
|
|
8046
8047
|
/**
|
|
@@ -8062,7 +8063,7 @@ declare class HostEventClient {
|
|
|
8062
8063
|
protected handleSaveAnswerEvent(payload: HostEventRequest<HostEvent.SaveAnswer>, context?: ContextType): Promise<any>;
|
|
8063
8064
|
triggerHostEvent<HostEventT extends HostEvent, PayloadT, ContextT extends ContextType>(hostEvent: HostEventT, payload?: TriggerPayload<PayloadT, HostEventT>, context?: ContextT): Promise<TriggerResponse<PayloadT, HostEventT, ContextType>>;
|
|
8064
8065
|
}
|
|
8065
|
-
|
|
8066
|
+
class TsEmbed {
|
|
8066
8067
|
/**
|
|
8067
8068
|
* The DOM node which was inserted by the SDK to either
|
|
8068
8069
|
* render the iframe or display an error message.
|
|
@@ -8500,7 +8501,7 @@ declare class TsEmbed {
|
|
|
8500
8501
|
*/
|
|
8501
8502
|
private removeFullscreenChangeHandler;
|
|
8502
8503
|
}
|
|
8503
|
-
|
|
8504
|
+
class V1Embed extends TsEmbed {
|
|
8504
8505
|
protected viewConfig: AllEmbedViewConfig;
|
|
8505
8506
|
constructor(domSelector: DOMSelector, viewConfig: AllEmbedViewConfig);
|
|
8506
8507
|
/**
|
|
@@ -8882,7 +8883,7 @@ export interface ConversationViewConfig extends SpotterEmbedViewConfig {
|
|
|
8882
8883
|
* conversation.render();
|
|
8883
8884
|
* ```
|
|
8884
8885
|
*/
|
|
8885
|
-
export
|
|
8886
|
+
export class SpotterEmbed extends TsEmbed {
|
|
8886
8887
|
protected viewConfig: SpotterEmbedViewConfig;
|
|
8887
8888
|
constructor(container: HTMLElement, viewConfig: SpotterEmbedViewConfig);
|
|
8888
8889
|
protected getEmbedParamsObject(): Record<any, any>;
|
|
@@ -8906,14 +8907,14 @@ export declare class SpotterEmbed extends TsEmbed {
|
|
|
8906
8907
|
* conversation.render();
|
|
8907
8908
|
* ```
|
|
8908
8909
|
*/
|
|
8909
|
-
export
|
|
8910
|
+
export class ConversationEmbed extends SpotterEmbed {
|
|
8910
8911
|
protected viewConfig: ConversationViewConfig;
|
|
8911
8912
|
constructor(container: HTMLElement, viewConfig: ConversationViewConfig);
|
|
8912
8913
|
}
|
|
8913
8914
|
/**
|
|
8914
8915
|
* Pages within the ThoughtSpot app that can be embedded.
|
|
8915
8916
|
*/
|
|
8916
|
-
export
|
|
8917
|
+
export enum Page {
|
|
8917
8918
|
/**
|
|
8918
8919
|
* Home page
|
|
8919
8920
|
*/
|
|
@@ -8951,7 +8952,7 @@ export declare enum Page {
|
|
|
8951
8952
|
* Define the initial state of column custom group accordions
|
|
8952
8953
|
* in data panel v2.
|
|
8953
8954
|
*/
|
|
8954
|
-
export
|
|
8955
|
+
export enum DataPanelCustomColumnGroupsAccordionState {
|
|
8955
8956
|
/**
|
|
8956
8957
|
* Expand all the accordion initially in data panel v2.
|
|
8957
8958
|
*/
|
|
@@ -8965,7 +8966,7 @@ export declare enum DataPanelCustomColumnGroupsAccordionState {
|
|
|
8965
8966
|
*/
|
|
8966
8967
|
EXPAND_FIRST = "EXPAND_FIRST"
|
|
8967
8968
|
}
|
|
8968
|
-
export
|
|
8969
|
+
export enum HomePageSearchBarMode {
|
|
8969
8970
|
OBJECT_SEARCH = "objectSearch",
|
|
8970
8971
|
AI_ANSWER = "aiAnswer",
|
|
8971
8972
|
NONE = "none"
|
|
@@ -8974,7 +8975,7 @@ export declare enum HomePageSearchBarMode {
|
|
|
8974
8975
|
* Define the version of the primary navbar
|
|
8975
8976
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
8976
8977
|
*/
|
|
8977
|
-
export
|
|
8978
|
+
export enum PrimaryNavbarVersion {
|
|
8978
8979
|
/**
|
|
8979
8980
|
* Sliding (v3) introduces a new left-side navigation hub featuring a tab switcher,
|
|
8980
8981
|
* along with updates to the top navigation bar.
|
|
@@ -8986,7 +8987,7 @@ export declare enum PrimaryNavbarVersion {
|
|
|
8986
8987
|
* Define the version of the home page
|
|
8987
8988
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
8988
8989
|
*/
|
|
8989
|
-
export
|
|
8990
|
+
export enum HomePage {
|
|
8990
8991
|
/**
|
|
8991
8992
|
* Modular (v2) introduces the updated Modular Home Experience.
|
|
8992
8993
|
* It serves as the foundational version of the home page.
|
|
@@ -9002,7 +9003,7 @@ export declare enum HomePage {
|
|
|
9002
9003
|
* Define the version of the list page
|
|
9003
9004
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.12.0.cl
|
|
9004
9005
|
*/
|
|
9005
|
-
export
|
|
9006
|
+
export enum ListPage {
|
|
9006
9007
|
/**
|
|
9007
9008
|
* List (v2) is the traditional List Experience.
|
|
9008
9009
|
* It serves as the foundational version of the list page.
|
|
@@ -9634,7 +9635,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
9634
9635
|
* Embeds full ThoughtSpot experience in a host application.
|
|
9635
9636
|
* @group Embed components
|
|
9636
9637
|
*/
|
|
9637
|
-
export
|
|
9638
|
+
export class AppEmbed extends V1Embed {
|
|
9638
9639
|
protected viewConfig: AppViewConfig;
|
|
9639
9640
|
private defaultHeight;
|
|
9640
9641
|
constructor(domSelector: DOMSelector, viewConfig: AppViewConfig);
|
|
@@ -9708,7 +9709,7 @@ export declare class AppEmbed extends V1Embed {
|
|
|
9708
9709
|
* This value is passed to the listener for {@link AuthStatus.FAILURE}.
|
|
9709
9710
|
* @group Authentication / Init
|
|
9710
9711
|
*/
|
|
9711
|
-
export
|
|
9712
|
+
export enum AuthFailureType {
|
|
9712
9713
|
/**
|
|
9713
9714
|
* Authentication failed in the SDK authentication flow.
|
|
9714
9715
|
*
|
|
@@ -9753,7 +9754,7 @@ export declare enum AuthFailureType {
|
|
|
9753
9754
|
* Enum for auth status emitted by the emitter returned from {@link init}.
|
|
9754
9755
|
* @group Authentication / Init
|
|
9755
9756
|
*/
|
|
9756
|
-
export
|
|
9757
|
+
export enum AuthStatus {
|
|
9757
9758
|
/**
|
|
9758
9759
|
* Emits when the SDK fails to authenticate.
|
|
9759
9760
|
*/
|
|
@@ -9856,7 +9857,7 @@ export interface AuthEventEmitter {
|
|
|
9856
9857
|
* Events which can be triggered on the emitter returned from {@link init}.
|
|
9857
9858
|
* @group Authentication / Init
|
|
9858
9859
|
*/
|
|
9859
|
-
export
|
|
9860
|
+
export enum AuthEvent {
|
|
9860
9861
|
/**
|
|
9861
9862
|
* Manually trigger the SSO popup. This is useful when
|
|
9862
9863
|
* authStatus is SAMLRedirect/OIDCRedirect and inPopup is set to true
|
|
@@ -9887,7 +9888,7 @@ export interface exportTMLInput {
|
|
|
9887
9888
|
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 7.2.1
|
|
9888
9889
|
* @group Global methods
|
|
9889
9890
|
*/
|
|
9890
|
-
export
|
|
9891
|
+
export const prefetch: (url?: string, prefetchFeatures?: PrefetchFeatures[], additionalFlags?: {
|
|
9891
9892
|
[key: string]: string | number | boolean;
|
|
9892
9893
|
}) => void;
|
|
9893
9894
|
/**
|
|
@@ -9910,7 +9911,7 @@ export declare const prefetch: (url?: string, prefetchFeatures?: PrefetchFeature
|
|
|
9910
9911
|
* @version SDK: 1.0.0 | ThoughtSpot ts7.april.cl, 7.2.1
|
|
9911
9912
|
* @group Authentication / Init
|
|
9912
9913
|
*/
|
|
9913
|
-
export
|
|
9914
|
+
export const init: (embedConfig: EmbedConfig) => AuthEventEmitter | null;
|
|
9914
9915
|
/**
|
|
9915
9916
|
* Logs out from ThoughtSpot. This also sets the autoLogin flag to false, to
|
|
9916
9917
|
* prevent the SDK from automatically logging in again.
|
|
@@ -9922,7 +9923,7 @@ export declare const init: (embedConfig: EmbedConfig) => AuthEventEmitter | null
|
|
|
9922
9923
|
* @version SDK: 1.10.1 | ThoughtSpot: 8.2.0.cl, 8.4.1-sw
|
|
9923
9924
|
* @group Global methods
|
|
9924
9925
|
*/
|
|
9925
|
-
export
|
|
9926
|
+
export const logout: (doNotDisableAutoLogin?: boolean) => Promise<boolean>;
|
|
9926
9927
|
/**
|
|
9927
9928
|
* Imports TML representation of the metadata objects into ThoughtSpot.
|
|
9928
9929
|
* @param data
|
|
@@ -9946,7 +9947,7 @@ export declare const logout: (doNotDisableAutoLogin?: boolean) => Promise<boolea
|
|
|
9946
9947
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
9947
9948
|
* @group Global methods
|
|
9948
9949
|
*/
|
|
9949
|
-
export
|
|
9950
|
+
export const executeTML: (data: executeTMLInput) => Promise<any>;
|
|
9950
9951
|
/**
|
|
9951
9952
|
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
9952
9953
|
* format.
|
|
@@ -9977,14 +9978,14 @@ export declare const executeTML: (data: executeTMLInput) => Promise<any>;
|
|
|
9977
9978
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
9978
9979
|
* @group Global methods
|
|
9979
9980
|
*/
|
|
9980
|
-
export
|
|
9981
|
+
export const exportTML: (data: exportTMLInput) => Promise<any>;
|
|
9981
9982
|
/**
|
|
9982
9983
|
* Reloads the ThoughtSpot iframe.
|
|
9983
9984
|
* @version SDK: 1.43.1
|
|
9984
9985
|
* @param iFrame
|
|
9985
9986
|
* @group Global methods
|
|
9986
9987
|
*/
|
|
9987
|
-
export
|
|
9988
|
+
export const reloadIframe: (iFrame: HTMLIFrameElement) => void;
|
|
9988
9989
|
/**
|
|
9989
9990
|
* The configuration for the embedded Liveboard or visualization page view.
|
|
9990
9991
|
* @group Embed components
|
|
@@ -10473,7 +10474,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
|
|
|
10473
10474
|
* })
|
|
10474
10475
|
* ```
|
|
10475
10476
|
*/
|
|
10476
|
-
export
|
|
10477
|
+
export class LiveboardEmbed extends V1Embed {
|
|
10477
10478
|
protected viewConfig: LiveboardViewConfig;
|
|
10478
10479
|
private defaultHeight;
|
|
10479
10480
|
constructor(domSelector: DOMSelector, viewConfig: LiveboardViewConfig);
|
|
@@ -10552,7 +10553,7 @@ export declare class LiveboardEmbed extends V1Embed {
|
|
|
10552
10553
|
/**
|
|
10553
10554
|
* @hidden
|
|
10554
10555
|
*/
|
|
10555
|
-
export
|
|
10556
|
+
export class PinboardEmbed extends LiveboardEmbed {
|
|
10556
10557
|
}
|
|
10557
10558
|
interface SearchOptions$1 {
|
|
10558
10559
|
/**
|
|
@@ -10567,7 +10568,7 @@ interface SearchOptions$1 {
|
|
|
10567
10568
|
*/
|
|
10568
10569
|
executeSearch?: boolean;
|
|
10569
10570
|
}
|
|
10570
|
-
|
|
10571
|
+
enum DataPanelCustomColumnGroupsAccordionState$1 {
|
|
10571
10572
|
/**
|
|
10572
10573
|
* Expand all the accordion initially in data panel v2.
|
|
10573
10574
|
*/
|
|
@@ -10839,7 +10840,7 @@ export interface SearchAppInitData extends DefaultAppInitData {
|
|
|
10839
10840
|
* Embed ThoughtSpot search
|
|
10840
10841
|
* @group Embed components
|
|
10841
10842
|
*/
|
|
10842
|
-
export
|
|
10843
|
+
export class SearchEmbed extends TsEmbed {
|
|
10843
10844
|
/**
|
|
10844
10845
|
* The view configuration for the embedded ThoughtSpot search.
|
|
10845
10846
|
*/
|
|
@@ -10970,7 +10971,7 @@ interface SearchAppInitData$1 extends DefaultAppInitData {
|
|
|
10970
10971
|
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
|
|
10971
10972
|
* @group Embed components
|
|
10972
10973
|
*/
|
|
10973
|
-
export
|
|
10974
|
+
export class SearchBarEmbed extends TsEmbed {
|
|
10974
10975
|
/**
|
|
10975
10976
|
* The view configuration for the embedded ThoughtSpot search bar.
|
|
10976
10977
|
*/
|
|
@@ -11019,7 +11020,7 @@ export interface SpotterAgentMessageViewConfig extends SpotterAgentEmbedViewConf
|
|
|
11019
11020
|
convId: string;
|
|
11020
11021
|
messageId: string;
|
|
11021
11022
|
}
|
|
11022
|
-
|
|
11023
|
+
class ConversationMessage extends TsEmbed {
|
|
11023
11024
|
protected viewConfig: SpotterAgentMessageViewConfig;
|
|
11024
11025
|
constructor(container: HTMLElement, viewConfig: SpotterAgentMessageViewConfig);
|
|
11025
11026
|
protected getEmbedParamsObject(): Record<any, any>;
|
|
@@ -11045,7 +11046,7 @@ declare class ConversationMessage extends TsEmbed {
|
|
|
11045
11046
|
* document.body.appendChild(container); // or to any other element
|
|
11046
11047
|
* ```
|
|
11047
11048
|
*/
|
|
11048
|
-
export
|
|
11049
|
+
export class SpotterAgentEmbed {
|
|
11049
11050
|
private viewConfig;
|
|
11050
11051
|
private conversationService;
|
|
11051
11052
|
constructor(viewConfig: SpotterAgentEmbedViewConfig);
|
|
@@ -11098,7 +11099,7 @@ export declare class SpotterAgentEmbed {
|
|
|
11098
11099
|
* document.body.appendChild(container); // or to any other element
|
|
11099
11100
|
* ```
|
|
11100
11101
|
*/
|
|
11101
|
-
export
|
|
11102
|
+
export class BodylessConversation extends SpotterAgentEmbed {
|
|
11102
11103
|
constructor(viewConfig: BodylessConversationViewConfig);
|
|
11103
11104
|
}
|
|
11104
11105
|
export type SessionInfo = {
|
|
@@ -11124,7 +11125,7 @@ export type SessionInfo = {
|
|
|
11124
11125
|
* @version SDK: 1.28.3 | ThoughtSpot: *
|
|
11125
11126
|
* @returns {Promise<SessionInfo>} The session info object.
|
|
11126
11127
|
*/
|
|
11127
|
-
export
|
|
11128
|
+
export function getSessionInfo(): Promise<SessionInfo>;
|
|
11128
11129
|
interface SearchOptions$2 {
|
|
11129
11130
|
/**
|
|
11130
11131
|
* The query string to pass for Natural Language Search.
|
|
@@ -11250,7 +11251,7 @@ export interface SageViewConfig extends SearchLiveboardCommonViewConfig, Omit<Ba
|
|
|
11250
11251
|
* Note: This embed will be deprecated from SDK: 1.40.0 | ThoughtSpot: 10.13.0.cl
|
|
11251
11252
|
* @group Embed components
|
|
11252
11253
|
*/
|
|
11253
|
-
export
|
|
11254
|
+
export class SageEmbed extends V1Embed {
|
|
11254
11255
|
/**
|
|
11255
11256
|
* The view configuration for the embedded ThoughtSpot sage.
|
|
11256
11257
|
*
|
|
@@ -11327,12 +11328,12 @@ export declare class SageEmbed extends V1Embed {
|
|
|
11327
11328
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw, and later
|
|
11328
11329
|
* @group Global methods
|
|
11329
11330
|
*/
|
|
11330
|
-
|
|
11331
|
+
const getEmbedConfig: () => EmbedConfig;
|
|
11331
11332
|
/**
|
|
11332
11333
|
* Enum of mixpanel events
|
|
11333
11334
|
* @hidden
|
|
11334
11335
|
*/
|
|
11335
|
-
export
|
|
11336
|
+
export const MIXPANEL_EVENT: {
|
|
11336
11337
|
VISUAL_SDK_RENDER_START: string;
|
|
11337
11338
|
VISUAL_SDK_CALLED_INIT: string;
|
|
11338
11339
|
VISUAL_SDK_RENDER_COMPLETE: string;
|
|
@@ -11348,7 +11349,7 @@ export declare const MIXPANEL_EVENT: {
|
|
|
11348
11349
|
* @param eventId
|
|
11349
11350
|
* @param eventProps
|
|
11350
11351
|
*/
|
|
11351
|
-
export
|
|
11352
|
+
export function uploadMixpanelEvent(eventId: string, eventProps?: {}): void;
|
|
11352
11353
|
/**
|
|
11353
11354
|
* Fetch wrapper that adds the authentication token to the request.
|
|
11354
11355
|
* Use this to call the ThoughtSpot APIs when using the visual embed sdk.
|
|
@@ -11364,7 +11365,7 @@ export declare function uploadMixpanelEvent(eventId: string, eventProps?: {}): v
|
|
|
11364
11365
|
* @version SDK: 1.28.0
|
|
11365
11366
|
* @group Global methods
|
|
11366
11367
|
*/
|
|
11367
|
-
export
|
|
11368
|
+
export const tokenizedFetch: typeof fetch;
|
|
11368
11369
|
/**
|
|
11369
11370
|
* Get answer from natural language query
|
|
11370
11371
|
* @param query string
|
|
@@ -11376,7 +11377,7 @@ export declare const tokenizedFetch: typeof fetch;
|
|
|
11376
11377
|
* const { answer } = await getAnswerFromQuery('revenue', 'worksheetId');
|
|
11377
11378
|
* ```
|
|
11378
11379
|
*/
|
|
11379
|
-
export
|
|
11380
|
+
export const getAnswerFromQuery: (query: string, worksheetId: string) => Promise<{
|
|
11380
11381
|
answer: AnswerService;
|
|
11381
11382
|
suggestion: any;
|
|
11382
11383
|
}>;
|
|
@@ -11408,7 +11409,7 @@ export declare const getAnswerFromQuery: (query: string, worksheetId: string) =>
|
|
|
11408
11409
|
* });
|
|
11409
11410
|
* ```
|
|
11410
11411
|
*/
|
|
11411
|
-
export
|
|
11412
|
+
export const createLiveboardWithAnswers: (answers: AnswerService[], name: string) => Promise<any>;
|
|
11412
11413
|
/**
|
|
11413
11414
|
* Resets the auth token and a new token will be fetched on the next request.
|
|
11414
11415
|
* @example
|
|
@@ -11418,7 +11419,7 @@ export declare const createLiveboardWithAnswers: (answers: AnswerService[], name
|
|
|
11418
11419
|
* @version SDK: 1.28.0 | ThoughtSpot: *
|
|
11419
11420
|
* @group Authentication / Init
|
|
11420
11421
|
*/
|
|
11421
|
-
export
|
|
11422
|
+
export const resetCachedAuthToken: () => void;
|
|
11422
11423
|
/**
|
|
11423
11424
|
* Starts an automatic renderer that watches the DOM for iframes containing
|
|
11424
11425
|
* the `tsmcp=true` query parameter and replaces them with fully configured
|
|
@@ -11457,10 +11458,10 @@ export declare const resetCachedAuthToken: () => void;
|
|
|
11457
11458
|
* Detailed example of how to use the auto-frame renderer:
|
|
11458
11459
|
* [Python React Agent Simple UI](https://github.com/thoughtspot/developer-examples/tree/main/mcp/python-react-agent-simple-ui)
|
|
11459
11460
|
*/
|
|
11460
|
-
export
|
|
11461
|
+
export function startAutoMCPFrameRenderer(viewConfig?: AutoMCPFrameRendererViewConfig): MutationObserver;
|
|
11461
11462
|
|
|
11462
11463
|
export {
|
|
11463
11464
|
getEmbedConfig as getInitConfig,
|
|
11464
11465
|
};
|
|
11465
11466
|
|
|
11466
|
-
|
|
11467
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thoughtspot/visual-embed-sdk",
|
|
3
|
-
"version": "1.46.
|
|
3
|
+
"version": "1.46.4",
|
|
4
4
|
"description": "ThoughtSpot Embed SDK",
|
|
5
5
|
"module": "lib/src/index.js",
|
|
6
6
|
"main": "dist/tsembed.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"lint:fix": "eslint 'src/**/*.*' --fix",
|
|
47
47
|
"tsc": "tsc -p tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs",
|
|
48
48
|
"build-and-publish": "npm run build:gatsby && npm run publish",
|
|
49
|
-
"bundle-dts-file": "dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js",
|
|
49
|
+
"bundle-dts-file": "dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js && node dts-config/wrap-ambient-module.mjs",
|
|
50
50
|
"bundle-dts": "dts-bundle-generator --config ./dts-config/dts-bundle.config.js",
|
|
51
51
|
"bundle-dts-react": "dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js",
|
|
52
52
|
"bundle-dts-react-full": "dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",
|