@thoughtspot/visual-embed-sdk 1.43.1 → 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/app.d.ts +15 -0
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +4 -1
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +20 -0
- package/cjs/src/embed/app.spec.js.map +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/embed/conversation.d.ts +15 -0
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +4 -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/embed/liveboard.d.ts +15 -0
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +4 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +22 -0
- package/cjs/src/embed/liveboard.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 +56 -6
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +41 -0
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-CpkMygsc.js → index-BE9gGzRX.js} +1 -1
- package/dist/src/embed/app.d.ts +15 -0
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts +7 -0
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +15 -0
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +15 -0
- package/dist/src/embed/liveboard.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 +56 -6
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +126 -76
- package/dist/tsembed-react.js +125 -75
- package/dist/tsembed.es.js +140 -77
- package/dist/tsembed.js +139 -75
- package/dist/visual-embed-sdk-react-full.d.ts +106 -5
- package/dist/visual-embed-sdk-react.d.ts +99 -5
- package/dist/visual-embed-sdk.d.ts +106 -5
- package/lib/package.json +1 -1
- package/lib/src/embed/app.d.ts +15 -0
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +5 -2
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +20 -0
- package/lib/src/embed/app.spec.js.map +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/embed/conversation.d.ts +15 -0
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +4 -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/embed/liveboard.d.ts +15 -0
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +4 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +22 -0
- package/lib/src/embed/liveboard.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 +56 -6
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +41 -0
- package/lib/src/types.js.map +1 -1
- package/package.json +1 -1
- package/src/embed/app.spec.ts +30 -2
- package/src/embed/app.ts +43 -22
- package/src/embed/base.spec.ts +28 -0
- package/src/embed/base.ts +15 -0
- package/src/embed/conversation.spec.ts +32 -0
- package/src/embed/conversation.ts +21 -0
- package/src/embed/liveboard.spec.ts +29 -0
- package/src/embed/liveboard.ts +19 -0
- package/src/index.ts +2 -0
- package/src/react/all-types-export.ts +1 -0
- package/src/types.ts +54 -5
package/dist/tsembed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.
|
|
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) :
|
|
@@ -3150,6 +3150,7 @@
|
|
|
3150
3150
|
Param["isCentralizedLiveboardFilterUXEnabled"] = "isCentralizedLiveboardFilterUXEnabled";
|
|
3151
3151
|
Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
|
|
3152
3152
|
Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
|
|
3153
|
+
Param["UpdatedSpotterChatPrompt"] = "updatedSpotterChatPrompt";
|
|
3153
3154
|
})(Param || (Param = {}));
|
|
3154
3155
|
/**
|
|
3155
3156
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -4464,6 +4465,46 @@
|
|
|
4464
4465
|
* @version SDK: 1.43.0 | ThoughtSpot Cloud: 10.15.0.cl
|
|
4465
4466
|
*/
|
|
4466
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";
|
|
4467
4508
|
})(exports.Action || (exports.Action = {}));
|
|
4468
4509
|
exports.PrefetchFeatures = void 0;
|
|
4469
4510
|
(function (PrefetchFeatures) {
|
|
@@ -17232,6 +17273,76 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17232
17273
|
};
|
|
17233
17274
|
}
|
|
17234
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
|
+
|
|
17235
17346
|
/* eslint-disable camelcase */
|
|
17236
17347
|
/* eslint-disable import/no-mutable-exports */
|
|
17237
17348
|
/**
|
|
@@ -17577,6 +17688,19 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17577
17688
|
.catch((error) => {
|
|
17578
17689
|
throw error;
|
|
17579
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);
|
|
17580
17704
|
};
|
|
17581
17705
|
|
|
17582
17706
|
/**
|
|
@@ -17710,77 +17834,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17710
17834
|
return eventData;
|
|
17711
17835
|
}
|
|
17712
17836
|
|
|
17713
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.
|
|
17714
|
-
|
|
17715
|
-
/**
|
|
17716
|
-
* Reloads the ThoughtSpot iframe.
|
|
17717
|
-
* @param iFrame
|
|
17718
|
-
*/
|
|
17719
|
-
const reload = (iFrame) => {
|
|
17720
|
-
const src = iFrame.src;
|
|
17721
|
-
iFrame.src = '';
|
|
17722
|
-
setTimeout(() => {
|
|
17723
|
-
iFrame.src = src;
|
|
17724
|
-
}, 100);
|
|
17725
|
-
};
|
|
17726
|
-
/**
|
|
17727
|
-
* Post iframe message.
|
|
17728
|
-
* @param iFrame
|
|
17729
|
-
* @param message
|
|
17730
|
-
* @param message.type
|
|
17731
|
-
* @param message.data
|
|
17732
|
-
* @param thoughtSpotHost
|
|
17733
|
-
* @param channel
|
|
17734
|
-
*/
|
|
17735
|
-
function postIframeMessage(iFrame, message, thoughtSpotHost, channel) {
|
|
17736
|
-
var _a;
|
|
17737
|
-
return (_a = iFrame.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage(message, thoughtSpotHost, [channel === null || channel === void 0 ? void 0 : channel.port2]);
|
|
17738
|
-
}
|
|
17739
|
-
const TRIGGER_TIMEOUT = 30000;
|
|
17740
|
-
/**
|
|
17741
|
-
*
|
|
17742
|
-
* @param iFrame
|
|
17743
|
-
* @param messageType
|
|
17744
|
-
* @param thoughtSpotHost
|
|
17745
|
-
* @param data
|
|
17746
|
-
*/
|
|
17747
|
-
function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
17748
|
-
return new Promise((res, rej) => {
|
|
17749
|
-
var _a;
|
|
17750
|
-
if (messageType === exports.HostEvent.Reload) {
|
|
17751
|
-
reload(iFrame);
|
|
17752
|
-
return res(null);
|
|
17753
|
-
}
|
|
17754
|
-
if (messageType === exports.HostEvent.Present) {
|
|
17755
|
-
const embedConfig = getEmbedConfig();
|
|
17756
|
-
const disableFullscreenPresentation = (_a = embedConfig === null || embedConfig === void 0 ? void 0 : embedConfig.disableFullscreenPresentation) !== null && _a !== void 0 ? _a : true;
|
|
17757
|
-
if (!disableFullscreenPresentation) {
|
|
17758
|
-
handlePresentEvent(iFrame);
|
|
17759
|
-
}
|
|
17760
|
-
else {
|
|
17761
|
-
logger$3.warn('Fullscreen presentation mode is disabled. Set disableFullscreenPresentation: false to enable this feature.');
|
|
17762
|
-
}
|
|
17763
|
-
}
|
|
17764
|
-
const channel = new MessageChannel();
|
|
17765
|
-
channel.port1.onmessage = ({ data: responseData }) => {
|
|
17766
|
-
var _a;
|
|
17767
|
-
channel.port1.close();
|
|
17768
|
-
const error = responseData.error || ((_a = responseData === null || responseData === void 0 ? void 0 : responseData.data) === null || _a === void 0 ? void 0 : _a.error);
|
|
17769
|
-
if (error) {
|
|
17770
|
-
rej(error);
|
|
17771
|
-
}
|
|
17772
|
-
else {
|
|
17773
|
-
res(responseData);
|
|
17774
|
-
}
|
|
17775
|
-
};
|
|
17776
|
-
// Close the messageChannel and resolve the promise if timeout.
|
|
17777
|
-
setTimeout(() => {
|
|
17778
|
-
channel.port1.close();
|
|
17779
|
-
res(new Error(ERROR_MESSAGE.TRIGGER_TIMED_OUT));
|
|
17780
|
-
}, TRIGGER_TIMEOUT);
|
|
17781
|
-
return postIframeMessage(iFrame, { type: messageType, data }, thoughtSpotHost, channel);
|
|
17782
|
-
});
|
|
17783
|
-
}
|
|
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};
|
|
17784
17838
|
|
|
17785
17839
|
class HostEventClient {
|
|
17786
17840
|
constructor(iFrame) {
|
|
@@ -19646,7 +19700,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
19646
19700
|
* embedded Liveboard or visualization.
|
|
19647
19701
|
*/
|
|
19648
19702
|
getEmbedParams() {
|
|
19649
|
-
const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = exports.DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, liveboardXLSXCSVDownload, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, } = this.viewConfig;
|
|
19703
|
+
const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = exports.DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, liveboardXLSXCSVDownload, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, } = this.viewConfig;
|
|
19650
19704
|
let params = {};
|
|
19651
19705
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
19652
19706
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -19665,6 +19719,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
19665
19719
|
params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
|
|
19666
19720
|
params[Param.CoverAndFilterOptionInPDF] = !!coverAndFilterOptionInPDF;
|
|
19667
19721
|
params = this.getBaseQueryParams(params);
|
|
19722
|
+
if (!isUndefined$1(updatedSpotterChatPrompt)) {
|
|
19723
|
+
params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
|
|
19724
|
+
}
|
|
19668
19725
|
if (hideObjectSearch) {
|
|
19669
19726
|
params[Param.HideObjectSearch] = !!hideObjectSearch;
|
|
19670
19727
|
}
|
|
@@ -20077,7 +20134,7 @@ query GetEurekaVizSnapshots(
|
|
|
20077
20134
|
getEmbedParamsObject() {
|
|
20078
20135
|
let params = {};
|
|
20079
20136
|
params = this.getBaseQueryParams(params);
|
|
20080
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, liveboardXLSXCSVDownload, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, showSpotterLimitations, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, } = this.viewConfig;
|
|
20137
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, liveboardXLSXCSVDownload, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, showSpotterLimitations, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, } = this.viewConfig;
|
|
20081
20138
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
20082
20139
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
20083
20140
|
if (fullHeight === true) {
|
|
@@ -20096,6 +20153,9 @@ query GetEurekaVizSnapshots(
|
|
|
20096
20153
|
if (preventLiveboardFilterRemoval) {
|
|
20097
20154
|
params[Param.preventLiveboardFilterRemoval] = true;
|
|
20098
20155
|
}
|
|
20156
|
+
if (!isUndefined$1(updatedSpotterChatPrompt)) {
|
|
20157
|
+
params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
|
|
20158
|
+
}
|
|
20099
20159
|
if (visibleVizs) {
|
|
20100
20160
|
params[Param.visibleVizs] = visibleVizs;
|
|
20101
20161
|
}
|
|
@@ -21146,7 +21206,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
21146
21206
|
this.viewConfig = viewConfig;
|
|
21147
21207
|
}
|
|
21148
21208
|
getEmbedParamsObject() {
|
|
21149
|
-
const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, enablePastConversationsSidebar, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, } = this.viewConfig;
|
|
21209
|
+
const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, enablePastConversationsSidebar, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, } = this.viewConfig;
|
|
21150
21210
|
if (!worksheetId) {
|
|
21151
21211
|
this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
|
|
21152
21212
|
}
|
|
@@ -21167,6 +21227,9 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
21167
21227
|
if (!isUndefined_1(hideSampleQuestions)) {
|
|
21168
21228
|
queryParams[Param.HideSampleQuestions] = !!hideSampleQuestions;
|
|
21169
21229
|
}
|
|
21230
|
+
if (!isUndefined_1(updatedSpotterChatPrompt)) {
|
|
21231
|
+
queryParams[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
|
|
21232
|
+
}
|
|
21170
21233
|
return queryParams;
|
|
21171
21234
|
}
|
|
21172
21235
|
getIframeSrc() {
|
|
@@ -29254,6 +29317,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
|
|
|
29254
29317
|
exports.init = init;
|
|
29255
29318
|
exports.logout = logout;
|
|
29256
29319
|
exports.prefetch = prefetch;
|
|
29320
|
+
exports.reloadIframe = reloadIframe;
|
|
29257
29321
|
exports.resetCachedAuthToken = resetCachedAuthToken;
|
|
29258
29322
|
exports.tokenizedFetch = tokenizedFetch;
|
|
29259
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",
|
|
@@ -8529,6 +8578,21 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
8529
8578
|
* @version SDK: 1.40.0 | ThoughtSpot:10.12.0.cl
|
|
8530
8579
|
*/
|
|
8531
8580
|
lazyLoadingMargin?: string;
|
|
8581
|
+
/**
|
|
8582
|
+
* updatedSpotterChatPrompt : Controls the updated spotter chat prompt.
|
|
8583
|
+
*
|
|
8584
|
+
* Supported embed types: `AppEmbed`
|
|
8585
|
+
* @default false
|
|
8586
|
+
* @example
|
|
8587
|
+
* ```js
|
|
8588
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
8589
|
+
* ... //other embed view config
|
|
8590
|
+
* updatedSpotterChatPrompt : true,
|
|
8591
|
+
* })
|
|
8592
|
+
* ```
|
|
8593
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
8594
|
+
*/
|
|
8595
|
+
updatedSpotterChatPrompt?: boolean;
|
|
8532
8596
|
}
|
|
8533
8597
|
declare class AppEmbed extends V1Embed {
|
|
8534
8598
|
protected viewConfig: AppViewConfig;
|
|
@@ -8964,6 +9028,21 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
|
|
|
8964
9028
|
* @version SDK: 1.41.1 | ThoughtSpot: 10.5.0.cl
|
|
8965
9029
|
*/
|
|
8966
9030
|
showSpotterLimitations?: boolean;
|
|
9031
|
+
/**
|
|
9032
|
+
* updatedSpotterChatPrompt : Controls the updated spotter chat prompt.
|
|
9033
|
+
*
|
|
9034
|
+
* Supported embed types: `LiveboardEmbed`
|
|
9035
|
+
* @default false
|
|
9036
|
+
* @example
|
|
9037
|
+
* ```js
|
|
9038
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
9039
|
+
* ... //other embed view config
|
|
9040
|
+
* updatedSpotterChatPrompt : true,
|
|
9041
|
+
* })
|
|
9042
|
+
* ```
|
|
9043
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
9044
|
+
*/
|
|
9045
|
+
updatedSpotterChatPrompt?: boolean;
|
|
8967
9046
|
}
|
|
8968
9047
|
declare class LiveboardEmbed extends V1Embed {
|
|
8969
9048
|
protected viewConfig: LiveboardViewConfig;
|
|
@@ -9251,6 +9330,21 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, "primaryAct
|
|
|
9251
9330
|
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
9252
9331
|
*/
|
|
9253
9332
|
enablePastConversationsSidebar?: boolean;
|
|
9333
|
+
/**
|
|
9334
|
+
* updatedSpotterChatPrompt : Controls the updated spotter chat prompt.
|
|
9335
|
+
*
|
|
9336
|
+
* Supported embed types: `SpotterEmbed`
|
|
9337
|
+
* @default false
|
|
9338
|
+
* @example
|
|
9339
|
+
* ```js
|
|
9340
|
+
* const embed = new SpotterEmbed('#tsEmbed', {
|
|
9341
|
+
* ... //other embed view config
|
|
9342
|
+
* updatedSpotterChatPrompt : true,
|
|
9343
|
+
* })
|
|
9344
|
+
* ```
|
|
9345
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
9346
|
+
*/
|
|
9347
|
+
updatedSpotterChatPrompt?: boolean;
|
|
9254
9348
|
}
|
|
9255
9349
|
/**
|
|
9256
9350
|
* The configuration for the embedded spotterEmbed options.
|
|
@@ -9317,6 +9411,13 @@ export declare const init: (embedConfig: EmbedConfig) => AuthEventEmitter;
|
|
|
9317
9411
|
* @group Global methods
|
|
9318
9412
|
*/
|
|
9319
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;
|
|
9320
9421
|
export type SessionInfo = {
|
|
9321
9422
|
releaseVersion: string;
|
|
9322
9423
|
userGUID: string;
|
|
@@ -1493,7 +1493,7 @@ export interface EmbedConfig {
|
|
|
1493
1493
|
* {
|
|
1494
1494
|
* name: 'customAction',
|
|
1495
1495
|
* id: 'customAction',
|
|
1496
|
-
* target: CustomActionTarget.
|
|
1496
|
+
* target: CustomActionTarget.VIZ,
|
|
1497
1497
|
* position: CustomActionPosition.PRIMARY,
|
|
1498
1498
|
* }
|
|
1499
1499
|
* }
|
|
@@ -1884,8 +1884,12 @@ export interface BaseViewConfig extends ApiInterceptFlags {
|
|
|
1884
1884
|
* Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterEmbed`
|
|
1885
1885
|
* @version SDK: 1.43.0 | ThoughtSpot: 10.14.0.cl
|
|
1886
1886
|
* @example
|
|
1887
|
-
* ```
|
|
1888
|
-
* import {
|
|
1887
|
+
* ```ts
|
|
1888
|
+
* import {
|
|
1889
|
+
* CustomActionPayload,
|
|
1890
|
+
* CustomActionPosition,
|
|
1891
|
+
* CustomActionTarget,
|
|
1892
|
+
* } from '@thoughtspot/visual-embed-sdk';
|
|
1889
1893
|
* // Use supported embed types such as AppEmbed or LiveboardEmbed
|
|
1890
1894
|
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
1891
1895
|
* ... // other embed config options
|
|
@@ -1893,12 +1897,17 @@ export interface BaseViewConfig extends ApiInterceptFlags {
|
|
|
1893
1897
|
* {
|
|
1894
1898
|
* name: 'customAction',
|
|
1895
1899
|
* id: 'customAction',
|
|
1896
|
-
* target: CustomActionTarget.
|
|
1900
|
+
* target: CustomActionTarget.VIZ,
|
|
1897
1901
|
* position: CustomActionPosition.PRIMARY,
|
|
1898
1902
|
* }
|
|
1899
1903
|
* }
|
|
1900
1904
|
* ]
|
|
1901
1905
|
* })
|
|
1906
|
+
*
|
|
1907
|
+
* // to trigger a custom flow on custom action click listen to Custom action embed event
|
|
1908
|
+
* embed.on(EmbedEvent.CustomAction, (payload: CustomActionPayload) => {
|
|
1909
|
+
* console.log('Custom Action event:', payload);
|
|
1910
|
+
* })
|
|
1902
1911
|
* ```
|
|
1903
1912
|
*/
|
|
1904
1913
|
customActions?: CustomAction[];
|
|
@@ -6506,7 +6515,47 @@ export declare enum Action {
|
|
|
6506
6515
|
* ```
|
|
6507
6516
|
* @version SDK: 1.43.0 | ThoughtSpot Cloud: 10.15.0.cl
|
|
6508
6517
|
*/
|
|
6509
|
-
LiveboardStylePanel = "liveboardStylePanel"
|
|
6518
|
+
LiveboardStylePanel = "liveboardStylePanel",
|
|
6519
|
+
/**
|
|
6520
|
+
* The **Move to Group** menu action on a Liveboard.
|
|
6521
|
+
* Allows moving a visualization to a different group.
|
|
6522
|
+
* @example
|
|
6523
|
+
* ```js
|
|
6524
|
+
* disabledActions: [Action.MoveToGroup]
|
|
6525
|
+
* ```
|
|
6526
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
6527
|
+
*/
|
|
6528
|
+
MoveToGroup = "moveToGroup",
|
|
6529
|
+
/**
|
|
6530
|
+
* The **Move out of Group** menu action on a Liveboard.
|
|
6531
|
+
* Allows moving a visualization out of a group.
|
|
6532
|
+
* @example
|
|
6533
|
+
* ```js
|
|
6534
|
+
* disabledActions: [Action.MoveOutOfGroup]
|
|
6535
|
+
* ```
|
|
6536
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
6537
|
+
*/
|
|
6538
|
+
MoveOutOfGroup = "moveOutOfGroup",
|
|
6539
|
+
/**
|
|
6540
|
+
* The **Create Group** menu action on a Liveboard.
|
|
6541
|
+
* Allows creating a new group.
|
|
6542
|
+
* @example
|
|
6543
|
+
* ```js
|
|
6544
|
+
* disabledActions: [Action.CreateGroup]
|
|
6545
|
+
* ```
|
|
6546
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
6547
|
+
*/
|
|
6548
|
+
CreateGroup = "createGroup",
|
|
6549
|
+
/**
|
|
6550
|
+
* The **Ungroup Liveboard Group** menu action on a Liveboard.
|
|
6551
|
+
* Allows ungrouping a liveboard group.
|
|
6552
|
+
* @example
|
|
6553
|
+
* ```js
|
|
6554
|
+
* disabledActions: [Action.UngroupLiveboardGroup]
|
|
6555
|
+
* ```
|
|
6556
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
6557
|
+
*/
|
|
6558
|
+
UngroupLiveboardGroup = "ungroupLiveboardGroup"
|
|
6510
6559
|
}
|
|
6511
6560
|
declare enum ContextMenuTriggerOptions {
|
|
6512
6561
|
LEFT_CLICK = "left-click",
|
|
@@ -8503,6 +8552,21 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
8503
8552
|
* @version SDK: 1.40.0 | ThoughtSpot:10.12.0.cl
|
|
8504
8553
|
*/
|
|
8505
8554
|
lazyLoadingMargin?: string;
|
|
8555
|
+
/**
|
|
8556
|
+
* updatedSpotterChatPrompt : Controls the updated spotter chat prompt.
|
|
8557
|
+
*
|
|
8558
|
+
* Supported embed types: `AppEmbed`
|
|
8559
|
+
* @default false
|
|
8560
|
+
* @example
|
|
8561
|
+
* ```js
|
|
8562
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
8563
|
+
* ... //other embed view config
|
|
8564
|
+
* updatedSpotterChatPrompt : true,
|
|
8565
|
+
* })
|
|
8566
|
+
* ```
|
|
8567
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
8568
|
+
*/
|
|
8569
|
+
updatedSpotterChatPrompt?: boolean;
|
|
8506
8570
|
}
|
|
8507
8571
|
declare class AppEmbed extends V1Embed {
|
|
8508
8572
|
protected viewConfig: AppViewConfig;
|
|
@@ -8938,6 +9002,21 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
|
|
|
8938
9002
|
* @version SDK: 1.41.1 | ThoughtSpot: 10.5.0.cl
|
|
8939
9003
|
*/
|
|
8940
9004
|
showSpotterLimitations?: boolean;
|
|
9005
|
+
/**
|
|
9006
|
+
* updatedSpotterChatPrompt : Controls the updated spotter chat prompt.
|
|
9007
|
+
*
|
|
9008
|
+
* Supported embed types: `LiveboardEmbed`
|
|
9009
|
+
* @default false
|
|
9010
|
+
* @example
|
|
9011
|
+
* ```js
|
|
9012
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
9013
|
+
* ... //other embed view config
|
|
9014
|
+
* updatedSpotterChatPrompt : true,
|
|
9015
|
+
* })
|
|
9016
|
+
* ```
|
|
9017
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
9018
|
+
*/
|
|
9019
|
+
updatedSpotterChatPrompt?: boolean;
|
|
8941
9020
|
}
|
|
8942
9021
|
declare class LiveboardEmbed extends V1Embed {
|
|
8943
9022
|
protected viewConfig: LiveboardViewConfig;
|
|
@@ -9220,6 +9299,21 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, "primaryAct
|
|
|
9220
9299
|
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
9221
9300
|
*/
|
|
9222
9301
|
enablePastConversationsSidebar?: boolean;
|
|
9302
|
+
/**
|
|
9303
|
+
* updatedSpotterChatPrompt : Controls the updated spotter chat prompt.
|
|
9304
|
+
*
|
|
9305
|
+
* Supported embed types: `SpotterEmbed`
|
|
9306
|
+
* @default false
|
|
9307
|
+
* @example
|
|
9308
|
+
* ```js
|
|
9309
|
+
* const embed = new SpotterEmbed('#tsEmbed', {
|
|
9310
|
+
* ... //other embed view config
|
|
9311
|
+
* updatedSpotterChatPrompt : true,
|
|
9312
|
+
* })
|
|
9313
|
+
* ```
|
|
9314
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
9315
|
+
*/
|
|
9316
|
+
updatedSpotterChatPrompt?: boolean;
|
|
9223
9317
|
}
|
|
9224
9318
|
/**
|
|
9225
9319
|
* The configuration for the embedded spotterEmbed options.
|