@imperium/layout 14.5.0 → 14.5.1

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.
Files changed (46) hide show
  1. package/dist/esm/content/components/ContentComponent.js +1 -1
  2. package/dist/esm/content/components/ContentComponent.js.map +1 -1
  3. package/dist/esm/content/components/SidebarItemWrapper.js +1 -1
  4. package/dist/esm/content/components/SidebarItemWrapper.js.map +1 -1
  5. package/dist/esm/content/createPages.js +15 -48
  6. package/dist/esm/content/createPages.js.map +1 -1
  7. package/dist/esm/content/types.js.map +1 -1
  8. package/dist/esm/datahooks/Permissions.js +1 -1
  9. package/dist/esm/datahooks/Permissions.js.map +1 -1
  10. package/dist/esm/layout/components/LayoutItemWrapper.js +1 -1
  11. package/dist/esm/layout/components/LayoutItemWrapper.js.map +1 -1
  12. package/dist/esm/layout/moveItems.js +2 -2
  13. package/dist/esm/layout/moveItems.js.map +1 -1
  14. package/dist/esm/layout/withLayout.js +7 -7
  15. package/dist/esm/layout/withLayout.js.map +1 -1
  16. package/dist/esm/types.js.map +1 -1
  17. package/dist/stats.html +1 -1
  18. package/dist/stats.txt +47 -73
  19. package/dist/types/content/types.d.ts +1 -3
  20. package/package.json +6 -6
  21. package/dist/esm/_virtual/index.js +0 -4
  22. package/dist/esm/_virtual/index.js.map +0 -1
  23. package/dist/esm/_virtual/react-is.development.js +0 -4
  24. package/dist/esm/_virtual/react-is.development.js.map +0 -1
  25. package/dist/esm/_virtual/react-is.production.min.js +0 -4
  26. package/dist/esm/_virtual/react-is.production.min.js.map +0 -1
  27. package/dist/esm/external/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -9
  28. package/dist/esm/external/@babel/runtime/helpers/esm/assertThisInitialized.js.map +0 -1
  29. package/dist/esm/external/@babel/runtime/helpers/esm/extends.js +0 -17
  30. package/dist/esm/external/@babel/runtime/helpers/esm/extends.js.map +0 -1
  31. package/dist/esm/external/@babel/runtime/helpers/esm/inheritsLoose.js +0 -10
  32. package/dist/esm/external/@babel/runtime/helpers/esm/inheritsLoose.js.map +0 -1
  33. package/dist/esm/external/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -15
  34. package/dist/esm/external/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
  35. package/dist/esm/external/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -10
  36. package/dist/esm/external/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
  37. package/dist/esm/external/@loadable/component/dist/loadable.esm.js +0 -470
  38. package/dist/esm/external/@loadable/component/dist/loadable.esm.js.map +0 -1
  39. package/dist/esm/external/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -107
  40. package/dist/esm/external/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +0 -1
  41. package/dist/esm/external/react-is/cjs/react-is.development.js +0 -182
  42. package/dist/esm/external/react-is/cjs/react-is.development.js.map +0 -1
  43. package/dist/esm/external/react-is/cjs/react-is.production.min.js +0 -18
  44. package/dist/esm/external/react-is/cjs/react-is.production.min.js.map +0 -1
  45. package/dist/esm/external/react-is/index.js +0 -12
  46. package/dist/esm/external/react-is/index.js.map +0 -1
package/dist/stats.txt CHANGED
@@ -1,118 +1,92 @@
1
1
  -----------------------------
2
2
  Rollup File Analysis
3
3
  -----------------------------
4
- bundle size: 62.695 KB
5
- original size: 85.641 KB
6
- code reduction: 26.79 %
7
- module count: 55
4
+ bundle size: 34.027 KB
5
+ original size: 53.624 KB
6
+ code reduction: 36.55 %
7
+ module count: 42
8
8
 
9
- /home/artemis/Github/imperium/node_modules/@loadable/component/dist/loadable.esm.js
10
- ██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 20.81 % (13.044 KB)
11
- /home/artemis/Github/imperium/node_modules/react-is/cjs/react-is.development.js
12
- █████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11.62 % (7.286 KB)
13
9
  /src/content/components/ContentComponent.tsx
14
- ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.72 % (3.584 KB)
10
+ █████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 10.49 % (3.568 KB)
15
11
  /src/layout/components/styles.module.css
