@gen3/frontend 0.11.23 → 0.11.24
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/cjs/index.js +7 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/features/Navigation/NavPageLayout.d.ts +4 -2
- package/dist/dts/features/Navigation/NavPageLayout.d.ts.map +1 -1
- package/dist/dts/features/Navigation/NavPageLayout.js +2 -2
- package/dist/dts/features/Navigation/NavPageLayout.js.map +1 -1
- package/dist/dts/pages/admin/analysis/data.d.ts +2 -0
- package/dist/dts/pages/admin/analysis/data.d.ts.map +1 -1
- package/dist/dts/pages/admin/authz/data.d.ts +2 -0
- package/dist/dts/pages/admin/authz/data.d.ts.map +1 -1
- package/dist/esm/index.js +7 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
1
|
+
import { ComponentType, PropsWithChildren } from 'react';
|
|
2
2
|
import { HeaderMetadata, HeaderProps, MainContentProps } from './types';
|
|
3
3
|
import { FooterProps } from './Footer/types';
|
|
4
4
|
export interface NavPageLayoutProps {
|
|
@@ -6,7 +6,9 @@ export interface NavPageLayoutProps {
|
|
|
6
6
|
footerProps: Readonly<FooterProps>;
|
|
7
7
|
mainProps?: Partial<MainContentProps>;
|
|
8
8
|
headerMetadata: HeaderMetadata;
|
|
9
|
+
CustomHeaderComponent?: ComponentType<HeaderProps>;
|
|
10
|
+
CustomFooterComponent?: ComponentType<FooterProps>;
|
|
9
11
|
}
|
|
10
|
-
declare const NavPageLayout: ({ headerProps, footerProps, mainProps, headerMetadata, children, }: PropsWithChildren<NavPageLayoutProps>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare const NavPageLayout: ({ headerProps, footerProps, mainProps, headerMetadata, CustomHeaderComponent, CustomFooterComponent, children, }: PropsWithChildren<NavPageLayoutProps>) => import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
export default NavPageLayout;
|
|
12
14
|
//# sourceMappingURL=NavPageLayout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavPageLayout.d.ts","sourceRoot":"","sources":["../../../../src/features/Navigation/NavPageLayout.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NavPageLayout.d.ts","sourceRoot":"","sources":["../../../../src/features/Navigation/NavPageLayout.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIhE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACnC,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACtC,cAAc,EAAE,cAAc,CAAC;IAC/B,qBAAqB,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACnD,qBAAqB,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CACpD;AAED,QAAA,MAAM,aAAa,GAAI,kHAQpB,iBAAiB,CAAC,kBAAkB,CAAC,4CA4CvC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -15,11 +15,11 @@ import Footer from './Footer/Footer';
|
|
|
15
15
|
import Header from './Header';
|
|
16
16
|
import LeftSidePanel from './Vertical/LeftSidePanel';
|
|
17
17
|
var NavPageLayout = function (_a) {
|
|
18
|
-
var headerProps = _a.headerProps, footerProps = _a.footerProps, mainProps = _a.mainProps, headerMetadata = _a.headerMetadata, children = _a.children;
|
|
18
|
+
var headerProps = _a.headerProps, footerProps = _a.footerProps, mainProps = _a.mainProps, headerMetadata = _a.headerMetadata, CustomHeaderComponent = _a.CustomHeaderComponent, CustomFooterComponent = _a.CustomFooterComponent, children = _a.children;
|
|
19
19
|
var mainContentStyle = (mainProps === null || mainProps === void 0 ? void 0 : mainProps.fixed)
|
|
20
20
|
? 'flex-1 flex overflow-hidden relative'
|
|
21
21
|
: 'flex grow relative';
|
|
22
|
-
return (_jsxs("div", { className: "flex flex-col justify-between h-screen", children: [_jsxs(Head, { children: [_jsx("title", { children: headerMetadata.title }), _jsx("meta", { property: "og:title", content: headerMetadata.content }, headerMetadata.key)] }), _jsxs(Header, __assign({}, headerProps, { children: [_jsx("title", { children: headerMetadata.title }), _jsx("meta", { property: "og:title", content: headerMetadata.content }, headerMetadata.key)] })), headerProps.type === 'vertical' ? (_jsxs("div", { className: "flex grow", children: [_jsx(LeftSidePanel, { items: headerProps.navigation.items, classNames: headerProps.navigation.classNames }), _jsx("main", { className: mainContentStyle, children: children })] })) : (_jsx("main", { className: mainContentStyle, children: children })), _jsx(Footer, __assign({}, footerProps))] }));
|
|
22
|
+
return (_jsxs("div", { className: "flex flex-col justify-between h-screen", children: [_jsxs(Head, { children: [_jsx("title", { children: headerMetadata.title }), _jsx("meta", { property: "og:title", content: headerMetadata.content }, headerMetadata.key)] }), CustomHeaderComponent ? (_jsx(CustomHeaderComponent, __assign({}, headerProps))) : (_jsxs(Header, __assign({}, headerProps, { children: [_jsx("title", { children: headerMetadata.title }), _jsx("meta", { property: "og:title", content: headerMetadata.content }, headerMetadata.key)] }))), headerProps.type === 'vertical' ? (_jsxs("div", { className: "flex grow", children: [_jsx(LeftSidePanel, { items: headerProps.navigation.items, classNames: headerProps.navigation.classNames }), _jsx("main", { className: mainContentStyle, children: children })] })) : (_jsx("main", { className: mainContentStyle, children: children })), CustomFooterComponent ? (_jsx(CustomFooterComponent, __assign({}, footerProps))) : (_jsx(Footer, __assign({}, footerProps)))] }));
|
|
23
23
|
};
|
|
24
24
|
export default NavPageLayout;
|
|
25
25
|
//# sourceMappingURL=NavPageLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavPageLayout.js","sourceRoot":"","sources":["../../../../src/features/Navigation/NavPageLayout.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,OAAO,aAAa,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"NavPageLayout.js","sourceRoot":"","sources":["../../../../src/features/Navigation/NavPageLayout.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,OAAO,aAAa,MAAM,0BAA0B,CAAC;AAYrD,IAAM,aAAa,GAAG,UAAC,EAQiB;QAPtC,WAAW,iBAAA,EACX,WAAW,iBAAA,EACX,SAAS,eAAA,EACT,cAAc,oBAAA,EACd,qBAAqB,2BAAA,EACrB,qBAAqB,2BAAA,EACrB,QAAQ,cAAA;IAER,IAAM,gBAAgB,GAAG,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK;QACvC,CAAC,CAAC,sCAAsC;QACxC,CAAC,CAAC,oBAAoB,CAAC;IACzB,OAAO,CACL,eAAK,SAAS,EAAC,wCAAwC,aACrD,MAAC,IAAI,eACH,0BAAQ,cAAc,CAAC,KAAK,GAAS,EACrC,eACE,QAAQ,EAAC,UAAU,EACnB,OAAO,EAAE,cAAc,CAAC,OAAO,IAC1B,cAAc,CAAC,GAAG,CACvB,IACG,EACN,qBAAqB,CAAC,CAAC,CAAC,CACvB,KAAC,qBAAqB,eAAK,WAAW,EAAI,CAC3C,CAAC,CAAC,CAAC,CACF,MAAC,MAAM,eAAK,WAAW,eACrB,0BAAQ,cAAc,CAAC,KAAK,GAAS,EACrC,eACE,QAAQ,EAAC,UAAU,EACnB,OAAO,EAAE,cAAc,CAAC,OAAO,IAC1B,cAAc,CAAC,GAAG,CACvB,KACK,CACV,EACA,WAAW,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,CACjC,eAAK,SAAS,EAAC,WAAW,aACxB,KAAC,aAAa,IACZ,KAAK,EAAE,WAAW,CAAC,UAAU,CAAC,KAAK,EACnC,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC,UAAU,GAC7C,EACF,eAAM,SAAS,EAAE,gBAAgB,YAAG,QAAQ,GAAQ,IAChD,CACP,CAAC,CAAC,CAAC,CACF,eAAM,SAAS,EAAE,gBAAgB,YAAG,QAAQ,GAAQ,CACrD,EACA,qBAAqB,CAAC,CAAC,CAAC,CACvB,KAAC,qBAAqB,eAAK,WAAW,EAAI,CAC3C,CAAC,CAAC,CAAC,CACF,KAAC,MAAM,eAAK,WAAW,EAAI,CAC5B,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -4,6 +4,8 @@ export declare const AnalysisEditorPageGetServerSideProps: () => Promise<{
|
|
|
4
4
|
footerProps: Readonly<import("../../..").FooterProps>;
|
|
5
5
|
mainProps?: Partial<import("../../../features/Navigation/types").MainContentProps>;
|
|
6
6
|
headerMetadata: import("../../..").HeaderMetadata;
|
|
7
|
+
CustomHeaderComponent?: import("react").ComponentType<import("../../..").HeaderProps>;
|
|
8
|
+
CustomFooterComponent?: import("react").ComponentType<import("../../..").FooterProps>;
|
|
7
9
|
};
|
|
8
10
|
}>;
|
|
9
11
|
//# sourceMappingURL=data.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../../src/pages/admin/analysis/data.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oCAAoC
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../../src/pages/admin/analysis/data.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oCAAoC;;;;;;;;;EAmBhD,CAAC"}
|
|
@@ -5,6 +5,8 @@ export declare const AdminAuthZPageGetServerSideProps: () => Promise<{
|
|
|
5
5
|
footerProps: Readonly<import("../../..").FooterProps>;
|
|
6
6
|
mainProps?: Partial<import("../../../features/Navigation/types").MainContentProps>;
|
|
7
7
|
headerMetadata: import("../../..").HeaderMetadata;
|
|
8
|
+
CustomHeaderComponent?: import("react").ComponentType<import("../../..").HeaderProps>;
|
|
9
|
+
CustomFooterComponent?: import("react").ComponentType<import("../../..").FooterProps>;
|
|
8
10
|
};
|
|
9
11
|
}>;
|
|
10
12
|
//# sourceMappingURL=data.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../../src/pages/admin/authz/data.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gCAAgC
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../../src/pages/admin/authz/data.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gCAAgC;;;;;;;;;;EAqB5C,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -6586,7 +6586,7 @@ const LeftSidePanel = ({ items = [], classNames = {} })=>{
|
|
|
6586
6586
|
});
|
|
6587
6587
|
};
|
|
6588
6588
|
|
|
6589
|
-
const NavPageLayout = ({ headerProps, footerProps, mainProps, headerMetadata, children })=>{
|
|
6589
|
+
const NavPageLayout = ({ headerProps, footerProps, mainProps, headerMetadata, CustomHeaderComponent, CustomFooterComponent, children })=>{
|
|
6590
6590
|
const mainContentStyle = mainProps?.fixed ? 'flex-1 flex overflow-hidden relative' : 'flex grow relative';
|
|
6591
6591
|
return /*#__PURE__*/ jsxs("div", {
|
|
6592
6592
|
className: "flex flex-col justify-between h-screen",
|
|
@@ -6602,7 +6602,9 @@ const NavPageLayout = ({ headerProps, footerProps, mainProps, headerMetadata, ch
|
|
|
6602
6602
|
}, headerMetadata.key)
|
|
6603
6603
|
]
|
|
6604
6604
|
}),
|
|
6605
|
-
/*#__PURE__*/
|
|
6605
|
+
CustomHeaderComponent ? /*#__PURE__*/ jsx(CustomHeaderComponent, {
|
|
6606
|
+
...headerProps
|
|
6607
|
+
}) : /*#__PURE__*/ jsxs(Header$1, {
|
|
6606
6608
|
...headerProps,
|
|
6607
6609
|
children: [
|
|
6608
6610
|
/*#__PURE__*/ jsx("title", {
|
|
@@ -6630,7 +6632,9 @@ const NavPageLayout = ({ headerProps, footerProps, mainProps, headerMetadata, ch
|
|
|
6630
6632
|
className: mainContentStyle,
|
|
6631
6633
|
children: children
|
|
6632
6634
|
}),
|
|
6633
|
-
/*#__PURE__*/ jsx(
|
|
6635
|
+
CustomFooterComponent ? /*#__PURE__*/ jsx(CustomFooterComponent, {
|
|
6636
|
+
...footerProps
|
|
6637
|
+
}) : /*#__PURE__*/ jsx(Footer, {
|
|
6634
6638
|
...footerProps
|
|
6635
6639
|
})
|
|
6636
6640
|
]
|