@webiny/app-admin-ui 6.3.0-beta.2 → 6.3.0-beta.4
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/Navigation/Navigation.js
CHANGED
|
@@ -19,15 +19,16 @@ export const Navigation = NavigationRenderer.createDecorator(() => {
|
|
|
19
19
|
element: logo.squareLogo,
|
|
20
20
|
label: "Webiny"
|
|
21
21
|
}));
|
|
22
|
+
const hasFooterMenus = menus.some(m => (m.tags || []).includes("footer"));
|
|
22
23
|
return /*#__PURE__*/React.createElement(Sidebar, {
|
|
23
24
|
title: titleElement,
|
|
24
25
|
icon: icon,
|
|
25
|
-
footer: /*#__PURE__*/React.createElement(SidebarMenuItems, {
|
|
26
|
+
footer: hasFooterMenus ? /*#__PURE__*/React.createElement(SidebarMenuItems, {
|
|
26
27
|
menus: menus,
|
|
27
28
|
where: {
|
|
28
29
|
tags: ["footer"]
|
|
29
30
|
}
|
|
30
|
-
})
|
|
31
|
+
}) : undefined
|
|
31
32
|
}, /*#__PURE__*/React.createElement(SidebarMenuItems, {
|
|
32
33
|
menus: menus
|
|
33
34
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","NavigationRenderer","useAdminConfig","Sidebar","SidebarMenuItems","SimpleLink","Navigation","createDecorator","menus","title","logo","titleElement","createElement","to","icon","Icon","element","squareLogo","label","footer","where","
|
|
1
|
+
{"version":3,"names":["React","NavigationRenderer","useAdminConfig","Sidebar","SidebarMenuItems","SimpleLink","Navigation","createDecorator","menus","title","logo","titleElement","createElement","to","icon","Icon","element","squareLogo","label","hasFooterMenus","some","m","tags","includes","footer","where","undefined"],"sources":["Navigation.tsx"],"sourcesContent":["import React from \"react\";\nimport { NavigationRenderer, useAdminConfig } from \"@webiny/app-admin\";\nimport { Sidebar } from \"@webiny/admin-ui\";\nimport { SidebarMenuItems } from \"./SidebarMenuItems.js\";\nimport { SimpleLink } from \"@webiny/app-admin\";\n\nexport const Navigation = NavigationRenderer.createDecorator(() => {\n return function Navigation() {\n const { menus, title, logo } = useAdminConfig();\n\n const titleElement = <SimpleLink to={\"/\"}>{title}</SimpleLink>;\n const icon = (\n <SimpleLink to={\"/\"}>\n <Sidebar.Icon element={logo.squareLogo} label={\"Webiny\"} />\n </SimpleLink>\n );\n\n const hasFooterMenus = menus.some(m => (m.tags || []).includes(\"footer\"));\n\n return (\n <Sidebar\n title={titleElement}\n icon={icon}\n footer={\n hasFooterMenus ? (\n <SidebarMenuItems menus={menus} where={{ tags: [\"footer\"] }} />\n ) : undefined\n }\n >\n <SidebarMenuItems menus={menus} />\n </Sidebar>\n );\n };\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,kBAAkB,EAAEC,cAAc,QAAQ,mBAAmB;AACtE,SAASC,OAAO,QAAQ,kBAAkB;AAC1C,SAASC,gBAAgB;AACzB,SAASC,UAAU,QAAQ,mBAAmB;AAE9C,OAAO,MAAMC,UAAU,GAAGL,kBAAkB,CAACM,eAAe,CAAC,MAAM;EAC/D,OAAO,SAASD,UAAUA,CAAA,EAAG;IACzB,MAAM;MAAEE,KAAK;MAAEC,KAAK;MAAEC;IAAK,CAAC,GAAGR,cAAc,CAAC,CAAC;IAE/C,MAAMS,YAAY,gBAAGX,KAAA,CAAAY,aAAA,CAACP,UAAU;MAACQ,EAAE,EAAE;IAAI,GAAEJ,KAAkB,CAAC;IAC9D,MAAMK,IAAI,gBACNd,KAAA,CAAAY,aAAA,CAACP,UAAU;MAACQ,EAAE,EAAE;IAAI,gBAChBb,KAAA,CAAAY,aAAA,CAACT,OAAO,CAACY,IAAI;MAACC,OAAO,EAAEN,IAAI,CAACO,UAAW;MAACC,KAAK,EAAE;IAAS,CAAE,CAClD,CACf;IAED,MAAMC,cAAc,GAAGX,KAAK,CAACY,IAAI,CAACC,CAAC,IAAI,CAACA,CAAC,CAACC,IAAI,IAAI,EAAE,EAAEC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAEzE,oBACIvB,KAAA,CAAAY,aAAA,CAACT,OAAO;MACJM,KAAK,EAAEE,YAAa;MACpBG,IAAI,EAAEA,IAAK;MACXU,MAAM,EACFL,cAAc,gBACVnB,KAAA,CAAAY,aAAA,CAACR,gBAAgB;QAACI,KAAK,EAAEA,KAAM;QAACiB,KAAK,EAAE;UAAEH,IAAI,EAAE,CAAC,QAAQ;QAAE;MAAE,CAAE,CAAC,GAC/DI;IACP,gBAED1B,KAAA,CAAAY,aAAA,CAACR,gBAAgB;MAACI,KAAK,EAAEA;IAAM,CAAE,CAC5B,CAAC;EAElB,CAAC;AACL,CAAC,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-admin-ui",
|
|
3
|
-
"version": "6.3.0-beta.
|
|
3
|
+
"version": "6.3.0-beta.4",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"
|
|
5
|
+
"exports": {
|
|
6
|
+
".": "./index.js",
|
|
7
|
+
"./*": "./*"
|
|
8
|
+
},
|
|
6
9
|
"repository": {
|
|
7
10
|
"type": "git",
|
|
8
11
|
"url": "https://github.com/webiny/webiny-js.git"
|
|
@@ -11,10 +14,10 @@
|
|
|
11
14
|
"license": "MIT",
|
|
12
15
|
"dependencies": {
|
|
13
16
|
"@types/react": "18.3.28",
|
|
14
|
-
"@webiny/admin-ui": "6.3.0-beta.
|
|
15
|
-
"@webiny/app": "6.3.0-beta.
|
|
16
|
-
"@webiny/app-admin": "6.3.0-beta.
|
|
17
|
-
"@webiny/icons": "6.3.0-beta.
|
|
17
|
+
"@webiny/admin-ui": "6.3.0-beta.4",
|
|
18
|
+
"@webiny/app": "6.3.0-beta.4",
|
|
19
|
+
"@webiny/app-admin": "6.3.0-beta.4",
|
|
20
|
+
"@webiny/icons": "6.3.0-beta.4",
|
|
18
21
|
"react": "18.3.1",
|
|
19
22
|
"react-dom": "18.3.1",
|
|
20
23
|
"react-helmet": "6.1.0"
|
|
@@ -22,7 +25,7 @@
|
|
|
22
25
|
"devDependencies": {
|
|
23
26
|
"@emotion/babel-plugin": "11.13.5",
|
|
24
27
|
"@types/react-helmet": "6.1.11",
|
|
25
|
-
"@webiny/build-tools": "6.3.0-beta.
|
|
28
|
+
"@webiny/build-tools": "6.3.0-beta.4",
|
|
26
29
|
"rimraf": "6.1.3",
|
|
27
30
|
"typescript": "6.0.3"
|
|
28
31
|
},
|
|
@@ -35,5 +38,5 @@
|
|
|
35
38
|
"removeViewBox": false
|
|
36
39
|
}
|
|
37
40
|
},
|
|
38
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "7cefe15431dbd65504e1f58147dc9e55bcbfa693"
|
|
39
42
|
}
|