@webiny/app-admin-ui 6.3.0-beta.4 → 6.4.0-beta.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.
Files changed (62) hide show
  1. package/Dashboard/Welcome.js +29 -33
  2. package/Dashboard/Welcome.js.map +1 -1
  3. package/Dashboard/components/AssistanceWidget.js +51 -52
  4. package/Dashboard/components/AssistanceWidget.js.map +1 -1
  5. package/Dashboard/components/CommunityWidget.js +55 -63
  6. package/Dashboard/components/CommunityWidget.js.map +1 -1
  7. package/Dashboard/components/MissingPermissionsWidget.js +13 -14
  8. package/Dashboard/components/MissingPermissionsWidget.js.map +1 -1
  9. package/Dashboard/components/assets/github.js +14 -0
  10. package/Dashboard/components/assets/github.js.map +1 -0
  11. package/Dashboard/components/assets/slack.js +27 -0
  12. package/Dashboard/components/assets/slack.js.map +1 -0
  13. package/Dashboard/components/assets/x-twitter.js +18 -0
  14. package/Dashboard/components/assets/x-twitter.js.map +1 -0
  15. package/Dashboard/components/assets/youtube.js +28 -0
  16. package/Dashboard/components/assets/youtube.js.map +1 -0
  17. package/Dashboard/components/index.js +0 -2
  18. package/Dashboard.js +6 -7
  19. package/Dashboard.js.map +1 -1
  20. package/Dialog/DialogContainer.js +54 -66
  21. package/Dialog/DialogContainer.js.map +1 -1
  22. package/Dialog/DialogProvider.js +5 -8
  23. package/Dialog/DialogProvider.js.map +1 -1
  24. package/Dialog.js +5 -9
  25. package/Dialog.js.map +1 -1
  26. package/Layout.js +22 -30
  27. package/Layout.js.map +1 -1
  28. package/Logo.js +12 -16
  29. package/Logo.js.map +1 -1
  30. package/Navigation/Navigation.js +30 -34
  31. package/Navigation/Navigation.js.map +1 -1
  32. package/Navigation/SidebarMenuItems.js +32 -44
  33. package/Navigation/SidebarMenuItems.js.map +1 -1
  34. package/Navigation/SidebarProvider.js +21 -29
  35. package/Navigation/SidebarProvider.js.map +1 -1
  36. package/Navigation.js +6 -7
  37. package/Navigation.js.map +1 -1
  38. package/NotFound/notFound.js +297 -0
  39. package/NotFound/notFound.js.map +1 -0
  40. package/NotFound.js +17 -18
  41. package/NotFound.js.map +1 -1
  42. package/UserMenu/UserMenu.js +17 -25
  43. package/UserMenu/UserMenu.js.map +1 -1
  44. package/UserMenu/UserMenuHandle.js +33 -46
  45. package/UserMenu/UserMenuHandle.js.map +1 -1
  46. package/UserMenu/UserMenuItem.js +9 -12
  47. package/UserMenu/UserMenuItem.js.map +1 -1
  48. package/UserMenu/UserMenuLink.js +9 -12
  49. package/UserMenu/UserMenuLink.js.map +1 -1
  50. package/UserMenu/UserMenuSeparator.js +9 -9
  51. package/UserMenu/UserMenuSeparator.js.map +1 -1
  52. package/UserMenu.js +4 -5
  53. package/UserMenu.js.map +1 -1
  54. package/index.js +13 -14
  55. package/index.js.map +1 -1
  56. package/package.json +7 -8
  57. package/static/svg/github.08a73b00.svg +1 -0
  58. package/static/svg/notFound.e8b15981.svg +1 -0
  59. package/static/svg/slack.1b2ba162.svg +8 -0
  60. package/static/svg/x-twitter.46e7218c.svg +5 -0
  61. package/static/svg/youtube.3c232651.svg +11 -0
  62. package/Dashboard/components/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"names":["React","useMemo","SidebarProvider","AdminUiSidebar","useLocalStorage","useLocalStorageValue","SIDEBAR_STATE_KEY","Component","props","rawState","set","state","JSON","parse","undefined","onChangeState","newState","stringify","createElement"],"sources":["SidebarProvider.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { SidebarProvider as AdminUiSidebar } from \"@webiny/admin-ui\";\nimport { useLocalStorage, useLocalStorageValue } from \"@webiny/app\";\n\ninterface NavigationProviderProps {\n children?: React.ReactNode;\n}\n\nconst SIDEBAR_STATE_KEY = \"navigation/state\";\n\ntype SidebarState = {\n pinned: boolean;\n expandedSections: string[];\n pinnedItems: string[];\n};\n\nexport const SidebarProvider = (Component: React.ComponentType<NavigationProviderProps>) => {\n return function SidebarProvider(props: NavigationProviderProps) {\n const rawState = useLocalStorageValue(SIDEBAR_STATE_KEY);\n const { set } = useLocalStorage();\n\n const state = useMemo(() => {\n try {\n if (typeof rawState === \"object\" && rawState !== null) {\n return rawState as SidebarState;\n }\n if (typeof rawState === \"string\") {\n return JSON.parse(rawState) as SidebarState;\n }\n } catch {\n // Ignore parse errors\n }\n return undefined;\n }, [rawState]);\n\n const onChangeState = (newState: SidebarState) => {\n set(SIDEBAR_STATE_KEY, JSON.stringify(newState));\n };\n\n return (\n <AdminUiSidebar state={state} onChangeState={onChangeState}>\n <Component {...props} />\n </AdminUiSidebar>\n );\n };\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,eAAe,IAAIC,cAAc,QAAQ,kBAAkB;AACpE,SAASC,eAAe,EAAEC,oBAAoB,QAAQ,aAAa;AAMnE,MAAMC,iBAAiB,GAAG,kBAAkB;AAQ5C,OAAO,MAAMJ,eAAe,GAAIK,SAAuD,IAAK;EACxF,OAAO,SAASL,eAAeA,CAACM,KAA8B,EAAE;IAC5D,MAAMC,QAAQ,GAAGJ,oBAAoB,CAACC,iBAAiB,CAAC;IACxD,MAAM;MAAEI;IAAI,CAAC,GAAGN,eAAe,CAAC,CAAC;IAEjC,MAAMO,KAAK,GAAGV,OAAO,CAAC,MAAM;MACxB,IAAI;QACA,IAAI,OAAOQ,QAAQ,KAAK,QAAQ,IAAIA,QAAQ,KAAK,IAAI,EAAE;UACnD,OAAOA,QAAQ;QACnB;QACA,IAAI,OAAOA,QAAQ,KAAK,QAAQ,EAAE;UAC9B,OAAOG,IAAI,CAACC,KAAK,CAACJ,QAAQ,CAAC;QAC/B;MACJ,CAAC,CAAC,MAAM;QACJ;MAAA;MAEJ,OAAOK,SAAS;IACpB,CAAC,EAAE,CAACL,QAAQ,CAAC,CAAC;IAEd,MAAMM,aAAa,GAAIC,QAAsB,IAAK;MAC9CN,GAAG,CAACJ,iBAAiB,EAAEM,IAAI,CAACK,SAAS,CAACD,QAAQ,CAAC,CAAC;IACpD,CAAC;IAED,oBACIhB,KAAA,CAAAkB,aAAA,CAACf,cAAc;MAACQ,KAAK,EAAEA,KAAM;MAACI,aAAa,EAAEA;IAAc,gBACvDf,KAAA,CAAAkB,aAAA,CAACX,SAAS,EAAKC,KAAQ,CACX,CAAC;EAEzB,CAAC;AACL,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Navigation/SidebarProvider.js","sources":["../../src/Navigation/SidebarProvider.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { SidebarProvider as AdminUiSidebar } from \"@webiny/admin-ui\";\nimport { useLocalStorage, useLocalStorageValue } from \"@webiny/app\";\n\ninterface NavigationProviderProps {\n children?: React.ReactNode;\n}\n\nconst SIDEBAR_STATE_KEY = \"navigation/state\";\n\ntype SidebarState = {\n pinned: boolean;\n expandedSections: string[];\n pinnedItems: string[];\n};\n\nexport const SidebarProvider = (Component: React.ComponentType<NavigationProviderProps>) => {\n return function SidebarProvider(props: NavigationProviderProps) {\n const rawState = useLocalStorageValue(SIDEBAR_STATE_KEY);\n const { set } = useLocalStorage();\n\n const state = useMemo(() => {\n try {\n if (typeof rawState === \"object\" && rawState !== null) {\n return rawState as SidebarState;\n }\n if (typeof rawState === \"string\") {\n return JSON.parse(rawState) as SidebarState;\n }\n } catch {\n // Ignore parse errors\n }\n return undefined;\n }, [rawState]);\n\n const onChangeState = (newState: SidebarState) => {\n set(SIDEBAR_STATE_KEY, JSON.stringify(newState));\n };\n\n return (\n <AdminUiSidebar state={state} onChangeState={onChangeState}>\n <Component {...props} />\n </AdminUiSidebar>\n );\n };\n};\n"],"names":["SIDEBAR_STATE_KEY","SidebarProvider","Component","props","rawState","useLocalStorageValue","set","useLocalStorage","state","useMemo","JSON","onChangeState","newState","AdminUiSidebar"],"mappings":";;;AAQA,MAAMA,oBAAoB;AAQnB,MAAMC,kCAAkB,CAACC,YACrB,SAAyBC,KAA8B;QAC1D,MAAMC,WAAWC,qBAAqBL;QACtC,MAAM,EAAEM,GAAG,EAAE,GAAGC;QAEhB,MAAMC,QAAQC,QAAQ;YAClB,IAAI;gBACA,IAAI,AAAoB,YAApB,OAAOL,YAAyBA,AAAa,SAAbA,UAChC,OAAOA;gBAEX,IAAI,AAAoB,YAApB,OAAOA,UACP,OAAOM,KAAK,KAAK,CAACN;YAE1B,EAAE,OAAM,CAER;QAEJ,GAAG;YAACA;SAAS;QAEb,MAAMO,gBAAgB,CAACC;YACnBN,IAAIN,mBAAmBU,KAAK,SAAS,CAACE;QAC1C;QAEA,OAAO,WAAP,GACI,oBAACC,0BAAcA;YAAC,OAAOL;YAAO,eAAeG;yBACzC,oBAACT,WAAcC;IAG3B"}
