@blaze-cms/plugin-admin-core-ui 0.125.0-alpha.1 → 0.125.0-auth-updates.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/CHANGELOG.md +1 -1
- package/lib/components/Header/Header.js +2 -11
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/components/Language/Language.js +0 -6
- package/lib/components/Header/components/Language/Language.js.map +1 -1
- package/lib/components/Header/components/Language/index.js +0 -4
- package/lib/components/Header/components/Language/index.js.map +1 -1
- package/lib/components/Header/components/Logo/Logo.js +2 -11
- package/lib/components/Header/components/Logo/Logo.js.map +1 -1
- package/lib/components/Header/components/Logo/index.js +0 -4
- package/lib/components/Header/components/Logo/index.js.map +1 -1
- package/lib/components/Header/components/Menu/Menu.js +1 -8
- package/lib/components/Header/components/Menu/Menu.js.map +1 -1
- package/lib/components/Header/components/Menu/index.js +0 -4
- package/lib/components/Header/components/Menu/index.js.map +1 -1
- package/lib/components/Header/components/index.js +0 -5
- package/lib/components/Header/components/index.js.map +1 -1
- package/lib/components/Header/index.js +0 -4
- package/lib/components/Header/index.js.map +1 -1
- package/lib/components/Layout/Layout.js +6 -31
- package/lib/components/Layout/Layout.js.map +1 -1
- package/lib/components/Layout/components/Grid/Grid.js +10 -51
- package/lib/components/Layout/components/Grid/Grid.js.map +1 -1
- package/lib/components/Layout/components/Grid/index.js +0 -4
- package/lib/components/Layout/components/Grid/index.js.map +1 -1
- package/lib/components/Layout/components/index.js +0 -3
- package/lib/components/Layout/components/index.js.map +1 -1
- package/lib/components/SideBar/SideBar.js +5 -26
- package/lib/components/SideBar/SideBar.js.map +1 -1
- package/lib/components/SideBar/components/SideBlock.js +7 -31
- package/lib/components/SideBar/components/SideBlock.js.map +1 -1
- package/lib/components/SideBar/components/SideBlockItem.js +1 -9
- package/lib/components/SideBar/components/SideBlockItem.js.map +1 -1
- package/lib/components/SideBar/components/index.js +0 -3
- package/lib/components/SideBar/components/index.js.map +1 -1
- package/lib/components/SideBar/index.js +0 -4
- package/lib/components/SideBar/index.js.map +1 -1
- package/lib/components/index.js +0 -3
- package/lib/components/index.js.map +1 -1
- package/lib/constants.js +0 -1
- package/lib/constants.js.map +1 -1
- package/lib/containers/Home/Home.js +0 -5
- package/lib/containers/Home/Home.js.map +1 -1
- package/lib/containers/index.js +0 -4
- package/lib/containers/index.js.map +1 -1
- package/lib/index.js +1 -25
- package/lib/index.js.map +1 -1
- package/lib/utils/get-menu-items-resolver.js +0 -10
- package/lib/utils/get-menu-items-resolver.js.map +1 -1
- package/lib/utils/menu-handler.js +5 -28
- package/lib/utils/menu-handler.js.map +1 -1
- package/lib-es/components/Header/Header.js +0 -2
- package/lib-es/components/Header/Header.js.map +1 -1
- package/lib-es/components/Header/components/Language/Language.js +0 -2
- package/lib-es/components/Header/components/Language/Language.js.map +1 -1
- package/lib-es/components/Header/components/Language/index.js.map +1 -1
- package/lib-es/components/Header/components/Logo/Logo.js +4 -7
- package/lib-es/components/Header/components/Logo/Logo.js.map +1 -1
- package/lib-es/components/Header/components/Logo/index.js.map +1 -1
- package/lib-es/components/Header/components/Menu/Menu.js +0 -2
- package/lib-es/components/Header/components/Menu/Menu.js.map +1 -1
- package/lib-es/components/Header/components/Menu/index.js.map +1 -1
- package/lib-es/components/Header/components/index.js.map +1 -1
- package/lib-es/components/Header/index.js.map +1 -1
- package/lib-es/components/Layout/Layout.js +0 -4
- package/lib-es/components/Layout/Layout.js.map +1 -1
- package/lib-es/components/Layout/components/Grid/Grid.js +0 -8
- package/lib-es/components/Layout/components/Grid/Grid.js.map +1 -1
- package/lib-es/components/Layout/components/Grid/index.js.map +1 -1
- package/lib-es/components/Layout/components/index.js.map +1 -1
- package/lib-es/components/SideBar/SideBar.js +0 -2
- package/lib-es/components/SideBar/SideBar.js.map +1 -1
- package/lib-es/components/SideBar/components/SideBlock.js +0 -4
- package/lib-es/components/SideBar/components/SideBlock.js.map +1 -1
- package/lib-es/components/SideBar/components/SideBlockItem.js +0 -2
- package/lib-es/components/SideBar/components/SideBlockItem.js.map +1 -1
- package/lib-es/components/SideBar/components/index.js.map +1 -1
- package/lib-es/components/SideBar/index.js.map +1 -1
- package/lib-es/components/index.js.map +1 -1
- package/lib-es/constants.js.map +1 -1
- package/lib-es/containers/Home/Home.js +0 -2
- package/lib-es/containers/Home/Home.js.map +1 -1
- package/lib-es/containers/index.js.map +1 -1
- package/lib-es/index.js +1 -5
- package/lib-es/index.js.map +1 -1
- package/lib-es/utils/get-menu-items-resolver.js.map +1 -1
- package/lib-es/utils/menu-handler.js +0 -8
- package/lib-es/utils/menu-handler.js.map +1 -1
- package/package.json +6 -6
package/lib-es/index.js
CHANGED
|
@@ -3,10 +3,7 @@ import { Layout } from './components';
|
|
|
3
3
|
import pkg from '../package.json';
|
|
4
4
|
import { PLUGIN_NAME } from './constants';
|
|
5
5
|
import getMenuItemsResolver from './utils/get-menu-items-resolver';
|
|
6
|
-
const Home = React.lazy(() => import(
|
|
7
|
-
/* webpackChunkName: 'Home' */
|
|
8
|
-
'./containers'));
|
|
9
|
-
|
|
6
|
+
const Home = React.lazy(() => import( /* webpackChunkName: 'Home' */'./containers'));
|
|
10
7
|
async function load(app) {
|
|
11
8
|
const home = {
|
|
12
9
|
path: '/',
|
|
@@ -28,7 +25,6 @@ async function load(app) {
|
|
|
28
25
|
version: pkg.version
|
|
29
26
|
};
|
|
30
27
|
}
|
|
31
|
-
|
|
32
28
|
load.pluginName = PLUGIN_NAME;
|
|
33
29
|
export default load;
|
|
34
30
|
//# sourceMappingURL=index.js.map
|
package/lib-es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","Layout","pkg","PLUGIN_NAME","getMenuItemsResolver","Home","lazy","load","app","home","path","exact","key","component","addRoute","addQueryResolver","setLayout","events","once","addSection","header","order","name","version","pluginName"],"sources":["../src/index.js"],"sourcesContent":["import React from 'react';\nimport { Layout } from './components';\nimport pkg from '../package.json';\nimport { PLUGIN_NAME } from './constants';\nimport getMenuItemsResolver from './utils/get-menu-items-resolver';\n\nconst Home = React.lazy(() => import(/* webpackChunkName: 'Home' */ './containers'));\n\nasync function load(app) {\n const home = {\n path: '/',\n exact: true,\n key: 'home',\n component: Home\n };\n app.addRoute(home);\n\n app.addQueryResolver('getMenuItems', getMenuItemsResolver(app));\n\n app.setLayout(Layout);\n\n app.events.once('load:menu-section', addSection => {\n addSection('plugins', { header: 'plugins', order: 200 });\n });\n\n return {\n name: PLUGIN_NAME,\n version: pkg.version\n };\n}\n\nload.pluginName = PLUGIN_NAME;\n\nexport default load;\n"],"mappings":"AAAA,OAAOA,
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","Layout","pkg","PLUGIN_NAME","getMenuItemsResolver","Home","lazy","load","app","home","path","exact","key","component","addRoute","addQueryResolver","setLayout","events","once","addSection","header","order","name","version","pluginName"],"sources":["../src/index.js"],"sourcesContent":["import React from 'react';\nimport { Layout } from './components';\nimport pkg from '../package.json';\nimport { PLUGIN_NAME } from './constants';\nimport getMenuItemsResolver from './utils/get-menu-items-resolver';\n\nconst Home = React.lazy(() => import(/* webpackChunkName: 'Home' */ './containers'));\n\nasync function load(app) {\n const home = {\n path: '/',\n exact: true,\n key: 'home',\n component: Home\n };\n app.addRoute(home);\n\n app.addQueryResolver('getMenuItems', getMenuItemsResolver(app));\n\n app.setLayout(Layout);\n\n app.events.once('load:menu-section', addSection => {\n addSection('plugins', { header: 'plugins', order: 200 });\n });\n\n return {\n name: PLUGIN_NAME,\n version: pkg.version\n };\n}\n\nload.pluginName = PLUGIN_NAME;\n\nexport default load;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,cAAc;AACrC,OAAOC,GAAG,MAAM,iBAAiB;AACjC,SAASC,WAAW,QAAQ,aAAa;AACzC,OAAOC,oBAAoB,MAAM,iCAAiC;AAElE,MAAMC,IAAI,GAAGL,KAAK,CAACM,IAAI,CAAC,MAAM,MAAM,EAAC,8BAA+B,cAAc,CAAC,CAAC;AAEpF,eAAeC,IAAI,CAACC,GAAG,EAAE;EACvB,MAAMC,IAAI,GAAG;IACXC,IAAI,EAAE,GAAG;IACTC,KAAK,EAAE,IAAI;IACXC,GAAG,EAAE,MAAM;IACXC,SAAS,EAAER;EACb,CAAC;EACDG,GAAG,CAACM,QAAQ,CAACL,IAAI,CAAC;EAElBD,GAAG,CAACO,gBAAgB,CAAC,cAAc,EAAEX,oBAAoB,CAACI,GAAG,CAAC,CAAC;EAE/DA,GAAG,CAACQ,SAAS,CAACf,MAAM,CAAC;EAErBO,GAAG,CAACS,MAAM,CAACC,IAAI,CAAC,mBAAmB,EAAEC,UAAU,IAAI;IACjDA,UAAU,CAAC,SAAS,EAAE;MAAEC,MAAM,EAAE,SAAS;MAAEC,KAAK,EAAE;IAAI,CAAC,CAAC;EAC1D,CAAC,CAAC;EAEF,OAAO;IACLC,IAAI,EAAEnB,WAAW;IACjBoB,OAAO,EAAErB,GAAG,CAACqB;EACf,CAAC;AACH;AAEAhB,IAAI,CAACiB,UAAU,GAAGrB,WAAW;AAE7B,eAAeI,IAAI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-menu-items-resolver.js","names":["menuHandler","getMenuItemsResolver","app","addItem","addSection","getAll","events","emitAsync"],"sources":["../../src/utils/get-menu-items-resolver.js"],"sourcesContent":["import menuHandler from './menu-handler';\n\nexport default function getMenuItemsResolver(app) {\n return async () => {\n const { addItem, addSection, getAll } = menuHandler();\n await app.events.emitAsync('load:menu-section', addSection);\n await app.events.emitAsync('load:menu-items', addItem);\n return getAll();\n };\n}\n"],"mappings":"AAAA,OAAOA,
|
|
1
|
+
{"version":3,"file":"get-menu-items-resolver.js","names":["menuHandler","getMenuItemsResolver","app","addItem","addSection","getAll","events","emitAsync"],"sources":["../../src/utils/get-menu-items-resolver.js"],"sourcesContent":["import menuHandler from './menu-handler';\n\nexport default function getMenuItemsResolver(app) {\n return async () => {\n const { addItem, addSection, getAll } = menuHandler();\n await app.events.emitAsync('load:menu-section', addSection);\n await app.events.emitAsync('load:menu-items', addItem);\n return getAll();\n };\n}\n"],"mappings":"AAAA,OAAOA,WAAW,MAAM,gBAAgB;AAExC,eAAe,SAASC,oBAAoB,CAACC,GAAG,EAAE;EAChD,OAAO,YAAY;IACjB,MAAM;MAAEC,OAAO;MAAEC,UAAU;MAAEC;IAAO,CAAC,GAAGL,WAAW,EAAE;IACrD,MAAME,GAAG,CAACI,MAAM,CAACC,SAAS,CAAC,mBAAmB,EAAEH,UAAU,CAAC;IAC3D,MAAMF,GAAG,CAACI,MAAM,CAACC,SAAS,CAAC,iBAAiB,EAAEJ,OAAO,CAAC;IACtD,OAAOE,MAAM,EAAE;EACjB,CAAC;AACH"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export default function menuHandler() {
|
|
2
2
|
const menuSections = new Map();
|
|
3
|
-
|
|
4
3
|
function getSection(key) {
|
|
5
4
|
return menuSections.get(key);
|
|
6
5
|
}
|
|
7
|
-
|
|
8
6
|
function getAll() {
|
|
9
7
|
return Array.from(menuSections.entries()).sort(([, {
|
|
10
8
|
order: order1
|
|
@@ -12,7 +10,6 @@ export default function menuHandler() {
|
|
|
12
10
|
order: order2
|
|
13
11
|
}]) => order1 > order2 ? 1 : -1);
|
|
14
12
|
}
|
|
15
|
-
|
|
16
13
|
function addSection(key, {
|
|
17
14
|
header,
|
|
18
15
|
order
|
|
@@ -25,28 +22,23 @@ export default function menuHandler() {
|
|
|
25
22
|
};
|
|
26
23
|
menuSections.set(key, section);
|
|
27
24
|
}
|
|
28
|
-
|
|
29
25
|
function addItem(item, sectionKey) {
|
|
30
26
|
validateItem(sectionKey);
|
|
31
27
|
const section = menuSections.get(sectionKey);
|
|
32
28
|
section.items.push(item);
|
|
33
29
|
}
|
|
34
|
-
|
|
35
30
|
function validateItem(key) {
|
|
36
31
|
if (!menuSections.has(key)) throw new Error(`Section ${key} doesn\'t exist`);
|
|
37
32
|
}
|
|
38
|
-
|
|
39
33
|
function validateSection(key, order) {
|
|
40
34
|
if (!key) throw new Error('Section requires a key');
|
|
41
35
|
if (menuSections.has(key)) throw new Error(`Section with ${key} has been already added`);
|
|
42
|
-
|
|
43
36
|
if (Array.from(menuSections.entries()).some(([_, {
|
|
44
37
|
order: _order
|
|
45
38
|
}]) => _order === order)) {
|
|
46
39
|
throw new Error('Section with this order has already been added');
|
|
47
40
|
}
|
|
48
41
|
}
|
|
49
|
-
|
|
50
42
|
return {
|
|
51
43
|
addSection,
|
|
52
44
|
addItem,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-handler.js","names":["menuHandler","menuSections","Map","getSection","key","get","getAll","Array","from","entries","sort","order","order1","order2","addSection","header","validateSection","section","items","set","addItem","item","sectionKey","validateItem","push","has","Error","some","_","_order"],"sources":["../../src/utils/menu-handler.js"],"sourcesContent":["export default function menuHandler() {\n const menuSections = new Map();\n\n function getSection(key) {\n return menuSections.get(key);\n }\n\n function getAll() {\n return Array.from(menuSections.entries()).sort(\n ([, { order: order1 }], [, { order: order2 }]) => (order1 > order2 ? 1 : -1)\n );\n }\n\n function addSection(key, { header, order }) {\n validateSection(key, order);\n const section = {\n header,\n order,\n items: []\n };\n menuSections.set(key, section);\n }\n\n function addItem(item, sectionKey) {\n validateItem(sectionKey);\n const section = menuSections.get(sectionKey);\n section.items.push(item);\n }\n\n function validateItem(key) {\n if (!menuSections.has(key)) throw new Error(`Section ${key} doesn\\'t exist`);\n }\n\n function validateSection(key, order) {\n if (!key) throw new Error('Section requires a key');\n if (menuSections.has(key)) throw new Error(`Section with ${key} has been already added`);\n if (Array.from(menuSections.entries()).some(([_, { order: _order }]) => _order === order)) {\n throw new Error('Section with this order has already been added');\n }\n }\n\n return {\n addSection,\n addItem,\n getSection,\n getAll\n };\n}\n"],"mappings":"AAAA,eAAe,SAASA,
|
|
1
|
+
{"version":3,"file":"menu-handler.js","names":["menuHandler","menuSections","Map","getSection","key","get","getAll","Array","from","entries","sort","order","order1","order2","addSection","header","validateSection","section","items","set","addItem","item","sectionKey","validateItem","push","has","Error","some","_","_order"],"sources":["../../src/utils/menu-handler.js"],"sourcesContent":["export default function menuHandler() {\n const menuSections = new Map();\n\n function getSection(key) {\n return menuSections.get(key);\n }\n\n function getAll() {\n return Array.from(menuSections.entries()).sort(\n ([, { order: order1 }], [, { order: order2 }]) => (order1 > order2 ? 1 : -1)\n );\n }\n\n function addSection(key, { header, order }) {\n validateSection(key, order);\n const section = {\n header,\n order,\n items: []\n };\n menuSections.set(key, section);\n }\n\n function addItem(item, sectionKey) {\n validateItem(sectionKey);\n const section = menuSections.get(sectionKey);\n section.items.push(item);\n }\n\n function validateItem(key) {\n if (!menuSections.has(key)) throw new Error(`Section ${key} doesn\\'t exist`);\n }\n\n function validateSection(key, order) {\n if (!key) throw new Error('Section requires a key');\n if (menuSections.has(key)) throw new Error(`Section with ${key} has been already added`);\n if (Array.from(menuSections.entries()).some(([_, { order: _order }]) => _order === order)) {\n throw new Error('Section with this order has already been added');\n }\n }\n\n return {\n addSection,\n addItem,\n getSection,\n getAll\n };\n}\n"],"mappings":"AAAA,eAAe,SAASA,WAAW,GAAG;EACpC,MAAMC,YAAY,GAAG,IAAIC,GAAG,EAAE;EAE9B,SAASC,UAAU,CAACC,GAAG,EAAE;IACvB,OAAOH,YAAY,CAACI,GAAG,CAACD,GAAG,CAAC;EAC9B;EAEA,SAASE,MAAM,GAAG;IAChB,OAAOC,KAAK,CAACC,IAAI,CAACP,YAAY,CAACQ,OAAO,EAAE,CAAC,CAACC,IAAI,CAC5C,CAAC,GAAG;MAAEC,KAAK,EAAEC;IAAO,CAAC,CAAC,EAAE,GAAG;MAAED,KAAK,EAAEE;IAAO,CAAC,CAAC,KAAMD,MAAM,GAAGC,MAAM,GAAG,CAAC,GAAG,CAAC,CAAE,CAC7E;EACH;EAEA,SAASC,UAAU,CAACV,GAAG,EAAE;IAAEW,MAAM;IAAEJ;EAAM,CAAC,EAAE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"version": "0.125.0-
|
|
3
|
+
"version": "0.125.0-auth-updates.0",
|
|
4
4
|
"description": "Blaze plugin admin core ui",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-es/index.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "GPL-3.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@blaze-cms/admin-ui-styles": "
|
|
31
|
-
"@blaze-cms/admin-ui-utils": "
|
|
30
|
+
"@blaze-cms/admin-ui-styles": "0.125.0-auth-updates.0",
|
|
31
|
+
"@blaze-cms/admin-ui-utils": "0.125.0-auth-updates.0",
|
|
32
32
|
"@blaze-cms/core-ui": "^0.121.0",
|
|
33
|
-
"@blaze-cms/plugin-search-ui": "
|
|
33
|
+
"@blaze-cms/plugin-search-ui": "0.125.0-auth-updates.0",
|
|
34
34
|
"@blaze-cms/setup-ui": "^0.92.0",
|
|
35
35
|
"@blaze-react/avatar": "0.5.19",
|
|
36
36
|
"@blaze-react/button": "0.5.19",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"react-router-dom": "^5.0.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@blaze-cms/plugin-auth-ui": "
|
|
50
|
+
"@blaze-cms/plugin-auth-ui": "0.125.0-auth-updates.0",
|
|
51
51
|
"waait": "1.0.5"
|
|
52
52
|
},
|
|
53
53
|
"eslintIgnore": [
|
|
54
54
|
"lib/*",
|
|
55
55
|
"lib-es/*"
|
|
56
56
|
],
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "d7b31bb653375863126988797ddbf4f75dd55a7b"
|
|
58
58
|
}
|