@thoughtspot/visual-embed-sdk 1.37.0-temp-nav → 1.37.1-spotter-embed
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 +3 -3
- package/cjs/src/auth.d.ts +7 -3
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +20 -0
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/auth.spec.js +48 -0
- package/cjs/src/auth.spec.js.map +1 -1
- package/cjs/src/embed/app.d.ts +2 -19
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +3 -8
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +4 -10
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.d.ts +39 -9
- package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/cjs/src/embed/bodyless-conversation.js +32 -5
- package/cjs/src/embed/bodyless-conversation.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.spec.js +4 -4
- package/cjs/src/embed/bodyless-conversation.spec.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +38 -11
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +28 -4
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +7 -7
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +3 -3
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +5 -3
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/react/all-types-export.d.ts +1 -1
- package/cjs/src/react/all-types-export.d.ts.map +1 -1
- package/cjs/src/react/all-types-export.js +2 -1
- package/cjs/src/react/all-types-export.js.map +1 -1
- package/cjs/src/react/index.d.ts +24 -5
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +21 -4
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/types.d.ts +51 -2
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +49 -0
- package/cjs/src/types.js.map +1 -1
- package/dist/index-DUaG1OG2.js +7447 -0
- package/dist/index-DnIvX1FR.js +7371 -0
- package/dist/index-OuiZF3zE.js +7371 -0
- package/dist/src/auth.d.ts +7 -3
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +2 -19
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/bodyless-conversation.d.ts +39 -9
- package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +38 -11
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/react/all-types-export.d.ts +1 -1
- package/dist/src/react/all-types-export.d.ts.map +1 -1
- package/dist/src/react/index.d.ts +24 -5
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +51 -2
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +122 -18
- package/dist/tsembed-react.js +342 -161
- package/dist/tsembed.es.js +84 -19
- package/dist/tsembed.js +306 -163
- package/dist/visual-embed-sdk-react-full.d.ts +161 -49
- package/dist/visual-embed-sdk-react.d.ts +161 -49
- package/dist/visual-embed-sdk.d.ts +138 -45
- package/lib/package.json +3 -3
- package/lib/src/auth.d.ts +7 -3
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +20 -0
- package/lib/src/auth.js.map +1 -1
- package/lib/src/auth.spec.js +48 -0
- package/lib/src/auth.spec.js.map +1 -1
- package/lib/src/embed/app.d.ts +2 -19
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +3 -8
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +4 -10
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.d.ts +39 -9
- package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/lib/src/embed/bodyless-conversation.js +30 -4
- package/lib/src/embed/bodyless-conversation.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.spec.js +5 -5
- package/lib/src/embed/bodyless-conversation.spec.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +38 -11
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +26 -3
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +8 -8
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +3 -3
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +3 -3
- package/lib/src/index.js.map +1 -1
- package/lib/src/react/all-types-export.d.ts +1 -1
- package/lib/src/react/all-types-export.d.ts.map +1 -1
- package/lib/src/react/all-types-export.js +1 -1
- package/lib/src/react/all-types-export.js.map +1 -1
- package/lib/src/react/index.d.ts +24 -5
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +21 -4
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/types.d.ts +51 -2
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +49 -0
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +140 -47
- package/package.json +3 -3
- package/src/auth.spec.ts +52 -0
- package/src/auth.ts +23 -2
- package/src/embed/app.spec.ts +4 -10
- package/src/embed/app.ts +6 -30
- package/src/embed/bodyless-conversation.spec.ts +6 -6
- package/src/embed/bodyless-conversation.ts +43 -8
- package/src/embed/conversation.spec.ts +16 -16
- package/src/embed/conversation.ts +42 -11
- package/src/embed/ts-embed.spec.ts +0 -2
- package/src/index.ts +8 -4
- package/src/react/all-types-export.ts +1 -0
- package/src/react/index.tsx +36 -10
- package/src/types.ts +55 -0
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.37.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.37.1-spotter-embed */
|
|
2
2
|
'use client';
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
@@ -2819,6 +2819,54 @@ var HostEvent;
|
|
|
2819
2819
|
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
2820
2820
|
*/
|
|
2821
2821
|
HostEvent["TransformTableVizData"] = "TransformTableVizData";
|
|
2822
|
+
/**
|
|
2823
|
+
* Triggers the table visualization re-render with the updated data.
|
|
2824
|
+
* Includes the following properties:
|
|
2825
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
2826
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
2827
|
+
* payload.For example, { columnDataLite: []}`.
|
|
2828
|
+
*/
|
|
2829
|
+
HostEvent["SpotterSearch"] = "SpotterSearch";
|
|
2830
|
+
/**
|
|
2831
|
+
* Triggers the table visualization re-render with the updated data.
|
|
2832
|
+
* Includes the following properties:
|
|
2833
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
2834
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
2835
|
+
* payload.For example, { columnDataLite: []}`.
|
|
2836
|
+
*/
|
|
2837
|
+
HostEvent["EditLastPrompt"] = "EditLastPrompt";
|
|
2838
|
+
/**
|
|
2839
|
+
* Triggers the table visualization re-render with the updated data.
|
|
2840
|
+
* Includes the following properties:
|
|
2841
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
2842
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
2843
|
+
* payload.For example, { columnDataLite: []}`.
|
|
2844
|
+
*/
|
|
2845
|
+
HostEvent["PreviewSpotterData"] = "PreviewSpotterData";
|
|
2846
|
+
/**
|
|
2847
|
+
* Triggers the table visualization re-render with the updated data.
|
|
2848
|
+
* Includes the following properties:
|
|
2849
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
2850
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
2851
|
+
* payload.For example, { columnDataLite: []}`.
|
|
2852
|
+
*/
|
|
2853
|
+
HostEvent["ResetSpotterConversation"] = "ResetSpotterConversation";
|
|
2854
|
+
/**
|
|
2855
|
+
* Triggers the table visualization re-render with the updated data.
|
|
2856
|
+
* Includes the following properties:
|
|
2857
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
2858
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
2859
|
+
* payload.For example, { columnDataLite: []}`.
|
|
2860
|
+
*/
|
|
2861
|
+
HostEvent["DeleteLastPrompt"] = "DeleteLastPrompt";
|
|
2862
|
+
/**
|
|
2863
|
+
* Triggers the table visualization re-render with the updated data.
|
|
2864
|
+
* Includes the following properties:
|
|
2865
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
2866
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
2867
|
+
* payload.For example, { columnDataLite: []}`.
|
|
2868
|
+
*/
|
|
2869
|
+
HostEvent["AnswerChartSwitcher"] = "answerChartSwitcher";
|
|
2822
2870
|
})(HostEvent || (HostEvent = {}));
|
|
2823
2871
|
/**
|
|
2824
2872
|
* The different visual modes that the data sources panel within
|
|
@@ -2960,6 +3008,7 @@ var Param;
|
|
|
2960
3008
|
Param["ShowSpotterLimitations"] = "showSpotterLimitations";
|
|
2961
3009
|
Param["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
2962
3010
|
Param["PrimaryAction"] = "primaryAction";
|
|
3011
|
+
Param["isSpotterAgentEmbed"] = "isSpotterAgentEmbed";
|
|
2963
3012
|
})(Param || (Param = {}));
|
|
2964
3013
|
/**
|
|
2965
3014
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -7491,7 +7540,7 @@ class AnswerService {
|
|
|
7491
7540
|
async getTML() {
|
|
7492
7541
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
7493
7542
|
const edoc = object[0].edoc;
|
|
7494
|
-
const YAML = await import('./index-
|
|
7543
|
+
const YAML = await import('./index-DUaG1OG2.js');
|
|
7495
7544
|
const parsedDoc = YAML.parse(edoc);
|
|
7496
7545
|
return {
|
|
7497
7546
|
answer: {
|
|
@@ -14551,6 +14600,10 @@ var AuthStatus;
|
|
|
14551
14600
|
* @version SDK: 1.19.0
|
|
14552
14601
|
*/
|
|
14553
14602
|
AuthStatus["WAITING_FOR_POPUP"] = "WAITING_FOR_POPUP";
|
|
14603
|
+
/**
|
|
14604
|
+
* Emitted when the SAML popup is closed without authentication
|
|
14605
|
+
*/
|
|
14606
|
+
AuthStatus["SAML_POPUP_CLOSED_NO_AUTH"] = "SAML_POPUP_CLOSED_NO_AUTH";
|
|
14554
14607
|
})(AuthStatus || (AuthStatus = {}));
|
|
14555
14608
|
/**
|
|
14556
14609
|
* Events which can be triggered on the emitter returned from {@link init}.
|
|
@@ -14771,14 +14824,26 @@ const doBasicAuth = async (embedConfig) => {
|
|
|
14771
14824
|
* @param triggerText
|
|
14772
14825
|
*/
|
|
14773
14826
|
async function samlPopupFlow(ssoURL, triggerContainer, triggerText) {
|
|
14827
|
+
let popupClosedCheck;
|
|
14774
14828
|
const openPopup = () => {
|
|
14775
14829
|
if (samlAuthWindow === null || samlAuthWindow.closed) {
|
|
14776
14830
|
samlAuthWindow = window.open(ssoURL, '_blank', 'location=no,height=570,width=520,scrollbars=yes,status=yes');
|
|
14831
|
+
if (samlAuthWindow) {
|
|
14832
|
+
popupClosedCheck = setInterval(() => {
|
|
14833
|
+
if (samlAuthWindow.closed) {
|
|
14834
|
+
clearInterval(popupClosedCheck);
|
|
14835
|
+
if (samlCompletionPromise && !samlCompletionResolved) {
|
|
14836
|
+
authEE === null || authEE === void 0 ? void 0 : authEE.emit(AuthStatus.SAML_POPUP_CLOSED_NO_AUTH);
|
|
14837
|
+
}
|
|
14838
|
+
}
|
|
14839
|
+
}, 500);
|
|
14840
|
+
}
|
|
14777
14841
|
}
|
|
14778
14842
|
else {
|
|
14779
14843
|
samlAuthWindow.focus();
|
|
14780
14844
|
}
|
|
14781
14845
|
};
|
|
14846
|
+
let samlCompletionResolved = false;
|
|
14782
14847
|
authEE === null || authEE === void 0 ? void 0 : authEE.emit(AuthStatus.WAITING_FOR_POPUP);
|
|
14783
14848
|
const containerEl = getDOMNode(triggerContainer);
|
|
14784
14849
|
if (containerEl) {
|
|
@@ -14790,6 +14855,10 @@ async function samlPopupFlow(ssoURL, triggerContainer, triggerText) {
|
|
|
14790
14855
|
samlCompletionPromise = samlCompletionPromise || new Promise((resolve, reject) => {
|
|
14791
14856
|
window.addEventListener('message', (e) => {
|
|
14792
14857
|
if (e.data.type === EmbedEvent.SAMLComplete) {
|
|
14858
|
+
samlCompletionResolved = true;
|
|
14859
|
+
if (popupClosedCheck) {
|
|
14860
|
+
clearInterval(popupClosedCheck);
|
|
14861
|
+
}
|
|
14793
14862
|
e.source.close();
|
|
14794
14863
|
resolve();
|
|
14795
14864
|
}
|
|
@@ -15350,7 +15419,7 @@ function processEventData(type, e, thoughtSpotHost, containerEl) {
|
|
|
15350
15419
|
return e;
|
|
15351
15420
|
}
|
|
15352
15421
|
|
|
15353
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.37.
|
|
15422
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.37.1-spotter-embed";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run 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":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^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":"^1.1.1",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:"31 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};
|
|
15354
15423
|
|
|
15355
15424
|
/**
|
|
15356
15425
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -16815,6 +16884,9 @@ class AppEmbed extends V1Embed {
|
|
|
16815
16884
|
params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
|
|
16816
16885
|
params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
|
|
16817
16886
|
params = this.getBaseQueryParams(params);
|
|
16887
|
+
if (modularHomeExperienceV3) {
|
|
16888
|
+
params[Param.NavigationVersion] = 'v3';
|
|
16889
|
+
}
|
|
16818
16890
|
if (hideObjectSearch) {
|
|
16819
16891
|
params[Param.HideObjectSearch] = !!hideObjectSearch;
|
|
16820
16892
|
}
|
|
@@ -16871,14 +16943,6 @@ class AppEmbed extends V1Embed {
|
|
|
16871
16943
|
/* eslint-disable-next-line max-len */
|
|
16872
16944
|
params[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL;
|
|
16873
16945
|
}
|
|
16874
|
-
if (modularHomeExperienceV3) {
|
|
16875
|
-
if (modularHomeExperienceV3.enabled) {
|
|
16876
|
-
params[Param.NavigationVersion] = 'v3';
|
|
16877
|
-
}
|
|
16878
|
-
if (modularHomeExperienceV3.homePage === 'v2') {
|
|
16879
|
-
params[Param.ModularHomeExperienceEnabled] = true;
|
|
16880
|
-
}
|
|
16881
|
-
}
|
|
16882
16946
|
const queryParams = getQueryParamString(params, true);
|
|
16883
16947
|
return queryParams;
|
|
16884
16948
|
}
|
|
@@ -17967,6 +18031,7 @@ class ConversationMessage extends TsEmbed {
|
|
|
17967
18031
|
const path = 'conv-assist-answer';
|
|
17968
18032
|
const queryParams = this.getBaseQueryParams();
|
|
17969
18033
|
queryParams[Param.HideActions] = [...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : [])];
|
|
18034
|
+
queryParams[Param.isSpotterAgentEmbed] = true;
|
|
17970
18035
|
let query = '';
|
|
17971
18036
|
const queryParamsString = getQueryParamString(queryParams, true);
|
|
17972
18037
|
if (queryParamsString) {
|
|
@@ -17992,9 +18057,9 @@ class ConversationMessage extends TsEmbed {
|
|
|
17992
18057
|
* chatbots or other conversational interfaces.
|
|
17993
18058
|
* @example
|
|
17994
18059
|
* ```js
|
|
17995
|
-
* import {
|
|
18060
|
+
* import { SpotterAgentEmbed } from '@thoughtspot/visual-embed-sdk';
|
|
17996
18061
|
*
|
|
17997
|
-
* const conversation = new
|
|
18062
|
+
* const conversation = new SpotterAgentEmbed({
|
|
17998
18063
|
* worksheetId: 'worksheetId',
|
|
17999
18064
|
* });
|
|
18000
18065
|
*
|
|
@@ -18004,9 +18069,9 @@ class ConversationMessage extends TsEmbed {
|
|
|
18004
18069
|
* document.body.appendChild(container); // or to any other element
|
|
18005
18070
|
* ```
|
|
18006
18071
|
* @group Embed components
|
|
18007
|
-
* @version SDK: 1.
|
|
18072
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
18008
18073
|
*/
|
|
18009
|
-
class
|
|
18074
|
+
class SpotterAgentEmbed {
|
|
18010
18075
|
constructor(viewConfig) {
|
|
18011
18076
|
this.viewConfig = viewConfig;
|
|
18012
18077
|
const embedConfig = getEmbedConfig();
|
|
@@ -18058,7 +18123,7 @@ var isUndefined_1 = isUndefined;
|
|
|
18058
18123
|
* @group Embed components
|
|
18059
18124
|
* @example
|
|
18060
18125
|
* ```js
|
|
18061
|
-
* const conversation = new
|
|
18126
|
+
* const conversation = new SpotterEmbed('#tsEmbed', {
|
|
18062
18127
|
* worksheetId: 'worksheetId',
|
|
18063
18128
|
* searchOptions: {
|
|
18064
18129
|
* searchQuery: 'searchQuery',
|
|
@@ -18066,9 +18131,9 @@ var isUndefined_1 = isUndefined;
|
|
|
18066
18131
|
* });
|
|
18067
18132
|
* conversation.render();
|
|
18068
18133
|
* ```
|
|
18069
|
-
* @version SDK: 1.
|
|
18134
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.10.0.cl
|
|
18070
18135
|
*/
|
|
18071
|
-
class
|
|
18136
|
+
class SpotterEmbed extends TsEmbed {
|
|
18072
18137
|
constructor(container, viewConfig) {
|
|
18073
18138
|
viewConfig.embedComponentType = 'conversation';
|
|
18074
18139
|
super(container, viewConfig);
|
|
@@ -18699,4 +18764,4 @@ const createLiveboardWithAnswers = async (answers, name) => {
|
|
|
18699
18764
|
return result;
|
|
18700
18765
|
};
|
|
18701
18766
|
|
|
18702
|
-
export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, BodylessConversation, ContextMenuTriggerOptions, ConversationEmbed, DataSourceVisualMode, EmbedEvent, HomeLeftNavItem, HomePageSearchBarMode, HomepageModule, HostEvent, ListPageColumns, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, RuntimeFilterOp, SageEmbed, SearchBarEmbed, SearchEmbed, UIPassthroughEvent, createLiveboardWithAnswers, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout, prefetch, resetCachedAuthToken, tokenizedFetch, uploadMixpanelEvent };
|
|
18767
|
+
export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, SpotterAgentEmbed as BodylessConversation, ContextMenuTriggerOptions, SpotterEmbed as ConversationEmbed, DataSourceVisualMode, EmbedEvent, HomeLeftNavItem, HomePageSearchBarMode, HomepageModule, HostEvent, ListPageColumns, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, RuntimeFilterOp, SageEmbed, SearchBarEmbed, SearchEmbed, SpotterAgentEmbed, SpotterEmbed, UIPassthroughEvent, createLiveboardWithAnswers, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout, prefetch, resetCachedAuthToken, tokenizedFetch, uploadMixpanelEvent };
|