ag-common 0.0.196 → 0.0.199
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.
|
@@ -3,10 +3,10 @@ export declare const Loader: ({ name, height, width, }: {
|
|
|
3
3
|
/**
|
|
4
4
|
* default 2rem
|
|
5
5
|
*/
|
|
6
|
-
width?: string | undefined;
|
|
6
|
+
width?: string | null | undefined;
|
|
7
7
|
/**
|
|
8
8
|
* default 2rem
|
|
9
9
|
*/
|
|
10
|
-
height?: string | undefined;
|
|
10
|
+
height?: string | null | undefined;
|
|
11
11
|
name: string;
|
|
12
12
|
}) => JSX.Element;
|
|
@@ -63,12 +63,19 @@ const LoadingBack = styled_components_1.default.div `
|
|
|
63
63
|
}
|
|
64
64
|
transition: opacity 5s;
|
|
65
65
|
`;
|
|
66
|
-
const Loader = ({ name, height
|
|
66
|
+
const Loader = ({ name, height, width, }) => {
|
|
67
67
|
const [trans, setTrans] = (0, react_1.useState)(true);
|
|
68
68
|
(0, react_1.useEffect)(() => {
|
|
69
69
|
setTrans(false);
|
|
70
70
|
}, []);
|
|
71
|
+
const style = {};
|
|
72
|
+
if (width !== null) {
|
|
73
|
+
style.width = width !== null && width !== void 0 ? width : '2rem';
|
|
74
|
+
}
|
|
75
|
+
if (height !== null) {
|
|
76
|
+
style.height = height !== null && height !== void 0 ? height : '2rem';
|
|
77
|
+
}
|
|
71
78
|
return (react_1.default.createElement(LoadingBack, { "data-loading": name, "data-transparent": trans },
|
|
72
|
-
react_1.default.createElement(SLoader, { style:
|
|
79
|
+
react_1.default.createElement(SLoader, { style: style })));
|
|
73
80
|
};
|
|
74
81
|
exports.Loader = Loader;
|
package/dist/ui/helpers/jwt.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export interface AuthedUserContext {
|
|
|
69
69
|
*/
|
|
70
70
|
loginWithRedirect: (stateqs?: string) => Promise<void>;
|
|
71
71
|
logout: () => Promise<void>;
|
|
72
|
-
user
|
|
72
|
+
user?: User;
|
|
73
73
|
error: Error | undefined;
|
|
74
74
|
refreshToken: () => Promise<User | undefined>;
|
|
75
75
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ag-common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.199",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"author": "Andrei Gec <@andreigec> (https://gec.dev/)",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"aws-cdk-lib": "2.x",
|
|
18
|
-
"aws-sdk": "2.
|
|
18
|
+
"aws-sdk": "2.1102.0",
|
|
19
19
|
"axios": "0.26.1",
|
|
20
20
|
"constructs": "10.x",
|
|
21
21
|
"jsonwebtoken": "8.5.1",
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
"react": "17.0.2",
|
|
26
26
|
"react-dom": "17.0.2",
|
|
27
27
|
"react-hot-toast": "2.2.0",
|
|
28
|
-
"styled-components": "5.3.
|
|
29
|
-
"typescript": "4.6.
|
|
28
|
+
"styled-components": "5.3.5",
|
|
29
|
+
"typescript": "4.6.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/jsonwebtoken": "8.5.8",
|
|
33
|
-
"@types/node": "17.0.
|
|
34
|
-
"@types/react": "17.0.
|
|
33
|
+
"@types/node": "17.0.23",
|
|
34
|
+
"@types/react": "17.0.43",
|
|
35
35
|
"@types/react-dom": "17.0.14",
|
|
36
36
|
"@types/styled-components": "5.1.24",
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
38
|
-
"@typescript-eslint/parser": "5.
|
|
39
|
-
"eslint": "8.
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "5.17.0",
|
|
38
|
+
"@typescript-eslint/parser": "5.17.0",
|
|
39
|
+
"eslint": "8.12.0",
|
|
40
40
|
"eslint-config-airbnb-typescript": "16.1.4",
|
|
41
41
|
"eslint-config-prettier": "8.5.0",
|
|
42
42
|
"eslint-config-react-app": "7.0.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"eslint-plugin-prettier": "4.0.0",
|
|
46
46
|
"eslint-plugin-react": "7.29.4",
|
|
47
47
|
"eslint-plugin-react-hooks": "4.3.0",
|
|
48
|
-
"prettier": "2.6.
|
|
48
|
+
"prettier": "2.6.1",
|
|
49
49
|
"rimraf": "3.0.2",
|
|
50
50
|
"typescript-styled-plugin": "0.18.2"
|
|
51
51
|
},
|