@hortiview/shared-components 1.3.3 → 1.3.5
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 +42 -9
- package/dist/assets/Modal.css +1 -1
- package/dist/components/Modal/Modal.js +49 -48
- package/package.json +2 -85
package/CHANGELOG.md
CHANGED
|
@@ -1,27 +1,60 @@
|
|
|
1
|
+
## [1.3.5](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.3.4...v1.3.5) (2025-04-09)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* hide close button properly ([f37792b](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/f37792bbacf43acb4ad9bdcebc770376670b0121))
|
|
6
|
+
|
|
7
|
+
## [1.3.4](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.3.3...v1.3.4) (2025-04-09)
|
|
8
|
+
|
|
9
|
+
### Code Refactoring
|
|
10
|
+
|
|
11
|
+
* release config moved to file ([a875393](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/a875393bb9f8325d08763a60d06e9febde7b2c8f))
|
|
12
|
+
* release note config updated ([b21fb4c](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/b21fb4ca5bfe8c1cafc33f165e1f5933574b5fbb))
|
|
13
|
+
|
|
1
14
|
## [1.3.3](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.3.2...v1.3.3) (2025-04-09)
|
|
2
15
|
|
|
16
|
+
### Code Refactoring
|
|
17
|
+
|
|
18
|
+
* release notes generator updated
|
|
19
|
+
|
|
3
20
|
## <small>1.3.2 (2025-04-08)</small>
|
|
4
21
|
|
|
5
|
-
|
|
6
|
-
|
|
22
|
+
### Code Refactoring
|
|
23
|
+
|
|
24
|
+
* release notes updated ([fe353cb](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/fe353cb))
|
|
7
25
|
|
|
8
26
|
## <small>1.3.1 (2025-04-08)</small>
|
|
9
27
|
|
|
10
|
-
|
|
11
|
-
|
|
28
|
+
### Code Refactoring
|
|
29
|
+
|
|
30
|
+
* changelog notes updated ([158106a](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/158106a))
|
|
12
31
|
|
|
13
32
|
## 1.3.0 (2025-04-08)
|
|
14
33
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*
|
|
18
|
-
|
|
19
|
-
|
|
34
|
+
### Code Refactoring
|
|
35
|
+
|
|
36
|
+
* release notes generator updated ([031c727](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/031c727))
|
|
37
|
+
|
|
38
|
+
### Documentation
|
|
39
|
+
|
|
40
|
+
* modal section in readme updated ([a68bf3b](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/a68bf3b))
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
* modal header updated ([be51cb1](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/be51cb1))
|
|
20
45
|
|
|
21
46
|
## [1.2.2](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.2.1...v1.2.2) (2025-04-08)
|
|
22
47
|
|
|
48
|
+
### Code Refactoring
|
|
49
|
+
|
|
50
|
+
* release notes generator updated
|
|
51
|
+
|
|
23
52
|
## [1.2.1](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.2.0...v1.2.1) (2025-04-08)
|
|
24
53
|
|
|
54
|
+
### Code Refactoring
|
|
55
|
+
|
|
56
|
+
* change type from checkbox props
|
|
57
|
+
|
|
25
58
|
# [1.2.0](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.1.2...v1.2.0) (2025-04-02)
|
|
26
59
|
|
|
27
60
|
|
package/dist/assets/Modal.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._modal_18rd0_1 div[class*=lmnt-modal__surface]{max-height:100svh!important;max-width:100svw!important}._title_18rd0_6{header{display:flex;justify-content:start;padding-left:.5rem!important;>div{width:100%;margin-left:0!important}}}._titleWithoutCloseIcon_18rd0_18{margin-left:1rem!important}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as ft, jsx as O } from "react/jsx-runtime";
|
|
2
|
-
import { G as
|
|
2
|
+
import { G as V } from "../../index.es-DntoATwO.js";
|
|
3
3
|
import { I as it } from "../../index.es-0lQcz8m1.js";
|
|
4
4
|
import { _ as pt, c as B, P as s } from "../../identity-DLWZln-X.js";
|
|
5
|
-
import u, { forwardRef as ht, useRef as
|
|
5
|
+
import u, { forwardRef as ht, useRef as et, useImperativeHandle as gt, useState as nt, useEffect as g, useCallback as z, useMemo as Y } from "react";
|
|
6
6
|
import { i as Et, c as T, a as _t } from "../../index.es-da0cf7oE.js";
|
|
7
|
-
import { b as at, c as
|
|
7
|
+
import { b as at, c as ot, d as Ct } from "../../tslib.es6-BDCynO9F.js";
|
|
8
8
|
import { M as St, a as vt } from "../../component-neHBNHRu.js";
|
|
9
9
|
import { M as yt, c as Ot, m as Tt } from "../../component-DsB0poTj.js";
|
|
10
10
|
import { A as At } from "../../animationframe-EMBh6XeO.js";
|
|
@@ -31,10 +31,10 @@ import '../../assets/Modal.css';/**
|
|
|
31
31
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
32
32
|
* THE SOFTWARE.
|
|
33
33
|
*/
|
|
34
|
-
function
|
|
34
|
+
function It(i, e, t) {
|
|
35
35
|
return e(i, { initialFocusEl: t });
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Dt(i) {
|
|
38
38
|
return i ? i.scrollHeight > i.offsetHeight : !1;
|
|
39
39
|
}
|
|
40
40
|
function Nt(i) {
|
|
@@ -224,7 +224,7 @@ var rt = (
|
|
|
224
224
|
function(i) {
|
|
225
225
|
at(e, i);
|
|
226
226
|
function e(t) {
|
|
227
|
-
var n = i.call(this,
|
|
227
|
+
var n = i.call(this, ot(ot({}, e.defaultAdapter), t)) || this;
|
|
228
228
|
return n.dialogOpen = !1, n.isFullscreen = !1, n.animationFrame = 0, n.animationTimer = 0, n.escapeKeyAction = C.CLOSE_ACTION, n.scrimClickAction = C.CLOSE_ACTION, n.autoStackButtons = !0, n.areButtonsStacked = !1, n.suppressDefaultPressSelector = C.SUPPRESS_DEFAULT_PRESS_SELECTOR, n.animFrame = new At(), n.contentScrollHandler = function() {
|
|
229
229
|
n.handleScrollEvent();
|
|
230
230
|
}, n.windowResizeHandler = function() {
|
|
@@ -498,7 +498,7 @@ var m = rt.strings, Bt = (
|
|
|
498
498
|
}
|
|
499
499
|
}, e.prototype.initialSyncWithDOM = function() {
|
|
500
500
|
var t = this;
|
|
501
|
-
this.focusTrap =
|
|
501
|
+
this.focusTrap = It(this.container, this.focusTrapFactory, this.getInitialFocusEl() || void 0), this.handleClick = this.foundation.handleClick.bind(this.foundation), this.handleKeydown = this.foundation.handleKeydown.bind(this.foundation), this.handleDocumentKeydown = this.foundation.handleDocumentKeydown.bind(this.foundation), this.handleOpening = function() {
|
|
502
502
|
document.addEventListener("keydown", t.handleDocumentKeydown);
|
|
503
503
|
}, this.handleClosing = function() {
|
|
504
504
|
document.removeEventListener("keydown", t.handleDocumentKeydown);
|
|
@@ -543,7 +543,7 @@ var m = rt.strings, Bt = (
|
|
|
543
543
|
return t.root.classList.contains(o);
|
|
544
544
|
},
|
|
545
545
|
isContentScrollable: function() {
|
|
546
|
-
return
|
|
546
|
+
return Dt(t.content);
|
|
547
547
|
},
|
|
548
548
|
notifyClosed: function(o) {
|
|
549
549
|
return t.emit(m.CLOSED_EVENT, o ? { action: o } : {});
|
|
@@ -798,7 +798,7 @@ const wt = {
|
|
|
798
798
|
defaultButton: E,
|
|
799
799
|
dismissiveButton: _,
|
|
800
800
|
footerSupplemental: b,
|
|
801
|
-
headerActions:
|
|
801
|
+
headerActions: J,
|
|
802
802
|
hideCloseIcon: k,
|
|
803
803
|
indicator: st,
|
|
804
804
|
initialFocus: S,
|
|
@@ -808,19 +808,19 @@ const wt = {
|
|
|
808
808
|
noActions: y,
|
|
809
809
|
onClose: P,
|
|
810
810
|
onClosed: U,
|
|
811
|
-
onOpen:
|
|
812
|
-
onOpened:
|
|
813
|
-
open:
|
|
811
|
+
onOpen: I,
|
|
812
|
+
onOpened: D,
|
|
813
|
+
open: Q,
|
|
814
814
|
preventClose: x,
|
|
815
|
-
preventPrimaryAccept:
|
|
815
|
+
preventPrimaryAccept: X,
|
|
816
816
|
primaryButton: c,
|
|
817
817
|
returnFocusSelector: G,
|
|
818
|
-
scrollable:
|
|
819
|
-
title:
|
|
818
|
+
scrollable: Z,
|
|
819
|
+
title: tt,
|
|
820
820
|
...lt
|
|
821
|
-
} = i, N =
|
|
821
|
+
} = i, N = et(), l = et();
|
|
822
822
|
gt(e, () => N.current, []);
|
|
823
|
-
const [K, ct] =
|
|
823
|
+
const [K, ct] = nt(), [W, dt] = nt(() => v || a);
|
|
824
824
|
g(() => {
|
|
825
825
|
dt(v || a);
|
|
826
826
|
}, [v, a]);
|
|
@@ -844,50 +844,50 @@ const wt = {
|
|
|
844
844
|
}, [P]), R = z((f) => {
|
|
845
845
|
G && Et(G), U && U(f);
|
|
846
846
|
}, [G, U]);
|
|
847
|
-
g(() => (l.current.unlisten("MDCDialog: opening",
|
|
848
|
-
l.current.unlisten("MDCDialog: opening",
|
|
849
|
-
}), [l,
|
|
850
|
-
l.current.unlisten("MDCDialog:opened",
|
|
851
|
-
}), [l,
|
|
847
|
+
g(() => (l.current.unlisten("MDCDialog: opening", I), l.current.listen("MDCDialog: opening", I), () => {
|
|
848
|
+
l.current.unlisten("MDCDialog: opening", I);
|
|
849
|
+
}), [l, I]), g(() => (l.current.unlisten("MDCDialog:opened", D), l.current.listen("MDCDialog:opened", D), () => {
|
|
850
|
+
l.current.unlisten("MDCDialog:opened", D);
|
|
851
|
+
}), [l, D]), g(() => (l.current.unlisten("MDCDialog:closing", F), l.current.listen("MDCDialog:closing", F), () => {
|
|
852
852
|
l.current.unlisten("MDCDialog:closing", F);
|
|
853
853
|
}), [l, F]), g(() => (l.current.unlisten("MDCDialog:closed", R), l.current.listen("MDCDialog:closed", R), () => {
|
|
854
854
|
l.current.unlisten("MDCDialog:closed", R);
|
|
855
855
|
}), [l, R]), g(() => {
|
|
856
|
-
|
|
857
|
-
}, [l,
|
|
858
|
-
const ut =
|
|
856
|
+
Q ? l.current.open() : l.current.close();
|
|
857
|
+
}, [l, Q]);
|
|
858
|
+
const ut = Y(() => () => {
|
|
859
859
|
const f = {
|
|
860
860
|
className: "lmnt-modal__button mdc-dialog__button",
|
|
861
861
|
elevation: t?.props.elevation !== "default" ? t?.props.elevation : "flat",
|
|
862
862
|
variant: t?.props.variant || "filled"
|
|
863
863
|
};
|
|
864
864
|
return E === "action" && (f["data-mdc-dialog-button-default"] = !0), S === "action" && (f["data-mdc-dialog-initial-focus"] = !0), f;
|
|
865
|
-
}, [t?.props.elevation, t?.props.variant, E, S]), mt =
|
|
865
|
+
}, [t?.props.elevation, t?.props.variant, E, S]), mt = Y(() => () => {
|
|
866
866
|
const f = {
|
|
867
867
|
className: "lmnt-modal__button mdc-dialog__button",
|
|
868
|
-
"data-mdc-dialog-action":
|
|
868
|
+
"data-mdc-dialog-action": X ? "" : "accept",
|
|
869
869
|
elevation: c?.props.elevation !== "default" ? c?.props.elevation : "flat",
|
|
870
870
|
variant: c?.props.variant || "filled"
|
|
871
871
|
};
|
|
872
872
|
return E === "primary" && (f["data-mdc-dialog-button-default"] = !0), S === "primary" && (f["data-mdc-dialog-initial-focus"] = !0), f;
|
|
873
|
-
}, [
|
|
873
|
+
}, [X, E, S, c?.props.elevation, c?.props.variant]);
|
|
874
874
|
return /* @__PURE__ */ u.createElement("aside", pt({
|
|
875
875
|
ref: N,
|
|
876
|
-
className: B("lmnt", "lmnt-modal", "mdc-dialog",
|
|
876
|
+
className: B("lmnt", "lmnt-modal", "mdc-dialog", Z && "lmnt-modal--scrollable mdc-dialog--scrollable", p),
|
|
877
877
|
role: "alertdialog"
|
|
878
878
|
}, lt), /* @__PURE__ */ u.createElement("div", {
|
|
879
879
|
className: B("lmnt-modal__container", "mdc-dialog__container", h === "fullscreen" && "mdc-dialog--fullscreen", h === "max" && "lmnt-modal__max", h === "xlarge" && "lmnt-modal__xl", h === "large" && "lmnt-modal__lg", h === "medium" && "lmnt-modal__md", h === "small" && "lmnt-modal__sm", (h === "mobile" || K) && "lmnt-modal__mobile", h === "dialog" && "lmnt-modal__dialog", y && "lmnt-modal-no-actions")
|
|
880
880
|
}, /* @__PURE__ */ u.createElement("div", {
|
|
881
881
|
className: "lmnt-modal__surface mdc-dialog__surface"
|
|
882
882
|
}, /* @__PURE__ */ u.createElement("header", {
|
|
883
|
-
className: B("lmnt-modal__title", "mdc-dialog__title", (h === "dialog" || k) && "lmnt-modal_title-hide-close-icon", n && "lmnt-modal_title-actionsIcons",
|
|
883
|
+
className: B("lmnt-modal__title", "mdc-dialog__title", (h === "dialog" || k) && "lmnt-modal_title-hide-close-icon", n && "lmnt-modal_title-actionsIcons", Z && "lmnt-modal__title-scrollable", (k || h === "dialog" || y) && "lmnt-modal--no-close-icon")
|
|
884
884
|
}, !k && h !== "dialog" && !y && /* @__PURE__ */ u.createElement(it, {
|
|
885
885
|
className: "mdc-icon-button material-icons mdc-dialog__close",
|
|
886
886
|
"data-mdc-dialog-action": "close",
|
|
887
887
|
icon: "clear"
|
|
888
|
-
}),
|
|
888
|
+
}), tt && /* @__PURE__ */ u.createElement("div", null, tt), J && /* @__PURE__ */ u.createElement("div", {
|
|
889
889
|
className: "lmnt-dialog__title-actions"
|
|
890
|
-
},
|
|
890
|
+
}, J), o && /* @__PURE__ */ u.createElement("div", {
|
|
891
891
|
className: "lmnt-badge--modal",
|
|
892
892
|
style: {
|
|
893
893
|
marginLeft: "0"
|
|
@@ -896,18 +896,18 @@ const wt = {
|
|
|
896
896
|
className: "lmnt-modal__content mdc-dialog__content"
|
|
897
897
|
}, A || d), st, (t || a || _ || v || c || b) && /* @__PURE__ */ u.createElement("footer", {
|
|
898
898
|
className: B("lmnt-modal__actions", "mdc-dialog__actions", K && "lmnt-dialog__actions__mobile", b && "lmnt-modal__actions--supplemental-btn", K && H && "lmnt-modal_actions-mobile-stacked")
|
|
899
|
-
}, !
|
|
899
|
+
}, !W && b && /* @__PURE__ */ u.createElement("div", {
|
|
900
900
|
className: "lmnt-dialog__actions__supplemental"
|
|
901
901
|
}, T(b, () => {
|
|
902
902
|
const f = {};
|
|
903
903
|
return E === "footerSupplemental" && (f["data-mdc-dialog-button-default"] = !0), S === "footerSupplemental" && (f["data-mdc-dialog-initial-focus"] = !0), f;
|
|
904
|
-
})), !
|
|
904
|
+
})), !W && (t || _ || c) && /* @__PURE__ */ u.createElement("div", {
|
|
905
905
|
className: "lmnt-dialog__actions__right-align lmnt-modal_actions_button"
|
|
906
906
|
}, _ && T(_, {
|
|
907
907
|
variant: "text",
|
|
908
908
|
className: "lmnt-modal__button mdc-dialog__button",
|
|
909
909
|
"data-mdc-dialog-action": "close"
|
|
910
|
-
}), t && !c && T(t, ut), c && T(c, mt)),
|
|
910
|
+
}), t && !c && T(t, ut), c && T(c, mt)), W && /* @__PURE__ */ u.createElement("div", {
|
|
911
911
|
className: "lmnt-modal_actions_button lmnt-dialog__actions__directional"
|
|
912
912
|
}, /* @__PURE__ */ u.createElement("div", null, _t(a, "lmnt-modal__button")), /* @__PURE__ */ u.createElement("div", null, T(v, {
|
|
913
913
|
className: "lmnt-modal__button",
|
|
@@ -919,35 +919,36 @@ const wt = {
|
|
|
919
919
|
M.displayName = "Modal";
|
|
920
920
|
M.propTypes = wt;
|
|
921
921
|
M.defaultProps = Mt;
|
|
922
|
-
const kt = "
|
|
922
|
+
const kt = "_modal_18rd0_1", Ht = "_title_18rd0_6", Pt = "_titleWithoutCloseIcon_18rd0_18", $ = {
|
|
923
923
|
modal: kt,
|
|
924
|
-
title: Ht
|
|
925
|
-
|
|
924
|
+
title: Ht,
|
|
925
|
+
titleWithoutCloseIcon: Pt
|
|
926
|
+
}, Jt = ({
|
|
926
927
|
onClose: i,
|
|
927
928
|
title: e,
|
|
928
929
|
headerActions: t,
|
|
929
930
|
hideCloseIcon: n,
|
|
930
931
|
...o
|
|
931
932
|
}) => {
|
|
932
|
-
const a =
|
|
933
|
-
const d = /* @__PURE__ */ ft(
|
|
934
|
-
/* @__PURE__ */ O(it, { icon: "close", onClick: () => i?.(), type: "button" }),
|
|
935
|
-
/* @__PURE__ */ O(bt, { level: 6, children: e })
|
|
933
|
+
const a = Y(() => {
|
|
934
|
+
const d = /* @__PURE__ */ ft(V, { primaryAlign: "center", secondaryAlign: "center", children: [
|
|
935
|
+
!n && /* @__PURE__ */ O(it, { icon: "close", onClick: () => i?.(), type: "button" }),
|
|
936
|
+
/* @__PURE__ */ O(bt, { level: 6, className: n ? $.titleWithoutCloseIcon : "", children: e })
|
|
936
937
|
] }, "base-group");
|
|
937
|
-
return t ? Array.isArray(t) ? [d, /* @__PURE__ */ O(
|
|
938
|
-
}, [t, i, e]);
|
|
938
|
+
return t ? Array.isArray(t) ? [d, /* @__PURE__ */ O(V, { children: t }, "action-group")] : [d, t] : d;
|
|
939
|
+
}, [t, n, i, e]);
|
|
939
940
|
return /* @__PURE__ */ O(
|
|
940
941
|
M,
|
|
941
942
|
{
|
|
942
943
|
...o,
|
|
943
944
|
"data-testid": "modal",
|
|
944
|
-
className: `${
|
|
945
|
-
hideCloseIcon:
|
|
946
|
-
headerActions: /* @__PURE__ */ O(
|
|
945
|
+
className: `${$.modal} ${$.title} ${o.className ?? ""}`,
|
|
946
|
+
hideCloseIcon: !0,
|
|
947
|
+
headerActions: /* @__PURE__ */ O(V, { primaryAlign: "space-between", secondaryAlign: "center", children: a }, "header-group"),
|
|
947
948
|
preventClose: !0
|
|
948
949
|
}
|
|
949
950
|
);
|
|
950
951
|
};
|
|
951
952
|
export {
|
|
952
|
-
|
|
953
|
+
Jt as Modal
|
|
953
954
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hortiview/shared-components",
|
|
3
3
|
"description": "This is a shared component library. It should used in the HortiView platform and its modules.",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared",
|
|
7
7
|
"author": "Falk Menge <falk.menge.ext@bayer.com>",
|
|
@@ -28,90 +28,6 @@
|
|
|
28
28
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
"release": {
|
|
32
|
-
"plugins": [
|
|
33
|
-
[
|
|
34
|
-
"@semantic-release/commit-analyzer",
|
|
35
|
-
{
|
|
36
|
-
"releaseRules": [
|
|
37
|
-
{
|
|
38
|
-
"type": "docs",
|
|
39
|
-
"release": "patch"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"type": "refactor",
|
|
43
|
-
"release": "patch"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"type": "style",
|
|
47
|
-
"release": "patch"
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
[
|
|
53
|
-
"@semantic-release/release-notes-generator",
|
|
54
|
-
{
|
|
55
|
-
"presetConfig": {
|
|
56
|
-
"types": [
|
|
57
|
-
{
|
|
58
|
-
"type": "docs",
|
|
59
|
-
"section": "Documentation",
|
|
60
|
-
"hidden": false
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"type": "feat",
|
|
64
|
-
"section": "Features"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"type": "fix",
|
|
68
|
-
"section": "Bug Fixes"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"type": "refactor",
|
|
72
|
-
"section": "Code Refactoring",
|
|
73
|
-
"hidden": false
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"type": "style",
|
|
77
|
-
"section": "Styles",
|
|
78
|
-
"hidden": false
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
},
|
|
82
|
-
"writerOpts": {
|
|
83
|
-
"commitsSort": [
|
|
84
|
-
"subject",
|
|
85
|
-
"scope"
|
|
86
|
-
]
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
"semantic-release-ado",
|
|
91
|
-
[
|
|
92
|
-
"@semantic-release/npm",
|
|
93
|
-
{
|
|
94
|
-
"npmPublish": false
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
[
|
|
98
|
-
"@semantic-release/changelog",
|
|
99
|
-
{
|
|
100
|
-
"changelogFile": "CHANGELOG.md"
|
|
101
|
-
}
|
|
102
|
-
],
|
|
103
|
-
[
|
|
104
|
-
"@semantic-release/git",
|
|
105
|
-
{
|
|
106
|
-
"assets": [
|
|
107
|
-
"package.json",
|
|
108
|
-
"CHANGELOG.md"
|
|
109
|
-
],
|
|
110
|
-
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
111
|
-
}
|
|
112
|
-
]
|
|
113
|
-
]
|
|
114
|
-
},
|
|
115
31
|
"scripts": {
|
|
116
32
|
"start": "vite",
|
|
117
33
|
"build": "tsc --p ./tsconfig-build.json && vite build",
|
|
@@ -161,6 +77,7 @@
|
|
|
161
77
|
"@vitejs/plugin-react": "^4.3.4",
|
|
162
78
|
"@vitest/coverage-v8": "^3.0.5",
|
|
163
79
|
"@vitest/ui": "^3.0.5",
|
|
80
|
+
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
164
81
|
"eslint": "^8.57.0",
|
|
165
82
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
166
83
|
"eslint-plugin-react-refresh": "^0.4.5",
|