16
- ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.07 % (3.176 KB)
17
- /home/artemis/Github/imperium/node_modules/react-is/cjs/react-is.production.min.js
18
- ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.72 % (2.961 KB)
19
- /home/artemis/Github/imperium/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
20
- ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.37 % (2.739 KB)
12
+ ████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9.33 % (3.176 KB)
21
13
  /src/layout/components/Layout.tsx
22
- ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.01 % (2.512 KB)
14
+ ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.38 % (2.512 KB)
23
15
  /src/content/components/styles.module.css
24
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.38 % (2.119 KB)
16
+ ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.23 % (2.119 KB)
25
17
  /src/layout/withLayout.tsx
26
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.12 % (1.955 KB)
18
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.62 % (1.913 KB)
27
19
  /src/content/components/ActionForm.tsx
28
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.66 % (1.667 KB)
29
- /src/content/createPages.tsx
30
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.65 % (1.66 KB)
20
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.9 % (1.667 KB)
31
21
  /src/layout/components/LayoutItemWrapper.tsx
32
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.4 % (1.503 KB)
22
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.4 % (1.497 KB)
33
23
  /src/layout/moveItems.ts
34
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.23 % (1.401 KB)
24
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.15 % (1.413 KB)
35
25
  /src/content/components/SidebarItemWrapper.tsx
36
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.9 % (1.189 KB)
26
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.48 % (1.183 KB)
37
27
  /src/layout/components/DropdownItem.tsx
38
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.88 % (1.179 KB)
28
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.46 % (1.179 KB)
39
29
  /src/datahooks/DataHooks.tsx
40
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.69 % (1.058 KB)
30
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.11 % (1.058 KB)
41
31
  /src/content/components/Header.tsx
42
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.66 % (1.042 KB)
32
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.06 % (1.042 KB)
43
33
  /src/layout/utils.tsx
44
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.46 % (915 Bytes)
34
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.69 % (915 Bytes)
45
35
  /src/datahooks/Permissions.tsx
46
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.38 % (864 Bytes)
36
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.47 % (842 Bytes)
47
37
  /src/hooks/useBuildData.ts
48
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.27 % (799 Bytes)
38
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.35 % (799 Bytes)
49
39
  /src/layout/components/LayoutItemBar.tsx
50
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.16 % (726 Bytes)
40
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.13 % (726 Bytes)
41
+ /src/content/createPages.tsx
42
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.91 % (650 Bytes)
51
43
  /src/content/components/ActionFormSidebarItemComponent.tsx
52
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.03 % (644 Bytes)
44
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.89 % (644 Bytes)
53
45
  /home/artemis/Github/imperium/node_modules/style-inject/dist/style-inject.es.js
54
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.01 % (636 Bytes)
46
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.87 % (636 Bytes)
55
47
  /src/content/utils.tsx
56
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1 % (628 Bytes)
48
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.85 % (628 Bytes)
57
49
  /src/state.ts
58
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.94 % (591 Bytes)
50
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.74 % (591 Bytes)
59
51
  /src/hooks/useIsActiveRoute.ts
60
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.82 % (514 Bytes)
61
- /home/artemis/Github/imperium/node_modules/@babel/runtime/helpers/esm/extends.js
62
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.64 % (401 Bytes)
52
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.51 % (514 Bytes)
63
53
  /src/content/types.ts
64
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.62 % (388 Bytes)
54
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.14 % (388 Bytes)
65
55
  /src/layout/components/PlainItem.tsx
66
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.6 % (379 Bytes)
56
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.11 % (379 Bytes)
67
57
  /src/layout/components/SecondaryMenuToggleItem.tsx
68
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.57 % (356 Bytes)
58
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.05 % (356 Bytes)
69
59
  /src/datahooks/ExecutePermissionHook.tsx
70
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.55 % (345 Bytes)
60
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.01 % (345 Bytes)
71
61
  /src/content/components/ActionSidebarItemComponent.tsx
72
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.55 % (343 Bytes)
62
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.01 % (343 Bytes)
73
63
  /src/datahooks/PermissionHooks.tsx
74
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.54 % (339 Bytes)
75
- /home/artemis/Github/imperium/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
76
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.53 % (333 Bytes)
64
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1 % (339 Bytes)
77
65
  /src/hooks/useSelectState.ts
78
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.52 % (326 Bytes)
66
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.96 % (326 Bytes)
79
67
  /src/content/components/PlainSidebarItem.tsx
80
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.52 % (325 Bytes)
68
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.96 % (325 Bytes)
81
69
  /src/hooks/useSelectPermission.ts
82
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.47 % (294 Bytes)
70
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.86 % (294 Bytes)
83
71
  /src/content/hooks/useBuildContentData.ts