package/Navigation.js CHANGED
@@ -1,11 +1,10 @@
1
- import React from "react";
1
+ import react from "react";
2
2
  import { Provider } from "@webiny/app-admin";
3
3
  import { SidebarProvider } from "./Navigation/SidebarProvider.js";
4
- import { Navigation as DecoratedNavigation } from "./Navigation/Navigation.js";
5
- export const Navigation = () => {
6
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Provider, {
7
- hoc: SidebarProvider
8
- }), /*#__PURE__*/React.createElement(DecoratedNavigation, null));
9
- };
4
+ import { Navigation } from "./Navigation/Navigation.js";
5
+ const Navigation_Navigation = ()=>/*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(Provider, {
6
+ hoc: SidebarProvider
7
+ }), /*#__PURE__*/ react.createElement(Navigation, null));
8
+ export { Navigation_Navigation as Navigation };
10
9
 
11
10
  //# sourceMappingURL=Navigation.js.map
package/Navigation.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["React","Provider","SidebarProvider","Navigation","DecoratedNavigation","createElement","Fragment","hoc"],"sources":["Navigation.tsx"],"sourcesContent":["import React from \"react\";\nimport { Provider } from \"@webiny/app-admin\";\nimport { SidebarProvider } from \"./Navigation/SidebarProvider.js\";\nimport { Navigation as DecoratedNavigation } from \"./Navigation/Navigation.js\";\n\nexport const Navigation = () => {\n return (\n <>\n <Provider hoc={SidebarProvider} />\n <DecoratedNavigation />\n </>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,eAAe;AACxB,SAASC,UAAU,IAAIC,mBAAmB;AAE1C,OAAO,MAAMD,UAAU,GAAGA,CAAA,KAAM;EAC5B,oBACIH,KAAA,CAAAK,aAAA,CAAAL,KAAA,CAAAM,QAAA,qBACIN,KAAA,CAAAK,aAAA,CAACJ,QAAQ;IAACM,GAAG,EAAEL;EAAgB,CAAE,CAAC,eAClCF,KAAA,CAAAK,aAAA,CAACD,mBAAmB,MAAE,CACxB,CAAC;AAEX,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Navigation.js","sources":["../src/Navigation.tsx"],"sourcesContent":["import React from \"react\";\nimport { Provider } from \"@webiny/app-admin\";\nimport { SidebarProvider } from \"./Navigation/SidebarProvider.js\";\nimport { Navigation as DecoratedNavigation } from \"./Navigation/Navigation.js\";\n\nexport const Navigation = () => {\n return (\n <>\n <Provider hoc={SidebarProvider} />\n <DecoratedNavigation />\n </>\n );\n};\n"],"names":["Navigation","Provider","SidebarProvider","DecoratedNavigation"],"mappings":";;;;AAKO,MAAMA,wBAAa,IACf,WAAP,GACI,wDACI,oBAACC,UAAQA;QAAC,KAAKC;sBACf,oBAACC,YAAmBA"}
@@ -0,0 +1,297 @@
1
+ import __rslib_svgr_url__0__ from "../static/svg/notFound.e8b15981.svg";
2
+ import * as __rspack_external_react from "react";
3
+ const SvgNotFound = (props)=>/*#__PURE__*/ __rspack_external_react.createElement("svg", {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
6
+ width: 895.68,
7
+ height: 517.48,
8
+ "data-name": "Layer 1",
9
+ viewBox: "0 0 895.68 517.48",
10
+ ...props
11
+ }, /*#__PURE__*/ __rspack_external_react.createElement("defs", null, /*#__PURE__*/ __rspack_external_react.createElement("linearGradient", {
12
+ id: "notFound_svg__a",
13
+ x1: 790.94,
14
+ x2: 790.94,
15
+ y1: 640.76,
16
+ y2: 264.76,
17
+ gradientTransform: "rotate(90 783.095 446.895)",
18
+ gradientUnits: "userSpaceOnUse"
19
+ }, /*#__PURE__*/ __rspack_external_react.createElement("stop", {
20
+ offset: 0,
21
+ stopColor: "gray",
22
+ stopOpacity: 0.25
23
+ }), /*#__PURE__*/ __rspack_external_react.createElement("stop", {
24
+ offset: 0.54,
25
+ stopColor: "gray",
26
+ stopOpacity: 0.12
27
+ }), /*#__PURE__*/ __rspack_external_react.createElement("stop", {
28
+ offset: 1,
29
+ stopColor: "gray",
30
+ stopOpacity: 0.1
31
+ })), /*#__PURE__*/ __rspack_external_react.createElement("linearGradient", {
32
+ xlinkHref: "#notFound_svg__a",
33
+ id: "notFound_svg__b",
34
+ x1: 785.97,
35
+ x2: 785.97,
36
+ y1: 446.14,
37
+ y2: 321.91,
38
+ gradientTransform: "rotate(90 783.305 383.365)"
39
+ }), /*#__PURE__*/ __rspack_external_react.createElement("linearGradient", {
40
+ xlinkHref: "#notFound_svg__a",
41
+ id: "notFound_svg__c",
42
+ x1: 660.92,
43
+ x2: 660.92,
44
+ y1: 518.19,
45
+ y2: 494.17,
46
+ gradientTransform: "rotate(90 659.87 486.97)"
47
+ }), /*#__PURE__*/ __rspack_external_react.createElement("linearGradient", {
48
+ xlinkHref: "#notFound_svg__a",
49
+ id: "notFound_svg__d",
50
+ x1: 433.66,
51
+ x2: 433.66,
52
+ y1: 605.23,
53
+ y2: 235.23,
54
+ gradientTransform: "translate(13.58 8.51)"
55
+ }), /*#__PURE__*/ __rspack_external_react.createElement("linearGradient", {
56
+ xlinkHref: "#notFound_svg__a",
57
+ id: "notFound_svg__e",
58
+ x1: 428.36,
59
+ x2: 428.36,
60
+ y1: 413.71,
61
+ y2: 291.46,
62
+ gradientTransform: "translate(-1.05 11.3)"
63
+ }), /*#__PURE__*/ __rspack_external_react.createElement("linearGradient", {
64
+ xlinkHref: "#notFound_svg__a",
65
+ id: "notFound_svg__f",
66
+ x1: 295.22,
67
+ x2: 295.22,
68
+ y1: 484.61,
69
+ y2: 460.98,
70
+ gradientTransform: "translate(28.38 37.45)"
71
+ }), /*#__PURE__*/ __rspack_external_react.createElement("linearGradient", {
72
+ xlinkHref: "#notFound_svg__a",
73
+ id: "notFound_svg__g",
74
+ x1: 455.07,
75
+ x2: 455.07,
76
+ y1: 464.48,
77
+ y2: 10.48
78
+ }), /*#__PURE__*/ __rspack_external_react.createElement("linearGradient", {
79
+ xlinkHref: "#notFound_svg__a",
80
+ id: "notFound_svg__h",
81
+ x1: 449.07,
82
+ x2: 449.07,
83
+ y1: 229.48,
84
+ y2: 79.48
85
+ }), /*#__PURE__*/ __rspack_external_react.createElement("linearGradient", {
86
+ xlinkHref: "#notFound_svg__a",
87
+ id: "notFound_svg__i",
88
+ x1: 298.07,
89
+ x2: 298.07,
90
+ y1: 316.48,
91
+ y2: 287.48
92
+ }), /*#__PURE__*/ __rspack_external_react.createElement("linearGradient", {
93
+ xlinkHref: "#notFound_svg__a",
94
+ id: "notFound_svg__j",
95
+ x1: 457.07,
96
+ x2: 457.07,
97
+ y1: 517.48,
98
+ y2: 364.48
99
+ }), /*#__PURE__*/ __rspack_external_react.createElement("linearGradient", {
100
+ xlinkHref: "#notFound_svg__a",
101
+ id: "notFound_svg__k",
102
+ x1: 611.23,
103
+ x2: 611.23,
104
+ y1: 564.74,
105
+ y2: 464.74
106
+ }), /*#__PURE__*/ __rspack_external_react.createElement("linearGradient", {
107
+ xlinkHref: "#notFound_svg__a",
108
+ id: "notFound_svg__l",
109
+ x1: 611.23,
110
+ x2: 611.23,
111
+ y1: 660.74,
112
+ y2: 602.74
113
+ })), /*#__PURE__*/ __rspack_external_react.createElement("path", {
114
+ fill: "#f5f5f5",
115
+ d: "m415.967 68.35 2.986-19.655 465.072 70.668-2.987 19.654z"
116
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
117
+ fill: "url(#notFound_svg__a)",
118
+ d: "M589.23 209.59h376v490.29h-376z",
119
+ transform: "rotate(-81.36 589.882 447.627)"
120
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
121
+ fill: "#f5f5f5",
122
+ d: "m364.447 407.325 51.508-338.98 465.071 70.668-51.508 338.98z"
123
+ }), /*#__PURE__*/ __rspack_external_react.createElement("circle", {
124
+ cx: 580.99,
125
+ cy: 251.51,
126
+ r: 4.86,
127
+ fill: "#ff5252",
128
+ transform: "rotate(-81.36 393.642 244.4)"
129
+ }), /*#__PURE__*/ __rspack_external_react.createElement("circle", {
130
+ cx: 594.2,
131
+ cy: 253.52,
132
+ r: 4.86,
133
+ fill: "#ff0",
134
+ transform: "rotate(-81.36 406.848 246.405)"
135
+ }), /*#__PURE__*/ __rspack_external_react.createElement("circle", {
136
+ cx: 607.41,
137
+ cy: 255.53,
138
+ r: 4.86,
139
+ fill: "#69f0ae",
140
+ transform: "rotate(-81.36 420.06 248.415)"
141
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
142
+ fill: "url(#notFound_svg__b)",
143
+ d: "M720.53 174.84h124.23v422.38H720.53z",
144
+ transform: "rotate(-81.36 595.3 378.92)"
145
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
146
+ fill: "#fa5a28",
147
+ d: "m435.203 107.291 408.58 62.084-17.294 113.813-408.58-62.083z"
148
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
149
+ fill: "url(#notFound_svg__c)",
150
+ d: "M628.65 473.94h24.02v28.16h-24.02z",
151
+ transform: "rotate(-81.36 453.304 480.904)"
152
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
153
+ fill: "#fa5a28",
154
+ d: "m477.377 284.582 26.2 3.981-2.987 19.655-26.2-3.981z"
155
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
156
+ fill: "#ff5252",
157
+ d: "m472.262 318.154 26.2 3.98-2.987 19.655-26.2-3.981z"
158
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
159
+ fill: "#ff9800",
160
+ d: "m467.167 351.727 26.2 3.98-2.987 19.655-26.2-3.981z"
161
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
162
+ fill: "#fa5a28",
163
+ d: "m546.346 299.25 211.245 32.1-1.74 11.458-211.246-32.099zM541.241 332.823l211.245 32.1-1.74 11.458L539.5 344.282zM536.146 366.396l211.245 32.1-1.741 11.458-211.245-32.1z",
164
+ opacity: 0.4
165
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
166
+ fill: "#f5f5f5",
167
+ d: "M10.887 118.113 499.665 8.858l4.267 19.09L15.154 137.201z"
168
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
169
+ fill: "url(#notFound_svg__d)",
170
+ d: "M186.23 243.74h522v370h-522z",
171
+ transform: "rotate(-12.6 -495.083 1022.25)"
172
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
173
+ fill: "#f5f5f5",
174
+ d: "M15.15 137.213 503.928 27.958l73.602 329.274L88.752 466.487z"
175
+ }), /*#__PURE__*/ __rspack_external_react.createElement("ellipse", {
176
+ cx: 177.11,
177
+ cy: 316.25,
178
+ fill: "#ff5252",
179
+ rx: 5.17,
180
+ ry: 4.78,
181
+ transform: "rotate(-12.6 -765.182 909.732)"
182
+ }), /*#__PURE__*/ __rspack_external_react.createElement("ellipse", {
183
+ cx: 191,
184
+ cy: 313.15,
185
+ fill: "#ff0",
186
+ rx: 5.17,
187
+ ry: 4.78,
188
+ transform: "rotate(-12.6 -751.271 906.638)"
189
+ }), /*#__PURE__*/ __rspack_external_react.createElement("ellipse", {
190
+ cx: 204.88,
191
+ cy: 310.05,
192
+ fill: "#69f0ae",
193
+ rx: 5.17,
194
+ ry: 4.78,
195
+ transform: "rotate(-12.6 -737.406 903.539)"
196
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
197
+ fill: "url(#notFound_svg__e)",
198
+ d: "M202.46 302.76h449.7v122.25h-449.7z",
199
+ transform: "rotate(-12.6 -514.97 957.389)"
200
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
201
+ fill: "#fa5a28",
202
+ d: "m48.613 165.637 429.403-95.983 24.711 110.552-429.403 95.983z"
203
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
204
+ fill: "url(#notFound_svg__f)",
205
+ d: "M308.61 498.42h29.98v23.63h-29.98z",
206
+ transform: "rotate(-12.6 -618.682 1103.725)"
207
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
208
+ fill: "#fa5a28",
209
+ d: "m158.065 313.478 27.655-6.208 4.303 19.169-27.655 6.208z"
210
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
211
+ fill: "#ff5252",
212
+ d: "m163.17 344.626 27.54-6.156 4.267 19.09-27.54 6.155z"
213
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
214
+ fill: "#ff9800",
215
+ d: "m172.831 378.936 27.656-6.208 4.303 19.169-27.655 6.208z"
216
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
217
+ fill: "#fa5a28",
218
+ d: "m229.908 299.64 222.012-49.626 2.489 11.135-222.012 49.626zM237.197 332.254l222.01-49.625 2.49 11.135-222.011 49.625zM244.485 364.858l222.011-49.625 2.489 11.135-222.011 49.626z",
219
+ opacity: 0.4
220
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
221
+ fill: "#f5f5f5",
222
+ d: "M170.07 18.48h568v24h-568z"
223
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
224
+ fill: "url(#notFound_svg__g)",
225
+ d: "M159.07 10.48h592v454h-592z"
226
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
227
+ fill: "#fff",
228
+ d: "M170.07 42.48h568v414h-568z"
229
+ }), /*#__PURE__*/ __rspack_external_react.createElement("circle", {
230
+ cx: 183.94,
231
+ cy: 30.48,
232
+ r: 5.87,
233
+ fill: "#ff5252"
234
+ }), /*#__PURE__*/ __rspack_external_react.createElement("circle", {
235
+ cx: 200.07,
236
+ cy: 30.48,
237
+ r: 5.87,
238
+ fill: "#ff0"
239
+ }), /*#__PURE__*/ __rspack_external_react.createElement("circle", {
240
+ cx: 216.2,
241
+ cy: 30.48,
242
+ r: 5.87,
243
+ fill: "#69f0ae"
244
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
245
+ fill: "url(#notFound_svg__h)",
246
+ d: "M194.07 79.48h510v150h-510z"
247
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
248
+ fill: "#fa5a28",
249
+ d: "M200.07 85.48h499v139h-499z"
250
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
251
+ fill: "url(#notFound_svg__i)",
252
+ d: "M281.07 287.48h34v29h-34z"
253
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
254
+ fill: "#fa5a28",
255
+ d: "M282.57 289.48h32v24h-32z"
256
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
257
+ fill: "#ff5252",
258
+ d: "M282.57 330.48h32v24h-32z"
259
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
260
+ fill: "#ff9800",
261
+ d: "M282.57 371.48h32v24h-32z"
262
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
263
+ fill: "#fa5a28",
264
+ d: "M367.57 294.48h258v14h-258zM367.57 335.48h258v14h-258zM367.57 376.48h258v14h-258z",
265
+ opacity: 0.4
266
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
267
+ fill: "url(#notFound_svg__j)",
268
+ d: "M364.07 364.48h186v153h-186z"
269
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
270
+ fill: "url(#notFound_svg__k)",
271
+ d: "M559.15 531.41a52.08 52.08 0 0 1 104.17 0v33.33h14.58v-33.33a66.67 66.67 0 1 0-133.33 0v33.33h14.58Z",
272
+ transform: "translate(-152.16 -191.26)"
273
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
274
+ fill: "#fff",
275
+ d: "M409.07 339.48a50 50 0 0 1 100 0v32h14v-32a64 64 0 0 0-128 0v32h14Z"
276
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
277
+ fill: "#fa5a28",
278
+ d: "M372.07 369.48h174v142h-174z"
279
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
280
+ fill: "#fff",
281
+ d: "M372.07 369.48h174v142h-174z"
282
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
283
+ fill: "#fa5a28",
284
+ d: "M372.07 397.48h174v86h-174z"
285
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
286
+ fill: "url(#notFound_svg__l)",
287
+ d: "M624 615.5a12.76 12.76 0 1 0-22 8.74v27.22a9.28 9.28 0 0 0 18.56 0v-27.22a12.7 12.7 0 0 0 3.44-8.74",
288
+ transform: "translate(-152.16 -191.26)"
289
+ }), /*#__PURE__*/ __rspack_external_react.createElement("path", {
290
+ d: "M470.07 426.48a11 11 0 1 0-19 7.53v23.47a8 8 0 1 0 16 0v-23.47a11 11 0 0 0 3-7.53",
291
+ opacity: 0.2
292
+ }));
293
+ const notFound = __rslib_svgr_url__0__;
294
+ export default notFound;
295
+ export { SvgNotFound as ReactComponent };
296
+
297
+ //# sourceMappingURL=notFound.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotFound/notFound.js","sources":["../../src/NotFound/notFound.svg"],"sourcesContent":["import * as React from \"react\";\nconst SvgNotFound = props => <svg xmlns=\"http://www.w3.org/2000/svg\" xmlnsXlink=\"http://www.w3.org/1999/xlink\" width={895.68} height={517.48} data-name=\"Layer 1\" viewBox=\"0 0 895.68 517.48\" {...props}><defs><linearGradient id=\"notFound_svg__a\" x1={790.94} x2={790.94} y1={640.76} y2={264.76} gradientTransform=\"rotate(90 783.095 446.895)\" gradientUnits=\"userSpaceOnUse\"><stop offset={0} stopColor=\"gray\" stopOpacity={0.25} /><stop offset={0.54} stopColor=\"gray\" stopOpacity={0.12} /><stop offset={1} stopColor=\"gray\" stopOpacity={0.1} /></linearGradient><linearGradient xlinkHref=\"#notFound_svg__a\" id=\"notFound_svg__b\" x1={785.97} x2={785.97} y1={446.14} y2={321.91} gradientTransform=\"rotate(90 783.305 383.365)\" /><linearGradient xlinkHref=\"#notFound_svg__a\" id=\"notFound_svg__c\" x1={660.92} x2={660.92} y1={518.19} y2={494.17} gradientTransform=\"rotate(90 659.87 486.97)\" /><linearGradient xlinkHref=\"#notFound_svg__a\" id=\"notFound_svg__d\" x1={433.66} x2={433.66} y1={605.23} y2={235.23} gradientTransform=\"translate(13.58 8.51)\" /><linearGradient xlinkHref=\"#notFound_svg__a\" id=\"notFound_svg__e\" x1={428.36} x2={428.36} y1={413.71} y2={291.46} gradientTransform=\"translate(-1.05 11.3)\" /><linearGradient xlinkHref=\"#notFound_svg__a\" id=\"notFound_svg__f\" x1={295.22} x2={295.22} y1={484.61} y2={460.98} gradientTransform=\"translate(28.38 37.45)\" /><linearGradient xlinkHref=\"#notFound_svg__a\" id=\"notFound_svg__g\" x1={455.07} x2={455.07} y1={464.48} y2={10.48} /><linearGradient xlinkHref=\"#notFound_svg__a\" id=\"notFound_svg__h\" x1={449.07} x2={449.07} y1={229.48} y2={79.48} /><linearGradient xlinkHref=\"#notFound_svg__a\" id=\"notFound_svg__i\" x1={298.07} x2={298.07} y1={316.48} y2={287.48} /><linearGradient xlinkHref=\"#notFound_svg__a\" id=\"notFound_svg__j\" x1={457.07} x2={457.07} y1={517.48} y2={364.48} /><linearGradient xlinkHref=\"#notFound_svg__a\" id=\"notFound_svg__k\" x1={611.23} x2={611.23} y1={564.74} y2={464.74} /><linearGradient xlinkHref=\"#notFound_svg__a\" id=\"notFound_svg__l\" x1={611.23} x2={611.23} y1={660.74} y2={602.74} /></defs><path fill=\"#f5f5f5\" d=\"m415.967 68.35 2.986-19.655 465.072 70.668-2.987 19.654z\" /><path fill=\"url(#notFound_svg__a)\" d=\"M589.23 209.59h376v490.29h-376z\" transform=\"rotate(-81.36 589.882 447.627)\" /><path fill=\"#f5f5f5\" d=\"m364.447 407.325 51.508-338.98 465.071 70.668-51.508 338.98z\" /><circle cx={580.99} cy={251.51} r={4.86} fill=\"#ff5252\" transform=\"rotate(-81.36 393.642 244.4)\" /><circle cx={594.2} cy={253.52} r={4.86} fill=\"#ff0\" transform=\"rotate(-81.36 406.848 246.405)\" /><circle cx={607.41} cy={255.53} r={4.86} fill=\"#69f0ae\" transform=\"rotate(-81.36 420.06 248.415)\" /><path fill=\"url(#notFound_svg__b)\" d=\"M720.53 174.84h124.23v422.38H720.53z\" transform=\"rotate(-81.36 595.3 378.92)\" /><path fill=\"#fa5a28\" d=\"m435.203 107.291 408.58 62.084-17.294 113.813-408.58-62.083z\" /><path fill=\"url(#notFound_svg__c)\" d=\"M628.65 473.94h24.02v28.16h-24.02z\" transform=\"rotate(-81.36 453.304 480.904)\" /><path fill=\"#fa5a28\" d=\"m477.377 284.582 26.2 3.981-2.987 19.655-26.2-3.981z\" /><path fill=\"#ff5252\" d=\"m472.262 318.154 26.2 3.98-2.987 19.655-26.2-3.981z\" /><path fill=\"#ff9800\" d=\"m467.167 351.727 26.2 3.98-2.987 19.655-26.2-3.981z\" /><path fill=\"#fa5a28\" d=\"m546.346 299.25 211.245 32.1-1.74 11.458-211.246-32.099zM541.241 332.823l211.245 32.1-1.74 11.458L539.5 344.282zM536.146 366.396l211.245 32.1-1.741 11.458-211.245-32.1z\" opacity={0.4} /><path fill=\"#f5f5f5\" d=\"M10.887 118.113 499.665 8.858l4.267 19.09L15.154 137.201z\" /><path fill=\"url(#notFound_svg__d)\" d=\"M186.23 243.74h522v370h-522z\" transform=\"rotate(-12.6 -495.083 1022.25)\" /><path fill=\"#f5f5f5\" d=\"M15.15 137.213 503.928 27.958l73.602 329.274L88.752 466.487z\" /><ellipse cx={177.11} cy={316.25} fill=\"#ff5252\" rx={5.17} ry={4.78} transform=\"rotate(-12.6 -765.182 909.732)\" /><ellipse cx={191} cy={313.15} fill=\"#ff0\" rx={5.17} ry={4.78} transform=\"rotate(-12.6 -751.271 906.638)\" /><ellipse cx={204.88} cy={310.05} fill=\"#69f0ae\" rx={5.17} ry={4.78} transform=\"rotate(-12.6 -737.406 903.539)\" /><path fill=\"url(#notFound_svg__e)\" d=\"M202.46 302.76h449.7v122.25h-449.7z\" transform=\"rotate(-12.6 -514.97 957.389)\" /><path fill=\"#fa5a28\" d=\"m48.613 165.637 429.403-95.983 24.711 110.552-429.403 95.983z\" /><path fill=\"url(#notFound_svg__f)\" d=\"M308.61 498.42h29.98v23.63h-29.98z\" transform=\"rotate(-12.6 -618.682 1103.725)\" /><path fill=\"#fa5a28\" d=\"m158.065 313.478 27.655-6.208 4.303 19.169-27.655 6.208z\" /><path fill=\"#ff5252\" d=\"m163.17 344.626 27.54-6.156 4.267 19.09-27.54 6.155z\" /><path fill=\"#ff9800\" d=\"m172.831 378.936 27.656-6.208 4.303 19.169-27.655 6.208z\" /><path fill=\"#fa5a28\" d=\"m229.908 299.64 222.012-49.626 2.489 11.135-222.012 49.626zM237.197 332.254l222.01-49.625 2.49 11.135-222.011 49.625zM244.485 364.858l222.011-49.625 2.489 11.135-222.011 49.626z\" opacity={0.4} /><path fill=\"#f5f5f5\" d=\"M170.07 18.48h568v24h-568z\" /><path fill=\"url(#notFound_svg__g)\" d=\"M159.07 10.48h592v454h-592z\" /><path fill=\"#fff\" d=\"M170.07 42.48h568v414h-568z\" /><circle cx={183.94} cy={30.48} r={5.87} fill=\"#ff5252\" /><circle cx={200.07} cy={30.48} r={5.87} fill=\"#ff0\" /><circle cx={216.2} cy={30.48} r={5.87} fill=\"#69f0ae\" /><path fill=\"url(#notFound_svg__h)\" d=\"M194.07 79.48h510v150h-510z\" /><path fill=\"#fa5a28\" d=\"M200.07 85.48h499v139h-499z\" /><path fill=\"url(#notFound_svg__i)\" d=\"M281.07 287.48h34v29h-34z\" /><path fill=\"#fa5a28\" d=\"M282.57 289.48h32v24h-32z\" /><path fill=\"#ff5252\" d=\"M282.57 330.48h32v24h-32z\" /><path fill=\"#ff9800\" d=\"M282.57 371.48h32v24h-32z\" /><path fill=\"#fa5a28\" d=\"M367.57 294.48h258v14h-258zM367.57 335.48h258v14h-258zM367.57 376.48h258v14h-258z\" opacity={0.4} /><path fill=\"url(#notFound_svg__j)\" d=\"M364.07 364.48h186v153h-186z\" /><path fill=\"url(#notFound_svg__k)\" d=\"M559.15 531.41a52.08 52.08 0 0 1 104.17 0v33.33h14.58v-33.33a66.67 66.67 0 1 0-133.33 0v33.33h14.58Z\" transform=\"translate(-152.16 -191.26)\" /><path fill=\"#fff\" d=\"M409.07 339.48a50 50 0 0 1 100 0v32h14v-32a64 64 0 0 0-128 0v32h14Z\" /><path fill=\"#fa5a28\" d=\"M372.07 369.48h174v142h-174z\" /><path fill=\"#fff\" d=\"M372.07 369.48h174v142h-174z\" /><path fill=\"#fa5a28\" d=\"M372.07 397.48h174v86h-174z\" /><path fill=\"url(#notFound_svg__l)\" d=\"M624 615.5a12.76 12.76 0 1 0-22 8.74v27.22a9.28 9.28 0 0 0 18.56 0v-27.22a12.7 12.7 0 0 0 3.44-8.74\" transform=\"translate(-152.16 -191.26)\" /><path d=\"M470.07 426.48a11 11 0 1 0-19 7.53v23.47a8 8 0 1 0 16 0v-23.47a11 11 0 0 0 3-7.53\" opacity={0.2} /></svg>;\nexport { SvgNotFound as ReactComponent };\nexport default \"__RSLIB_SVGR_AUTO_PUBLIC_PATH__static/svg/notFound.e8b15981.svg\";"],"names":["SvgNotFound","props"],"mappings":"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"}
package/NotFound.js CHANGED
@@ -1,21 +1,20 @@
1
- import * as React from "react";
2
- import { NotFound as NotFoundBase } from "@webiny/app-admin";
3
- import notFoundImage from "./NotFound/notFound.svg";
1
+ import { NotFound as app_admin_NotFound } from "@webiny/app-admin";
2
+ import notFound from "./NotFound/notFound.js";
4
3
  import { Link, Text } from "@webiny/admin-ui";
