ag-common 0.0.39 → 0.0.43
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/ui/helpers/jwt.d.ts
CHANGED
|
@@ -69,10 +69,6 @@ export interface AuthedUserContext {
|
|
|
69
69
|
error: Error | undefined;
|
|
70
70
|
refreshToken: () => Promise<User | undefined>;
|
|
71
71
|
}
|
|
72
|
-
export interface AuthedUser {
|
|
73
|
-
user: AuthedUserContext;
|
|
74
|
-
userLink?: User;
|
|
75
|
-
}
|
|
76
72
|
export declare const getBearerToken: (jwt?: {
|
|
77
73
|
id_token?: string | undefined;
|
|
78
74
|
} | undefined) => string | undefined;
|
|
@@ -2,11 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useResize = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
|
+
const media_1 = require("../styles/media");
|
|
5
6
|
function getWindowDimensions() {
|
|
6
7
|
if (typeof window !== 'undefined') {
|
|
8
|
+
const width = window.innerWidth;
|
|
9
|
+
const height = window.innerHeight;
|
|
7
10
|
return {
|
|
8
|
-
width
|
|
9
|
-
height
|
|
11
|
+
width,
|
|
12
|
+
height,
|
|
13
|
+
smallScreen: width <= media_1.smallScreenPx,
|
|
14
|
+
bigScreen: width > media_1.smallScreenPx,
|
|
15
|
+
vBigScreen: width > media_1.bigScreenPx,
|
|
10
16
|
};
|
|
11
17
|
}
|
|
12
18
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ag-common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.43",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"author": "Andrei Gec <@andreigec> (https://gec.dev/)",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"aws-cdk-lib": "2.4.0",
|
|
17
|
-
"aws-sdk": "2.
|
|
17
|
+
"aws-sdk": "2.1053.0",
|
|
18
18
|
"axios": "0.24.0",
|
|
19
|
-
"constructs": "10.0.
|
|
19
|
+
"constructs": "10.0.29",
|
|
20
20
|
"jsonwebtoken": "8.5.1",
|
|
21
21
|
"jwks-rsa": "2.0.5",
|
|
22
22
|
"openapi-request-validator": "10.0.0",
|