@semcore/errors 4.46.1-prerelease.8 → 4.47.0-prerelease.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 +6 -0
- package/lib/cjs/Error.js +9 -9
- package/lib/es6/Error.js +9 -9
- package/lib/esm/Error.mjs +48 -48
- package/package.json +8 -8
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
|
+
## [4.47.0] - 2025-03-21
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version minor update due to children dependencies update (`@semcore/button` [5.42.1 ~> 5.43.0]).
|
|
10
|
+
|
|
5
11
|
## [4.46.1] - 2025-03-20
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/lib/cjs/Error.js
CHANGED
|
@@ -18,15 +18,15 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
18
18
|
var _flexBox = require("@semcore/flex-box");
|
|
19
19
|
var _illustration = require("@semcore/illustration");
|
|
20
20
|
/*__reshadow-styles__:"./style/errors.shadow.css"*/
|
|
21
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
|
22
|
-
"__SError": "
|
|
23
|
-
"__SControls": "
|
|
24
|
-
"__SInner": "
|
|
25
|
-
"__SImageWrapper": "
|
|
26
|
-
"__SImage": "
|
|
27
|
-
"__SWrapper": "
|
|
28
|
-
"__STitle": "
|
|
29
|
-
"__SDescription": "
|
|
21
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SError_1an7f_gg_{padding:var(--intergalactic-spacing-20x, 80px)0;margin:0 auto;max-width:960px}@media (max-width:768px){.___SError_1an7f_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px)}}@media (max-width:320px){.___SError_1an7f_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_1an7f_gg_ .___SControls_1an7f_gg_{display:flex;align-items:center}.___SError_1an7f_gg_ .___SControls_1an7f_gg_>:not(:last-child){margin-right:var(--intergalactic-spacing-3x, 12px)}.___SError_1an7f_gg_ .___SInner_1an7f_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SImageWrapper_1an7f_gg_,.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SImage_1an7f_gg_{width:260px;height:260px}@media (max-width:320px){.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SImageWrapper_1an7f_gg_,.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SImage_1an7f_gg_{width:200px;height:200px}}.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SImageWrapper_1an7f_gg_{margin-right:var(--intergalactic-spacing-10x, 40px)}.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SWrapper_1an7f_gg_{flex:1 0 300px;max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___STitle_1an7f_gg_[data-errors-title]{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);color:var(--intergalactic-text-primary, #191b23);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SDescription_1an7f_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);color:var(--intergalactic-text-primary, #191b23);margin:0 0 var(--intergalactic-spacing-6x, 24px)0}" /*__inner_css_end__*/, "1an7f_gg_") /*__reshadow_css_end__*/, {
|
|
22
|
+
"__SError": "___SError_1an7f_gg_",
|
|
23
|
+
"__SControls": "___SControls_1an7f_gg_",
|
|
24
|
+
"__SInner": "___SInner_1an7f_gg_",
|
|
25
|
+
"__SImageWrapper": "___SImageWrapper_1an7f_gg_",
|
|
26
|
+
"__SImage": "___SImage_1an7f_gg_",
|
|
27
|
+
"__SWrapper": "___SWrapper_1an7f_gg_",
|
|
28
|
+
"__STitle": "___STitle_1an7f_gg_",
|
|
29
|
+
"__SDescription": "___SDescription_1an7f_gg_"
|
|
30
30
|
});
|
|
31
31
|
var getIconPath = function getIconPath(name) {
|
|
32
32
|
return (0, _illustration.getIllustrationPath)(name);
|
package/lib/es6/Error.js
CHANGED
|
@@ -14,15 +14,15 @@ import { Box, Flex } from '@semcore/flex-box';
|
|
|
14
14
|
import createComponent, { Root, Component, sstyled } from '@semcore/core';
|
|
15
15
|
import { getIllustrationPath } from '@semcore/illustration';
|
|
16
16
|
/*__reshadow-styles__:"./style/errors.shadow.css"*/
|
|
17
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
18
|
-
"__SError": "
|
|
19
|
-
"__SControls": "
|
|
20
|
-
"__SInner": "
|
|
21
|
-
"__SImageWrapper": "
|
|
22
|
-
"__SImage": "
|
|
23
|
-
"__SWrapper": "
|
|
24
|
-
"__STitle": "
|
|
25
|
-
"__SDescription": "
|
|
17
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SError_1an7f_gg_{padding:var(--intergalactic-spacing-20x, 80px)0;margin:0 auto;max-width:960px}@media (max-width:768px){.___SError_1an7f_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px)}}@media (max-width:320px){.___SError_1an7f_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_1an7f_gg_ .___SControls_1an7f_gg_{display:flex;align-items:center}.___SError_1an7f_gg_ .___SControls_1an7f_gg_>:not(:last-child){margin-right:var(--intergalactic-spacing-3x, 12px)}.___SError_1an7f_gg_ .___SInner_1an7f_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SImageWrapper_1an7f_gg_,.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SImage_1an7f_gg_{width:260px;height:260px}@media (max-width:320px){.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SImageWrapper_1an7f_gg_,.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SImage_1an7f_gg_{width:200px;height:200px}}.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SImageWrapper_1an7f_gg_{margin-right:var(--intergalactic-spacing-10x, 40px)}.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SWrapper_1an7f_gg_{flex:1 0 300px;max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___STitle_1an7f_gg_[data-errors-title]{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);color:var(--intergalactic-text-primary, #191b23);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SDescription_1an7f_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);color:var(--intergalactic-text-primary, #191b23);margin:0 0 var(--intergalactic-spacing-6x, 24px)0}" /*__inner_css_end__*/, "1an7f_gg_") /*__reshadow_css_end__*/, {
|
|
18
|
+
"__SError": "___SError_1an7f_gg_",
|
|
19
|
+
"__SControls": "___SControls_1an7f_gg_",
|
|
20
|
+
"__SInner": "___SInner_1an7f_gg_",
|
|
21
|
+
"__SImageWrapper": "___SImageWrapper_1an7f_gg_",
|
|
22
|
+
"__SImage": "___SImage_1an7f_gg_",
|
|
23
|
+
"__SWrapper": "___SWrapper_1an7f_gg_",
|
|
24
|
+
"__STitle": "___STitle_1an7f_gg_",
|
|
25
|
+
"__SDescription": "___SDescription_1an7f_gg_"
|
|
26
26
|
});
|
|
27
27
|
export var getIconPath = function getIconPath(name) {
|
|
28
28
|
return getIllustrationPath(name);
|
package/lib/esm/Error.mjs
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
import i from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { sstyled as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { Flex as
|
|
11
|
-
import { getIllustrationPath as
|
|
12
|
-
var
|
|
2
|
+
import u from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import y from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import C from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
+
import W from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
+
import f from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
+
import { sstyled as w } from "@semcore/utils/lib/core/index";
|
|
8
|
+
import P, { sstyled as o, assignProps as p, Component as b } from "@semcore/core";
|
|
9
|
+
import a from "react";
|
|
10
|
+
import { Flex as D, Box as s } from "@semcore/flex-box";
|
|
11
|
+
import { getIllustrationPath as T } from "@semcore/illustration";
|
|
12
|
+
var z = (
|
|
13
13
|
/*__reshadow_css_start__*/
|
|
14
|
-
(
|
|
14
|
+
(w.insert(
|
|
15
15
|
/*__inner_css_start__*/
|
|
16
|
-
".
|
|
17
|
-
"
|
|
16
|
+
".___SError_1an7f_gg_{padding:var(--intergalactic-spacing-20x, 80px)0;margin:0 auto;max-width:960px}@media (max-width:768px){.___SError_1an7f_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px)}}@media (max-width:320px){.___SError_1an7f_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_1an7f_gg_ .___SControls_1an7f_gg_{display:flex;align-items:center}.___SError_1an7f_gg_ .___SControls_1an7f_gg_>:not(:last-child){margin-right:var(--intergalactic-spacing-3x, 12px)}.___SError_1an7f_gg_ .___SInner_1an7f_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SImageWrapper_1an7f_gg_,.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SImage_1an7f_gg_{width:260px;height:260px}@media (max-width:320px){.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SImageWrapper_1an7f_gg_,.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SImage_1an7f_gg_{width:200px;height:200px}}.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SImageWrapper_1an7f_gg_{margin-right:var(--intergalactic-spacing-10x, 40px)}.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SWrapper_1an7f_gg_{flex:1 0 300px;max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___STitle_1an7f_gg_[data-errors-title]{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);color:var(--intergalactic-text-primary, #191b23);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SError_1an7f_gg_ .___SInner_1an7f_gg_ .___SDescription_1an7f_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);color:var(--intergalactic-text-primary, #191b23);margin:0 0 var(--intergalactic-spacing-6x, 24px)0}",
|
|
17
|
+
"1an7f_gg_"
|
|
18
18
|
), {
|
|
19
|
-
__SError: "
|
|
20
|
-
__SControls: "
|
|
21
|
-
__SInner: "
|
|
22
|
-
__SImageWrapper: "
|
|
23
|
-
__SImage: "
|
|
24
|
-
__SWrapper: "
|
|
25
|
-
__STitle: "
|
|
26
|
-
__SDescription: "
|
|
19
|
+
__SError: "___SError_1an7f_gg_",
|
|
20
|
+
__SControls: "___SControls_1an7f_gg_",
|
|
21
|
+
__SInner: "___SInner_1an7f_gg_",
|
|
22
|
+
__SImageWrapper: "___SImageWrapper_1an7f_gg_",
|
|
23
|
+
__SImage: "___SImage_1an7f_gg_",
|
|
24
|
+
__SWrapper: "___SWrapper_1an7f_gg_",
|
|
25
|
+
__STitle: "___STitle_1an7f_gg_",
|
|
26
|
+
__SDescription: "___SDescription_1an7f_gg_"
|
|
27
27
|
})
|
|
28
28
|
), M = function(r) {
|
|
29
|
-
return
|
|
30
|
-
}, l = /* @__PURE__ */ function(
|
|
31
|
-
|
|
32
|
-
var r =
|
|
29
|
+
return T(r);
|
|
30
|
+
}, l = /* @__PURE__ */ function(e) {
|
|
31
|
+
C(_, e);
|
|
32
|
+
var r = W(_);
|
|
33
33
|
function _() {
|
|
34
|
-
return
|
|
34
|
+
return u(this, _), r.apply(this, arguments);
|
|
35
35
|
}
|
|
36
|
-
return
|
|
36
|
+
return y(_, [{
|
|
37
37
|
key: "render",
|
|
38
38
|
value: function() {
|
|
39
|
-
var
|
|
40
|
-
return
|
|
41
|
-
src:
|
|
39
|
+
var m = this.asProps, n, S = D, c = this.asProps, x = c.Children, d = c.styles, g = c.icon, v = "div", h = "div", E = "div", I = "img";
|
|
40
|
+
return n = o(d), /* @__PURE__ */ a.createElement(S, n.cn("SError", i({}, p({}, m))), /* @__PURE__ */ a.createElement(v, n.cn("SInner", {}), g && /* @__PURE__ */ a.createElement(h, n.cn("SImageWrapper", {}), typeof g == "string" ? /* @__PURE__ */ a.createElement(I, n.cn("SImage", {
|
|
41
|
+
src: g,
|
|
42
42
|
alt: ""
|
|
43
|
-
})) :
|
|
43
|
+
})) : g), /* @__PURE__ */ a.createElement(E, n.cn("SWrapper", {}), /* @__PURE__ */ a.createElement(x, n.cn("Children", {})))));
|
|
44
44
|
}
|
|
45
45
|
}]), _;
|
|
46
|
-
}(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
function
|
|
50
|
-
var r = arguments[0], _,
|
|
51
|
-
return _ =
|
|
46
|
+
}(b);
|
|
47
|
+
f(l, "displayName", "Error");
|
|
48
|
+
f(l, "style", z);
|
|
49
|
+
function R(e) {
|
|
50
|
+
var r = arguments[0], _, t = s;
|
|
51
|
+
return _ = o(e.styles), /* @__PURE__ */ a.createElement(t, _.cn("STitle", i({}, p({
|
|
52
52
|
"data-errors-title": !0,
|
|
53
53
|
tag: "h2"
|
|
54
54
|
}, r))));
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
var r = arguments[0], _,
|
|
58
|
-
return _ =
|
|
56
|
+
function j(e) {
|
|
57
|
+
var r = arguments[0], _, t = s;
|
|
58
|
+
return _ = o(e.styles), /* @__PURE__ */ a.createElement(t, _.cn("SDescription", i({}, p({
|
|
59
59
|
tag: "p"
|
|
60
60
|
}, r))));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
var r = arguments[0], _,
|
|
64
|
-
return _ =
|
|
62
|
+
function k(e) {
|
|
63
|
+
var r = arguments[0], _, t = s;
|
|
64
|
+
return _ = o(e.styles), /* @__PURE__ */ a.createElement(t, _.cn("SControls", i({}, p({}, r))));
|
|
65
65
|
}
|
|
66
|
-
const O =
|
|
67
|
-
Title:
|
|
68
|
-
Description:
|
|
69
|
-
Controls:
|
|
66
|
+
const O = P(l, {
|
|
67
|
+
Title: R,
|
|
68
|
+
Description: j,
|
|
69
|
+
Controls: k
|
|
70
70
|
});
|
|
71
71
|
export {
|
|
72
72
|
O as default,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/errors",
|
|
3
3
|
"description": "Semrush Errors Component",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.47.0-prerelease.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/button": "5.
|
|
18
|
-
"@semcore/flex-box": "5.41.1
|
|
19
|
-
"@semcore/format-text": "4.41.1
|
|
20
|
-
"@semcore/illustration": "2.43.1
|
|
21
|
-
"@semcore/typography": "5.52.1
|
|
22
|
-
"@semcore/utils": "4.48.1
|
|
17
|
+
"@semcore/button": "5.43.0-prerelease.0",
|
|
18
|
+
"@semcore/flex-box": "5.41.1",
|
|
19
|
+
"@semcore/format-text": "4.41.1",
|
|
20
|
+
"@semcore/illustration": "2.43.1",
|
|
21
|
+
"@semcore/typography": "5.52.1",
|
|
22
|
+
"@semcore/utils": "4.48.1"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@semcore/core": "^2.
|
|
25
|
+
"@semcore/core": "^2.17.5",
|
|
26
26
|
"react": "16.8 - 18",
|
|
27
27
|
"react-dom": "16.8 - 18"
|
|
28
28
|
},
|