5
- export const NotFound = NotFoundBase.createDecorator(() => {
6
- return function NotFound() {
7
- return /*#__PURE__*/React.createElement("div", {
8
- className: "h-full flex flex-col items-center justify-center text-center gap-xs"
9
- }, /*#__PURE__*/React.createElement("img", {
10
- width: 200,
11
- height: 200,
12
- src: notFoundImage,
13
- alt: "Not Accessible",
14
- className: "mb-xl"
15
- }), /*#__PURE__*/React.createElement(Text, null, "The route is either missing, or you're not authorized to view it."), /*#__PURE__*/React.createElement(Text, null, "Please contact your administrator to report the issue."), /*#__PURE__*/React.createElement(Link, {
16
- to: "/"
17
- }, "Take me back."));
18
- };
19
- });
4
+ import * as __rspack_external_react from "react";
5
+ const NotFound_NotFound = app_admin_NotFound.createDecorator(()=>function() {
6
+ return /*#__PURE__*/ __rspack_external_react.createElement("div", {
7
+ className: "h-full flex flex-col items-center justify-center text-center gap-xs"
8
+ }, /*#__PURE__*/ __rspack_external_react.createElement("img", {
9
+ width: 200,
10
+ height: 200,
11
+ src: notFound,
12
+ alt: "Not Accessible",
13
+ className: "mb-xl"
14
+ }), /*#__PURE__*/ __rspack_external_react.createElement(Text, null, "The route is either missing, or you're not authorized to view it."), /*#__PURE__*/ __rspack_external_react.createElement(Text, null, "Please contact your administrator to report the issue."), /*#__PURE__*/ __rspack_external_react.createElement(Link, {
15
+ to: "/"
16
+ }, "Take me back."));
17
+ });
18
+ export { NotFound_NotFound as NotFound };
20
19
 