84
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.41 % (257 Bytes)
72
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.76 % (257 Bytes)
85
73
  /src/layout/components/MenuItem.tsx
86
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.4 % (252 Bytes)
87
- /home/artemis/Github/imperium/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
88
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.34 % (214 Bytes)
74
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.74 % (252 Bytes)
89
75
  /src/commonItems.ts
90
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.32 % (203 Bytes)
91
- /home/artemis/Github/imperium/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
92
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.31 % (195 Bytes)
76
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.6 % (203 Bytes)
93
77
  /src/layout/types.ts
94
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.3 % (191 Bytes)
95
- /home/artemis/Github/imperium/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
96
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.28 % (176 Bytes)
78
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.56 % (191 Bytes)
97
79
  /src/utils.ts
98
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.23 % (145 Bytes)
80
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.43 % (145 Bytes)
99
81
  /src/index.ts
100
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.23 % (144 Bytes)
101
- /home/artemis/Github/imperium/node_modules/react-is/index.js
102
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.22 % (140 Bytes)
82
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.42 % (144 Bytes)
103
83
  /src/datahooks/ExecuteDataHook.tsx
104
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.2 % (123 Bytes)
84
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.36 % (123 Bytes)
105
85
  /src/types.ts
106
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.19 % (121 Bytes)
86
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.36 % (121 Bytes)
107
87
  /src/content/components/CustomSidebarItemComponent.tsx
108
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.13 % (83 Bytes)
88
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.24 % (83 Bytes)
109
89
  /src/layout/components/CustomLayoutItemComponent.tsx
110
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.13 % (82 Bytes)
90
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.24 % (82 Bytes)
111
91
  /src/content/dividerSidebarItem.ts
112
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.09 % (59 Bytes)
113
- /home/artemis/Github/imperium/node_modules/react-is/cjs/react-is.production.min.js?commonjs-exports
114
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.05 % (32 Bytes)
115
- /home/artemis/Github/imperium/node_modules/react-is/cjs/react-is.development.js?commonjs-exports
116
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.05 % (29 Bytes)
117
- /home/artemis/Github/imperium/node_modules/react-is/index.js?commonjs-module
118
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.04 % (28 Bytes)
92
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.17 % (59 Bytes)
@@ -8,9 +8,7 @@ export type RouteParameters<T extends readonly string[] | undefined> = T extends
8
8
  export interface ContentData<T extends DefineRouteOptions, K extends keyof T> extends Data {
9
9
  params: RouteParameters<T[K]['params']>;
10
10
  }
