@semcore/widget-empty 4.43.0-prerelease.11 → 4.43.0-prerelease.15
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 +9 -3
- package/lib/cjs/WidgetEmpty.js +5 -5
- package/lib/cjs/style/widget-empty.shadow.css +1 -0
- package/lib/es6/WidgetEmpty.js +5 -5
- package/lib/es6/style/widget-empty.shadow.css +1 -0
- package/lib/esm/Error/index.mjs +36 -0
- package/lib/esm/Error/translations/__intergalactic-dynamic-locales.mjs +35 -0
- package/lib/esm/Error/translations/de.json.mjs +9 -0
- package/lib/esm/Error/translations/en.json.mjs +9 -0
- package/lib/esm/Error/translations/es.json.mjs +9 -0
- package/lib/esm/Error/translations/fr.json.mjs +9 -0
- package/lib/esm/Error/translations/it.json.mjs +9 -0
- package/lib/esm/Error/translations/ja.json.mjs +9 -0
- package/lib/esm/Error/translations/ko.json.mjs +9 -0
- package/lib/esm/Error/translations/nl.json.mjs +9 -0
- package/lib/esm/Error/translations/pl.json.mjs +9 -0
- package/lib/esm/Error/translations/pt.json.mjs +9 -0
- package/lib/esm/Error/translations/ru.json.mjs +9 -0
- package/lib/esm/Error/translations/sv.json.mjs +9 -0
- package/lib/esm/Error/translations/tr.json.mjs +9 -0
- package/lib/esm/Error/translations/vi.json.mjs +9 -0
- package/lib/esm/Error/translations/zh.json.mjs +9 -0
- package/lib/esm/NoData/index.mjs +37 -0
- package/lib/esm/NoData/translations/__intergalactic-dynamic-locales.mjs +35 -0
- package/lib/esm/NoData/translations/de.json.mjs +9 -0
- package/lib/esm/NoData/translations/en.json.mjs +9 -0
- package/lib/esm/NoData/translations/es.json.mjs +9 -0
- package/lib/esm/NoData/translations/fr.json.mjs +9 -0
- package/lib/esm/NoData/translations/it.json.mjs +9 -0
- package/lib/esm/NoData/translations/ja.json.mjs +9 -0
- package/lib/esm/NoData/translations/ko.json.mjs +9 -0
- package/lib/esm/NoData/translations/nl.json.mjs +9 -0
- package/lib/esm/NoData/translations/pl.json.mjs +9 -0
- package/lib/esm/NoData/translations/pt.json.mjs +9 -0
- package/lib/esm/NoData/translations/ru.json.mjs +9 -0
- package/lib/esm/NoData/translations/sv.json.mjs +9 -0
- package/lib/esm/NoData/translations/tr.json.mjs +9 -0
- package/lib/esm/NoData/translations/vi.json.mjs +9 -0
- package/lib/esm/NoData/translations/zh.json.mjs +9 -0
- package/lib/esm/WidgetEmpty.mjs +64 -0
- package/lib/esm/index.mjs +9 -0
- package/package.json +11 -6
- package/vite.config.ts +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [4.43.0] - 2025-03-
|
|
5
|
+
## [4.43.0] - 2025-03-14
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Build for ESM.
|
|
10
|
+
|
|
11
|
+
## [4.42.2] - 2025-03-11
|
|
12
|
+
|
|
13
|
+
### Added
|
|
8
14
|
|
|
9
|
-
-
|
|
15
|
+
- `text-wrap: balance` for Description, to display long descriptions in a better, trendy, and modern way. No orphans left hanging.
|
|
10
16
|
|
|
11
17
|
## [4.42.1] - 2025-02-05
|
|
12
18
|
|
package/lib/cjs/WidgetEmpty.js
CHANGED
|
@@ -19,11 +19,11 @@ var _illustration = require("@semcore/illustration");
|
|
|
19
19
|
var _flexBox = require("@semcore/flex-box");
|
|
20
20
|
var _isNode = _interopRequireDefault(require("@semcore/utils/lib/isNode"));
|
|
21
21
|
/*__reshadow-styles__:"./style/widget-empty.shadow.css"*/
|
|
22
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
|
23
|
-
"__SWidgetEmpty": "
|
|
24
|
-
"__SImage": "
|
|
25
|
-
"__STitle": "
|
|
26
|
-
"__SDescription": "
|
|
22
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SWidgetEmpty_1kzmq_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_1kzmq_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___SDescription_1kzmq_gg_,.___STitle_1kzmq_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_1kzmq_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_1kzmq_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_1kzmq_gg_+.___SDescription_1kzmq_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_1kzmq_gg_+.___SDescription_1kzmq_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}" /*__inner_css_end__*/, "1kzmq_gg_") /*__reshadow_css_end__*/, {
|
|
23
|
+
"__SWidgetEmpty": "___SWidgetEmpty_1kzmq_gg_",
|
|
24
|
+
"__SImage": "___SImage_1kzmq_gg_",
|
|
25
|
+
"__STitle": "___STitle_1kzmq_gg_",
|
|
26
|
+
"__SDescription": "___SDescription_1kzmq_gg_"
|
|
27
27
|
});
|
|
28
28
|
var getIconPath = function getIconPath(name) {
|
|
29
29
|
return (0, _illustration.getIllustrationPath)(name);
|
package/lib/es6/WidgetEmpty.js
CHANGED
|
@@ -14,11 +14,11 @@ import { getIllustrationPath } from '@semcore/illustration';
|
|
|
14
14
|
import { Box, Flex } from '@semcore/flex-box';
|
|
15
15
|
import isNode from '@semcore/utils/lib/isNode';
|
|
16
16
|
/*__reshadow-styles__:"./style/widget-empty.shadow.css"*/
|
|
17
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
18
|
-
"__SWidgetEmpty": "
|
|
19
|
-
"__SImage": "
|
|
20
|
-
"__STitle": "
|
|
21
|
-
"__SDescription": "
|
|
17
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SWidgetEmpty_1kzmq_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_1kzmq_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___SDescription_1kzmq_gg_,.___STitle_1kzmq_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_1kzmq_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_1kzmq_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_1kzmq_gg_+.___SDescription_1kzmq_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_1kzmq_gg_+.___SDescription_1kzmq_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}" /*__inner_css_end__*/, "1kzmq_gg_") /*__reshadow_css_end__*/, {
|
|
18
|
+
"__SWidgetEmpty": "___SWidgetEmpty_1kzmq_gg_",
|
|
19
|
+
"__SImage": "___SImage_1kzmq_gg_",
|
|
20
|
+
"__STitle": "___STitle_1kzmq_gg_",
|
|
21
|
+
"__SDescription": "___SDescription_1kzmq_gg_"
|
|
22
22
|
});
|
|
23
23
|
export var getIconPath = function getIconPath(name) {
|
|
24
24
|
return getIllustrationPath(name);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import d from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import u from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import h from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
+
import g from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
+
import i from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
|
+
import E, { assignProps as _, Component as C } from "@semcore/core";
|
|
7
|
+
import r from "react";
|
|
8
|
+
import o, { getIconPath as P } from "../WidgetEmpty.mjs";
|
|
9
|
+
import v from "@semcore/utils/lib/enhances/i18nEnhance";
|
|
10
|
+
import { localizedMessages as s } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
11
|
+
var t = /* @__PURE__ */ function(m) {
|
|
12
|
+
h(e, m);
|
|
13
|
+
var p = g(e);
|
|
14
|
+
function e() {
|
|
15
|
+
return d(this, e), p.apply(this, arguments);
|
|
16
|
+
}
|
|
17
|
+
return u(e, [{
|
|
18
|
+
key: "render",
|
|
19
|
+
value: function() {
|
|
20
|
+
var l = this.asProps, n = this.asProps, c = n.Children, f = n.description, a = n.getI18nText;
|
|
21
|
+
return /* @__PURE__ */ r.createElement(o, _({
|
|
22
|
+
icon: P("warning")
|
|
23
|
+
}, l), /* @__PURE__ */ r.createElement(o.Title, null, a("title")), /* @__PURE__ */ r.createElement(o.Description, null, f || a("description")), /* @__PURE__ */ r.createElement(c, null));
|
|
24
|
+
}
|
|
25
|
+
}]), e;
|
|
26
|
+
}(C);
|
|
27
|
+
i(t, "displayName", "WidgetError");
|
|
28
|
+
i(t, "defaultProps", {
|
|
29
|
+
i18n: s,
|
|
30
|
+
locale: "en"
|
|
31
|
+
});
|
|
32
|
+
i(t, "enhance", [v(s)]);
|
|
33
|
+
const R = E(t);
|
|
34
|
+
export {
|
|
35
|
+
R as default
|
|
36
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import r from "./de.json.mjs";
|
|
2
|
+
import o from "./en.json.mjs";
|
|
3
|
+
import m from "./es.json.mjs";
|
|
4
|
+
import t from "./fr.json.mjs";
|
|
5
|
+
import i from "./it.json.mjs";
|
|
6
|
+
import p from "./ja.json.mjs";
|
|
7
|
+
import f from "./ko.json.mjs";
|
|
8
|
+
import e from "./nl.json.mjs";
|
|
9
|
+
import s from "./pt.json.mjs";
|
|
10
|
+
import a from "./ru.json.mjs";
|
|
11
|
+
import l from "./tr.json.mjs";
|
|
12
|
+
import v from "./vi.json.mjs";
|
|
13
|
+
import d from "./zh.json.mjs";
|
|
14
|
+
import n from "./pl.json.mjs";
|
|
15
|
+
import z from "./sv.json.mjs";
|
|
16
|
+
var D = {
|
|
17
|
+
de: r,
|
|
18
|
+
en: o,
|
|
19
|
+
es: m,
|
|
20
|
+
fr: t,
|
|
21
|
+
it: i,
|
|
22
|
+
ja: p,
|
|
23
|
+
ko: f,
|
|
24
|
+
nl: e,
|
|
25
|
+
pt: s,
|
|
26
|
+
ru: a,
|
|
27
|
+
tr: l,
|
|
28
|
+
vi: v,
|
|
29
|
+
zh: d,
|
|
30
|
+
pl: n,
|
|
31
|
+
sv: z
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
D as localizedMessages
|
|
35
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import u from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import h from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import g from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
+
import y from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
+
import i from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
|
+
import _, { assignProps as C, Component as P } from "@semcore/core";
|
|
7
|
+
import r from "react";
|
|
8
|
+
import n, { getIconPath as E } from "../WidgetEmpty.mjs";
|
|
9
|
+
import v from "@semcore/utils/lib/enhances/i18nEnhance";
|
|
10
|
+
import { localizedMessages as p } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
11
|
+
var o = /* @__PURE__ */ function(s) {
|
|
12
|
+
g(e, s);
|
|
13
|
+
var m = y(e);
|
|
14
|
+
function e() {
|
|
15
|
+
return u(this, e), m.apply(this, arguments);
|
|
16
|
+
}
|
|
17
|
+
return h(e, [{
|
|
18
|
+
key: "render",
|
|
19
|
+
value: function() {
|
|
20
|
+
var l = this.asProps, t = this.asProps, c = t.Children, f = t.type, d = t.description, a = t.getI18nText;
|
|
21
|
+
return /* @__PURE__ */ r.createElement(n, C({
|
|
22
|
+
icon: E(f)
|
|
23
|
+
}, l), /* @__PURE__ */ r.createElement(n.Title, null, a("title")), /* @__PURE__ */ r.createElement(n.Description, null, d || a("description")), /* @__PURE__ */ r.createElement(c, null));
|
|
24
|
+
}
|
|
25
|
+
}]), e;
|
|
26
|
+
}(P);
|
|
27
|
+
i(o, "displayName", "WidgetNoData");
|
|
28
|
+
i(o, "enhance", [v(p)]);
|
|
29
|
+
i(o, "defaultProps", {
|
|
30
|
+
i18n: p,
|
|
31
|
+
locale: "en",
|
|
32
|
+
type: "other-data"
|
|
33
|
+
});
|
|
34
|
+
const $ = _(o);
|
|
35
|
+
export {
|
|
36
|
+
$ as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import r from "./de.json.mjs";
|
|
2
|
+
import o from "./en.json.mjs";
|
|
3
|
+
import m from "./es.json.mjs";
|
|
4
|
+
import t from "./fr.json.mjs";
|
|
5
|
+
import i from "./it.json.mjs";
|
|
6
|
+
import p from "./ja.json.mjs";
|
|
7
|
+
import f from "./ko.json.mjs";
|
|
8
|
+
import e from "./nl.json.mjs";
|
|
9
|
+
import s from "./pt.json.mjs";
|
|
10
|
+
import a from "./ru.json.mjs";
|
|
11
|
+
import l from "./tr.json.mjs";
|
|
12
|
+
import v from "./vi.json.mjs";
|
|
13
|
+
import d from "./zh.json.mjs";
|
|
14
|
+
import n from "./pl.json.mjs";
|
|
15
|
+
import z from "./sv.json.mjs";
|
|
16
|
+
var D = {
|
|
17
|
+
de: r,
|
|
18
|
+
en: o,
|
|
19
|
+
es: m,
|
|
20
|
+
fr: t,
|
|
21
|
+
it: i,
|
|
22
|
+
ja: p,
|
|
23
|
+
ko: f,
|
|
24
|
+
nl: e,
|
|
25
|
+
pt: s,
|
|
26
|
+
ru: a,
|
|
27
|
+
tr: l,
|
|
28
|
+
vi: v,
|
|
29
|
+
zh: d,
|
|
30
|
+
pl: n,
|
|
31
|
+
sv: z
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
D as localizedMessages
|
|
35
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import s from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import h from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import u from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import x from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
+
import k from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
+
import p from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
+
import { sstyled as z } from "@semcore/utils/lib/core/index";
|
|
8
|
+
import q, { sstyled as c, assignProps as m, Component as E } from "@semcore/core";
|
|
9
|
+
import _ from "react";
|
|
10
|
+
import { getIllustrationPath as D } from "@semcore/illustration";
|
|
11
|
+
import { Flex as T, Box as f } from "@semcore/flex-box";
|
|
12
|
+
import W from "@semcore/utils/lib/isNode";
|
|
13
|
+
var C = (
|
|
14
|
+
/*__reshadow_css_start__*/
|
|
15
|
+
(z.insert(
|
|
16
|
+
/*__inner_css_start__*/
|
|
17
|
+
".___SWidgetEmpty_1kzmq_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_1kzmq_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___SDescription_1kzmq_gg_,.___STitle_1kzmq_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_1kzmq_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_1kzmq_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_1kzmq_gg_+.___SDescription_1kzmq_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_1kzmq_gg_+.___SDescription_1kzmq_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}",
|
|
18
|
+
"1kzmq_gg_"
|
|
19
|
+
), {
|
|
20
|
+
__SWidgetEmpty: "___SWidgetEmpty_1kzmq_gg_",
|
|
21
|
+
__SImage: "___SImage_1kzmq_gg_",
|
|
22
|
+
__STitle: "___STitle_1kzmq_gg_",
|
|
23
|
+
__SDescription: "___SDescription_1kzmq_gg_"
|
|
24
|
+
})
|
|
25
|
+
), K = function(r) {
|
|
26
|
+
return D(r);
|
|
27
|
+
}, l = /* @__PURE__ */ function(n) {
|
|
28
|
+
x(t, n);
|
|
29
|
+
var r = k(t);
|
|
30
|
+
function t() {
|
|
31
|
+
return h(this, t), r.apply(this, arguments);
|
|
32
|
+
}
|
|
33
|
+
return u(t, [{
|
|
34
|
+
key: "render",
|
|
35
|
+
value: function() {
|
|
36
|
+
var a = this.asProps, e, d = T, o = this.asProps, y = o.Children, g = o.icon, v = o.styles, S = "div";
|
|
37
|
+
return e = c(v), /* @__PURE__ */ _.createElement(d, e.cn("SWidgetEmpty", s({}, m({
|
|
38
|
+
role: "status"
|
|
39
|
+
}, a))), W(g) && /* @__PURE__ */ _.createElement(S, e.cn("SImage", {
|
|
40
|
+
"aria-hidden": "true"
|
|
41
|
+
}), typeof g == "string" ? /* @__PURE__ */ _.createElement("img", e.cn("img", {
|
|
42
|
+
src: g,
|
|
43
|
+
alt: ""
|
|
44
|
+
})) : g), /* @__PURE__ */ _.createElement(y, e.cn("Children", {})));
|
|
45
|
+
}
|
|
46
|
+
}]), t;
|
|
47
|
+
}(E);
|
|
48
|
+
p(l, "displayName", "WidgetEmpty");
|
|
49
|
+
p(l, "style", C);
|
|
50
|
+
var I = function(r) {
|
|
51
|
+
var t = arguments[0], i, a = f, e = r.styles;
|
|
52
|
+
return i = c(e), /* @__PURE__ */ _.createElement(a, i.cn("STitle", s({}, m({}, t))));
|
|
53
|
+
}, P = function(r) {
|
|
54
|
+
var t = arguments[0], i, a = f, e = r.styles;
|
|
55
|
+
return i = c(e), /* @__PURE__ */ _.createElement(a, i.cn("SDescription", s({}, m({}, t))));
|
|
56
|
+
};
|
|
57
|
+
const L = q(l, {
|
|
58
|
+
Title: I,
|
|
59
|
+
Description: P
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
L as default,
|
|
63
|
+
K as getIconPath
|
|
64
|
+
};
|
package/package.json
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/widget-empty",
|
|
3
3
|
"description": "Semrush WidgetEmpty Component",
|
|
4
|
-
"version": "4.43.0-prerelease.
|
|
4
|
+
"version": "4.43.0-prerelease.15",
|
|
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
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
|
+
"exports": {
|
|
12
|
+
"require": "./lib/cjs/index.js",
|
|
13
|
+
"import": "./lib/esm/index.mjs",
|
|
14
|
+
"types": "./lib/types/index.d.ts"
|
|
15
|
+
},
|
|
11
16
|
"dependencies": {
|
|
12
|
-
"@semcore/flex-box": "5.41.0-prerelease.
|
|
13
|
-
"@semcore/illustration": "2.43.0-prerelease.
|
|
14
|
-
"@semcore/utils": "4.
|
|
17
|
+
"@semcore/flex-box": "5.41.0-prerelease.15",
|
|
18
|
+
"@semcore/illustration": "2.43.0-prerelease.15",
|
|
19
|
+
"@semcore/utils": "4.48.0-prerelease.15"
|
|
15
20
|
},
|
|
16
21
|
"peerDependencies": {
|
|
17
|
-
"@semcore/core": "^2.39.0-prerelease.
|
|
22
|
+
"@semcore/core": "^2.39.0-prerelease.15",
|
|
18
23
|
"react": "16.8 - 18",
|
|
19
24
|
"react-dom": "16.8 - 18"
|
|
20
25
|
},
|
|
@@ -28,6 +33,6 @@
|
|
|
28
33
|
"@semcore/testing-utils": "1.0.0"
|
|
29
34
|
},
|
|
30
35
|
"scripts": {
|
|
31
|
-
"build": "pnpm semcore-builder --source=js"
|
|
36
|
+
"build": "pnpm semcore-builder --source=js && pnpm vite build"
|
|
32
37
|
}
|
|
33
38
|
}
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defineConfig, mergeConfig } from 'vite';
|
|
2
|
+
|
|
3
|
+
import viteConfig from '../../commonVite.config';
|
|
4
|
+
|
|
5
|
+
export default mergeConfig(
|
|
6
|
+
viteConfig,
|
|
7
|
+
defineConfig({
|
|
8
|
+
build: {
|
|
9
|
+
lib: {
|
|
10
|
+
entry: './src/index.js',
|
|
11
|
+
},
|
|
12
|
+
rollupOptions: {
|
|
13
|
+
external: ['react', 'react-dom', 'react/jsx-runtime', /@babel\/runtime\/*/, /@semcore\/*/],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
}),
|
|
17
|
+
);
|