21
20
  //# sourceMappingURL=NotFound.js.map
package/NotFound.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["React","NotFound","NotFoundBase","notFoundImage","Link","Text","createDecorator","createElement","className","width","height","src","alt","to"],"sources":["NotFound.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { NotFound as NotFoundBase } from \"@webiny/app-admin\";\nimport notFoundImage from \"./NotFound/notFound.svg\";\nimport { Link, Text } from \"@webiny/admin-ui\";\n\nexport const NotFound = NotFoundBase.createDecorator(() => {\n return function NotFound() {\n return (\n <div className={\"h-full flex flex-col items-center justify-center text-center gap-xs\"}>\n <img\n width={200}\n height={200}\n src={notFoundImage}\n alt=\"Not Accessible\"\n className={\"mb-xl\"}\n />\n <Text>The route is either missing, or you&apos;re not authorized to view it.</Text>\n <Text>Please contact your administrator to report the issue.</Text>\n <Link to=\"/\">Take me back.</Link>\n </div>\n );\n };\n});\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,IAAIC,YAAY,QAAQ,mBAAmB;AAC5D,OAAOC,aAAa;AACpB,SAASC,IAAI,EAAEC,IAAI,QAAQ,kBAAkB;AAE7C,OAAO,MAAMJ,QAAQ,GAAGC,YAAY,CAACI,eAAe,CAAC,MAAM;EACvD,OAAO,SAASL,QAAQA,CAAA,EAAG;IACvB,oBACID,KAAA,CAAAO,aAAA;MAAKC,SAAS,EAAE;IAAsE,gBAClFR,KAAA,CAAAO,aAAA;MACIE,KAAK,EAAE,GAAI;MACXC,MAAM,EAAE,GAAI;MACZC,GAAG,EAAER,aAAc;MACnBS,GAAG,EAAC,gBAAgB;MACpBJ,SAAS,EAAE;IAAQ,CACtB,CAAC,eACFR,KAAA,CAAAO,aAAA,CAACF,IAAI,QAAC,mEAA4E,CAAC,eACnFL,KAAA,CAAAO,aAAA,CAACF,IAAI,QAAC,wDAA4D,CAAC,eACnEL,KAAA,CAAAO,aAAA,CAACH,IAAI;MAACS,EAAE,EAAC;IAAG,GAAC,eAAmB,CAC/B,CAAC;EAEd,CAAC;AACL,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"NotFound.js","sources":["../src/NotFound.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { NotFound as NotFoundBase } from \"@webiny/app-admin\";\nimport notFoundImage from \"./NotFound/notFound.svg\";\nimport { Link, Text } from \"@webiny/admin-ui\";\n\nexport const NotFound = NotFoundBase.createDecorator(() => {\n return function NotFound() {\n return (\n <div className={\"h-full flex flex-col items-center justify-center text-center gap-xs\"}>\n <img\n width={200}\n height={200}\n src={notFoundImage}\n alt=\"Not Accessible\"\n className={\"mb-xl\"}\n />\n <Text>The route is either missing, or you&apos;re not authorized to view it.</Text>\n <Text>Please contact your administrator to report the issue.</Text>\n <Link to=\"/\">Take me back.</Link>\n </div>\n );\n };\n});\n"],"names":["NotFound","NotFoundBase","notFoundImage","Text","Link"],"mappings":";;;;AAKO,MAAMA,oBAAWC,mBAAAA,eAA4B,CAAC,IAC1C;QACH,OAAO,WAAP,GACI,sCAAC;YAAI,WAAW;yBACZ,sCAAC;YACG,OAAO;YACP,QAAQ;YACR,KAAKC;YACL,KAAI;YACJ,WAAW;0BAEf,sCAACC,MAAIA,MAAC,oFACN,sCAACA,MAAIA,MAAC,yEACN,sCAACC,MAAIA;YAAC,IAAG;WAAI;IAGzB"}
@@ -1,30 +1,22 @@
1
- import React from "react";
2
- import { UserMenuRenderer as UserMenuRendererSpec, UserMenuHandle, useAdminConfig } from "@webiny/app-admin";
1
+ import react from "react";
2
+ import { UserMenuHandle, UserMenuRenderer, useAdminConfig, useSecurity } from "@webiny/app-admin";
3
3
  import { DropdownMenu } from "@webiny/admin-ui";
