blue-react 10.0.0-rc3 → 10.0.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/dist/components/HeaderTitle.js +3 -3
- package/dist/components/Layout/LayoutHeader.js +25 -0
- package/dist/components/Layout/LayoutMain.js +17 -0
- package/dist/components/Layout.js +9 -13
- package/dist/components/LayoutHeader.js +25 -0
- package/dist/components/LayoutMain.js +17 -0
- package/dist/components/SimpleLayout.js +24 -0
- package/dist/types/components/HeaderTitle.d.ts +2 -2
- package/dist/types/components/Layout/LayoutHeader.d.ts +4 -0
- package/dist/types/components/Layout/LayoutMain.d.ts +5 -0
- package/dist/types/components/Layout.d.ts +3 -0
- package/dist/types/components/LayoutHeader.d.ts +4 -0
- package/dist/types/components/LayoutMain.d.ts +5 -0
- package/dist/types/components/Page.d.ts +2 -1
- package/dist/types/components/SimpleLayout.d.ts +11 -0
- package/index.d.ts +3 -0
- package/index.js +2 -0
- package/package.json +3 -3
|
@@ -17,7 +17,7 @@ export default function HeaderTitle(_ref) {
|
|
|
17
17
|
to = _ref.to,
|
|
18
18
|
_ref$href = _ref.href,
|
|
19
19
|
href = _ref$href === void 0 ? "#" : _ref$href,
|
|
20
|
-
|
|
20
|
+
breadcrumb = _ref.breadcrumb;
|
|
21
21
|
var uniqueId = "HeaderTitle-" + guid();
|
|
22
22
|
var setDocumentTitle = function setDocumentTitle() {
|
|
23
23
|
if (window.blueHashRouterRef && window.blueHashRouterRef.props && window.blueHashRouterRef.props.disableTitleSet === false) {
|
|
@@ -54,8 +54,8 @@ export default function HeaderTitle(_ref) {
|
|
|
54
54
|
}, /*#__PURE__*/createElement(elementType, {
|
|
55
55
|
to: to,
|
|
56
56
|
href: href
|
|
57
|
-
}, appTitle)),
|
|
58
|
-
var active = index ===
|
|
57
|
+
}, appTitle)), breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.map(function (item, index) {
|
|
58
|
+
var active = index === breadcrumb.length - 1;
|
|
59
59
|
return /*#__PURE__*/React.createElement("li", {
|
|
60
60
|
key: index,
|
|
61
61
|
className: "breadcrumb-item ".concat(active ? "active" : ""),
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["children", "className"];
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
11
|
+
import React from "react";
|
|
12
|
+
export default function LayoutHeader(_ref) {
|
|
13
|
+
var children = _ref.children,
|
|
14
|
+
className = _ref.className,
|
|
15
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
+
return /*#__PURE__*/React.createElement("header", _extends({
|
|
17
|
+
className: "d-flex justify-content-between position-relative h-100 ".concat(className),
|
|
18
|
+
style: _objectSpread({
|
|
19
|
+
color: "var(--blue-sidebar-color)",
|
|
20
|
+
background: "var(--blue-sidebar-bg)",
|
|
21
|
+
zIndex: "var(--blue-layout-header-z-index, 4)",
|
|
22
|
+
"--blue-menu-item-dropdown-bg": "var(--blue-sidebar-bg)"
|
|
23
|
+
}, rest.style)
|
|
24
|
+
}, rest), children);
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var _excluded = ["children", "className", "noPageBorder"];
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
5
|
+
import React from "react";
|
|
6
|
+
export default function LayoutMain(_ref) {
|
|
7
|
+
var children = _ref.children,
|
|
8
|
+
className = _ref.className,
|
|
9
|
+
_ref$noPageBorder = _ref.noPageBorder,
|
|
10
|
+
noPageBorder = _ref$noPageBorder === void 0 ? false : _ref$noPageBorder,
|
|
11
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
13
|
+
className: "w-100 h-100 p-1 pt-0 ".concat(className)
|
|
14
|
+
}, rest), /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: "\"w-100 h-100 overflow-auto rounded-3 ".concat(noPageBorder ? "" : "border ", "bg-body shadow-sm\"")
|
|
16
|
+
}, children));
|
|
17
|
+
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "blue-web/dist/js/side-layout";
|
|
3
|
+
import LayoutHeader from "./Layout/LayoutHeader";
|
|
4
|
+
import LayoutMain from "./Layout/LayoutMain";
|
|
3
5
|
var SideLayout = "side-layout";
|
|
6
|
+
/**
|
|
7
|
+
* A layout with header, side and main content area. Side is collapsible.
|
|
8
|
+
*/
|
|
4
9
|
export default function Layout(_ref) {
|
|
5
10
|
var children = _ref.children,
|
|
6
11
|
header = _ref.header,
|
|
@@ -67,14 +72,7 @@ export default function Layout(_ref) {
|
|
|
67
72
|
style: {
|
|
68
73
|
"--bs-bg-opacity": 0.5
|
|
69
74
|
}
|
|
70
|
-
}), /*#__PURE__*/React.createElement(
|
|
71
|
-
className: "d-flex justify-content-between position-relative h-100",
|
|
72
|
-
style: {
|
|
73
|
-
color: "var(--blue-sidebar-color)",
|
|
74
|
-
background: "var(--blue-sidebar-bg)",
|
|
75
|
-
zIndex: "var(--blue-layout-header-z-index, 4)",
|
|
76
|
-
"--blue-menu-item-dropdown-bg": "var(--blue-sidebar-bg)"
|
|
77
|
-
},
|
|
75
|
+
}), /*#__PURE__*/React.createElement(LayoutHeader, {
|
|
78
76
|
slot: "header"
|
|
79
77
|
}, header), /*#__PURE__*/React.createElement("div", {
|
|
80
78
|
slot: "side",
|
|
@@ -83,9 +81,7 @@ export default function Layout(_ref) {
|
|
|
83
81
|
color: "var(--blue-sidebar-color)",
|
|
84
82
|
background: "var(--blue-sidebar-bg)"
|
|
85
83
|
}
|
|
86
|
-
}, side), /*#__PURE__*/React.createElement(
|
|
87
|
-
|
|
88
|
-
},
|
|
89
|
-
className: "\"w-100 h-100 overflow-auto rounded-3 ".concat(noPageBorder ? "" : "border ", "bg-body shadow-sm\"")
|
|
90
|
-
}, children))));
|
|
84
|
+
}, side), /*#__PURE__*/React.createElement(LayoutMain, {
|
|
85
|
+
noPageBorder: noPageBorder
|
|
86
|
+
}, children)));
|
|
91
87
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["children", "className"];
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
11
|
+
import React from "react";
|
|
12
|
+
export default function LayoutHeader(_ref) {
|
|
13
|
+
var children = _ref.children,
|
|
14
|
+
className = _ref.className,
|
|
15
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
+
return /*#__PURE__*/React.createElement("header", _extends({
|
|
17
|
+
className: "d-flex justify-content-between position-relative h-100 ".concat(className),
|
|
18
|
+
style: _objectSpread({
|
|
19
|
+
color: "var(--blue-sidebar-color)",
|
|
20
|
+
background: "var(--blue-sidebar-bg)",
|
|
21
|
+
zIndex: "var(--blue-layout-header-z-index, 4)",
|
|
22
|
+
"--blue-menu-item-dropdown-bg": "var(--blue-sidebar-bg)"
|
|
23
|
+
}, rest.style)
|
|
24
|
+
}, rest), children);
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var _excluded = ["children", "className", "noPageBorder"];
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
5
|
+
import React from "react";
|
|
6
|
+
export default function LayoutMain(_ref) {
|
|
7
|
+
var children = _ref.children,
|
|
8
|
+
className = _ref.className,
|
|
9
|
+
_ref$noPageBorder = _ref.noPageBorder,
|
|
10
|
+
noPageBorder = _ref$noPageBorder === void 0 ? false : _ref$noPageBorder,
|
|
11
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
13
|
+
className: "w-100 h-100 p-1 pt-0 ".concat(className)
|
|
14
|
+
}, rest), /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: "\"w-100 h-100 overflow-auto rounded-3 ".concat(noPageBorder ? "" : "border ", "bg-body shadow-sm\"")
|
|
16
|
+
}, children));
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "blue-web/dist/js/side-layout";
|
|
3
|
+
import LayoutHeader from "./Layout/LayoutHeader";
|
|
4
|
+
import LayoutMain from "./Layout/LayoutMain";
|
|
5
|
+
/**
|
|
6
|
+
* A simple layout with header and main content area.
|
|
7
|
+
*/
|
|
8
|
+
export default function SimpleLayout(_ref) {
|
|
9
|
+
var children = _ref.children,
|
|
10
|
+
header = _ref.header,
|
|
11
|
+
_ref$noPageBorder = _ref.noPageBorder,
|
|
12
|
+
noPageBorder = _ref$noPageBorder === void 0 ? false : _ref$noPageBorder;
|
|
13
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14
|
+
className: "vh-100 d-grid",
|
|
15
|
+
style: {
|
|
16
|
+
gridTemplateRows: "var(--blue-menu-item-height) auto"
|
|
17
|
+
}
|
|
18
|
+
}, /*#__PURE__*/React.createElement(LayoutHeader, {
|
|
19
|
+
slot: "header"
|
|
20
|
+
}, header), /*#__PURE__*/React.createElement(LayoutMain, {
|
|
21
|
+
noPageBorder: noPageBorder,
|
|
22
|
+
className: "overflow-hidden"
|
|
23
|
+
}, children));
|
|
24
|
+
}
|
|
@@ -31,10 +31,10 @@ export interface HeaderTitleProps {
|
|
|
31
31
|
/**
|
|
32
32
|
* Breadcrumb items to be shown.
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
breadcrumb?: ReactNode[];
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* The title area at the header bar.
|
|
38
38
|
* Depending on its content, the document's title will be set aswell (what will be shown in the browser title bar).
|
|
39
39
|
*/
|
|
40
|
-
export default function HeaderTitle({ logo, logoAlt, appTitle, children, className, sidebar, elementType, to, href,
|
|
40
|
+
export default function HeaderTitle({ logo, logoAlt, appTitle, children, className, sidebar, elementType, to, href, breadcrumb }: HeaderTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface LayoutMainProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
noPageBorder?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export default function LayoutMain({ children, className, noPageBorder, ...rest }: LayoutMainProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,4 +6,7 @@ export interface LayoutProps {
|
|
|
6
6
|
side?: React.ReactNode;
|
|
7
7
|
noPageBorder?: boolean;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* A layout with header, side and main content area. Side is collapsible.
|
|
11
|
+
*/
|
|
9
12
|
export default function Layout({ children, header, side, noPageBorder }: LayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface LayoutMainProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
noPageBorder?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export default function LayoutMain({ children, className, noPageBorder, ...rest }: LayoutMainProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "blue-web/dist/js/side-layout";
|
|
3
|
+
export interface SimpleLayoutProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
header?: React.ReactNode;
|
|
6
|
+
noPageBorder?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A simple layout with header and main content area.
|
|
10
|
+
*/
|
|
11
|
+
export default function SimpleLayout({ children, header, noPageBorder }: SimpleLayoutProps): import("react/jsx-runtime").JSX.Element;
|
package/index.d.ts
CHANGED
|
@@ -61,6 +61,9 @@ export { SidebarMenuProps } from "./dist/types/components/SidebarMenu"
|
|
|
61
61
|
export { default as SidebarMenuItem } from "./dist/types/components/SidebarMenuItem"
|
|
62
62
|
export { SidebarMenuItemProps } from "./dist/types/components/SidebarMenuItem"
|
|
63
63
|
|
|
64
|
+
export { default as SimpleLayout } from "./dist/types/components/SimpleLayout"
|
|
65
|
+
export { SimpleLayoutProps } from "./dist/types/components/SimpleLayout"
|
|
66
|
+
|
|
64
67
|
export { default as SlimContainer } from "./dist/types/components/SlimContainer"
|
|
65
68
|
export { SlimContainerProps } from "./dist/types/components/SlimContainer"
|
|
66
69
|
|
package/index.js
CHANGED
|
@@ -18,6 +18,7 @@ import Page from "./dist/components/Page.js"
|
|
|
18
18
|
import Search from "./dist/components/Search.js"
|
|
19
19
|
import SidebarMenu from "./dist/components/SidebarMenu.js"
|
|
20
20
|
import SidebarMenuItem from "./dist/components/SidebarMenuItem.js"
|
|
21
|
+
import SimpleLayout from "./dist/components/SimpleLayout.js"
|
|
21
22
|
import SlimContainer from "./dist/components/SlimContainer.js"
|
|
22
23
|
import Status from "./dist/components/Status.js"
|
|
23
24
|
import { StatusProvider, useStatus } from "./dist/components/StatusProvider.js"
|
|
@@ -46,6 +47,7 @@ export {
|
|
|
46
47
|
Search,
|
|
47
48
|
SidebarMenu,
|
|
48
49
|
SidebarMenuItem,
|
|
50
|
+
SimpleLayout,
|
|
49
51
|
SlimContainer,
|
|
50
52
|
Status,
|
|
51
53
|
StatusProvider,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blue-react",
|
|
3
|
-
"version": "10.0.0
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "Blue React Components",
|
|
5
5
|
"license": "LGPL-3.0-or-later",
|
|
6
6
|
"type": "module",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"build-types": "tsc -p tsconfig.app.json --declaration --emitDeclarationOnly --declarationDir ./dist/types --noEmit false --composite false",
|
|
24
24
|
"build": "babel ./src/components --out-dir ./dist/components --extensions \".tsx,.js,.ts\"",
|
|
25
25
|
"build-release": "npm run build-types && npm run build && npm run docgen",
|
|
26
|
-
"docgen": "react-docgen ./src/components/ -o ./src/docs/data/docs.json --extension tsx && node followUpDocs && npm run license-report",
|
|
26
|
+
"docgen": "react-docgen ./src/components/ --ignore Layout -o ./src/docs/data/docs.json --extension tsx && node followUpDocs && npm run license-report",
|
|
27
27
|
"test": "react-scripts test",
|
|
28
28
|
"eject": "react-scripts eject",
|
|
29
29
|
"predeploy": "npm run build-docs",
|
|
30
30
|
"deploy": "gh-pages --dist deployment --dest v10",
|
|
31
31
|
"prepublishOnly": "npm i && npm run build-release",
|
|
32
|
-
"release": "npm publish
|
|
32
|
+
"release": "npm publish && npm run deploy",
|
|
33
33
|
"prettier": "npx prettier --write .",
|
|
34
34
|
"license-report": "npx license-report --prod --output=json > ./src/docs/data/license-report.json"
|
|
35
35
|
},
|