@imperium/layout 10.3.5 → 10.4.1-alpha.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.
@@ -0,0 +1,26 @@
1
+ import { useContext, useEffect } from 'react';
2
+ import { AuthContext } from '@imperium/auth-client';
3
+ import debug from 'debug';
4
+ import { useDispatch } from 'react-redux';
5
+ import { useLayoutState, actions } from '../state.js';
6
+
7
+ debug("imperium.layout.datahooks.Permissions");
8
+ function Permissions({ permissions }) {
9
+ const ctx = useContext(AuthContext);
10
+ const layoutState = useLayoutState();
11
+ const dispatch = useDispatch();
12
+ useEffect(() => {
13
+ (async function iife() {
14
+ permissions.forEach((permission) => {
15
+ const data = layoutState.params && Object.keys(layoutState.params).length > 0 ? layoutState.params : void 0;
16
+ ctx.authorization.can(permission, data).then((result) => {
17
+ dispatch(actions.setPermission({ permission, result }));
18
+ });
19
+ });
20
+ })();
21
+ }, [dispatch, permissions, ctx.authorization, layoutState.params]);
22
+ return null;
23
+ }
24
+
25
+ export { Permissions };
26
+ //# sourceMappingURL=Permissions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Permissions.js","sources":["../../../src/datahooks/Permissions.tsx"],"sourcesContent":["import {AuthContext} from '@imperium/auth-client';\nimport type {IAuthContext} from '@imperium/auth-client';\nimport debug from 'debug';\nimport {useContext, useEffect} from 'react';\nimport {useDispatch} from 'react-redux';\nimport {actions, useLayoutState} from '../state';\nimport type {PermissionSelector} from '../types';\n\nconst d = debug('imperium.layout.datahooks.Permissions');\n\ninterface PermissionsProps {\n\tpermissions: PermissionSelector;\n}\n\nexport function Permissions({permissions}: PermissionsProps) {\n\tconst ctx = useContext<IAuthContext>(AuthContext);\n\tconst layoutState = useLayoutState();\n\tconst dispatch = useDispatch();\n\n\tuseEffect(() => {\n\t\t(async function iife() {\n\t\t\tpermissions.forEach(permission => {\n\t\t\t\tconst data = layoutState.params && Object.keys(layoutState.params).length > 0 ? layoutState.params : undefined;\n\t\t\t\tctx.authorization.can(permission, data).then(result => {\n\t\t\t\t\tdispatch(actions.setPermission({permission, result}));\n\t\t\t\t});\n\t\t\t});\n\t\t})();\n\t}, [dispatch, permissions, ctx.authorization, layoutState.params]);\n\n\treturn null;\n}\n"],"names":[],"mappings":";;;;;;AAQU,MAAM,uCAAuC,EAAA;AAMhD,SAAA,WAAA,CAAqB,EAAC,WAAgC,EAAA,EAAA;AAC5D,EAAM,MAAA,GAAA,GAAM,WAAyB,WAAW,CAAA,CAAA;AAChD,EAAA,MAAM,cAAc,cAAe,EAAA,CAAA;AACnC,EAAA,MAAM,WAAW,WAAY,EAAA,CAAA;AAE7B,EAAA,SAAA,CAAU,MAAM;AACf,IAAC,CAAsB,eAAA,IAAA,GAAA;AACtB,MAAA,WAAA,CAAY,QAAQ,CAAc,UAAA,KAAA;AACjC,QAAM,MAAA,IAAA,GAAO,WAAY,CAAA,MAAA,IAAU,MAAO,CAAA,IAAA,CAAK,WAAY,CAAA,MAAM,CAAE,CAAA,MAAA,GAAS,CAAI,GAAA,WAAA,CAAY,MAAS,GAAA,KAAA,CAAA,CAAA;AACrG,QAAA,GAAA,CAAI,cAAc,GAAI,CAAA,UAAA,EAAY,IAAI,CAAA,CAAE,KAAK,CAAU,MAAA,KAAA;AACtD,UAAA,QAAA,CAAS,QAAQ,aAAc,CAAA,EAAC,UAAY,EAAA,MAAA,EAAO,CAAC,CAAA,CAAA;AAAA,SACpD,CAAA,CAAA;AAAA,OACD,CAAA,CAAA;AAAA,KACC,GAAA,CAAA;AAAA,GACJ,EAAG,CAAC,QAAU,EAAA,WAAA,EAAa,IAAI,aAAe,EAAA,WAAA,CAAY,MAAM,CAAC,CAAA,CAAA;AAEjE,EAAO,OAAA,IAAA,CAAA;AACR;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sources":["../../../src/layout/types.ts"],"sourcesContent":["import type {SemanticICONS} from 'semantic-ui-react';\nimport type {HorizontalPositionedItem, RouteItem, VisibilityItem, WeightedItem} from '../commonItems';\nimport type {DataHookItem} from '../datahooks/types';\nimport type {Data, PermissionSelectorHook} from '../types';\n\n/**\n * Describes a basic weighted, possibly visible item\n */\nexport interface BaseLayoutItem extends WeightedItem, VisibilityItem {\n\ttext: string | ((data: Data) => string);\n\ticon?: SemanticICONS | ((data: Data) => SemanticICONS);\n\tmoveToKey?: string;\n}\n\nexport interface CustomLayoutItem extends WeightedItem, VisibilityItem {\n\trender: (data: Data) => JSX.Element | null;\n\tmoveToKey?: string;\n}\n\n/**\n * Describes a menu that displays a dropdown list of items\n */\nexport interface DropdownLayoutItem extends BaseLayoutItem {\n\tdropdown: ((BaseLayoutItem & RouteItem<Data>) | CustomLayoutItem)[];\n\tkey?: string;\n}\n\n/**\n * Describes a menu that displays a sub menu (not a dropdown list)\n */\nexport interface MenuLayoutItem extends BaseLayoutItem {\n\tmenu: ((BaseLayoutItem & RouteItem<Data>) | CustomLayoutItem)[];\n\tkey?: string;\n}\n\n/**\n * Describes a horizontal menu item which is either a route item or dropdown menu\n */\nexport type LayoutItem = (BaseLayoutItem & RouteItem<Data>) | DropdownLayoutItem | MenuLayoutItem | CustomLayoutItem;\n\nexport interface LayoutData {\n\tpermissionSelectorHooks?: PermissionSelectorHook[];\n\tdataHooks?: DataHookItem[];\n\tprimaryMenu?: (LayoutItem & HorizontalPositionedItem)[]; // primary menu\n\tstatusbar?: (LayoutItem & HorizontalPositionedItem)[];\n\tsecondaryMenu?: LayoutItem[]; // secondary menu\n\tfooter?: (LayoutItem & HorizontalPositionedItem)[]; // footer\n}\n\nexport function isCustomLayoutItem(value: any): value is CustomLayoutItem {\n\treturn !!(value as CustomLayoutItem).render;\n}\n\nexport function isDropdownLayoutItem(value: any): value is DropdownLayoutItem {\n\treturn !!(value as DropdownLayoutItem).dropdown;\n}\n\nexport function isMenuLayoutItem(value: any): value is MenuLayoutItem {\n\treturn !!(value as MenuLayoutItem).menu;\n}\n"],"names":[],"mappings":"AAiDO,SAAA,kBAAA,CAA4B,KAAuC,EAAA;AACzE,EAAO,OAAA,CAAC,CAAE,KAA2B,CAAA,MAAA,CAAA;AACtC,CAAA;AAEO,SAAA,oBAAA,CAA8B,KAAyC,EAAA;AAC7E,EAAO,OAAA,CAAC,CAAE,KAA6B,CAAA,QAAA,CAAA;AACxC,CAAA;AAEO,SAAA,gBAAA,CAA0B,KAAqC,EAAA;AACrE,EAAO,OAAA,CAAC,CAAE,KAAyB,CAAA,IAAA,CAAA;AACpC;;;;"}
1
+ {"version":3,"file":"types.js","sources":["../../../src/layout/types.ts"],"sourcesContent":["import type {SemanticICONS} from 'semantic-ui-react';\nimport type {HorizontalPositionedItem, RouteItem, VisibilityItem, WeightedItem} from '../commonItems';\nimport type {DataHookItem} from '../datahooks/types';\nimport type {Data, PermissionSelector, PermissionSelectorHook} from '../types';\n\n/**\n * Describes a basic weighted, possibly visible item\n */\nexport interface BaseLayoutItem extends WeightedItem, VisibilityItem {\n\ttext: string | ((data: Data) => string);\n\ticon?: SemanticICONS | ((data: Data) => SemanticICONS);\n\tmoveToKey?: string;\n}\n\nexport interface CustomLayoutItem extends WeightedItem, VisibilityItem {\n\trender: (data: Data) => JSX.Element | null;\n\tmoveToKey?: string;\n}\n\n/**\n * Describes a menu that displays a dropdown list of items\n */\nexport interface DropdownLayoutItem extends BaseLayoutItem {\n\tdropdown: ((BaseLayoutItem & RouteItem<Data>) | CustomLayoutItem)[];\n\tkey?: string;\n}\n\n/**\n * Describes a menu that displays a sub menu (not a dropdown list)\n */\nexport interface MenuLayoutItem extends BaseLayoutItem {\n\tmenu: ((BaseLayoutItem & RouteItem<Data>) | CustomLayoutItem)[];\n\tkey?: string;\n}\n\n/**\n * Describes a horizontal menu item which is either a route item or dropdown menu\n */\nexport type LayoutItem = (BaseLayoutItem & RouteItem<Data>) | DropdownLayoutItem | MenuLayoutItem | CustomLayoutItem;\n\nexport interface LayoutData {\n\tpermissionSelectorHooks?: PermissionSelectorHook[];\n\tpermissions?: PermissionSelector;\n\tdataHooks?: DataHookItem[];\n\tprimaryMenu?: (LayoutItem & HorizontalPositionedItem)[]; // primary menu\n\tstatusbar?: (LayoutItem & HorizontalPositionedItem)[];\n\tsecondaryMenu?: LayoutItem[]; // secondary menu\n\tfooter?: (LayoutItem & HorizontalPositionedItem)[]; // footer\n}\n\nexport function isCustomLayoutItem(value: any): value is CustomLayoutItem {\n\treturn !!(value as CustomLayoutItem).render;\n}\n\nexport function isDropdownLayoutItem(value: any): value is DropdownLayoutItem {\n\treturn !!(value as DropdownLayoutItem).dropdown;\n}\n\nexport function isMenuLayoutItem(value: any): value is MenuLayoutItem {\n\treturn !!(value as MenuLayoutItem).menu;\n}\n"],"names":[],"mappings":"AAkDO,SAAA,kBAAA,CAA4B,KAAuC,EAAA;AACzE,EAAO,OAAA,CAAC,CAAE,KAA2B,CAAA,MAAA,CAAA;AACtC,CAAA;AAEO,SAAA,oBAAA,CAA8B,KAAyC,EAAA;AAC7E,EAAO,OAAA,CAAC,CAAE,KAA6B,CAAA,QAAA,CAAA;AACxC,CAAA;AAEO,SAAA,gBAAA,CAA0B,KAAqC,EAAA;AACrE,EAAO,OAAA,CAAC,CAAE,KAAyB,CAAA,IAAA,CAAA;AACpC;;;;"}
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import debug from 'debug';
3
3
  import { DataHooks } from '../datahooks/DataHooks.js';
4
4
  import { PermissionHooks } from '../datahooks/PermissionHooks.js';
5
+ import { Permissions } from '../datahooks/Permissions.js';
5
6
  import { isImperiumLayoutClientModule } from '../types.js';
6
7
  import { Layout } from './components/Layout.js';
7
8
 
