@thoughtspot/visual-embed-sdk 1.33.10 → 1.33.12
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 +2 -2
- package/cjs/src/embed/conversation.d.ts +0 -2
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.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/types.d.ts +30 -6
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +29 -4
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/processTrigger.d.ts.map +1 -1
- package/cjs/src/utils/processTrigger.js +4 -2
- package/cjs/src/utils/processTrigger.js.map +1 -1
- package/dist/{index-HiSgAoIA.js → index-DgCGXqKb.js} +1 -1
- package/dist/src/embed/conversation.d.ts +0 -2
- package/dist/src/embed/conversation.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/types.d.ts +30 -6
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/processTrigger.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +36 -9
- package/dist/tsembed-react.js +35 -8
- package/dist/tsembed.es.js +37 -10
- package/dist/tsembed.js +37 -10
- package/dist/visual-embed-sdk-react-full.d.ts +31 -9
- package/dist/visual-embed-sdk-react.d.ts +31 -9
- package/dist/visual-embed-sdk.d.ts +31 -9
- package/lib/package.json +2 -2
- package/lib/src/embed/conversation.d.ts +0 -2
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.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/types.d.ts +30 -6
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +29 -4
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/processTrigger.d.ts.map +1 -1
- package/lib/src/utils/processTrigger.js +4 -2
- package/lib/src/utils/processTrigger.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +32 -10
- package/package.json +2 -2
- package/src/embed/conversation.ts +0 -2
- package/src/index.ts +4 -1
- package/src/types.ts +32 -5
- package/src/utils/processTrigger.ts +3 -2
package/dist/tsembed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.33.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.33.12 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -1773,7 +1773,6 @@
|
|
|
1773
1773
|
* Get iframe URL for the current embed view on the playground.
|
|
1774
1774
|
* Developers can use this URL to embed a ThoughtSpot object
|
|
1775
1775
|
* in apps like Salesforce or Sharepoint.
|
|
1776
|
-
*
|
|
1777
1776
|
* @example
|
|
1778
1777
|
* ```js
|
|
1779
1778
|
* const url = embed.trigger(HostEvent.GetIframeUrl);
|
|
@@ -1896,7 +1895,6 @@
|
|
|
1896
1895
|
* sorting, toggling of legends, and data drill down.
|
|
1897
1896
|
* For more information, see
|
|
1898
1897
|
* link:https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#transient-lb-content[Liveboard data with unsaved changes].
|
|
1899
|
-
*
|
|
1900
1898
|
* @example
|
|
1901
1899
|
* ```js
|
|
1902
1900
|
* liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard).then(
|
|
@@ -3745,7 +3743,7 @@
|
|
|
3745
3743
|
* Action ID for hide/disable reset button in spotter
|
|
3746
3744
|
* @example
|
|
3747
3745
|
* ```js
|
|
3748
|
-
* hiddenAction: [Action.
|
|
3746
|
+
* hiddenAction: [Action.ResetSpotterChat]
|
|
3749
3747
|
* ```
|
|
3750
3748
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
3751
3749
|
*/
|
|
@@ -3754,11 +3752,38 @@
|
|
|
3754
3752
|
* Action ID for hide/disable feedback in spotter
|
|
3755
3753
|
* @example
|
|
3756
3754
|
* ```js
|
|
3757
|
-
* hiddenAction: [Action.
|
|
3755
|
+
* hiddenAction: [Action.SpotterFeedback]
|
|
3758
3756
|
* ```
|
|
3759
3757
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
3760
3758
|
*/
|
|
3761
3759
|
Action["SpotterFeedback"] = "spotterFeedback";
|
|
3760
|
+
/**
|
|
3761
|
+
* Action ID for hide/disable editing previous prompt in spotter
|
|
3762
|
+
* @example
|
|
3763
|
+
* ```js
|
|
3764
|
+
* hiddenAction: [Action.EditPreviousPrompt]
|
|
3765
|
+
* ```
|
|
3766
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
3767
|
+
*/
|
|
3768
|
+
Action["EditPreviousPrompt"] = "editPreviousPrompt";
|
|
3769
|
+
/**
|
|
3770
|
+
* Action ID for hide/disable deleting previous prompt in spotter
|
|
3771
|
+
* @example
|
|
3772
|
+
* ```js
|
|
3773
|
+
* hiddenAction: [Action.DeletePreviousPrompt]
|
|
3774
|
+
* ```
|
|
3775
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
3776
|
+
*/
|
|
3777
|
+
Action["DeletePreviousPrompt"] = "deletePreviousPrompt";
|
|
3778
|
+
/**
|
|
3779
|
+
* Action ID for hide/disable edit of tokens on spotter results.
|
|
3780
|
+
* @example
|
|
3781
|
+
* ```js
|
|
3782
|
+
* hiddenAction: [Action.EditTokens]
|
|
3783
|
+
* ```
|
|
3784
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
3785
|
+
*/
|
|
3786
|
+
Action["EditTokens"] = "editTokens";
|
|
3762
3787
|
})(exports.Action || (exports.Action = {}));
|
|
3763
3788
|
exports.PrefetchFeatures = void 0;
|
|
3764
3789
|
(function (PrefetchFeatures) {
|
|
@@ -14755,9 +14780,11 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14755
14780
|
}
|
|
14756
14781
|
const channel = new MessageChannel();
|
|
14757
14782
|
channel.port1.onmessage = ({ data: responseData }) => {
|
|
14783
|
+
var _a;
|
|
14758
14784
|
channel.port1.close();
|
|
14759
|
-
|
|
14760
|
-
|
|
14785
|
+
const error = responseData.error || ((_a = responseData === null || responseData === void 0 ? void 0 : responseData.data) === null || _a === void 0 ? void 0 : _a.error);
|
|
14786
|
+
if (error) {
|
|
14787
|
+
rej(error);
|
|
14761
14788
|
}
|
|
14762
14789
|
else {
|
|
14763
14790
|
res(responseData);
|
|
@@ -14772,7 +14799,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14772
14799
|
});
|
|
14773
14800
|
}
|
|
14774
14801
|
|
|
14775
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.
|
|
14802
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.12";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:"31 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
|
|
14776
14803
|
|
|
14777
14804
|
/**
|
|
14778
14805
|
* Copyright (c) 2022
|
|
@@ -15882,12 +15909,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15882
15909
|
*/
|
|
15883
15910
|
DataPanelCustomColumnGroupsAccordionState["EXPAND_FIRST"] = "EXPAND_FIRST";
|
|
15884
15911
|
})(DataPanelCustomColumnGroupsAccordionState$1 || (DataPanelCustomColumnGroupsAccordionState$1 = {}));
|
|
15885
|
-
|
|
15912
|
+
exports.HomePageSearchBarMode = void 0;
|
|
15886
15913
|
(function (HomePageSearchBarMode) {
|
|
15887
15914
|
HomePageSearchBarMode["OBJECT_SEARCH"] = "objectSearch";
|
|
15888
15915
|
HomePageSearchBarMode["AI_ANSWER"] = "aiAnswer";
|
|
15889
15916
|
HomePageSearchBarMode["NONE"] = "none";
|
|
15890
|
-
})(HomePageSearchBarMode || (HomePageSearchBarMode = {}));
|
|
15917
|
+
})(exports.HomePageSearchBarMode || (exports.HomePageSearchBarMode = {}));
|
|
15891
15918
|
/**
|
|
15892
15919
|
* Embeds full ThoughtSpot experience in a host application.
|
|
15893
15920
|
* @group Embed components
|
|
@@ -259,7 +259,7 @@ export function useEmbedRef<T extends EmbedComponent>(): React.MutableRefObject<
|
|
|
259
259
|
* @summary ThoughtSpot Visual Embed SDK
|
|
260
260
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
261
261
|
*/
|
|
262
|
-
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, BodylessConversation, BodylessConversationViewConfig, ConversationEmbed, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
|
|
262
|
+
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, BodylessConversation, BodylessConversationViewConfig, ConversationEmbed, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, HomePageSearchBarMode, VizPoint, CustomActionPayload, };
|
|
263
263
|
|
|
264
264
|
/**
|
|
265
265
|
* @group Embed components
|
|
@@ -1708,7 +1708,6 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
1708
1708
|
* disableSourceSelection : true,
|
|
1709
1709
|
* })
|
|
1710
1710
|
* ```
|
|
1711
|
-
*
|
|
1712
1711
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
1713
1712
|
*/
|
|
1714
1713
|
disableSourceSelection?: boolean;
|
|
@@ -1721,7 +1720,6 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
1721
1720
|
* hideSourceSelection : true,
|
|
1722
1721
|
* })
|
|
1723
1722
|
* ```
|
|
1724
|
-
*
|
|
1725
1723
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
1726
1724
|
*/
|
|
1727
1725
|
hideSourceSelection?: boolean;
|
|
@@ -3228,7 +3226,6 @@ export interface ViewConfig {
|
|
|
3228
3226
|
overrideOrgId?: number;
|
|
3229
3227
|
/**
|
|
3230
3228
|
* Flag to control new flip tooltip context menu experience
|
|
3231
|
-
*
|
|
3232
3229
|
* @default false
|
|
3233
3230
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
3234
3231
|
*/
|
|
@@ -4526,7 +4523,6 @@ export declare enum HostEvent {
|
|
|
4526
4523
|
* Get iframe URL for the current embed view on the playground.
|
|
4527
4524
|
* Developers can use this URL to embed a ThoughtSpot object
|
|
4528
4525
|
* in apps like Salesforce or Sharepoint.
|
|
4529
|
-
*
|
|
4530
4526
|
* @example
|
|
4531
4527
|
* ```js
|
|
4532
4528
|
* const url = embed.trigger(HostEvent.GetIframeUrl);
|
|
@@ -4649,7 +4645,6 @@ export declare enum HostEvent {
|
|
|
4649
4645
|
* sorting, toggling of legends, and data drill down.
|
|
4650
4646
|
* For more information, see
|
|
4651
4647
|
* link:https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#transient-lb-content[Liveboard data with unsaved changes].
|
|
4652
|
-
*
|
|
4653
4648
|
* @example
|
|
4654
4649
|
* ```js
|
|
4655
4650
|
* liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard).then(
|
|
@@ -6491,7 +6486,7 @@ export declare enum Action {
|
|
|
6491
6486
|
* Action ID for hide/disable reset button in spotter
|
|
6492
6487
|
* @example
|
|
6493
6488
|
* ```js
|
|
6494
|
-
* hiddenAction: [Action.
|
|
6489
|
+
* hiddenAction: [Action.ResetSpotterChat]
|
|
6495
6490
|
* ```
|
|
6496
6491
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
6497
6492
|
*/
|
|
@@ -6500,11 +6495,38 @@ export declare enum Action {
|
|
|
6500
6495
|
* Action ID for hide/disable feedback in spotter
|
|
6501
6496
|
* @example
|
|
6502
6497
|
* ```js
|
|
6503
|
-
* hiddenAction: [Action.
|
|
6498
|
+
* hiddenAction: [Action.SpotterFeedback]
|
|
6499
|
+
* ```
|
|
6500
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
6501
|
+
*/
|
|
6502
|
+
SpotterFeedback = "spotterFeedback",
|
|
6503
|
+
/**
|
|
6504
|
+
* Action ID for hide/disable editing previous prompt in spotter
|
|
6505
|
+
* @example
|
|
6506
|
+
* ```js
|
|
6507
|
+
* hiddenAction: [Action.EditPreviousPrompt]
|
|
6508
|
+
* ```
|
|
6509
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
6510
|
+
*/
|
|
6511
|
+
EditPreviousPrompt = "editPreviousPrompt",
|
|
6512
|
+
/**
|
|
6513
|
+
* Action ID for hide/disable deleting previous prompt in spotter
|
|
6514
|
+
* @example
|
|
6515
|
+
* ```js
|
|
6516
|
+
* hiddenAction: [Action.DeletePreviousPrompt]
|
|
6517
|
+
* ```
|
|
6518
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
6519
|
+
*/
|
|
6520
|
+
DeletePreviousPrompt = "deletePreviousPrompt",
|
|
6521
|
+
/**
|
|
6522
|
+
* Action ID for hide/disable edit of tokens on spotter results.
|
|
6523
|
+
* @example
|
|
6524
|
+
* ```js
|
|
6525
|
+
* hiddenAction: [Action.EditTokens]
|
|
6504
6526
|
* ```
|
|
6505
6527
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
6506
6528
|
*/
|
|
6507
|
-
|
|
6529
|
+
EditTokens = "editTokens"
|
|
6508
6530
|
}
|
|
6509
6531
|
export interface AnswerServiceType {
|
|
6510
6532
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -1698,7 +1698,6 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
1698
1698
|
* disableSourceSelection : true,
|
|
1699
1699
|
* })
|
|
1700
1700
|
* ```
|
|
1701
|
-
*
|
|
1702
1701
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
1703
1702
|
*/
|
|
1704
1703
|
disableSourceSelection?: boolean;
|
|
@@ -1711,7 +1710,6 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
1711
1710
|
* hideSourceSelection : true,
|
|
1712
1711
|
* })
|
|
1713
1712
|
* ```
|
|
1714
|
-
*
|
|
1715
1713
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
1716
1714
|
*/
|
|
1717
1715
|
hideSourceSelection?: boolean;
|
|
@@ -1746,7 +1744,7 @@ export declare class ConversationEmbed extends TsEmbed {
|
|
|
1746
1744
|
* @summary ThoughtSpot Visual Embed SDK
|
|
1747
1745
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
1748
1746
|
*/
|
|
1749
|
-
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, BodylessConversation, BodylessConversationViewConfig, ConversationEmbed, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
|
|
1747
|
+
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, BodylessConversation, BodylessConversationViewConfig, ConversationEmbed, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, HomePageSearchBarMode, VizPoint, CustomActionPayload, };
|
|
1750
1748
|
|
|
1751
1749
|
/**
|
|
1752
1750
|
* Copyright (c) 2023
|
|
@@ -2820,7 +2818,6 @@ export interface ViewConfig {
|
|
|
2820
2818
|
overrideOrgId?: number;
|
|
2821
2819
|
/**
|
|
2822
2820
|
* Flag to control new flip tooltip context menu experience
|
|
2823
|
-
*
|
|
2824
2821
|
* @default false
|
|
2825
2822
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
2826
2823
|
*/
|
|
@@ -4118,7 +4115,6 @@ export declare enum HostEvent {
|
|
|
4118
4115
|
* Get iframe URL for the current embed view on the playground.
|
|
4119
4116
|
* Developers can use this URL to embed a ThoughtSpot object
|
|
4120
4117
|
* in apps like Salesforce or Sharepoint.
|
|
4121
|
-
*
|
|
4122
4118
|
* @example
|
|
4123
4119
|
* ```js
|
|
4124
4120
|
* const url = embed.trigger(HostEvent.GetIframeUrl);
|
|
@@ -4241,7 +4237,6 @@ export declare enum HostEvent {
|
|
|
4241
4237
|
* sorting, toggling of legends, and data drill down.
|
|
4242
4238
|
* For more information, see
|
|
4243
4239
|
* link:https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#transient-lb-content[Liveboard data with unsaved changes].
|
|
4244
|
-
*
|
|
4245
4240
|
* @example
|
|
4246
4241
|
* ```js
|
|
4247
4242
|
* liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard).then(
|
|
@@ -6083,7 +6078,7 @@ export declare enum Action {
|
|
|
6083
6078
|
* Action ID for hide/disable reset button in spotter
|
|
6084
6079
|
* @example
|
|
6085
6080
|
* ```js
|
|
6086
|
-
* hiddenAction: [Action.
|
|
6081
|
+
* hiddenAction: [Action.ResetSpotterChat]
|
|
6087
6082
|
* ```
|
|
6088
6083
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
6089
6084
|
*/
|
|
@@ -6092,11 +6087,38 @@ export declare enum Action {
|
|
|
6092
6087
|
* Action ID for hide/disable feedback in spotter
|
|
6093
6088
|
* @example
|
|
6094
6089
|
* ```js
|
|
6095
|
-
* hiddenAction: [Action.
|
|
6090
|
+
* hiddenAction: [Action.SpotterFeedback]
|
|
6091
|
+
* ```
|
|
6092
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
6093
|
+
*/
|
|
6094
|
+
SpotterFeedback = "spotterFeedback",
|
|
6095
|
+
/**
|
|
6096
|
+
* Action ID for hide/disable editing previous prompt in spotter
|
|
6097
|
+
* @example
|
|
6098
|
+
* ```js
|
|
6099
|
+
* hiddenAction: [Action.EditPreviousPrompt]
|
|
6100
|
+
* ```
|
|
6101
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
6102
|
+
*/
|
|
6103
|
+
EditPreviousPrompt = "editPreviousPrompt",
|
|
6104
|
+
/**
|
|
6105
|
+
* Action ID for hide/disable deleting previous prompt in spotter
|
|
6106
|
+
* @example
|
|
6107
|
+
* ```js
|
|
6108
|
+
* hiddenAction: [Action.DeletePreviousPrompt]
|
|
6109
|
+
* ```
|
|
6110
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
6111
|
+
*/
|
|
6112
|
+
DeletePreviousPrompt = "deletePreviousPrompt",
|
|
6113
|
+
/**
|
|
6114
|
+
* Action ID for hide/disable edit of tokens on spotter results.
|
|
6115
|
+
* @example
|
|
6116
|
+
* ```js
|
|
6117
|
+
* hiddenAction: [Action.EditTokens]
|
|
6096
6118
|
* ```
|
|
6097
6119
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
6098
6120
|
*/
|
|
6099
|
-
|
|
6121
|
+
EditTokens = "editTokens"
|
|
6100
6122
|
}
|
|
6101
6123
|
export interface AnswerServiceType {
|
|
6102
6124
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -12,7 +12,7 @@ import EventEmitter from 'eventemitter3';
|
|
|
12
12
|
* @summary ThoughtSpot Visual Embed SDK
|
|
13
13
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
14
14
|
*/
|
|
15
|
-
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, BodylessConversation, BodylessConversationViewConfig, ConversationEmbed, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
|
|
15
|
+
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, BodylessConversation, BodylessConversationViewConfig, ConversationEmbed, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, HomePageSearchBarMode, VizPoint, CustomActionPayload, };
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Copyright (c) 2022
|
|
@@ -1474,7 +1474,6 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
1474
1474
|
* disableSourceSelection : true,
|
|
1475
1475
|
* })
|
|
1476
1476
|
* ```
|
|
1477
|
-
*
|
|
1478
1477
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
1479
1478
|
*/
|
|
1480
1479
|
disableSourceSelection?: boolean;
|
|
@@ -1487,7 +1486,6 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
1487
1486
|
* hideSourceSelection : true,
|
|
1488
1487
|
* })
|
|
1489
1488
|
* ```
|
|
1490
|
-
*
|
|
1491
1489
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
1492
1490
|
*/
|
|
1493
1491
|
hideSourceSelection?: boolean;
|
|
@@ -2817,7 +2815,6 @@ export interface ViewConfig {
|
|
|
2817
2815
|
overrideOrgId?: number;
|
|
2818
2816
|
/**
|
|
2819
2817
|
* Flag to control new flip tooltip context menu experience
|
|
2820
|
-
*
|
|
2821
2818
|
* @default false
|
|
2822
2819
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
2823
2820
|
*/
|
|
@@ -4115,7 +4112,6 @@ export enum HostEvent {
|
|
|
4115
4112
|
* Get iframe URL for the current embed view on the playground.
|
|
4116
4113
|
* Developers can use this URL to embed a ThoughtSpot object
|
|
4117
4114
|
* in apps like Salesforce or Sharepoint.
|
|
4118
|
-
*
|
|
4119
4115
|
* @example
|
|
4120
4116
|
* ```js
|
|
4121
4117
|
* const url = embed.trigger(HostEvent.GetIframeUrl);
|
|
@@ -4238,7 +4234,6 @@ export enum HostEvent {
|
|
|
4238
4234
|
* sorting, toggling of legends, and data drill down.
|
|
4239
4235
|
* For more information, see
|
|
4240
4236
|
* link:https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#transient-lb-content[Liveboard data with unsaved changes].
|
|
4241
|
-
*
|
|
4242
4237
|
* @example
|
|
4243
4238
|
* ```js
|
|
4244
4239
|
* liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard).then(
|
|
@@ -6080,7 +6075,7 @@ export enum Action {
|
|
|
6080
6075
|
* Action ID for hide/disable reset button in spotter
|
|
6081
6076
|
* @example
|
|
6082
6077
|
* ```js
|
|
6083
|
-
* hiddenAction: [Action.
|
|
6078
|
+
* hiddenAction: [Action.ResetSpotterChat]
|
|
6084
6079
|
* ```
|
|
6085
6080
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
6086
6081
|
*/
|
|
@@ -6089,11 +6084,38 @@ export enum Action {
|
|
|
6089
6084
|
* Action ID for hide/disable feedback in spotter
|
|
6090
6085
|
* @example
|
|
6091
6086
|
* ```js
|
|
6092
|
-
* hiddenAction: [Action.
|
|
6087
|
+
* hiddenAction: [Action.SpotterFeedback]
|
|
6088
|
+
* ```
|
|
6089
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
6090
|
+
*/
|
|
6091
|
+
SpotterFeedback = "spotterFeedback",
|
|
6092
|
+
/**
|
|
6093
|
+
* Action ID for hide/disable editing previous prompt in spotter
|
|
6094
|
+
* @example
|
|
6095
|
+
* ```js
|
|
6096
|
+
* hiddenAction: [Action.EditPreviousPrompt]
|
|
6097
|
+
* ```
|
|
6098
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
6099
|
+
*/
|
|
6100
|
+
EditPreviousPrompt = "editPreviousPrompt",
|
|
6101
|
+
/**
|
|
6102
|
+
* Action ID for hide/disable deleting previous prompt in spotter
|
|
6103
|
+
* @example
|
|
6104
|
+
* ```js
|
|
6105
|
+
* hiddenAction: [Action.DeletePreviousPrompt]
|
|
6106
|
+
* ```
|
|
6107
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
6108
|
+
*/
|
|
6109
|
+
DeletePreviousPrompt = "deletePreviousPrompt",
|
|
6110
|
+
/**
|
|
6111
|
+
* Action ID for hide/disable edit of tokens on spotter results.
|
|
6112
|
+
* @example
|
|
6113
|
+
* ```js
|
|
6114
|
+
* hiddenAction: [Action.EditTokens]
|
|
6093
6115
|
* ```
|
|
6094
6116
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
6095
6117
|
*/
|
|
6096
|
-
|
|
6118
|
+
EditTokens = "editTokens"
|
|
6097
6119
|
}
|
|
6098
6120
|
export interface AnswerServiceType {
|
|
6099
6121
|
getAnswer?: (offset: number, batchSize: number) => any;
|
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thoughtspot/visual-embed-sdk",
|
|
3
|
-
"version": "1.33.
|
|
3
|
+
"version": "1.33.12",
|
|
4
4
|
"description": "ThoughtSpot Embed SDK",
|
|
5
5
|
"module": "lib/src/index.js",
|
|
6
6
|
"main": "dist/tsembed.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"size-limit": [
|
|
39
39
|
{
|
|
40
40
|
"path": "dist/tsembed.es.js",
|
|
41
|
-
"limit": "
|
|
41
|
+
"limit": "31 kB"
|
|
42
42
|
}
|
|
43
43
|
],
|
|
44
44
|
"scripts": {
|
|
@@ -28,7 +28,6 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
28
28
|
* disableSourceSelection : true,
|
|
29
29
|
* })
|
|
30
30
|
* ```
|
|
31
|
-
*
|
|
32
31
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
33
32
|
*/
|
|
34
33
|
disableSourceSelection?: boolean;
|
|
@@ -41,7 +40,6 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
41
40
|
* hideSourceSelection : true,
|
|
42
41
|
* })
|
|
43
42
|
* ```
|
|
44
|
-
*
|
|
45
43
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
46
44
|
*/
|
|
47
45
|
hideSourceSelection?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../src/embed/conversation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAS,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAuB,SAAQ,UAAU;IACtD;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../src/embed/conversation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAS,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAuB,SAAQ,UAAU;IACtD;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;;;;;;;;OAWG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;;;;;;;;;OAUG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,iBAAkB,SAAQ,OAAO;IACN,SAAS,CAAC,UAAU,EAAE,sBAAsB;gBAApE,SAAS,EAAE,WAAW,EAAY,UAAU,EAAE,sBAAsB;IAKzE,YAAY;IAiCN,MAAM,IAAI,OAAO,CAAC,iBAAiB,CAAC;CAMpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.js","sourceRoot":"","sources":["../../../src/embed/conversation.ts"],"names":[],"mappings":"AAAA,OAAO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sB,CAAC,GAAG,CAAC,CAAC,sBAAsB,CAAC;SACxE;QACD,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,EAAE;YACnC,WAAW,CAAC,KAAK,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,mBAAmB,CAAC;SAClE;QAED,IAAI,KAAK,GAAG,EAAE,CAAC;QACf,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QACjE,IAAI,iBAAiB,EAAE;YACnB,KAAK,GAAG,IAAI,iBAAiB,EAAE,CAAC;SACnC;QACD,MAAM,gBAAgB,GAAG,IAAI,CAAC,2BAA2B,CAAC;YACtD,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,WAAW,KAAI,EAAE;SAC1C,CAAC,CAAC;QAEH,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,UAAU,IAAI,GAAG,gBAAgB,EAAE,CAAC;IAC9E,CAAC;IAEM,KAAK,CAAC,MAAM;QACf,KAAK,CAAC,MAAM,EAAE,CAAC;QACf,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"}
|
package/lib/src/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @summary ThoughtSpot Visual Embed SDK
|
|
7
7
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
8
8
|
*/
|
|
9
|
-
import { AppEmbed, Page, AppViewConfig } from './embed/app';
|
|
9
|
+
import { AppEmbed, Page, AppViewConfig, HomePageSearchBarMode } from './embed/app';
|
|
10
10
|
import { init, prefetch, logout, executeTML, exportTML, executeTMLInput, exportTMLInput } from './embed/base';
|
|
11
11
|
import { PinboardEmbed, LiveboardViewConfig, LiveboardEmbed } from './embed/liveboard';
|
|
12
12
|
import { SearchEmbed, SearchViewConfig } from './embed/search';
|
|
@@ -24,6 +24,6 @@ import { uploadMixpanelEvent, MIXPANEL_EVENT } from './mixpanel-service';
|
|
|
24
24
|
import { tokenizedFetch } from './tokenizedFetch';
|
|
25
25
|
import { getAnswerFromQuery } from './utils/graphql/nlsService/nls-answer-service';
|
|
26
26
|
import { createLiveboardWithAnswers } from './utils/liveboardService/liveboardService';
|
|
27
|
-
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, BodylessConversation, BodylessConversationViewConfig, ConversationEmbed, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
|
|
27
|
+
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, BodylessConversation, BodylessConversationViewConfig, ConversationEmbed, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, HomePageSearchBarMode, VizPoint, CustomActionPayload, };
|
|
28
28
|
export { resetCachedAuthToken } from './authToken';
|
|
29
29
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACH,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,qBAAqB,EACvD,MAAM,aAAa,CAAC;AACrB,OAAO,EACH,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,UAAU,EACV,SAAS,EACT,eAAe,EACf,cAAc,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AACrG,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,EACH,eAAe,EAAE,UAAU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B,EAChB,aAAa,EAEb,gBAAgB,EAChB,mBAAmB,EACnB,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,EACN,yBAAyB,EACzB,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,cAAc,EACd,WAAW,EACX,cAAc,EACd,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,QAAQ,EACR,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,QAAQ,EACR,mBAAmB,GACtB,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC"}
|
package/lib/src/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @summary ThoughtSpot Visual Embed SDK
|
|
7
7
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
8
8
|
*/
|
|
9
|
-
import { AppEmbed, Page } from './embed/app';
|
|
9
|
+
import { AppEmbed, Page, HomePageSearchBarMode, } from './embed/app';
|
|
10
10
|
import { init, prefetch, logout, executeTML, exportTML, } from './embed/base';
|
|
11
11
|
import { PinboardEmbed, LiveboardEmbed } from './embed/liveboard';
|
|
12
12
|
import { SearchEmbed } from './embed/search';
|
|
@@ -23,6 +23,6 @@ import { uploadMixpanelEvent, MIXPANEL_EVENT } from './mixpanel-service';
|
|
|
23
23
|
import { tokenizedFetch } from './tokenizedFetch';
|
|
24
24
|
import { getAnswerFromQuery } from './utils/graphql/nlsService/nls-answer-service';
|
|
25
25
|
import { createLiveboardWithAnswers } from './utils/liveboardService/liveboardService';
|
|
26
|
-
export { init, logout, prefetch, executeTML, exportTML, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, BodylessConversation, ConversationEmbed, AuthFailureType, AuthStatus, AuthEvent, AnswerService, Page, AuthType, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, PrefetchFeatures, HomeLeftNavItem, HomepageModule, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, };
|
|
26
|
+
export { init, logout, prefetch, executeTML, exportTML, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, BodylessConversation, ConversationEmbed, AuthFailureType, AuthStatus, AuthEvent, AnswerService, Page, AuthType, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, PrefetchFeatures, HomeLeftNavItem, HomepageModule, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, HomePageSearchBarMode, };
|
|
27
27
|
export { resetCachedAuthToken } from './authToken';
|
|
28
28
|
//# sourceMappingURL=index.js.map
|
package/lib/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACH,QAAQ,EAAE,IAAI,EAAiB,qBAAqB,GACvD,MAAM,aAAa,CAAC;AACrB,OAAO,EACH,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,UAAU,EACV,SAAS,GAGZ,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAuB,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,WAAW,EAAoB,MAAM,gBAAgB,CAAC;AA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AEhB,eAAe,EACf,cAAc,EAUd,QAAQ,EACR,mBAAmB,EACnB,cAAc,EACd,qBAAqB,GAGxB,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC"}
|
package/lib/src/types.d.ts
CHANGED
|
@@ -1072,7 +1072,6 @@ export interface ViewConfig {
|
|
|
1072
1072
|
overrideOrgId?: number;
|
|
1073
1073
|
/**
|
|
1074
1074
|
* Flag to control new flip tooltip context menu experience
|
|
1075
|
-
*
|
|
1076
1075
|
* @default false
|
|
1077
1076
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
1078
1077
|
*/
|
|
@@ -2370,7 +2369,6 @@ export declare enum HostEvent {
|
|
|
2370
2369
|
* Get iframe URL for the current embed view on the playground.
|
|
2371
2370
|
* Developers can use this URL to embed a ThoughtSpot object
|
|
2372
2371
|
* in apps like Salesforce or Sharepoint.
|
|
2373
|
-
*
|
|
2374
2372
|
* @example
|
|
2375
2373
|
* ```js
|
|
2376
2374
|
* const url = embed.trigger(HostEvent.GetIframeUrl);
|
|
@@ -2493,7 +2491,6 @@ export declare enum HostEvent {
|
|
|
2493
2491
|
* sorting, toggling of legends, and data drill down.
|
|
2494
2492
|
* For more information, see
|
|
2495
2493
|
* link:https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#transient-lb-content[Liveboard data with unsaved changes].
|
|
2496
|
-
*
|
|
2497
2494
|
* @example
|
|
2498
2495
|
* ```js
|
|
2499
2496
|
* liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard).then(
|
|
@@ -4335,7 +4332,7 @@ export declare enum Action {
|
|
|
4335
4332
|
* Action ID for hide/disable reset button in spotter
|
|
4336
4333
|
* @example
|
|
4337
4334
|
* ```js
|
|
4338
|
-
* hiddenAction: [Action.
|
|
4335
|
+
* hiddenAction: [Action.ResetSpotterChat]
|
|
4339
4336
|
* ```
|
|
4340
4337
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
4341
4338
|
*/
|
|
@@ -4344,11 +4341,38 @@ export declare enum Action {
|
|
|
4344
4341
|
* Action ID for hide/disable feedback in spotter
|
|
4345
4342
|
* @example
|
|
4346
4343
|
* ```js
|
|
4347
|
-
* hiddenAction: [Action.
|
|
4344
|
+
* hiddenAction: [Action.SpotterFeedback]
|
|
4345
|
+
* ```
|
|
4346
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
4347
|
+
*/
|
|
4348
|
+
SpotterFeedback = "spotterFeedback",
|
|
4349
|
+
/**
|
|
4350
|
+
* Action ID for hide/disable editing previous prompt in spotter
|
|
4351
|
+
* @example
|
|
4352
|
+
* ```js
|
|
4353
|
+
* hiddenAction: [Action.EditPreviousPrompt]
|
|
4354
|
+
* ```
|
|
4355
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
4356
|
+
*/
|
|
4357
|
+
EditPreviousPrompt = "editPreviousPrompt",
|
|
4358
|
+
/**
|
|
4359
|
+
* Action ID for hide/disable deleting previous prompt in spotter
|
|
4360
|
+
* @example
|
|
4361
|
+
* ```js
|
|
4362
|
+
* hiddenAction: [Action.DeletePreviousPrompt]
|
|
4363
|
+
* ```
|
|
4364
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
4365
|
+
*/
|
|
4366
|
+
DeletePreviousPrompt = "deletePreviousPrompt",
|
|
4367
|
+
/**
|
|
4368
|
+
* Action ID for hide/disable edit of tokens on spotter results.
|
|
4369
|
+
* @example
|
|
4370
|
+
* ```js
|
|
4371
|
+
* hiddenAction: [Action.EditTokens]
|
|
4348
4372
|
* ```
|
|
4349
4373
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
4350
4374
|
*/
|
|
4351
|
-
|
|
4375
|
+
EditTokens = "editTokens"
|
|
4352
4376
|
}
|
|
4353
4377
|
export interface AnswerServiceType {
|
|
4354
4378
|
getAnswer?: (offset: number, batchSize: number) => any;
|