@thoughtspot/visual-embed-sdk 1.32.3 → 1.32.4-dc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/package.json +1 -1
- package/cjs/src/auth.d.ts +0 -1
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +0 -1
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/authToken.d.ts +4 -0
- package/cjs/src/authToken.d.ts.map +1 -1
- package/cjs/src/authToken.js +4 -0
- package/cjs/src/authToken.js.map +1 -1
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +5 -6
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +26 -0
- package/cjs/src/embed/conversation.d.ts.map +1 -0
- package/cjs/src/embed/conversation.js +41 -0
- package/cjs/src/embed/conversation.js.map +1 -0
- package/cjs/src/embed/embed.spec.js +0 -19
- package/cjs/src/embed/embed.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +0 -2
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +0 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +2 -8
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +0 -9
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +2 -1
- 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/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 +3 -34
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +3 -26
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/answerService/answerService.d.ts +34 -0
- package/cjs/src/utils/answerService/answerService.d.ts.map +1 -0
- package/cjs/src/utils/answerService/answerService.js +142 -0
- package/cjs/src/utils/answerService/answerService.js.map +1 -0
- package/cjs/src/utils/answerService/answerService.spec.d.ts +1 -0
- package/cjs/src/utils/answerService/answerService.spec.d.ts.map +1 -0
- package/cjs/src/utils/answerService/answerService.spec.js +1 -0
- package/cjs/src/utils/answerService/answerService.spec.js.map +1 -0
- package/cjs/src/utils/answerService/graphql-queries.d.ts +6 -0
- package/cjs/src/utils/answerService/graphql-queries.d.ts.map +1 -0
- package/cjs/src/utils/answerService/graphql-queries.js +123 -0
- package/cjs/src/utils/answerService/graphql-queries.js.map +1 -0
- package/cjs/src/utils/answerService.d.ts +10 -0
- package/cjs/src/utils/answerService.d.ts.map +1 -0
- package/cjs/src/utils/answerService.js +61 -0
- package/cjs/src/utils/answerService.js.map +1 -0
- package/cjs/src/utils/answerService.spec.d.ts +2 -0
- package/cjs/src/utils/answerService.spec.d.ts.map +1 -0
- package/cjs/src/utils/answerService.spec.js +31 -0
- package/cjs/src/utils/answerService.spec.js.map +1 -0
- package/cjs/src/utils/authService/tokenizedAuthService.d.ts +0 -2
- package/cjs/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.js +0 -2
- package/cjs/src/utils/authService/tokenizedAuthService.js.map +1 -1
- package/cjs/src/utils/authService.d.ts +37 -0
- package/cjs/src/utils/authService.d.ts.map +1 -0
- package/cjs/src/utils/authService.js +106 -0
- package/cjs/src/utils/authService.js.map +1 -0
- package/cjs/src/utils/authService.spec.d.ts +2 -0
- package/cjs/src/utils/authService.spec.d.ts.map +1 -0
- package/cjs/src/utils/authService.spec.js +72 -0
- package/cjs/src/utils/authService.spec.js.map +1 -0
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.js +9 -2
- package/cjs/src/utils/graphql/answerService/answer-queries.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.d.ts +1 -0
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +4 -0
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.spec.js +35 -0
- package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/graphql-queries.d.ts +5 -0
- package/cjs/src/utils/graphql/answerService/graphql-queries.d.ts.map +1 -0
- package/cjs/src/utils/graphql/answerService/graphql-queries.js +80 -0
- package/cjs/src/utils/graphql/answerService/graphql-queries.js.map +1 -0
- package/cjs/src/utils/graphql/conversationService/conversation-queries.d.ts +3 -0
- package/cjs/src/utils/graphql/conversationService/conversation-queries.d.ts.map +1 -0
- package/cjs/src/utils/graphql/conversationService/conversation-queries.js +318 -0
- package/cjs/src/utils/graphql/conversationService/conversation-queries.js.map +1 -0
- package/cjs/src/utils/graphql/conversationService/conversation-service.d.ts +12 -0
- package/cjs/src/utils/graphql/conversationService/conversation-service.d.ts.map +1 -0
- package/cjs/src/utils/graphql/conversationService/conversation-service.js +89 -0
- package/cjs/src/utils/graphql/conversationService/conversation-service.js.map +1 -0
- package/cjs/src/utils/graphql/graphql-request.d.ts.map +1 -1
- package/cjs/src/utils/graphql/graphql-request.spec.d.ts +2 -0
- package/cjs/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
- package/cjs/src/utils/graphql/graphql-request.spec.js +36 -0
- package/cjs/src/utils/graphql/graphql-request.spec.js.map +1 -0
- package/cjs/src/utils/graphql/preview-service.d.ts +6 -0
- package/cjs/src/utils/graphql/preview-service.d.ts.map +1 -1
- package/cjs/src/utils/graphql/preview-service.js +6 -0
- package/cjs/src/utils/graphql/preview-service.js.map +1 -1
- package/cjs/src/utils/processData.d.ts.map +1 -1
- package/cjs/src/utils/processData.js +0 -1
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/processTrigger.d.ts +1 -0
- package/cjs/src/utils/processTrigger.d.ts.map +1 -1
- package/cjs/src/utils/processTrigger.js +3 -3
- package/cjs/src/utils/processTrigger.js.map +1 -1
- package/cjs/src/utils/processTrigger.spec.js +10 -0
- package/cjs/src/utils/processTrigger.spec.js.map +1 -1
- package/cjs/src/utils/sessionInfoService.d.ts +0 -4
- package/cjs/src/utils/sessionInfoService.d.ts.map +1 -1
- package/cjs/src/utils/sessionInfoService.js +0 -4
- package/cjs/src/utils/sessionInfoService.js.map +1 -1
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +1 -5
- package/cjs/src/utils.js.map +1 -1
- package/dist/assets/main-DT_ac2DB.js +264 -0
- package/dist/local/index.html +34 -0
- package/dist/src/auth.d.ts +0 -1
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/authToken.d.ts +4 -0
- package/dist/src/authToken.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +26 -0
- package/dist/src/embed/conversation.d.ts.map +1 -0
- package/dist/src/embed/liveboard.d.ts +0 -2
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +0 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.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 +3 -34
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/authService/tokenizedAuthService.d.ts +0 -2
- package/dist/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
- package/dist/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answerService.d.ts +1 -0
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/src/utils/graphql/conversationService/conversation-queries.d.ts +3 -0
- package/dist/src/utils/graphql/conversationService/conversation-queries.d.ts.map +1 -0
- package/dist/src/utils/graphql/conversationService/conversation-service.d.ts +12 -0
- package/dist/src/utils/graphql/conversationService/conversation-service.d.ts.map +1 -0
- package/dist/src/utils/graphql/graphql-request.d.ts.map +1 -1
- package/dist/src/utils/graphql/graphql-request.spec.d.ts +2 -0
- package/dist/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
- package/dist/src/utils/graphql/preview-service.d.ts +6 -0
- package/dist/src/utils/graphql/preview-service.d.ts.map +1 -1
- package/dist/src/utils/processData.d.ts.map +1 -1
- package/dist/src/utils/processTrigger.d.ts +1 -0
- package/dist/src/utils/processTrigger.d.ts.map +1 -1
- package/dist/src/utils/sessionInfoService.d.ts +0 -4
- package/dist/src/utils/sessionInfoService.d.ts.map +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +29 -48
- package/dist/tsembed-react.js +29 -48
- package/dist/tsembed.es.js +466 -55
- package/dist/tsembed.js +466 -54
- package/dist/visual-embed-sdk-react-full.d.ts +40 -52
- package/dist/visual-embed-sdk-react.d.ts +40 -52
- package/dist/visual-embed-sdk.d.ts +40 -52
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts +0 -1
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +0 -1
- package/lib/src/auth.js.map +1 -1
- package/lib/src/authToken.d.ts +4 -0
- package/lib/src/authToken.d.ts.map +1 -1
- package/lib/src/authToken.js +4 -0
- package/lib/src/authToken.js.map +1 -1
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +5 -6
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +26 -0
- package/lib/src/embed/conversation.d.ts.map +1 -0
- package/lib/src/embed/conversation.js +37 -0
- package/lib/src/embed/conversation.js.map +1 -0
- package/lib/src/embed/embed.spec.js +0 -19
- package/lib/src/embed/embed.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +0 -2
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +0 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +2 -8
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +0 -9
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +2 -1
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +2 -1
- package/lib/src/index.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 +3 -34
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +3 -26
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.d.ts +0 -2
- package/lib/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.js +0 -2
- package/lib/src/utils/authService/tokenizedAuthService.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.js +8 -1
- package/lib/src/utils/graphql/answerService/answer-queries.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.d.ts +1 -0
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +4 -0
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js +36 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/lib/src/utils/graphql/conversationService/conversation-queries.d.ts +3 -0
- package/lib/src/utils/graphql/conversationService/conversation-queries.d.ts.map +1 -0
- package/lib/src/utils/graphql/conversationService/conversation-queries.js +315 -0
- package/lib/src/utils/graphql/conversationService/conversation-queries.js.map +1 -0
- package/lib/src/utils/graphql/conversationService/conversation-service.d.ts +12 -0
- package/lib/src/utils/graphql/conversationService/conversation-service.d.ts.map +1 -0
- package/lib/src/utils/graphql/conversationService/conversation-service.js +84 -0
- package/lib/src/utils/graphql/conversationService/conversation-service.js.map +1 -0
- package/lib/src/utils/graphql/graphql-request.d.ts.map +1 -1
- package/lib/src/utils/graphql/graphql-request.spec.d.ts +2 -0
- package/lib/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
- package/lib/src/utils/graphql/graphql-request.spec.js +33 -0
- package/lib/src/utils/graphql/graphql-request.spec.js.map +1 -0
- package/lib/src/utils/graphql/preview-service.d.ts +6 -0
- package/lib/src/utils/graphql/preview-service.d.ts.map +1 -1
- package/lib/src/utils/graphql/preview-service.js +6 -0
- package/lib/src/utils/graphql/preview-service.js.map +1 -1
- package/lib/src/utils/processData.d.ts.map +1 -1
- package/lib/src/utils/processData.js +0 -1
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/processTrigger.d.ts +1 -0
- package/lib/src/utils/processTrigger.d.ts.map +1 -1
- package/lib/src/utils/processTrigger.js +1 -1
- package/lib/src/utils/processTrigger.js.map +1 -1
- package/lib/src/utils/processTrigger.spec.js +10 -0
- package/lib/src/utils/processTrigger.spec.js.map +1 -1
- package/lib/src/utils/sessionInfoService.d.ts +0 -4
- package/lib/src/utils/sessionInfoService.d.ts.map +1 -1
- package/lib/src/utils/sessionInfoService.js +0 -4
- package/lib/src/utils/sessionInfoService.js.map +1 -1
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +1 -5
- package/lib/src/utils.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +44 -52
- package/package.json +1 -1
- package/src/auth.ts +0 -1
- package/src/authToken.ts +4 -0
- package/src/embed/base.ts +0 -1
- package/src/embed/conversation.ts +57 -0
- package/src/embed/embed.spec.ts +0 -22
- package/src/embed/liveboard.ts +0 -2
- package/src/embed/ts-embed.spec.ts +0 -11
- package/src/embed/ts-embed.ts +0 -8
- package/src/index.ts +3 -0
- package/src/tokenizedFetch.ts +0 -1
- package/src/types.ts +3 -34
- package/src/utils/authService/tokenizedAuthService.ts +0 -2
- package/src/utils/graphql/answerService/answer-queries.ts +9 -1
- package/src/utils/graphql/answerService/answerService.spec.ts +45 -0
- package/src/utils/graphql/answerService/answerService.ts +8 -0
- package/src/utils/graphql/conversationService/conversation-queries.ts +315 -0
- package/src/utils/graphql/conversationService/conversation-service.ts +93 -0
- package/src/utils/graphql/graphql-request.spec.ts +38 -0
- package/src/utils/graphql/graphql-request.ts +1 -1
- package/src/utils/graphql/preview-service.ts +6 -0
- package/src/utils/processData.ts +0 -1
- package/src/utils/processTrigger.spec.ts +19 -0
- package/src/utils/processTrigger.ts +1 -1
- package/src/utils/sessionInfoService.ts +0 -4
- package/src/utils.ts +0 -5
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import 'jest-fetch-mock';
|
|
2
|
+
import { getSourceDetail } from './sourceService';
|
|
3
|
+
import * as tokenizedFetchUtil from '../../tokenizedFetch';
|
|
4
|
+
import { graphqlQuery } from './graphql-request';
|
|
5
|
+
|
|
6
|
+
const getSourceDetailQuery = `
|
|
7
|
+
query GetSourceDetail($ids: [GUID!]!) {
|
|
8
|
+
getSourceDetailById(ids: $ids, type: LOGICAL_TABLE) {
|
|
9
|
+
id
|
|
10
|
+
name
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
const thoughtSpotHost = 'TSHOST';
|
|
16
|
+
|
|
17
|
+
describe('graphQl tests', () => {
|
|
18
|
+
test('should call tokenizedFetch with correct parameters when graphqlQuery is called', async () => {
|
|
19
|
+
jest.spyOn(tokenizedFetchUtil, 'tokenizedFetch');
|
|
20
|
+
|
|
21
|
+
const details = await graphqlQuery({
|
|
22
|
+
query: getSourceDetailQuery,
|
|
23
|
+
variables: {
|
|
24
|
+
ids: [2],
|
|
25
|
+
},
|
|
26
|
+
thoughtSpotHost,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
expect(tokenizedFetchUtil.tokenizedFetch).toBeCalledWith('TSHOST/prism/?op=GetSourceDetail', {
|
|
30
|
+
body: '{"operationName":"GetSourceDetail","query":"\\n query GetSourceDetail($ids: [GUID!]!) {\\n getSourceDetailById(ids: $ids, type: LOGICAL_TABLE) {\\n id\\n name\\n }\\n } \\n","variables":{"ids":[2]}}',
|
|
31
|
+
credentials: 'include',
|
|
32
|
+
headers: {
|
|
33
|
+
accept: '*/*', 'accept-language': 'en-us', 'content-type': 'application/json;charset=UTF-8', 'x-requested-by': 'ThoughtSpot',
|
|
34
|
+
},
|
|
35
|
+
method: 'POST',
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
});
|
|
@@ -19,7 +19,7 @@ export async function graphqlQuery({
|
|
|
19
19
|
variables: any,
|
|
20
20
|
thoughtSpotHost: string,
|
|
21
21
|
isCompositeQuery?: boolean
|
|
22
|
-
}) {
|
|
22
|
+
}): Promise<any> {
|
|
23
23
|
const operationName = getOperationNameFromQuery(query);
|
|
24
24
|
try {
|
|
25
25
|
const response = await tokenizedFetch(`${thoughtSpotHost}/prism/?op=${operationName}`, {
|
package/src/utils/processData.ts
CHANGED
|
@@ -67,4 +67,23 @@ describe('Unit test for processTrigger', () => {
|
|
|
67
67
|
expect(messageChannelMock.port1.close).toBeCalled();
|
|
68
68
|
expect(triggerPromise).rejects.toEqual(res.data.error);
|
|
69
69
|
});
|
|
70
|
+
|
|
71
|
+
test('should close channel.port1 when timeout exceeds TRIGGER_TIMEOUT', async () => {
|
|
72
|
+
const messageType = HostEvent.Search;
|
|
73
|
+
const thoughtSpotHost = 'http://localhost:3000';
|
|
74
|
+
const data = {};
|
|
75
|
+
mockMessageChannel();
|
|
76
|
+
|
|
77
|
+
const triggerPromise = _processTriggerInstance.processTrigger(
|
|
78
|
+
iFrame,
|
|
79
|
+
messageType,
|
|
80
|
+
thoughtSpotHost,
|
|
81
|
+
data,
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
jest.advanceTimersByTime(_processTriggerInstance.TRIGGER_TIMEOUT);
|
|
85
|
+
|
|
86
|
+
expect(messageChannelMock.port1.close).toBeCalled();
|
|
87
|
+
await expect(triggerPromise).resolves.toBeInstanceOf(Error);
|
|
88
|
+
});
|
|
70
89
|
});
|
|
@@ -19,7 +19,6 @@ let sessionInfo: null | SessionInfo = null;
|
|
|
19
19
|
* Returns the session info object and caches it for future use.
|
|
20
20
|
* Once fetched the session info object is cached and returned from the cache on
|
|
21
21
|
* subsequent calls.
|
|
22
|
-
*
|
|
23
22
|
* @example ```js
|
|
24
23
|
* const sessionInfo = await getSessionInfo();
|
|
25
24
|
* console.log(sessionInfo);
|
|
@@ -40,7 +39,6 @@ export async function getSessionInfo(): Promise<SessionInfo> {
|
|
|
40
39
|
/**
|
|
41
40
|
* Returns the cached session info object. If the client is not authenticated the
|
|
42
41
|
* function will return null.
|
|
43
|
-
*
|
|
44
42
|
* @example ```js
|
|
45
43
|
* const sessionInfo = getCachedSessionInfo();
|
|
46
44
|
* if (sessionInfo) {
|
|
@@ -58,7 +56,6 @@ export function getCachedSessionInfo(): SessionInfo | null {
|
|
|
58
56
|
|
|
59
57
|
/**
|
|
60
58
|
* Processes the session info response and returns the session info object.
|
|
61
|
-
*
|
|
62
59
|
* @param sessionInfoResp {any} Response from the session info API.
|
|
63
60
|
* @returns {SessionInfo} The session info object.
|
|
64
61
|
* @example ```js
|
|
@@ -87,7 +84,6 @@ export const getSessionDetails = (sessionInfoResp: any): SessionInfo => {
|
|
|
87
84
|
|
|
88
85
|
/**
|
|
89
86
|
* Resets the cached session info object and forces a new fetch on the next call.
|
|
90
|
-
*
|
|
91
87
|
* @example ```js
|
|
92
88
|
* resetCachedSessionInfo();
|
|
93
89
|
* const sessionInfo = await getSessionInfo();
|
package/src/utils.ts
CHANGED
|
@@ -206,7 +206,6 @@ export const getCustomisations = (
|
|
|
206
206
|
embedConfig: EmbedConfig,
|
|
207
207
|
viewConfig: ViewConfig,
|
|
208
208
|
): CustomisationsInterface => {
|
|
209
|
-
const customCssUrlFromEmbedConfig = embedConfig.customCssUrl;
|
|
210
209
|
const customizationsFromViewConfig = viewConfig.customizations;
|
|
211
210
|
const customizationsFromEmbedConfig = embedConfig.customizations
|
|
212
211
|
|| ((embedConfig as any).customisations as CustomisationsInterface);
|
|
@@ -219,10 +218,6 @@ export const getCustomisations = (
|
|
|
219
218
|
...customizationsFromEmbedConfig?.style?.customCSS,
|
|
220
219
|
...customizationsFromViewConfig?.style?.customCSS,
|
|
221
220
|
},
|
|
222
|
-
customCSSUrl:
|
|
223
|
-
customizationsFromViewConfig?.style?.customCSSUrl
|
|
224
|
-
|| customizationsFromEmbedConfig?.style?.customCSSUrl
|
|
225
|
-
|| customCssUrlFromEmbedConfig,
|
|
226
221
|
},
|
|
227
222
|
content: {
|
|
228
223
|
...customizationsFromEmbedConfig?.content,
|