@thoughtspot/visual-embed-sdk 1.37.0-temp-nav → 1.37.1-spotter-embed
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/auth.d.ts +7 -3
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +20 -0
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/auth.spec.js +48 -0
- package/cjs/src/auth.spec.js.map +1 -1
- package/cjs/src/embed/app.d.ts +2 -19
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +3 -8
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +4 -10
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.d.ts +39 -9
- package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/cjs/src/embed/bodyless-conversation.js +32 -5
- package/cjs/src/embed/bodyless-conversation.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.spec.js +4 -4
- package/cjs/src/embed/bodyless-conversation.spec.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +38 -11
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +28 -4
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +7 -7
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +3 -3
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +5 -3
- 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/react/index.d.ts +24 -5
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +21 -4
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/types.d.ts +51 -2
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +49 -0
- package/cjs/src/types.js.map +1 -1
- package/dist/index-DUaG1OG2.js +7447 -0
- package/dist/index-DnIvX1FR.js +7371 -0
- package/dist/index-OuiZF3zE.js +7371 -0
- package/dist/src/auth.d.ts +7 -3
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +2 -19
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/bodyless-conversation.d.ts +39 -9
- package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +38 -11
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -3
- 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/react/index.d.ts +24 -5
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +51 -2
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +122 -18
- package/dist/tsembed-react.js +342 -161
- package/dist/tsembed.es.js +84 -19
- package/dist/tsembed.js +306 -163
- package/dist/visual-embed-sdk-react-full.d.ts +161 -49
- package/dist/visual-embed-sdk-react.d.ts +161 -49
- package/dist/visual-embed-sdk.d.ts +138 -45
- package/lib/package.json +3 -3
- package/lib/src/auth.d.ts +7 -3
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +20 -0
- package/lib/src/auth.js.map +1 -1
- package/lib/src/auth.spec.js +48 -0
- package/lib/src/auth.spec.js.map +1 -1
- package/lib/src/embed/app.d.ts +2 -19
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +3 -8
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +4 -10
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.d.ts +39 -9
- package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/lib/src/embed/bodyless-conversation.js +30 -4
- package/lib/src/embed/bodyless-conversation.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.spec.js +5 -5
- package/lib/src/embed/bodyless-conversation.spec.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +38 -11
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +26 -3
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +8 -8
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +3 -3
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +3 -3
- 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/react/index.d.ts +24 -5
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +21 -4
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/types.d.ts +51 -2
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +49 -0
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +140 -47
- package/package.json +3 -3
- package/src/auth.spec.ts +52 -0
- package/src/auth.ts +23 -2
- package/src/embed/app.spec.ts +4 -10
- package/src/embed/app.ts +6 -30
- package/src/embed/bodyless-conversation.spec.ts +6 -6
- package/src/embed/bodyless-conversation.ts +43 -8
- package/src/embed/conversation.spec.ts +16 -16
- package/src/embed/conversation.ts +42 -11
- package/src/embed/ts-embed.spec.ts +0 -2
- package/src/index.ts +8 -4
- package/src/react/all-types-export.ts +1 -0
- package/src/react/index.tsx +36 -10
- package/src/types.ts +55 -0
|
@@ -195,6 +195,8 @@ export const SageEmbed: React.ForwardRefExoticComponent<SageEmbedProps & React.R
|
|
|
195
195
|
* ```
|
|
196
196
|
*/
|
|
197
197
|
export const PreRenderedSageEmbed: React.ForwardRefExoticComponent<SageEmbedProps & PreRenderProps & React.RefAttributes<_SageEmbed>>;
|
|
198
|
+
interface SpotterEmbedProps extends EmbedProps, SpotterEmbedViewConfig {
|
|
199
|
+
}
|
|
198
200
|
interface ConversationEmbedProps extends EmbedProps, ConversationViewConfig {
|
|
199
201
|
}
|
|
200
202
|
/**
|
|
@@ -202,6 +204,23 @@ interface ConversationEmbedProps extends EmbedProps, ConversationViewConfig {
|
|
|
202
204
|
* @example
|
|
203
205
|
* ```tsx
|
|
204
206
|
* function Sage() {
|
|
207
|
+
* return <SpotterEmbed
|
|
208
|
+
* worksheetId="<worksheet-id-here>"
|
|
209
|
+
* searchOptions={{
|
|
210
|
+
* searchQuery: "<search query to start with>"
|
|
211
|
+
* }}
|
|
212
|
+
* ... other view config props or event listeners.
|
|
213
|
+
* />
|
|
214
|
+
* }
|
|
215
|
+
* ```
|
|
216
|
+
*/
|
|
217
|
+
export const SpotterEmbed: React.ForwardRefExoticComponent<SpotterEmbedProps & React.RefAttributes<_SpotterEmbed>>;
|
|
218
|
+
/**
|
|
219
|
+
* React component for LLM based conversation BI.
|
|
220
|
+
* @deprecated This component is renamed to SpotterEmbed. Use {@link SpotterEmbed} instead.
|
|
221
|
+
* @example
|
|
222
|
+
* ```tsx
|
|
223
|
+
* function Sage() {
|
|
205
224
|
* return <ConversationEmbed
|
|
206
225
|
* worksheetId="<worksheet-id-here>"
|
|
207
226
|
* searchOptions={{
|
|
@@ -216,7 +235,7 @@ export const ConversationEmbed: React.ForwardRefExoticComponent<ConversationEmbe
|
|
|
216
235
|
/**
|
|
217
236
|
* React component for PreRendered Conversation embed.
|
|
218
237
|
*
|
|
219
|
-
* PreRenderedConversationEmbed will preRender the
|
|
238
|
+
* PreRenderedConversationEmbed will preRender the SpotterEmbed and will be hidden by
|
|
220
239
|
* default.
|
|
221
240
|
*
|
|
222
241
|
* SageEmbed with preRenderId passed will call showPreRender on the embed.
|
|
@@ -227,12 +246,12 @@ export const ConversationEmbed: React.ForwardRefExoticComponent<ConversationEmbe
|
|
|
227
246
|
* }
|
|
228
247
|
* ```
|
|
229
248
|
* function MyComponent() {
|
|
230
|
-
* return <
|
|
249
|
+
* return <SpotterEmbed preRenderId="someId" worksheetId="id" />
|
|
231
250
|
* }
|
|
232
251
|
* ```
|
|
233
252
|
*/
|
|
234
|
-
export const PreRenderedConversationEmbed: React.ForwardRefExoticComponent<
|
|
235
|
-
type EmbedComponent = typeof SearchEmbed | typeof AppEmbed | typeof LiveboardEmbed | typeof SearchBarEmbed | typeof SageEmbed | typeof ConversationEmbed;
|
|
253
|
+
export const PreRenderedConversationEmbed: React.ForwardRefExoticComponent<SpotterEmbedProps & PreRenderProps & React.RefAttributes<_SpotterEmbed>>;
|
|
254
|
+
type EmbedComponent = typeof SearchEmbed | typeof AppEmbed | typeof LiveboardEmbed | typeof SearchBarEmbed | typeof SageEmbed | typeof SpotterEmbed | typeof ConversationEmbed;
|
|
236
255
|
/**
|
|
237
256
|
* Get a reference to the embed component to trigger events on the component.
|
|
238
257
|
* @example
|
|
@@ -273,7 +292,7 @@ export function useInit(config: EmbedConfig): React.MutableRefObject<AuthEventEm
|
|
|
273
292
|
* @summary ThoughtSpot Visual Embed SDK
|
|
274
293
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
275
294
|
*/
|
|
276
|
-
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed,
|
|
295
|
+
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, VizPoint, CustomActionPayload, UIPassthroughEvent, ListPageColumns, };
|
|
277
296
|
|
|
278
297
|
export declare let loggedInStatus: boolean;
|
|
279
298
|
export declare let samlAuthWindow: Window;
|
|
@@ -324,7 +343,11 @@ export declare enum AuthStatus {
|
|
|
324
343
|
* or by the trigger button.
|
|
325
344
|
* @version SDK: 1.19.0
|
|
326
345
|
*/
|
|
327
|
-
WAITING_FOR_POPUP = "WAITING_FOR_POPUP"
|
|
346
|
+
WAITING_FOR_POPUP = "WAITING_FOR_POPUP",
|
|
347
|
+
/**
|
|
348
|
+
* Emitted when the SAML popup is closed without authentication
|
|
349
|
+
*/
|
|
350
|
+
SAML_POPUP_CLOSED_NO_AUTH = "SAML_POPUP_CLOSED_NO_AUTH"
|
|
328
351
|
}
|
|
329
352
|
/**
|
|
330
353
|
* Event emitter returned from {@link init}.
|
|
@@ -342,10 +365,10 @@ export interface AuthEventEmitter {
|
|
|
342
365
|
* @param event
|
|
343
366
|
* @param listener
|
|
344
367
|
*/
|
|
345
|
-
on(event: AuthStatus.SDK_SUCCESS | AuthStatus.LOGOUT | AuthStatus.WAITING_FOR_POPUP, listener: () => void): this;
|
|
368
|
+
on(event: AuthStatus.SDK_SUCCESS | AuthStatus.LOGOUT | AuthStatus.WAITING_FOR_POPUP | AuthStatus.SAML_POPUP_CLOSED_NO_AUTH, listener: () => void): this;
|
|
346
369
|
on(event: AuthStatus.SUCCESS, listener: (sessionInfo: any) => void): this;
|
|
347
370
|
once(event: AuthStatus.FAILURE, listener: (failureType: AuthFailureType) => void): this;
|
|
348
|
-
once(event: AuthStatus.SDK_SUCCESS | AuthStatus.LOGOUT | AuthStatus.WAITING_FOR_POPUP, listener: () => void): this;
|
|
371
|
+
once(event: AuthStatus.SDK_SUCCESS | AuthStatus.LOGOUT | AuthStatus.WAITING_FOR_POPUP | AuthStatus.SAML_POPUP_CLOSED_NO_AUTH, listener: () => void): this;
|
|
349
372
|
once(event: AuthStatus.SUCCESS, listener: (sessionInfo: any) => void): this;
|
|
350
373
|
/**
|
|
351
374
|
* Trigger an event on the emitter returned from init.
|
|
@@ -1073,20 +1096,6 @@ export declare enum HomePageSearchBarMode {
|
|
|
1073
1096
|
AI_ANSWER = "aiAnswer",
|
|
1074
1097
|
NONE = "none"
|
|
1075
1098
|
}
|
|
1076
|
-
export interface ModularHomeExperienceV3 {
|
|
1077
|
-
/**
|
|
1078
|
-
* Enabled the modular homepage version 3.
|
|
1079
|
-
*/
|
|
1080
|
-
enabled?: boolean;
|
|
1081
|
-
/**
|
|
1082
|
-
* homePage values are v2/v3,
|
|
1083
|
-
* v2 will show the modular homepage experience
|
|
1084
|
-
* v3 will show the new modular homepage v3 experience.
|
|
1085
|
-
*
|
|
1086
|
-
* @default v2
|
|
1087
|
-
*/
|
|
1088
|
-
homePage?: string;
|
|
1089
|
-
}
|
|
1090
1099
|
/**
|
|
1091
1100
|
* The view configuration for full app embedding.
|
|
1092
1101
|
* @group Embed components
|
|
@@ -1402,14 +1411,11 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
1402
1411
|
* ```js
|
|
1403
1412
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
1404
1413
|
* ... // other options
|
|
1405
|
-
* modularHomeExperienceV3 :
|
|
1406
|
-
* enabled: true,
|
|
1407
|
-
* homePage: 'v2'
|
|
1408
|
-
* },
|
|
1414
|
+
* modularHomeExperienceV3 : true,
|
|
1409
1415
|
* })
|
|
1410
1416
|
* ```
|
|
1411
1417
|
*/
|
|
1412
|
-
modularHomeExperienceV3?:
|
|
1418
|
+
modularHomeExperienceV3?: boolean;
|
|
1413
1419
|
/**
|
|
1414
1420
|
* Boolean to control if Liveboard header is sticky or not.
|
|
1415
1421
|
* @example
|
|
@@ -5465,7 +5471,55 @@ export declare enum HostEvent {
|
|
|
5465
5471
|
* ```
|
|
5466
5472
|
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
5467
5473
|
*/
|
|
5468
|
-
TransformTableVizData = "TransformTableVizData"
|
|
5474
|
+
TransformTableVizData = "TransformTableVizData",
|
|
5475
|
+
/**
|
|
5476
|
+
* Triggers the table visualization re-render with the updated data.
|
|
5477
|
+
* Includes the following properties:
|
|
5478
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
5479
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
5480
|
+
* payload.For example, { columnDataLite: []}`.
|
|
5481
|
+
*/
|
|
5482
|
+
SpotterSearch = "SpotterSearch",
|
|
5483
|
+
/**
|
|
5484
|
+
* Triggers the table visualization re-render with the updated data.
|
|
5485
|
+
* Includes the following properties:
|
|
5486
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
5487
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
5488
|
+
* payload.For example, { columnDataLite: []}`.
|
|
5489
|
+
*/
|
|
5490
|
+
EditLastPrompt = "EditLastPrompt",
|
|
5491
|
+
/**
|
|
5492
|
+
* Triggers the table visualization re-render with the updated data.
|
|
5493
|
+
* Includes the following properties:
|
|
5494
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
5495
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
5496
|
+
* payload.For example, { columnDataLite: []}`.
|
|
5497
|
+
*/
|
|
5498
|
+
PreviewSpotterData = "PreviewSpotterData",
|
|
5499
|
+
/**
|
|
5500
|
+
* Triggers the table visualization re-render with the updated data.
|
|
5501
|
+
* Includes the following properties:
|
|
5502
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
5503
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
5504
|
+
* payload.For example, { columnDataLite: []}`.
|
|
5505
|
+
*/
|
|
5506
|
+
ResetSpotterConversation = "ResetSpotterConversation",
|
|
5507
|
+
/**
|
|
5508
|
+
* Triggers the table visualization re-render with the updated data.
|
|
5509
|
+
* Includes the following properties:
|
|
5510
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
5511
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
5512
|
+
* payload.For example, { columnDataLite: []}`.
|
|
5513
|
+
*/
|
|
5514
|
+
DeleteLastPrompt = "DeleteLastPrompt",
|
|
5515
|
+
/**
|
|
5516
|
+
* Triggers the table visualization re-render with the updated data.
|
|
5517
|
+
* Includes the following properties:
|
|
5518
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
5519
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
5520
|
+
* payload.For example, { columnDataLite: []}`.
|
|
5521
|
+
*/
|
|
5522
|
+
AnswerChartSwitcher = "answerChartSwitcher"
|
|
5469
5523
|
}
|
|
5470
5524
|
/**
|
|
5471
5525
|
* The different visual modes that the data sources panel within
|
|
@@ -5596,7 +5650,8 @@ export declare enum Param {
|
|
|
5596
5650
|
preAuthCache = "preAuthCache",
|
|
5597
5651
|
ShowSpotterLimitations = "showSpotterLimitations",
|
|
5598
5652
|
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF",
|
|
5599
|
-
PrimaryAction = "primaryAction"
|
|
5653
|
+
PrimaryAction = "primaryAction",
|
|
5654
|
+
isSpotterAgentEmbed = "isSpotterAgentEmbed"
|
|
5600
5655
|
}
|
|
5601
5656
|
/**
|
|
5602
5657
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -7001,10 +7056,10 @@ export interface SearchOptions {
|
|
|
7001
7056
|
searchQuery: string;
|
|
7002
7057
|
}
|
|
7003
7058
|
/**
|
|
7004
|
-
* The configuration for the embedded
|
|
7059
|
+
* The configuration for the embedded spotterEmbed options.
|
|
7005
7060
|
* @group Embed components
|
|
7006
7061
|
*/
|
|
7007
|
-
export interface
|
|
7062
|
+
export interface SpotterEmbedViewConfig extends ViewConfig {
|
|
7008
7063
|
/**
|
|
7009
7064
|
* The ID of the worksheet to use for the conversation.
|
|
7010
7065
|
*/
|
|
@@ -7018,7 +7073,7 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
7018
7073
|
* but still display the selected data source.
|
|
7019
7074
|
* @example
|
|
7020
7075
|
* ```js
|
|
7021
|
-
* const embed = new
|
|
7076
|
+
* const embed = new SpotterEmbed('#tsEmbed', {
|
|
7022
7077
|
* ... // other options
|
|
7023
7078
|
* disableSourceSelection : true,
|
|
7024
7079
|
* })
|
|
@@ -7030,7 +7085,7 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
7030
7085
|
* hideSourceSelection : Hide data source selection
|
|
7031
7086
|
* @example
|
|
7032
7087
|
* ```js
|
|
7033
|
-
* const embed = new
|
|
7088
|
+
* const embed = new SpotterEmbed('#tsEmbed', {
|
|
7034
7089
|
* ... // other options
|
|
7035
7090
|
* hideSourceSelection : true,
|
|
7036
7091
|
* })
|
|
@@ -7057,7 +7112,7 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
7057
7112
|
* default is false.
|
|
7058
7113
|
* @example
|
|
7059
7114
|
* ```js
|
|
7060
|
-
* const embed = new
|
|
7115
|
+
* const embed = new SpotterEmbed('#tsEmbed', {
|
|
7061
7116
|
* ... // other options
|
|
7062
7117
|
* showSpotterLimitations : true,
|
|
7063
7118
|
* })
|
|
@@ -7070,7 +7125,7 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
7070
7125
|
* the initial screen of the conversation.
|
|
7071
7126
|
* @example
|
|
7072
7127
|
* ```js
|
|
7073
|
-
* const embed = new
|
|
7128
|
+
* const embed = new SpotterEmbed('#tsEmbed', {
|
|
7074
7129
|
* ... // other options
|
|
7075
7130
|
* hideSampleQuestions : true,
|
|
7076
7131
|
* })
|
|
@@ -7079,12 +7134,41 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
7079
7134
|
*/
|
|
7080
7135
|
hideSampleQuestions?: boolean;
|
|
7081
7136
|
}
|
|
7137
|
+
/**
|
|
7138
|
+
* The configuration for the embedded spotterEmbed options.
|
|
7139
|
+
* @deprecated Renamed to SpotterEmbedViewConfig
|
|
7140
|
+
* @group Embed components
|
|
7141
|
+
*/
|
|
7142
|
+
export interface ConversationViewConfig extends SpotterEmbedViewConfig {
|
|
7143
|
+
}
|
|
7144
|
+
/**
|
|
7145
|
+
* Embed ThoughtSpot AI Conversation.
|
|
7146
|
+
* @group Embed components
|
|
7147
|
+
* @example
|
|
7148
|
+
* ```js
|
|
7149
|
+
* const conversation = new SpotterEmbed('#tsEmbed', {
|
|
7150
|
+
* worksheetId: 'worksheetId',
|
|
7151
|
+
* searchOptions: {
|
|
7152
|
+
* searchQuery: 'searchQuery',
|
|
7153
|
+
* },
|
|
7154
|
+
* });
|
|
7155
|
+
* conversation.render();
|
|
7156
|
+
* ```
|
|
7157
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.10.0.cl
|
|
7158
|
+
*/
|
|
7159
|
+
export declare class SpotterEmbed extends TsEmbed {
|
|
7160
|
+
protected viewConfig: SpotterEmbedViewConfig;
|
|
7161
|
+
constructor(container: HTMLElement, viewConfig: SpotterEmbedViewConfig);
|
|
7162
|
+
getIframeSrc(): string;
|
|
7163
|
+
render(): Promise<SpotterEmbed>;
|
|
7164
|
+
}
|
|
7082
7165
|
/**
|
|
7083
7166
|
* Embed ThoughtSpot AI Conversation.
|
|
7167
|
+
* @deprecated Renamed to SpotterEmbed
|
|
7084
7168
|
* @group Embed components
|
|
7085
7169
|
* @example
|
|
7086
7170
|
* ```js
|
|
7087
|
-
* const conversation = new
|
|
7171
|
+
* const conversation = new SpotterEmbed('#tsEmbed', {
|
|
7088
7172
|
* worksheetId: 'worksheetId',
|
|
7089
7173
|
* searchOptions: {
|
|
7090
7174
|
* searchQuery: 'searchQuery',
|
|
@@ -7092,13 +7176,11 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
7092
7176
|
* });
|
|
7093
7177
|
* conversation.render();
|
|
7094
7178
|
* ```
|
|
7095
|
-
* @version SDK: 1.
|
|
7179
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
7096
7180
|
*/
|
|
7097
|
-
export declare class ConversationEmbed extends
|
|
7181
|
+
export declare class ConversationEmbed extends SpotterEmbed {
|
|
7098
7182
|
protected viewConfig: ConversationViewConfig;
|
|
7099
7183
|
constructor(container: HTMLElement, viewConfig: ConversationViewConfig);
|
|
7100
|
-
getIframeSrc(): string;
|
|
7101
|
-
render(): Promise<ConversationEmbed>;
|
|
7102
7184
|
}
|
|
7103
7185
|
|
|
7104
7186
|
import '../utils/with-resolvers-polyfill';
|
|
@@ -7246,21 +7328,28 @@ export declare function reset(): void;
|
|
|
7246
7328
|
* Configuration for bodyless conversation options.
|
|
7247
7329
|
* @group Embed components
|
|
7248
7330
|
*/
|
|
7249
|
-
export interface
|
|
7331
|
+
export interface SpotterAgentEmbedViewConfig extends ViewConfig {
|
|
7250
7332
|
/**
|
|
7251
7333
|
* The ID of the worksheet to use for the conversation.
|
|
7252
7334
|
*/
|
|
7253
7335
|
worksheetId: string;
|
|
7254
7336
|
}
|
|
7255
|
-
|
|
7337
|
+
/**
|
|
7338
|
+
* Configuration for conversation options.
|
|
7339
|
+
* @deprecated Renamed to SpotterAgentEmbedViewConfig
|
|
7340
|
+
* @group Embed components
|
|
7341
|
+
*/
|
|
7342
|
+
export interface BodylessConversationViewConfig extends SpotterAgentEmbedViewConfig {
|
|
7343
|
+
}
|
|
7344
|
+
interface SpotterAgentMessageViewConfig extends SpotterAgentEmbedViewConfig {
|
|
7256
7345
|
sessionId: string;
|
|
7257
7346
|
genNo: number;
|
|
7258
7347
|
acSessionId: string;
|
|
7259
7348
|
acGenNo: number;
|
|
7260
7349
|
}
|
|
7261
7350
|
declare class ConversationMessage extends TsEmbed {
|
|
7262
|
-
protected viewConfig:
|
|
7263
|
-
constructor(container: HTMLElement, viewConfig:
|
|
7351
|
+
protected viewConfig: SpotterAgentMessageViewConfig;
|
|
7352
|
+
constructor(container: HTMLElement, viewConfig: SpotterAgentMessageViewConfig);
|
|
7264
7353
|
getIframeSrc(): string;
|
|
7265
7354
|
render(): Promise<ConversationMessage>;
|
|
7266
7355
|
}
|
|
@@ -7269,9 +7358,9 @@ declare class ConversationMessage extends TsEmbed {
|
|
|
7269
7358
|
* chatbots or other conversational interfaces.
|
|
7270
7359
|
* @example
|
|
7271
7360
|
* ```js
|
|
7272
|
-
* import {
|
|
7361
|
+
* import { SpotterAgentEmbed } from '@thoughtspot/visual-embed-sdk';
|
|
7273
7362
|
*
|
|
7274
|
-
* const conversation = new
|
|
7363
|
+
* const conversation = new SpotterAgentEmbed({
|
|
7275
7364
|
* worksheetId: 'worksheetId',
|
|
7276
7365
|
* });
|
|
7277
7366
|
*
|
|
@@ -7281,10 +7370,10 @@ declare class ConversationMessage extends TsEmbed {
|
|
|
7281
7370
|
* document.body.appendChild(container); // or to any other element
|
|
7282
7371
|
* ```
|
|
7283
7372
|
* @group Embed components
|
|
7284
|
-
* @version SDK: 1.
|
|
7373
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
7285
7374
|
*/
|
|
7286
|
-
export declare class
|
|
7287
|
-
constructor(viewConfig:
|
|
7375
|
+
export declare class SpotterAgentEmbed {
|
|
7376
|
+
constructor(viewConfig: SpotterAgentEmbedViewConfig);
|
|
7288
7377
|
sendMessage(userMessage: string): Promise<{
|
|
7289
7378
|
error: any;
|
|
7290
7379
|
container?: undefined;
|
|
@@ -7295,6 +7384,29 @@ export declare class BodylessConversation {
|
|
|
7295
7384
|
error?: undefined;
|
|
7296
7385
|
}>;
|
|
7297
7386
|
}
|
|
7387
|
+
/**
|
|
7388
|
+
* Create a conversation embed, which can be integrated inside
|
|
7389
|
+
* chatbots or other conversational interfaces.
|
|
7390
|
+
* @deprecated Renamed to SpotterAgentEmbed
|
|
7391
|
+
* @example
|
|
7392
|
+
* ```js
|
|
7393
|
+
* import { SpotterAgentEmbed } from '@thoughtspot/visual-embed-sdk';
|
|
7394
|
+
*
|
|
7395
|
+
* const conversation = new SpotterAgentEmbed({
|
|
7396
|
+
* worksheetId: 'worksheetId',
|
|
7397
|
+
* });
|
|
7398
|
+
*
|
|
7399
|
+
* const { container, error } = await conversation.sendMessage('show me sales by region');
|
|
7400
|
+
*
|
|
7401
|
+
* // append the container to the DOM
|
|
7402
|
+
* document.body.appendChild(container); // or to any other element
|
|
7403
|
+
* ```
|
|
7404
|
+
* @group Embed components
|
|
7405
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
7406
|
+
*/
|
|
7407
|
+
export declare class BodylessConversation extends SpotterAgentEmbed {
|
|
7408
|
+
constructor(viewConfig: BodylessConversationViewConfig);
|
|
7409
|
+
}
|
|
7298
7410
|
export {};
|
|
7299
7411
|
|
|
7300
7412
|
export type SessionInfo = {
|