@thoughtspot/visual-embed-sdk 1.33.7 → 1.33.9
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/embed/conversation.d.ts +27 -0
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +9 -1
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +24 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/types.d.ts +30 -1
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +29 -0
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-CbgViG0H.js → index-BXczdQc7.js} +1 -1
- package/dist/src/embed/conversation.d.ts +27 -0
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/types.d.ts +30 -1
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +67 -9
- package/dist/tsembed-react.js +66 -8
- package/dist/tsembed.es.js +67 -9
- package/dist/tsembed.js +66 -8
- package/dist/visual-embed-sdk-react-full.d.ts +57 -1
- package/dist/visual-embed-sdk-react.d.ts +57 -1
- package/dist/visual-embed-sdk.d.ts +57 -1
- package/lib/package.json +3 -3
- package/lib/src/embed/conversation.d.ts +27 -0
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +8 -1
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +24 -0
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/types.d.ts +30 -1
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +29 -0
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +57 -1
- package/package.json +3 -3
- package/src/embed/conversation.spec.ts +34 -0
- package/src/embed/conversation.ts +36 -0
- package/src/types.ts +32 -0
package/dist/tsembed-react.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.33.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.33.9 */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
|
|
@@ -442,7 +442,7 @@ const removeStyleProperties = (element, styleProperties) => {
|
|
|
442
442
|
element.style.removeProperty(styleProperty);
|
|
443
443
|
});
|
|
444
444
|
};
|
|
445
|
-
const isUndefined = (value) => value === undefined;
|
|
445
|
+
const isUndefined$1 = (value) => value === undefined;
|
|
446
446
|
// Return if the value is a string, double or boolean.
|
|
447
447
|
const getTypeFromValue = (value) => {
|
|
448
448
|
if (typeof value === 'string') {
|
|
@@ -2734,6 +2734,8 @@ var Param;
|
|
|
2734
2734
|
Param["IsSageEmbed"] = "isSageEmbed";
|
|
2735
2735
|
Param["HideWorksheetSelector"] = "hideWorksheetSelector";
|
|
2736
2736
|
Param["DisableWorksheetChange"] = "disableWorksheetChange";
|
|
2737
|
+
Param["HideSourceSelection"] = "hideSourceSelection";
|
|
2738
|
+
Param["DisableSourceSelection"] = "disableSourceSelection";
|
|
2737
2739
|
Param["HideEurekaResults"] = "hideEurekaResults";
|
|
2738
2740
|
Param["HideEurekaSuggestions"] = "hideEurekaSuggestions";
|
|
2739
2741
|
Param["HideAutocompleteSuggestions"] = "hideAutocompleteSuggestions";
|
|
@@ -3827,6 +3829,33 @@ var Action;
|
|
|
3827
3829
|
* @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
|
|
3828
3830
|
*/
|
|
3829
3831
|
Action["ChangeFilterVisibilityInTab"] = "changeFilterVisibilityInTab";
|
|
3832
|
+
/**
|
|
3833
|
+
* Action ID for hide/disable Preview data button in spotter
|
|
3834
|
+
* @example
|
|
3835
|
+
* ```js
|
|
3836
|
+
* hiddenAction: [Action.PreviewDataSpotter]
|
|
3837
|
+
* ```
|
|
3838
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
3839
|
+
*/
|
|
3840
|
+
Action["PreviewDataSpotter"] = "previewDataSpotter";
|
|
3841
|
+
/**
|
|
3842
|
+
* Action ID for hide/disable reset button in spotter
|
|
3843
|
+
* @example
|
|
3844
|
+
* ```js
|
|
3845
|
+
* hiddenAction: [Action.ChangeFilterVisibilityInTab]
|
|
3846
|
+
* ```
|
|
3847
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
3848
|
+
*/
|
|
3849
|
+
Action["ResetSpotterChat"] = "resetSpotterChat";
|
|
3850
|
+
/**
|
|
3851
|
+
* Action ID for hide/disable feedback in spotter
|
|
3852
|
+
* @example
|
|
3853
|
+
* ```js
|
|
3854
|
+
* hiddenAction: [Action.ChangeFilterVisibilityInTab]
|
|
3855
|
+
* ```
|
|
3856
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
3857
|
+
*/
|
|
3858
|
+
Action["SpotterFeedback"] = "spotterFeedback";
|
|
3830
3859
|
})(Action || (Action = {}));
|
|
3831
3860
|
var PrefetchFeatures;
|
|
3832
3861
|
(function (PrefetchFeatures) {
|
|
@@ -6226,7 +6255,7 @@ class Logger {
|
|
|
6226
6255
|
canLog(logLevel) {
|
|
6227
6256
|
if (logLevel === LogLevel.SILENT)
|
|
6228
6257
|
return false;
|
|
6229
|
-
if (!isUndefined(globalLogLevelOverride)) {
|
|
6258
|
+
if (!isUndefined$1(globalLogLevelOverride)) {
|
|
6230
6259
|
return compareLogLevels(globalLogLevelOverride, logLevel) >= 0;
|
|
6231
6260
|
}
|
|
6232
6261
|
return compareLogLevels(this.logLevel, logLevel) >= 0;
|
|
@@ -7084,7 +7113,7 @@ class AnswerService {
|
|
|
7084
7113
|
async getTML() {
|
|
7085
7114
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
7086
7115
|
const edoc = object[0].edoc;
|
|
7087
|
-
const YAML = await import('./index-
|
|
7116
|
+
const YAML = await import('./index-BXczdQc7.js');
|
|
7088
7117
|
const parsedDoc = YAML.parse(edoc);
|
|
7089
7118
|
return {
|
|
7090
7119
|
answer: {
|
|
@@ -14483,7 +14512,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
14483
14512
|
});
|
|
14484
14513
|
}
|
|
14485
14514
|
|
|
14486
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.
|
|
14515
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.9";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 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={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",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":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"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","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","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:"30 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};
|
|
14487
14516
|
|
|
14488
14517
|
/**
|
|
14489
14518
|
* Copyright (c) 2022
|
|
@@ -14607,7 +14636,7 @@ class TsEmbed {
|
|
|
14607
14636
|
if (viewConfig.preRenderId) {
|
|
14608
14637
|
const allOtherKeys = Object.keys(viewConfig).filter((key) => !preRenderAllowedKeys.includes(key) && !key.startsWith('on'));
|
|
14609
14638
|
allOtherKeys.forEach((key) => {
|
|
14610
|
-
if (!isUndefined(viewConfig[key])
|
|
14639
|
+
if (!isUndefined$1(viewConfig[key])
|
|
14611
14640
|
&& !isEqual_1(viewConfig[key], preRenderedObject.viewConfig[key])) {
|
|
14612
14641
|
logger$3.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
|
|
14613
14642
|
+ `"${key}" as "${JSON.stringify(preRenderedObject.viewConfig[key])}" `
|
|
@@ -16343,7 +16372,7 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
|
|
|
16343
16372
|
beforePrerenderVisible() {
|
|
16344
16373
|
var _a;
|
|
16345
16374
|
const embedObj = (_a = this.insertedDomEl) === null || _a === void 0 ? void 0 : _a[this.embedNodeKey];
|
|
16346
|
-
if (isUndefined(embedObj))
|
|
16375
|
+
if (isUndefined$1(embedObj))
|
|
16347
16376
|
return;
|
|
16348
16377
|
const showDifferentLib = this.viewConfig.liveboardId
|
|
16349
16378
|
&& embedObj.viewConfig.liveboardId !== this.viewConfig.liveboardId;
|
|
@@ -16353,7 +16382,7 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
|
|
|
16353
16382
|
}
|
|
16354
16383
|
}
|
|
16355
16384
|
handleRenderForPrerender() {
|
|
16356
|
-
if (isUndefined(this.viewConfig.liveboardId)) {
|
|
16385
|
+
if (isUndefined$1(this.viewConfig.liveboardId)) {
|
|
16357
16386
|
this.prerenderGeneric();
|
|
16358
16387
|
return;
|
|
16359
16388
|
}
|
|
@@ -16439,6 +16468,29 @@ function getViewPropsAndListeners(props) {
|
|
|
16439
16468
|
});
|
|
16440
16469
|
}
|
|
16441
16470
|
|
|
16471
|
+
/**
|
|
16472
|
+
* Checks if `value` is `undefined`.
|
|
16473
|
+
*
|
|
16474
|
+
* @static
|
|
16475
|
+
* @since 0.1.0
|
|
16476
|
+
* @memberOf _
|
|
16477
|
+
* @category Lang
|
|
16478
|
+
* @param {*} value The value to check.
|
|
16479
|
+
* @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
|
|
16480
|
+
* @example
|
|
16481
|
+
*
|
|
16482
|
+
* _.isUndefined(void 0);
|
|
16483
|
+
* // => true
|
|
16484
|
+
*
|
|
16485
|
+
* _.isUndefined(null);
|
|
16486
|
+
* // => false
|
|
16487
|
+
*/
|
|
16488
|
+
function isUndefined(value) {
|
|
16489
|
+
return value === undefined;
|
|
16490
|
+
}
|
|
16491
|
+
|
|
16492
|
+
var isUndefined_1 = isUndefined;
|
|
16493
|
+
|
|
16442
16494
|
/**
|
|
16443
16495
|
* Embed ThoughtSpot AI Conversation.
|
|
16444
16496
|
* @group Embed components
|
|
@@ -16461,13 +16513,19 @@ let ConversationEmbed$1 = class ConversationEmbed extends TsEmbed {
|
|
|
16461
16513
|
this.viewConfig = viewConfig;
|
|
16462
16514
|
}
|
|
16463
16515
|
getIframeSrc() {
|
|
16464
|
-
const { worksheetId, searchOptions, } = this.viewConfig;
|
|
16516
|
+
const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, } = this.viewConfig;
|
|
16465
16517
|
const path = 'insights/conv-assist';
|
|
16466
16518
|
if (!worksheetId) {
|
|
16467
16519
|
this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
|
|
16468
16520
|
}
|
|
16469
16521
|
const queryParams = this.getBaseQueryParams();
|
|
16470
16522
|
queryParams[Param.SpotterEnabled] = true;
|
|
16523
|
+
if (!isUndefined_1(disableSourceSelection)) {
|
|
16524
|
+
queryParams[Param.DisableSourceSelection] = !!disableSourceSelection;
|
|
16525
|
+
}
|
|
16526
|
+
if (!isUndefined_1(hideSourceSelection)) {
|
|
16527
|
+
queryParams[Param.HideSourceSelection] = !!hideSourceSelection;
|
|
16528
|
+
}
|
|
16471
16529
|
let query = '';
|
|
16472
16530
|
const queryParamsString = getQueryParamString(queryParams, true);
|
|
16473
16531
|
if (queryParamsString) {
|
package/dist/tsembed-react.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.33.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.33.9 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
|
|
@@ -464,7 +464,7 @@
|
|
|
464
464
|
element.style.removeProperty(styleProperty);
|
|
465
465
|
});
|
|
466
466
|
};
|
|
467
|
-
const isUndefined = (value) => value === undefined;
|
|
467
|
+
const isUndefined$1 = (value) => value === undefined;
|
|
468
468
|
// Return if the value is a string, double or boolean.
|
|
469
469
|
const getTypeFromValue = (value) => {
|
|
470
470
|
if (typeof value === 'string') {
|
|
@@ -2756,6 +2756,8 @@
|
|
|
2756
2756
|
Param["IsSageEmbed"] = "isSageEmbed";
|
|
2757
2757
|
Param["HideWorksheetSelector"] = "hideWorksheetSelector";
|
|
2758
2758
|
Param["DisableWorksheetChange"] = "disableWorksheetChange";
|
|
2759
|
+
Param["HideSourceSelection"] = "hideSourceSelection";
|
|
2760
|
+
Param["DisableSourceSelection"] = "disableSourceSelection";
|
|
2759
2761
|
Param["HideEurekaResults"] = "hideEurekaResults";
|
|
2760
2762
|
Param["HideEurekaSuggestions"] = "hideEurekaSuggestions";
|
|
2761
2763
|
Param["HideAutocompleteSuggestions"] = "hideAutocompleteSuggestions";
|
|
@@ -3849,6 +3851,33 @@
|
|
|
3849
3851
|
* @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
|
|
3850
3852
|
*/
|
|
3851
3853
|
Action["ChangeFilterVisibilityInTab"] = "changeFilterVisibilityInTab";
|
|
3854
|
+
/**
|
|
3855
|
+
* Action ID for hide/disable Preview data button in spotter
|
|
3856
|
+
* @example
|
|
3857
|
+
* ```js
|
|
3858
|
+
* hiddenAction: [Action.PreviewDataSpotter]
|
|
3859
|
+
* ```
|
|
3860
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
3861
|
+
*/
|
|
3862
|
+
Action["PreviewDataSpotter"] = "previewDataSpotter";
|
|
3863
|
+
/**
|
|
3864
|
+
* Action ID for hide/disable reset button in spotter
|
|
3865
|
+
* @example
|
|
3866
|
+
* ```js
|
|
3867
|
+
* hiddenAction: [Action.ChangeFilterVisibilityInTab]
|
|
3868
|
+
* ```
|
|
3869
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
3870
|
+
*/
|
|
3871
|
+
Action["ResetSpotterChat"] = "resetSpotterChat";
|
|
3872
|
+
/**
|
|
3873
|
+
* Action ID for hide/disable feedback in spotter
|
|
3874
|
+
* @example
|
|
3875
|
+
* ```js
|
|
3876
|
+
* hiddenAction: [Action.ChangeFilterVisibilityInTab]
|
|
3877
|
+
* ```
|
|
3878
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
3879
|
+
*/
|
|
3880
|
+
Action["SpotterFeedback"] = "spotterFeedback";
|
|
3852
3881
|
})(exports.Action || (exports.Action = {}));
|
|
3853
3882
|
var PrefetchFeatures;
|
|
3854
3883
|
(function (PrefetchFeatures) {
|
|
@@ -6248,7 +6277,7 @@
|
|
|
6248
6277
|
canLog(logLevel) {
|
|
6249
6278
|
if (logLevel === exports.LogLevel.SILENT)
|
|
6250
6279
|
return false;
|
|
6251
|
-
if (!isUndefined(globalLogLevelOverride)) {
|
|
6280
|
+
if (!isUndefined$1(globalLogLevelOverride)) {
|
|
6252
6281
|
return compareLogLevels(globalLogLevelOverride, logLevel) >= 0;
|
|
6253
6282
|
}
|
|
6254
6283
|
return compareLogLevels(this.logLevel, logLevel) >= 0;
|
|
@@ -14505,7 +14534,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14505
14534
|
});
|
|
14506
14535
|
}
|
|
14507
14536
|
|
|
14508
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.
|
|
14537
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.9";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","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 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={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",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":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"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","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","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:"30 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};
|
|
14509
14538
|
|
|
14510
14539
|
/**
|
|
14511
14540
|
* Copyright (c) 2022
|
|
@@ -14629,7 +14658,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14629
14658
|
if (viewConfig.preRenderId) {
|
|
14630
14659
|
const allOtherKeys = Object.keys(viewConfig).filter((key) => !preRenderAllowedKeys.includes(key) && !key.startsWith('on'));
|
|
14631
14660
|
allOtherKeys.forEach((key) => {
|
|
14632
|
-
if (!isUndefined(viewConfig[key])
|
|
14661
|
+
if (!isUndefined$1(viewConfig[key])
|
|
14633
14662
|
&& !isEqual_1(viewConfig[key], preRenderedObject.viewConfig[key])) {
|
|
14634
14663
|
logger$3.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
|
|
14635
14664
|
+ `"${key}" as "${JSON.stringify(preRenderedObject.viewConfig[key])}" `
|
|
@@ -16365,7 +16394,7 @@ query GetEurekaVizSnapshots(
|
|
|
16365
16394
|
beforePrerenderVisible() {
|
|
16366
16395
|
var _a;
|
|
16367
16396
|
const embedObj = (_a = this.insertedDomEl) === null || _a === void 0 ? void 0 : _a[this.embedNodeKey];
|
|
16368
|
-
if (isUndefined(embedObj))
|
|
16397
|
+
if (isUndefined$1(embedObj))
|
|
16369
16398
|
return;
|
|
16370
16399
|
const showDifferentLib = this.viewConfig.liveboardId
|
|
16371
16400
|
&& embedObj.viewConfig.liveboardId !== this.viewConfig.liveboardId;
|
|
@@ -16375,7 +16404,7 @@ query GetEurekaVizSnapshots(
|
|
|
16375
16404
|
}
|
|
16376
16405
|
}
|
|
16377
16406
|
handleRenderForPrerender() {
|
|
16378
|
-
if (isUndefined(this.viewConfig.liveboardId)) {
|
|
16407
|
+
if (isUndefined$1(this.viewConfig.liveboardId)) {
|
|
16379
16408
|
this.prerenderGeneric();
|
|
16380
16409
|
return;
|
|
16381
16410
|
}
|
|
@@ -16461,6 +16490,29 @@ query GetEurekaVizSnapshots(
|
|
|
16461
16490
|
});
|
|
16462
16491
|
}
|
|
16463
16492
|
|
|
16493
|
+
/**
|
|
16494
|
+
* Checks if `value` is `undefined`.
|
|
16495
|
+
*
|
|
16496
|
+
* @static
|
|
16497
|
+
* @since 0.1.0
|
|
16498
|
+
* @memberOf _
|
|
16499
|
+
* @category Lang
|
|
16500
|
+
* @param {*} value The value to check.
|
|
16501
|
+
* @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
|
|
16502
|
+
* @example
|
|
16503
|
+
*
|
|
16504
|
+
* _.isUndefined(void 0);
|
|
16505
|
+
* // => true
|
|
16506
|
+
*
|
|
16507
|
+
* _.isUndefined(null);
|
|
16508
|
+
* // => false
|
|
16509
|
+
*/
|
|
16510
|
+
function isUndefined(value) {
|
|
16511
|
+
return value === undefined;
|
|
16512
|
+
}
|
|
16513
|
+
|
|
16514
|
+
var isUndefined_1 = isUndefined;
|
|
16515
|
+
|
|
16464
16516
|
/**
|
|
16465
16517
|
* Embed ThoughtSpot AI Conversation.
|
|
16466
16518
|
* @group Embed components
|
|
@@ -16483,13 +16535,19 @@ query GetEurekaVizSnapshots(
|
|
|
16483
16535
|
this.viewConfig = viewConfig;
|
|
16484
16536
|
}
|
|
16485
16537
|
getIframeSrc() {
|
|
16486
|
-
const { worksheetId, searchOptions, } = this.viewConfig;
|
|
16538
|
+
const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, } = this.viewConfig;
|
|
16487
16539
|
const path = 'insights/conv-assist';
|
|
16488
16540
|
if (!worksheetId) {
|
|
16489
16541
|
this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
|
|
16490
16542
|
}
|
|
16491
16543
|
const queryParams = this.getBaseQueryParams();
|
|
16492
16544
|
queryParams[Param.SpotterEnabled] = true;
|
|
16545
|
+
if (!isUndefined_1(disableSourceSelection)) {
|
|
16546
|
+
queryParams[Param.DisableSourceSelection] = !!disableSourceSelection;
|
|
16547
|
+
}
|
|
16548
|
+
if (!isUndefined_1(hideSourceSelection)) {
|
|
16549
|
+
queryParams[Param.HideSourceSelection] = !!hideSourceSelection;
|
|
16550
|
+
}
|
|
16493
16551
|
let query = '';
|
|
16494
16552
|
const queryParamsString = getQueryParamString(queryParams, true);
|
|
16495
16553
|
if (queryParamsString) {
|
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.33.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.33.9 */
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
m.forEach(function (e) {
|
|
4
4
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -327,7 +327,7 @@ const removeStyleProperties = (element, styleProperties) => {
|
|
|
327
327
|
element.style.removeProperty(styleProperty);
|
|
328
328
|
});
|
|
329
329
|
};
|
|
330
|
-
const isUndefined = (value) => value === undefined;
|
|
330
|
+
const isUndefined$1 = (value) => value === undefined;
|
|
331
331
|
// Return if the value is a string, double or boolean.
|
|
332
332
|
const getTypeFromValue = (value) => {
|
|
333
333
|
if (typeof value === 'string') {
|
|
@@ -2619,6 +2619,8 @@ var Param;
|
|
|
2619
2619
|
Param["IsSageEmbed"] = "isSageEmbed";
|
|
2620
2620
|
Param["HideWorksheetSelector"] = "hideWorksheetSelector";
|
|
2621
2621
|
Param["DisableWorksheetChange"] = "disableWorksheetChange";
|
|
2622
|
+
Param["HideSourceSelection"] = "hideSourceSelection";
|
|
2623
|
+
Param["DisableSourceSelection"] = "disableSourceSelection";
|
|
2622
2624
|
Param["HideEurekaResults"] = "hideEurekaResults";
|
|
2623
2625
|
Param["HideEurekaSuggestions"] = "hideEurekaSuggestions";
|
|
2624
2626
|
Param["HideAutocompleteSuggestions"] = "hideAutocompleteSuggestions";
|
|
@@ -3712,6 +3714,33 @@ var Action;
|
|
|
3712
3714
|
* @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
|
|
3713
3715
|
*/
|
|
3714
3716
|
Action["ChangeFilterVisibilityInTab"] = "changeFilterVisibilityInTab";
|
|
3717
|
+
/**
|
|
3718
|
+
* Action ID for hide/disable Preview data button in spotter
|
|
3719
|
+
* @example
|
|
3720
|
+
* ```js
|
|
3721
|
+
* hiddenAction: [Action.PreviewDataSpotter]
|
|
3722
|
+
* ```
|
|
3723
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
3724
|
+
*/
|
|
3725
|
+
Action["PreviewDataSpotter"] = "previewDataSpotter";
|
|
3726
|
+
/**
|
|
3727
|
+
* Action ID for hide/disable reset button in spotter
|
|
3728
|
+
* @example
|
|
3729
|
+
* ```js
|
|
3730
|
+
* hiddenAction: [Action.ChangeFilterVisibilityInTab]
|
|
3731
|
+
* ```
|
|
3732
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
3733
|
+
*/
|
|
3734
|
+
Action["ResetSpotterChat"] = "resetSpotterChat";
|
|
3735
|
+
/**
|
|
3736
|
+
* Action ID for hide/disable feedback in spotter
|
|
3737
|
+
* @example
|
|
3738
|
+
* ```js
|
|
3739
|
+
* hiddenAction: [Action.ChangeFilterVisibilityInTab]
|
|
3740
|
+
* ```
|
|
3741
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
3742
|
+
*/
|
|
3743
|
+
Action["SpotterFeedback"] = "spotterFeedback";
|
|
3715
3744
|
})(Action || (Action = {}));
|
|
3716
3745
|
var PrefetchFeatures;
|
|
3717
3746
|
(function (PrefetchFeatures) {
|
|
@@ -3840,7 +3869,7 @@ class Logger {
|
|
|
3840
3869
|
canLog(logLevel) {
|
|
3841
3870
|
if (logLevel === LogLevel.SILENT)
|
|
3842
3871
|
return false;
|
|
3843
|
-
if (!isUndefined(globalLogLevelOverride)) {
|
|
3872
|
+
if (!isUndefined$1(globalLogLevelOverride)) {
|
|
3844
3873
|
return compareLogLevels(globalLogLevelOverride, logLevel) >= 0;
|
|
3845
3874
|
}
|
|
3846
3875
|
return compareLogLevels(this.logLevel, logLevel) >= 0;
|
|
@@ -6983,7 +7012,7 @@ class AnswerService {
|
|
|
6983
7012
|
async getTML() {
|
|
6984
7013
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
6985
7014
|
const edoc = object[0].edoc;
|
|
6986
|
-
const YAML = await import('./index-
|
|
7015
|
+
const YAML = await import('./index-BXczdQc7.js');
|
|
6987
7016
|
const parsedDoc = YAML.parse(edoc);
|
|
6988
7017
|
return {
|
|
6989
7018
|
answer: {
|
|
@@ -14725,7 +14754,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
14725
14754
|
});
|
|
14726
14755
|
}
|
|
14727
14756
|
|
|
14728
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.
|
|
14757
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.9";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 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={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",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":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"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","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","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:"30 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};
|
|
14729
14758
|
|
|
14730
14759
|
/**
|
|
14731
14760
|
* Copyright (c) 2022
|
|
@@ -14849,7 +14878,7 @@ class TsEmbed {
|
|
|
14849
14878
|
if (viewConfig.preRenderId) {
|
|
14850
14879
|
const allOtherKeys = Object.keys(viewConfig).filter((key) => !preRenderAllowedKeys.includes(key) && !key.startsWith('on'));
|
|
14851
14880
|
allOtherKeys.forEach((key) => {
|
|
14852
|
-
if (!isUndefined(viewConfig[key])
|
|
14881
|
+
if (!isUndefined$1(viewConfig[key])
|
|
14853
14882
|
&& !isEqual_1(viewConfig[key], preRenderedObject.viewConfig[key])) {
|
|
14854
14883
|
logger$3.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
|
|
14855
14884
|
+ `"${key}" as "${JSON.stringify(preRenderedObject.viewConfig[key])}" `
|
|
@@ -16288,7 +16317,7 @@ class LiveboardEmbed extends V1Embed {
|
|
|
16288
16317
|
beforePrerenderVisible() {
|
|
16289
16318
|
var _a;
|
|
16290
16319
|
const embedObj = (_a = this.insertedDomEl) === null || _a === void 0 ? void 0 : _a[this.embedNodeKey];
|
|
16291
|
-
if (isUndefined(embedObj))
|
|
16320
|
+
if (isUndefined$1(embedObj))
|
|
16292
16321
|
return;
|
|
16293
16322
|
const showDifferentLib = this.viewConfig.liveboardId
|
|
16294
16323
|
&& embedObj.viewConfig.liveboardId !== this.viewConfig.liveboardId;
|
|
@@ -16298,7 +16327,7 @@ class LiveboardEmbed extends V1Embed {
|
|
|
16298
16327
|
}
|
|
16299
16328
|
}
|
|
16300
16329
|
handleRenderForPrerender() {
|
|
16301
|
-
if (isUndefined(this.viewConfig.liveboardId)) {
|
|
16330
|
+
if (isUndefined$1(this.viewConfig.liveboardId)) {
|
|
16302
16331
|
this.prerenderGeneric();
|
|
16303
16332
|
return;
|
|
16304
16333
|
}
|
|
@@ -17043,6 +17072,29 @@ class BodylessConversation {
|
|
|
17043
17072
|
}
|
|
17044
17073
|
}
|
|
17045
17074
|
|
|
17075
|
+
/**
|
|
17076
|
+
* Checks if `value` is `undefined`.
|
|
17077
|
+
*
|
|
17078
|
+
* @static
|
|
17079
|
+
* @since 0.1.0
|
|
17080
|
+
* @memberOf _
|
|
17081
|
+
* @category Lang
|
|
17082
|
+
* @param {*} value The value to check.
|
|
17083
|
+
* @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
|
|
17084
|
+
* @example
|
|
17085
|
+
*
|
|
17086
|
+
* _.isUndefined(void 0);
|
|
17087
|
+
* // => true
|
|
17088
|
+
*
|
|
17089
|
+
* _.isUndefined(null);
|
|
17090
|
+
* // => false
|
|
17091
|
+
*/
|
|
17092
|
+
function isUndefined(value) {
|
|
17093
|
+
return value === undefined;
|
|
17094
|
+
}
|
|
17095
|
+
|
|
17096
|
+
var isUndefined_1 = isUndefined;
|
|
17097
|
+
|
|
17046
17098
|
/**
|
|
17047
17099
|
* Embed ThoughtSpot AI Conversation.
|
|
17048
17100
|
* @group Embed components
|
|
@@ -17065,13 +17117,19 @@ class ConversationEmbed extends TsEmbed {
|
|
|
17065
17117
|
this.viewConfig = viewConfig;
|
|
17066
17118
|
}
|
|
17067
17119
|
getIframeSrc() {
|
|
17068
|
-
const { worksheetId, searchOptions, } = this.viewConfig;
|
|
17120
|
+
const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, } = this.viewConfig;
|
|
17069
17121
|
const path = 'insights/conv-assist';
|
|
17070
17122
|
if (!worksheetId) {
|
|
17071
17123
|
this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
|
|
17072
17124
|
}
|
|
17073
17125
|
const queryParams = this.getBaseQueryParams();
|
|
17074
17126
|
queryParams[Param.SpotterEnabled] = true;
|
|
17127
|
+
if (!isUndefined_1(disableSourceSelection)) {
|
|
17128
|
+
queryParams[Param.DisableSourceSelection] = !!disableSourceSelection;
|
|
17129
|
+
}
|
|
17130
|
+
if (!isUndefined_1(hideSourceSelection)) {
|
|
17131
|
+
queryParams[Param.HideSourceSelection] = !!hideSourceSelection;
|
|
17132
|
+
}
|
|
17075
17133
|
let query = '';
|
|
17076
17134
|
const queryParamsString = getQueryParamString(queryParams, true);
|
|
17077
17135
|
if (queryParamsString) {
|