@thoughtspot/visual-embed-sdk 1.41.0-pre-render-1 → 1.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/package.json +3 -3
- package/cjs/src/embed/app.d.ts +6 -1
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +19 -1
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +60 -3
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.d.ts +0 -1
- package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/cjs/src/embed/bodyless-conversation.js +3 -7
- package/cjs/src/embed/bodyless-conversation.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +0 -1
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +2 -7
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +0 -1
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +4 -27
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +25 -31
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +0 -1
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js +6 -10
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts +0 -1
- package/cjs/src/embed/search-bar.d.ts.map +1 -1
- package/cjs/src/embed/search-bar.js +7 -11
- package/cjs/src/embed/search-bar.js.map +1 -1
- package/cjs/src/embed/search.d.ts +0 -1
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +8 -7
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +4 -6
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +20 -21
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +122 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/errors.d.ts +10 -0
- package/cjs/src/errors.d.ts.map +1 -1
- package/cjs/src/errors.js +11 -1
- package/cjs/src/errors.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 +3 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/react/index.d.ts +1 -1
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +2 -1
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/types.d.ts +135 -17
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +40 -21
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/custom-actions.d.ts +12 -0
- package/cjs/src/utils/custom-actions.d.ts.map +1 -0
- package/cjs/src/utils/custom-actions.js +180 -0
- package/cjs/src/utils/custom-actions.js.map +1 -0
- package/cjs/src/utils/custom-actions.spec.d.ts +2 -0
- package/cjs/src/utils/custom-actions.spec.d.ts.map +1 -0
- package/cjs/src/utils/custom-actions.spec.js +399 -0
- package/cjs/src/utils/custom-actions.spec.js.map +1 -0
- package/cjs/src/utils/processData.d.ts.map +1 -1
- package/cjs/src/utils/processData.js +10 -0
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/processData.spec.js +11 -0
- package/cjs/src/utils/processData.spec.js.map +1 -1
- package/cjs/src/utils.d.ts +7 -0
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +11 -1
- package/cjs/src/utils.js.map +1 -1
- package/cjs/src/utils.spec.js +28 -0
- package/cjs/src/utils.spec.js.map +1 -1
- package/dist/{index-CmEQfuE3.js → index-B_mxAan8.js} +1 -1
- package/dist/src/embed/app.d.ts +6 -1
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/bodyless-conversation.d.ts +0 -1
- package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +0 -1
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +0 -1
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +0 -1
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts +0 -1
- package/dist/src/embed/search-bar.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +0 -1
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +4 -6
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/dist/src/errors.d.ts +10 -0
- package/dist/src/errors.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/index.d.ts +1 -1
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +135 -17
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/custom-actions.d.ts +12 -0
- package/dist/src/utils/custom-actions.d.ts.map +1 -0
- package/dist/src/utils/custom-actions.spec.d.ts +2 -0
- package/dist/src/utils/custom-actions.spec.d.ts.map +1 -0
- package/dist/src/utils/processData.d.ts.map +1 -1
- package/dist/src/utils.d.ts +7 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +1704 -250
- package/dist/tsembed-react.js +1703 -249
- package/dist/tsembed.es.js +1704 -250
- package/dist/tsembed.js +1703 -249
- package/dist/visual-embed-sdk-react-full.d.ts +146 -31
- package/dist/visual-embed-sdk-react.d.ts +146 -31
- package/dist/visual-embed-sdk.d.ts +146 -31
- package/lib/package.json +3 -3
- package/lib/src/embed/app.d.ts +6 -1
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +19 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +60 -3
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.d.ts +0 -1
- package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/lib/src/embed/bodyless-conversation.js +3 -7
- package/lib/src/embed/bodyless-conversation.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +0 -1
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +2 -7
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +0 -1
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +4 -27
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +25 -31
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/sage.d.ts +0 -1
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js +6 -10
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +0 -1
- package/lib/src/embed/search-bar.d.ts.map +1 -1
- package/lib/src/embed/search-bar.js +7 -11
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.d.ts +0 -1
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +8 -7
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +4 -6
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +20 -21
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +123 -1
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/errors.d.ts +10 -0
- package/lib/src/errors.d.ts.map +1 -1
- package/lib/src/errors.js +10 -0
- package/lib/src/errors.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/index.d.ts +1 -1
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +1 -1
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/types.d.ts +135 -17
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +39 -20
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/custom-actions.d.ts +12 -0
- package/lib/src/utils/custom-actions.d.ts.map +1 -0
- package/lib/src/utils/custom-actions.js +175 -0
- package/lib/src/utils/custom-actions.js.map +1 -0
- package/lib/src/utils/custom-actions.spec.d.ts +2 -0
- package/lib/src/utils/custom-actions.spec.d.ts.map +1 -0
- package/lib/src/utils/custom-actions.spec.js +397 -0
- package/lib/src/utils/custom-actions.spec.js.map +1 -0
- package/lib/src/utils/processData.d.ts.map +1 -1
- package/lib/src/utils/processData.js +10 -0
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/processData.spec.js +11 -0
- package/lib/src/utils/processData.spec.js.map +1 -1
- package/lib/src/utils.d.ts +7 -0
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +9 -0
- package/lib/src/utils.js.map +1 -1
- package/lib/src/utils.spec.js +29 -1
- package/lib/src/utils.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +147 -32
- package/package.json +3 -3
- package/src/embed/app.spec.ts +85 -3
- package/src/embed/app.ts +21 -0
- package/src/embed/bodyless-conversation.ts +3 -8
- package/src/embed/conversation.ts +2 -17
- package/src/embed/liveboard.spec.ts +35 -35
- package/src/embed/liveboard.ts +4 -32
- package/src/embed/sage.ts +7 -12
- package/src/embed/search-bar.tsx +7 -14
- package/src/embed/search.ts +7 -18
- package/src/embed/ts-embed.spec.ts +136 -2
- package/src/embed/ts-embed.ts +25 -28
- package/src/errors.ts +11 -0
- package/src/index.ts +4 -0
- package/src/react/index.tsx +1 -0
- package/src/types.ts +198 -76
- package/src/utils/custom-actions.spec.ts +431 -0
- package/src/utils/custom-actions.ts +217 -0
- package/src/utils/processData.spec.ts +12 -0
- package/src/utils/processData.ts +10 -0
- package/src/utils.spec.ts +34 -0
- package/src/utils.ts +10 -0
- package/dist/index-BDlM0f0T.js +0 -7371
- package/dist/index-D1pyb7RG.js +0 -7371
- package/dist/index-DeFzsyFF.js +0 -7371
- package/dist/index-Dpf0rd6w.js +0 -7371
- package/dist/index-UuEbsISo.js +0 -7447
- package/dist/index-e3Uw3YFO.js +0 -7371
- package/dist/index-k7pkZMhx.js +0 -7371
|
@@ -373,7 +373,7 @@ export function useSpotterAgent(config: SpotterAgentEmbedViewConfig): {
|
|
|
373
373
|
* @summary ThoughtSpot Visual Embed SDK
|
|
374
374
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
375
375
|
*/
|
|
376
|
-
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, SpotterAgentEmbed, SpotterAgentEmbedViewConfig, BodylessConversationViewConfig, BodylessConversation, SpotterEmbed, SpotterEmbedViewConfig, ConversationViewConfig, ConversationEmbed, 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, PrimaryNavbarVersion, HomePage, ListPage, VizPoint, CustomActionPayload, UIPassthroughEvent, ListPageColumns, DataPanelCustomColumnGroupsAccordionState, };
|
|
376
|
+
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, SpotterAgentEmbed, SpotterAgentEmbedViewConfig, BodylessConversationViewConfig, BodylessConversation, SpotterEmbed, SpotterEmbedViewConfig, ConversationViewConfig, ConversationEmbed, 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, PrimaryNavbarVersion, HomePage, ListPage, VizPoint, CustomActionPayload, UIPassthroughEvent, ListPageColumns, DataPanelCustomColumnGroupsAccordionState, CustomActionsPosition, CustomActionTarget, };
|
|
377
377
|
|
|
378
378
|
export declare let loggedInStatus: boolean;
|
|
379
379
|
export declare let samlAuthWindow: Window;
|
|
@@ -662,7 +662,6 @@ export declare class SearchBarEmbed extends TsEmbed {
|
|
|
662
662
|
protected viewConfig: SearchBarViewConfig;
|
|
663
663
|
protected embedComponentType: string;
|
|
664
664
|
constructor(domSelector: string, viewConfig: SearchBarViewConfig);
|
|
665
|
-
protected getEmbedParamsObject(): Record<any, any>;
|
|
666
665
|
/**
|
|
667
666
|
* Render the embedded ThoughtSpot search
|
|
668
667
|
*/
|
|
@@ -815,7 +814,6 @@ export declare class SageEmbed extends V1Embed {
|
|
|
815
814
|
*/
|
|
816
815
|
protected viewConfig: SageViewConfig;
|
|
817
816
|
constructor(domSelector: DOMSelector, viewConfig: SageViewConfig);
|
|
818
|
-
protected getEmbedParamsObject(): Record<any, any>;
|
|
819
817
|
/**
|
|
820
818
|
* Constructs a map of parameters to be passed on to the
|
|
821
819
|
* embedded Eureka or Sage search page.
|
|
@@ -1153,7 +1151,6 @@ export declare class SearchEmbed extends TsEmbed {
|
|
|
1153
1151
|
};
|
|
1154
1152
|
};
|
|
1155
1153
|
protected getAppInitData(): Promise<SearchAppInitData>;
|
|
1156
|
-
protected getEmbedParamsObject(): Record<any, any>;
|
|
1157
1154
|
protected getEmbedParams(): string;
|
|
1158
1155
|
/**
|
|
1159
1156
|
* Construct the URL of the embedded ThoughtSpot search to be
|
|
@@ -1258,7 +1255,12 @@ export declare enum HomePage {
|
|
|
1258
1255
|
* Modular (v2) introduces the updated Modular Home Experience.
|
|
1259
1256
|
* It serves as the foundational version of the home page.
|
|
1260
1257
|
*/
|
|
1261
|
-
Modular = "v2"
|
|
1258
|
+
Modular = "v2",
|
|
1259
|
+
/**
|
|
1260
|
+
* ModularWithStylingChanges (v3) introduces Modular Home Experience
|
|
1261
|
+
* with styling changes.
|
|
1262
|
+
*/
|
|
1263
|
+
ModularWithStylingChanges = "v3"
|
|
1262
1264
|
}
|
|
1263
1265
|
/**
|
|
1264
1266
|
* Define the version of the list page
|
|
@@ -2134,7 +2136,6 @@ export declare class LiveboardEmbed extends V1Embed {
|
|
|
2134
2136
|
* embedded Liveboard or visualization.
|
|
2135
2137
|
*/
|
|
2136
2138
|
protected getEmbedParams(): string;
|
|
2137
|
-
protected getEmbedParamsObject(): any;
|
|
2138
2139
|
/**
|
|
2139
2140
|
* @hidden
|
|
2140
2141
|
* Internal state to track the current liveboard id.
|
|
@@ -2208,7 +2209,6 @@ export interface SpotterAgentMessageViewConfig extends SpotterAgentEmbedViewConf
|
|
|
2208
2209
|
export declare class ConversationMessage extends TsEmbed {
|
|
2209
2210
|
protected viewConfig: SpotterAgentMessageViewConfig;
|
|
2210
2211
|
constructor(container: HTMLElement, viewConfig: SpotterAgentMessageViewConfig);
|
|
2211
|
-
protected getEmbedParamsObject(): Record<any, any>;
|
|
2212
2212
|
getIframeSrc(): string;
|
|
2213
2213
|
render(): Promise<ConversationMessage>;
|
|
2214
2214
|
}
|
|
@@ -2924,6 +2924,31 @@ export interface EmbedConfig {
|
|
|
2924
2924
|
* ```
|
|
2925
2925
|
*/
|
|
2926
2926
|
disableFullscreenPresentation?: boolean;
|
|
2927
|
+
/**
|
|
2928
|
+
* Custom Actions allows users to define interactive UI actions (like buttons or menu
|
|
2929
|
+
* items) that appear in ThoughtSpot's visualizations, answers, and Liveboards. These
|
|
2930
|
+
* actions enable users to trigger custom workflows — such as navigating to an
|
|
2931
|
+
* external app, calling an API, or opening a modal — based on the data context of
|
|
2932
|
+
* what they clicked can be used to trigger custom logic when the action is clicked.
|
|
2933
|
+
* @version SDK: 1.43.0 | ThoughtSpot: 10.14.0.cl
|
|
2934
|
+
* @example
|
|
2935
|
+
* ```js
|
|
2936
|
+
* import { CustomActionPosition, CustomActionTarget } from '@thoughtspot/visual-embed-sdk';
|
|
2937
|
+
* init({
|
|
2938
|
+
* ... // other embed config options
|
|
2939
|
+
* customActions: [
|
|
2940
|
+
* {
|
|
2941
|
+
* name: 'customAction',
|
|
2942
|
+
* id: 'customAction',
|
|
2943
|
+
* target: CustomActionTarget.VISUALIZATION,
|
|
2944
|
+
* position: CustomActionPosition.PRIMARY,
|
|
2945
|
+
* }
|
|
2946
|
+
* }
|
|
2947
|
+
* ]
|
|
2948
|
+
* })
|
|
2949
|
+
* ```
|
|
2950
|
+
*/
|
|
2951
|
+
customActions?: CustomAction[];
|
|
2927
2952
|
}
|
|
2928
2953
|
export interface LayoutConfig {
|
|
2929
2954
|
}
|
|
@@ -3284,6 +3309,34 @@ export interface BaseViewConfig {
|
|
|
3284
3309
|
* ```
|
|
3285
3310
|
*/
|
|
3286
3311
|
showAlerts?: boolean;
|
|
3312
|
+
/**
|
|
3313
|
+
* Custom Actions allows users to define interactive UI actions (like buttons or menu
|
|
3314
|
+
* items) that appear in ThoughtSpot's visualizations, answers, and Liveboards. These
|
|
3315
|
+
* actions enable users to trigger custom workflows — such as navigating to an
|
|
3316
|
+
* external app, calling an API, or opening a modal — based on the data context of
|
|
3317
|
+
* what they clicked can be used to trigger custom logic when the action is clicked.
|
|
3318
|
+
*
|
|
3319
|
+
* Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterEmbed`
|
|
3320
|
+
* @version SDK: 1.43.0 | ThoughtSpot: 10.14.0.cl
|
|
3321
|
+
* @example
|
|
3322
|
+
* ```js
|
|
3323
|
+
* import { CustomActionPosition, CustomActionTarget } from '@thoughtspot/visual-embed-sdk';
|
|
3324
|
+
* // Use supported embed types such as AppEmbed or LiveboardEmbed
|
|
3325
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
3326
|
+
* ... // other embed config options
|
|
3327
|
+
* customActions: [
|
|
3328
|
+
* {
|
|
3329
|
+
* name: 'customAction',
|
|
3330
|
+
* id: 'customAction',
|
|
3331
|
+
* target: CustomActionTarget.VISUALIZATION,
|
|
3332
|
+
* position: CustomActionPosition.PRIMARY,
|
|
3333
|
+
* }
|
|
3334
|
+
* }
|
|
3335
|
+
* ]
|
|
3336
|
+
* })
|
|
3337
|
+
* ```
|
|
3338
|
+
*/
|
|
3339
|
+
customActions?: CustomAction[];
|
|
3287
3340
|
}
|
|
3288
3341
|
/**
|
|
3289
3342
|
* The configuration object for Home page embeds configs.
|
|
@@ -3293,7 +3346,8 @@ export interface HomePageConfig {
|
|
|
3293
3346
|
* Hide list page columns
|
|
3294
3347
|
* For example: hiddenListColumns = [ListPageColumns.Author]
|
|
3295
3348
|
*
|
|
3296
|
-
* **Note**: This option is available only in full app embedding
|
|
3349
|
+
* **Note**: This option is currently available only in full app embedding and requires importing the ListPageColumns enum.
|
|
3350
|
+
* At present, it can be used with Liveboard and Answer list pages, and starting with version 10.14.0.cl, it will also be supported for the Home page.
|
|
3297
3351
|
*
|
|
3298
3352
|
* Supported embed types: `AppEmbed`
|
|
3299
3353
|
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
@@ -3609,7 +3663,8 @@ export interface LiveboardAppEmbedViewConfig {
|
|
|
3609
3663
|
*/
|
|
3610
3664
|
isLiveboardCompactHeaderEnabled?: boolean;
|
|
3611
3665
|
/**
|
|
3612
|
-
* This flag can be used to show or hide the Liveboard verified icon in the compact
|
|
3666
|
+
* This flag can be used to show or hide the Liveboard verified icon in the compact
|
|
3667
|
+
* header.
|
|
3613
3668
|
*
|
|
3614
3669
|
* Supported embed types: `AppEmbed`, `LiveboardEmbed`
|
|
3615
3670
|
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
@@ -3627,6 +3682,8 @@ export interface LiveboardAppEmbedViewConfig {
|
|
|
3627
3682
|
/**
|
|
3628
3683
|
* This flag is used to enable/disable hide irrelevant filters in Liveboard tab
|
|
3629
3684
|
*
|
|
3685
|
+
* **Note**: This feature is supported only if compact header is enabled on your Liveboard. To enable compact header, use the `isLiveboardCompactHeaderEnabled` attribute.
|
|
3686
|
+
*
|
|
3630
3687
|
* Supported embed types: `AppEmbed`, `LiveboardEmbed`
|
|
3631
3688
|
* @version SDK: 1.36.0 | ThoughtSpot:10.6.0.cl
|
|
3632
3689
|
* @default false
|
|
@@ -3636,12 +3693,14 @@ export interface LiveboardAppEmbedViewConfig {
|
|
|
3636
3693
|
* const embed = new <EmbedComponent>('#tsEmbed', {
|
|
3637
3694
|
* ... // other embed view config
|
|
3638
3695
|
* hideIrrelevantChipsInLiveboardTabs: true,
|
|
3696
|
+
* isLiveboardCompactHeaderEnabled: true,
|
|
3639
3697
|
* })
|
|
3640
3698
|
* ```
|
|
3641
3699
|
*/
|
|
3642
3700
|
hideIrrelevantChipsInLiveboardTabs?: boolean;
|
|
3643
3701
|
/**
|
|
3644
|
-
* This flag can be used to show or hide the re-verify banner on the Liveboard
|
|
3702
|
+
* This flag can be used to show or hide the re-verify banner on the Liveboard
|
|
3703
|
+
* compact header
|
|
3645
3704
|
*
|
|
3646
3705
|
* Supported embed types: `AppEmbed`, `LiveboardEmbed`
|
|
3647
3706
|
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
@@ -3688,6 +3747,21 @@ export interface LiveboardAppEmbedViewConfig {
|
|
|
3688
3747
|
* ```
|
|
3689
3748
|
*/
|
|
3690
3749
|
coverAndFilterOptionInPDF?: boolean;
|
|
3750
|
+
/**
|
|
3751
|
+
* This flag is used to enable or disable the XLSX/CSV download option for Liveboards.
|
|
3752
|
+
*
|
|
3753
|
+
* Supported embed types: `AppEmbed`, `LiveboardEmbed`
|
|
3754
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.14.0.cl
|
|
3755
|
+
* @example
|
|
3756
|
+
* ```js
|
|
3757
|
+
* // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
|
|
3758
|
+
* const embed = new <EmbedComponent>('#tsEmbed', {
|
|
3759
|
+
* ... // other embed view config
|
|
3760
|
+
* liveboardXLSXCSVDownload: true,
|
|
3761
|
+
* })
|
|
3762
|
+
* ```
|
|
3763
|
+
*/
|
|
3764
|
+
liveboardXLSXCSVDownload?: boolean;
|
|
3691
3765
|
}
|
|
3692
3766
|
export interface AllEmbedViewConfig extends BaseViewConfig, SearchLiveboardCommonViewConfig, HomePageConfig, LiveboardAppEmbedViewConfig {
|
|
3693
3767
|
}
|
|
@@ -4575,6 +4649,11 @@ export declare enum EmbedEvent {
|
|
|
4575
4649
|
* @hidden
|
|
4576
4650
|
*/
|
|
4577
4651
|
APP_INIT = "appInit",
|
|
4652
|
+
/**
|
|
4653
|
+
* Internal event to clear the cached info
|
|
4654
|
+
* @hidden
|
|
4655
|
+
*/
|
|
4656
|
+
CLEAR_INFO_CACHE = "clearInfoCache",
|
|
4578
4657
|
/**
|
|
4579
4658
|
* Emitted when a user clicks **Show Liveboard details** on a Liveboard
|
|
4580
4659
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
@@ -5042,7 +5121,18 @@ export declare enum EmbedEvent {
|
|
|
5042
5121
|
* })
|
|
5043
5122
|
* ```
|
|
5044
5123
|
*/
|
|
5045
|
-
EmbedListenerReady = "EmbedListenerReady"
|
|
5124
|
+
EmbedListenerReady = "EmbedListenerReady",
|
|
5125
|
+
/**
|
|
5126
|
+
* Emitted when the organization is switched.
|
|
5127
|
+
* @example
|
|
5128
|
+
* ```js
|
|
5129
|
+
* appEmbed.on(EmbedEvent.OrgSwitched, (payload) => {
|
|
5130
|
+
* console.log('payload', payload);
|
|
5131
|
+
* })
|
|
5132
|
+
* ```
|
|
5133
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
5134
|
+
*/
|
|
5135
|
+
OrgSwitched = "orgSwitched"
|
|
5046
5136
|
}
|
|
5047
5137
|
/**
|
|
5048
5138
|
* Event types that can be triggered by the host application
|
|
@@ -6304,17 +6394,7 @@ export declare enum HostEvent {
|
|
|
6304
6394
|
* ```
|
|
6305
6395
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
6306
6396
|
*/
|
|
6307
|
-
AskSpotter = "AskSpotter"
|
|
6308
|
-
/**
|
|
6309
|
-
* @hidden
|
|
6310
|
-
* Triggers the update of the embed params.
|
|
6311
|
-
*
|
|
6312
|
-
* @example
|
|
6313
|
-
* ```js
|
|
6314
|
-
* liveboardEmbed.trigger(HostEvent.UpdateEmbedParams, viewConfig);
|
|
6315
|
-
* ```
|
|
6316
|
-
*/
|
|
6317
|
-
UpdateEmbedParams = "updateEmbedParams"
|
|
6397
|
+
AskSpotter = "AskSpotter"
|
|
6318
6398
|
}
|
|
6319
6399
|
/**
|
|
6320
6400
|
* The different visual modes that the data sources panel within
|
|
@@ -6410,6 +6490,7 @@ export declare enum Param {
|
|
|
6410
6490
|
Query = "query",
|
|
6411
6491
|
HideHomepageLeftNav = "hideHomepageLeftNav",
|
|
6412
6492
|
ModularHomeExperienceEnabled = "modularHomeExperience",
|
|
6493
|
+
HomepageVersion = "homepageVersion",
|
|
6413
6494
|
ListPageVersion = "listpageVersion",
|
|
6414
6495
|
PendoTrackingKey = "additionalPendoKey",
|
|
6415
6496
|
LiveboardHeaderSticky = "isLiveboardHeaderSticky",
|
|
@@ -6450,7 +6531,8 @@ export declare enum Param {
|
|
|
6450
6531
|
isSpotterAgentEmbed = "isSpotterAgentEmbed",
|
|
6451
6532
|
IsLiveboardStylingAndGroupingEnabled = "isLiveboardStylingAndGroupingEnabled",
|
|
6452
6533
|
IsLazyLoadingForEmbedEnabled = "isLazyLoadingForEmbedEnabled",
|
|
6453
|
-
RootMarginForLazyLoad = "rootMarginForLazyLoad"
|
|
6534
|
+
RootMarginForLazyLoad = "rootMarginForLazyLoad",
|
|
6535
|
+
LiveboardXLSXCSVDownload = "isLiveboardXLSXCSVDownloadEnabled"
|
|
6454
6536
|
}
|
|
6455
6537
|
/**
|
|
6456
6538
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -7022,7 +7104,7 @@ export declare enum Action {
|
|
|
7022
7104
|
* The Favorites icon (*) for Answers,
|
|
7023
7105
|
* Liveboard, and data objects like Worksheet, Model,
|
|
7024
7106
|
* Tables and Views.
|
|
7025
|
-
* Allows adding an object to the user
|
|
7107
|
+
* Allows adding an object to the user's favorites list.
|
|
7026
7108
|
* @example
|
|
7027
7109
|
* ```js
|
|
7028
7110
|
* disabledActions: [Action.AddToFavorites]
|
|
@@ -7791,6 +7873,41 @@ export interface CustomActionPayload {
|
|
|
7791
7873
|
session: SessionInterface;
|
|
7792
7874
|
vizId?: string;
|
|
7793
7875
|
}
|
|
7876
|
+
export interface CustomAction {
|
|
7877
|
+
name: string;
|
|
7878
|
+
id: string;
|
|
7879
|
+
position: CustomActionsPosition;
|
|
7880
|
+
target: CustomActionTarget;
|
|
7881
|
+
metadataIds?: {
|
|
7882
|
+
answerIds?: string[];
|
|
7883
|
+
liveboardIds?: string[];
|
|
7884
|
+
vizIds?: string[];
|
|
7885
|
+
};
|
|
7886
|
+
dataModelIds?: {
|
|
7887
|
+
modelIds?: string[];
|
|
7888
|
+
modelColumnNames?: string[];
|
|
7889
|
+
};
|
|
7890
|
+
orgIds?: string[];
|
|
7891
|
+
groupIds?: string[];
|
|
7892
|
+
}
|
|
7893
|
+
/**
|
|
7894
|
+
* Enum options to show custom actions at different
|
|
7895
|
+
* positions in the application.
|
|
7896
|
+
*/
|
|
7897
|
+
export declare enum CustomActionsPosition {
|
|
7898
|
+
PRIMARY = "PRIMARY",
|
|
7899
|
+
MENU = "MENU",
|
|
7900
|
+
CONTEXTMENU = "CONTEXTMENU"
|
|
7901
|
+
}
|
|
7902
|
+
/**
|
|
7903
|
+
* Enum options to mention the target of the custom action.
|
|
7904
|
+
*/
|
|
7905
|
+
export declare enum CustomActionTarget {
|
|
7906
|
+
LIVEBOARD = "LIVEBOARD",
|
|
7907
|
+
VIZ = "VIZ",
|
|
7908
|
+
ANSWER = "ANSWER",
|
|
7909
|
+
SPOTTER = "SPOTTER"
|
|
7910
|
+
}
|
|
7794
7911
|
/**
|
|
7795
7912
|
* Enum options to show or suppress Visual Embed SDK and
|
|
7796
7913
|
* ThoughtSpot application logs in the console output.
|
|
@@ -7885,6 +8002,7 @@ export interface DefaultAppInitData {
|
|
|
7885
8002
|
hiddenHomeLeftNavItems: string[];
|
|
7886
8003
|
customVariablesForThirdPartyTools: Record<string, any>;
|
|
7887
8004
|
hiddenListColumns: ListPageColumns[];
|
|
8005
|
+
customActions: CustomAction[];
|
|
7888
8006
|
}
|
|
7889
8007
|
|
|
7890
8008
|
interface EmbedViewConfig extends AllEmbedViewConfig, EmbedEventHandlers {
|
|
@@ -8095,7 +8213,6 @@ export interface ConversationViewConfig extends SpotterEmbedViewConfig {
|
|
|
8095
8213
|
export declare class SpotterEmbed extends TsEmbed {
|
|
8096
8214
|
protected viewConfig: SpotterEmbedViewConfig;
|
|
8097
8215
|
constructor(container: HTMLElement, viewConfig: SpotterEmbedViewConfig);
|
|
8098
|
-
protected getEmbedParamsObject(): Record<any, any>;
|
|
8099
8216
|
getIframeSrc(): string;
|
|
8100
8217
|
render(): Promise<SpotterEmbed>;
|
|
8101
8218
|
}
|
|
@@ -9595,7 +9712,6 @@ export declare class TsEmbed {
|
|
|
9595
9712
|
* @param query
|
|
9596
9713
|
*/
|
|
9597
9714
|
protected getEmbedBasePath(query: string): string;
|
|
9598
|
-
protected getUpdateEmbedParamsObject(): Record<any, any>;
|
|
9599
9715
|
/**
|
|
9600
9716
|
* Common query params set for all the embed modes.
|
|
9601
9717
|
* @param queryParams
|
|
@@ -9611,7 +9727,6 @@ export declare class TsEmbed {
|
|
|
9611
9727
|
*/
|
|
9612
9728
|
protected getV1EmbedBasePath(queryString: string): string;
|
|
9613
9729
|
protected getEmbedParams(): string;
|
|
9614
|
-
protected getEmbedParamsObject(): Record<any, any>;
|
|
9615
9730
|
protected getRootIframeSrc(): string;
|
|
9616
9731
|
protected createIframeEl(frameSrc: string): HTMLIFrameElement;
|
|
9617
9732
|
protected handleInsertionIntoDOM(child: string | Node): void;
|
|
@@ -9704,10 +9819,10 @@ export declare class TsEmbed {
|
|
|
9704
9819
|
*/
|
|
9705
9820
|
off(messageType: EmbedEvent, callback: MessageCallback): typeof TsEmbed.prototype;
|
|
9706
9821
|
/**
|
|
9707
|
-
|
|
9708
|
-
|
|
9709
|
-
|
|
9710
|
-
|
|
9822
|
+
* @hidden
|
|
9823
|
+
* Internal state to track if the embed container is loaded.
|
|
9824
|
+
* This is used to trigger events after the embed container is loaded.
|
|
9825
|
+
*/
|
|
9711
9826
|
isEmbedContainerLoaded: boolean;
|
|
9712
9827
|
protected getPreRenderObj<T extends TsEmbed>(): T;
|
|
9713
9828
|
/**
|