11
- export type Content<T extends DefineRouteOptions, K extends keyof T> = (data: ContentData<T, K>) => Promise<{
12
- default: React.ComponentType<any>;
13
- }>;
11
+ export type Content<T extends DefineRouteOptions, K extends keyof T> = (data: ContentData<T, K>) => JSX.Element;
14
12
  export interface BaseSidebarItem<T extends DefineRouteOptions, K extends keyof T> extends WeightedItem, VisibilityItem {
15
13
  text: string | ((data: ContentData<T, K>) => string);
16
14
  icon?: SemanticICONS | ((data: ContentData<T, K>) => SemanticICONS);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imperium/layout",
3
- "version": "14.5.0",
3
+ "version": "14.5.1",
4
4
  "description": "Imperium Layout package",
5
5
  "bugs": {
6
6
  "url": "https://github.com/thr-consulting/imperium/issues"
@@ -31,10 +31,10 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@imperium/auth-client": "^14.5.0",
35
- "@imperium/client": "^14.0.0",
36
- "@imperium/router": "^14.5.0",
37
- "@imperium/state": "^14.5.0",
34
+ "@imperium/auth-client": "^14.5.1",
35
+ "@imperium/client": "^14.5.1",
36
+ "@imperium/router": "^14.5.1",
37
+ "@imperium/state": "^14.5.1",
38
38
  "@thx/controls": "^19.0.0",
39
39
  "debug": "^4.4.0",
40
40
  "history": "^5.0.1",
@@ -60,5 +60,5 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "f0a1f3e02c88790bde3d5ec642a8549dae035e18"
63
+ "gitHead": "7ef30adc3f5b2ceb0231b7fafd379be6327a07ef"
64
64
  }
@@ -1,4 +0,0 @@
1
- var reactIs = {exports: {}};
2
-
3
- export { reactIs as r };
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var reactIs_development = {};
2
-
3
- export { reactIs_development as __exports };
4
- //# sourceMappingURL=react-is.development.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-is.development.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var reactIs_production_min = {};
2
-
3
- export { reactIs_production_min as __exports };
4
- //# sourceMappingURL=react-is.production.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-is.production.min.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,9 +0,0 @@
1
- function _assertThisInitialized(self) {
2
- if (self === void 0) {
3
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
- }
5
- return self;
6
- }
7
-
8
- export { _assertThisInitialized as default };
9
- //# sourceMappingURL=assertThisInitialized.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assertThisInitialized.js","sources":["../../../../../../../../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"],"sourcesContent":["export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}"],"names":[],"mappings":"AAAe,SAAS,sBAAsB,CAAC,IAAI,EAAE;AACrD,EAAE,IAAI,IAAI,KAAK,KAAK,CAAC,EAAE;AACvB,IAAI,MAAM,IAAI,cAAc,CAAC,2DAA2D,CAAC,CAAC;AAC1F,GAAG;AACH,EAAE,OAAO,IAAI,CAAC;AACd;;;;"}
@@ -1,17 +0,0 @@
1
- function _extends() {
2
- _extends = Object.assign ? Object.assign.bind() : function (target) {
3
- for (var i = 1; i < arguments.length; i++) {
4
- var source = arguments[i];
5
- for (var key in source) {
6
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7
- target[key] = source[key];
8
- }
9
- }
10
- }
11
- return target;
12
- };
13
- return _extends.apply(this, arguments);
14
- }
15
-
16
- export { _extends as default };
17
- //# sourceMappingURL=extends.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extends.js","sources":["../../../../../../../../../node_modules/@babel/runtime/helpers/esm/extends.js"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}"],"names":[],"mappings":"AAAe,SAAS,QAAQ,GAAG;AACnC,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE;AACtE,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC/C,MAAM,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE;AAC9B,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE;AAC/D,UAAU,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AACpC,SAAS;AACT,OAAO;AACP,KAAK;AACL,IAAI,OAAO,MAAM,CAAC;AAClB,GAAG,CAAC;AACJ,EAAE,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AACzC;;;;"}
@@ -1,10 +0,0 @@
1
- import _setPrototypeOf from './setPrototypeOf.js';
2
-
3
- function _inheritsLoose(subClass, superClass) {
4
- subClass.prototype = Object.create(superClass.prototype);
5
- subClass.prototype.constructor = subClass;
6
- _setPrototypeOf(subClass, superClass);
7
- }
8
-
9
- export { _inheritsLoose as default };
10
- //# sourceMappingURL=inheritsLoose.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,15 +0,0 @@
1
- function _objectWithoutPropertiesLoose(source, excluded) {
2
- if (source == null) return {};
3
- var target = {};
4
- var sourceKeys = Object.keys(source);
5
- var key, i;
6
- for (i = 0; i < sourceKeys.length; i++) {
7
- key = sourceKeys[i];
8
- if (excluded.indexOf(key) >= 0) continue;
9
- target[key] = source[key];
10
- }
11
- return target;
12
- }
13
-
14
- export { _objectWithoutPropertiesLoose as default };
15
- //# sourceMappingURL=objectWithoutPropertiesLoose.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"objectWithoutPropertiesLoose.js","sources":["../../../../../../../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"],"sourcesContent":["export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}"],"names":[],"mappings":"AAAe,SAAS,6BAA6B,CAAC,MAAM,EAAE,QAAQ,EAAE;AACxE,EAAE,IAAI,MAAM,IAAI,IAAI,EAAE,OAAO,EAAE,CAAC;AAChC,EAAE,IAAI,MAAM,GAAG,EAAE,CAAC;AAClB,EAAE,IAAI,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACvC,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;AACb,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC1C,IAAI,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;AACxB,IAAI,IAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS;AAC7C,IAAI,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AAC9B,GAAG;AACH,EAAE,OAAO,MAAM,CAAC;AAChB;;;;"}
@@ -1,10 +0,0 @@
1
- function _setPrototypeOf(o, p) {
2
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
3
- o.__proto__ = p;
4
- return o;
5
- };
6
- return _setPrototypeOf(o, p);
7
- }
8
-
9
- export { _setPrototypeOf as default };
10
- //# sourceMappingURL=setPrototypeOf.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setPrototypeOf.js","sources":["../../../../../../../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"],"sourcesContent":["export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}"],"names":[],"mappings":"AAAe,SAAS,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE;AAC9C,EAAE,eAAe,GAAG,MAAM,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,SAAS,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE;AAC1G,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC;AACpB,IAAI,OAAO,CAAC,CAAC;AACb,GAAG,CAAC;AACJ,EAAE,OAAO,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC/B;;;;"}