analytica.click 0.0.239 → 0.0.241
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/dist/index.d.ts +18 -18
- package/dist/index.js +1 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -130,6 +130,24 @@ declare module 'analytica.click/ui-npm/src/components/Feedback/index' {
|
|
130
130
|
import { IFeedbackWidget } from 'analytica.click/common-ui/src/types/index';
|
131
131
|
export const Feedback: (props: IFeedbackWidget) => JSX.Element;
|
132
132
|
|
133
|
+
}
|
134
|
+
declare module 'analytica.click/ui-npm/src/components/index' {
|
135
|
+
export * from 'analytica.click/ui-npm/src/components/AnalyticaConfig/index';
|
136
|
+
export * from 'analytica.click/ui-npm/src/components/ErrorBoundary/index';
|
137
|
+
export * from 'analytica.click/ui-npm/src/components/ExternalComponent/index';
|
138
|
+
export * from 'analytica.click/ui-npm/src/components/Feedback/index';
|
139
|
+
export * from 'analytica.click/ui-npm/src/components/UserProvider/index';
|
140
|
+
export { DashboardAuthValidation } from 'analytica.click/ui-npm/src/components/UserProvider/DashboardAuthValidation';
|
141
|
+
|
142
|
+
}
|
143
|
+
declare module 'analytica.click/ui-npm/src/components/UserProvider/cognito' {
|
144
|
+
import { ICognitoAuth } from 'ag-common/dist/ui/helpers/cognito';
|
145
|
+
import { User, AwsCreds } from 'ag-common/dist/ui/helpers/jwt';
|
146
|
+
export function getAwsCreds({ user, config, }: {
|
147
|
+
user?: User;
|
148
|
+
config: ICognitoAuth;
|
149
|
+
}): Promise<AwsCreds | undefined>;
|
150
|
+
|
133
151
|
}
|
134
152
|
declare module 'analytica.click/ui-npm/src/components/UserProvider/DashboardAuthValidation' {
|
135
153
|
/// <reference types="react" />
|
@@ -160,15 +178,6 @@ declare module 'analytica.click/ui-npm/src/components/UserProvider/DashboardAuth
|
|
160
178
|
openApiDisabled: boolean;
|
161
179
|
};
|
162
180
|
|
163
|
-
}
|
164
|
-
declare module 'analytica.click/ui-npm/src/components/UserProvider/cognito' {
|
165
|
-
import { ICognitoAuth } from 'ag-common/dist/ui/helpers/cognito';
|
166
|
-
import { User, AwsCreds } from 'ag-common/dist/ui/helpers/jwt';
|
167
|
-
export function getAwsCreds({ user, config, }: {
|
168
|
-
user?: User;
|
169
|
-
config: ICognitoAuth;
|
170
|
-
}): Promise<AwsCreds | undefined>;
|
171
|
-
|
172
181
|
}
|
173
182
|
declare module 'analytica.click/ui-npm/src/components/UserProvider/getTokensFromCode' {
|
174
183
|
import { User } from 'ag-common/dist/ui/helpers/jwt';
|
@@ -224,15 +233,6 @@ declare module 'analytica.click/ui-npm/src/components/UserProvider/useGranularHo
|
|
224
233
|
export const useGranularEffect: (effect: EffectCallback, primaryDeps: DependencyList, secondaryDeps: DependencyList) => void;
|
225
234
|
export {};
|
226
235
|
|
227
|
-
}
|
228
|
-
declare module 'analytica.click/ui-npm/src/components/index' {
|
229
|
-
export * from 'analytica.click/ui-npm/src/components/AnalyticaConfig/index';
|
230
|
-
export * from 'analytica.click/ui-npm/src/components/ErrorBoundary/index';
|
231
|
-
export * from 'analytica.click/ui-npm/src/components/ExternalComponent/index';
|
232
|
-
export * from 'analytica.click/ui-npm/src/components/Feedback/index';
|
233
|
-
export * from 'analytica.click/ui-npm/src/components/UserProvider/index';
|
234
|
-
export { DashboardAuthValidation } from 'analytica.click/ui-npm/src/components/UserProvider/DashboardAuthValidation';
|
235
|
-
|
236
236
|
}
|
237
237
|
declare module 'analytica.click/ui-npm/src/helpers/errorTrack' {
|
238
238
|
import { PostError } from 'analytica.click/common-ui/src/types/api';
|
package/dist/index.js
CHANGED
@@ -1367,9 +1367,8 @@ var CognitoAuthProvider = ({
|
|
1367
1367
|
});
|
1368
1368
|
let idToken = idTokenRaw;
|
1369
1369
|
if (idToken && !decodeIdToken(idToken)) {
|
1370
|
-
(0, import_log9.warn)(`bad token,
|
1370
|
+
(0, import_log9.warn)(`bad token, wiping`);
|
1371
1371
|
(0, import_cookie.wipeCookies)("id_token");
|
1372
|
-
void goToPageUrl({ url: location.origin, login: false });
|
1373
1372
|
idToken = "";
|
1374
1373
|
}
|
1375
1374
|
let defUser;
|