@thoughtspot/visual-embed-sdk 1.46.1 → 1.46.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/package.json +1 -1
- package/cjs/src/auth.d.ts +29 -4
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +29 -7
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/auth.spec.js +1 -3
- package/cjs/src/auth.spec.js.map +1 -1
- package/cjs/src/authToken.js +0 -1
- package/cjs/src/authToken.js.map +1 -1
- package/cjs/src/authToken.spec.js +2 -1
- package/cjs/src/authToken.spec.js.map +1 -1
- package/cjs/src/css-variables.d.ts +17 -17
- package/cjs/src/embed/app.d.ts +62 -33
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +10 -3
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +34 -1
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/auto-frame-renderer.d.ts +41 -0
- package/cjs/src/embed/auto-frame-renderer.d.ts.map +1 -0
- package/cjs/src/embed/auto-frame-renderer.js +145 -0
- package/cjs/src/embed/auto-frame-renderer.js.map +1 -0
- package/cjs/src/embed/auto-frame-renderer.spec.d.ts +2 -0
- package/cjs/src/embed/auto-frame-renderer.spec.d.ts.map +1 -0
- package/cjs/src/embed/auto-frame-renderer.spec.js +195 -0
- package/cjs/src/embed/auto-frame-renderer.spec.js.map +1 -0
- package/cjs/src/embed/base.d.ts +2 -2
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +6 -9
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.d.ts +5 -5
- package/cjs/src/embed/bodyless-conversation.js +4 -4
- package/cjs/src/embed/conversation.d.ts +43 -30
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +10 -11
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +27 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.js +0 -2
- package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +42 -35
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +6 -4
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +5 -3
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +5 -5
- package/cjs/src/embed/sage.js +1 -2
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts +7 -7
- package/cjs/src/embed/search-bar.js +1 -1
- package/cjs/src/embed/search.d.ts +13 -12
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +0 -2
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +3 -3
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +15 -9
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +37 -1
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +3 -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 +15 -15
- package/cjs/src/react/index.js +12 -13
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/react/index.spec.js +6 -3
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/tokenizedFetch.d.ts +1 -1
- package/cjs/src/tokenizedFetch.js +1 -1
- package/cjs/src/types.d.ts +350 -287
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +240 -218
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.d.ts +9 -6
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +13 -15
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.spec.js +55 -0
- package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/cjs/src/utils/graphql/preview-service.js +0 -1
- package/cjs/src/utils/graphql/preview-service.js.map +1 -1
- package/cjs/src/utils/processData.js +0 -5
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils.d.ts +9 -0
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +10 -1
- package/cjs/src/utils.js.map +1 -1
- package/dist/{index-Vyh6Ha5f.js → index-DyX-x6uN.js} +1 -1
- package/dist/src/auth.d.ts +29 -4
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/css-variables.d.ts +17 -17
- package/dist/src/embed/app.d.ts +62 -33
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/auto-frame-renderer.d.ts +41 -0
- package/dist/src/embed/auto-frame-renderer.d.ts.map +1 -0
- package/dist/src/embed/auto-frame-renderer.spec.d.ts +2 -0
- package/dist/src/embed/auto-frame-renderer.spec.d.ts.map +1 -0
- package/dist/src/embed/base.d.ts +2 -2
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/bodyless-conversation.d.ts +5 -5
- package/dist/src/embed/conversation.d.ts +43 -30
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +42 -35
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +5 -5
- package/dist/src/embed/search-bar.d.ts +7 -7
- package/dist/src/embed/search.d.ts +13 -12
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +3 -3
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/react/index.d.ts +15 -15
- package/dist/src/tokenizedFetch.d.ts +1 -1
- package/dist/src/types.d.ts +350 -287
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answerService.d.ts +9 -6
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/src/utils.d.ts +9 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +359 -329
- package/dist/tsembed-react.js +358 -328
- package/dist/tsembed.es.js +490 -321
- package/dist/tsembed.js +489 -319
- package/dist/visual-embed-sdk-react-full.d.ts +574 -442
- package/dist/visual-embed-sdk-react.d.ts +572 -440
- package/dist/visual-embed-sdk.d.ts +622 -446
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts +29 -4
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +29 -7
- package/lib/src/auth.js.map +1 -1
- package/lib/src/auth.spec.js +1 -3
- package/lib/src/auth.spec.js.map +1 -1
- package/lib/src/authToken.js +0 -1
- package/lib/src/authToken.js.map +1 -1
- package/lib/src/authToken.spec.js +2 -1
- package/lib/src/authToken.spec.js.map +1 -1
- package/lib/src/css-variables.d.ts +17 -17
- package/lib/src/embed/app.d.ts +62 -33
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +11 -4
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +34 -1
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/auto-frame-renderer.d.ts +41 -0
- package/lib/src/embed/auto-frame-renderer.d.ts.map +1 -0
- package/lib/src/embed/auto-frame-renderer.js +141 -0
- package/lib/src/embed/auto-frame-renderer.js.map +1 -0
- package/lib/src/embed/auto-frame-renderer.spec.d.ts +2 -0
- package/lib/src/embed/auto-frame-renderer.spec.d.ts.map +1 -0
- package/lib/src/embed/auto-frame-renderer.spec.js +192 -0
- package/lib/src/embed/auto-frame-renderer.spec.js.map +1 -0
- package/lib/src/embed/base.d.ts +2 -2
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +6 -9
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.d.ts +5 -5
- package/lib/src/embed/bodyless-conversation.js +4 -4
- package/lib/src/embed/conversation.d.ts +43 -30
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +11 -11
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +27 -0
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.js +0 -2
- package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +42 -35
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +6 -4
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +5 -3
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/sage.d.ts +5 -5
- package/lib/src/embed/sage.js +1 -2
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +7 -7
- package/lib/src/embed/search-bar.js +1 -1
- package/lib/src/embed/search.d.ts +13 -12
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +0 -2
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +3 -3
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +15 -9
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +37 -1
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +3 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +1 -0
- package/lib/src/index.js.map +1 -1
- package/lib/src/react/index.d.ts +15 -15
- package/lib/src/react/index.js +12 -13
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/react/index.spec.js +6 -3
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/tokenizedFetch.d.ts +1 -1
- package/lib/src/tokenizedFetch.js +1 -1
- package/lib/src/types.d.ts +350 -287
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +240 -218
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.d.ts +9 -6
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +12 -14
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js +55 -0
- package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/lib/src/utils/graphql/preview-service.js +0 -1
- package/lib/src/utils/graphql/preview-service.js.map +1 -1
- package/lib/src/utils/processData.js +0 -5
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils.d.ts +9 -0
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +8 -0
- package/lib/src/utils.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +11466 -0
- package/package.json +1 -1
- package/src/auth.spec.ts +1 -1
- package/src/auth.ts +32 -7
- package/src/authToken.spec.ts +2 -1
- package/src/authToken.ts +1 -1
- package/src/css-variables.ts +17 -17
- package/src/embed/app.spec.ts +46 -1
- package/src/embed/app.ts +74 -36
- package/src/embed/auto-frame-renderer.spec.ts +266 -0
- package/src/embed/auto-frame-renderer.ts +152 -0
- package/src/embed/base.spec.ts +1 -1
- package/src/embed/base.ts +9 -10
- package/src/embed/bodyless-conversation.ts +5 -5
- package/src/embed/conversation.spec.ts +37 -0
- package/src/embed/conversation.ts +55 -38
- package/src/embed/hostEventClient/host-event-client.ts +2 -2
- package/src/embed/liveboard.spec.ts +5 -3
- package/src/embed/liveboard.ts +47 -38
- package/src/embed/sage.ts +6 -6
- package/src/embed/search-bar.tsx +7 -7
- package/src/embed/search.spec.ts +2 -2
- package/src/embed/search.ts +13 -12
- package/src/embed/ts-embed.spec.ts +44 -1
- package/src/embed/ts-embed.ts +14 -9
- package/src/index.ts +3 -0
- package/src/react/index.spec.tsx +6 -3
- package/src/react/index.tsx +16 -16
- package/src/tokenizedFetch.ts +1 -1
- package/src/types.ts +350 -286
- package/src/utils/graphql/answerService/answerService.spec.ts +62 -0
- package/src/utils/graphql/answerService/answerService.ts +14 -10
- package/src/utils/graphql/preview-service.ts +1 -1
- package/src/utils/processData.ts +5 -5
- package/src/utils.ts +14 -0
package/package.json
CHANGED
package/src/auth.spec.ts
CHANGED
|
@@ -283,7 +283,7 @@ describe('Unit test for auth', () => {
|
|
|
283
283
|
text: () => Promise.resolve('abc'),
|
|
284
284
|
} as any));
|
|
285
285
|
jest.spyOn(authService, 'fetchAuthPostService').mockImplementation(() =>
|
|
286
|
-
|
|
286
|
+
|
|
287
287
|
Promise.reject({
|
|
288
288
|
status: 500,
|
|
289
289
|
}));
|
package/src/auth.ts
CHANGED
|
@@ -19,11 +19,11 @@ import { getSessionInfo, getPreauthInfo } from './utils/sessionInfoService';
|
|
|
19
19
|
import { ERROR_MESSAGE } from './errors';
|
|
20
20
|
import { resetAllCachedServices } from './utils/resetServices';
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
export let loggedInStatus = false;
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
export let samlAuthWindow: Window = null;
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
export let samlCompletionPromise: Promise<void> = null;
|
|
28
28
|
|
|
29
29
|
let releaseVersion = '';
|
|
@@ -83,20 +83,45 @@ export enum AuthFailureType {
|
|
|
83
83
|
*/
|
|
84
84
|
export enum AuthStatus {
|
|
85
85
|
/**
|
|
86
|
-
* Emits when the SDK fails to authenticate
|
|
86
|
+
* Emits when the SDK fails to authenticate.
|
|
87
87
|
*/
|
|
88
88
|
FAILURE = 'FAILURE',
|
|
89
89
|
/**
|
|
90
|
-
* Emits when the SDK
|
|
90
|
+
* Emits when the SDK authentication step completes
|
|
91
|
+
* successfully (e.g., token exchange, cookie set).
|
|
92
|
+
* This fires before any iframe is rendered. Use
|
|
93
|
+
* this to know that auth passed and it is safe to
|
|
94
|
+
* proceed with rendering. The callback receives no
|
|
95
|
+
* arguments.
|
|
96
|
+
* @example
|
|
97
|
+
* ```js
|
|
98
|
+
* const authEE = init({ ... });
|
|
99
|
+
* authEE.on(AuthStatus.SDK_SUCCESS, () => {
|
|
100
|
+
* // Auth done, iframe not loaded yet
|
|
101
|
+
* });
|
|
102
|
+
* ```
|
|
91
103
|
*/
|
|
92
104
|
SDK_SUCCESS = 'SDK_SUCCESS',
|
|
93
105
|
/**
|
|
94
106
|
* @hidden
|
|
95
|
-
* Emits when iframe is loaded and session
|
|
107
|
+
* Emits when iframe is loaded and session
|
|
108
|
+
* information is available.
|
|
96
109
|
*/
|
|
97
110
|
SESSION_INFO_SUCCESS = 'SESSION_INFO_SUCCESS',
|
|
98
111
|
/**
|
|
99
|
-
* Emits when the app
|
|
112
|
+
* Emits when the ThoughtSpot app inside the
|
|
113
|
+
* embedded iframe confirms its session is active.
|
|
114
|
+
* This fires after the iframe loads and sends back an `AuthInit` event.
|
|
115
|
+
* @param sessionInfo Information about the user session, with details like `userGUID`.
|
|
116
|
+
* @see EmbedEvent.AuthInit
|
|
117
|
+
* @example
|
|
118
|
+
* ```js
|
|
119
|
+
* const authEE = init({ ... });
|
|
120
|
+
* authEE.on(AuthStatus.SUCCESS, (sessionInfo) => {
|
|
121
|
+
* // App is loaded and authenticated
|
|
122
|
+
* console.log(sessionInfo.userGUID);
|
|
123
|
+
* });
|
|
124
|
+
* ```
|
|
100
125
|
*/
|
|
101
126
|
SUCCESS = 'SUCCESS',
|
|
102
127
|
/**
|
package/src/authToken.spec.ts
CHANGED
|
@@ -129,7 +129,8 @@ describe('AuthToken Unit tests', () => {
|
|
|
129
129
|
expect(token).toBe(newToken);
|
|
130
130
|
// Should not validate cached token (condition at line 23 is false)
|
|
131
131
|
expect(validateAuthTokenSpy).not.toHaveBeenCalledWith(config, cachedToken, true);
|
|
132
|
-
// But should validate new token (though it returns early when
|
|
132
|
+
// But should validate new token (though it returns early when
|
|
133
|
+
// disableTokenVerification is true)
|
|
133
134
|
expect(validateAuthTokenSpy).toHaveBeenCalledWith(config, newToken);
|
|
134
135
|
expect(getAuthTokenMock).toHaveBeenCalled();
|
|
135
136
|
|
package/src/authToken.ts
CHANGED
|
@@ -83,7 +83,7 @@ export const validateAuthToken = async (
|
|
|
83
83
|
|
|
84
84
|
if (cachedAuthToken && cachedAuthToken === authToken) {
|
|
85
85
|
if (!embedConfig.suppressErrorAlerts && !suppressAlert) {
|
|
86
|
-
|
|
86
|
+
|
|
87
87
|
alert(ERROR_MESSAGE.DUPLICATE_TOKEN_ERR);
|
|
88
88
|
}
|
|
89
89
|
throw new Error(ERROR_MESSAGE.DUPLICATE_TOKEN_ERR);
|
package/src/css-variables.ts
CHANGED
|
@@ -517,42 +517,42 @@ export interface CustomCssVariables {
|
|
|
517
517
|
/**
|
|
518
518
|
* Padding of the groups in the Liveboard.
|
|
519
519
|
*
|
|
520
|
-
* Please enable the Liveboard
|
|
520
|
+
* Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
|
|
521
521
|
*/
|
|
522
522
|
'--ts-var-liveboard-group-padding'?: string;
|
|
523
523
|
|
|
524
524
|
/**
|
|
525
525
|
* Font size of the title of the groups in the Liveboard.
|
|
526
526
|
*
|
|
527
|
-
* Please enable the Liveboard
|
|
527
|
+
* Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
|
|
528
528
|
*/
|
|
529
529
|
'--ts-var-liveboard-group-title-font-size'?: string;
|
|
530
530
|
|
|
531
531
|
/**
|
|
532
532
|
* Font weight of the title of the groups in the Liveboard.
|
|
533
533
|
*
|
|
534
|
-
* Please enable the Liveboard
|
|
534
|
+
* Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
|
|
535
535
|
*/
|
|
536
536
|
'--ts-var-liveboard-group-title-font-weight'?: string;
|
|
537
537
|
|
|
538
538
|
/**
|
|
539
539
|
* Font size of the title of the tiles inside the groups in the Liveboard.
|
|
540
540
|
*
|
|
541
|
-
* Please enable the Liveboard
|
|
541
|
+
* Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
|
|
542
542
|
*/
|
|
543
543
|
'--ts-var-liveboard-group-tile-title-font-size'?: string;
|
|
544
544
|
|
|
545
545
|
/**
|
|
546
546
|
* Font weight of the title of the tiles inside the groups in the Liveboard.
|
|
547
547
|
*
|
|
548
|
-
* Please enable the Liveboard
|
|
548
|
+
* Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
|
|
549
549
|
*/
|
|
550
550
|
'--ts-var-liveboard-group-tile-title-font-weight'?: string;
|
|
551
551
|
|
|
552
552
|
/**
|
|
553
553
|
* Padding of the group tiles in the Liveboard.
|
|
554
554
|
*
|
|
555
|
-
* Please enable the Liveboard
|
|
555
|
+
* Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
|
|
556
556
|
*/
|
|
557
557
|
'--ts-var-liveboard-group-tile-padding'?: string;
|
|
558
558
|
|
|
@@ -564,14 +564,14 @@ export interface CustomCssVariables {
|
|
|
564
564
|
/**
|
|
565
565
|
* Background color of the groups in the Liveboard.
|
|
566
566
|
*
|
|
567
|
-
* Please enable the Liveboard
|
|
567
|
+
* Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
|
|
568
568
|
*/
|
|
569
569
|
'--ts-var-liveboard-group-background'?: string;
|
|
570
570
|
|
|
571
571
|
/**
|
|
572
572
|
* Border color of the groups in the Liveboard.
|
|
573
573
|
*
|
|
574
|
-
* Please enable the Liveboard
|
|
574
|
+
* Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
|
|
575
575
|
*/
|
|
576
576
|
'--ts-var-liveboard-group-border-color'?: string;
|
|
577
577
|
|
|
@@ -588,63 +588,63 @@ export interface CustomCssVariables {
|
|
|
588
588
|
/**
|
|
589
589
|
* Font color of the title of the groups in the Liveboard.
|
|
590
590
|
*
|
|
591
|
-
* Please enable the Liveboard
|
|
591
|
+
* Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
|
|
592
592
|
*/
|
|
593
593
|
'--ts-var-liveboard-group-title-font-color'?: string;
|
|
594
594
|
|
|
595
595
|
/**
|
|
596
596
|
* Font color of the description of the groups in the Liveboard.
|
|
597
597
|
*
|
|
598
|
-
* Please enable the Liveboard
|
|
598
|
+
* Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
|
|
599
599
|
*/
|
|
600
600
|
'--ts-var-liveboard-group-description-font-color'?: string;
|
|
601
601
|
|
|
602
602
|
/**
|
|
603
603
|
* Font color of the title of the tiles inside the groups in the Liveboard.
|
|
604
604
|
*
|
|
605
|
-
* Please enable the Liveboard
|
|
605
|
+
* Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
|
|
606
606
|
*/
|
|
607
607
|
'--ts-var-liveboard-group-tile-title-font-color'?: string;
|
|
608
608
|
|
|
609
609
|
/**
|
|
610
610
|
* Font color of the description of the tiles inside the groups in the Liveboard.
|
|
611
611
|
*
|
|
612
|
-
* Please enable the Liveboard
|
|
612
|
+
* Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
|
|
613
613
|
*/
|
|
614
614
|
'--ts-var-liveboard-group-tile-description-font-color'?: string;
|
|
615
615
|
|
|
616
616
|
/**
|
|
617
617
|
* Background color of the tiles inside the groups in the Liveboard.
|
|
618
618
|
*
|
|
619
|
-
* Please enable the Liveboard
|
|
619
|
+
* Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
|
|
620
620
|
*/
|
|
621
621
|
'--ts-var-liveboard-group-tile-background'?: string;
|
|
622
622
|
|
|
623
623
|
/**
|
|
624
624
|
* Background color of the filter chips in the Liveboard.
|
|
625
625
|
*
|
|
626
|
-
* Please enable the Liveboard
|
|
626
|
+
* Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
|
|
627
627
|
*/
|
|
628
628
|
'--ts-var-liveboard-chip-background'?: string;
|
|
629
629
|
|
|
630
630
|
/**
|
|
631
631
|
* Font color of the filter chips in the Liveboard.
|
|
632
632
|
*
|
|
633
|
-
* Please enable the Liveboard
|
|
633
|
+
* Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
|
|
634
634
|
*/
|
|
635
635
|
'--ts-var-liveboard-chip-color'?: string;
|
|
636
636
|
|
|
637
637
|
/**
|
|
638
638
|
* Background color of the filter chips in the Liveboard on hover.
|
|
639
639
|
*
|
|
640
|
-
* Please enable the Liveboard
|
|
640
|
+
* Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
|
|
641
641
|
*/
|
|
642
642
|
'--ts-var-liveboard-chip--hover-background'?: string;
|
|
643
643
|
|
|
644
644
|
/**
|
|
645
645
|
* Background color of the filter chips in the Liveboard on active.
|
|
646
646
|
*
|
|
647
|
-
* Please enable the Liveboard
|
|
647
|
+
* Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
|
|
648
648
|
*/
|
|
649
649
|
'--ts-var-liveboard-chip--active-background'?: string;
|
|
650
650
|
|
package/src/embed/app.spec.ts
CHANGED
|
@@ -397,7 +397,7 @@ describe('App embed tests', () => {
|
|
|
397
397
|
});
|
|
398
398
|
});
|
|
399
399
|
|
|
400
|
-
test('should set isLiveboardStylingAndGroupingEnabled to true in url', async () => {
|
|
400
|
+
test('should set isLiveboardStylingAndGroupingEnabled to true in url (deprecated, use isLiveboardMasterpiecesEnabled)', async () => {
|
|
401
401
|
const appEmbed = new AppEmbed(getRootEl(), {
|
|
402
402
|
...defaultViewConfig,
|
|
403
403
|
isLiveboardStylingAndGroupingEnabled: true,
|
|
@@ -425,6 +425,20 @@ describe('App embed tests', () => {
|
|
|
425
425
|
});
|
|
426
426
|
});
|
|
427
427
|
|
|
428
|
+
test('should set enableHomepageAnnouncement to true in url', async () => {
|
|
429
|
+
const appEmbed = new AppEmbed(getRootEl(), {
|
|
430
|
+
...defaultViewConfig,
|
|
431
|
+
enableHomepageAnnouncement: true,
|
|
432
|
+
} as AppViewConfig);
|
|
433
|
+
appEmbed.render();
|
|
434
|
+
await executeAfterWait(() => {
|
|
435
|
+
expectUrlMatchesWithParams(
|
|
436
|
+
getIFrameSrc(),
|
|
437
|
+
`http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&enableHomepageAnnouncement=true${defaultParamsPost}#/home`,
|
|
438
|
+
);
|
|
439
|
+
});
|
|
440
|
+
});
|
|
441
|
+
|
|
428
442
|
test('should set isPNGInScheduledEmailsEnabled to true in url', async () => {
|
|
429
443
|
const appEmbed = new AppEmbed(getRootEl(), {
|
|
430
444
|
...defaultViewConfig,
|
|
@@ -509,6 +523,37 @@ describe('App embed tests', () => {
|
|
|
509
523
|
});
|
|
510
524
|
});
|
|
511
525
|
|
|
526
|
+
test('should set deprecated standalone enablePastConversationsSidebar in url', async () => {
|
|
527
|
+
const appEmbed = new AppEmbed(getRootEl(), {
|
|
528
|
+
...defaultViewConfig,
|
|
529
|
+
enablePastConversationsSidebar: true,
|
|
530
|
+
} as AppViewConfig);
|
|
531
|
+
appEmbed.render();
|
|
532
|
+
await executeAfterWait(() => {
|
|
533
|
+
expectUrlMatchesWithParams(
|
|
534
|
+
getIFrameSrc(),
|
|
535
|
+
`http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&enablePastConversationsSidebar=true${defaultParamsPost}#/home`,
|
|
536
|
+
);
|
|
537
|
+
});
|
|
538
|
+
});
|
|
539
|
+
|
|
540
|
+
test('should prefer spotterSidebarConfig.enablePastConversationsSidebar over deprecated standalone flag in url', async () => {
|
|
541
|
+
const appEmbed = new AppEmbed(getRootEl(), {
|
|
542
|
+
...defaultViewConfig,
|
|
543
|
+
enablePastConversationsSidebar: false,
|
|
544
|
+
spotterSidebarConfig: {
|
|
545
|
+
enablePastConversationsSidebar: true,
|
|
546
|
+
},
|
|
547
|
+
} as AppViewConfig);
|
|
548
|
+
appEmbed.render();
|
|
549
|
+
await executeAfterWait(() => {
|
|
550
|
+
expectUrlMatchesWithParams(
|
|
551
|
+
getIFrameSrc(),
|
|
552
|
+
`http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&enablePastConversationsSidebar=true${defaultParamsPost}#/home`,
|
|
553
|
+
);
|
|
554
|
+
});
|
|
555
|
+
});
|
|
556
|
+
|
|
512
557
|
test('should set hideToolResponseCardBranding to true in url via spotterChatConfig', async () => {
|
|
513
558
|
const appEmbed = new AppEmbed(getRootEl(), {
|
|
514
559
|
...defaultViewConfig,
|