@thoughtspot/visual-embed-sdk 1.44.0 → 1.44.1
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/base.d.ts +7 -0
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +16 -1
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/base.spec.js +21 -0
- package/cjs/src/embed/base.spec.js.map +1 -1
- package/cjs/src/index.d.ts +2 -2
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +2 -1
- 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/types.d.ts +54 -5
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +40 -0
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-B2QPwxuL.js → index-BE9gGzRX.js} +1 -1
- package/dist/src/embed/base.d.ts +7 -0
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -2
- 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/types.d.ts +54 -5
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +113 -73
- package/dist/tsembed-react.js +112 -72
- package/dist/tsembed.es.js +127 -74
- package/dist/tsembed.js +126 -72
- package/dist/visual-embed-sdk-react-full.d.ts +61 -5
- package/dist/visual-embed-sdk-react.d.ts +54 -5
- package/dist/visual-embed-sdk.d.ts +61 -5
- package/lib/package.json +1 -1
- package/lib/src/embed/base.d.ts +7 -0
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +14 -0
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/base.spec.js +21 -0
- package/lib/src/embed/base.spec.js.map +1 -1
- package/lib/src/index.d.ts +2 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +2 -2
- 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/types.d.ts +54 -5
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +40 -0
- package/lib/src/types.js.map +1 -1
- package/package.json +1 -1
- package/src/embed/base.spec.ts +28 -0
- package/src/embed/base.ts +15 -0
- package/src/index.ts +2 -0
- package/src/react/all-types-export.ts +1 -0
- package/src/types.ts +53 -5
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.44.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.44.1 */
|
|
2
2
|
'use client';
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
@@ -4459,6 +4459,46 @@ var Action;
|
|
|
4459
4459
|
* @version SDK: 1.43.0 | ThoughtSpot Cloud: 10.15.0.cl
|
|
4460
4460
|
*/
|
|
4461
4461
|
Action["LiveboardStylePanel"] = "liveboardStylePanel";
|
|
4462
|
+
/**
|
|
4463
|
+
* The **Move to Group** menu action on a Liveboard.
|
|
4464
|
+
* Allows moving a visualization to a different group.
|
|
4465
|
+
* @example
|
|
4466
|
+
* ```js
|
|
4467
|
+
* disabledActions: [Action.MoveToGroup]
|
|
4468
|
+
* ```
|
|
4469
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
4470
|
+
*/
|
|
4471
|
+
Action["MoveToGroup"] = "moveToGroup";
|
|
4472
|
+
/**
|
|
4473
|
+
* The **Move out of Group** menu action on a Liveboard.
|
|
4474
|
+
* Allows moving a visualization out of a group.
|
|
4475
|
+
* @example
|
|
4476
|
+
* ```js
|
|
4477
|
+
* disabledActions: [Action.MoveOutOfGroup]
|
|
4478
|
+
* ```
|
|
4479
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
4480
|
+
*/
|
|
4481
|
+
Action["MoveOutOfGroup"] = "moveOutOfGroup";
|
|
4482
|
+
/**
|
|
4483
|
+
* The **Create Group** menu action on a Liveboard.
|
|
4484
|
+
* Allows creating a new group.
|
|
4485
|
+
* @example
|
|
4486
|
+
* ```js
|
|
4487
|
+
* disabledActions: [Action.CreateGroup]
|
|
4488
|
+
* ```
|
|
4489
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
4490
|
+
*/
|
|
4491
|
+
Action["CreateGroup"] = "createGroup";
|
|
4492
|
+
/**
|
|
4493
|
+
* The **Ungroup Liveboard Group** menu action on a Liveboard.
|
|
4494
|
+
* Allows ungrouping a liveboard group.
|
|
4495
|
+
* @example
|
|
4496
|
+
* ```js
|
|
4497
|
+
* disabledActions: [Action.UngroupLiveboardGroup]
|
|
4498
|
+
* ```
|
|
4499
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
4500
|
+
*/
|
|
4501
|
+
Action["UngroupLiveboardGroup"] = "ungroupLiveboardGroup";
|
|
4462
4502
|
})(Action || (Action = {}));
|
|
4463
4503
|
var PrefetchFeatures;
|
|
4464
4504
|
(function (PrefetchFeatures) {
|
|
@@ -8356,7 +8396,7 @@ class AnswerService {
|
|
|
8356
8396
|
async getTML() {
|
|
8357
8397
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
8358
8398
|
const edoc = object[0].edoc;
|
|
8359
|
-
const YAML = await import('./index-
|
|
8399
|
+
const YAML = await import('./index-BE9gGzRX.js');
|
|
8360
8400
|
const parsedDoc = YAML.parse(edoc);
|
|
8361
8401
|
return {
|
|
8362
8402
|
answer: {
|
|
@@ -17227,6 +17267,76 @@ if (typeof Promise.withResolvers === 'undefined') {
|
|
|
17227
17267
|
};
|
|
17228
17268
|
}
|
|
17229
17269
|
|
|
17270
|
+
/**
|
|
17271
|
+
* Reloads the ThoughtSpot iframe.
|
|
17272
|
+
* @param iFrame
|
|
17273
|
+
*/
|
|
17274
|
+
const reload = (iFrame) => {
|
|
17275
|
+
const src = iFrame.src;
|
|
17276
|
+
iFrame.src = '';
|
|
17277
|
+
setTimeout(() => {
|
|
17278
|
+
iFrame.src = src;
|
|
17279
|
+
}, 100);
|
|
17280
|
+
};
|
|
17281
|
+
/**
|
|
17282
|
+
* Post iframe message.
|
|
17283
|
+
* @param iFrame
|
|
17284
|
+
* @param message
|
|
17285
|
+
* @param message.type
|
|
17286
|
+
* @param message.data
|
|
17287
|
+
* @param thoughtSpotHost
|
|
17288
|
+
* @param channel
|
|
17289
|
+
*/
|
|
17290
|
+
function postIframeMessage(iFrame, message, thoughtSpotHost, channel) {
|
|
17291
|
+
var _a;
|
|
17292
|
+
return (_a = iFrame.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage(message, thoughtSpotHost, [channel === null || channel === void 0 ? void 0 : channel.port2]);
|
|
17293
|
+
}
|
|
17294
|
+
const TRIGGER_TIMEOUT = 30000;
|
|
17295
|
+
/**
|
|
17296
|
+
*
|
|
17297
|
+
* @param iFrame
|
|
17298
|
+
* @param messageType
|
|
17299
|
+
* @param thoughtSpotHost
|
|
17300
|
+
* @param data
|
|
17301
|
+
*/
|
|
17302
|
+
function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
17303
|
+
return new Promise((res, rej) => {
|
|
17304
|
+
var _a;
|
|
17305
|
+
if (messageType === HostEvent.Reload) {
|
|
17306
|
+
reload(iFrame);
|
|
17307
|
+
return res(null);
|
|
17308
|
+
}
|
|
17309
|
+
if (messageType === HostEvent.Present) {
|
|
17310
|
+
const embedConfig = getEmbedConfig();
|
|
17311
|
+
const disableFullscreenPresentation = (_a = embedConfig === null || embedConfig === void 0 ? void 0 : embedConfig.disableFullscreenPresentation) !== null && _a !== void 0 ? _a : true;
|
|
17312
|
+
if (!disableFullscreenPresentation) {
|
|
17313
|
+
handlePresentEvent(iFrame);
|
|
17314
|
+
}
|
|
17315
|
+
else {
|
|
17316
|
+
logger$3.warn('Fullscreen presentation mode is disabled. Set disableFullscreenPresentation: false to enable this feature.');
|
|
17317
|
+
}
|
|
17318
|
+
}
|
|
17319
|
+
const channel = new MessageChannel();
|
|
17320
|
+
channel.port1.onmessage = ({ data: responseData }) => {
|
|
17321
|
+
var _a;
|
|
17322
|
+
channel.port1.close();
|
|
17323
|
+
const error = responseData.error || ((_a = responseData === null || responseData === void 0 ? void 0 : responseData.data) === null || _a === void 0 ? void 0 : _a.error);
|
|
17324
|
+
if (error) {
|
|
17325
|
+
rej(error);
|
|
17326
|
+
}
|
|
17327
|
+
else {
|
|
17328
|
+
res(responseData);
|
|
17329
|
+
}
|
|
17330
|
+
};
|
|
17331
|
+
// Close the messageChannel and resolve the promise if timeout.
|
|
17332
|
+
setTimeout(() => {
|
|
17333
|
+
channel.port1.close();
|
|
17334
|
+
res(new Error(ERROR_MESSAGE.TRIGGER_TIMED_OUT));
|
|
17335
|
+
}, TRIGGER_TIMEOUT);
|
|
17336
|
+
return postIframeMessage(iFrame, { type: messageType, data }, thoughtSpotHost, channel);
|
|
17337
|
+
});
|
|
17338
|
+
}
|
|
17339
|
+
|
|
17230
17340
|
/* eslint-disable camelcase */
|
|
17231
17341
|
/* eslint-disable import/no-mutable-exports */
|
|
17232
17342
|
/**
|
|
@@ -17572,6 +17682,19 @@ const exportTML = async (data) => {
|
|
|
17572
17682
|
.catch((error) => {
|
|
17573
17683
|
throw error;
|
|
17574
17684
|
});
|
|
17685
|
+
};
|
|
17686
|
+
/**
|
|
17687
|
+
* Reloads the ThoughtSpot iframe.
|
|
17688
|
+
* @param iFrame
|
|
17689
|
+
* @group Global methods
|
|
17690
|
+
* @version SDK: 1.43.1
|
|
17691
|
+
*/
|
|
17692
|
+
const reloadIframe = (iFrame) => {
|
|
17693
|
+
if (!iFrame) {
|
|
17694
|
+
logger$3.warn('reloadIframe called with no iFrame element.');
|
|
17695
|
+
return;
|
|
17696
|
+
}
|
|
17697
|
+
reload(iFrame);
|
|
17575
17698
|
};
|
|
17576
17699
|
|
|
17577
17700
|
/**
|
|
@@ -17705,77 +17828,7 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
|
|
|
17705
17828
|
return eventData;
|
|
17706
17829
|
}
|
|
17707
17830
|
|
|
17708
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.44.
|
|
17709
|
-
|
|
17710
|
-
/**
|
|
17711
|
-
* Reloads the ThoughtSpot iframe.
|
|
17712
|
-
* @param iFrame
|
|
17713
|
-
*/
|
|
17714
|
-
const reload = (iFrame) => {
|
|
17715
|
-
const src = iFrame.src;
|
|
17716
|
-
iFrame.src = '';
|
|
17717
|
-
setTimeout(() => {
|
|
17718
|
-
iFrame.src = src;
|
|
17719
|
-
}, 100);
|
|
17720
|
-
};
|
|
17721
|
-
/**
|
|
17722
|
-
* Post iframe message.
|
|
17723
|
-
* @param iFrame
|
|
17724
|
-
* @param message
|
|
17725
|
-
* @param message.type
|
|
17726
|
-
* @param message.data
|
|
17727
|
-
* @param thoughtSpotHost
|
|
17728
|
-
* @param channel
|
|
17729
|
-
*/
|
|
17730
|
-
function postIframeMessage(iFrame, message, thoughtSpotHost, channel) {
|
|
17731
|
-
var _a;
|
|
17732
|
-
return (_a = iFrame.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage(message, thoughtSpotHost, [channel === null || channel === void 0 ? void 0 : channel.port2]);
|
|
17733
|
-
}
|
|
17734
|
-
const TRIGGER_TIMEOUT = 30000;
|
|
17735
|
-
/**
|
|
17736
|
-
*
|
|
17737
|
-
* @param iFrame
|
|
17738
|
-
* @param messageType
|
|
17739
|
-
* @param thoughtSpotHost
|
|
17740
|
-
* @param data
|
|
17741
|
-
*/
|
|
17742
|
-
function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
17743
|
-
return new Promise((res, rej) => {
|
|
17744
|
-
var _a;
|
|
17745
|
-
if (messageType === HostEvent.Reload) {
|
|
17746
|
-
reload(iFrame);
|
|
17747
|
-
return res(null);
|
|
17748
|
-
}
|
|
17749
|
-
if (messageType === HostEvent.Present) {
|
|
17750
|
-
const embedConfig = getEmbedConfig();
|
|
17751
|
-
const disableFullscreenPresentation = (_a = embedConfig === null || embedConfig === void 0 ? void 0 : embedConfig.disableFullscreenPresentation) !== null && _a !== void 0 ? _a : true;
|
|
17752
|
-
if (!disableFullscreenPresentation) {
|
|
17753
|
-
handlePresentEvent(iFrame);
|
|
17754
|
-
}
|
|
17755
|
-
else {
|
|
17756
|
-
logger$3.warn('Fullscreen presentation mode is disabled. Set disableFullscreenPresentation: false to enable this feature.');
|
|
17757
|
-
}
|
|
17758
|
-
}
|
|
17759
|
-
const channel = new MessageChannel();
|
|
17760
|
-
channel.port1.onmessage = ({ data: responseData }) => {
|
|
17761
|
-
var _a;
|
|
17762
|
-
channel.port1.close();
|
|
17763
|
-
const error = responseData.error || ((_a = responseData === null || responseData === void 0 ? void 0 : responseData.data) === null || _a === void 0 ? void 0 : _a.error);
|
|
17764
|
-
if (error) {
|
|
17765
|
-
rej(error);
|
|
17766
|
-
}
|
|
17767
|
-
else {
|
|
17768
|
-
res(responseData);
|
|
17769
|
-
}
|
|
17770
|
-
};
|
|
17771
|
-
// Close the messageChannel and resolve the promise if timeout.
|
|
17772
|
-
setTimeout(() => {
|
|
17773
|
-
channel.port1.close();
|
|
17774
|
-
res(new Error(ERROR_MESSAGE.TRIGGER_TIMED_OUT));
|
|
17775
|
-
}, TRIGGER_TIMEOUT);
|
|
17776
|
-
return postIframeMessage(iFrame, { type: messageType, data }, thoughtSpotHost, channel);
|
|
17777
|
-
});
|
|
17778
|
-
}
|
|
17831
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.44.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p 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 is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.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};
|
|
17779
17832
|
|
|
17780
17833
|
class HostEventClient {
|
|
17781
17834
|
constructor(iFrame) {
|
|
@@ -21835,4 +21888,4 @@ const createLiveboardWithAnswers = async (answers, name) => {
|
|
|
21835
21888
|
return result;
|
|
21836
21889
|
};
|
|
21837
21890
|
|
|
21838
|
-
export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, BodylessConversation, ContextMenuTriggerOptions, ConversationEmbed, CustomActionTarget, CustomActionsPosition, DataPanelCustomColumnGroupsAccordionState$1 as DataPanelCustomColumnGroupsAccordionState, DataSourceVisualMode, EmbedEvent, HomeLeftNavItem, HomePage, HomePageSearchBarMode, HomepageModule, HostEvent, InterceptedApiType, ListPage, ListPageColumns, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, PrimaryNavbarVersion, RuntimeFilterOp, SageEmbed, SearchBarEmbed, SearchEmbed, SpotterAgentEmbed, SpotterEmbed, UIPassthroughEvent, createLiveboardWithAnswers, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout, prefetch, resetCachedAuthToken, tokenizedFetch, uploadMixpanelEvent };
|
|
21891
|
+
export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, BodylessConversation, ContextMenuTriggerOptions, ConversationEmbed, CustomActionTarget, CustomActionsPosition, DataPanelCustomColumnGroupsAccordionState$1 as DataPanelCustomColumnGroupsAccordionState, DataSourceVisualMode, EmbedEvent, HomeLeftNavItem, HomePage, HomePageSearchBarMode, HomepageModule, HostEvent, InterceptedApiType, ListPage, ListPageColumns, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, PrimaryNavbarVersion, RuntimeFilterOp, SageEmbed, SearchBarEmbed, SearchEmbed, SpotterAgentEmbed, SpotterEmbed, UIPassthroughEvent, createLiveboardWithAnswers, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout, prefetch, reloadIframe, resetCachedAuthToken, tokenizedFetch, uploadMixpanelEvent };
|
package/dist/tsembed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.44.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.44.1 */
|
|
2
2
|
'use client';
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -4465,6 +4465,46 @@
|
|
|
4465
4465
|
* @version SDK: 1.43.0 | ThoughtSpot Cloud: 10.15.0.cl
|
|
4466
4466
|
*/
|
|
4467
4467
|
Action["LiveboardStylePanel"] = "liveboardStylePanel";
|
|
4468
|
+
/**
|
|
4469
|
+
* The **Move to Group** menu action on a Liveboard.
|
|
4470
|
+
* Allows moving a visualization to a different group.
|
|
4471
|
+
* @example
|
|
4472
|
+
* ```js
|
|
4473
|
+
* disabledActions: [Action.MoveToGroup]
|
|
4474
|
+
* ```
|
|
4475
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
4476
|
+
*/
|
|
4477
|
+
Action["MoveToGroup"] = "moveToGroup";
|
|
4478
|
+
/**
|
|
4479
|
+
* The **Move out of Group** menu action on a Liveboard.
|
|
4480
|
+
* Allows moving a visualization out of a group.
|
|
4481
|
+
* @example
|
|
4482
|
+
* ```js
|
|
4483
|
+
* disabledActions: [Action.MoveOutOfGroup]
|
|
4484
|
+
* ```
|
|
4485
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
4486
|
+
*/
|
|
4487
|
+
Action["MoveOutOfGroup"] = "moveOutOfGroup";
|
|
4488
|
+
/**
|
|
4489
|
+
* The **Create Group** menu action on a Liveboard.
|
|
4490
|
+
* Allows creating a new group.
|
|
4491
|
+
* @example
|
|
4492
|
+
* ```js
|
|
4493
|
+
* disabledActions: [Action.CreateGroup]
|
|
4494
|
+
* ```
|
|
4495
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
4496
|
+
*/
|
|
4497
|
+
Action["CreateGroup"] = "createGroup";
|
|
4498
|
+
/**
|
|
4499
|
+
* The **Ungroup Liveboard Group** menu action on a Liveboard.
|
|
4500
|
+
* Allows ungrouping a liveboard group.
|
|
4501
|
+
* @example
|
|
4502
|
+
* ```js
|
|
4503
|
+
* disabledActions: [Action.UngroupLiveboardGroup]
|
|
4504
|
+
* ```
|
|
4505
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
4506
|
+
*/
|
|
4507
|
+
Action["UngroupLiveboardGroup"] = "ungroupLiveboardGroup";
|
|
4468
4508
|
})(exports.Action || (exports.Action = {}));
|
|
4469
4509
|
exports.PrefetchFeatures = void 0;
|
|
4470
4510
|
(function (PrefetchFeatures) {
|
|
@@ -17233,6 +17273,76 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17233
17273
|
};
|
|
17234
17274
|
}
|
|
17235
17275
|
|
|
17276
|
+
/**
|
|
17277
|
+
* Reloads the ThoughtSpot iframe.
|
|
17278
|
+
* @param iFrame
|
|
17279
|
+
*/
|
|
17280
|
+
const reload = (iFrame) => {
|
|
17281
|
+
const src = iFrame.src;
|
|
17282
|
+
iFrame.src = '';
|
|
17283
|
+
setTimeout(() => {
|
|
17284
|
+
iFrame.src = src;
|
|
17285
|
+
}, 100);
|
|
17286
|
+
};
|
|
17287
|
+
/**
|
|
17288
|
+
* Post iframe message.
|
|
17289
|
+
* @param iFrame
|
|
17290
|
+
* @param message
|
|
17291
|
+
* @param message.type
|
|
17292
|
+
* @param message.data
|
|
17293
|
+
* @param thoughtSpotHost
|
|
17294
|
+
* @param channel
|
|
17295
|
+
*/
|
|
17296
|
+
function postIframeMessage(iFrame, message, thoughtSpotHost, channel) {
|
|
17297
|
+
var _a;
|
|
17298
|
+
return (_a = iFrame.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage(message, thoughtSpotHost, [channel === null || channel === void 0 ? void 0 : channel.port2]);
|
|
17299
|
+
}
|
|
17300
|
+
const TRIGGER_TIMEOUT = 30000;
|
|
17301
|
+
/**
|
|
17302
|
+
*
|
|
17303
|
+
* @param iFrame
|
|
17304
|
+
* @param messageType
|
|
17305
|
+
* @param thoughtSpotHost
|
|
17306
|
+
* @param data
|
|
17307
|
+
*/
|
|
17308
|
+
function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
17309
|
+
return new Promise((res, rej) => {
|
|
17310
|
+
var _a;
|
|
17311
|
+
if (messageType === exports.HostEvent.Reload) {
|
|
17312
|
+
reload(iFrame);
|
|
17313
|
+
return res(null);
|
|
17314
|
+
}
|
|
17315
|
+
if (messageType === exports.HostEvent.Present) {
|
|
17316
|
+
const embedConfig = getEmbedConfig();
|
|
17317
|
+
const disableFullscreenPresentation = (_a = embedConfig === null || embedConfig === void 0 ? void 0 : embedConfig.disableFullscreenPresentation) !== null && _a !== void 0 ? _a : true;
|
|
17318
|
+
if (!disableFullscreenPresentation) {
|
|
17319
|
+
handlePresentEvent(iFrame);
|
|
17320
|
+
}
|
|
17321
|
+
else {
|
|
17322
|
+
logger$3.warn('Fullscreen presentation mode is disabled. Set disableFullscreenPresentation: false to enable this feature.');
|
|
17323
|
+
}
|
|
17324
|
+
}
|
|
17325
|
+
const channel = new MessageChannel();
|
|
17326
|
+
channel.port1.onmessage = ({ data: responseData }) => {
|
|
17327
|
+
var _a;
|
|
17328
|
+
channel.port1.close();
|
|
17329
|
+
const error = responseData.error || ((_a = responseData === null || responseData === void 0 ? void 0 : responseData.data) === null || _a === void 0 ? void 0 : _a.error);
|
|
17330
|
+
if (error) {
|
|
17331
|
+
rej(error);
|
|
17332
|
+
}
|
|
17333
|
+
else {
|
|
17334
|
+
res(responseData);
|
|
17335
|
+
}
|
|
17336
|
+
};
|
|
17337
|
+
// Close the messageChannel and resolve the promise if timeout.
|
|
17338
|
+
setTimeout(() => {
|
|
17339
|
+
channel.port1.close();
|
|
17340
|
+
res(new Error(ERROR_MESSAGE.TRIGGER_TIMED_OUT));
|
|
17341
|
+
}, TRIGGER_TIMEOUT);
|
|
17342
|
+
return postIframeMessage(iFrame, { type: messageType, data }, thoughtSpotHost, channel);
|
|
17343
|
+
});
|
|
17344
|
+
}
|
|
17345
|
+
|
|
17236
17346
|
/* eslint-disable camelcase */
|
|
17237
17347
|
/* eslint-disable import/no-mutable-exports */
|
|
17238
17348
|
/**
|
|
@@ -17578,6 +17688,19 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17578
17688
|
.catch((error) => {
|
|
17579
17689
|
throw error;
|
|
17580
17690
|
});
|
|
17691
|
+
};
|
|
17692
|
+
/**
|
|
17693
|
+
* Reloads the ThoughtSpot iframe.
|
|
17694
|
+
* @param iFrame
|
|
17695
|
+
* @group Global methods
|
|
17696
|
+
* @version SDK: 1.43.1
|
|
17697
|
+
*/
|
|
17698
|
+
const reloadIframe = (iFrame) => {
|
|
17699
|
+
if (!iFrame) {
|
|
17700
|
+
logger$3.warn('reloadIframe called with no iFrame element.');
|
|
17701
|
+
return;
|
|
17702
|
+
}
|
|
17703
|
+
reload(iFrame);
|
|
17581
17704
|
};
|
|
17582
17705
|
|
|
17583
17706
|
/**
|
|
@@ -17711,77 +17834,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17711
17834
|
return eventData;
|
|
17712
17835
|
}
|
|
17713
17836
|
|
|
17714
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.44.
|
|
17715
|
-
|
|
17716
|
-
/**
|
|
17717
|
-
* Reloads the ThoughtSpot iframe.
|
|
17718
|
-
* @param iFrame
|
|
17719
|
-
*/
|
|
17720
|
-
const reload = (iFrame) => {
|
|
17721
|
-
const src = iFrame.src;
|
|
17722
|
-
iFrame.src = '';
|
|
17723
|
-
setTimeout(() => {
|
|
17724
|
-
iFrame.src = src;
|
|
17725
|
-
}, 100);
|
|
17726
|
-
};
|
|
17727
|
-
/**
|
|
17728
|
-
* Post iframe message.
|
|
17729
|
-
* @param iFrame
|
|
17730
|
-
* @param message
|
|
17731
|
-
* @param message.type
|
|
17732
|
-
* @param message.data
|
|
17733
|
-
* @param thoughtSpotHost
|
|
17734
|
-
* @param channel
|
|
17735
|
-
*/
|
|
17736
|
-
function postIframeMessage(iFrame, message, thoughtSpotHost, channel) {
|
|
17737
|
-
var _a;
|
|
17738
|
-
return (_a = iFrame.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage(message, thoughtSpotHost, [channel === null || channel === void 0 ? void 0 : channel.port2]);
|
|
17739
|
-
}
|
|
17740
|
-
const TRIGGER_TIMEOUT = 30000;
|
|
17741
|
-
/**
|
|
17742
|
-
*
|
|
17743
|
-
* @param iFrame
|
|
17744
|
-
* @param messageType
|
|
17745
|
-
* @param thoughtSpotHost
|
|
17746
|
-
* @param data
|
|
17747
|
-
*/
|
|
17748
|
-
function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
17749
|
-
return new Promise((res, rej) => {
|
|
17750
|
-
var _a;
|
|
17751
|
-
if (messageType === exports.HostEvent.Reload) {
|
|
17752
|
-
reload(iFrame);
|
|
17753
|
-
return res(null);
|
|
17754
|
-
}
|
|
17755
|
-
if (messageType === exports.HostEvent.Present) {
|
|
17756
|
-
const embedConfig = getEmbedConfig();
|
|
17757
|
-
const disableFullscreenPresentation = (_a = embedConfig === null || embedConfig === void 0 ? void 0 : embedConfig.disableFullscreenPresentation) !== null && _a !== void 0 ? _a : true;
|
|
17758
|
-
if (!disableFullscreenPresentation) {
|
|
17759
|
-
handlePresentEvent(iFrame);
|
|
17760
|
-
}
|
|
17761
|
-
else {
|
|
17762
|
-
logger$3.warn('Fullscreen presentation mode is disabled. Set disableFullscreenPresentation: false to enable this feature.');
|
|
17763
|
-
}
|
|
17764
|
-
}
|
|
17765
|
-
const channel = new MessageChannel();
|
|
17766
|
-
channel.port1.onmessage = ({ data: responseData }) => {
|
|
17767
|
-
var _a;
|
|
17768
|
-
channel.port1.close();
|
|
17769
|
-
const error = responseData.error || ((_a = responseData === null || responseData === void 0 ? void 0 : responseData.data) === null || _a === void 0 ? void 0 : _a.error);
|
|
17770
|
-
if (error) {
|
|
17771
|
-
rej(error);
|
|
17772
|
-
}
|
|
17773
|
-
else {
|
|
17774
|
-
res(responseData);
|
|
17775
|
-
}
|
|
17776
|
-
};
|
|
17777
|
-
// Close the messageChannel and resolve the promise if timeout.
|
|
17778
|
-
setTimeout(() => {
|
|
17779
|
-
channel.port1.close();
|
|
17780
|
-
res(new Error(ERROR_MESSAGE.TRIGGER_TIMED_OUT));
|
|
17781
|
-
}, TRIGGER_TIMEOUT);
|
|
17782
|
-
return postIframeMessage(iFrame, { type: messageType, data }, thoughtSpotHost, channel);
|
|
17783
|
-
});
|
|
17784
|
-
}
|
|
17837
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.44.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p 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 is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.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};
|
|
17785
17838
|
|
|
17786
17839
|
class HostEventClient {
|
|
17787
17840
|
constructor(iFrame) {
|
|
@@ -29264,6 +29317,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
|
|
|
29264
29317
|
exports.init = init;
|
|
29265
29318
|
exports.logout = logout;
|
|
29266
29319
|
exports.prefetch = prefetch;
|
|
29320
|
+
exports.reloadIframe = reloadIframe;
|
|
29267
29321
|
exports.resetCachedAuthToken = resetCachedAuthToken;
|
|
29268
29322
|
exports.tokenizedFetch = tokenizedFetch;
|
|
29269
29323
|
exports.uploadMixpanelEvent = uploadMixpanelEvent;
|
|
@@ -1490,7 +1490,7 @@ export interface EmbedConfig {
|
|
|
1490
1490
|
* {
|
|
1491
1491
|
* name: 'customAction',
|
|
1492
1492
|
* id: 'customAction',
|
|
1493
|
-
* target: CustomActionTarget.
|
|
1493
|
+
* target: CustomActionTarget.VIZ,
|
|
1494
1494
|
* position: CustomActionPosition.PRIMARY,
|
|
1495
1495
|
* }
|
|
1496
1496
|
* }
|
|
@@ -1881,8 +1881,12 @@ export interface BaseViewConfig extends ApiInterceptFlags {
|
|
|
1881
1881
|
* Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterEmbed`
|
|
1882
1882
|
* @version SDK: 1.43.0 | ThoughtSpot: 10.14.0.cl
|
|
1883
1883
|
* @example
|
|
1884
|
-
* ```
|
|
1885
|
-
* import {
|
|
1884
|
+
* ```ts
|
|
1885
|
+
* import {
|
|
1886
|
+
* CustomActionPayload,
|
|
1887
|
+
* CustomActionPosition,
|
|
1888
|
+
* CustomActionTarget,
|
|
1889
|
+
* } from '@thoughtspot/visual-embed-sdk';
|
|
1886
1890
|
* // Use supported embed types such as AppEmbed or LiveboardEmbed
|
|
1887
1891
|
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
1888
1892
|
* ... // other embed config options
|
|
@@ -1890,12 +1894,17 @@ export interface BaseViewConfig extends ApiInterceptFlags {
|
|
|
1890
1894
|
* {
|
|
1891
1895
|
* name: 'customAction',
|
|
1892
1896
|
* id: 'customAction',
|
|
1893
|
-
* target: CustomActionTarget.
|
|
1897
|
+
* target: CustomActionTarget.VIZ,
|
|
1894
1898
|
* position: CustomActionPosition.PRIMARY,
|
|
1895
1899
|
* }
|
|
1896
1900
|
* }
|
|
1897
1901
|
* ]
|
|
1898
1902
|
* })
|
|
1903
|
+
*
|
|
1904
|
+
* // to trigger a custom flow on custom action click listen to Custom action embed event
|
|
1905
|
+
* embed.on(EmbedEvent.CustomAction, (payload: CustomActionPayload) => {
|
|
1906
|
+
* console.log('Custom Action event:', payload);
|
|
1907
|
+
* })
|
|
1899
1908
|
* ```
|
|
1900
1909
|
*/
|
|
1901
1910
|
customActions?: CustomAction[];
|
|
@@ -6509,7 +6518,47 @@ export declare enum Action {
|
|
|
6509
6518
|
* ```
|
|
6510
6519
|
* @version SDK: 1.43.0 | ThoughtSpot Cloud: 10.15.0.cl
|
|
6511
6520
|
*/
|
|
6512
|
-
LiveboardStylePanel = "liveboardStylePanel"
|
|
6521
|
+
LiveboardStylePanel = "liveboardStylePanel",
|
|
6522
|
+
/**
|
|
6523
|
+
* The **Move to Group** menu action on a Liveboard.
|
|
6524
|
+
* Allows moving a visualization to a different group.
|
|
6525
|
+
* @example
|
|
6526
|
+
* ```js
|
|
6527
|
+
* disabledActions: [Action.MoveToGroup]
|
|
6528
|
+
* ```
|
|
6529
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
6530
|
+
*/
|
|
6531
|
+
MoveToGroup = "moveToGroup",
|
|
6532
|
+
/**
|
|
6533
|
+
* The **Move out of Group** menu action on a Liveboard.
|
|
6534
|
+
* Allows moving a visualization out of a group.
|
|
6535
|
+
* @example
|
|
6536
|
+
* ```js
|
|
6537
|
+
* disabledActions: [Action.MoveOutOfGroup]
|
|
6538
|
+
* ```
|
|
6539
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
6540
|
+
*/
|
|
6541
|
+
MoveOutOfGroup = "moveOutOfGroup",
|
|
6542
|
+
/**
|
|
6543
|
+
* The **Create Group** menu action on a Liveboard.
|
|
6544
|
+
* Allows creating a new group.
|
|
6545
|
+
* @example
|
|
6546
|
+
* ```js
|
|
6547
|
+
* disabledActions: [Action.CreateGroup]
|
|
6548
|
+
* ```
|
|
6549
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
6550
|
+
*/
|
|
6551
|
+
CreateGroup = "createGroup",
|
|
6552
|
+
/**
|
|
6553
|
+
* The **Ungroup Liveboard Group** menu action on a Liveboard.
|
|
6554
|
+
* Allows ungrouping a liveboard group.
|
|
6555
|
+
* @example
|
|
6556
|
+
* ```js
|
|
6557
|
+
* disabledActions: [Action.UngroupLiveboardGroup]
|
|
6558
|
+
* ```
|
|
6559
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
6560
|
+
*/
|
|
6561
|
+
UngroupLiveboardGroup = "ungroupLiveboardGroup"
|
|
6513
6562
|
}
|
|
6514
6563
|
export declare enum PrefetchFeatures {
|
|
6515
6564
|
FullApp = "FullApp",
|
|
@@ -9362,6 +9411,13 @@ export declare const init: (embedConfig: EmbedConfig) => AuthEventEmitter;
|
|
|
9362
9411
|
* @group Global methods
|
|
9363
9412
|
*/
|
|
9364
9413
|
export declare const logout: (doNotDisableAutoLogin?: boolean) => Promise<boolean>;
|
|
9414
|
+
/**
|
|
9415
|
+
* Reloads the ThoughtSpot iframe.
|
|
9416
|
+
* @param iFrame
|
|
9417
|
+
* @group Global methods
|
|
9418
|
+
* @version SDK: 1.43.1
|
|
9419
|
+
*/
|
|
9420
|
+
export declare const reloadIframe: (iFrame: HTMLIFrameElement) => void;
|
|
9365
9421
|
export type SessionInfo = {
|
|
9366
9422
|
releaseVersion: string;
|
|
9367
9423
|
userGUID: string;
|