@semcore/errors 3.0.4 → 3.1.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [3.1.1] - 2022-07-07
6
+
7
+ ### Changed
8
+
9
+ - Version patch update due to children dependencies update (`@semcore/utils` [3.33.0 ~> 3.34.0], `@semcore/button` [4.0.6 ~> 4.0.7]).
10
+
11
+ ## [3.1.0] - 2022-06-01
12
+
13
+ ### Changed
14
+
15
+ - Changed type names from 'iconNames' to 'iconNamesErrors' so that there are no intersections with other components.
16
+
17
+ ## [3.0.5] - 2022-05-31
18
+
19
+ ### Changed
20
+
21
+ - Version patch update due to children dependencies update (`@semcore/utils` [3.32.1 ~> 3.32.2], `@semcore/button` [4.0.4 ~> 4.0.5]).
22
+
5
23
  ## [3.0.4] - 2022-05-27
6
24
 
7
25
  ### Changed
package/README.md CHANGED
@@ -0,0 +1,79 @@
1
+ # @semcore/errors
2
+
3
+ [![version](https://img.shields.io/npm/v/@semcore/errors.svg)](https://www.npmjs.com/@semcore/errors)
4
+ [![downloads](https://img.shields.io/npm/dt/@semcore/errors.svg)](https://www.npmjs.com/package/@semcore/errors)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/semrush/intergalactic/blob/master/LICENSE)
6
+
7
+ > This component is part of the Intergalactic design system
8
+
9
+ ### 📖 [Component documentation](https://developer.semrush.com/intergalactic/patterns/global-errors/)
10
+
11
+ ### 🏠 [Design system](https://developer.semrush.com/intergalactic/)
12
+
13
+ ## Install
14
+
15
+ ```sh
16
+ npm install @semcore/ui
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```jsx
22
+ import Error, {
23
+ AccessDenied,
24
+ Maintenance,
25
+ PageError,
26
+ PageNotFound,
27
+ ProjectNotFound,
28
+ } from '@semcore/ui/errors';
29
+ ```
30
+
31
+ <details>
32
+ <summary>Alternative installation and use</summary>
33
+
34
+ **We do not recommend this usage path due to possible dependency and update issues.**
35
+
36
+ ### Install
37
+
38
+ You can only install one package from the design system
39
+
40
+ ```sh
41
+ npm install @semcore/errors @semcore/core
42
+ ```
43
+
44
+ `@semcore/core` - _is the basic package by which we create our components, and it contains all of the common logic
45
+ of the components that is discussed below. There should only be one version of the package in the project._
46
+
47
+ ### Usage
48
+
49
+ You can use the package the same way but without `/ui/` in the import path.
50
+
51
+ </details>
52
+
53
+ ```jsx
54
+ import Error, {
55
+ AccessDenied,
56
+ Maintenance,
57
+ PageError,
58
+ PageNotFound,
59
+ ProjectNotFound,
60
+ } from '@semcore/errors';
61
+ ```
62
+
63
+ ## 👤 Author
64
+
65
+ [UI-kit team](https://github.com/semrush/intergalactic/blob/master/MAINTAINERS) and [others ❤️](https://github.com/semrush/intergalactic/graphs/contributors)
66
+
67
+ ## 🤝 Contributing
68
+
69
+ Contributions, issues and feature requests are welcome!
70
+
71
+ Feel free to check [issues page](https://github.com/semrush/intergalactic/issues). You can also take a look at the [contributing guide](https://github.com/semrush/intergalactic/blob/master/CONTRIBUTING.md).
72
+
73
+ ## Show your support
74
+
75
+ Give a ⭐️ if this project helped you!
76
+
77
+ ## 📝 License
78
+
79
+ This project is [MIT](https://github.com/semrush/intergalactic/blob/master/LICENSE) licensed.
package/lib/cjs/Error.js CHANGED
@@ -58,7 +58,7 @@ _core.sstyled.insert(
58
58
  "__SDescription": "___SDescription_1l5sz_gg_",
59
59
  "__SControls": "___SControls_1l5sz_gg_"
60
60
  });
61
- var version = "3.0.4";
61
+ var version = "3.1.1";
62
62
 
63
63
  var getIconPath = function getIconPath(name) {
64
64
  return "//static.semrush.com/ui-kit/errors/".concat(version, "/").concat(name, ".svg");
@@ -3,7 +3,7 @@ import { Box, IFlexProps } from '@semcore/flex-box';
3
3
  import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
4
4
  import { IWithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';
5
5
 
6
- export type iconNames =
6
+ export type iconNamesErrors =
7
7
  | 'access_denied'
8
8
  | 'blocked'
9
9
  | 'confirmation'
@@ -86,7 +86,7 @@ declare const PageNotFound: <T>(props: IPageNotFoundProps & IErrorsProps & T) =>
86
86
  declare const PageError: <T>(props: IPageErrorProps & IErrorsProps & T) => ReturnEl;
87
87
  declare const Maintenance: <T>(props: IMaintenanceProps & IErrorsProps & T) => ReturnEl;
88
88
  declare const AccessDenied: <T>(props: IAccessDeniedProps & IErrorsProps & T) => ReturnEl;
89
- declare const getIconPath: (name: iconNames) => string;
89
+ declare const getIconPath: (name: iconNamesErrors) => string;
90
90
 
91
91
  export default Error;
92
92
  export { ProjectNotFound, PageNotFound, PageError, Maintenance, AccessDenied, getIconPath };
package/lib/es6/Error.js CHANGED
@@ -41,7 +41,7 @@ _sstyled.insert(
41
41
  "__SDescription": "___SDescription_1l5sz_gg_",
42
42
  "__SControls": "___SControls_1l5sz_gg_"
43
43
  });
44
- var version = "3.0.4";
44
+ var version = "3.1.1";
45
45
  export var getIconPath = function getIconPath(name) {
46
46
  return "//static.semrush.com/ui-kit/errors/".concat(version, "/").concat(name, ".svg");
47
47
  };
@@ -3,7 +3,7 @@ import { Box, IFlexProps } from '@semcore/flex-box';
3
3
  import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
4
4
  import { IWithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';
5
5
 
6
- export type iconNames =
6
+ export type iconNamesErrors =
7
7
  | 'access_denied'
8
8
  | 'blocked'
9
9
  | 'confirmation'
@@ -86,7 +86,7 @@ declare const PageNotFound: <T>(props: IPageNotFoundProps & IErrorsProps & T) =>
86
86
  declare const PageError: <T>(props: IPageErrorProps & IErrorsProps & T) => ReturnEl;
87
87
  declare const Maintenance: <T>(props: IMaintenanceProps & IErrorsProps & T) => ReturnEl;
88
88
  declare const AccessDenied: <T>(props: IAccessDeniedProps & IErrorsProps & T) => ReturnEl;
89
- declare const getIconPath: (name: iconNames) => string;
89
+ declare const getIconPath: (name: iconNamesErrors) => string;
90
90
 
91
91
  export default Error;
92
92
  export { ProjectNotFound, PageNotFound, PageError, Maintenance, AccessDenied, getIconPath };
@@ -3,7 +3,7 @@ import { Box, IFlexProps } from '@semcore/flex-box';
3
3
  import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
4
4
  import { IWithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';
5
5
 
6
- export type iconNames =
6
+ export type iconNamesErrors =
7
7
  | 'access_denied'
8
8
  | 'blocked'
9
9
  | 'confirmation'
@@ -86,7 +86,7 @@ declare const PageNotFound: <T>(props: IPageNotFoundProps & IErrorsProps & T) =>
86
86
  declare const PageError: <T>(props: IPageErrorProps & IErrorsProps & T) => ReturnEl;
87
87
  declare const Maintenance: <T>(props: IMaintenanceProps & IErrorsProps & T) => ReturnEl;
88
88
  declare const AccessDenied: <T>(props: IAccessDeniedProps & IErrorsProps & T) => ReturnEl;
89
- declare const getIconPath: (name: iconNames) => string;
89
+ declare const getIconPath: (name: iconNamesErrors) => string;
90
90
 
91
91
  export default Error;
92
92
  export { ProjectNotFound, PageNotFound, PageError, Maintenance, AccessDenied, getIconPath };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@semcore/errors",
3
3
  "description": "SEMRush Errors Component",
4
- "version": "3.0.4",
4
+ "version": "3.1.1",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
8
8
  "sideEffects": false,
9
- "author": "Roman Lysov <r.lysov@semrush.com>",
9
+ "author": "UI-kit team <ui-kit-team@semrush.com>",
10
10
  "license": "MIT",
11
11
  "scripts": {
12
12
  "build": "build --source=js",
package/src/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { Box, IFlexProps } from '@semcore/flex-box';
3
3
  import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
4
4
  import { IWithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';
5
5
 
6
- export type iconNames =
6
+ export type iconNamesErrors =
7
7
  | 'access_denied'
8
8
  | 'blocked'
9
9
  | 'confirmation'
@@ -86,7 +86,7 @@ declare const PageNotFound: <T>(props: IPageNotFoundProps & IErrorsProps & T) =>
86
86
  declare const PageError: <T>(props: IPageErrorProps & IErrorsProps & T) => ReturnEl;
87
87
  declare const Maintenance: <T>(props: IMaintenanceProps & IErrorsProps & T) => ReturnEl;
88
88
  declare const AccessDenied: <T>(props: IAccessDeniedProps & IErrorsProps & T) => ReturnEl;
89
- declare const getIconPath: (name: iconNames) => string;
89
+ declare const getIconPath: (name: iconNamesErrors) => string;
90
90
 
91
91
  export default Error;
92
92
  export { ProjectNotFound, PageNotFound, PageError, Maintenance, AccessDenied, getIconPath };