4
- import { useSecurity } from "@webiny/app-admin";
5
- export const UserMenu = UserMenuRendererSpec.createDecorator(() => {
6
- return function UserMenu() {
7
- const security = useSecurity();
8
- const {
9
- userMenus
10
- } = useAdminConfig();
11
- if (!security || !security.identity) {
12
- return null;
13
- }
14
- const dropDownMenuItems = userMenus.map(m => {
15
- if (/*#__PURE__*/React.isValidElement(m.element)) {
16
- return /*#__PURE__*/React.cloneElement(m.element, {
17
- key: m.name
4
+ const UserMenu_UserMenu = UserMenuRenderer.createDecorator(()=>function() {
5
+ const security = useSecurity();
6
+ const { userMenus } = useAdminConfig();
7
+ if (!security || !security.identity) return null;
8
+ const dropDownMenuItems = userMenus.map((m)=>{
9
+ if (/*#__PURE__*/ react.isValidElement(m.element)) return /*#__PURE__*/ react.cloneElement(m.element, {
10
+ key: m.name
11
+ });
12
+ return null;
18
13
  });
19
- }
20
- return null;
14
+ return /*#__PURE__*/ react.createElement(DropdownMenu, {
15
+ trigger: /*#__PURE__*/ react.createElement(UserMenuHandle, null),
16
+ "data-testid": "logged-in-user-menu-list",
17
+ className: "w-[220px]"
18
+ }, dropDownMenuItems);
21
19
  });
22
- return /*#__PURE__*/React.createElement(DropdownMenu, {
23
- trigger: /*#__PURE__*/React.createElement(UserMenuHandle, null),
24
- "data-testid": "logged-in-user-menu-list",
25
- className: "w-[220px]"
26
- }, dropDownMenuItems);
27
- };
28
- });
20
+ export { UserMenu_UserMenu as UserMenu };
29
21
 
30
22
  //# sourceMappingURL=UserMenu.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","UserMenuRenderer","UserMenuRendererSpec","UserMenuHandle","useAdminConfig","DropdownMenu","useSecurity","UserMenu","createDecorator","security","userMenus","identity","dropDownMenuItems","map","m","isValidElement","element","cloneElement","key","name","createElement","trigger","className"],"sources":["UserMenu.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n UserMenuRenderer as UserMenuRendererSpec,\n UserMenuHandle,\n useAdminConfig\n} from \"@webiny/app-admin\";\nimport { DropdownMenu } from \"@webiny/admin-ui\";\nimport { useSecurity } from \"@webiny/app-admin\";\n\nexport const UserMenu = UserMenuRendererSpec.createDecorator(() => {\n return function UserMenu() {\n const security = useSecurity();\n const { userMenus } = useAdminConfig();\n\n if (!security || !security.identity) {\n return null;\n }\n\n const dropDownMenuItems = userMenus.map(m => {\n if (React.isValidElement(m.element)) {\n return React.cloneElement(m.element, { key: m.name });\n }\n\n return null;\n });\n\n return (\n <DropdownMenu\n trigger={<UserMenuHandle />}\n data-testid={\"logged-in-user-menu-list\"}\n className={\"w-[220px]\"}\n >\n {dropDownMenuItems}\n </DropdownMenu>\n );\n };\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACIC,gBAAgB,IAAIC,oBAAoB,EACxCC,cAAc,EACdC,cAAc,QACX,mBAAmB;AAC1B,SAASC,YAAY,QAAQ,kBAAkB;AAC/C,SAASC,WAAW,QAAQ,mBAAmB;AAE/C,OAAO,MAAMC,QAAQ,GAAGL,oBAAoB,CAACM,eAAe,CAAC,MAAM;EAC/D,OAAO,SAASD,QAAQA,CAAA,EAAG;IACvB,MAAME,QAAQ,GAAGH,WAAW,CAAC,CAAC;IAC9B,MAAM;MAAEI;IAAU,CAAC,GAAGN,cAAc,CAAC,CAAC;IAEtC,IAAI,CAACK,QAAQ,IAAI,CAACA,QAAQ,CAACE,QAAQ,EAAE;MACjC,OAAO,IAAI;IACf;IAEA,MAAMC,iBAAiB,GAAGF,SAAS,CAACG,GAAG,CAACC,CAAC,IAAI;MACzC,iBAAId,KAAK,CAACe,cAAc,CAACD,CAAC,CAACE,OAAO,CAAC,EAAE;QACjC,oBAAOhB,KAAK,CAACiB,YAAY,CAACH,CAAC,CAACE,OAAO,EAAE;UAAEE,GAAG,EAAEJ,CAAC,CAACK;QAAK,CAAC,CAAC;MACzD;MAEA,OAAO,IAAI;IACf,CAAC,CAAC;IAEF,oBACInB,KAAA,CAAAoB,aAAA,CAACf,YAAY;MACTgB,OAAO,eAAErB,KAAA,CAAAoB,aAAA,CAACjB,cAAc,MAAE,CAAE;MAC5B,eAAa,0BAA2B;MACxCmB,SAAS,EAAE;IAAY,GAEtBV,iBACS,CAAC;EAEvB,CAAC;AACL,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"UserMenu/UserMenu.js","sources":["../../src/UserMenu/UserMenu.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n UserMenuRenderer as UserMenuRendererSpec,\n UserMenuHandle,\n useAdminConfig\n} from \"@webiny/app-admin\";\nimport { DropdownMenu } from \"@webiny/admin-ui\";\nimport { useSecurity } from \"@webiny/app-admin\";\n\nexport const UserMenu = UserMenuRendererSpec.createDecorator(() => {\n return function UserMenu() {\n const security = useSecurity();\n const { userMenus } = useAdminConfig();\n\n if (!security || !security.identity) {\n return null;\n }\n\n const dropDownMenuItems = userMenus.map(m => {\n if (React.isValidElement(m.element)) {\n return React.cloneElement(m.element, { key: m.name });\n }\n\n return null;\n });\n\n return (\n <DropdownMenu\n trigger={<UserMenuHandle />}\n data-testid={\"logged-in-user-menu-list\"}\n className={\"w-[220px]\"}\n >\n {dropDownMenuItems}\n </DropdownMenu>\n );\n };\n});\n"],"names":["UserMenu","UserMenuRendererSpec","security","useSecurity","userMenus","useAdminConfig","dropDownMenuItems","m","React","DropdownMenu","UserMenuHandle"],"mappings":";;;AASO,MAAMA,oBAAWC,iBAAAA,eAAoC,CAAC,IAClD;QACH,MAAMC,WAAWC;QACjB,MAAM,EAAEC,SAAS,EAAE,GAAGC;QAEtB,IAAI,CAACH,YAAY,CAACA,SAAS,QAAQ,EAC/B,OAAO;QAGX,MAAMI,oBAAoBF,UAAU,GAAG,CAACG,CAAAA;YACpC,IAAI,WAAJ,GAAIC,MAAAA,cAAoB,CAACD,EAAE,OAAO,GAC9B,OAAO,WAAP,GAAOC,MAAAA,YAAkB,CAACD,EAAE,OAAO,EAAE;gBAAE,KAAKA,EAAE,IAAI;YAAC;YAGvD,OAAO;QACX;QAEA,OAAO,WAAP,GACI,oBAACE,cAAYA;YACT,uBAAS,oBAACC,gBAAcA;YACxB,eAAa;YACb,WAAW;WAEVJ;IAGb"}
@@ -1,49 +1,36 @@
1
- import React from "react";
1
+ import react from "react";
2
2
  import { Avatar, IconButton } from "@webiny/admin-ui";
3
- import { useIdentity } from "@webiny/app-admin";
4
- import { ReactComponent as KeyboardArrowRightIcon } from "@webiny/icons/keyboard_arrow_down.svg";
5
- import { UserMenuHandleRenderer as UserMenuHandleRendererSpec } from "@webiny/app-admin";
6
- export const UserMenuHandle = UserMenuHandleRendererSpec.createDecorator(() => {
7
- return function UserMenuHandle() {
8
- const {
9
- identity,
10
- isAuthenticated
11
- } = useIdentity();
12
- if (!isAuthenticated) {
13
- return null;
14
- }
15
- const profile = identity.profile;
16
- const {
17
- firstName,
18
- lastName,
19
- avatar
20
- } = profile || {};
21
- let fullName = `${firstName} ${lastName}`;
22
- if (fullName.trim() === "") {
23
- fullName = identity.displayName;
24
- }
25
- return /*#__PURE__*/React.createElement("div", {
26
- className: "flex gap-x-sm cursor-pointer"
27
- }, /*#__PURE__*/React.createElement("div", {
28
- "data-testid": "logged-in-user-menu-avatar",
29
- className: "flex items-center rounded-md gap-xxs py-xs px-xs bg-neutral-light"
30
- }, /*#__PURE__*/React.createElement(Avatar, {
31
- size: "sm",
32
- variant: "strong",
33
- image: /*#__PURE__*/React.createElement(Avatar.Image, {
34
- src: avatar?.src
35
- }),
36
- fallback: /*#__PURE__*/React.createElement(Avatar.Fallback, {
37
- className: "uppercase",
38
- delayMs: 0
39
- }, fullName[0])
40
- }), /*#__PURE__*/React.createElement(IconButton, {
41
- variant: "ghost",
42
- size: "xs",
43
- color: "neutral-strong",
44
- icon: /*#__PURE__*/React.createElement(KeyboardArrowRightIcon, null)
45
- })));
46
- };
47
- });
3
+ import { UserMenuHandleRenderer, useIdentity } from "@webiny/app-admin";
4
+ import { ReactComponent } from "@webiny/icons/keyboard_arrow_down.svg";
5
+ const UserMenuHandle_UserMenuHandle = UserMenuHandleRenderer.createDecorator(()=>function() {
6
+ const { identity, isAuthenticated } = useIdentity();
7
+ if (!isAuthenticated) return null;
8
+ const profile = identity.profile;
9
+ const { firstName, lastName, avatar } = profile || {};
10
+ let fullName = `${firstName} ${lastName}`;
11
+ if ("" === fullName.trim()) fullName = identity.displayName;
12
+ return /*#__PURE__*/ react.createElement("div", {
13
+ className: "flex gap-x-sm cursor-pointer"
14
+ }, /*#__PURE__*/ react.createElement("div", {
15
+ "data-testid": "logged-in-user-menu-avatar",
16
+ className: "flex items-center rounded-md gap-xxs py-xs px-xs bg-neutral-light"
17
+ }, /*#__PURE__*/ react.createElement(Avatar, {
18
+ size: "sm",
19
+ variant: "strong",
20
+ image: /*#__PURE__*/ react.createElement(Avatar.Image, {
21
+ src: avatar?.src
22
+ }),
23
+ fallback: /*#__PURE__*/ react.createElement(Avatar.Fallback, {
24
+ className: "uppercase",
25
+ delayMs: 0
26
+ }, fullName[0])
27
+ }), /*#__PURE__*/ react.createElement(IconButton, {
28
+ variant: "ghost",
29
+ size: "xs",
30
+ color: "neutral-strong",
31
+ icon: /*#__PURE__*/ react.createElement(ReactComponent, null)
32
+ })));
33
+ });
34
+ export { UserMenuHandle_UserMenuHandle as UserMenuHandle };
48
35
 
49
36
  //# sourceMappingURL=UserMenuHandle.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","Avatar","IconButton","useIdentity","ReactComponent","KeyboardArrowRightIcon","UserMenuHandleRenderer","UserMenuHandleRendererSpec","UserMenuHandle","createDecorator","identity","isAuthenticated","profile","firstName","lastName","avatar","fullName","trim","displayName","createElement","className","size","variant","image","Image","src","fallback","Fallback","delayMs","color","icon"],"sources":["UserMenuHandle.tsx"],"sourcesContent":["import React from \"react\";\nimport { Avatar, IconButton } from \"@webiny/admin-ui\";\nimport { useIdentity } from \"@webiny/app-admin\";\nimport { ReactComponent as KeyboardArrowRightIcon } from \"@webiny/icons/keyboard_arrow_down.svg\";\nimport { UserMenuHandleRenderer as UserMenuHandleRendererSpec } from \"@webiny/app-admin\";\n\nexport const UserMenuHandle = UserMenuHandleRendererSpec.createDecorator(() => {\n return function UserMenuHandle() {\n const { identity, isAuthenticated } = useIdentity();\n\n if (!isAuthenticated) {\n return null;\n }\n\n const profile = identity.profile;\n\n const { firstName, lastName, avatar } = profile || {};\n let fullName = `${firstName} ${lastName}`;\n if (fullName.trim() === \"\") {\n fullName = identity.displayName;\n }\n\n return (\n <div className={\"flex gap-x-sm cursor-pointer\"}>\n <div\n data-testid=\"logged-in-user-menu-avatar\"\n className={\"flex items-center rounded-md gap-xxs py-xs px-xs bg-neutral-light\"}\n >\n <Avatar\n size={\"sm\"}\n variant={\"strong\"}\n image={<Avatar.Image src={avatar?.src} />}\n fallback={\n <Avatar.Fallback className={\"uppercase\"} delayMs={0}>\n {fullName[0]}\n </Avatar.Fallback>\n }\n />\n <IconButton\n variant={\"ghost\"}\n size={\"xs\"}\n color={\"neutral-strong\"}\n icon={<KeyboardArrowRightIcon />}\n />\n </div>\n </div>\n );\n };\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,UAAU,QAAQ,kBAAkB;AACrD,SAASC,WAAW,QAAQ,mBAAmB;AAC/C,SAASC,cAAc,IAAIC,sBAAsB,QAAQ,uCAAuC;AAChG,SAASC,sBAAsB,IAAIC,0BAA0B,QAAQ,mBAAmB;AAExF,OAAO,MAAMC,cAAc,GAAGD,0BAA0B,CAACE,eAAe,CAAC,MAAM;EAC3E,OAAO,SAASD,cAAcA,CAAA,EAAG;IAC7B,MAAM;MAAEE,QAAQ;MAAEC;IAAgB,CAAC,GAAGR,WAAW,CAAC,CAAC;IAEnD,IAAI,CAACQ,eAAe,EAAE;MAClB,OAAO,IAAI;IACf;IAEA,MAAMC,OAAO,GAAGF,QAAQ,CAACE,OAAO;IAEhC,MAAM;MAAEC,SAAS;MAAEC,QAAQ;MAAEC;IAAO,CAAC,GAAGH,OAAO,IAAI,CAAC,CAAC;IACrD,IAAII,QAAQ,GAAG,GAAGH,SAAS,IAAIC,QAAQ,EAAE;IACzC,IAAIE,QAAQ,CAACC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;MACxBD,QAAQ,GAAGN,QAAQ,CAACQ,WAAW;IACnC;IAEA,oBACIlB,KAAA,CAAAmB,aAAA;MAAKC,SAAS,EAAE;IAA+B,gBAC3CpB,KAAA,CAAAmB,aAAA;MACI,eAAY,4BAA4B;MACxCC,SAAS,EAAE;IAAoE,gBAE/EpB,KAAA,CAAAmB,aAAA,CAAClB,MAAM;MACHoB,IAAI,EAAE,IAAK;MACXC,OAAO,EAAE,QAAS;MAClBC,KAAK,eAAEvB,KAAA,CAAAmB,aAAA,CAAClB,MAAM,CAACuB,KAAK;QAACC,GAAG,EAAEV,MAAM,EAAEU;MAAI,CAAE,CAAE;MAC1CC,QAAQ,eACJ1B,KAAA,CAAAmB,aAAA,CAAClB,MAAM,CAAC0B,QAAQ;QAACP,SAAS,EAAE,WAAY;QAACQ,OAAO,EAAE;MAAE,GAC/CZ,QAAQ,CAAC,CAAC,CACE;IACpB,CACJ,CAAC,eACFhB,KAAA,CAAAmB,aAAA,CAACjB,UAAU;MACPoB,OAAO,EAAE,OAAQ;MACjBD,IAAI,EAAE,IAAK;MACXQ,KAAK,EAAE,gBAAiB;MACxBC,IAAI,eAAE9B,KAAA,CAAAmB,aAAA,CAACd,sBAAsB,MAAE;IAAE,CACpC,CACA,CACJ,CAAC;EAEd,CAAC;AACL,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"UserMenu/UserMenuHandle.js","sources":["../../src/UserMenu/UserMenuHandle.tsx"],"sourcesContent":["import React from \"react\";\nimport { Avatar, IconButton } from \"@webiny/admin-ui\";\nimport { useIdentity } from \"@webiny/app-admin\";\nimport { ReactComponent as KeyboardArrowRightIcon } from \"@webiny/icons/keyboard_arrow_down.svg\";\nimport { UserMenuHandleRenderer as UserMenuHandleRendererSpec } from \"@webiny/app-admin\";\n\nexport const UserMenuHandle = UserMenuHandleRendererSpec.createDecorator(() => {\n return function UserMenuHandle() {\n const { identity, isAuthenticated } = useIdentity();\n\n if (!isAuthenticated) {\n return null;\n }\n\n const profile = identity.profile;\n\n const { firstName, lastName, avatar } = profile || {};\n let fullName = `${firstName} ${lastName}`;\n if (fullName.trim() === \"\") {\n fullName = identity.displayName;\n }\n\n return (\n <div className={\"flex gap-x-sm cursor-pointer\"}>\n <div\n data-testid=\"logged-in-user-menu-avatar\"\n className={\"flex items-center rounded-md gap-xxs py-xs px-xs bg-neutral-light\"}\n >\n <Avatar\n size={\"sm\"}\n variant={\"strong\"}\n image={<Avatar.Image src={avatar?.src} />}\n fallback={\n <Avatar.Fallback className={\"uppercase\"} delayMs={0}>\n {fullName[0]}\n </Avatar.Fallback>\n }\n />\n <IconButton\n variant={\"ghost\"}\n size={\"xs\"}\n color={\"neutral-strong\"}\n icon={<KeyboardArrowRightIcon />}\n />\n </div>\n </div>\n );\n };\n});\n"],"names":["UserMenuHandle","UserMenuHandleRendererSpec","identity","isAuthenticated","useIdentity","profile","firstName","lastName","avatar","fullName","Avatar","IconButton","KeyboardArrowRightIcon"],"mappings":";;;;AAMO,MAAMA,gCAAiBC,uBAAAA,eAA0C,CAAC,IAC9D;QACH,MAAM,EAAEC,QAAQ,EAAEC,eAAe,EAAE,GAAGC;QAEtC,IAAI,CAACD,iBACD,OAAO;QAGX,MAAME,UAAUH,SAAS,OAAO;QAEhC,MAAM,EAAEI,SAAS,EAAEC,QAAQ,EAAEC,MAAM,EAAE,GAAGH,WAAW,CAAC;QACpD,IAAII,WAAW,GAAGH,UAAU,CAAC,EAAEC,UAAU;QACzC,IAAIE,AAAoB,OAApBA,SAAS,IAAI,IACbA,WAAWP,SAAS,WAAW;QAGnC,OAAO,WAAP,GACI,oBAAC;YAAI,WAAW;yBACZ,oBAAC;YACG,eAAY;YACZ,WAAW;yBAEX,oBAACQ,QAAMA;YACH,MAAM;YACN,SAAS;YACT,qBAAO,oBAACA,OAAO,KAAK;gBAAC,KAAKF,QAAQ;;YAClC,wBACI,oBAACE,OAAO,QAAQ;gBAAC,WAAW;gBAAa,SAAS;eAC7CD,QAAQ,CAAC,EAAE;0BAIxB,oBAACE,YAAUA;YACP,SAAS;YACT,MAAM;YACN,OAAO;YACP,oBAAM,oBAACC,gBAAsBA;;IAKjD"}
@@ -1,15 +1,12 @@
1
- import React from "react";
1
+ import react from "react";
2
2
  import { DropdownMenu } from "@webiny/admin-ui";
3
- import { UserMenuItemRenderer, UserMenuItemIconRenderer } from "@webiny/app-admin";
4
- export const UserMenuItem = UserMenuItemRenderer.createDecorator(() => {
5
- return function UserMenuItemRenderer(props) {
6
- return /*#__PURE__*/React.createElement(DropdownMenu.Item, props);
7
- };
8
- });
9
- export const UserMenuItemIcon = UserMenuItemIconRenderer.createDecorator(() => {
10
- return function UserMenuItemRenderer(props) {
11
- return /*#__PURE__*/React.createElement(DropdownMenu.Item.Icon, props);
12
- };
13
- });
3
+ import { UserMenuItemIconRenderer, UserMenuItemRenderer as app_admin_UserMenuItemRenderer } from "@webiny/app-admin";
4
+ const UserMenuItem = app_admin_UserMenuItemRenderer.createDecorator(()=>function(props) {
5
+ return /*#__PURE__*/ react.createElement(DropdownMenu.Item, props);
6
+ });
7
+ const UserMenuItemIcon = UserMenuItemIconRenderer.createDecorator(()=>function(props) {
8
+ return /*#__PURE__*/ react.createElement(DropdownMenu.Item.Icon, props);
9
+ });
10
+ export { UserMenuItem, UserMenuItemIcon };
14
11
 
15
12
  //# sourceMappingURL=UserMenuItem.js.map