@thoughtspot/visual-embed-sdk 1.36.8 → 1.36.9-primary-actions
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 +15 -12
- package/cjs/src/embed/bodyless-conversation.d.ts +16 -0
- package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/cjs/src/embed/bodyless-conversation.js +1 -1
- package/cjs/src/embed/bodyless-conversation.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts +1 -1
- package/cjs/src/embed/search.d.ts +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +14 -2
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +111 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +2 -2
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +2 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/pages/embed-test.page.d.ts +8 -0
- package/cjs/src/pages/embed-test.page.d.ts.map +1 -0
- package/cjs/src/pages/embed-test.page.js +20 -0
- package/cjs/src/pages/embed-test.page.js.map +1 -0
- package/cjs/src/pages/home.page.d.ts +6 -0
- package/cjs/src/pages/home.page.d.ts.map +1 -0
- package/cjs/src/pages/home.page.js +12 -0
- package/cjs/src/pages/home.page.js.map +1 -0
- package/cjs/src/pages/login.page.d.ts +15 -0
- package/cjs/src/pages/login.page.d.ts.map +1 -0
- package/cjs/src/pages/login.page.js +22 -0
- package/cjs/src/pages/login.page.js.map +1 -0
- 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/tests/auth.test.d.ts +1 -0
- package/cjs/src/tests/auth.test.d.ts.map +1 -0
- package/cjs/src/tests/auth.test.js +1 -0
- package/cjs/src/tests/auth.test.js.map +1 -0
- package/cjs/src/tests/e2e/auth.spec.d.ts +2 -0
- package/cjs/src/tests/e2e/auth.spec.d.ts.map +1 -0
- package/cjs/src/tests/e2e/auth.spec.js +54 -0
- package/cjs/src/tests/e2e/auth.spec.js.map +1 -0
- package/cjs/src/types.d.ts +82 -10
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +45 -9
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-BnVGyY5S.js → index-BJx3m5_V.js} +1 -1
- package/dist/index-Do_T8J8z.js +7370 -0
- package/dist/src/embed/bodyless-conversation.d.ts +16 -0
- package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts +1 -1
- package/dist/src/embed/search.d.ts +1 -1
- package/dist/src/embed/ts-embed.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/pages/embed-test.page.d.ts +8 -0
- package/dist/src/pages/embed-test.page.d.ts.map +1 -0
- package/dist/src/pages/home.page.d.ts +6 -0
- package/dist/src/pages/home.page.d.ts.map +1 -0
- package/dist/src/pages/login.page.d.ts +15 -0
- package/dist/src/pages/login.page.d.ts.map +1 -0
- package/dist/src/react/index.d.ts +1 -1
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/tests/auth.test.d.ts +1 -0
- package/dist/src/tests/auth.test.d.ts.map +1 -0
- package/dist/src/tests/e2e/auth.spec.d.ts +2 -0
- package/dist/src/tests/e2e/auth.spec.d.ts.map +1 -0
- package/dist/src/types.d.ts +82 -10
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +62 -14
- package/dist/tsembed-react.js +60 -12
- package/dist/tsembed.es.js +63 -15
- package/dist/tsembed.js +61 -13
- package/dist/visual-embed-sdk-react-full.d.ts +100 -13
- package/dist/visual-embed-sdk-react.d.ts +100 -13
- package/dist/visual-embed-sdk.d.ts +100 -13
- package/lib/package.json +15 -12
- package/lib/src/embed/bodyless-conversation.d.ts +16 -0
- package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/lib/src/embed/bodyless-conversation.js +1 -1
- package/lib/src/embed/bodyless-conversation.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +1 -1
- package/lib/src/embed/search.d.ts +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +14 -2
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +111 -0
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +2 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +2 -2
- package/lib/src/index.js.map +1 -1
- package/lib/src/pages/embed-test.page.d.ts +8 -0
- package/lib/src/pages/embed-test.page.d.ts.map +1 -0
- package/lib/src/pages/embed-test.page.js +16 -0
- package/lib/src/pages/embed-test.page.js.map +1 -0
- package/lib/src/pages/home.page.d.ts +6 -0
- package/lib/src/pages/home.page.d.ts.map +1 -0
- package/lib/src/pages/home.page.js +8 -0
- package/lib/src/pages/home.page.js.map +1 -0
- package/lib/src/pages/login.page.d.ts +15 -0
- package/lib/src/pages/login.page.d.ts.map +1 -0
- package/lib/src/pages/login.page.js +18 -0
- package/lib/src/pages/login.page.js.map +1 -0
- 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/tests/auth.test.d.ts +1 -0
- package/lib/src/tests/auth.test.d.ts.map +1 -0
- package/lib/src/tests/auth.test.js +1 -0
- package/lib/src/tests/auth.test.js.map +1 -0
- package/lib/src/tests/e2e/auth.spec.d.ts +2 -0
- package/lib/src/tests/e2e/auth.spec.d.ts.map +1 -0
- package/lib/src/tests/e2e/auth.spec.js +52 -0
- package/lib/src/tests/e2e/auth.spec.js.map +1 -0
- package/lib/src/types.d.ts +82 -10
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +44 -8
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +102 -14
- package/package.json +15 -12
- package/src/embed/bodyless-conversation.ts +1 -1
- package/src/embed/search-bar.tsx +1 -1
- package/src/embed/search.ts +1 -1
- package/src/embed/ts-embed.spec.ts +118 -0
- package/src/embed/ts-embed.ts +15 -0
- package/src/index.ts +2 -0
- package/src/react/index.tsx +1 -0
- package/src/types.ts +84 -10
|
@@ -20,7 +20,7 @@ declare module '@thoughtspot/visual-embed-sdk' {
|
|
|
20
20
|
import { ConversationEmbed, ConversationViewConfig } from '@thoughtspot/visual-embed-sdk/embed/conversation';
|
|
21
21
|
import { AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter } from '@thoughtspot/visual-embed-sdk/auth';
|
|
22
22
|
import { getSessionInfo } from '@thoughtspot/visual-embed-sdk/utils/sessionInfoService';
|
|
23
|
-
import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, PrefetchFeatures, FrameParams, DOMSelector, HomeLeftNavItem, HomepageModule, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, ContextMenuTriggerOptions, RuntimeParameter, LogLevel, VizPoint, CustomActionPayload } from '@thoughtspot/visual-embed-sdk/types';
|
|
23
|
+
import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, PrefetchFeatures, FrameParams, DOMSelector, HomeLeftNavItem, HomepageModule, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, ContextMenuTriggerOptions, RuntimeParameter, LogLevel, VizPoint, CustomActionPayload, ListPageColumns } from '@thoughtspot/visual-embed-sdk/types';
|
|
24
24
|
import { CustomCssVariables } from '@thoughtspot/visual-embed-sdk/css-variables';
|
|
25
25
|
import { SageEmbed, SageViewConfig } from '@thoughtspot/visual-embed-sdk/embed/sage';
|
|
26
26
|
import { AnswerService, SessionInterface, UnderlyingDataPoint } from '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answerService';
|
|
@@ -30,7 +30,7 @@ declare module '@thoughtspot/visual-embed-sdk' {
|
|
|
30
30
|
import { getAnswerFromQuery } from '@thoughtspot/visual-embed-sdk/utils/graphql/nlsService/nls-answer-service';
|
|
31
31
|
import { createLiveboardWithAnswers } from '@thoughtspot/visual-embed-sdk/utils/liveboardService/liveboardService';
|
|
32
32
|
import { UIPassthroughEvent } from '@thoughtspot/visual-embed-sdk/embed/hostEventClient/contracts';
|
|
33
|
-
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, UIPassthroughEvent, };
|
|
33
|
+
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, UIPassthroughEvent, ListPageColumns, };
|
|
34
34
|
export { resetCachedAuthToken } from '@thoughtspot/visual-embed-sdk/authToken';
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -1309,7 +1309,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
1309
1309
|
/**
|
|
1310
1310
|
* Exclude the search token string from the URL.
|
|
1311
1311
|
* If set to true, the search token string is not appended to the URL.
|
|
1312
|
-
* @version: SDK: 1.35.7 | ThoughtSpot: 10.
|
|
1312
|
+
* @version: SDK: 1.35.7 | ThoughtSpot: 10.8.0.cl
|
|
1313
1313
|
* @example
|
|
1314
1314
|
* ```js
|
|
1315
1315
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -1505,7 +1505,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search-bar' {
|
|
|
1505
1505
|
/**
|
|
1506
1506
|
* Exclude the search token string from the URL.
|
|
1507
1507
|
* If set to true, the search token string is not appended to the URL.
|
|
1508
|
-
* @version: SDK: 1.35.7 | ThoughtSpot: 10.
|
|
1508
|
+
* @version: SDK: 1.35.7 | ThoughtSpot: 10.8.0.cl
|
|
1509
1509
|
* @example
|
|
1510
1510
|
* ```js
|
|
1511
1511
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -1547,6 +1547,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search-bar' {
|
|
|
1547
1547
|
|
|
1548
1548
|
declare module '@thoughtspot/visual-embed-sdk/embed/bodyless-conversation' {
|
|
1549
1549
|
import { ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
|
|
1550
|
+
import { TsEmbed } from '@thoughtspot/visual-embed-sdk/embed/ts-embed';
|
|
1550
1551
|
/**
|
|
1551
1552
|
* Configuration for bodyless conversation options.
|
|
1552
1553
|
* @group Embed components
|
|
@@ -1557,6 +1558,18 @@ declare module '@thoughtspot/visual-embed-sdk/embed/bodyless-conversation' {
|
|
|
1557
1558
|
*/
|
|
1558
1559
|
worksheetId: string;
|
|
1559
1560
|
}
|
|
1561
|
+
interface ConversationMessageViewConfig extends BodylessConversationViewConfig {
|
|
1562
|
+
sessionId: string;
|
|
1563
|
+
genNo: number;
|
|
1564
|
+
acSessionId: string;
|
|
1565
|
+
acGenNo: number;
|
|
1566
|
+
}
|
|
1567
|
+
class ConversationMessage extends TsEmbed {
|
|
1568
|
+
protected viewConfig: ConversationMessageViewConfig;
|
|
1569
|
+
constructor(container: HTMLElement, viewConfig: ConversationMessageViewConfig);
|
|
1570
|
+
getIframeSrc(): string;
|
|
1571
|
+
render(): Promise<ConversationMessage>;
|
|
1572
|
+
}
|
|
1560
1573
|
/**
|
|
1561
1574
|
* Create a conversation embed, which can be integrated inside
|
|
1562
1575
|
* chatbots or other conversational interfaces.
|
|
@@ -1581,11 +1594,14 @@ declare module '@thoughtspot/visual-embed-sdk/embed/bodyless-conversation' {
|
|
|
1581
1594
|
sendMessage(userMessage: string): Promise<{
|
|
1582
1595
|
error: any;
|
|
1583
1596
|
container?: undefined;
|
|
1597
|
+
viz?: undefined;
|
|
1584
1598
|
} | {
|
|
1585
1599
|
container: HTMLDivElement;
|
|
1600
|
+
viz: ConversationMessage;
|
|
1586
1601
|
error?: undefined;
|
|
1587
1602
|
}>;
|
|
1588
1603
|
}
|
|
1604
|
+
export {};
|
|
1589
1605
|
}
|
|
1590
1606
|
|
|
1591
1607
|
declare module '@thoughtspot/visual-embed-sdk/embed/conversation' {
|
|
@@ -2280,6 +2296,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2280
2296
|
* @version SDK: 1.26.0 | 9.7.0.cl
|
|
2281
2297
|
*/
|
|
2282
2298
|
strings?: Record<string, any>;
|
|
2299
|
+
stringIDs?: Record<string, string>;
|
|
2300
|
+
stringIDsUrl?: string;
|
|
2283
2301
|
[key: string]: any;
|
|
2284
2302
|
};
|
|
2285
2303
|
iconSpriteUrl?: string;
|
|
@@ -2590,7 +2608,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2590
2608
|
* }
|
|
2591
2609
|
* });
|
|
2592
2610
|
* ```
|
|
2593
|
-
* @version SDK 1.37.0 | ThoughtSpot: 10.
|
|
2611
|
+
* @version SDK 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
2594
2612
|
*/
|
|
2595
2613
|
customVariablesForThirdPartyTools?: Record<string, any>;
|
|
2596
2614
|
disablePreauthCache?: boolean;
|
|
@@ -2669,6 +2687,20 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2669
2687
|
* ```
|
|
2670
2688
|
*/
|
|
2671
2689
|
disabledActions?: Action[];
|
|
2690
|
+
/**
|
|
2691
|
+
* The list of actions to display as primary actions,
|
|
2692
|
+
* These actions will be displayed upfront in the liveboard/app embed.
|
|
2693
|
+
* Use this to display actions.
|
|
2694
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
2695
|
+
* @example
|
|
2696
|
+
* ```js
|
|
2697
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2698
|
+
* ... // other liveboard view config
|
|
2699
|
+
* primaryActions: [Action.Download]
|
|
2700
|
+
* });
|
|
2701
|
+
* ```
|
|
2702
|
+
*/
|
|
2703
|
+
primaryActions?: Action[];
|
|
2672
2704
|
/**
|
|
2673
2705
|
* The tooltip to display for disabled actions.
|
|
2674
2706
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
@@ -3031,6 +3063,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3031
3063
|
* });
|
|
3032
3064
|
*/
|
|
3033
3065
|
collapseSearchBar?: boolean;
|
|
3066
|
+
/**
|
|
3067
|
+
* This flag can be used to expose translation IDs on the embedded app.
|
|
3068
|
+
* @default false
|
|
3069
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
3070
|
+
*/
|
|
3071
|
+
exposeTranslationIDs?: boolean;
|
|
3034
3072
|
/**
|
|
3035
3073
|
* This flag can be used to disable links inside the embedded app,
|
|
3036
3074
|
* and disable redirection of links in a new tab.
|
|
@@ -3085,6 +3123,21 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3085
3123
|
* @version SDK: 1.35.0 | ThoughtSpot: 10.5.0.cl
|
|
3086
3124
|
*/
|
|
3087
3125
|
overrideOrgId?: number;
|
|
3126
|
+
/**
|
|
3127
|
+
* Hide list page columns
|
|
3128
|
+
* For example: hiddenListColumns = [ListPageColumns.Author]
|
|
3129
|
+
*
|
|
3130
|
+
* **Note**: This option is appplicable only in full app embedding.
|
|
3131
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3132
|
+
* @example
|
|
3133
|
+
* ```js
|
|
3134
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
3135
|
+
* ... // other options
|
|
3136
|
+
* hiddenListColumns : [ListPageColumns.Favorite,ListPageColumns.Author],
|
|
3137
|
+
* })
|
|
3138
|
+
* ```
|
|
3139
|
+
*/
|
|
3140
|
+
hiddenListColumns?: ListPageColumns[];
|
|
3088
3141
|
}
|
|
3089
3142
|
/**
|
|
3090
3143
|
* MessagePayload: Embed event payload: message type, data and status (start/end)
|
|
@@ -3230,6 +3283,33 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3230
3283
|
*/
|
|
3231
3284
|
Learning = "LEARNING"
|
|
3232
3285
|
}
|
|
3286
|
+
/**
|
|
3287
|
+
* List page columns that can be hidden.
|
|
3288
|
+
* **Note**: This option is applicable only in full app embedding.
|
|
3289
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3290
|
+
*/
|
|
3291
|
+
export enum ListPageColumns {
|
|
3292
|
+
/**
|
|
3293
|
+
* Favourite
|
|
3294
|
+
*/
|
|
3295
|
+
Favourite = "FAVOURITE",
|
|
3296
|
+
/**
|
|
3297
|
+
* Tags
|
|
3298
|
+
*/
|
|
3299
|
+
Tags = "TAGS",
|
|
3300
|
+
/**
|
|
3301
|
+
* Author
|
|
3302
|
+
*/
|
|
3303
|
+
Author = "AUTHOR",
|
|
3304
|
+
/**
|
|
3305
|
+
* Last viewed/Last modified
|
|
3306
|
+
*/
|
|
3307
|
+
DateSort = "DATE_SORT",
|
|
3308
|
+
/**
|
|
3309
|
+
* Share
|
|
3310
|
+
*/
|
|
3311
|
+
Share = "SHARE"
|
|
3312
|
+
}
|
|
3233
3313
|
/**
|
|
3234
3314
|
* A filter that can be applied to ThoughtSpot answers, Liveboards, or
|
|
3235
3315
|
* visualizations at runtime.
|
|
@@ -4252,16 +4332,19 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4252
4332
|
/**
|
|
4253
4333
|
* Emits when a table visualization is rendered in
|
|
4254
4334
|
* the ThoughtSpot embedded app.
|
|
4335
|
+
*
|
|
4255
4336
|
* You can also use this event as a hook to trigger host events
|
|
4256
4337
|
* such as `HostEvent.TransformTableVizData` on the table visualization.
|
|
4257
4338
|
* The event payload contains the data used in the rendered table.
|
|
4258
4339
|
* You can extract the relevant data from the payload
|
|
4259
4340
|
* stored in `payload.data.data.columnDataLite`.
|
|
4341
|
+
*
|
|
4260
4342
|
* `columnDataLite` is a multidimensional array that contains
|
|
4261
4343
|
* data values for each column, which was used in the query to
|
|
4262
4344
|
* generate the table visualization. To find and modify specific cell data,
|
|
4263
4345
|
* you can either loop through the array or directly access a cell if
|
|
4264
4346
|
* you know its position and data index.
|
|
4347
|
+
*
|
|
4265
4348
|
* In the following code sample, the first cell in the first column
|
|
4266
4349
|
* (`columnDataLite[0].dataValue[0]`) is set to `new fob`.
|
|
4267
4350
|
* Note that any changes made to the data in the payload will only update the
|
|
@@ -4271,6 +4354,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4271
4354
|
* payload in the `columnDataLite` is passed on to
|
|
4272
4355
|
* `HostEvent.TransformTableVizData` and trigger an update to
|
|
4273
4356
|
* the table visualization.
|
|
4357
|
+
*
|
|
4274
4358
|
* If the Row-Level Security (RLS) rules are applied on the
|
|
4275
4359
|
* Worksheet or Model, exercise caution when changing column
|
|
4276
4360
|
* or table cell values to maintain data security.
|
|
@@ -4285,7 +4369,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4285
4369
|
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
4286
4370
|
* })
|
|
4287
4371
|
* ```
|
|
4288
|
-
* @version SDK: 1.
|
|
4372
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
|
|
4289
4373
|
*/
|
|
4290
4374
|
TableVizRendered = "TableVizRendered",
|
|
4291
4375
|
/**
|
|
@@ -4298,7 +4382,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4298
4382
|
* console.log('payload', payload);
|
|
4299
4383
|
* })
|
|
4300
4384
|
*```
|
|
4301
|
-
* @version SDK : 1.
|
|
4385
|
+
* @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
|
|
4302
4386
|
*/
|
|
4303
4387
|
CreateLiveboard = "createLiveboard",
|
|
4304
4388
|
/**
|
|
@@ -4745,7 +4829,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4745
4829
|
* ```js
|
|
4746
4830
|
* liveboardEmbed.trigger(HostEvent.Remove)
|
|
4747
4831
|
* ```
|
|
4748
|
-
* @version SDK: 1.
|
|
4832
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
|
|
4749
4833
|
*/
|
|
4750
4834
|
Remove = "delete",
|
|
4751
4835
|
/**
|
|
@@ -5293,7 +5377,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
5293
5377
|
* ```js
|
|
5294
5378
|
* liveboardEmbed.trigger(HostEvent.InfoSuccess, data);
|
|
5295
5379
|
*```
|
|
5296
|
-
* @version SDK: 1.36.0 |
|
|
5380
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
5297
5381
|
*/
|
|
5298
5382
|
InfoSuccess = "InfoSuccess",
|
|
5299
5383
|
/**
|
|
@@ -5340,7 +5424,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
5340
5424
|
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
5341
5425
|
* })
|
|
5342
5426
|
* ```
|
|
5343
|
-
* @version SDK: 1.
|
|
5427
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
|
|
5344
5428
|
*/
|
|
5345
5429
|
TransformTableVizData = "TransformTableVizData"
|
|
5346
5430
|
}
|
|
@@ -5391,6 +5475,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
5391
5475
|
livedBoardEmbed = "isLiveboardEmbed",
|
|
5392
5476
|
searchEmbed = "isSearchEmbed",
|
|
5393
5477
|
vizEmbed = "isVizEmbed",
|
|
5478
|
+
StringIDsUrl = "overrideStringIDsUrl",
|
|
5394
5479
|
Version = "sdkVersion",
|
|
5395
5480
|
ViewPortHeight = "viewPortHeight",
|
|
5396
5481
|
ViewPortWidth = "viewPortWidth",
|
|
@@ -5440,6 +5525,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
5440
5525
|
HideSageAnswerHeader = "hideSageAnswerHeader",
|
|
5441
5526
|
HideSearchBar = "hideSearchBar",
|
|
5442
5527
|
ClientLogLevel = "clientLogLevel",
|
|
5528
|
+
ExposeTranslationIDs = "exposeTranslationIDs",
|
|
5443
5529
|
OverrideNativeConsole = "overrideConsoleLogs",
|
|
5444
5530
|
enableAskSage = "enableAskSage",
|
|
5445
5531
|
CollapseSearchBarInitially = "collapseSearchBarInitially",
|
|
@@ -5466,7 +5552,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
5466
5552
|
DataSourceId = "dataSourceId",
|
|
5467
5553
|
preAuthCache = "preAuthCache",
|
|
5468
5554
|
ShowSpotterLimitations = "showSpotterLimitations",
|
|
5469
|
-
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF"
|
|
5555
|
+
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF",
|
|
5556
|
+
PrimaryActions = "primaryActions"
|
|
5470
5557
|
}
|
|
5471
5558
|
/**
|
|
5472
5559
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -5631,7 +5718,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
5631
5718
|
* The **Collapse data panel** icon on the Search page.
|
|
5632
5719
|
* Collapses the data panel view.
|
|
5633
5720
|
*
|
|
5634
|
-
* @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
|
|
5721
|
+
* @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
|
|
5635
5722
|
*
|
|
5636
5723
|
* @example
|
|
5637
5724
|
* ```js
|
|
@@ -6697,8 +6784,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
6697
6784
|
VizEmbed = "VizEmbed"
|
|
6698
6785
|
}
|
|
6699
6786
|
/**
|
|
6700
|
-
* Enum for options to change context trigger
|
|
6701
|
-
* BOTH_CLICKS option is
|
|
6787
|
+
* Enum for options to change context trigger.
|
|
6788
|
+
* The `BOTH_CLICKS` option is available from 10.8.0.cl.
|
|
6702
6789
|
*/
|
|
6703
6790
|
export enum ContextMenuTriggerOptions {
|
|
6704
6791
|
LEFT_CLICK = "left-click",
|
|
@@ -6839,6 +6926,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
6839
6926
|
hostConfig: Record<string, any>;
|
|
6840
6927
|
hiddenHomeLeftNavItems: string[];
|
|
6841
6928
|
customVariablesForThirdPartyTools: Record<string, any>;
|
|
6929
|
+
hiddenListColumns: ListPageColumns[];
|
|
6842
6930
|
}
|
|
6843
6931
|
}
|
|
6844
6932
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thoughtspot/visual-embed-sdk",
|
|
3
|
-
"version": "1.36.
|
|
3
|
+
"version": "1.36.9-primary-actions",
|
|
4
4
|
"description": "ThoughtSpot Embed SDK",
|
|
5
5
|
"module": "lib/src/index.js",
|
|
6
6
|
"main": "dist/tsembed.js",
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
"@types/lodash": "^4.17.0",
|
|
95
95
|
"@types/mixpanel-browser": "^2.35.6",
|
|
96
96
|
"@types/react-test-renderer": "^17.0.1",
|
|
97
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
98
|
-
"@typescript-eslint/parser": "^
|
|
97
|
+
"@typescript-eslint/eslint-plugin": "^8.28.0",
|
|
98
|
+
"@typescript-eslint/parser": "^8.28.0",
|
|
99
99
|
"asciidoctor": "^2.2.1",
|
|
100
100
|
"babel-jest": "^26.6.3",
|
|
101
101
|
"babel-preset-gatsby": "^1.10.0",
|
|
@@ -104,17 +104,19 @@
|
|
|
104
104
|
"crypto": "^1.0.1",
|
|
105
105
|
"current-git-branch": "^1.1.0",
|
|
106
106
|
"dts-bundle": "^0.7.3",
|
|
107
|
-
"eslint": "^
|
|
108
|
-
"eslint-config-airbnb-base": "^
|
|
109
|
-
"eslint-config-prettier": "^
|
|
110
|
-
"eslint-import-resolver-typescript": "^2.
|
|
111
|
-
"eslint-plugin-
|
|
112
|
-
"eslint-plugin-
|
|
113
|
-
"eslint-plugin-
|
|
114
|
-
"eslint-plugin-
|
|
115
|
-
"eslint-plugin-
|
|
107
|
+
"eslint": "^9.23.0",
|
|
108
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
109
|
+
"eslint-config-prettier": "^10.1.1",
|
|
110
|
+
"eslint-import-resolver-typescript": "^4.2.5",
|
|
111
|
+
"eslint-plugin-comment-length": "2.2.1",
|
|
112
|
+
"eslint-plugin-import": "^2.31.0",
|
|
113
|
+
"eslint-plugin-jsdoc": "^50.6.9",
|
|
114
|
+
"eslint-plugin-prettier": "^5.2.5",
|
|
115
|
+
"eslint-plugin-react": "^7.37.5",
|
|
116
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
116
117
|
"fs-extra": "^10.0.0",
|
|
117
118
|
"gh-pages": "6.3.0",
|
|
119
|
+
"globals": "^16.0.0",
|
|
118
120
|
"highlight.js": "^10.6.0",
|
|
119
121
|
"html-to-text": "^8.0.0",
|
|
120
122
|
"identity-obj-proxy": "^3.0.0",
|
|
@@ -136,6 +138,7 @@
|
|
|
136
138
|
"typedoc": "0.21.6",
|
|
137
139
|
"typedoc-plugin-toc-group": "thoughtspot/typedoc-plugin-toc-group",
|
|
138
140
|
"typescript": "^4.9.4",
|
|
141
|
+
"typescript-eslint": "^8.29.1",
|
|
139
142
|
"url-search-params-polyfill": "^8.1.0",
|
|
140
143
|
"util": "^0.12.4",
|
|
141
144
|
"vite": "^5.3.4"
|
package/src/embed/search-bar.tsx
CHANGED
|
@@ -82,7 +82,7 @@ export interface SearchBarViewConfig
|
|
|
82
82
|
/**
|
|
83
83
|
* Exclude the search token string from the URL.
|
|
84
84
|
* If set to true, the search token string is not appended to the URL.
|
|
85
|
-
* @version: SDK: 1.35.7 | ThoughtSpot: 10.
|
|
85
|
+
* @version: SDK: 1.35.7 | ThoughtSpot: 10.8.0.cl
|
|
86
86
|
* @example
|
|
87
87
|
* ```js
|
|
88
88
|
* const embed = new SearchEmbed('#tsEmbed', {
|
package/src/embed/search.ts
CHANGED
|
@@ -206,7 +206,7 @@ export interface SearchViewConfig
|
|
|
206
206
|
/**
|
|
207
207
|
* Exclude the search token string from the URL.
|
|
208
208
|
* If set to true, the search token string is not appended to the URL.
|
|
209
|
-
* @version: SDK: 1.35.7 | ThoughtSpot: 10.
|
|
209
|
+
* @version: SDK: 1.35.7 | ThoughtSpot: 10.8.0.cl
|
|
210
210
|
* @example
|
|
211
211
|
* ```js
|
|
212
212
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -346,6 +346,7 @@ describe('Unit test case for ts embed', () => {
|
|
|
346
346
|
runtimeParameterParams: null,
|
|
347
347
|
hiddenHomeLeftNavItems: [],
|
|
348
348
|
hiddenHomepageModules: [],
|
|
349
|
+
hiddenListColumns: [],
|
|
349
350
|
hostConfig: undefined,
|
|
350
351
|
reorderedHomepageModules: [],
|
|
351
352
|
customVariablesForThirdPartyTools,
|
|
@@ -381,6 +382,7 @@ describe('Unit test case for ts embed', () => {
|
|
|
381
382
|
runtimeParameterParams: null,
|
|
382
383
|
hiddenHomeLeftNavItems: [],
|
|
383
384
|
hiddenHomepageModules: [],
|
|
385
|
+
hiddenListColumns: [],
|
|
384
386
|
hostConfig: undefined,
|
|
385
387
|
reorderedHomepageModules: [],
|
|
386
388
|
customVariablesForThirdPartyTools,
|
|
@@ -422,6 +424,7 @@ describe('Unit test case for ts embed', () => {
|
|
|
422
424
|
runtimeParameterParams: null,
|
|
423
425
|
hiddenHomeLeftNavItems: [],
|
|
424
426
|
hiddenHomepageModules: [HomepageModule.MyLibrary, HomepageModule.Learning],
|
|
427
|
+
hiddenListColumns: [],
|
|
425
428
|
reorderedHomepageModules: [],
|
|
426
429
|
customVariablesForThirdPartyTools,
|
|
427
430
|
},
|
|
@@ -459,6 +462,7 @@ describe('Unit test case for ts embed', () => {
|
|
|
459
462
|
runtimeParameterParams: null,
|
|
460
463
|
hiddenHomeLeftNavItems: [],
|
|
461
464
|
hiddenHomepageModules: [],
|
|
465
|
+
hiddenListColumns: [],
|
|
462
466
|
reorderedHomepageModules: [],
|
|
463
467
|
customVariablesForThirdPartyTools,
|
|
464
468
|
},
|
|
@@ -499,6 +503,7 @@ describe('Unit test case for ts embed', () => {
|
|
|
499
503
|
runtimeParameterParams: null,
|
|
500
504
|
hiddenHomeLeftNavItems: [],
|
|
501
505
|
hiddenHomepageModules: [],
|
|
506
|
+
hiddenListColumns: [],
|
|
502
507
|
reorderedHomepageModules:
|
|
503
508
|
[HomepageModule.MyLibrary, HomepageModule.Watchlist],
|
|
504
509
|
customVariablesForThirdPartyTools,
|
|
@@ -542,6 +547,7 @@ describe('Unit test case for ts embed', () => {
|
|
|
542
547
|
runtimeParameterParams: 'param1=color¶mVal1=blue',
|
|
543
548
|
hiddenHomeLeftNavItems: [],
|
|
544
549
|
hiddenHomepageModules: [],
|
|
550
|
+
hiddenListColumns: [],
|
|
545
551
|
hostConfig: undefined,
|
|
546
552
|
reorderedHomepageModules: [],
|
|
547
553
|
customVariablesForThirdPartyTools,
|
|
@@ -586,6 +592,7 @@ describe('Unit test case for ts embed', () => {
|
|
|
586
592
|
runtimeParameterParams: null,
|
|
587
593
|
hiddenHomeLeftNavItems: [],
|
|
588
594
|
hiddenHomepageModules: [],
|
|
595
|
+
hiddenListColumns: [],
|
|
589
596
|
hostConfig: undefined,
|
|
590
597
|
reorderedHomepageModules: [],
|
|
591
598
|
customVariablesForThirdPartyTools,
|
|
@@ -629,6 +636,7 @@ describe('Unit test case for ts embed', () => {
|
|
|
629
636
|
runtimeParameterParams: null,
|
|
630
637
|
hiddenHomeLeftNavItems: [],
|
|
631
638
|
hiddenHomepageModules: [],
|
|
639
|
+
hiddenListColumns: [],
|
|
632
640
|
hostConfig: undefined,
|
|
633
641
|
reorderedHomepageModules: [],
|
|
634
642
|
customVariablesForThirdPartyTools,
|
|
@@ -673,6 +681,7 @@ describe('Unit test case for ts embed', () => {
|
|
|
673
681
|
runtimeParameterParams: null,
|
|
674
682
|
hiddenHomeLeftNavItems: [],
|
|
675
683
|
hiddenHomepageModules: [],
|
|
684
|
+
hiddenListColumns: [],
|
|
676
685
|
hostConfig: undefined,
|
|
677
686
|
reorderedHomepageModules: [],
|
|
678
687
|
customVariablesForThirdPartyTools,
|
|
@@ -716,6 +725,7 @@ describe('Unit test case for ts embed', () => {
|
|
|
716
725
|
hiddenHomeLeftNavItems:
|
|
717
726
|
[HomeLeftNavItem.Home, HomeLeftNavItem.MonitorSubscription],
|
|
718
727
|
hiddenHomepageModules: [],
|
|
728
|
+
hiddenListColumns: [],
|
|
719
729
|
reorderedHomepageModules: [],
|
|
720
730
|
customVariablesForThirdPartyTools,
|
|
721
731
|
},
|
|
@@ -883,6 +893,7 @@ describe('Unit test case for ts embed', () => {
|
|
|
883
893
|
runtimeParameterParams: null,
|
|
884
894
|
hiddenHomeLeftNavItems: [],
|
|
885
895
|
hiddenHomepageModules: [],
|
|
896
|
+
hiddenListColumns: [],
|
|
886
897
|
hostConfig: undefined,
|
|
887
898
|
reorderedHomepageModules: [],
|
|
888
899
|
customVariablesForThirdPartyTools: {},
|
|
@@ -894,6 +905,113 @@ describe('Unit test case for ts embed', () => {
|
|
|
894
905
|
});
|
|
895
906
|
});
|
|
896
907
|
|
|
908
|
+
describe('StringIDs and StringIDsUrl in customisations', () => {
|
|
909
|
+
const customisationWithStringIds = {
|
|
910
|
+
style: {
|
|
911
|
+
customCSS: {},
|
|
912
|
+
},
|
|
913
|
+
content: {
|
|
914
|
+
strings: {
|
|
915
|
+
Liveboard: 'Dashboard',
|
|
916
|
+
},
|
|
917
|
+
stringIDsUrl: 'https://sample-string-ids-url.com',
|
|
918
|
+
stringIDs: {
|
|
919
|
+
'liveboard.header.title': 'Dashboard name',
|
|
920
|
+
},
|
|
921
|
+
},
|
|
922
|
+
};
|
|
923
|
+
beforeEach(() => {
|
|
924
|
+
jest.spyOn(authInstance, 'doCookielessTokenAuth').mockResolvedValueOnce(true);
|
|
925
|
+
jest.spyOn(authService, 'verifyTokenService').mockResolvedValue(true);
|
|
926
|
+
init({
|
|
927
|
+
thoughtSpotHost: 'tshost',
|
|
928
|
+
customizations: customisationWithStringIds,
|
|
929
|
+
authType: AuthType.TrustedAuthTokenCookieless,
|
|
930
|
+
getAuthToken: () => Promise.resolve('test_auth_token1'),
|
|
931
|
+
});
|
|
932
|
+
});
|
|
933
|
+
|
|
934
|
+
afterEach(() => {
|
|
935
|
+
baseInstance.reset();
|
|
936
|
+
jest.clearAllMocks();
|
|
937
|
+
});
|
|
938
|
+
|
|
939
|
+
test('should pass stringIDsUrl and stringIDs in customisations during APP_INIT', async () => {
|
|
940
|
+
const mockEmbedEventPayload = {
|
|
941
|
+
type: EmbedEvent.APP_INIT,
|
|
942
|
+
data: {},
|
|
943
|
+
};
|
|
944
|
+
const searchEmbed = new SearchEmbed(getRootEl(), defaultViewConfig);
|
|
945
|
+
searchEmbed.render();
|
|
946
|
+
const mockPort: any = {
|
|
947
|
+
postMessage: jest.fn(),
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
await executeAfterWait(() => {
|
|
951
|
+
const iframe = getIFrameEl();
|
|
952
|
+
expect(iframe.src).toContain('overrideStringIDsUrl=https://sample-string-ids-url.com');
|
|
953
|
+
postMessageToParent(iframe.contentWindow, mockEmbedEventPayload, mockPort);
|
|
954
|
+
});
|
|
955
|
+
|
|
956
|
+
await executeAfterWait(() => {
|
|
957
|
+
expect(mockPort.postMessage).toHaveBeenCalledWith({
|
|
958
|
+
type: EmbedEvent.APP_INIT,
|
|
959
|
+
data: {
|
|
960
|
+
customisations: {
|
|
961
|
+
content: {
|
|
962
|
+
strings: {
|
|
963
|
+
Liveboard: 'Dashboard',
|
|
964
|
+
},
|
|
965
|
+
stringIDsUrl: 'https://sample-string-ids-url.com',
|
|
966
|
+
stringIDs: {
|
|
967
|
+
'liveboard.header.title': 'Dashboard name',
|
|
968
|
+
},
|
|
969
|
+
},
|
|
970
|
+
style: {
|
|
971
|
+
customCSS: {},
|
|
972
|
+
customCSSUrl: undefined,
|
|
973
|
+
},
|
|
974
|
+
},
|
|
975
|
+
authToken: 'test_auth_token1',
|
|
976
|
+
runtimeFilterParams: null,
|
|
977
|
+
runtimeParameterParams: null,
|
|
978
|
+
hiddenHomeLeftNavItems: [],
|
|
979
|
+
hiddenHomepageModules: [],
|
|
980
|
+
hiddenListColumns: [],
|
|
981
|
+
hostConfig: undefined,
|
|
982
|
+
reorderedHomepageModules: [],
|
|
983
|
+
customVariablesForThirdPartyTools: {},
|
|
984
|
+
},
|
|
985
|
+
});
|
|
986
|
+
const customisationContent = mockPort.postMessage.mock.calls[0][0].data.customisations.content;
|
|
987
|
+
expect(customisationContent.stringIDsUrl)
|
|
988
|
+
.toBe('https://sample-string-ids-url.com');
|
|
989
|
+
expect(customisationContent.stringIDs)
|
|
990
|
+
.toEqual({
|
|
991
|
+
'liveboard.header.title': 'Dashboard name',
|
|
992
|
+
});
|
|
993
|
+
});
|
|
994
|
+
});
|
|
995
|
+
|
|
996
|
+
test('should allow passing exposeTranslationIDs in viewConfig', async () => {
|
|
997
|
+
const mockEmbedEventPayload = {
|
|
998
|
+
type: EmbedEvent.APP_INIT,
|
|
999
|
+
data: {},
|
|
1000
|
+
};
|
|
1001
|
+
const searchEmbed = new SearchEmbed(getRootEl(), { ...defaultViewConfig, exposeTranslationIDs: true });
|
|
1002
|
+
searchEmbed.render();
|
|
1003
|
+
const mockPort: any = {
|
|
1004
|
+
postMessage: jest.fn(),
|
|
1005
|
+
};
|
|
1006
|
+
|
|
1007
|
+
await executeAfterWait(() => {
|
|
1008
|
+
const iframe = getIFrameEl();
|
|
1009
|
+
expect(iframe.src).toContain('exposeTranslationIDs=true');
|
|
1010
|
+
postMessageToParent(iframe.contentWindow, mockEmbedEventPayload, mockPort);
|
|
1011
|
+
});
|
|
1012
|
+
});
|
|
1013
|
+
});
|
|
1014
|
+
|
|
897
1015
|
describe('Token fetch fails in cookieless authentication authType', () => {
|
|
898
1016
|
beforeEach(() => {
|
|
899
1017
|
jest.spyOn(authInstance, 'doCookielessTokenAuth').mockResolvedValueOnce(true);
|
package/src/embed/ts-embed.ts
CHANGED
|
@@ -377,6 +377,7 @@ export class TsEmbed {
|
|
|
377
377
|
: [],
|
|
378
378
|
customVariablesForThirdPartyTools:
|
|
379
379
|
this.embedConfig.customVariablesForThirdPartyTools || {},
|
|
380
|
+
hiddenListColumns: this.viewConfig.hiddenListColumns || [],
|
|
380
381
|
};
|
|
381
382
|
}
|
|
382
383
|
|
|
@@ -538,6 +539,8 @@ export class TsEmbed {
|
|
|
538
539
|
insertInToSlide,
|
|
539
540
|
disableRedirectionLinksInNewTab,
|
|
540
541
|
overrideOrgId,
|
|
542
|
+
exposeTranslationIDs,
|
|
543
|
+
primaryActions,
|
|
541
544
|
} = this.viewConfig;
|
|
542
545
|
|
|
543
546
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
@@ -560,9 +563,15 @@ export class TsEmbed {
|
|
|
560
563
|
if (disabledActions?.length) {
|
|
561
564
|
queryParams[Param.DisableActions] = disabledActions;
|
|
562
565
|
}
|
|
566
|
+
if (primaryActions?.length) {
|
|
567
|
+
queryParams[Param.PrimaryActions] = primaryActions;
|
|
568
|
+
}
|
|
563
569
|
if (disabledActionReason) {
|
|
564
570
|
queryParams[Param.DisableActionReason] = disabledActionReason;
|
|
565
571
|
}
|
|
572
|
+
if (exposeTranslationIDs) {
|
|
573
|
+
queryParams[Param.ExposeTranslationIDs] = exposeTranslationIDs;
|
|
574
|
+
}
|
|
566
575
|
queryParams[Param.HideActions] = [...this.defaultHiddenActions, ...(hiddenActions ?? [])];
|
|
567
576
|
if (Array.isArray(visibleActions)) {
|
|
568
577
|
queryParams[Param.VisibleActions] = visibleActions;
|
|
@@ -592,6 +601,12 @@ export class TsEmbed {
|
|
|
592
601
|
queryParams[Param.IconSpriteUrl] = spriteUrl.replace('https://', '');
|
|
593
602
|
}
|
|
594
603
|
|
|
604
|
+
const stringIDsUrl = customizations?.content?.stringIDsUrl
|
|
605
|
+
|| embedCustomizations?.content?.stringIDsUrl;
|
|
606
|
+
if (stringIDsUrl) {
|
|
607
|
+
queryParams[Param.StringIDsUrl] = stringIDsUrl;
|
|
608
|
+
}
|
|
609
|
+
|
|
595
610
|
if (showAlerts !== undefined) {
|
|
596
611
|
queryParams[Param.ShowAlerts] = showAlerts;
|
|
597
612
|
}
|
package/src/index.ts
CHANGED
|
@@ -52,6 +52,7 @@ import {
|
|
|
52
52
|
LogLevel,
|
|
53
53
|
VizPoint,
|
|
54
54
|
CustomActionPayload,
|
|
55
|
+
ListPageColumns,
|
|
55
56
|
} from './types';
|
|
56
57
|
import { CustomCssVariables } from './css-variables';
|
|
57
58
|
import { SageEmbed, SageViewConfig } from './embed/sage';
|
|
@@ -129,6 +130,7 @@ export {
|
|
|
129
130
|
VizPoint,
|
|
130
131
|
CustomActionPayload,
|
|
131
132
|
UIPassthroughEvent,
|
|
133
|
+
ListPageColumns,
|
|
132
134
|
};
|
|
133
135
|
|
|
134
136
|
export { resetCachedAuthToken } from './authToken';
|