@@ -9,6 +10,7 @@ const d = debug("imperium.layout.withLayout");
9
10
  const initialLayoutModuleData = {
10
11
  dataHooks: [],
11
12
  permissionSelectorHooks: [],
13
+ permissions: [],
12
14
  primaryMenu: [],
13
15
  statusbar: [],
14
16
  secondaryMenu: [],
@@ -20,6 +22,7 @@ function withLayout(client) {
20
22
  return {
21
23
  dataHooks: [...memo.dataHooks || [], ...module.layout.dataHooks || []],
22
24
  permissionSelectorHooks: [...memo.permissionSelectorHooks || [], ...module.layout.permissionSelectorHooks || []],
25
+ permissions: [...memo.permissions || [], ...module.layout.permissions || []],
23
26
  primaryMenu: [...memo.primaryMenu || [], ...module.layout.primaryMenu || []],
24
27
  statusbar: [...memo.statusbar || [], ...module.layout.statusbar || []],
25
28
  secondaryMenu: [...memo.secondaryMenu || [], ...module.layout.secondaryMenu || []],
@@ -39,6 +42,8 @@ function withLayout(client) {
39
42
  layout: layoutModuleData
40
43
  })), /* @__PURE__ */ React.createElement(DataHooks, {
41
44
  dataHooks: layoutModuleData.dataHooks
45
+ }), /* @__PURE__ */ React.createElement(Permissions, {
46
+ permissions: layoutModuleData.permissions
42
47
  }), /* @__PURE__ */ React.createElement(PermissionHooks, {
43
48
  permissionHooks: layoutModuleData.permissionSelectorHooks
44
49
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"withLayout.js","sources":["../../../src/layout/withLayout.tsx"],"sourcesContent":["import type {Hoc, ImperiumClient} from '@imperium/client';\nimport debug from 'debug';\nimport type {ComponentType} from 'react';\nimport {DataHooks} from '../datahooks/DataHooks';\nimport {PermissionHooks} from '../datahooks/PermissionHooks';\nimport {isImperiumLayoutClientModule} from '../types';\nimport {Layout} from './components/Layout';\nimport type {LayoutData} from './types';\n\nconst d = debug('imperium.layout.withLayout');\n\nconst initialLayoutModuleData: Required<LayoutData> = {\n\tdataHooks: [],\n\tpermissionSelectorHooks: [],\n\tprimaryMenu: [],\n\tstatusbar: [],\n\tsecondaryMenu: [],\n\tfooter: [],\n};\n\nexport function withLayout(client: ImperiumClient): Hoc {\n\tconst layoutModuleData = client.modules.reduce((memo, module) => {\n\t\tif (isImperiumLayoutClientModule(module)) {\n\t\t\treturn {\n\t\t\t\tdataHooks: [...(memo.dataHooks || []), ...(module.layout.dataHooks || [])],\n\t\t\t\tpermissionSelectorHooks: [...(memo.permissionSelectorHooks || []), ...(module.layout.permissionSelectorHooks || [])],\n\t\t\t\tprimaryMenu: [...(memo.primaryMenu || []), ...(module.layout.primaryMenu || [])],\n\t\t\t\tstatusbar: [...(memo.statusbar || []), ...(module.layout.statusbar || [])],\n\t\t\t\tsecondaryMenu: [...(memo.secondaryMenu || []), ...(module.layout.secondaryMenu || [])],\n\t\t\t\tfooter: [...(memo.footer || []), ...(module.layout.footer || [])],\n\t\t\t} as Required<LayoutData>;\n\t\t}\n\t\treturn memo;\n\t}, initialLayoutModuleData);\n\td('Layout items processed', layoutModuleData);\n\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treturn function layoutHoc(Wrapped: ComponentType<any>) {\n\t\tconst displayName = Wrapped.displayName || Wrapped.name || '';\n\n\t\tfunction WithLayout(props: unknown) {\n\t\t\treturn (\n\t\t\t\t<>\n\t\t\t\t\t<Layout {...layoutModuleData}>\n\t\t\t\t\t\t<Wrapped {...props} layout={layoutModuleData} />\n\t\t\t\t\t</Layout>\n\t\t\t\t\t<DataHooks dataHooks={layoutModuleData.dataHooks} />\n\t\t\t\t\t<PermissionHooks permissionHooks={layoutModuleData.permissionSelectorHooks} />\n\t\t\t\t</>\n\t\t\t);\n\t\t}\n\n\t\tWithLayout.displayName = `withLayout(${displayName})`;\n\n\t\treturn WithLayout;\n\t};\n}\n"],"names":[],"mappings":";;;;;;;AASA,MAAM,CAAA,GAAI,MAAM,4BAA4B,CAAA,CAAA;AAE5C,MAAM,uBAAgD,GAAA;AAAA,EACrD,WAAW,EAAC;AAAA,EACZ,yBAAyB,EAAC;AAAA,EAC1B,aAAa,EAAC;AAAA,EACd,WAAW,EAAC;AAAA,EACZ,eAAe,EAAC;AAAA,EAChB,QAAQ,EAAC;AACV,CAAA,CAAA;AAEO,SAAA,UAAA,CAAoB,MAA6B,EAAA;AACvD,EAAA,MAAM,mBAAmB,MAAO,CAAA,OAAA,CAAQ,MAAO,CAAA,CAAC,MAAM,MAAW,KAAA;AAChE,IAAI,IAAA,4BAAA,CAA6B,MAAM,CAAG,EAAA;AACzC,MAAO,OAAA;AAAA,QACN,SAAW,EAAA,CAAC,GAAI,IAAA,CAAK,SAAa,IAAA,EAAK,EAAA,GAAI,MAAO,CAAA,MAAA,CAAO,SAAa,IAAA,EAAG,CAAA;AAAA,QACzE,uBAAyB,EAAA,CAAC,GAAI,IAAA,CAAK,uBAA2B,IAAA,EAAK,EAAA,GAAI,MAAO,CAAA,MAAA,CAAO,uBAA2B,IAAA,EAAG,CAAA;AAAA,QACnH,WAAa,EAAA,CAAC,GAAI,IAAA,CAAK,WAAe,IAAA,EAAK,EAAA,GAAI,MAAO,CAAA,MAAA,CAAO,WAAe,IAAA,EAAG,CAAA;AAAA,QAC/E,SAAW,EAAA,CAAC,GAAI,IAAA,CAAK,SAAa,IAAA,EAAK,EAAA,GAAI,MAAO,CAAA,MAAA,CAAO,SAAa,IAAA,EAAG,CAAA;AAAA,QACzE,aAAe,EAAA,CAAC,GAAI,IAAA,CAAK,aAAiB,IAAA,EAAK,EAAA,GAAI,MAAO,CAAA,MAAA,CAAO,aAAiB,IAAA,EAAG,CAAA;AAAA,QACrF,MAAQ,EAAA,CAAC,GAAI,IAAA,CAAK,MAAU,IAAA,EAAK,EAAA,GAAI,MAAO,CAAA,MAAA,CAAO,MAAU,IAAA,EAAG,CAAA;AAAA,OACjE,CAAA;AAAA,KACD;AACA,IAAO,OAAA,IAAA,CAAA;AAAA,KACL,uBAAuB,CAAA,CAAA;AAC1B,EAAA,CAAA,CAAE,0BAA0B,gBAAgB,CAAA,CAAA;AAG5C,EAAA,OAAO,mBAAmB,OAA6B,EAAA;AACtD,IAAA,MAAM,WAAc,GAAA,OAAA,CAAQ,WAAe,IAAA,OAAA,CAAQ,IAAQ,IAAA,EAAA,CAAA;AAE3D,IAAA,SAAA,UAAA,CAAoB,KAAgB,EAAA;AACnC,MAAA,iFAEG,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA;AAAA,QAAW,GAAA,gBAAA;AAAA,OAAA,kBACV,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA;AAAA,QAAY,GAAA,KAAA;AAAA,QAAO,MAAQ,EAAA,gBAAA;AAAA,OAAkB,CAC/C,mBACC,KAAA,CAAA,aAAA,CAAA,SAAA,EAAA;AAAA,QAAU,WAAW,gBAAiB,CAAA,SAAA;AAAA,OAAW,mBACjD,KAAA,CAAA,aAAA,CAAA,eAAA,EAAA;AAAA,QAAgB,iBAAiB,gBAAiB,CAAA,uBAAA;AAAA,OAAyB,CAC7E,CAAA,CAAA;AAAA,KAEF;AAEA,IAAA,UAAA,CAAW,cAAc,CAAc,WAAA,EAAA,WAAA,CAAA,CAAA,CAAA,CAAA;AAEvC,IAAO,OAAA,UAAA,CAAA;AAAA,GACR,CAAA;AACD;;;;"}
1
+ {"version":3,"file":"withLayout.js","sources":["../../../src/layout/withLayout.tsx"],"sourcesContent":["import type {Hoc, ImperiumClient} from '@imperium/client';\nimport debug from 'debug';\nimport type {ComponentType} from 'react';\nimport {DataHooks} from '../datahooks/DataHooks';\nimport {PermissionHooks} from '../datahooks/PermissionHooks';\nimport {Permissions} from '../datahooks/Permissions';\nimport {isImperiumLayoutClientModule} from '../types';\nimport {Layout} from './components/Layout';\nimport type {LayoutData} from './types';\n\nconst d = debug('imperium.layout.withLayout');\n\nconst initialLayoutModuleData: Required<LayoutData> = {\n\tdataHooks: [],\n\tpermissionSelectorHooks: [],\n\tpermissions: [],\n\tprimaryMenu: [],\n\tstatusbar: [],\n\tsecondaryMenu: [],\n\tfooter: [],\n};\n\nexport function withLayout(client: ImperiumClient): Hoc {\n\tconst layoutModuleData = client.modules.reduce((memo, module) => {\n\t\tif (isImperiumLayoutClientModule(module)) {\n\t\t\treturn {\n\t\t\t\tdataHooks: [...(memo.dataHooks || []), ...(module.layout.dataHooks || [])],\n\t\t\t\tpermissionSelectorHooks: [...(memo.permissionSelectorHooks || []), ...(module.layout.permissionSelectorHooks || [])],\n\t\t\t\tpermissions: [...(memo.permissions || []), ...(module.layout.permissions || [])],\n\t\t\t\tprimaryMenu: [...(memo.primaryMenu || []), ...(module.layout.primaryMenu || [])],\n\t\t\t\tstatusbar: [...(memo.statusbar || []), ...(module.layout.statusbar || [])],\n\t\t\t\tsecondaryMenu: [...(memo.secondaryMenu || []), ...(module.layout.secondaryMenu || [])],\n\t\t\t\tfooter: [...(memo.footer || []), ...(module.layout.footer || [])],\n\t\t\t} as Required<LayoutData>;\n\t\t}\n\t\treturn memo;\n\t}, initialLayoutModuleData);\n\td('Layout items processed', layoutModuleData);\n\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treturn function layoutHoc(Wrapped: ComponentType<any>) {\n\t\tconst displayName = Wrapped.displayName || Wrapped.name || '';\n\n\t\tfunction WithLayout(props: unknown) {\n\t\t\treturn (\n\t\t\t\t<>\n\t\t\t\t\t<Layout {...layoutModuleData}>\n\t\t\t\t\t\t<Wrapped {...props} layout={layoutModuleData} />\n\t\t\t\t\t</Layout>\n\t\t\t\t\t<DataHooks dataHooks={layoutModuleData.dataHooks} />\n\t\t\t\t\t<Permissions permissions={layoutModuleData.permissions} />\n\t\t\t\t\t<PermissionHooks permissionHooks={layoutModuleData.permissionSelectorHooks} />\n\t\t\t\t</>\n\t\t\t);\n\t\t}\n\n\t\tWithLayout.displayName = `withLayout(${displayName})`;\n\n\t\treturn WithLayout;\n\t};\n}\n"],"names":[],"mappings":";;;;;;;;AAUA,MAAM,CAAA,GAAI,MAAM,4BAA4B,CAAA,CAAA;AAE5C,MAAM,uBAAgD,GAAA;AAAA,EACrD,WAAW,EAAC;AAAA,EACZ,yBAAyB,EAAC;AAAA,EAC1B,aAAa,EAAC;AAAA,EACd,aAAa,EAAC;AAAA,EACd,WAAW,EAAC;AAAA,EACZ,eAAe,EAAC;AAAA,EAChB,QAAQ,EAAC;AACV,CAAA,CAAA;AAEO,SAAA,UAAA,CAAoB,MAA6B,EAAA;AACvD,EAAA,MAAM,mBAAmB,MAAO,CAAA,OAAA,CAAQ,MAAO,CAAA,CAAC,MAAM,MAAW,KAAA;AAChE,IAAI,IAAA,4BAAA,CAA6B,MAAM,CAAG,EAAA;AACzC,MAAO,OAAA;AAAA,QACN,SAAW,EAAA,CAAC,GAAI,IAAA,CAAK,SAAa,IAAA,EAAK,EAAA,GAAI,MAAO,CAAA,MAAA,CAAO,SAAa,IAAA,EAAG,CAAA;AAAA,QACzE,uBAAyB,EAAA,CAAC,GAAI,IAAA,CAAK,uBAA2B,IAAA,EAAK,EAAA,GAAI,MAAO,CAAA,MAAA,CAAO,uBAA2B,IAAA,EAAG,CAAA;AAAA,QACnH,WAAa,EAAA,CAAC,GAAI,IAAA,CAAK,WAAe,IAAA,EAAK,EAAA,GAAI,MAAO,CAAA,MAAA,CAAO,WAAe,IAAA,EAAG,CAAA;AAAA,QAC/E,WAAa,EAAA,CAAC,GAAI,IAAA,CAAK,WAAe,IAAA,EAAK,EAAA,GAAI,MAAO,CAAA,MAAA,CAAO,WAAe,IAAA,EAAG,CAAA;AAAA,QAC/E,SAAW,EAAA,CAAC,GAAI,IAAA,CAAK,SAAa,IAAA,EAAK,EAAA,GAAI,MAAO,CAAA,MAAA,CAAO,SAAa,IAAA,EAAG,CAAA;AAAA,QACzE,aAAe,EAAA,CAAC,GAAI,IAAA,CAAK,aAAiB,IAAA,EAAK,EAAA,GAAI,MAAO,CAAA,MAAA,CAAO,aAAiB,IAAA,EAAG,CAAA;AAAA,QACrF,MAAQ,EAAA,CAAC,GAAI,IAAA,CAAK,MAAU,IAAA,EAAK,EAAA,GAAI,MAAO,CAAA,MAAA,CAAO,MAAU,IAAA,EAAG,CAAA;AAAA,OACjE,CAAA;AAAA,KACD;AACA,IAAO,OAAA,IAAA,CAAA;AAAA,KACL,uBAAuB,CAAA,CAAA;AAC1B,EAAA,CAAA,CAAE,0BAA0B,gBAAgB,CAAA,CAAA;AAG5C,EAAA,OAAO,mBAAmB,OAA6B,EAAA;AACtD,IAAA,MAAM,WAAc,GAAA,OAAA,CAAQ,WAAe,IAAA,OAAA,CAAQ,IAAQ,IAAA,EAAA,CAAA;AAE3D,IAAA,SAAA,UAAA,CAAoB,KAAgB,EAAA;AACnC,MAAA,iFAEG,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA;AAAA,QAAW,GAAA,gBAAA;AAAA,OAAA,kBACV,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA;AAAA,QAAY,GAAA,KAAA;AAAA,QAAO,MAAQ,EAAA,gBAAA;AAAA,OAAkB,CAC/C,mBACC,KAAA,CAAA,aAAA,CAAA,SAAA,EAAA;AAAA,QAAU,WAAW,gBAAiB,CAAA,SAAA;AAAA,OAAW,mBACjD,KAAA,CAAA,aAAA,CAAA,WAAA,EAAA;AAAA,QAAY,aAAa,gBAAiB,CAAA,WAAA;AAAA,OAAa,mBACvD,KAAA,CAAA,aAAA,CAAA,eAAA,EAAA;AAAA,QAAgB,iBAAiB,gBAAiB,CAAA,uBAAA;AAAA,OAAyB,CAC7E,CAAA,CAAA;AAAA,KAEF;AAEA,IAAA,UAAA,CAAW,cAAc,CAAc,WAAA,EAAA,WAAA,CAAA,CAAA,CAAA,CAAA;AAEvC,IAAO,OAAA,UAAA,CAAA;AAAA,GACR,CAAA;AACD;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sources":["../../src/types.ts"],"sourcesContent":["import type {ImperiumClientModule} from '@imperium/client';\nimport type {Location} from 'history';\nimport type {LayoutData} from './layout/types';\n\nexport type State = Record<string, any>;\n/**\n * A hook that selects from redux state.\n */\nexport type StateSelectorHook = () => State;\n\nexport type PermissionResults = Record<string, boolean>;\n\nexport type PermissionSelectorHook = (data: Data) => PermissionResults;\n\n/**\n * The visibility query can either be a mingo query or a function that returns a boolean. The data is an object with the router path merged with any state selector hook data.\n */\nexport type VisibilityQueryFn = (data: Data) => boolean;\n\nexport interface Data extends Record<string, unknown> {\n\tloc: Location;\n\troute: {\n\t\tpath: string[];\n\t\thash: string;\n\t\tsearch: Record<string, any>;\n\t};\n\tstate: State;\n\tactive: boolean;\n\tpermissions: PermissionResults;\n\tid?: string;\n}\n\nexport interface ImperiumLayoutClientModule extends ImperiumClientModule {\n\tlayout: LayoutData;\n}\n\nexport function isImperiumLayoutClientModule(module: ImperiumClientModule): module is ImperiumLayoutClientModule {\n\tconst layoutModule = module as ImperiumLayoutClientModule;\n\treturn layoutModule.layout !== undefined;\n}\n"],"names":[],"mappings":"AAoCO,SAAA,4BAAA,CAAsC,MAAoE,EAAA;AAChH,EAAA,MAAM,YAAe,GAAA,MAAA,CAAA;AACrB,EAAA,OAAO,aAAa,MAAW,KAAA,KAAA,CAAA,CAAA;AAChC;;;;"}
1
+ {"version":3,"file":"types.js","sources":["../../src/types.ts"],"sourcesContent":["import type {ImperiumClientModule} from '@imperium/client';\nimport type {Location} from 'history';\nimport type {LayoutData} from './layout/types';\n\nexport type State = Record<string, any>;\n/**\n * A hook that selects from redux state.\n */\nexport type StateSelectorHook = () => State;\n\nexport type PermissionResults = Record<string, boolean>;\n\nexport type PermissionSelectorHook = (data: Data) => PermissionResults;\nexport type PermissionSelector = string[];\n\n/**\n * The visibility query can either be a mingo query or a function that returns a boolean. The data is an object with the router path merged with any state selector hook data.\n */\nexport type VisibilityQueryFn = (data: Data) => boolean;\n\nexport interface Data extends Record<string, unknown> {\n\tloc: Location;\n\troute: {\n\t\tpath: string[];\n\t\thash: string;\n\t\tsearch: Record<string, any>;\n\t};\n\tstate: State;\n\tactive: boolean;\n\tpermissions: PermissionResults;\n\tid?: string;\n}\n\nexport interface ImperiumLayoutClientModule extends ImperiumClientModule {\n\tlayout: LayoutData;\n}\n\nexport function isImperiumLayoutClientModule(module: ImperiumClientModule): module is ImperiumLayoutClientModule {\n\tconst layoutModule = module as ImperiumLayoutClientModule;\n\treturn layoutModule.layout !== undefined;\n}\n"],"names":[],"mappings":"AAqCO,SAAA,4BAAA,CAAsC,MAAoE,EAAA;AAChH,EAAA,MAAM,YAAe,GAAA,MAAA,CAAA;AACrB,EAAA,OAAO,aAAa,MAAW,KAAA,KAAA,CAAA,CAAA;AAChC;;;;"}
package/dist/stats.html CHANGED
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
2669
2669
  </script>
2670
2670
  <script>
2671
2671
  /*<!--*/
2672
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src/index.ts","uid":"fe56-1"}]},{"name":"state.js","children":[{"name":"src/state.ts","uid":"fe56-3"}]},{"name":"content/dividerSidebarItem.js","children":[{"name":"src/content/dividerSidebarItem.ts","uid":"fe56-5"}]},{"name":"layout/withLayout.js","children":[{"name":"src/layout/withLayout.tsx","uid":"fe56-7"}]},{"name":"content/createPages.js","children":[{"name":"src/content/createPages.tsx","uid":"fe56-9"}]},{"name":"layout/hooks/useMobileLayout.js","children":[{"name":"src/layout/hooks/useMobileLayout.ts","uid":"fe56-11"}]},{"name":"types.js","children":[{"name":"src/types.ts","uid":"fe56-13"}]},{"name":"content/types.js","children":[{"name":"src/content/types.ts","uid":"fe56-15"}]},{"name":"datahooks/PermissionHooks.js","children":[{"name":"src/datahooks/PermissionHooks.tsx","uid":"fe56-17"}]},{"name":"datahooks/DataHooks.js","children":[{"name":"src/datahooks/DataHooks.tsx","uid":"fe56-19"}]},{"name":"content/components/ContentComponent.js","children":[{"name":"src/content/components/ContentComponent.tsx","uid":"fe56-21"}]},{"name":"layout/components/Layout.js","children":[{"name":"src/layout/components/Layout.tsx","uid":"fe56-23"}]},{"name":"datahooks/ExecutePermissionHook.js","children":[{"name":"src/datahooks/ExecutePermissionHook.tsx","uid":"fe56-25"}]},{"name":"datahooks/ExecuteDataHook.js","children":[{"name":"src/datahooks/ExecuteDataHook.tsx","uid":"fe56-27"}]},{"name":"utils.js","children":[{"name":"src/utils.ts","uid":"fe56-29"}]},{"name":"layout/moveItems.js","children":[{"name":"src/layout/moveItems.ts","uid":"fe56-31"}]},{"name":"layout/components/styles.module.css.js","children":[{"name":"src/layout/components/styles.module.css","uid":"fe56-33"}]},{"name":"content/components/styles.module.css.js","children":[{"name":"src/content/components/styles.module.css","uid":"fe56-35"}]},{"name":"layout/components/LayoutItemBar.js","children":[{"name":"src/layout/components/LayoutItemBar.tsx","uid":"fe56-37"}]},{"name":"layout/components/SecondaryMenuToggleItem.js","children":[{"name":"src/layout/components/SecondaryMenuToggleItem.tsx","uid":"fe56-39"}]},{"name":"content/hooks/useBuildContentData.js","children":[{"name":"src/content/hooks/useBuildContentData.ts","uid":"fe56-41"}]},{"name":"content/components/Header.js","children":[{"name":"src/content/components/Header.tsx","uid":"fe56-43"}]},{"name":"content/components/SidebarItemWrapper.js","children":[{"name":"src/content/components/SidebarItemWrapper.tsx","uid":"fe56-45"}]},{"name":"layout/types.js","children":[{"name":"src/layout/types.ts","uid":"fe56-47"}]},{"name":"layout/utils.js","children":[{"name":"src/layout/utils.tsx","uid":"fe56-49"}]},{"name":"hooks/useBuildData.js","children":[{"name":"src/hooks/useBuildData.ts","uid":"fe56-51"}]},{"name":"layout/components/LayoutItemWrapper.js","children":[{"name":"src/layout/components/LayoutItemWrapper.tsx","uid":"fe56-53"}]},{"name":"content/components/ActionSidebarItemComponent.js","children":[{"name":"src/content/components/ActionSidebarItemComponent.tsx","uid":"fe56-55"}]},{"name":"content/components/CustomSidebarItemComponent.js","children":[{"name":"src/content/components/CustomSidebarItemComponent.tsx","uid":"fe56-57"}]},{"name":"content/components/ActionFormSidebarItemComponent.js","children":[{"name":"src/content/components/ActionFormSidebarItemComponent.tsx","uid":"fe56-59"}]},{"name":"content/components/PlainSidebarItem.js","children":[{"name":"src/content/components/PlainSidebarItem.tsx","uid":"fe56-61"}]},{"name":"commonItems.js","children":[{"name":"src/commonItems.ts","uid":"fe56-63"}]},{"name":"hooks/useIsActiveRoute.js","children":[{"name":"src/hooks/useIsActiveRoute.ts","uid":"fe56-65"}]},{"name":"hooks/useSelectPermission.js","children":[{"name":"src/hooks/useSelectPermission.ts","uid":"fe56-67"}]},{"name":"hooks/useSelectState.js","children":[{"name":"src/hooks/useSelectState.ts","uid":"fe56-69"}]},{"name":"content/utils.js","children":[{"name":"src/content/utils.tsx","uid":"fe56-71"}]},{"name":"layout/components/CustomLayoutItemComponent.js","children":[{"name":"src/layout/components/CustomLayoutItemComponent.tsx","uid":"fe56-73"}]},{"name":"layout/components/DropdownItem.js","children":[{"name":"src/layout/components/DropdownItem.tsx","uid":"fe56-75"}]},{"name":"layout/components/MenuItem.js","children":[{"name":"src/layout/components/MenuItem.tsx","uid":"fe56-77"}]},{"name":"layout/components/PlainItem.js","children":[{"name":"src/layout/components/PlainItem.tsx","uid":"fe56-79"}]},{"name":"content/components/ActionForm.js","children":[{"name":"src/content/components/ActionForm.tsx","uid":"fe56-81"}]},{"name":"external/style-inject/dist/style-inject.es.js","children":[{"name":"home/darkadept/dev/imperium/node_modules/style-inject/dist/style-inject.es.js","uid":"fe56-83"}]}],"isRoot":true},"nodeParts":{"fe56-1":{"renderedLength":184,"gzipLength":151,"brotliLength":131,"mainUid":"fe56-0"},"fe56-3":{"renderedLength":489,"gzipLength":251,"brotliLength":217,"mainUid":"fe56-2"},"fe56-5":{"renderedLength":59,"gzipLength":71,"brotliLength":63,"mainUid":"fe56-4"},"fe56-7":{"renderedLength":1739,"gzipLength":543,"brotliLength":469,"mainUid":"fe56-6"},"fe56-9":{"renderedLength":650,"gzipLength":300,"brotliLength":268,"mainUid":"fe56-8"},"fe56-11":{"renderedLength":445,"gzipLength":266,"brotliLength":229,"mainUid":"fe56-10"},"fe56-13":{"renderedLength":121,"gzipLength":110,"brotliLength":90,"mainUid":"fe56-12"},"fe56-15":{"renderedLength":315,"gzipLength":141,"brotliLength":99,"mainUid":"fe56-14"},"fe56-17":{"renderedLength":339,"gzipLength":201,"brotliLength":164,"mainUid":"fe56-16"},"fe56-19":{"renderedLength":997,"gzipLength":371,"brotliLength":309,"mainUid":"fe56-18"},"fe56-21":{"renderedLength":1970,"gzipLength":651,"brotliLength":565,"mainUid":"fe56-20"},"fe56-23":{"renderedLength":2629,"gzipLength":741,"brotliLength":631,"mainUid":"fe56-22"},"fe56-25":{"renderedLength":345,"gzipLength":206,"brotliLength":172,"mainUid":"fe56-24"},"fe56-27":{"renderedLength":95,"gzipLength":91,"brotliLength":75,"mainUid":"fe56-26"},"fe56-29":{"renderedLength":145,"gzipLength":117,"brotliLength":116,"mainUid":"fe56-28"},"fe56-31":{"renderedLength":1401,"gzipLength":377,"brotliLength":347,"mainUid":"fe56-30"},"fe56-33":{"renderedLength":3176,"gzipLength":933,"brotliLength":762,"mainUid":"fe56-32"},"fe56-35":{"renderedLength":1469,"gzipLength":528,"brotliLength":431,"mainUid":"fe56-34"},"fe56-37":{"renderedLength":726,"gzipLength":295,"brotliLength":252,"mainUid":"fe56-36"},"fe56-39":{"renderedLength":335,"gzipLength":222,"brotliLength":169,"mainUid":"fe56-38"},"fe56-41":{"renderedLength":257,"gzipLength":158,"brotliLength":122,"mainUid":"fe56-40"},"fe56-43":{"renderedLength":556,"gzipLength":286,"brotliLength":215,"mainUid":"fe56-42"},"fe56-45":{"renderedLength":1189,"gzipLength":399,"brotliLength":314,"mainUid":"fe56-44"},"fe56-47":{"renderedLength":191,"gzipLength":111,"brotliLength":89,"mainUid":"fe56-46"},"fe56-49":{"renderedLength":915,"gzipLength":392,"brotliLength":328,"mainUid":"fe56-48"},"fe56-51":{"renderedLength":785,"gzipLength":362,"brotliLength":321,"mainUid":"fe56-50"},"fe56-53":{"renderedLength":1503,"gzipLength":488,"brotliLength":399,"mainUid":"fe56-52"},"fe56-55":{"renderedLength":362,"gzipLength":244,"brotliLength":185,"mainUid":"fe56-54"},"fe56-57":{"renderedLength":83,"gzipLength":96,"brotliLength":66,"mainUid":"fe56-56"},"fe56-59":{"renderedLength":663,"gzipLength":344,"brotliLength":277,"mainUid":"fe56-58"},"fe56-61":{"renderedLength":344,"gzipLength":235,"brotliLength":186,"mainUid":"fe56-60"},"fe56-63":{"renderedLength":203,"gzipLength":136,"brotliLength":97,"mainUid":"fe56-62"},"fe56-65":{"renderedLength":514,"gzipLength":229,"brotliLength":187,"mainUid":"fe56-64"},"fe56-67":{"renderedLength":294,"gzipLength":154,"brotliLength":114,"mainUid":"fe56-66"},"fe56-69":{"renderedLength":254,"gzipLength":142,"brotliLength":108,"mainUid":"fe56-68"},"fe56-71":{"renderedLength":628,"gzipLength":259,"brotliLength":219,"mainUid":"fe56-70"},"fe56-73":{"renderedLength":82,"gzipLength":95,"brotliLength":66,"mainUid":"fe56-72"},"fe56-75":{"renderedLength":1179,"gzipLength":451,"brotliLength":362,"mainUid":"fe56-74"},"fe56-77":{"renderedLength":252,"gzipLength":159,"brotliLength":116,"mainUid":"fe56-76"},"fe56-79":{"renderedLength":244,"gzipLength":178,"brotliLength":145,"mainUid":"fe56-78"},"fe56-81":{"renderedLength":1667,"gzipLength":625,"brotliLength":519,"mainUid":"fe56-80"},"fe56-83":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"fe56-82"}},"nodeMetas":{"fe56-0":{"id":"/src/index.ts","moduleParts":{"index.js":"fe56-1"},"imported":[{"uid":"fe56-10"},{"uid":"fe56-6"},{"uid":"fe56-2"},{"uid":"fe56-8"},{"uid":"fe56-4"}],"importedBy":[],"isEntry":true},"fe56-2":{"id":"/src/state.ts","moduleParts":{"state.js":"fe56-3"},"imported":[{"uid":"fe56-88"},{"uid":"fe56-89"}],"importedBy":[{"uid":"fe56-0"},{"uid":"fe56-10"},{"uid":"fe56-22"},{"uid":"fe56-20"},{"uid":"fe56-24"},{"uid":"fe56-50"}]},"fe56-4":{"id":"/src/content/dividerSidebarItem.ts","moduleParts":{"content/dividerSidebarItem.js":"fe56-5"},"imported":[],"importedBy":[{"uid":"fe56-0"}]},"fe56-6":{"id":"/src/layout/withLayout.tsx","moduleParts":{"layout/withLayout.js":"fe56-7"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-84"},{"uid":"fe56-18"},{"uid":"fe56-16"},{"uid":"fe56-12"},{"uid":"fe56-22"}],"importedBy":[{"uid":"fe56-0"}]},"fe56-8":{"id":"/src/content/createPages.tsx","moduleParts":{"content/createPages.js":"fe56-9"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-84"},{"uid":"fe56-20"},{"uid":"fe56-14"}],"importedBy":[{"uid":"fe56-0"}]},"fe56-10":{"id":"/src/layout/hooks/useMobileLayout.ts","moduleParts":{"layout/hooks/useMobileLayout.js":"fe56-11"},"imported":[{"uid":"fe56-84"},{"uid":"fe56-85"},{"uid":"fe56-86"},{"uid":"fe56-87"},{"uid":"fe56-2"}],"importedBy":[{"uid":"fe56-0"}]},"fe56-12":{"id":"/src/types.ts","moduleParts":{"types.js":"fe56-13"},"imported":[],"importedBy":[{"uid":"fe56-6"}]},"fe56-14":{"id":"/src/content/types.ts","moduleParts":{"content/types.js":"fe56-15"},"imported":[],"importedBy":[{"uid":"fe56-8"},{"uid":"fe56-44"}]},"fe56-16":{"id":"/src/datahooks/PermissionHooks.tsx","moduleParts":{"datahooks/PermissionHooks.js":"fe56-17"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-84"},{"uid":"fe56-24"}],"importedBy":[{"uid":"fe56-6"}]},"fe56-18":{"id":"/src/datahooks/DataHooks.tsx","moduleParts":{"datahooks/DataHooks.js":"fe56-19"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-84"},{"uid":"fe56-90"},{"uid":"fe56-91"},{"uid":"fe56-26"}],"importedBy":[{"uid":"fe56-6"},{"uid":"fe56-20"}]},"fe56-20":{"id":"/src/content/components/ContentComponent.tsx","moduleParts":{"content/components/ContentComponent.js":"fe56-21"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-84"},{"uid":"fe56-93"},{"uid":"fe56-86"},{"uid":"fe56-18"},{"uid":"fe56-2"},{"uid":"fe56-28"},{"uid":"fe56-40"},{"uid":"fe56-42"},{"uid":"fe56-44"},{"uid":"fe56-34"}],"importedBy":[{"uid":"fe56-8"}]},"fe56-22":{"id":"/src/layout/components/Layout.tsx","moduleParts":{"layout/components/Layout.js":"fe56-23"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-84"},{"uid":"fe56-92"},{"uid":"fe56-2"},{"uid":"fe56-30"},{"uid":"fe56-36"},{"uid":"fe56-38"},{"uid":"fe56-32"}],"importedBy":[{"uid":"fe56-6"}]},"fe56-24":{"id":"/src/datahooks/ExecutePermissionHook.tsx","moduleParts":{"datahooks/ExecutePermissionHook.js":"fe56-25"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-86"},{"uid":"fe56-2"}],"importedBy":[{"uid":"fe56-16"}]},"fe56-26":{"id":"/src/datahooks/ExecuteDataHook.tsx","moduleParts":{"datahooks/ExecuteDataHook.js":"fe56-27"},"imported":[{"uid":"fe56-85"}],"importedBy":[{"uid":"fe56-18"}]},"fe56-28":{"id":"/src/utils.ts","moduleParts":{"utils.js":"fe56-29"},"imported":[{"uid":"fe56-93"}],"importedBy":[{"uid":"fe56-20"},{"uid":"fe56-36"},{"uid":"fe56-52"}]},"fe56-30":{"id":"/src/layout/moveItems.ts","moduleParts":{"layout/moveItems.js":"fe56-31"},"imported":[{"uid":"fe56-84"},{"uid":"fe56-93"},{"uid":"fe56-46"}],"importedBy":[{"uid":"fe56-22"}]},"fe56-32":{"id":"/src/layout/components/styles.module.css","moduleParts":{"layout/components/styles.module.css.js":"fe56-33"},"imported":[{"uid":"fe56-82"}],"importedBy":[{"uid":"fe56-22"},{"uid":"fe56-38"},{"uid":"fe56-74"}]},"fe56-34":{"id":"/src/content/components/styles.module.css","moduleParts":{"content/components/styles.module.css.js":"fe56-35"},"imported":[{"uid":"fe56-82"}],"importedBy":[{"uid":"fe56-20"},{"uid":"fe56-42"}]},"fe56-36":{"id":"/src/layout/components/LayoutItemBar.tsx","moduleParts":{"layout/components/LayoutItemBar.js":"fe56-37"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-84"},{"uid":"fe56-92"},{"uid":"fe56-28"},{"uid":"fe56-48"},{"uid":"fe56-52"}],"importedBy":[{"uid":"fe56-22"}]},"fe56-38":{"id":"/src/layout/components/SecondaryMenuToggleItem.tsx","moduleParts":{"layout/components/SecondaryMenuToggleItem.js":"fe56-39"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-92"},{"uid":"fe56-32"}],"importedBy":[{"uid":"fe56-22"}]},"fe56-40":{"id":"/src/content/hooks/useBuildContentData.ts","moduleParts":{"content/hooks/useBuildContentData.js":"fe56-41"},"imported":[{"uid":"fe56-50"}],"importedBy":[{"uid":"fe56-20"},{"uid":"fe56-44"}]},"fe56-42":{"id":"/src/content/components/Header.tsx","moduleParts":{"content/components/Header.js":"fe56-43"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-84"},{"uid":"fe56-34"}],"importedBy":[{"uid":"fe56-20"}]},"fe56-44":{"id":"/src/content/components/SidebarItemWrapper.tsx","moduleParts":{"content/components/SidebarItemWrapper.js":"fe56-45"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-84"},{"uid":"fe56-94"},{"uid":"fe56-92"},{"uid":"fe56-40"},{"uid":"fe56-14"},{"uid":"fe56-58"},{"uid":"fe56-54"},{"uid":"fe56-56"},{"uid":"fe56-60"}],"importedBy":[{"uid":"fe56-20"}]},"fe56-46":{"id":"/src/layout/types.ts","moduleParts":{"layout/types.js":"fe56-47"},"imported":[],"importedBy":[{"uid":"fe56-30"},{"uid":"fe56-52"}]},"fe56-48":{"id":"/src/layout/utils.tsx","moduleParts":{"layout/utils.js":"fe56-49"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-91"},{"uid":"fe56-92"},{"uid":"fe56-62"}],"importedBy":[{"uid":"fe56-36"},{"uid":"fe56-74"},{"uid":"fe56-78"}]},"fe56-50":{"id":"/src/hooks/useBuildData.ts","moduleParts":{"hooks/useBuildData.js":"fe56-51"},"imported":[{"uid":"fe56-95"},{"uid":"fe56-84"},{"uid":"fe56-93"},{"uid":"fe56-91"},{"uid":"fe56-2"},{"uid":"fe56-64"},{"uid":"fe56-66"},{"uid":"fe56-68"}],"importedBy":[{"uid":"fe56-40"},{"uid":"fe56-52"}]},"fe56-52":{"id":"/src/layout/components/LayoutItemWrapper.tsx","moduleParts":{"layout/components/LayoutItemWrapper.js":"fe56-53"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-84"},{"uid":"fe56-94"},{"uid":"fe56-92"},{"uid":"fe56-50"},{"uid":"fe56-28"},{"uid":"fe56-46"},{"uid":"fe56-72"},{"uid":"fe56-74"},{"uid":"fe56-76"},{"uid":"fe56-78"}],"importedBy":[{"uid":"fe56-36"}]},"fe56-54":{"id":"/src/content/components/ActionSidebarItemComponent.tsx","moduleParts":{"content/components/ActionSidebarItemComponent.js":"fe56-55"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-92"},{"uid":"fe56-70"}],"importedBy":[{"uid":"fe56-44"}]},"fe56-56":{"id":"/src/content/components/CustomSidebarItemComponent.tsx","moduleParts":{"content/components/CustomSidebarItemComponent.js":"fe56-57"},"imported":[{"uid":"fe56-85"}],"importedBy":[{"uid":"fe56-44"}]},"fe56-58":{"id":"/src/content/components/ActionFormSidebarItemComponent.tsx","moduleParts":{"content/components/ActionFormSidebarItemComponent.js":"fe56-59"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-84"},{"uid":"fe56-92"},{"uid":"fe56-70"},{"uid":"fe56-80"}],"importedBy":[{"uid":"fe56-44"}]},"fe56-60":{"id":"/src/content/components/PlainSidebarItem.tsx","moduleParts":{"content/components/PlainSidebarItem.js":"fe56-61"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-91"},{"uid":"fe56-92"},{"uid":"fe56-70"}],"importedBy":[{"uid":"fe56-44"}]},"fe56-62":{"id":"/src/commonItems.ts","moduleParts":{"commonItems.js":"fe56-63"},"imported":[],"importedBy":[{"uid":"fe56-48"},{"uid":"fe56-64"}]},"fe56-64":{"id":"/src/hooks/useIsActiveRoute.ts","moduleParts":{"hooks/useIsActiveRoute.js":"fe56-65"},"imported":[{"uid":"fe56-96"},{"uid":"fe56-62"}],"importedBy":[{"uid":"fe56-50"}]},"fe56-66":{"id":"/src/hooks/useSelectPermission.ts","moduleParts":{"hooks/useSelectPermission.js":"fe56-67"},"imported":[{"uid":"fe56-93"}],"importedBy":[{"uid":"fe56-50"}]},"fe56-68":{"id":"/src/hooks/useSelectState.ts","moduleParts":{"hooks/useSelectState.js":"fe56-69"},"imported":[{"uid":"fe56-93"}],"importedBy":[{"uid":"fe56-50"}]},"fe56-70":{"id":"/src/content/utils.tsx","moduleParts":{"content/utils.js":"fe56-71"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-92"}],"importedBy":[{"uid":"fe56-58"},{"uid":"fe56-54"},{"uid":"fe56-60"}]},"fe56-72":{"id":"/src/layout/components/CustomLayoutItemComponent.tsx","moduleParts":{"layout/components/CustomLayoutItemComponent.js":"fe56-73"},"imported":[{"uid":"fe56-85"}],"importedBy":[{"uid":"fe56-52"}]},"fe56-74":{"id":"/src/layout/components/DropdownItem.tsx","moduleParts":{"layout/components/DropdownItem.js":"fe56-75"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-84"},{"uid":"fe56-92"},{"uid":"fe56-48"},{"uid":"fe56-32"}],"importedBy":[{"uid":"fe56-52"}]},"fe56-76":{"id":"/src/layout/components/MenuItem.tsx","moduleParts":{"layout/components/MenuItem.js":"fe56-77"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-92"}],"importedBy":[{"uid":"fe56-52"}]},"fe56-78":{"id":"/src/layout/components/PlainItem.tsx","moduleParts":{"layout/components/PlainItem.js":"fe56-79"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-92"},{"uid":"fe56-48"}],"importedBy":[{"uid":"fe56-52"}]},"fe56-80":{"id":"/src/content/components/ActionForm.tsx","moduleParts":{"content/components/ActionForm.js":"fe56-81"},"imported":[{"uid":"fe56-85"},{"uid":"fe56-97"},{"uid":"fe56-84"},{"uid":"fe56-92"}],"importedBy":[{"uid":"fe56-58"}]},"fe56-82":{"id":"/home/darkadept/dev/imperium/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"fe56-83"},"imported":[],"importedBy":[{"uid":"fe56-32"},{"uid":"fe56-34"}]},"fe56-84":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"fe56-10"},{"uid":"fe56-6"},{"uid":"fe56-8"},{"uid":"fe56-18"},{"uid":"fe56-16"},{"uid":"fe56-22"},{"uid":"fe56-20"},{"uid":"fe56-30"},{"uid":"fe56-36"},{"uid":"fe56-42"},{"uid":"fe56-44"},{"uid":"fe56-52"},{"uid":"fe56-50"},{"uid":"fe56-58"},{"uid":"fe56-74"},{"uid":"fe56-80"}],"isExternal":true},"fe56-85":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"fe56-10"},{"uid":"fe56-6"},{"uid":"fe56-8"},{"uid":"fe56-18"},{"uid":"fe56-16"},{"uid":"fe56-22"},{"uid":"fe56-20"},{"uid":"fe56-26"},{"uid":"fe56-24"},{"uid":"fe56-36"},{"uid":"fe56-38"},{"uid":"fe56-42"},{"uid":"fe56-44"},{"uid":"fe56-48"},{"uid":"fe56-52"},{"uid":"fe56-58"},{"uid":"fe56-54"},{"uid":"fe56-56"},{"uid":"fe56-60"},{"uid":"fe56-72"},{"uid":"fe56-74"},{"uid":"fe56-76"},{"uid":"fe56-78"},{"uid":"fe56-70"},{"uid":"fe56-80"}],"isExternal":true},"fe56-86":{"id":"react-redux","moduleParts":{},"imported":[],"importedBy":[{"uid":"fe56-10"},{"uid":"fe56-20"},{"uid":"fe56-24"}],"isExternal":true},"fe56-87":{"id":"react-responsive","moduleParts":{},"imported":[],"importedBy":[{"uid":"fe56-10"}],"isExternal":true},"fe56-88":{"id":"@imperium/state","moduleParts":{},"imported":[],"importedBy":[{"uid":"fe56-2"}],"isExternal":true},"fe56-89":{"id":"@reduxjs/toolkit","moduleParts":{},"imported":[],"importedBy":[{"uid":"fe56-2"}],"isExternal":true},"fe56-90":{"id":"lodash/fp/compose.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"fe56-18"}],"isExternal":true},"fe56-91":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"fe56-18"},{"uid":"fe56-48"},{"uid":"fe56-50"},{"uid":"fe56-60"}],"isExternal":true},"fe56-92":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"fe56-22"},{"uid":"fe56-36"},{"uid":"fe56-38"},{"uid":"fe56-44"},{"uid":"fe56-48"},{"uid":"fe56-52"},{"uid":"fe56-58"},{"uid":"fe56-54"},{"uid":"fe56-60"},{"uid":"fe56-74"},{"uid":"fe56-76"},{"uid":"fe56-78"},{"uid":"fe56-70"},{"uid":"fe56-80"}],"isExternal":true},"fe56-93":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"fe56-20"},{"uid":"fe56-30"},{"uid":"fe56-28"},{"uid":"fe56-50"},{"uid":"fe56-66"},{"uid":"fe56-68"}],"isExternal":true},"fe56-94":{"id":"mingo","moduleParts":{},"imported":[],"importedBy":[{"uid":"fe56-44"},{"uid":"fe56-52"}],"isExternal":true},"fe56-95":{"id":"@imperium/auth-client","moduleParts":{},"imported":[],"importedBy":[{"uid":"fe56-50"}],"isExternal":true},"fe56-96":{"id":"react-router","moduleParts":{},"imported":[],"importedBy":[{"uid":"fe56-64"}],"isExternal":true},"fe56-97":{"id":"@thx/controls","moduleParts":{},"imported":[],"importedBy":[{"uid":"fe56-80"}],"isExternal":true}},"env":{"rollup":"2.70.1"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
2672
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src/index.ts","uid":"466d-1"}]},{"name":"state.js","children":[{"name":"src/state.ts","uid":"466d-3"}]},{"name":"content/dividerSidebarItem.js","children":[{"name":"src/content/dividerSidebarItem.ts","uid":"466d-5"}]},{"name":"layout/withLayout.js","children":[{"name":"src/layout/withLayout.tsx","uid":"466d-7"}]},{"name":"content/createPages.js","children":[{"name":"src/content/createPages.tsx","uid":"466d-9"}]},{"name":"layout/hooks/useMobileLayout.js","children":[{"name":"src/layout/hooks/useMobileLayout.ts","uid":"466d-11"}]},{"name":"types.js","children":[{"name":"src/types.ts","uid":"466d-13"}]},{"name":"content/types.js","children":[{"name":"src/content/types.ts","uid":"466d-15"}]},{"name":"datahooks/DataHooks.js","children":[{"name":"src/datahooks/DataHooks.tsx","uid":"466d-17"}]},{"name":"datahooks/PermissionHooks.js","children":[{"name":"src/datahooks/PermissionHooks.tsx","uid":"466d-19"}]},{"name":"datahooks/Permissions.js","children":[{"name":"src/datahooks/Permissions.tsx","uid":"466d-21"}]},{"name":"layout/components/Layout.js","children":[{"name":"src/layout/components/Layout.tsx","uid":"466d-23"}]},{"name":"content/components/ContentComponent.js","children":[{"name":"src/content/components/ContentComponent.tsx","uid":"466d-25"}]},{"name":"utils.js","children":[{"name":"src/utils.ts","uid":"466d-27"}]},{"name":"datahooks/ExecuteDataHook.js","children":[{"name":"src/datahooks/ExecuteDataHook.tsx","uid":"466d-29"}]},{"name":"datahooks/ExecutePermissionHook.js","children":[{"name":"src/datahooks/ExecutePermissionHook.tsx","uid":"466d-31"}]},{"name":"layout/moveItems.js","children":[{"name":"src/layout/moveItems.ts","uid":"466d-33"}]},{"name":"layout/components/styles.module.css.js","children":[{"name":"src/layout/components/styles.module.css","uid":"466d-35"}]},{"name":"content/components/styles.module.css.js","children":[{"name":"src/content/components/styles.module.css","uid":"466d-37"}]},{"name":"layout/components/LayoutItemBar.js","children":[{"name":"src/layout/components/LayoutItemBar.tsx","uid":"466d-39"}]},{"name":"layout/components/SecondaryMenuToggleItem.js","children":[{"name":"src/layout/components/SecondaryMenuToggleItem.tsx","uid":"466d-41"}]},{"name":"content/hooks/useBuildContentData.js","children":[{"name":"src/content/hooks/useBuildContentData.ts","uid":"466d-43"}]},{"name":"content/components/Header.js","children":[{"name":"src/content/components/Header.tsx","uid":"466d-45"}]},{"name":"content/components/SidebarItemWrapper.js","children":[{"name":"src/content/components/SidebarItemWrapper.tsx","uid":"466d-47"}]},{"name":"layout/types.js","children":[{"name":"src/layout/types.ts","uid":"466d-49"}]},{"name":"layout/utils.js","children":[{"name":"src/layout/utils.tsx","uid":"466d-51"}]},{"name":"hooks/useBuildData.js","children":[{"name":"src/hooks/useBuildData.ts","uid":"466d-53"}]},{"name":"layout/components/LayoutItemWrapper.js","children":[{"name":"src/layout/components/LayoutItemWrapper.tsx","uid":"466d-55"}]},{"name":"content/components/ActionFormSidebarItemComponent.js","children":[{"name":"src/content/components/ActionFormSidebarItemComponent.tsx","uid":"466d-57"}]},{"name":"content/components/ActionSidebarItemComponent.js","children":[{"name":"src/content/components/ActionSidebarItemComponent.tsx","uid":"466d-59"}]},{"name":"content/components/CustomSidebarItemComponent.js","children":[{"name":"src/content/components/CustomSidebarItemComponent.tsx","uid":"466d-61"}]},{"name":"content/components/PlainSidebarItem.js","children":[{"name":"src/content/components/PlainSidebarItem.tsx","uid":"466d-63"}]},{"name":"commonItems.js","children":[{"name":"src/commonItems.ts","uid":"466d-65"}]},{"name":"hooks/useIsActiveRoute.js","children":[{"name":"src/hooks/useIsActiveRoute.ts","uid":"466d-67"}]},{"name":"hooks/useSelectPermission.js","children":[{"name":"src/hooks/useSelectPermission.ts","uid":"466d-69"}]},{"name":"hooks/useSelectState.js","children":[{"name":"src/hooks/useSelectState.ts","uid":"466d-71"}]},{"name":"content/utils.js","children":[{"name":"src/content/utils.tsx","uid":"466d-73"}]},{"name":"layout/components/CustomLayoutItemComponent.js","children":[{"name":"src/layout/components/CustomLayoutItemComponent.tsx","uid":"466d-75"}]},{"name":"layout/components/DropdownItem.js","children":[{"name":"src/layout/components/DropdownItem.tsx","uid":"466d-77"}]},{"name":"layout/components/MenuItem.js","children":[{"name":"src/layout/components/MenuItem.tsx","uid":"466d-79"}]},{"name":"layout/components/PlainItem.js","children":[{"name":"src/layout/components/PlainItem.tsx","uid":"466d-81"}]},{"name":"content/components/ActionForm.js","children":[{"name":"src/content/components/ActionForm.tsx","uid":"466d-83"}]},{"name":"external/style-inject/dist/style-inject.es.js","children":[{"name":"home/runner/work/imperium/imperium/node_modules/style-inject/dist/style-inject.es.js","uid":"466d-85"}]}],"isRoot":true},"nodeParts":{"466d-1":{"renderedLength":184,"gzipLength":151,"brotliLength":131,"mainUid":"466d-0"},"466d-3":{"renderedLength":489,"gzipLength":251,"brotliLength":217,"mainUid":"466d-2"},"466d-5":{"renderedLength":59,"gzipLength":71,"brotliLength":63,"mainUid":"466d-4"},"466d-7":{"renderedLength":1955,"gzipLength":564,"brotliLength":488,"mainUid":"466d-6"},"466d-9":{"renderedLength":650,"gzipLength":300,"brotliLength":268,"mainUid":"466d-8"},"466d-11":{"renderedLength":445,"gzipLength":266,"brotliLength":229,"mainUid":"466d-10"},"466d-13":{"renderedLength":121,"gzipLength":110,"brotliLength":90,"mainUid":"466d-12"},"466d-15":{"renderedLength":315,"gzipLength":141,"brotliLength":99,"mainUid":"466d-14"},"466d-17":{"renderedLength":997,"gzipLength":371,"brotliLength":309,"mainUid":"466d-16"},"466d-19":{"renderedLength":339,"gzipLength":201,"brotliLength":164,"mainUid":"466d-18"},"466d-21":{"renderedLength":663,"gzipLength":328,"brotliLength":285,"mainUid":"466d-20"},"466d-23":{"renderedLength":2629,"gzipLength":741,"brotliLength":631,"mainUid":"466d-22"},"466d-25":{"renderedLength":1970,"gzipLength":651,"brotliLength":565,"mainUid":"466d-24"},"466d-27":{"renderedLength":145,"gzipLength":117,"brotliLength":116,"mainUid":"466d-26"},"466d-29":{"renderedLength":95,"gzipLength":91,"brotliLength":75,"mainUid":"466d-28"},"466d-31":{"renderedLength":345,"gzipLength":206,"brotliLength":172,"mainUid":"466d-30"},"466d-33":{"renderedLength":1401,"gzipLength":377,"brotliLength":347,"mainUid":"466d-32"},"466d-35":{"renderedLength":3176,"gzipLength":933,"brotliLength":762,"mainUid":"466d-34"},"466d-37":{"renderedLength":1469,"gzipLength":528,"brotliLength":431,"mainUid":"466d-36"},"466d-39":{"renderedLength":726,"gzipLength":295,"brotliLength":252,"mainUid":"466d-38"},"466d-41":{"renderedLength":335,"gzipLength":222,"brotliLength":169,"mainUid":"466d-40"},"466d-43":{"renderedLength":257,"gzipLength":158,"brotliLength":122,"mainUid":"466d-42"},"466d-45":{"renderedLength":556,"gzipLength":286,"brotliLength":215,"mainUid":"466d-44"},"466d-47":{"renderedLength":1189,"gzipLength":399,"brotliLength":314,"mainUid":"466d-46"},"466d-49":{"renderedLength":191,"gzipLength":111,"brotliLength":89,"mainUid":"466d-48"},"466d-51":{"renderedLength":915,"gzipLength":392,"brotliLength":328,"mainUid":"466d-50"},"466d-53":{"renderedLength":785,"gzipLength":362,"brotliLength":321,"mainUid":"466d-52"},"466d-55":{"renderedLength":1503,"gzipLength":488,"brotliLength":399,"mainUid":"466d-54"},"466d-57":{"renderedLength":663,"gzipLength":344,"brotliLength":277,"mainUid":"466d-56"},"466d-59":{"renderedLength":362,"gzipLength":244,"brotliLength":185,"mainUid":"466d-58"},"466d-61":{"renderedLength":83,"gzipLength":96,"brotliLength":66,"mainUid":"466d-60"},"466d-63":{"renderedLength":344,"gzipLength":235,"brotliLength":186,"mainUid":"466d-62"},"466d-65":{"renderedLength":203,"gzipLength":136,"brotliLength":97,"mainUid":"466d-64"},"466d-67":{"renderedLength":514,"gzipLength":229,"brotliLength":187,"mainUid":"466d-66"},"466d-69":{"renderedLength":294,"gzipLength":154,"brotliLength":114,"mainUid":"466d-68"},"466d-71":{"renderedLength":254,"gzipLength":142,"brotliLength":108,"mainUid":"466d-70"},"466d-73":{"renderedLength":628,"gzipLength":259,"brotliLength":219,"mainUid":"466d-72"},"466d-75":{"renderedLength":82,"gzipLength":95,"brotliLength":66,"mainUid":"466d-74"},"466d-77":{"renderedLength":1179,"gzipLength":451,"brotliLength":362,"mainUid":"466d-76"},"466d-79":{"renderedLength":252,"gzipLength":159,"brotliLength":116,"mainUid":"466d-78"},"466d-81":{"renderedLength":244,"gzipLength":178,"brotliLength":145,"mainUid":"466d-80"},"466d-83":{"renderedLength":1667,"gzipLength":625,"brotliLength":519,"mainUid":"466d-82"},"466d-85":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"466d-84"}},"nodeMetas":{"466d-0":{"id":"/src/index.ts","moduleParts":{"index.js":"466d-1"},"imported":[{"uid":"466d-10"},{"uid":"466d-6"},{"uid":"466d-2"},{"uid":"466d-8"},{"uid":"466d-4"}],"importedBy":[],"isEntry":true},"466d-2":{"id":"/src/state.ts","moduleParts":{"state.js":"466d-3"},"imported":[{"uid":"466d-90"},{"uid":"466d-91"}],"importedBy":[{"uid":"466d-0"},{"uid":"466d-10"},{"uid":"466d-20"},{"uid":"466d-22"},{"uid":"466d-24"},{"uid":"466d-30"},{"uid":"466d-52"}]},"466d-4":{"id":"/src/content/dividerSidebarItem.ts","moduleParts":{"content/dividerSidebarItem.js":"466d-5"},"imported":[],"importedBy":[{"uid":"466d-0"}]},"466d-6":{"id":"/src/layout/withLayout.tsx","moduleParts":{"layout/withLayout.js":"466d-7"},"imported":[{"uid":"466d-87"},{"uid":"466d-86"},{"uid":"466d-16"},{"uid":"466d-18"},{"uid":"466d-20"},{"uid":"466d-12"},{"uid":"466d-22"}],"importedBy":[{"uid":"466d-0"}]},"466d-8":{"id":"/src/content/createPages.tsx","moduleParts":{"content/createPages.js":"466d-9"},"imported":[{"uid":"466d-87"},{"uid":"466d-86"},{"uid":"466d-24"},{"uid":"466d-14"}],"importedBy":[{"uid":"466d-0"}]},"466d-10":{"id":"/src/layout/hooks/useMobileLayout.ts","moduleParts":{"layout/hooks/useMobileLayout.js":"466d-11"},"imported":[{"uid":"466d-86"},{"uid":"466d-87"},{"uid":"466d-88"},{"uid":"466d-89"},{"uid":"466d-2"}],"importedBy":[{"uid":"466d-0"}]},"466d-12":{"id":"/src/types.ts","moduleParts":{"types.js":"466d-13"},"imported":[],"importedBy":[{"uid":"466d-6"}]},"466d-14":{"id":"/src/content/types.ts","moduleParts":{"content/types.js":"466d-15"},"imported":[],"importedBy":[{"uid":"466d-8"},{"uid":"466d-46"}]},"466d-16":{"id":"/src/datahooks/DataHooks.tsx","moduleParts":{"datahooks/DataHooks.js":"466d-17"},"imported":[{"uid":"466d-87"},{"uid":"466d-86"},{"uid":"466d-92"},{"uid":"466d-93"},{"uid":"466d-28"}],"importedBy":[{"uid":"466d-6"},{"uid":"466d-24"}]},"466d-18":{"id":"/src/datahooks/PermissionHooks.tsx","moduleParts":{"datahooks/PermissionHooks.js":"466d-19"},"imported":[{"uid":"466d-87"},{"uid":"466d-86"},{"uid":"466d-30"}],"importedBy":[{"uid":"466d-6"}]},"466d-20":{"id":"/src/datahooks/Permissions.tsx","moduleParts":{"datahooks/Permissions.js":"466d-21"},"imported":[{"uid":"466d-87"},{"uid":"466d-94"},{"uid":"466d-86"},{"uid":"466d-88"},{"uid":"466d-2"}],"importedBy":[{"uid":"466d-6"}]},"466d-22":{"id":"/src/layout/components/Layout.tsx","moduleParts":{"layout/components/Layout.js":"466d-23"},"imported":[{"uid":"466d-87"},{"uid":"466d-86"},{"uid":"466d-95"},{"uid":"466d-2"},{"uid":"466d-32"},{"uid":"466d-38"},{"uid":"466d-40"},{"uid":"466d-34"}],"importedBy":[{"uid":"466d-6"}]},"466d-24":{"id":"/src/content/components/ContentComponent.tsx","moduleParts":{"content/components/ContentComponent.js":"466d-25"},"imported":[{"uid":"466d-87"},{"uid":"466d-86"},{"uid":"466d-96"},{"uid":"466d-88"},{"uid":"466d-16"},{"uid":"466d-2"},{"uid":"466d-26"},{"uid":"466d-42"},{"uid":"466d-44"},{"uid":"466d-46"},{"uid":"466d-36"}],"importedBy":[{"uid":"466d-8"}]},"466d-26":{"id":"/src/utils.ts","moduleParts":{"utils.js":"466d-27"},"imported":[{"uid":"466d-96"}],"importedBy":[{"uid":"466d-24"},{"uid":"466d-38"},{"uid":"466d-54"}]},"466d-28":{"id":"/src/datahooks/ExecuteDataHook.tsx","moduleParts":{"datahooks/ExecuteDataHook.js":"466d-29"},"imported":[{"uid":"466d-87"}],"importedBy":[{"uid":"466d-16"}]},"466d-30":{"id":"/src/datahooks/ExecutePermissionHook.tsx","moduleParts":{"datahooks/ExecutePermissionHook.js":"466d-31"},"imported":[{"uid":"466d-87"},{"uid":"466d-88"},{"uid":"466d-2"}],"importedBy":[{"uid":"466d-18"}]},"466d-32":{"id":"/src/layout/moveItems.ts","moduleParts":{"layout/moveItems.js":"466d-33"},"imported":[{"uid":"466d-86"},{"uid":"466d-96"},{"uid":"466d-48"}],"importedBy":[{"uid":"466d-22"}]},"466d-34":{"id":"/src/layout/components/styles.module.css","moduleParts":{"layout/components/styles.module.css.js":"466d-35"},"imported":[{"uid":"466d-84"}],"importedBy":[{"uid":"466d-22"},{"uid":"466d-40"},{"uid":"466d-76"}]},"466d-36":{"id":"/src/content/components/styles.module.css","moduleParts":{"content/components/styles.module.css.js":"466d-37"},"imported":[{"uid":"466d-84"}],"importedBy":[{"uid":"466d-24"},{"uid":"466d-44"}]},"466d-38":{"id":"/src/layout/components/LayoutItemBar.tsx","moduleParts":{"layout/components/LayoutItemBar.js":"466d-39"},"imported":[{"uid":"466d-87"},{"uid":"466d-86"},{"uid":"466d-95"},{"uid":"466d-26"},{"uid":"466d-50"},{"uid":"466d-54"}],"importedBy":[{"uid":"466d-22"}]},"466d-40":{"id":"/src/layout/components/SecondaryMenuToggleItem.tsx","moduleParts":{"layout/components/SecondaryMenuToggleItem.js":"466d-41"},"imported":[{"uid":"466d-87"},{"uid":"466d-95"},{"uid":"466d-34"}],"importedBy":[{"uid":"466d-22"}]},"466d-42":{"id":"/src/content/hooks/useBuildContentData.ts","moduleParts":{"content/hooks/useBuildContentData.js":"466d-43"},"imported":[{"uid":"466d-52"}],"importedBy":[{"uid":"466d-24"},{"uid":"466d-46"}]},"466d-44":{"id":"/src/content/components/Header.tsx","moduleParts":{"content/components/Header.js":"466d-45"},"imported":[{"uid":"466d-87"},{"uid":"466d-86"},{"uid":"466d-36"}],"importedBy":[{"uid":"466d-24"}]},"466d-46":{"id":"/src/content/components/SidebarItemWrapper.tsx","moduleParts":{"content/components/SidebarItemWrapper.js":"466d-47"},"imported":[{"uid":"466d-87"},{"uid":"466d-86"},{"uid":"466d-97"},{"uid":"466d-95"},{"uid":"466d-42"},{"uid":"466d-14"},{"uid":"466d-56"},{"uid":"466d-58"},{"uid":"466d-60"},{"uid":"466d-62"}],"importedBy":[{"uid":"466d-24"}]},"466d-48":{"id":"/src/layout/types.ts","moduleParts":{"layout/types.js":"466d-49"},"imported":[],"importedBy":[{"uid":"466d-32"},{"uid":"466d-54"}]},"466d-50":{"id":"/src/layout/utils.tsx","moduleParts":{"layout/utils.js":"466d-51"},"imported":[{"uid":"466d-87"},{"uid":"466d-93"},{"uid":"466d-95"},{"uid":"466d-64"}],"importedBy":[{"uid":"466d-38"},{"uid":"466d-76"},{"uid":"466d-80"}]},"466d-52":{"id":"/src/hooks/useBuildData.ts","moduleParts":{"hooks/useBuildData.js":"466d-53"},"imported":[{"uid":"466d-94"},{"uid":"466d-86"},{"uid":"466d-96"},{"uid":"466d-93"},{"uid":"466d-2"},{"uid":"466d-66"},{"uid":"466d-68"},{"uid":"466d-70"}],"importedBy":[{"uid":"466d-42"},{"uid":"466d-54"}]},"466d-54":{"id":"/src/layout/components/LayoutItemWrapper.tsx","moduleParts":{"layout/components/LayoutItemWrapper.js":"466d-55"},"imported":[{"uid":"466d-87"},{"uid":"466d-86"},{"uid":"466d-97"},{"uid":"466d-95"},{"uid":"466d-52"},{"uid":"466d-26"},{"uid":"466d-48"},{"uid":"466d-74"},{"uid":"466d-76"},{"uid":"466d-78"},{"uid":"466d-80"}],"importedBy":[{"uid":"466d-38"}]},"466d-56":{"id":"/src/content/components/ActionFormSidebarItemComponent.tsx","moduleParts":{"content/components/ActionFormSidebarItemComponent.js":"466d-57"},"imported":[{"uid":"466d-87"},{"uid":"466d-86"},{"uid":"466d-95"},{"uid":"466d-72"},{"uid":"466d-82"}],"importedBy":[{"uid":"466d-46"}]},"466d-58":{"id":"/src/content/components/ActionSidebarItemComponent.tsx","moduleParts":{"content/components/ActionSidebarItemComponent.js":"466d-59"},"imported":[{"uid":"466d-87"},{"uid":"466d-95"},{"uid":"466d-72"}],"importedBy":[{"uid":"466d-46"}]},"466d-60":{"id":"/src/content/components/CustomSidebarItemComponent.tsx","moduleParts":{"content/components/CustomSidebarItemComponent.js":"466d-61"},"imported":[{"uid":"466d-87"}],"importedBy":[{"uid":"466d-46"}]},"466d-62":{"id":"/src/content/components/PlainSidebarItem.tsx","moduleParts":{"content/components/PlainSidebarItem.js":"466d-63"},"imported":[{"uid":"466d-87"},{"uid":"466d-93"},{"uid":"466d-95"},{"uid":"466d-72"}],"importedBy":[{"uid":"466d-46"}]},"466d-64":{"id":"/src/commonItems.ts","moduleParts":{"commonItems.js":"466d-65"},"imported":[],"importedBy":[{"uid":"466d-50"},{"uid":"466d-66"}]},"466d-66":{"id":"/src/hooks/useIsActiveRoute.ts","moduleParts":{"hooks/useIsActiveRoute.js":"466d-67"},"imported":[{"uid":"466d-98"},{"uid":"466d-64"}],"importedBy":[{"uid":"466d-52"}]},"466d-68":{"id":"/src/hooks/useSelectPermission.ts","moduleParts":{"hooks/useSelectPermission.js":"466d-69"},"imported":[{"uid":"466d-96"}],"importedBy":[{"uid":"466d-52"}]},"466d-70":{"id":"/src/hooks/useSelectState.ts","moduleParts":{"hooks/useSelectState.js":"466d-71"},"imported":[{"uid":"466d-96"}],"importedBy":[{"uid":"466d-52"}]},"466d-72":{"id":"/src/content/utils.tsx","moduleParts":{"content/utils.js":"466d-73"},"imported":[{"uid":"466d-87"},{"uid":"466d-95"}],"importedBy":[{"uid":"466d-56"},{"uid":"466d-58"},{"uid":"466d-62"}]},"466d-74":{"id":"/src/layout/components/CustomLayoutItemComponent.tsx","moduleParts":{"layout/components/CustomLayoutItemComponent.js":"466d-75"},"imported":[{"uid":"466d-87"}],"importedBy":[{"uid":"466d-54"}]},"466d-76":{"id":"/src/layout/components/DropdownItem.tsx","moduleParts":{"layout/components/DropdownItem.js":"466d-77"},"imported":[{"uid":"466d-87"},{"uid":"466d-86"},{"uid":"466d-95"},{"uid":"466d-50"},{"uid":"466d-34"}],"importedBy":[{"uid":"466d-54"}]},"466d-78":{"id":"/src/layout/components/MenuItem.tsx","moduleParts":{"layout/components/MenuItem.js":"466d-79"},"imported":[{"uid":"466d-87"},{"uid":"466d-95"}],"importedBy":[{"uid":"466d-54"}]},"466d-80":{"id":"/src/layout/components/PlainItem.tsx","moduleParts":{"layout/components/PlainItem.js":"466d-81"},"imported":[{"uid":"466d-87"},{"uid":"466d-95"},{"uid":"466d-50"}],"importedBy":[{"uid":"466d-54"}]},"466d-82":{"id":"/src/content/components/ActionForm.tsx","moduleParts":{"content/components/ActionForm.js":"466d-83"},"imported":[{"uid":"466d-87"},{"uid":"466d-99"},{"uid":"466d-86"},{"uid":"466d-95"}],"importedBy":[{"uid":"466d-56"}]},"466d-84":{"id":"/home/runner/work/imperium/imperium/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"466d-85"},"imported":[],"importedBy":[{"uid":"466d-34"},{"uid":"466d-36"}]},"466d-86":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"466d-10"},{"uid":"466d-6"},{"uid":"466d-8"},{"uid":"466d-16"},{"uid":"466d-18"},{"uid":"466d-20"},{"uid":"466d-22"},{"uid":"466d-24"},{"uid":"466d-32"},{"uid":"466d-38"},{"uid":"466d-44"},{"uid":"466d-46"},{"uid":"466d-54"},{"uid":"466d-52"},{"uid":"466d-56"},{"uid":"466d-76"},{"uid":"466d-82"}],"isExternal":true},"466d-87":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"466d-10"},{"uid":"466d-6"},{"uid":"466d-8"},{"uid":"466d-16"},{"uid":"466d-18"},{"uid":"466d-20"},{"uid":"466d-22"},{"uid":"466d-24"},{"uid":"466d-28"},{"uid":"466d-30"},{"uid":"466d-38"},{"uid":"466d-40"},{"uid":"466d-44"},{"uid":"466d-46"},{"uid":"466d-50"},{"uid":"466d-54"},{"uid":"466d-56"},{"uid":"466d-58"},{"uid":"466d-60"},{"uid":"466d-62"},{"uid":"466d-74"},{"uid":"466d-76"},{"uid":"466d-78"},{"uid":"466d-80"},{"uid":"466d-72"},{"uid":"466d-82"}],"isExternal":true},"466d-88":{"id":"react-redux","moduleParts":{},"imported":[],"importedBy":[{"uid":"466d-10"},{"uid":"466d-20"},{"uid":"466d-24"},{"uid":"466d-30"}],"isExternal":true},"466d-89":{"id":"react-responsive","moduleParts":{},"imported":[],"importedBy":[{"uid":"466d-10"}],"isExternal":true},"466d-90":{"id":"@imperium/state","moduleParts":{},"imported":[],"importedBy":[{"uid":"466d-2"}],"isExternal":true},"466d-91":{"id":"@reduxjs/toolkit","moduleParts":{},"imported":[],"importedBy":[{"uid":"466d-2"}],"isExternal":true},"466d-92":{"id":"lodash/fp/compose.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"466d-16"}],"isExternal":true},"466d-93":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"466d-16"},{"uid":"466d-50"},{"uid":"466d-52"},{"uid":"466d-62"}],"isExternal":true},"466d-94":{"id":"@imperium/auth-client","moduleParts":{},"imported":[],"importedBy":[{"uid":"466d-20"},{"uid":"466d-52"}],"isExternal":true},"466d-95":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"466d-22"},{"uid":"466d-38"},{"uid":"466d-40"},{"uid":"466d-46"},{"uid":"466d-50"},{"uid":"466d-54"},{"uid":"466d-56"},{"uid":"466d-58"},{"uid":"466d-62"},{"uid":"466d-76"},{"uid":"466d-78"},{"uid":"466d-80"},{"uid":"466d-72"},{"uid":"466d-82"}],"isExternal":true},"466d-96":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"466d-24"},{"uid":"466d-32"},{"uid":"466d-26"},{"uid":"466d-52"},{"uid":"466d-68"},{"uid":"466d-70"}],"isExternal":true},"466d-97":{"id":"mingo","moduleParts":{},"imported":[],"importedBy":[{"uid":"466d-46"},{"uid":"466d-54"}],"isExternal":true},"466d-98":{"id":"react-router","moduleParts":{},"imported":[],"importedBy":[{"uid":"466d-66"}],"isExternal":true},"466d-99":{"id":"@thx/controls","moduleParts":{},"imported":[],"importedBy":[{"uid":"466d-82"}],"isExternal":true}},"env":{"rollup":"2.70.1"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
2673
2673
 
2674
2674
  const run = () => {
2675
2675
  const width = window.innerWidth;
@@ -0,0 +1,6 @@
1
+ import type { PermissionSelector } from '../types';
2
+ interface PermissionsProps {
3
+ permissions: PermissionSelector;
4
+ }
5
+ export declare function Permissions({ permissions }: PermissionsProps): null;
6
+ export {};
@@ -2,7 +2,7 @@
2
2
  import type { SemanticICONS } from 'semantic-ui-react';
3
3
  import type { HorizontalPositionedItem, RouteItem, VisibilityItem, WeightedItem } from '../commonItems';
4
4
  import type { DataHookItem } from '../datahooks/types';
5
- import type { Data, PermissionSelectorHook } from '../types';
5
+ import type { Data, PermissionSelector, PermissionSelectorHook } from '../types';
6
6
  /**
7
7
  * Describes a basic weighted, possibly visible item
8
8
  */
@@ -35,6 +35,7 @@ export interface MenuLayoutItem extends BaseLayoutItem {
35
35
  export declare type LayoutItem = (BaseLayoutItem & RouteItem<Data>) | DropdownLayoutItem | MenuLayoutItem | CustomLayoutItem;
36
36
  export interface LayoutData {
37
37
  permissionSelectorHooks?: PermissionSelectorHook[];
38
+ permissions?: PermissionSelector;
38
39
  dataHooks?: DataHookItem[];
39
40
  primaryMenu?: (LayoutItem & HorizontalPositionedItem)[];
40
41
  statusbar?: (LayoutItem & HorizontalPositionedItem)[];
@@ -8,6 +8,7 @@ export declare type State = Record<string, any>;
8
8
  export declare type StateSelectorHook = () => State;
9
9
  export declare type PermissionResults = Record<string, boolean>;
10
10
  export declare type PermissionSelectorHook = (data: Data) => PermissionResults;
11
+ export declare type PermissionSelector = string[];
11
12
  /**
12
13
  * The visibility query can either be a mingo query or a function that returns a boolean. The data is an object with the router path merged with any state selector hook data.
13
14
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imperium/layout",
3
- "version": "10.3.5",
3
+ "version": "10.4.1-alpha.0+b063207",
4
4
  "description": "Imperium Layout package",
5
5
  "bugs": {
6
6
  "url": "https://github.com/darkadept/imperium/issues"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@imperium/auth-client": "^10.3.5",
34
+ "@imperium/auth-client": "^10.4.0",
35
35
  "@imperium/client": "^10.0.3",
36
36
  "@imperium/router": "^10.0.3",
37
37
  "@imperium/state": "^10.0.3",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "582ac2dc2882ed6abcb31ff5317a3236ba444d22"
61
+ "gitHead": "b063207c9e8f7460a5a6c7cace69ff4a6a89649d"
62
62
  }
package/dist/stats.txt DELETED
@@ -1,92 +0,0 @@
1
- -----------------------------
2
- Rollup File Analysis
3
- -----------------------------
4
- bundle size: 30.43 KB
5
- original size: 50.265 KB
6
- code reduction: 39.46 %
7
- module count: 42
8
-
9
- /src/layout/components/styles.module.css
10
- █████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 10.44 % (3.176 KB)
11
- /src/layout/components/Layout.tsx
12
- ████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 8.64 % (2.629 KB)
13
- /src/content/components/ContentComponent.tsx
14
- ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.47 % (1.97 KB)
15
- /src/layout/withLayout.tsx
16
- ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.71 % (1.739 KB)
17
- /src/content/components/ActionForm.tsx
18
- ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.48 % (1.667 KB)
19
- /src/layout/components/LayoutItemWrapper.tsx
20
- ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.94 % (1.503 KB)
21
- /src/content/components/styles.module.css
22
- ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.83 % (1.469 KB)
23
- /src/layout/moveItems.ts
24
- ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.6 % (1.401 KB)
25
- /src/content/components/SidebarItemWrapper.tsx
26
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.91 % (1.189 KB)
27
- /src/layout/components/DropdownItem.tsx
28
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.87 % (1.179 KB)
29
- /src/datahooks/DataHooks.tsx
30
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.28 % (997 Bytes)
31
- /src/layout/utils.tsx
32
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.01 % (915 Bytes)
33
- /src/hooks/useBuildData.ts
34
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.58 % (785 Bytes)
35
- /src/layout/components/LayoutItemBar.tsx
36
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.39 % (726 Bytes)
37
- /src/content/components/ActionFormSidebarItemComponent.tsx
38
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.18 % (663 Bytes)
39
- /src/content/createPages.tsx
40
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.14 % (650 Bytes)
41
- /home/darkadept/dev/imperium/node_modules/style-inject/dist/style-inject.es.js
42
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.09 % (636 Bytes)
43
- /src/content/utils.tsx
44
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.06 % (628 Bytes)
45
- /src/content/components/Header.tsx
46
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.83 % (556 Bytes)
47
- /src/hooks/useIsActiveRoute.ts
48
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.69 % (514 Bytes)
49
- /src/state.ts
50
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.61 % (489 Bytes)
51
- /src/layout/hooks/useMobileLayout.ts
52
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.46 % (445 Bytes)
53
- /src/content/components/ActionSidebarItemComponent.tsx
54
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.19 % (362 Bytes)
55
- /src/datahooks/ExecutePermissionHook.tsx
56
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.13 % (345 Bytes)
57
- /src/content/components/PlainSidebarItem.tsx
58
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.13 % (344 Bytes)
59
- /src/datahooks/PermissionHooks.tsx
60
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.11 % (339 Bytes)
61
- /src/layout/components/SecondaryMenuToggleItem.tsx
62
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.1 % (335 Bytes)
63
- /src/content/types.ts
64
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.04 % (315 Bytes)
65
- /src/hooks/useSelectPermission.ts
66
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.97 % (294 Bytes)
67
- /src/content/hooks/useBuildContentData.ts
68
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.84 % (257 Bytes)
69
- /src/hooks/useSelectState.ts
70
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.83 % (254 Bytes)
71
- /src/layout/components/MenuItem.tsx
72
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.83 % (252 Bytes)
73
- /src/layout/components/PlainItem.tsx
74
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.8 % (244 Bytes)
75
- /src/commonItems.ts
76
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.67 % (203 Bytes)
77
- /src/layout/types.ts
78
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.63 % (191 Bytes)
79
- /src/index.ts
80
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.6 % (184 Bytes)
81
- /src/utils.ts
82
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.48 % (145 Bytes)
83
- /src/types.ts
84
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.4 % (121 Bytes)
85
- /src/datahooks/ExecuteDataHook.tsx
86
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.31 % (95 Bytes)
87
- /src/content/components/CustomSidebarItemComponent.tsx
88
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.27 % (83 Bytes)
89
- /src/layout/components/CustomLayoutItemComponent.tsx
90
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.27 % (82 Bytes)
91
- /src/content/dividerSidebarItem.ts
92
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.19 % (59 Bytes)