@semcore/errors 4.47.0-prerelease.2 → 4.48.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 +40 -40
- package/package.json +3 -3
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.48.0] - 2025-04-04
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version minor update due to children dependencies update (`@semcore/illustration` [2.43.1 ~> 2.44.0]).
|
|
10
|
+
|
|
5
11
|
## [4.47.0] - 2025-03-28
|
|
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_1o5wg_gg_{padding:var(--intergalactic-spacing-20x, 80px)0;margin:0 auto;max-width:960px}@media (max-width:768px){.___SError_1o5wg_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px)}}@media (max-width:320px){.___SError_1o5wg_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_1o5wg_gg_ .___SControls_1o5wg_gg_{display:flex;align-items:center}.___SError_1o5wg_gg_ .___SControls_1o5wg_gg_>:not(:last-child){margin-right:var(--intergalactic-spacing-3x, 12px)}.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SImageWrapper_1o5wg_gg_,.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SImage_1o5wg_gg_{width:260px;height:260px}@media (max-width:320px){.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SImageWrapper_1o5wg_gg_,.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SImage_1o5wg_gg_{width:200px;height:200px}}.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SImageWrapper_1o5wg_gg_{margin-right:var(--intergalactic-spacing-10x, 40px)}.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SWrapper_1o5wg_gg_{flex:1 0 300px;max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___STitle_1o5wg_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_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SDescription_1o5wg_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__*/, "1o5wg_gg_") /*__reshadow_css_end__*/, {
|
|
22
|
+
"__SError": "___SError_1o5wg_gg_",
|
|
23
|
+
"__SControls": "___SControls_1o5wg_gg_",
|
|
24
|
+
"__SInner": "___SInner_1o5wg_gg_",
|
|
25
|
+
"__SImageWrapper": "___SImageWrapper_1o5wg_gg_",
|
|
26
|
+
"__SImage": "___SImage_1o5wg_gg_",
|
|
27
|
+
"__SWrapper": "___SWrapper_1o5wg_gg_",
|
|
28
|
+
"__STitle": "___STitle_1o5wg_gg_",
|
|
29
|
+
"__SDescription": "___SDescription_1o5wg_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_1o5wg_gg_{padding:var(--intergalactic-spacing-20x, 80px)0;margin:0 auto;max-width:960px}@media (max-width:768px){.___SError_1o5wg_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px)}}@media (max-width:320px){.___SError_1o5wg_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_1o5wg_gg_ .___SControls_1o5wg_gg_{display:flex;align-items:center}.___SError_1o5wg_gg_ .___SControls_1o5wg_gg_>:not(:last-child){margin-right:var(--intergalactic-spacing-3x, 12px)}.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SImageWrapper_1o5wg_gg_,.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SImage_1o5wg_gg_{width:260px;height:260px}@media (max-width:320px){.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SImageWrapper_1o5wg_gg_,.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SImage_1o5wg_gg_{width:200px;height:200px}}.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SImageWrapper_1o5wg_gg_{margin-right:var(--intergalactic-spacing-10x, 40px)}.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SWrapper_1o5wg_gg_{flex:1 0 300px;max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___STitle_1o5wg_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_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SDescription_1o5wg_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__*/, "1o5wg_gg_") /*__reshadow_css_end__*/, {
|
|
18
|
+
"__SError": "___SError_1o5wg_gg_",
|
|
19
|
+
"__SControls": "___SControls_1o5wg_gg_",
|
|
20
|
+
"__SInner": "___SInner_1o5wg_gg_",
|
|
21
|
+
"__SImageWrapper": "___SImageWrapper_1o5wg_gg_",
|
|
22
|
+
"__SImage": "___SImage_1o5wg_gg_",
|
|
23
|
+
"__SWrapper": "___SWrapper_1o5wg_gg_",
|
|
24
|
+
"__STitle": "___STitle_1o5wg_gg_",
|
|
25
|
+
"__SDescription": "___SDescription_1o5wg_gg_"
|
|
26
26
|
});
|
|
27
27
|
export var getIconPath = function getIconPath(name) {
|
|
28
28
|
return getIllustrationPath(name);
|
package/lib/esm/Error.mjs
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { sstyled as
|
|
8
|
-
import P, { sstyled as
|
|
9
|
-
import
|
|
1
|
+
import n from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import I from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import u from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import y from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
+
import C from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
+
import m from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
+
import { sstyled as W } from "@semcore/utils/lib/core/index";
|
|
8
|
+
import P, { sstyled as i, assignProps as p, Component as b } from "@semcore/core";
|
|
9
|
+
import e from "react";
|
|
10
10
|
import { Flex as D, Box as s } from "@semcore/flex-box";
|
|
11
11
|
import { getIllustrationPath as T } from "@semcore/illustration";
|
|
12
12
|
var z = (
|
|
13
13
|
/*__reshadow_css_start__*/
|
|
14
|
-
(
|
|
14
|
+
(W.insert(
|
|
15
15
|
/*__inner_css_start__*/
|
|
16
|
-
".
|
|
17
|
-
"
|
|
16
|
+
".___SError_1o5wg_gg_{padding:var(--intergalactic-spacing-20x, 80px)0;margin:0 auto;max-width:960px}@media (max-width:768px){.___SError_1o5wg_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px)}}@media (max-width:320px){.___SError_1o5wg_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_1o5wg_gg_ .___SControls_1o5wg_gg_{display:flex;align-items:center}.___SError_1o5wg_gg_ .___SControls_1o5wg_gg_>:not(:last-child){margin-right:var(--intergalactic-spacing-3x, 12px)}.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SImageWrapper_1o5wg_gg_,.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SImage_1o5wg_gg_{width:260px;height:260px}@media (max-width:320px){.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SImageWrapper_1o5wg_gg_,.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SImage_1o5wg_gg_{width:200px;height:200px}}.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SImageWrapper_1o5wg_gg_{margin-right:var(--intergalactic-spacing-10x, 40px)}.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SWrapper_1o5wg_gg_{flex:1 0 300px;max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___SError_1o5wg_gg_ .___SInner_1o5wg_gg_ .___STitle_1o5wg_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_1o5wg_gg_ .___SInner_1o5wg_gg_ .___SDescription_1o5wg_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
|
+
"1o5wg_gg_"
|
|
18
18
|
), {
|
|
19
|
-
__SError: "
|
|
20
|
-
__SControls: "
|
|
21
|
-
__SInner: "
|
|
22
|
-
__SImageWrapper: "
|
|
23
|
-
__SImage: "
|
|
24
|
-
__SWrapper: "
|
|
25
|
-
__STitle: "
|
|
26
|
-
__SDescription: "
|
|
19
|
+
__SError: "___SError_1o5wg_gg_",
|
|
20
|
+
__SControls: "___SControls_1o5wg_gg_",
|
|
21
|
+
__SInner: "___SInner_1o5wg_gg_",
|
|
22
|
+
__SImageWrapper: "___SImageWrapper_1o5wg_gg_",
|
|
23
|
+
__SImage: "___SImage_1o5wg_gg_",
|
|
24
|
+
__SWrapper: "___SWrapper_1o5wg_gg_",
|
|
25
|
+
__STitle: "___STitle_1o5wg_gg_",
|
|
26
|
+
__SDescription: "___SDescription_1o5wg_gg_"
|
|
27
27
|
})
|
|
28
28
|
), M = function(r) {
|
|
29
29
|
return T(r);
|
|
30
|
-
}, l = /* @__PURE__ */ function(
|
|
31
|
-
|
|
32
|
-
var r =
|
|
30
|
+
}, l = /* @__PURE__ */ function(g) {
|
|
31
|
+
y(_, g);
|
|
32
|
+
var r = C(_);
|
|
33
33
|
function _() {
|
|
34
|
-
return
|
|
34
|
+
return I(this, _), r.apply(this, arguments);
|
|
35
35
|
}
|
|
36
|
-
return
|
|
36
|
+
return u(_, [{
|
|
37
37
|
key: "render",
|
|
38
38
|
value: function() {
|
|
39
|
-
var
|
|
40
|
-
return
|
|
41
|
-
src:
|
|
39
|
+
var S = this.asProps, t, w = D, c = this.asProps, x = c.Children, f = c.styles, o = c.icon, d = "div", v = "div", h = "div", E = "img";
|
|
40
|
+
return t = i(f), /* @__PURE__ */ e.createElement(w, t.cn("SError", n({}, p({}, S))), /* @__PURE__ */ e.createElement(d, t.cn("SInner", {}), o && /* @__PURE__ */ e.createElement(v, t.cn("SImageWrapper", {}), typeof o == "string" ? /* @__PURE__ */ e.createElement(E, t.cn("SImage", {
|
|
41
|
+
src: o,
|
|
42
42
|
alt: ""
|
|
43
|
-
})) :
|
|
43
|
+
})) : o), /* @__PURE__ */ e.createElement(h, t.cn("SWrapper", {}), /* @__PURE__ */ e.createElement(x, t.cn("Children", {})))));
|
|
44
44
|
}
|
|
45
45
|
}]), _;
|
|
46
46
|
}(b);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
function R(
|
|
50
|
-
var r = arguments[0], _,
|
|
51
|
-
return _ =
|
|
47
|
+
m(l, "displayName", "Error");
|
|
48
|
+
m(l, "style", z);
|
|
49
|
+
function R(g) {
|
|
50
|
+
var r = arguments[0], _, a = s;
|
|
51
|
+
return _ = i(g.styles), /* @__PURE__ */ e.createElement(a, _.cn("STitle", n({}, p({
|
|
52
52
|
"data-errors-title": !0,
|
|
53
53
|
tag: "h2"
|
|
54
54
|
}, r))));
|
|
55
55
|
}
|
|
56
|
-
function j(
|
|
57
|
-
var r = arguments[0], _,
|
|
58
|
-
return _ =
|
|
56
|
+
function j(g) {
|
|
57
|
+
var r = arguments[0], _, a = s;
|
|
58
|
+
return _ = i(g.styles), /* @__PURE__ */ e.createElement(a, _.cn("SDescription", n({}, p({
|
|
59
59
|
tag: "p"
|
|
60
60
|
}, r))));
|
|
61
61
|
}
|
|
62
|
-
function k(
|
|
63
|
-
var r = arguments[0], _,
|
|
64
|
-
return _ =
|
|
62
|
+
function k(g) {
|
|
63
|
+
var r = arguments[0], _, a = s;
|
|
64
|
+
return _ = i(g.styles), /* @__PURE__ */ e.createElement(a, _.cn("SControls", n({}, p({}, r))));
|
|
65
65
|
}
|
|
66
66
|
const O = P(l, {
|
|
67
67
|
Title: R,
|
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.48.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,10 +14,10 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/button": "5.43.0
|
|
17
|
+
"@semcore/button": "5.43.0",
|
|
18
18
|
"@semcore/flex-box": "5.41.1",
|
|
19
19
|
"@semcore/format-text": "4.41.1",
|
|
20
|
-
"@semcore/illustration": "2.
|
|
20
|
+
"@semcore/illustration": "2.44.0-prerelease.0",
|
|
21
21
|
"@semcore/typography": "5.52.1",
|
|
22
22
|
"@semcore/utils": "4.48.1"
|
|
23
23
|
},
|