@thoughtspot/visual-embed-sdk 1.29.0-alpha.fullH → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cjs/package.json +2 -1
- package/cjs/src/auth.d.ts +0 -15
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +2 -13
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/authToken.d.ts +1 -2
- package/cjs/src/authToken.d.ts.map +1 -1
- package/cjs/src/authToken.js +9 -3
- package/cjs/src/authToken.js.map +1 -1
- package/cjs/src/authToken.spec.d.ts +2 -0
- package/cjs/src/authToken.spec.d.ts.map +1 -0
- package/cjs/src/authToken.spec.js +29 -0
- package/cjs/src/authToken.spec.js.map +1 -0
- package/cjs/src/config.d.ts +0 -1
- package/cjs/src/config.d.ts.map +1 -1
- package/cjs/src/config.js +0 -2
- package/cjs/src/config.js.map +1 -1
- package/cjs/src/embed/app.d.ts +73 -43
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +45 -12
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +21 -0
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/base.d.ts +1 -7
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +7 -15
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/base.spec.js +1 -1
- package/cjs/src/embed/base.spec.js.map +1 -1
- package/cjs/src/embed/embedConfig.d.ts +0 -2
- package/cjs/src/embed/embedConfig.d.ts.map +1 -1
- package/cjs/src/embed/embedConfig.js +0 -2
- package/cjs/src/embed/embedConfig.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +14 -28
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +9 -9
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +79 -4
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +5 -21
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js +2 -23
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/sage.spec.js +20 -31
- package/cjs/src/embed/sage.spec.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts +0 -11
- package/cjs/src/embed/search-bar.d.ts.map +1 -1
- package/cjs/src/embed/search-bar.js +0 -2
- package/cjs/src/embed/search-bar.js.map +1 -1
- package/cjs/src/embed/search.d.ts +60 -29
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +43 -9
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +34 -0
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +1 -31
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +34 -43
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +83 -9
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/errors.js +1 -1
- package/cjs/src/errors.js.map +1 -1
- package/cjs/src/index.d.ts +0 -1
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +0 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/mixpanel-service.d.ts +0 -1
- package/cjs/src/mixpanel-service.d.ts.map +1 -1
- package/cjs/src/mixpanel-service.js +0 -1
- package/cjs/src/mixpanel-service.js.map +1 -1
- package/cjs/src/react/index.d.ts +1 -12
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +1 -11
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/react/index.spec.js +15 -3
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/test/test-utils.d.ts +0 -2
- package/cjs/src/test/test-utils.d.ts.map +1 -1
- package/cjs/src/test/test-utils.js +0 -2
- package/cjs/src/test/test-utils.js.map +1 -1
- package/cjs/src/tokenizedFetch.d.ts +0 -1
- package/cjs/src/tokenizedFetch.d.ts.map +1 -1
- package/cjs/src/tokenizedFetch.js +0 -1
- package/cjs/src/tokenizedFetch.js.map +1 -1
- package/cjs/src/types.d.ts +245 -366
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +196 -296
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/authService/authService.d.ts +0 -1
- package/cjs/src/utils/authService/authService.d.ts.map +1 -1
- package/cjs/src/utils/authService/authService.js +0 -1
- package/cjs/src/utils/authService/authService.js.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
- package/cjs/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
- package/cjs/src/utils/authService/tokenizedAuthService.spec.js +32 -0
- package/cjs/src/utils/authService/tokenizedAuthService.spec.js.map +1 -0
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts +2 -0
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.js +57 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.d.ts +37 -12
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +70 -14
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.spec.js +78 -0
- package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/cjs/src/utils/logger.d.ts.map +1 -1
- package/cjs/src/utils/logger.js +3 -5
- package/cjs/src/utils/logger.js.map +1 -1
- package/cjs/src/utils/processData.js +1 -1
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/processData.spec.js +1 -1
- package/cjs/src/utils/processData.spec.js.map +1 -1
- package/cjs/src/utils/processTrigger.d.ts +0 -1
- package/cjs/src/utils/processTrigger.d.ts.map +1 -1
- package/cjs/src/utils/processTrigger.js +0 -2
- package/cjs/src/utils/processTrigger.js.map +1 -1
- package/cjs/src/utils/sessionInfoService.d.ts +2 -2
- package/cjs/src/utils/sessionInfoService.d.ts.map +1 -1
- package/cjs/src/utils/sessionInfoService.js +4 -4
- package/cjs/src/utils/sessionInfoService.js.map +1 -1
- package/cjs/src/utils.d.ts +2 -10
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +19 -13
- package/cjs/src/utils.js.map +1 -1
- package/dist/src/auth.d.ts +0 -15
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/authToken.d.ts +1 -2
- package/dist/src/authToken.d.ts.map +1 -1
- package/dist/src/authToken.spec.d.ts +2 -0
- package/dist/src/authToken.spec.d.ts.map +1 -0
- package/dist/src/config.d.ts +0 -1
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +73 -43
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts +1 -7
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/embedConfig.d.ts +0 -2
- package/dist/src/embed/embedConfig.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +14 -28
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +5 -21
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts +0 -11
- package/dist/src/embed/search-bar.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +60 -29
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +1 -31
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mixpanel-service.d.ts +0 -1
- package/dist/src/mixpanel-service.d.ts.map +1 -1
- package/dist/src/react/index.d.ts +1 -12
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/test/test-utils.d.ts +0 -2
- package/dist/src/test/test-utils.d.ts.map +1 -1
- package/dist/src/tokenizedFetch.d.ts +0 -1
- package/dist/src/tokenizedFetch.d.ts.map +1 -1
- package/dist/src/types.d.ts +245 -366
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/authService/authService.d.ts +0 -1
- package/dist/src/utils/authService/authService.d.ts.map +1 -1
- package/dist/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
- package/dist/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
- package/dist/src/utils/graphql/answerService/answer-queries.d.ts +2 -0
- package/dist/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answerService.d.ts +37 -12
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/src/utils/logger.d.ts.map +1 -1
- package/dist/src/utils/processTrigger.d.ts +0 -1
- package/dist/src/utils/processTrigger.d.ts.map +1 -1
- package/dist/src/utils/sessionInfoService.d.ts +66 -0
- package/dist/src/utils/sessionInfoService.d.ts.map +1 -0
- package/dist/src/utils.d.ts +2 -10
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +2331 -2358
- package/dist/tsembed-react.js +3475 -3498
- package/dist/tsembed.es.js +3688 -3922
- package/dist/tsembed.js +15216 -15442
- package/dist/visual-embed-sdk-react-full.d.ts +431 -564
- package/dist/visual-embed-sdk-react.d.ts +434 -567
- package/dist/visual-embed-sdk.d.ts +430 -552
- package/lib/package.json +2 -1
- package/lib/src/auth.d.ts +0 -15
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +3 -14
- package/lib/src/auth.js.map +1 -1
- package/lib/src/authToken.d.ts +1 -2
- package/lib/src/authToken.d.ts.map +1 -1
- package/lib/src/authToken.js +9 -3
- package/lib/src/authToken.js.map +1 -1
- package/lib/src/authToken.spec.d.ts +2 -0
- package/lib/src/authToken.spec.d.ts.map +1 -0
- package/lib/src/authToken.spec.js +26 -0
- package/lib/src/authToken.spec.js.map +1 -0
- package/lib/src/config.d.ts +0 -1
- package/lib/src/config.d.ts.map +1 -1
- package/lib/src/config.js +0 -2
- package/lib/src/config.js.map +1 -1
- package/lib/src/embed/app.d.ts +73 -43
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +44 -11
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +22 -1
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/base.d.ts +1 -7
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +6 -14
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/base.spec.js +2 -2
- package/lib/src/embed/base.spec.js.map +1 -1
- package/lib/src/embed/embedConfig.d.ts +0 -2
- package/lib/src/embed/embedConfig.d.ts.map +1 -1
- package/lib/src/embed/embedConfig.js +0 -2
- package/lib/src/embed/embedConfig.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +14 -28
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +10 -10
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +79 -4
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/sage.d.ts +5 -21
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js +2 -23
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/sage.spec.js +20 -31
- package/lib/src/embed/sage.spec.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +0 -11
- package/lib/src/embed/search-bar.d.ts.map +1 -1
- package/lib/src/embed/search-bar.js +0 -2
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.d.ts +60 -29
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +43 -9
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +35 -1
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +1 -31
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +37 -46
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +83 -9
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/errors.js +1 -1
- package/lib/src/errors.js.map +1 -1
- package/lib/src/index.d.ts +0 -1
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +0 -1
- package/lib/src/index.js.map +1 -1
- package/lib/src/mixpanel-service.d.ts +0 -1
- package/lib/src/mixpanel-service.d.ts.map +1 -1
- package/lib/src/mixpanel-service.js +0 -1
- package/lib/src/mixpanel-service.js.map +1 -1
- package/lib/src/react/index.d.ts +1 -12
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +1 -11
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/react/index.spec.js +16 -4
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/test/test-utils.d.ts +0 -2
- package/lib/src/test/test-utils.d.ts.map +1 -1
- package/lib/src/test/test-utils.js +0 -2
- package/lib/src/test/test-utils.js.map +1 -1
- package/lib/src/tokenizedFetch.d.ts +0 -1
- package/lib/src/tokenizedFetch.d.ts.map +1 -1
- package/lib/src/tokenizedFetch.js +0 -1
- package/lib/src/tokenizedFetch.js.map +1 -1
- package/lib/src/types.d.ts +245 -366
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +196 -296
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/authService/authService.d.ts +0 -1
- package/lib/src/utils/authService/authService.d.ts.map +1 -1
- package/lib/src/utils/authService/authService.js +0 -1
- package/lib/src/utils/authService/authService.js.map +1 -1
- package/lib/src/utils/authService/authService.spec.js +1 -1
- package/lib/src/utils/authService/authService.spec.js.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
- package/lib/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
- package/lib/src/utils/authService/tokenizedAuthService.spec.js +29 -0
- package/lib/src/utils/authService/tokenizedAuthService.spec.js.map +1 -0
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts +2 -0
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.js +56 -0
- package/lib/src/utils/graphql/answerService/answer-queries.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.d.ts +37 -12
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +71 -15
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js +80 -2
- package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/lib/src/utils/logger.d.ts.map +1 -1
- package/lib/src/utils/logger.js +2 -3
- package/lib/src/utils/logger.js.map +1 -1
- package/lib/src/utils/processData.js +1 -1
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/processData.spec.js +1 -1
- package/lib/src/utils/processData.spec.js.map +1 -1
- package/lib/src/utils/processTrigger.d.ts +0 -1
- package/lib/src/utils/processTrigger.d.ts.map +1 -1
- package/lib/src/utils/processTrigger.js +0 -2
- package/lib/src/utils/processTrigger.js.map +1 -1
- package/lib/src/utils/sessionInfoService.d.ts +2 -2
- package/lib/src/utils/sessionInfoService.d.ts.map +1 -1
- package/lib/src/utils/sessionInfoService.js +2 -2
- package/lib/src/utils/sessionInfoService.js.map +1 -1
- package/lib/src/utils.d.ts +2 -10
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +17 -12
- package/lib/src/utils.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +436 -558
- package/package.json +2 -1
- package/src/auth.ts +6 -23
- package/src/authToken.spec.ts +31 -0
- package/src/authToken.ts +9 -3
- package/src/config.ts +0 -2
- package/src/embed/app.spec.ts +37 -1
- package/src/embed/app.ts +108 -50
- package/src/embed/base.spec.ts +3 -3
- package/src/embed/base.ts +15 -22
- package/src/embed/embedConfig.ts +0 -2
- package/src/embed/liveboard.spec.ts +104 -9
- package/src/embed/liveboard.ts +26 -39
- package/src/embed/sage.spec.ts +20 -35
- package/src/embed/sage.ts +5 -38
- package/src/embed/search-bar.tsx +0 -11
- package/src/embed/search.spec.ts +48 -1
- package/src/embed/search.ts +94 -38
- package/src/embed/ts-embed.spec.ts +109 -24
- package/src/embed/ts-embed.ts +68 -78
- package/src/errors.ts +1 -1
- package/src/index.ts +0 -1
- package/src/mixpanel-service.ts +0 -1
- package/src/react/index.spec.tsx +48 -60
- package/src/react/index.tsx +1 -12
- package/src/test/test-utils.ts +0 -2
- package/src/tokenizedFetch.ts +0 -1
- package/src/types.ts +245 -365
- package/src/utils/authService/authService.spec.ts +4 -4
- package/src/utils/authService/authService.ts +0 -1
- package/src/utils/graphql/answerService/answer-queries.ts +58 -0
- package/src/utils/graphql/answerService/answerService.spec.ts +88 -2
- package/src/utils/graphql/answerService/answerService.ts +87 -16
- package/src/utils/logger.ts +2 -3
- package/src/utils/processData.spec.ts +1 -1
- package/src/utils/processData.ts +1 -1
- package/src/utils/processTrigger.ts +0 -2
- package/src/utils.ts +21 -13
package/dist/src/auth.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ interface sessionInfoInterface {
|
|
|
13
13
|
/**
|
|
14
14
|
* Enum for auth failure types. This is the parameter passed to the listner
|
|
15
15
|
* of {@link AuthStatus.FAILURE}.
|
|
16
|
-
*
|
|
17
16
|
* @group Authentication / Init
|
|
18
17
|
*/
|
|
19
18
|
export declare enum AuthFailureType {
|
|
@@ -24,7 +23,6 @@ export declare enum AuthFailureType {
|
|
|
24
23
|
}
|
|
25
24
|
/**
|
|
26
25
|
* Enum for auth status emitted by the emitter returned from {@link init}.
|
|
27
|
-
*
|
|
28
26
|
* @group Authentication / Init
|
|
29
27
|
*/
|
|
30
28
|
export declare enum AuthStatus {
|
|
@@ -48,27 +46,23 @@ export declare enum AuthStatus {
|
|
|
48
46
|
* Emitted when inPopup is true in the SAMLRedirect flow and the
|
|
49
47
|
* popup is waiting to be triggered either programmatically
|
|
50
48
|
* or by the trigger button.
|
|
51
|
-
*
|
|
52
49
|
* @version SDK: 1.19.0
|
|
53
50
|
*/
|
|
54
51
|
WAITING_FOR_POPUP = "WAITING_FOR_POPUP"
|
|
55
52
|
}
|
|
56
53
|
/**
|
|
57
54
|
* Event emitter returned from {@link init}.
|
|
58
|
-
*
|
|
59
55
|
* @group Authentication / Init
|
|
60
56
|
*/
|
|
61
57
|
export interface AuthEventEmitter {
|
|
62
58
|
/**
|
|
63
59
|
* Register a listener on Auth failure.
|
|
64
|
-
*
|
|
65
60
|
* @param event
|
|
66
61
|
* @param listener
|
|
67
62
|
*/
|
|
68
63
|
on(event: AuthStatus.FAILURE, listener: (failureType: AuthFailureType) => void): this;
|
|
69
64
|
/**
|
|
70
65
|
* Register a listener on Auth SDK success.
|
|
71
|
-
*
|
|
72
66
|
* @param event
|
|
73
67
|
* @param listener
|
|
74
68
|
*/
|
|
@@ -79,13 +73,11 @@ export interface AuthEventEmitter {
|
|
|
79
73
|
once(event: AuthStatus.SUCCESS, listener: (sessionInfo: any) => void): this;
|
|
80
74
|
/**
|
|
81
75
|
* Trigger an event on the emitter returned from init.
|
|
82
|
-
*
|
|
83
76
|
* @param {@link AuthEvent}
|
|
84
77
|
*/
|
|
85
78
|
emit(event: AuthEvent, ...args: any[]): boolean;
|
|
86
79
|
/**
|
|
87
80
|
* Remove listener from the emitter returned from init.
|
|
88
|
-
*
|
|
89
81
|
* @param event
|
|
90
82
|
* @param listener
|
|
91
83
|
* @param context
|
|
@@ -94,14 +86,12 @@ export interface AuthEventEmitter {
|
|
|
94
86
|
off(event: AuthStatus, listener: (...args: any[]) => void, context: any, once: boolean): this;
|
|
95
87
|
/**
|
|
96
88
|
* Remove all the event listeners
|
|
97
|
-
*
|
|
98
89
|
* @param event
|
|
99
90
|
*/
|
|
100
91
|
removeAllListeners(event: AuthStatus): this;
|
|
101
92
|
}
|
|
102
93
|
/**
|
|
103
94
|
* Events which can be triggered on the emitter returned from {@link init}.
|
|
104
|
-
*
|
|
105
95
|
* @group Authentication / Init
|
|
106
96
|
*/
|
|
107
97
|
export declare enum AuthEvent {
|
|
@@ -146,19 +136,16 @@ export declare function getReleaseVersion(): string;
|
|
|
146
136
|
/**
|
|
147
137
|
* Return a promise that resolves with the session information when
|
|
148
138
|
* authentication is successful. And info is available.
|
|
149
|
-
*
|
|
150
139
|
* @group Global methods
|
|
151
140
|
*/
|
|
152
141
|
export declare function getSessionInfo(): Promise<sessionInfoInterface>;
|
|
153
142
|
/**
|
|
154
143
|
* Perform token based authentication
|
|
155
|
-
*
|
|
156
144
|
* @param embedConfig The embed configuration
|
|
157
145
|
*/
|
|
158
146
|
export declare const doTokenAuth: (embedConfig: EmbedConfig) => Promise<boolean>;
|
|
159
147
|
/**
|
|
160
148
|
* Validate embedConfig parameters required for cookielessTokenAuth
|
|
161
|
-
*
|
|
162
149
|
* @param embedConfig The embed configuration
|
|
163
150
|
*/
|
|
164
151
|
export declare const doCookielessTokenAuth: (embedConfig: EmbedConfig) => Promise<boolean>;
|
|
@@ -168,7 +155,6 @@ export declare const doCookielessTokenAuth: (embedConfig: EmbedConfig) => Promis
|
|
|
168
155
|
*
|
|
169
156
|
* Warning: This feature is primarily intended for developer testing. It is
|
|
170
157
|
* strongly advised not to use this authentication method in production.
|
|
171
|
-
*
|
|
172
158
|
* @param embedConfig The embed configuration
|
|
173
159
|
*/
|
|
174
160
|
export declare const doBasicAuth: (embedConfig: EmbedConfig) => Promise<boolean>;
|
|
@@ -177,7 +163,6 @@ export declare const doOIDCAuth: (embedConfig: EmbedConfig) => Promise<boolean>;
|
|
|
177
163
|
export declare const logout: (embedConfig: EmbedConfig) => Promise<boolean>;
|
|
178
164
|
/**
|
|
179
165
|
* Perform authentication on the ThoughtSpot cluster
|
|
180
|
-
*
|
|
181
166
|
* @param embedConfig The embed configuration
|
|
182
167
|
*/
|
|
183
168
|
export declare const authenticate: (embedConfig: EmbedConfig) => Promise<boolean>;
|
package/dist/src/auth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["auth.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["auth.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,eAAe,CAAC;AAGzC,OAAO,EACoB,WAAW,EACrC,MAAM,SAAS,CAAC;AAcjB,eAAO,IAAI,cAAc,SAAQ,CAAC;AAElC,eAAO,IAAI,cAAc,EAAE,MAAa,CAAC;AAEzC,eAAO,IAAI,qBAAqB,EAAE,OAAO,CAAC,IAAI,CAAQ,CAAC;AAQvD,eAAO,MAAM,2BAA2B,yCAAyC,CAAC;AAElF,UAAU,oBAAoB;IAC1B,QAAQ,EAAE,GAAG,CAAC;IACd,YAAY,EAAE,GAAG,CAAC;IAClB,aAAa,EAAE,GAAG,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED;;;;GAIG;AACH,oBAAY,eAAe;IACvB,GAAG,QAAQ;IACX,gBAAgB,qBAAqB;IACrC,MAAM,WAAW;IACjB,KAAK,UAAU;CAClB;AAED;;;GAGG;AACH,oBAAY,UAAU;IAClB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,WAAW,gBAAgB;IAC3B;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,MAAM,WAAW;IACjB;;;;;OAKG;IACH,iBAAiB,sBAAsB;CAC1C;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,EAAE,QAAQ,EAAE,CAAC,WAAW,EA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
|
2
2
|
export declare const getAuthenticationToken: (embedConfig: EmbedConfig) => Promise<string>;
|
|
3
3
|
/**
|
|
4
4
|
* Resets the auth token and a new token will be fetched on the next request.
|
|
5
|
-
*
|
|
6
5
|
* @example
|
|
7
6
|
* ```js
|
|
8
7
|
* resetCachedAuthToken();
|
|
9
8
|
* ```
|
|
10
|
-
* @version SDK: 1.28.
|
|
9
|
+
* @version SDK: 1.28.2 | ThoughtSpot: *
|
|
11
10
|
* @group Authentication / Init
|
|
12
11
|
*/
|
|
13
12
|
export declare const resetCachedAuthToken: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authToken.d.ts","sourceRoot":"","sources":["authToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"authToken.d.ts","sourceRoot":"","sources":["authToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAYtC,eAAO,MAAM,sBAAsB,gBAAuB,WAAW,KAAG,QAAQ,MAAM,CA6BrF,CAAC;AA6BF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,QAAO,IAEvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authToken.spec.d.ts","sourceRoot":"","sources":["authToken.spec.ts"],"names":[],"mappings":""}
|
package/dist/src/config.d.ts
CHANGED
package/dist/src/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAoBtC;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,WAAY,WAAW,KAAG,MAoBxD,CAAC;AAEF,eAAO,MAAM,aAAa,WAAY,WAAW,KAAG,MAgBnD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,OAAO,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAC1C,eAAO,MAAM,oBAAoB,SAAS,CAAC"}
|
package/dist/src/embed/app.d.ts
CHANGED
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Full application embedding
|
|
5
5
|
* https://developers.thoughtspot.com/docs/?pageid=full-embed
|
|
6
|
-
*
|
|
7
6
|
* @summary Full app embed
|
|
8
7
|
* @module
|
|
9
8
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
10
9
|
*/
|
|
11
|
-
import { DOMSelector,
|
|
10
|
+
import { DOMSelector, MessagePayload, ViewConfig } from '../types';
|
|
12
11
|
import { V1Embed } from './ts-embed';
|
|
13
12
|
/**
|
|
14
13
|
* Pages within the ThoughtSpot app that can be embedded.
|
|
@@ -43,9 +42,26 @@ export declare enum Page {
|
|
|
43
42
|
*/
|
|
44
43
|
SpotIQ = "insights"
|
|
45
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Define the initial state os column custom group accordions
|
|
47
|
+
* in data panel v2.
|
|
48
|
+
*/
|
|
49
|
+
export declare enum DataPanelCustomColumnGroupsAccordionState {
|
|
50
|
+
/**
|
|
51
|
+
* Expand all the accordion initially in data panel v2.
|
|
52
|
+
*/
|
|
53
|
+
EXPAND_ALL = "EXPAND_ALL",
|
|
54
|
+
/**
|
|
55
|
+
* Collapse all the accordions initially in data panel v2.
|
|
56
|
+
*/
|
|
57
|
+
COLLAPSE_ALL = "COLLAPSE_ALL",
|
|
58
|
+
/**
|
|
59
|
+
* Expand the first accordion and collapse the rest.
|
|
60
|
+
*/
|
|
61
|
+
EXPAND_FIRST = "EXPAND_FIRST"
|
|
62
|
+
}
|
|
46
63
|
/**
|
|
47
64
|
* The view configuration for full app embedding.
|
|
48
|
-
*
|
|
49
65
|
* @group Embed components
|
|
50
66
|
*/
|
|
51
67
|
export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
@@ -53,10 +69,8 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
53
69
|
* If true, the top navigation bar within the ThoughtSpot app
|
|
54
70
|
* is displayed. By default, the navigation bar is hidden.
|
|
55
71
|
* This flag also controls the homepage left navigation bar.
|
|
56
|
-
*
|
|
57
72
|
* @default true
|
|
58
73
|
* @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
|
|
59
|
-
*
|
|
60
74
|
* @example
|
|
61
75
|
* ```js
|
|
62
76
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -72,13 +86,12 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
72
86
|
* nav-bars are visible, this flag will only hide the homepage left nav-bar.
|
|
73
87
|
* The showPrimaryNavbar flag takes precedence over the hideHomepageLeftNav.
|
|
74
88
|
*
|
|
89
|
+
*
|
|
75
90
|
* **Note**: This option does not apply to the classic homepage.
|
|
76
91
|
* To access the updated modular homepage, set
|
|
77
92
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
78
|
-
*
|
|
79
93
|
* @default false
|
|
80
94
|
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
81
|
-
*
|
|
82
95
|
* @example
|
|
83
96
|
* ```js
|
|
84
97
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -93,7 +106,6 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
93
106
|
* Global nav-bar. By default, these buttons are visible on the nav-bar.
|
|
94
107
|
* @default false
|
|
95
108
|
* @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
|
|
96
|
-
*
|
|
97
109
|
* @example
|
|
98
110
|
* ```js
|
|
99
111
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -107,13 +119,12 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
107
119
|
* Control the visibility of the application switcher button on the nav-bar.
|
|
108
120
|
* By default, the application switcher is shown.
|
|
109
121
|
*
|
|
122
|
+
*
|
|
110
123
|
* **Note**: This option does not apply to the classic homepage.
|
|
111
124
|
* To access the updated modular homepage, set
|
|
112
125
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
113
|
-
*
|
|
114
126
|
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
115
127
|
* @default false
|
|
116
|
-
*
|
|
117
128
|
* @example
|
|
118
129
|
* ```js
|
|
119
130
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -127,13 +138,12 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
127
138
|
* Control the visibility of the Org switcher button on the nav-bar.
|
|
128
139
|
* By default, the Org switcher button is shown.
|
|
129
140
|
*
|
|
141
|
+
*
|
|
130
142
|
* **Note**: This option does not apply to the classic homepage.
|
|
131
143
|
* To access the updated modular homepage, set
|
|
132
144
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
133
|
-
*
|
|
134
145
|
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
135
146
|
* @default true
|
|
136
|
-
*
|
|
137
147
|
* @example
|
|
138
148
|
* ```js
|
|
139
149
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -151,9 +161,7 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
151
161
|
*
|
|
152
162
|
* For eg, if you want the component to open to a specific Liveboard
|
|
153
163
|
* you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
|
|
154
|
-
*
|
|
155
164
|
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
156
|
-
*
|
|
157
165
|
* @example
|
|
158
166
|
* ```js
|
|
159
167
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -169,9 +177,7 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
169
177
|
*
|
|
170
178
|
* Use this to open to particular page in the app. To open to a specific
|
|
171
179
|
* path within the app, use the `path` attribute which is more flexible.
|
|
172
|
-
*
|
|
173
180
|
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
174
|
-
*
|
|
175
181
|
* @example
|
|
176
182
|
* ```js
|
|
177
183
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -185,7 +191,6 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
185
191
|
* This puts a filter tag on the application. All metadata lists in the
|
|
186
192
|
* application, such as Liveboards and answers, would be filtered by this
|
|
187
193
|
* tag.
|
|
188
|
-
*
|
|
189
194
|
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
190
195
|
* @example
|
|
191
196
|
* ```js
|
|
@@ -198,9 +203,7 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
198
203
|
tag?: string;
|
|
199
204
|
/**
|
|
200
205
|
* The array of GUIDs to be hidden
|
|
201
|
-
*
|
|
202
206
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
203
|
-
*
|
|
204
207
|
* @example
|
|
205
208
|
* ```js
|
|
206
209
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -216,7 +219,6 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
216
219
|
/**
|
|
217
220
|
* Render liveboards using the new v2 rendering mode
|
|
218
221
|
* This is a transient flag which is primarily meant for internal use
|
|
219
|
-
*
|
|
220
222
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
221
223
|
* @hidden
|
|
222
224
|
*/
|
|
@@ -224,9 +226,7 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
224
226
|
/**
|
|
225
227
|
* If set to true, the Search Assist feature is enabled.
|
|
226
228
|
* @default true
|
|
227
|
-
*
|
|
228
229
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
|
|
229
|
-
*
|
|
230
230
|
* @example
|
|
231
231
|
* ```js
|
|
232
232
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -239,9 +239,7 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
239
239
|
/**
|
|
240
240
|
* If set to true, the embedded object container dynamically resizes
|
|
241
241
|
* according to the height of the pages which support fullHeight mode.
|
|
242
|
-
*
|
|
243
242
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.4.0.cl, 9.4.0-sw
|
|
244
|
-
*
|
|
245
243
|
* @example
|
|
246
244
|
* ```js
|
|
247
245
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -253,7 +251,6 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
253
251
|
fullHeight?: boolean;
|
|
254
252
|
/**
|
|
255
253
|
* Flag to control Data panel experience
|
|
256
|
-
*
|
|
257
254
|
* @default false
|
|
258
255
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
259
256
|
* @hidden
|
|
@@ -261,10 +258,8 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
261
258
|
dataPanelV2?: boolean;
|
|
262
259
|
/**
|
|
263
260
|
* Show or hide Liveboard header
|
|
264
|
-
*
|
|
265
261
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
266
262
|
* @default false
|
|
267
|
-
*
|
|
268
263
|
* @example
|
|
269
264
|
* ```js
|
|
270
265
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -276,10 +271,8 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
276
271
|
hideLiveboardHeader?: boolean;
|
|
277
272
|
/**
|
|
278
273
|
* Show or hide Liveboard title
|
|
279
|
-
*
|
|
280
274
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
281
275
|
* @default false
|
|
282
|
-
*
|
|
283
276
|
* @example
|
|
284
277
|
* ```js
|
|
285
278
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -291,10 +284,8 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
291
284
|
showLiveboardTitle?: boolean;
|
|
292
285
|
/**
|
|
293
286
|
* Show or hide Liveboard description
|
|
294
|
-
*
|
|
295
287
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
296
288
|
* @default false
|
|
297
|
-
*
|
|
298
289
|
* @example
|
|
299
290
|
* ```js
|
|
300
291
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -306,10 +297,8 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
306
297
|
showLiveboardDescription?: boolean;
|
|
307
298
|
/**
|
|
308
299
|
* Flag to control new Modular Home experience.
|
|
309
|
-
*
|
|
310
300
|
* @default false
|
|
311
301
|
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
312
|
-
*
|
|
313
302
|
* @example
|
|
314
303
|
* ```js
|
|
315
304
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -321,7 +310,6 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
321
310
|
modularHomeExperience?: boolean;
|
|
322
311
|
/**
|
|
323
312
|
* Boolean to control if Liveboard header is sticky or not.
|
|
324
|
-
*
|
|
325
313
|
* @example
|
|
326
314
|
* ```js
|
|
327
315
|
* const embed = new AppEmbed('#embed', {
|
|
@@ -334,22 +322,70 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
334
322
|
isLiveboardHeaderSticky?: boolean;
|
|
335
323
|
/**
|
|
336
324
|
* enable or disable ask sage
|
|
337
|
-
*
|
|
338
325
|
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
339
326
|
* @default false
|
|
340
327
|
*/
|
|
341
328
|
enableAskSage?: boolean;
|
|
342
329
|
/**
|
|
343
330
|
* To set the initial state of the search bar in case of saved-answers.
|
|
344
|
-
*
|
|
345
331
|
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
346
332
|
* @default false
|
|
347
333
|
*/
|
|
348
334
|
collapseSearchBarInitially?: boolean;
|
|
335
|
+
/**
|
|
336
|
+
* To enable custom column groups in data panel v2.
|
|
337
|
+
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
338
|
+
* @default false
|
|
339
|
+
* @example
|
|
340
|
+
* ```js
|
|
341
|
+
* const embed = new AppEmbed('#embed', {
|
|
342
|
+
* ... // other app view config
|
|
343
|
+
* enableCustomColumnGroups: true,
|
|
344
|
+
* });
|
|
345
|
+
* ```
|
|
346
|
+
*/
|
|
347
|
+
enableCustomColumnGroups?: boolean;
|
|
348
|
+
/**
|
|
349
|
+
* This controls the initial behaviour of custom column groups accordion.
|
|
350
|
+
* It takes DataPanelCustomColumnGroupsAccordionState enum values as input.
|
|
351
|
+
* List of different enum values:-
|
|
352
|
+
* - EXPAND_ALL: Expand all the accordion initially in data panel v2.
|
|
353
|
+
* - COLLAPSE_ALL: Collapse all the accordions initially in data panel v2.
|
|
354
|
+
* - EXPAND_FIRST: Expand the first accordion and collapse the rest.
|
|
355
|
+
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
356
|
+
* @default DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL
|
|
357
|
+
* @example
|
|
358
|
+
* ```js
|
|
359
|
+
* const embed = new AppEmbed('#embed', {
|
|
360
|
+
* ... // other app view config
|
|
361
|
+
* dataPanelCustomGroupsAccordionInitialState:
|
|
362
|
+
* DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL,
|
|
363
|
+
* });
|
|
364
|
+
* ```
|
|
365
|
+
*/
|
|
366
|
+
dataPanelCustomGroupsAccordionInitialState?: DataPanelCustomColumnGroupsAccordionState;
|
|
367
|
+
/**
|
|
368
|
+
* This flag is used to enable the 2 column layout in liveboard
|
|
369
|
+
* @type {boolean}
|
|
370
|
+
* @default false
|
|
371
|
+
* @version SDK: 1.32.0 | ThoughtSpot:10.1.0.cl
|
|
372
|
+
* @example
|
|
373
|
+
* ```js
|
|
374
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
375
|
+
* ... // other options
|
|
376
|
+
* enable2ColumnLayout: true,
|
|
377
|
+
* })
|
|
378
|
+
* ```
|
|
379
|
+
*/
|
|
380
|
+
enable2ColumnLayout?: boolean;
|
|
381
|
+
/**
|
|
382
|
+
* Flag to use OnBeforeSearchExecute embed event
|
|
383
|
+
* @version SDK : 1.29.0 | Thoughtspot : 10.1.0.cl
|
|
384
|
+
*/
|
|
385
|
+
isOnBeforeGetVizDataInterceptEnabled?: boolean;
|
|
349
386
|
}
|
|
350
387
|
/**
|
|
351
388
|
* Embeds full ThoughtSpot experience in a host application.
|
|
352
|
-
*
|
|
353
389
|
* @group Embed components
|
|
354
390
|
*/
|
|
355
391
|
export declare class AppEmbed extends V1Embed {
|
|
@@ -363,14 +399,12 @@ export declare class AppEmbed extends V1Embed {
|
|
|
363
399
|
protected getEmbedParams(): string;
|
|
364
400
|
/**
|
|
365
401
|
* Constructs the URL of the ThoughtSpot app page to be rendered.
|
|
366
|
-
*
|
|
367
402
|
* @param pageId The ID of the page to be embedded.
|
|
368
403
|
*/
|
|
369
404
|
getIFrameSrc(): string;
|
|
370
405
|
/**
|
|
371
406
|
* Set the iframe height as per the computed height received
|
|
372
407
|
* from the ThoughtSpot app.
|
|
373
|
-
*
|
|
374
408
|
* @param data The event payload
|
|
375
409
|
*/
|
|
376
410
|
protected updateIFrameHeight: (data: MessagePayload) => void;
|
|
@@ -378,14 +412,12 @@ export declare class AppEmbed extends V1Embed {
|
|
|
378
412
|
private setIframeHeightForNonEmbedLiveboard;
|
|
379
413
|
/**
|
|
380
414
|
* Gets the ThoughtSpot route of the page for a particular page ID.
|
|
381
|
-
*
|
|
382
415
|
* @param pageId The identifier for a page in the ThoughtSpot app.
|
|
383
416
|
* @param modularHomeExperience
|
|
384
417
|
*/
|
|
385
418
|
private getPageRoute;
|
|
386
419
|
/**
|
|
387
420
|
* Formats the path provided by the user.
|
|
388
|
-
*
|
|
389
421
|
* @param path The URL path.
|
|
390
422
|
* @returns The URL path that the embedded app understands.
|
|
391
423
|
*/
|
|
@@ -394,7 +426,6 @@ export declare class AppEmbed extends V1Embed {
|
|
|
394
426
|
* Navigate to particular page for app embed. eg:answers/pinboards/home
|
|
395
427
|
* This is used for embedding answers, pinboards, visualizations and full application
|
|
396
428
|
* only.
|
|
397
|
-
*
|
|
398
429
|
* @param path string | number The string, set to iframe src and navigate to new page
|
|
399
430
|
* eg: appEmbed.navigateToPage('pinboards')
|
|
400
431
|
* When used with `noReload` (default: true) this can also be a number
|
|
@@ -405,7 +436,6 @@ export declare class AppEmbed extends V1Embed {
|
|
|
405
436
|
navigateToPage(path: string | number, noReload?: boolean): void;
|
|
406
437
|
/**
|
|
407
438
|
* Renders the embedded application pages in the ThoughtSpot app.
|
|
408
|
-
*
|
|
409
439
|
* @param renderOptions An object containing the page ID
|
|
410
440
|
* to be embedded.
|
|
411
441
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["app.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["app.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACH,WAAW,EAAyB,cAAc,EAAS,UAAU,EACxE,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;GAEG;AAEH,oBAAY,IAAI;IACZ;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;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AO,CAAC,QAAQ,CAAC;CAO3C"}
|
package/dist/src/embed/base.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { AuthEventEmitter, notifyAuthFailure, notifyAuthSDKSuccess, notifyAuthSuccess, notifyLogout } from '../auth';
|
|
1
2
|
import { EmbedConfig, PrefetchFeatures } from '../types';
|
|
2
|
-
import { notifyAuthFailure, notifyAuthSDKSuccess, notifyAuthSuccess, notifyLogout, AuthEventEmitter } from '../auth';
|
|
3
3
|
export interface executeTMLInput {
|
|
4
4
|
metadata_tmls: string[];
|
|
5
5
|
import_policy?: 'PARTIAL' | 'ALL_OR_NONE' | 'VALIDATE_ONLY';
|
|
@@ -25,7 +25,6 @@ export declare const handleAuth: () => Promise<boolean>;
|
|
|
25
25
|
* Prefetches static resources from the specified URL. Web browsers can then cache the
|
|
26
26
|
* prefetched resources and serve them from the user's local disk to provide faster access
|
|
27
27
|
* to your app.
|
|
28
|
-
*
|
|
29
28
|
* @param url The URL provided for prefetch
|
|
30
29
|
* @param prefetchFeatures Specify features which needs to be prefetched.
|
|
31
30
|
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 7.2.1
|
|
@@ -37,7 +36,6 @@ export declare const prefetch: (url?: string, prefetchFeatures?: PrefetchFeature
|
|
|
37
36
|
* authentication if applicable. This function needs to be called before any ThoughtSpot
|
|
38
37
|
* component like liveboard etc can be embedded. But need not wait for AuthEvent.SUCCESS
|
|
39
38
|
* to actually embed. That is handled internally.
|
|
40
|
-
*
|
|
41
39
|
* @param embedConfig The configuration object containing ThoughtSpot host,
|
|
42
40
|
* authentication mechanism and so on.
|
|
43
41
|
* @example
|
|
@@ -64,7 +62,6 @@ export declare function disableAutoLogin(): void;
|
|
|
64
62
|
*
|
|
65
63
|
* You can call the `init` method again to re login, if autoLogin is set to
|
|
66
64
|
* true in this second call it will be honored.
|
|
67
|
-
*
|
|
68
65
|
* @param doNotDisableAutoLogin This flag when passed will not disable autoLogin
|
|
69
66
|
* @returns Promise which resolves when logout completes.
|
|
70
67
|
* @version SDK: 1.10.1 | ThoughtSpot: 8.2.0.cl, 8.4.1-sw
|
|
@@ -74,13 +71,11 @@ export declare const logout: (doNotDisableAutoLogin?: boolean) => Promise<boolea
|
|
|
74
71
|
/**
|
|
75
72
|
* Renders functions in a queue, resolves to next function only after the callback next
|
|
76
73
|
* is called
|
|
77
|
-
*
|
|
78
74
|
* @param fn The function being registered
|
|
79
75
|
*/
|
|
80
76
|
export declare const renderInQueue: (fn: (next?: (val?: any) => void) => Promise<any>) => Promise<any>;
|
|
81
77
|
/**
|
|
82
78
|
* Imports TML representation of the metadata objects into ThoughtSpot.
|
|
83
|
-
*
|
|
84
79
|
* @param data
|
|
85
80
|
* @example
|
|
86
81
|
* ```js
|
|
@@ -105,7 +100,6 @@ export declare const executeTML: (data: executeTMLInput) => Promise<any>;
|
|
|
105
100
|
/**
|
|
106
101
|
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
107
102
|
* format.
|
|
108
|
-
*
|
|
109
103
|
* @param data
|
|
110
104
|
* @example
|
|
111
105
|
* ```js
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["base.ts"],"names":[],"mappings":"AAWA,OAAO,EAEH,gBAAgB,EAKhB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EAEf,MAAM,SAAS,CAAC;AAKjB,OAAO,EACO,WAAW,EAAY,gBAAgB,EACpD,MAAM,UAAU,CAAC;AAYlB,MAAM,WAAW,eAAe;IAC5B,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,eAAe,CAAC;IAC5D,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC3B,QAAQ,EAAE;QACN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I5B"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EmbedConfig } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* Gets the configuration embed was initialized with.
|
|
4
|
-
*
|
|
5
4
|
* @returns {@link EmbedConfig} The configuration embed was initialized with.
|
|
6
5
|
* @version SDK: 1.19.0 | ThoughtSpot: *
|
|
7
6
|
* @group Global methods
|
|
@@ -10,7 +9,6 @@ export declare const getEmbedConfig: () => EmbedConfig;
|
|
|
10
9
|
/**
|
|
11
10
|
* Sets the configuration embed was initialized with.
|
|
12
11
|
* And returns the new configuration.
|
|
13
|
-
*
|
|
14
12
|
* @param newConfig The configuration to set.
|
|
15
13
|
* @version SDK: 1.27.0 | ThoughtSpot: *
|
|
16
14
|
* @group Global methods
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedConfig.d.ts","sourceRoot":"","sources":["embedConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC
|
|
1
|
+
{"version":3,"file":"embedConfig.d.ts","sourceRoot":"","sources":["embedConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC;;;;;GAKG;AACH,eAAO,MAAM,cAAc,QAAO,WAAqB,CAAC;AAExD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,cAAe,WAAW,gBAGpD,CAAC"}
|