@alfalab/core-components-notification-manager 5.2.7 → 5.2.9

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/component.js CHANGED
@@ -15,7 +15,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
15
15
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
16
16
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
17
17
 
18
- var styles = {"component":"notification-manager__component_1kltt","notification":"notification-manager__notification_1kltt","enter":"notification-manager__enter_1kltt","enterActive":"notification-manager__enterActive_1kltt","exit":"notification-manager__exit_1kltt","exitActive":"notification-manager__exitActive_1kltt"};
18
+ var styles = {"component":"notification-manager__component_1umri","notification":"notification-manager__notification_1umri","enter":"notification-manager__enter_1umri","enterActive":"notification-manager__enterActive_1umri","exit":"notification-manager__exit_1umri","exitActive":"notification-manager__exitActive_1umri"};
19
19
  require('./index.css')
20
20
 
21
21
  var CSS_TRANSITION_CLASS_NAMES = {
package/esm/component.js CHANGED
@@ -6,7 +6,7 @@ import { Portal } from '@alfalab/core-components-portal/esm';
6
6
  import { stackingOrder, Stack } from '@alfalab/core-components-stack/esm';
7
7
  import { Notification } from './components/notification/component.js';
8
8
 
9
- var styles = {"component":"notification-manager__component_1kltt","notification":"notification-manager__notification_1kltt","enter":"notification-manager__enter_1kltt","enterActive":"notification-manager__enterActive_1kltt","exit":"notification-manager__exit_1kltt","exitActive":"notification-manager__exitActive_1kltt"};
9
+ var styles = {"component":"notification-manager__component_1umri","notification":"notification-manager__notification_1umri","enter":"notification-manager__enter_1umri","enterActive":"notification-manager__enterActive_1umri","exit":"notification-manager__exit_1umri","exitActive":"notification-manager__exitActive_1umri"};
10
10
  require('./index.css')
11
11
 
12
12
  var CSS_TRANSITION_CLASS_NAMES = {
package/esm/index.css CHANGED
@@ -1,11 +1,11 @@
1
- /* hash: pku7z */
1
+ /* hash: a45ka */
2
2
  :root {
3
3
  --gap-s: 12px;
4
4
  --gap-xl: 24px;
5
5
  --gap-4xl: 48px;
6
6
  }
7
7
 
8
- .notification-manager__component_1kltt {
8
+ .notification-manager__component_1umri {
9
9
  position: fixed;
10
10
  top: 0;
11
11
  right: var(--gap-s);
@@ -13,48 +13,48 @@
13
13
  flex-direction: column;
14
14
  }
15
15
 
16
- .notification-manager__component_1kltt .notification-manager__notification_1kltt {
16
+ .notification-manager__component_1umri .notification-manager__notification_1umri {
17
17
  position: static;
18
18
  width: calc(100vw - var(--gap-xl));
19
19
  margin-top: var(--gap-s);
20
20
  will-change: transform;
21
21
  }
22
22
 
23
- .notification-manager__enter_1kltt {
23
+ .notification-manager__enter_1umri {
24
24
  visibility: hidden;
25
25
  transform: translate(0, -500px);
26
26
  }
27
27
 
28
- .notification-manager__enterActive_1kltt {
28
+ .notification-manager__enterActive_1umri {
29
29
  visibility: visible;
30
30
  transform: translate(0);
31
31
  transition: transform 0.4s ease-out;
32
32
  }
33
33
 
34
- .notification-manager__exit_1kltt {
34
+ .notification-manager__exit_1umri {
35
35
  opacity: 0;
36
36
  }
37
37
 
38
- .notification-manager__exitActive_1kltt {
38
+ .notification-manager__exitActive_1umri {
39
39
  visibility: hidden;
40
40
  opacity: 0;
41
41
  transition: opacity 0.15s ease-in-out;
42
42
  }
43
43
 
44
44
  @media (min-width: 600px) {
45
- .notification-manager__component_1kltt {
45
+ .notification-manager__component_1umri {
46
46
  right: var(--gap-4xl);
47
47
  }
48
48
 
49
- .notification-manager__component_1kltt .notification-manager__notification_1kltt {
49
+ .notification-manager__component_1umri .notification-manager__notification_1umri {
50
50
  width: auto;
51
51
  }
52
52
 
53
- .notification-manager__enter_1kltt {
53
+ .notification-manager__enter_1umri {
54
54
  transform: translate(100%, 0);
55
55
  }
56
56
 
57
- .notification-manager__enterActive_1kltt {
57
+ .notification-manager__enterActive_1umri {
58
58
  transform: translate(0);
59
59
  }
60
60
  }
package/index.css CHANGED
@@ -1,11 +1,11 @@
1
- /* hash: pku7z */
1
+ /* hash: a45ka */
2
2
  :root {
3
3
  --gap-s: 12px;
4
4
  --gap-xl: 24px;
5
5
  --gap-4xl: 48px;
6
6
  }
7
7
 
8
- .notification-manager__component_1kltt {
8
+ .notification-manager__component_1umri {
9
9
  position: fixed;
10
10
  top: 0;
11
11
  right: var(--gap-s);
@@ -13,48 +13,48 @@
13
13
  flex-direction: column;
14
14
  }
15
15
 
16
- .notification-manager__component_1kltt .notification-manager__notification_1kltt {
16
+ .notification-manager__component_1umri .notification-manager__notification_1umri {
17
17
  position: static;
18
18
  width: calc(100vw - var(--gap-xl));
19
19
  margin-top: var(--gap-s);
20
20
  will-change: transform;
21
21
  }
22
22
 
23
- .notification-manager__enter_1kltt {
23
+ .notification-manager__enter_1umri {
24
24
  visibility: hidden;
25
25
  transform: translate(0, -500px);
26
26
  }
27
27
 
28
- .notification-manager__enterActive_1kltt {
28
+ .notification-manager__enterActive_1umri {
29
29
  visibility: visible;
30
30
  transform: translate(0);
31
31
  transition: transform 0.4s ease-out;
32
32
  }
33
33
 
34
- .notification-manager__exit_1kltt {
34
+ .notification-manager__exit_1umri {
35
35
  opacity: 0;
36
36
  }
37
37
 
38
- .notification-manager__exitActive_1kltt {
38
+ .notification-manager__exitActive_1umri {
39
39
  visibility: hidden;
40
40
  opacity: 0;
41
41
  transition: opacity 0.15s ease-in-out;
42
42
  }
43
43
 
44
44
  @media (min-width: 600px) {
45
- .notification-manager__component_1kltt {
45
+ .notification-manager__component_1umri {
46
46
  right: var(--gap-4xl);
47
47
  }
48
48
 
49
- .notification-manager__component_1kltt .notification-manager__notification_1kltt {
49
+ .notification-manager__component_1umri .notification-manager__notification_1umri {
50
50
  width: auto;
51
51
  }
52
52
 
53
- .notification-manager__enter_1kltt {
53
+ .notification-manager__enter_1umri {
54
54
  transform: translate(100%, 0);
55
55
  }
56
56
 
57
- .notification-manager__enterActive_1kltt {
57
+ .notification-manager__enterActive_1umri {
58
58
  transform: translate(0);
59
59
  }
60
60
  }
@@ -5,7 +5,7 @@ import { Portal } from '@alfalab/core-components-portal/modern';
5
5
  import { Stack, stackingOrder } from '@alfalab/core-components-stack/modern';
6
6
  import { Notification } from './components/notification/component.js';
7
7
 
8
- const styles = {"component":"notification-manager__component_1kltt","notification":"notification-manager__notification_1kltt","enter":"notification-manager__enter_1kltt","enterActive":"notification-manager__enterActive_1kltt","exit":"notification-manager__exit_1kltt","exitActive":"notification-manager__exitActive_1kltt"};
8
+ const styles = {"component":"notification-manager__component_1umri","notification":"notification-manager__notification_1umri","enter":"notification-manager__enter_1umri","enterActive":"notification-manager__enterActive_1umri","exit":"notification-manager__exit_1umri","exitActive":"notification-manager__exitActive_1umri"};
9
9
  require('./index.css')
10
10
 
11
11
  const CSS_TRANSITION_CLASS_NAMES = {
package/modern/index.css CHANGED
@@ -1,11 +1,11 @@
1
- /* hash: pku7z */
1
+ /* hash: a45ka */
2
2
  :root {
3
3
  --gap-s: 12px;
4
4
  --gap-xl: 24px;
5
5
  --gap-4xl: 48px;
6
6
  }
7
7
 
8
- .notification-manager__component_1kltt {
8
+ .notification-manager__component_1umri {
9
9
  position: fixed;
10
10
  top: 0;
11
11
  right: var(--gap-s);
@@ -13,48 +13,48 @@
13
13
  flex-direction: column;
14
14
  }
15
15
 
16
- .notification-manager__component_1kltt .notification-manager__notification_1kltt {
16
+ .notification-manager__component_1umri .notification-manager__notification_1umri {
17
17
  position: static;
18
18
  width: calc(100vw - var(--gap-xl));
19
19
  margin-top: var(--gap-s);
20
20
  will-change: transform;
21
21
  }
22
22
 
23
- .notification-manager__enter_1kltt {
23
+ .notification-manager__enter_1umri {
24
24
  visibility: hidden;
25
25
  transform: translate(0, -500px);
26
26
  }
27
27
 
28
- .notification-manager__enterActive_1kltt {
28
+ .notification-manager__enterActive_1umri {
29
29
  visibility: visible;
30
30
  transform: translate(0);
31
31
  transition: transform 0.4s ease-out;
32
32
  }
33
33
 
34
- .notification-manager__exit_1kltt {
34
+ .notification-manager__exit_1umri {
35
35
  opacity: 0;
36
36
  }
37
37
 
38
- .notification-manager__exitActive_1kltt {
38
+ .notification-manager__exitActive_1umri {
39
39
  visibility: hidden;
40
40
  opacity: 0;
41
41
  transition: opacity 0.15s ease-in-out;
42
42
  }
43
43
 
44
44
  @media (min-width: 600px) {
45
- .notification-manager__component_1kltt {
45
+ .notification-manager__component_1umri {
46
46
  right: var(--gap-4xl);
47
47
  }
48
48
 
49
- .notification-manager__component_1kltt .notification-manager__notification_1kltt {
49
+ .notification-manager__component_1umri .notification-manager__notification_1umri {
50
50
  width: auto;
51
51
  }
52
52
 
53
- .notification-manager__enter_1kltt {
53
+ .notification-manager__enter_1umri {
54
54
  transform: translate(100%, 0);
55
55
  }
56
56
 
57
- .notification-manager__enterActive_1kltt {
57
+ .notification-manager__enterActive_1umri {
58
58
  transform: translate(0);
59
59
  }
60
60
  }
package/package.json CHANGED
@@ -1,14 +1,11 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-notification-manager",
3
- "version": "5.2.7",
3
+ "version": "5.2.9",
4
4
  "description": "Notification manager",
5
5
  "keywords": [],
6
6
  "license": "MIT",
7
7
  "main": "index.js",
8
8
  "module": "./esm/index.js",
9
- "scripts": {
10
- "postinstall": "node -e \"if (require('fs').existsSync('./send-stats.js')){require('./send-stats.js')} \""
11
- },
12
9
  "publishConfig": {
13
10
  "access": "public",
14
11
  "directory": "dist"
@@ -17,8 +14,8 @@
17
14
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
18
15
  },
19
16
  "dependencies": {
20
- "@alfalab/core-components-notification": "^6.1.25",
21
- "@alfalab/core-components-portal": "^3.1.4",
17
+ "@alfalab/core-components-notification": "^6.1.27",
18
+ "@alfalab/core-components-portal": "^3.1.5",
22
19
  "@alfalab/core-components-stack": "^4.0.4",
23
20
  "classnames": "^2.3.1",
24
21
  "react-transition-group": "^4.4.5",
package/send-stats.js DELETED
@@ -1,82 +0,0 @@
1
- const http = require('http');
2
- const fs = require('fs');
3
- const { promisify } = require('util');
4
- const path = require('path');
5
-
6
- const readFile = promisify(fs.readFile);
7
-
8
- async function main() {
9
- const remoteHost = process.env.NIS_HOST || 'digital';
10
- const remotePort = process.env.NIS_PORT || 80;
11
- const remotePath = process.env.NIS_PATH || '/npm-install-stats/api/install-stats';
12
-
13
- try {
14
- const [_, node, os, arch] =
15
- /node\/v(\d+\.\d+\.\d+) (\w+) (\w+)/.exec(process.env.npm_config_user_agent) || [];
16
- const [__, npm] = /npm\/(\d+\.\d+\.\d+)/.exec(process.env.npm_config_user_agent) || [];
17
- const [___, yarn] = /yarn\/(\d+\.\d+\.\d+)/.exec(process.env.npm_config_user_agent) || [];
18
-
19
- let ownPackageJson, packageJson;
20
-
21
- try {
22
- const result = await Promise.all([
23
- readFile(path.join(process.cwd(), 'package.json'), 'utf-8'),
24
- readFile(path.join(process.cwd(), '../../../package.json'), 'utf-8'),
25
- ]);
26
-
27
- ownPackageJson = JSON.parse(result[0]);
28
- packageJson = JSON.parse(result[1]);
29
- } catch (err) {
30
- ownPackageJson = '';
31
- packageJson = '';
32
- }
33
-
34
- const data = {
35
- node,
36
- npm,
37
- yarn,
38
- os,
39
- arch,
40
- ownPackageJson: JSON.stringify(ownPackageJson),
41
- packageJson: JSON.stringify(packageJson),
42
- };
43
-
44
- const body = JSON.stringify(data);
45
-
46
- const options = {
47
- host: remoteHost,
48
- port: remotePort,
49
- path: remotePath,
50
- method: 'POST',
51
- headers: {
52
- 'Content-Type': 'application/json',
53
- 'Content-Length': body.length,
54
- },
55
- };
56
-
57
- return new Promise((resolve, reject) => {
58
- const req = http.request(options, (res) => {
59
- res.on('end', () => {
60
- resolve();
61
- });
62
- });
63
-
64
- req.on('error', () => {
65
- reject();
66
- });
67
-
68
- req.write(body);
69
- req.end();
70
- });
71
- } catch (error) {
72
- throw error;
73
- }
74
- }
75
-
76
- main()
77
- .then(() => {
78
- process.exit(0);
79
- })
80
- .catch(() => {
81
- process.exit(0);
82
- });