@semcore/errors 3.0.5 → 3.1.0

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,12 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [3.1.0] - 2022-06-01
6
+
7
+ ### Changed
8
+
9
+ - Changed type names from 'iconNames' to 'iconNamesErrors' so that there are no intersections with other components.
10
+
5
11
  ## [3.0.5] - 2022-05-31
6
12
 
7
13
  ### Changed
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.5";
61
+ var version = "3.1.0";
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.5";
44
+ var version = "3.1.0";
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,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/errors",
3
3
  "description": "SEMRush Errors Component",
4
- "version": "3.0.5",
4
+ "version": "3.1.0",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
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 };