@thoughtspot/visual-embed-sdk 1.42.1-HE2.0.2 → 1.42.1-HE2.0.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 +1 -1
- package/cjs/src/embed/app.d.ts +2 -0
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +4 -0
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.d.ts +2 -0
- package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/cjs/src/embed/bodyless-conversation.js +4 -0
- package/cjs/src/embed/bodyless-conversation.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +2 -4
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/dist/index-BUfrYJ3w.js +7371 -0
- package/dist/index-CcSgNJVi.js +7371 -0
- package/dist/src/embed/app.d.ts +2 -0
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/bodyless-conversation.d.ts +2 -0
- package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +13 -7
- package/dist/tsembed-react.js +12 -6
- package/dist/tsembed.es.js +13 -7
- package/dist/tsembed.js +12 -6
- package/dist/visual-embed-sdk-react-full.d.ts +2 -0
- package/dist/visual-embed-sdk-react.d.ts +2 -0
- package/dist/visual-embed-sdk.d.ts +24 -22
- package/lib/package.json +1 -1
- package/lib/src/embed/app.d.ts +2 -0
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +4 -0
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.d.ts +2 -0
- package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/lib/src/embed/bodyless-conversation.js +4 -0
- package/lib/src/embed/bodyless-conversation.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +2 -4
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/package.json +1 -1
- package/src/embed/app.ts +6 -0
- package/src/embed/bodyless-conversation.ts +6 -0
- package/src/embed/ts-embed.ts +2 -4
package/dist/src/embed/app.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { DOMSelector, MessagePayload, AllEmbedViewConfig } from '../types';
|
|
11
11
|
import { V1Embed } from './ts-embed';
|
|
12
|
+
import { PageContextOptions } from 'visual-embed-sdk';
|
|
12
13
|
/**
|
|
13
14
|
* Pages within the ThoughtSpot app that can be embedded.
|
|
14
15
|
*/
|
|
@@ -665,5 +666,6 @@ export declare class AppEmbed extends V1Embed {
|
|
|
665
666
|
* to be embedded.
|
|
666
667
|
*/
|
|
667
668
|
render(): Promise<AppEmbed>;
|
|
669
|
+
getCurrentContext(): Promise<PageContextOptions>;
|
|
668
670
|
}
|
|
669
671
|
//# sourceMappingURL=app.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["app.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAEH,WAAW,EAGX,cAAc,EACd,kBAAkB,EACrB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["app.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAEH,WAAW,EAGX,cAAc,EACd,kBAAkB,EACrB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AAEH,oBAAY,IAAI;IACZ;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,MAAM,WAAW;I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ViewConfig } from '../types';
|
|
2
2
|
import { TsEmbed } from './ts-embed';
|
|
3
|
+
import { PageContextOptions } from 'visual-embed-sdk';
|
|
3
4
|
/**
|
|
4
5
|
* Configuration for bodyless conversation options.
|
|
5
6
|
* @group Embed components
|
|
@@ -32,6 +33,7 @@ export declare class ConversationMessage extends TsEmbed {
|
|
|
32
33
|
protected getEmbedParamsObject(): Record<any, any>;
|
|
33
34
|
getIframeSrc(): string;
|
|
34
35
|
render(): Promise<ConversationMessage>;
|
|
36
|
+
getCurrentContext(): Promise<PageContextOptions>;
|
|
35
37
|
}
|
|
36
38
|
/**
|
|
37
39
|
* Create a conversation embed, which can be integrated inside
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bodyless-conversation.d.ts","sourceRoot":"","sources":["bodyless-conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,cAAc,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"bodyless-conversation.d.ts","sourceRoot":"","sources":["bodyless-conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,cAAc,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;GAGG;AACH,MAAM,WAAW,2BAA4B,SAAQ,IAAI,CAAC,cAAc,EAAE,eAAe,CAAC;IACtF;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;;;;GAKG;AAEH,MAAM,WAAW,8BAA+B,SAAQ,2BAA2B;CAAG;AAEtF,MAAM,WAAW,6BAA8B,SAAQ,2BAA2B;IAC9E,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,M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Aa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAIxD,SAAS,CAAC,gBAAgB,IAAI,MAAM;IAqBpC;;;;;;;;;;;;;;;;OAgBG;IACI,EAAE,CACL,WAAW,EAAE,UAAU,EACvB,QAAQ,EAAE,eAAe,EACzB,OAAO,GAAE,cAAiC,GAC3C,OAAO,OAAO,CAAC,SAAS;IAK3B;;;OAGG;IAEI,sBAAsB,6EAAyB;CACzD"}
|
package/dist/tsembed-react.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.42.1-HE2.0.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.42.1-HE2.0.4 */
|
|
2
2
|
'use client';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { useRef, useCallback } from 'react';
|
|
@@ -8309,7 +8309,7 @@ class AnswerService {
|
|
|
8309
8309
|
async getTML() {
|
|
8310
8310
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
8311
8311
|
const edoc = object[0].edoc;
|
|
8312
|
-
const YAML = await import('./index-
|
|
8312
|
+
const YAML = await import('./index-BUfrYJ3w.js');
|
|
8313
8313
|
const parsedDoc = YAML.parse(edoc);
|
|
8314
8314
|
return {
|
|
8315
8315
|
answer: {
|
|
@@ -17482,7 +17482,7 @@ function processEventData(type, e, thoughtSpotHost, containerEl) {
|
|
|
17482
17482
|
return e;
|
|
17483
17483
|
}
|
|
17484
17484
|
|
|
17485
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.42.1-HE2.0.
|
|
17485
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.42.1-HE2.0.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","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","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^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":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","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:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"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};
|
|
17486
17486
|
|
|
17487
17487
|
/**
|
|
17488
17488
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -18737,10 +18737,8 @@ class TsEmbed {
|
|
|
18737
18737
|
return this.render();
|
|
18738
18738
|
}
|
|
18739
18739
|
async getCurrentContext() {
|
|
18740
|
-
this.
|
|
18741
|
-
|
|
18742
|
-
return context;
|
|
18743
|
-
});
|
|
18740
|
+
const context = await this.trigger(HostEvent.GetPageContext, {});
|
|
18741
|
+
return context;
|
|
18744
18742
|
}
|
|
18745
18743
|
/**
|
|
18746
18744
|
* Creates the preRender shell
|
|
@@ -19819,6 +19817,10 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
|
|
|
19819
19817
|
this.postRender();
|
|
19820
19818
|
return this;
|
|
19821
19819
|
}
|
|
19820
|
+
async getCurrentContext() {
|
|
19821
|
+
const context = await super.getCurrentContext();
|
|
19822
|
+
return context;
|
|
19823
|
+
}
|
|
19822
19824
|
};
|
|
19823
19825
|
|
|
19824
19826
|
/* eslint-disable quotes */
|
|
@@ -20674,6 +20676,10 @@ let ConversationMessage$1 = class ConversationMessage extends TsEmbed {
|
|
|
20674
20676
|
await this.renderIFrame(src);
|
|
20675
20677
|
return this;
|
|
20676
20678
|
}
|
|
20679
|
+
async getCurrentContext() {
|
|
20680
|
+
const context = await super.getCurrentContext();
|
|
20681
|
+
return context;
|
|
20682
|
+
}
|
|
20677
20683
|
};
|
|
20678
20684
|
/**
|
|
20679
20685
|
* Create a conversation embed, which can be integrated inside
|
package/dist/tsembed-react.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.42.1-HE2.0.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.42.1-HE2.0.4 */
|
|
2
2
|
'use client';
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
|
|
@@ -17504,7 +17504,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17504
17504
|
return e;
|
|
17505
17505
|
}
|
|
17506
17506
|
|
|
17507
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.42.1-HE2.0.
|
|
17507
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.42.1-HE2.0.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","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","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^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":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","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:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"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};
|
|
17508
17508
|
|
|
17509
17509
|
/**
|
|
17510
17510
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -18759,10 +18759,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
18759
18759
|
return this.render();
|
|
18760
18760
|
}
|
|
18761
18761
|
async getCurrentContext() {
|
|
18762
|
-
this.
|
|
18763
|
-
|
|
18764
|
-
return context;
|
|
18765
|
-
});
|
|
18762
|
+
const context = await this.trigger(exports.HostEvent.GetPageContext, {});
|
|
18763
|
+
return context;
|
|
18766
18764
|
}
|
|
18767
18765
|
/**
|
|
18768
18766
|
* Creates the preRender shell
|
|
@@ -19841,6 +19839,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
19841
19839
|
this.postRender();
|
|
19842
19840
|
return this;
|
|
19843
19841
|
}
|
|
19842
|
+
async getCurrentContext() {
|
|
19843
|
+
const context = await super.getCurrentContext();
|
|
19844
|
+
return context;
|
|
19845
|
+
}
|
|
19844
19846
|
};
|
|
19845
19847
|
|
|
19846
19848
|
/* eslint-disable quotes */
|
|
@@ -20696,6 +20698,10 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
20696
20698
|
await this.renderIFrame(src);
|
|
20697
20699
|
return this;
|
|
20698
20700
|
}
|
|
20701
|
+
async getCurrentContext() {
|
|
20702
|
+
const context = await super.getCurrentContext();
|
|
20703
|
+
return context;
|
|
20704
|
+
}
|
|
20699
20705
|
};
|
|
20700
20706
|
/**
|
|
20701
20707
|
* Create a conversation embed, which can be integrated inside
|
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.42.1-HE2.0.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.42.1-HE2.0.4 */
|
|
2
2
|
'use client';
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
@@ -8194,7 +8194,7 @@ class AnswerService {
|
|
|
8194
8194
|
async getTML() {
|
|
8195
8195
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
8196
8196
|
const edoc = object[0].edoc;
|
|
8197
|
-
const YAML = await import('./index-
|
|
8197
|
+
const YAML = await import('./index-BUfrYJ3w.js');
|
|
8198
8198
|
const parsedDoc = YAML.parse(edoc);
|
|
8199
8199
|
return {
|
|
8200
8200
|
answer: {
|
|
@@ -17533,7 +17533,7 @@ function processEventData(type, e, thoughtSpotHost, containerEl) {
|
|
|
17533
17533
|
return e;
|
|
17534
17534
|
}
|
|
17535
17535
|
|
|
17536
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.42.1-HE2.0.
|
|
17536
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.42.1-HE2.0.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","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","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^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":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","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:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"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};
|
|
17537
17537
|
|
|
17538
17538
|
/**
|
|
17539
17539
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -18788,10 +18788,8 @@ class TsEmbed {
|
|
|
18788
18788
|
return this.render();
|
|
18789
18789
|
}
|
|
18790
18790
|
async getCurrentContext() {
|
|
18791
|
-
this.
|
|
18792
|
-
|
|
18793
|
-
return context;
|
|
18794
|
-
});
|
|
18791
|
+
const context = await this.trigger(HostEvent.GetPageContext, {});
|
|
18792
|
+
return context;
|
|
18795
18793
|
}
|
|
18796
18794
|
/**
|
|
18797
18795
|
* Creates the preRender shell
|
|
@@ -19523,6 +19521,10 @@ class AppEmbed extends V1Embed {
|
|
|
19523
19521
|
this.postRender();
|
|
19524
19522
|
return this;
|
|
19525
19523
|
}
|
|
19524
|
+
async getCurrentContext() {
|
|
19525
|
+
const context = await super.getCurrentContext();
|
|
19526
|
+
return context;
|
|
19527
|
+
}
|
|
19526
19528
|
}
|
|
19527
19529
|
|
|
19528
19530
|
/* eslint-disable quotes */
|
|
@@ -20644,6 +20646,10 @@ class ConversationMessage extends TsEmbed {
|
|
|
20644
20646
|
await this.renderIFrame(src);
|
|
20645
20647
|
return this;
|
|
20646
20648
|
}
|
|
20649
|
+
async getCurrentContext() {
|
|
20650
|
+
const context = await super.getCurrentContext();
|
|
20651
|
+
return context;
|
|
20652
|
+
}
|
|
20647
20653
|
}
|
|
20648
20654
|
/**
|
|
20649
20655
|
* Create a conversation embed, which can be integrated inside
|
package/dist/tsembed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.42.1-HE2.0.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.42.1-HE2.0.4 */
|
|
2
2
|
'use client';
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -17539,7 +17539,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17539
17539
|
return e;
|
|
17540
17540
|
}
|
|
17541
17541
|
|
|
17542
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.42.1-HE2.0.
|
|
17542
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.42.1-HE2.0.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","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","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^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":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","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:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"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};
|
|
17543
17543
|
|
|
17544
17544
|
/**
|
|
17545
17545
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -18794,10 +18794,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
18794
18794
|
return this.render();
|
|
18795
18795
|
}
|
|
18796
18796
|
async getCurrentContext() {
|
|
18797
|
-
this.
|
|
18798
|
-
|
|
18799
|
-
return context;
|
|
18800
|
-
});
|
|
18797
|
+
const context = await this.trigger(exports.HostEvent.GetPageContext, {});
|
|
18798
|
+
return context;
|
|
18801
18799
|
}
|
|
18802
18800
|
/**
|
|
18803
18801
|
* Creates the preRender shell
|
|
@@ -19529,6 +19527,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
19529
19527
|
this.postRender();
|
|
19530
19528
|
return this;
|
|
19531
19529
|
}
|
|
19530
|
+
async getCurrentContext() {
|
|
19531
|
+
const context = await super.getCurrentContext();
|
|
19532
|
+
return context;
|
|
19533
|
+
}
|
|
19532
19534
|
}
|
|
19533
19535
|
|
|
19534
19536
|
/* eslint-disable quotes */
|
|
@@ -20650,6 +20652,10 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
20650
20652
|
await this.renderIFrame(src);
|
|
20651
20653
|
return this;
|
|
20652
20654
|
}
|
|
20655
|
+
async getCurrentContext() {
|
|
20656
|
+
const context = await super.getCurrentContext();
|
|
20657
|
+
return context;
|
|
20658
|
+
}
|
|
20653
20659
|
}
|
|
20654
20660
|
/**
|
|
20655
20661
|
* Create a conversation embed, which can be integrated inside
|
|
@@ -8423,6 +8423,7 @@ declare class AppEmbed extends V1Embed {
|
|
|
8423
8423
|
* to be embedded.
|
|
8424
8424
|
*/
|
|
8425
8425
|
render(): Promise<AppEmbed>;
|
|
8426
|
+
getCurrentContext(): Promise<PageContextOptions>;
|
|
8426
8427
|
}
|
|
8427
8428
|
/**
|
|
8428
8429
|
* The configuration for the embedded Liveboard or visualization page view.
|
|
@@ -8895,6 +8896,7 @@ declare class ConversationMessage extends TsEmbed {
|
|
|
8895
8896
|
protected getEmbedParamsObject(): Record<any, any>;
|
|
8896
8897
|
getIframeSrc(): string;
|
|
8897
8898
|
render(): Promise<ConversationMessage>;
|
|
8899
|
+
getCurrentContext(): Promise<PageContextOptions>;
|
|
8898
8900
|
}
|
|
8899
8901
|
export interface EmbedViewConfig extends AllEmbedViewConfig, EmbedEventHandlers {
|
|
8900
8902
|
}
|
|
@@ -8407,6 +8407,7 @@ declare class AppEmbed extends V1Embed {
|
|
|
8407
8407
|
* to be embedded.
|
|
8408
8408
|
*/
|
|
8409
8409
|
render(): Promise<AppEmbed>;
|
|
8410
|
+
getCurrentContext(): Promise<PageContextOptions>;
|
|
8410
8411
|
}
|
|
8411
8412
|
/**
|
|
8412
8413
|
* The configuration for the embedded Liveboard or visualization page view.
|
|
@@ -8874,6 +8875,7 @@ declare class ConversationMessage extends TsEmbed {
|
|
|
8874
8875
|
protected getEmbedParamsObject(): Record<any, any>;
|
|
8875
8876
|
getIframeSrc(): string;
|
|
8876
8877
|
render(): Promise<ConversationMessage>;
|
|
8878
|
+
getCurrentContext(): Promise<PageContextOptions>;
|
|
8877
8879
|
}
|
|
8878
8880
|
export interface EmbedViewConfig extends AllEmbedViewConfig, EmbedEventHandlers {
|
|
8879
8881
|
}
|
|
@@ -7179,6 +7179,28 @@ declare class V1Embed extends TsEmbed {
|
|
|
7179
7179
|
*/
|
|
7180
7180
|
test__executeCallbacks: (eventType: EmbedEvent, data: any, eventPort?: void | MessagePort) => void;
|
|
7181
7181
|
}
|
|
7182
|
+
declare enum ContextType$1 {
|
|
7183
|
+
Search = "search",
|
|
7184
|
+
Liveboard = "liveboard",
|
|
7185
|
+
Answer = "answer",
|
|
7186
|
+
Spotter = "spotter",
|
|
7187
|
+
Default = "default"
|
|
7188
|
+
}
|
|
7189
|
+
declare enum PageType {
|
|
7190
|
+
PAGE = "page",
|
|
7191
|
+
DIALOG = "dialog"
|
|
7192
|
+
}
|
|
7193
|
+
export interface ObjectIds {
|
|
7194
|
+
answerId?: string;
|
|
7195
|
+
liveboardId?: string;
|
|
7196
|
+
vizIds?: string[];
|
|
7197
|
+
dataModelIds?: string[];
|
|
7198
|
+
}
|
|
7199
|
+
export type PageContextOptions = {
|
|
7200
|
+
page: ContextType$1;
|
|
7201
|
+
pageType: PageType;
|
|
7202
|
+
objectIds: ObjectIds;
|
|
7203
|
+
};
|
|
7182
7204
|
/**
|
|
7183
7205
|
* Pages within the ThoughtSpot app that can be embedded.
|
|
7184
7206
|
*/
|
|
@@ -7835,6 +7857,7 @@ export declare class AppEmbed extends V1Embed {
|
|
|
7835
7857
|
* to be embedded.
|
|
7836
7858
|
*/
|
|
7837
7859
|
render(): Promise<AppEmbed>;
|
|
7860
|
+
getCurrentContext(): Promise<PageContextOptions>;
|
|
7838
7861
|
}
|
|
7839
7862
|
/**
|
|
7840
7863
|
* Enum for auth failure types. This is the parameter passed to the listner
|
|
@@ -8053,28 +8076,6 @@ export declare const executeTML: (data: executeTMLInput) => Promise<any>;
|
|
|
8053
8076
|
* @group Global methods
|
|
8054
8077
|
*/
|
|
8055
8078
|
export declare const exportTML: (data: exportTMLInput) => Promise<any>;
|
|
8056
|
-
declare enum ContextType$1 {
|
|
8057
|
-
Search = "search",
|
|
8058
|
-
Liveboard = "liveboard",
|
|
8059
|
-
Answer = "answer",
|
|
8060
|
-
Spotter = "spotter",
|
|
8061
|
-
Default = "default"
|
|
8062
|
-
}
|
|
8063
|
-
declare enum PageType {
|
|
8064
|
-
PAGE = "page",
|
|
8065
|
-
DIALOG = "dialog"
|
|
8066
|
-
}
|
|
8067
|
-
export interface ObjectIds {
|
|
8068
|
-
answerId?: string;
|
|
8069
|
-
liveboardId?: string;
|
|
8070
|
-
vizIds?: string[];
|
|
8071
|
-
dataModelIds?: string[];
|
|
8072
|
-
}
|
|
8073
|
-
export type PageContextOptions = {
|
|
8074
|
-
page: ContextType$1;
|
|
8075
|
-
pageType: PageType;
|
|
8076
|
-
objectIds: ObjectIds;
|
|
8077
|
-
};
|
|
8078
8079
|
/**
|
|
8079
8080
|
* The configuration for the embedded Liveboard or visualization page view.
|
|
8080
8081
|
* @group Embed components
|
|
@@ -9019,6 +9020,7 @@ declare class ConversationMessage extends TsEmbed {
|
|
|
9019
9020
|
protected getEmbedParamsObject(): Record<any, any>;
|
|
9020
9021
|
getIframeSrc(): string;
|
|
9021
9022
|
render(): Promise<ConversationMessage>;
|
|
9023
|
+
getCurrentContext(): Promise<PageContextOptions>;
|
|
9022
9024
|
}
|
|
9023
9025
|
/**
|
|
9024
9026
|
* Create a conversation embed, which can be integrated inside
|
package/lib/package.json
CHANGED
package/lib/src/embed/app.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { DOMSelector, MessagePayload, AllEmbedViewConfig } from '../types';
|
|
11
11
|
import { V1Embed } from './ts-embed';
|
|
12
|
+
import { PageContextOptions } from 'visual-embed-sdk';
|
|
12
13
|
/**
|
|
13
14
|
* Pages within the ThoughtSpot app that can be embedded.
|
|
14
15
|
*/
|
|
@@ -665,5 +666,6 @@ export declare class AppEmbed extends V1Embed {
|
|
|
665
666
|
* to be embedded.
|
|
666
667
|
*/
|
|
667
668
|
render(): Promise<AppEmbed>;
|
|
669
|
+
getCurrentContext(): Promise<PageContextOptions>;
|
|
668
670
|
}
|
|
669
671
|
//# sourceMappingURL=app.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/embed/app.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAEH,WAAW,EAGX,cAAc,EACd,kBAAkB,EACrB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/embed/app.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAEH,WAAW,EAGX,cAAc,EACd,kBAAkB,EACrB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AAEH,oBAAY,IAAI;IACZ;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;I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