@xyo-network/react-webapp 2.64.8 → 2.64.10

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 (74) hide show
  1. package/dist/docs.json +24824 -11816
  2. package/package.json +13 -13
  3. package/dist/browser/components/Body.cjs +0 -116
  4. package/dist/browser/components/Body.cjs.map +0 -1
  5. package/dist/browser/components/Body.js +0 -95
  6. package/dist/browser/components/Body.js.map +0 -1
  7. package/dist/browser/components/Chrome.cjs +0 -246
  8. package/dist/browser/components/Chrome.cjs.map +0 -1
  9. package/dist/browser/components/Chrome.js +0 -225
  10. package/dist/browser/components/Chrome.js.map +0 -1
  11. package/dist/browser/components/ErrorPage.cjs +0 -211
  12. package/dist/browser/components/ErrorPage.cjs.map +0 -1
  13. package/dist/browser/components/ErrorPage.js +0 -190
  14. package/dist/browser/components/ErrorPage.js.map +0 -1
  15. package/dist/browser/components/NotFoundPage/Page.cjs +0 -207
  16. package/dist/browser/components/NotFoundPage/Page.cjs.map +0 -1
  17. package/dist/browser/components/NotFoundPage/Page.js +0 -186
  18. package/dist/browser/components/NotFoundPage/Page.js.map +0 -1
  19. package/dist/browser/components/NotFoundPage/index.cjs +0 -209
  20. package/dist/browser/components/NotFoundPage/index.cjs.map +0 -1
  21. package/dist/browser/components/NotFoundPage/index.js +0 -186
  22. package/dist/browser/components/NotFoundPage/index.js.map +0 -1
  23. package/dist/browser/components/Page.cjs +0 -200
  24. package/dist/browser/components/Page.cjs.map +0 -1
  25. package/dist/browser/components/Page.js +0 -179
  26. package/dist/browser/components/Page.js.map +0 -1
  27. package/dist/browser/components/index.cjs +0 -261
  28. package/dist/browser/components/index.cjs.map +0 -1
  29. package/dist/browser/components/index.js +0 -238
  30. package/dist/browser/components/index.js.map +0 -1
  31. package/dist/browser/components/lib/cssValues.cjs +0 -43
  32. package/dist/browser/components/lib/cssValues.cjs.map +0 -1
  33. package/dist/browser/components/lib/cssValues.js +0 -22
  34. package/dist/browser/components/lib/cssValues.js.map +0 -1
  35. package/dist/browser/components/lib/index.cjs +0 -45
  36. package/dist/browser/components/lib/index.cjs.map +0 -1
  37. package/dist/browser/components/lib/index.js +0 -22
  38. package/dist/browser/components/lib/index.js.map +0 -1
  39. package/dist/node/components/Body.cjs +0 -120
  40. package/dist/node/components/Body.cjs.map +0 -1
  41. package/dist/node/components/Body.js +0 -95
  42. package/dist/node/components/Body.js.map +0 -1
  43. package/dist/node/components/Chrome.cjs +0 -250
  44. package/dist/node/components/Chrome.cjs.map +0 -1
  45. package/dist/node/components/Chrome.js +0 -225
  46. package/dist/node/components/Chrome.js.map +0 -1
  47. package/dist/node/components/ErrorPage.cjs +0 -216
  48. package/dist/node/components/ErrorPage.cjs.map +0 -1
  49. package/dist/node/components/ErrorPage.js +0 -190
  50. package/dist/node/components/ErrorPage.js.map +0 -1
  51. package/dist/node/components/NotFoundPage/Page.cjs +0 -212
  52. package/dist/node/components/NotFoundPage/Page.cjs.map +0 -1
  53. package/dist/node/components/NotFoundPage/Page.js +0 -186
  54. package/dist/node/components/NotFoundPage/Page.js.map +0 -1
  55. package/dist/node/components/NotFoundPage/index.cjs +0 -214
  56. package/dist/node/components/NotFoundPage/index.cjs.map +0 -1
  57. package/dist/node/components/NotFoundPage/index.js +0 -186
  58. package/dist/node/components/NotFoundPage/index.js.map +0 -1
  59. package/dist/node/components/Page.cjs +0 -205
  60. package/dist/node/components/Page.cjs.map +0 -1
  61. package/dist/node/components/Page.js +0 -179
  62. package/dist/node/components/Page.js.map +0 -1
  63. package/dist/node/components/index.cjs +0 -272
  64. package/dist/node/components/index.cjs.map +0 -1
  65. package/dist/node/components/index.js +0 -238
  66. package/dist/node/components/index.js.map +0 -1
  67. package/dist/node/components/lib/cssValues.cjs +0 -50
  68. package/dist/node/components/lib/cssValues.cjs.map +0 -1
  69. package/dist/node/components/lib/cssValues.js +0 -22
  70. package/dist/node/components/lib/cssValues.js.map +0 -1
  71. package/dist/node/components/lib/index.cjs +0 -52
  72. package/dist/node/components/lib/index.cjs.map +0 -1
  73. package/dist/node/components/lib/index.js +0 -22
  74. package/dist/node/components/lib/index.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/Body.tsx","../../../src/components/lib/cssValues.ts"],"sourcesContent":["import { Breakpoint, styled } from '@mui/material'\nimport { FlexBoxProps, FlexGrowCol, FlexRow } from '@xylabs/react-flexbox'\nimport React, { ReactNode } from 'react'\n\nimport { fixedContent, scrollableContent } from './lib'\n\nconst WebAppBodyName = 'WebAppBody'\nconst propsNotForwarded = ['mobileScrollingBreakpoint', 'variant', 'spacing', 'disableBreadcrumbGutter']\nconst defaultStyledOptions = {\n shouldForwardProp: (prop: string) => !propsNotForwarded.includes(prop),\n}\n\nconst WebAppBodyRoot = styled(FlexGrowCol, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Root',\n})<WebAppBodyProps>(({ spacing, theme, mobileScrollingBreakpoint = 'sm', variant }) => {\n const scrollable = variant === 'scrollable'\n return theme.unstable_sx({\n alignItems: 'stretch',\n gap: 1,\n justifyContent: 'flex-start',\n overflowX: 'visible',\n overflowY: scrollable ? 'scroll' : 'hidden',\n paddingY: spacing,\n [theme.breakpoints.down(mobileScrollingBreakpoint)]: {\n overflowY: 'scroll',\n },\n })\n})\n\nconst WebAppBodyBreadcrumb = styled(FlexRow, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Breadcrumb',\n})<WebAppBodyProps>(({ theme, disableBreadcrumbGutter, spacing }) =>\n theme.unstable_sx({\n justifyContent: 'start',\n marginX: disableBreadcrumbGutter ? 0 : spacing,\n }),\n)\n\nconst WebAppBodyScrollableWrapper = styled(FlexGrowCol, {\n name: WebAppBodyName,\n slot: 'ScrollableWrapper',\n})<WebAppBodyProps>(() => ({\n alignItems: 'stretch',\n}))\n\nconst WebAppBodyScrollable = styled(FlexGrowCol, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Scrollable',\n})<WebAppBodyProps>(({ theme, mobileScrollingBreakpoint = 'sm', variant }) => {\n const props = variant === 'scrollable' ? scrollableContent : fixedContent\n return {\n ...props,\n alignItems: 'stretch',\n justifyContent: 'start',\n [theme.breakpoints.down(mobileScrollingBreakpoint)]: {\n inset: 'unset',\n position: 'relative',\n },\n }\n})\n\nexport interface WebAppBodyProps extends FlexBoxProps {\n breadcrumbs?: ReactNode\n disableBreadcrumbGutter?: boolean\n mobileScrollingBreakpoint?: Breakpoint\n spacing?: string | number\n variant?: 'scrollable' | 'fixed'\n}\n\nexport const WebAppBody: React.FC<WebAppBodyProps> = ({\n children,\n breadcrumbs,\n disableBreadcrumbGutter,\n mobileScrollingBreakpoint,\n spacing = 1,\n variant,\n ...props\n}) => {\n return (\n <WebAppBodyRoot mobileScrollingBreakpoint={mobileScrollingBreakpoint} spacing={spacing} variant={variant} {...props}>\n {breadcrumbs ? (\n <WebAppBodyBreadcrumb disableBreadcrumbGutter={disableBreadcrumbGutter} spacing={spacing}>\n {breadcrumbs}\n </WebAppBodyBreadcrumb>\n ) : null}\n <WebAppBodyScrollableWrapper>\n <WebAppBodyScrollable mobileScrollingBreakpoint={mobileScrollingBreakpoint} variant={variant}>\n {children}\n </WebAppBodyScrollable>\n </WebAppBodyScrollableWrapper>\n </WebAppBodyRoot>\n )\n}\n","import { CSSProperties } from 'react'\n\nexport const scrollableWrap: CSSProperties = {\n inset: 0,\n position: 'absolute',\n} as const\n\nexport const fixedWrap: CSSProperties = {\n inset: 'unset',\n position: 'relative',\n} as const\n\n// Making a scrollable vs fixed wrapper and content is an inversion of the wrap and content styles\nexport const scrollableContent: CSSProperties = {\n ...fixedWrap,\n} as const\n\nexport const fixedContent: CSSProperties = {\n ...scrollableWrap,\n} as const\n"],"mappings":";AAAA,SAAqB,cAAc;AACnC,SAAuB,aAAa,eAAe;;;ACC5C,IAAM,iBAAgC;AAAA,EAC3C,OAAO;AAAA,EACP,UAAU;AACZ;AAEO,IAAM,YAA2B;AAAA,EACtC,OAAO;AAAA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AM;AAC5E,QAAM,QAAQ,YAAY,eAAe,oBAAoB;AAC7D,SAAO;AAAA,IACL,GAAG;AAAA,IACH,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,CAAC,MAAM,YAAY,KAAK,yBAAyB,CAAC,GAAG;AAAA,MACnD,OAAO;AAAA,MACP,UAAU;AAAA,IACZ;AAAA,EACF;AACF,CAAC;AAUM,IAAM,aAAwC,CAAC;AAAA,EACpD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV;AAAA,EACA,GAAG;AACL,MAAM;AACJ,SACE,qBAAC,kBAAe,2BAAsD,SAAkB,SAAmB,GAAG,OAC3G;AAAA,kBACC,oBAAC,wBAAqB,yBAAkD,SACrE,uBACH,IACE;AAAA,IACJ,oBAAC,+BACC,8BAAC,wBAAqB,2BAAsD,SACzE,UACH,GACF;AAAA,KACF;AAEJ;","names":[]}
@@ -1,250 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/components/Chrome.tsx
21
- var Chrome_exports = {};
22
- __export(Chrome_exports, {
23
- WebAppChrome: () => WebAppChrome
24
- });
25
- module.exports = __toCommonJS(Chrome_exports);
26
- var import_material3 = require("@mui/material");
27
- var import_react_flexbox3 = require("@xylabs/react-flexbox");
28
- var import_react_appbar = require("@xyo-network/react-appbar");
29
- var import_react_footer = require("@xyo-network/react-footer");
30
- var import_react_shared = require("@xyo-network/react-shared");
31
- var import_react = require("react");
32
- var import_react_helmet2 = require("react-helmet");
33
-
34
- // src/components/ErrorPage.tsx
35
- var import_react_button = require("@xylabs/react-button");
36
-
37
- // src/components/Page.tsx
38
- var import_material2 = require("@mui/material");
39
- var import_react_async_effect = require("@xylabs/react-async-effect");
40
- var import_react_flexbox2 = require("@xylabs/react-flexbox");
41
- var import_react_pixel = require("@xylabs/react-pixel");
42
- var import_react_helmet = require("react-helmet");
43
- var import_react_router_dom = require("react-router-dom");
44
-
45
- // src/components/Body.tsx
46
- var import_material = require("@mui/material");
47
- var import_react_flexbox = require("@xylabs/react-flexbox");
48
-
49
- // src/components/lib/cssValues.ts
50
- var scrollableWrap = {
51
- inset: 0,
52
- position: "absolute"
53
- };
54
- var fixedWrap = {
55
- inset: "unset",
56
- position: "relative"
57
- };
58
- var scrollableContent = {
59
- ...fixedWrap
60
- };
61
- var fixedContent = {
62
- ...scrollableWrap
63
- };
64
-
65
- // src/components/Body.tsx
66
- var import_jsx_runtime = require("react/jsx-runtime");
67
- var WebAppBodyName = "WebAppBody";
68
- var propsNotForwarded = ["mobileScrollingBreakpoint", "variant", "spacing", "disableBreadcrumbGutter"];
69
- var defaultStyledOptions = {
70
- shouldForwardProp: (prop) => !propsNotForwarded.includes(prop)
71
- };
72
- var WebAppBodyRoot = (0, import_material.styled)(import_react_flexbox.FlexGrowCol, {
73
- ...defaultStyledOptions,
74
- name: WebAppBodyName,
75
- slot: "Root"
76
- })(({ spacing, theme, mobileScrollingBreakpoint = "sm", variant }) => {
77
- const scrollable = variant === "scrollable";
78
- return theme.unstable_sx({
79
- alignItems: "stretch",
80
- gap: 1,
81
- justifyContent: "flex-start",
82
- overflowX: "visible",
83
- overflowY: scrollable ? "scroll" : "hidden",
84
- paddingY: spacing,
85
- [theme.breakpoints.down(mobileScrollingBreakpoint)]: {
86
- overflowY: "scroll"
87
- }
88
- });
89
- });
90
- var WebAppBodyBreadcrumb = (0, import_material.styled)(import_react_flexbox.FlexRow, {
91
- ...defaultStyledOptions,
92
- name: WebAppBodyName,
93
- slot: "Breadcrumb"
94
- })(
95
- ({ theme, disableBreadcrumbGutter, spacing }) => theme.unstable_sx({
96
- justifyContent: "start",
97
- marginX: disableBreadcrumbGutter ? 0 : spacing
98
- })
99
- );
100
- var WebAppBodyScrollableWrapper = (0, import_material.styled)(import_react_flexbox.FlexGrowCol, {
101
- name: WebAppBodyName,
102
- slot: "ScrollableWrapper"
103
- })(() => ({
104
- alignItems: "stretch"
105
- }));
106
- var WebAppBodyScrollable = (0, import_material.styled)(import_react_flexbox.FlexGrowCol, {
107
- ...defaultStyledOptions,
108
- name: WebAppBodyName,
109
- slot: "Scrollable"
110
- })(({ theme, mobileScrollingBreakpoint = "sm", variant }) => {
111
- const props = variant === "scrollable" ? scrollableContent : fixedContent;
112
- return {
113
- ...props,
114
- alignItems: "stretch",
115
- justifyContent: "start",
116
- [theme.breakpoints.down(mobileScrollingBreakpoint)]: {
117
- inset: "unset",
118
- position: "relative"
119
- }
120
- };
121
- });
122
- var WebAppBody = ({
123
- children,
124
- breadcrumbs,
125
- disableBreadcrumbGutter,
126
- mobileScrollingBreakpoint,
127
- spacing = 1,
128
- variant,
129
- ...props
130
- }) => {
131
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(WebAppBodyRoot, { mobileScrollingBreakpoint, spacing, variant, ...props, children: [
132
- breadcrumbs ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WebAppBodyBreadcrumb, { disableBreadcrumbGutter, spacing, children: breadcrumbs }) : null,
133
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WebAppBodyScrollableWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WebAppBodyScrollable, { mobileScrollingBreakpoint, variant, children }) })
134
- ] });
135
- };
136
-
137
- // src/components/Page.tsx
138
- var import_jsx_runtime2 = require("react/jsx-runtime");
139
- var WebAppPageRoot = (0, import_material2.styled)(import_react_flexbox2.FlexGrowCol, {
140
- name: "WebAppPage",
141
- shouldForwardProp: (propName) => propName !== "mobileScrollingBreakpoint" && propName !== "variant",
142
- slot: "Root"
143
- })(({ theme, mobileScrollingBreakpoint = "sm", variant }) => {
144
- const props = variant === "scrollable" ? scrollableWrap : fixedWrap;
145
- return {
146
- ...props,
147
- alignItems: "stretch",
148
- justifyContent: "start",
149
- maxWidth: "100vw",
150
- [theme.breakpoints.down(mobileScrollingBreakpoint)]: {
151
- inset: 0,
152
- position: "absolute"
153
- }
154
- };
155
- });
156
- var WebAppPage = ({
157
- disableGutters,
158
- disableBreadcrumbGutter,
159
- title,
160
- container,
161
- children,
162
- breadcrumbs,
163
- mobileScrollingBreakpoint,
164
- variant = "scrollable",
165
- ...props
166
- }) => {
167
- const userEvents = (0, import_react_pixel.useUserEvents)();
168
- const { pathname } = (0, import_react_router_dom.useLocation)();
169
- (0, import_react_async_effect.useAsyncEffect)(
170
- // eslint-disable-next-line react-hooks/exhaustive-deps
171
- async () => {
172
- await (userEvents == null ? void 0 : userEvents.viewContent({ name: title ?? "NodeBasePage", path: location.pathname }));
173
- },
174
- [pathname, title, userEvents]
175
- );
176
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(WebAppPageRoot, { mobileScrollingBreakpoint, variant, ...props, children: [
177
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_helmet.Helmet, { title }),
178
- container && container !== "none" ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
179
- import_material2.Container,
180
- {
181
- disableGutters,
182
- style: { alignItems: "stretch", display: "flex", flexDirection: "column", flexGrow: 1, justifyContent: "flex-start" },
183
- maxWidth: container,
184
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
185
- WebAppBody,
186
- {
187
- disableBreadcrumbGutter,
188
- breadcrumbs,
189
- mobileScrollingBreakpoint,
190
- variant,
191
- ...props,
192
- children
193
- }
194
- )
195
- }
196
- ) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
197
- WebAppBody,
198
- {
199
- disableBreadcrumbGutter,
200
- breadcrumbs,
201
- mobileScrollingBreakpoint,
202
- paddingX: disableGutters ? 0 : 1,
203
- variant,
204
- ...props,
205
- children
206
- }
207
- )
208
- ] });
209
- };
210
-
211
- // src/components/ErrorPage.tsx
212
- var import_jsx_runtime3 = require("react/jsx-runtime");
213
- var WebAppErrorPage = ({ error, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(WebAppPage, { title: "Oops! Something went wrong", ...props, children: [
214
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h1", { children: "Oops! Something went wrong!" }),
215
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { children: `${error}` }),
216
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_button.ButtonEx, { href: "/", variant: "contained", children: "Homepage" })
217
- ] });
218
-
219
- // src/components/Chrome.tsx
220
- var import_jsx_runtime4 = require("react/jsx-runtime");
221
- var WebAppChrome = (0, import_react.forwardRef)(
222
- ({ appName, appbar, children, errorPage, footer, footerElevation = 4, menuItems, navigationType = "menu", ...props }, ref) => {
223
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_react_flexbox3.FlexCol, { id: "web-chrome-flex", alignItems: "stretch", overflow: "hidden", height: "100vh", ref, ...props, children: [
224
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_helmet2.Helmet, { defaultTitle: appName, titleTemplate: `%s | ${appName}`, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("meta", { content: "website", property: "og:type" }) }),
225
- appbar ?? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_appbar.ApplicationAppBar, { systemToolbar: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_appbar.SystemToolbar, { menuItems: navigationType === "menu" ? menuItems : void 0 }) }),
226
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_react_flexbox3.FlexGrowRow, { id: "sidebar-nav-flex", overflow: "hidden", alignItems: "stretch", children: [
227
- navigationType !== "menu" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
228
- menuItems,
229
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material3.Divider, { orientation: "vertical" })
230
- ] }) : null,
231
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_flexbox3.FlexGrowCol, { id: "main-flex", justifyContent: "flex-start", alignItems: "stretch", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
232
- import_react_shared.ErrorBoundary,
233
- {
234
- fallbackWithError: (error) => {
235
- return errorPage ?? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(WebAppErrorPage, { error });
236
- },
237
- children
238
- }
239
- ) })
240
- ] }),
241
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_flexbox3.FlexCol, { id: "footer-flex", alignItems: "stretch", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material3.Paper, { elevation: footerElevation, square: true, children: footer ?? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_footer.Footer, { dynamicHeight: true }) }) })
242
- ] });
243
- }
244
- );
245
- WebAppChrome.displayName = "WebAppChrome";
246
- // Annotate the CommonJS export names for ESM import in node:
247
- 0 && (module.exports = {
248
- WebAppChrome
249
- });
250
- //# sourceMappingURL=Chrome.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/Chrome.tsx","../../../src/components/ErrorPage.tsx","../../../src/components/Page.tsx","../../../src/components/Body.tsx","../../../src/components/lib/cssValues.ts"],"sourcesContent":["import { Divider, Paper } from '@mui/material'\nimport { FlexBoxProps, FlexCol, FlexGrowCol, FlexGrowRow } from '@xylabs/react-flexbox'\nimport { WebAppNavigationType } from '@xyo-network/react-app-settings'\nimport { ApplicationAppBar, SystemToolbar } from '@xyo-network/react-appbar'\nimport { Footer } from '@xyo-network/react-footer'\nimport { ErrorBoundary } from '@xyo-network/react-shared'\nimport { forwardRef, ReactNode } from 'react'\nimport { Helmet } from 'react-helmet'\n\nimport { WebAppErrorPage } from './ErrorPage'\n\nexport interface WebAppChromeProps extends FlexBoxProps {\n appName: string\n appbar?: ReactNode\n errorPage?: ReactNode\n footer?: ReactNode\n footerElevation?: number\n menuItems?: ReactNode\n navigationType?: WebAppNavigationType\n}\n\nexport const WebAppChrome = forwardRef<HTMLDivElement, WebAppChromeProps>(\n ({ appName, appbar, children, errorPage, footer, footerElevation = 4, menuItems, navigationType = 'menu', ...props }, ref) => {\n return (\n <FlexCol id=\"web-chrome-flex\" alignItems=\"stretch\" overflow=\"hidden\" height=\"100vh\" ref={ref} {...props}>\n <Helmet defaultTitle={appName} titleTemplate={`%s | ${appName}`}>\n <meta content=\"website\" property=\"og:type\" />\n </Helmet>\n {appbar ?? <ApplicationAppBar systemToolbar={<SystemToolbar menuItems={navigationType === 'menu' ? menuItems : undefined} />} />}\n <FlexGrowRow id=\"sidebar-nav-flex\" overflow=\"hidden\" alignItems=\"stretch\">\n {navigationType !== 'menu' ? (\n <>\n {menuItems}\n <Divider orientation=\"vertical\" />\n </>\n ) : null}\n <FlexGrowCol id=\"main-flex\" justifyContent=\"flex-start\" alignItems=\"stretch\">\n <ErrorBoundary\n fallbackWithError={(error) => {\n return errorPage ?? <WebAppErrorPage error={error} />\n }}\n >\n {children}\n </ErrorBoundary>\n </FlexGrowCol>\n </FlexGrowRow>\n <FlexCol id=\"footer-flex\" alignItems=\"stretch\">\n <Paper elevation={footerElevation} square>\n {footer ?? <Footer dynamicHeight />}\n </Paper>\n </FlexCol>\n </FlexCol>\n )\n },\n)\n\nWebAppChrome.displayName = 'WebAppChrome'\n","import { ButtonEx } from '@xylabs/react-button'\n\nimport { WebAppPage, WebAppPageProps } from './Page'\n\nexport interface WebAppErrorPageProps extends WebAppPageProps {\n error?: Error\n}\n\nexport const WebAppErrorPage: React.FC<WebAppErrorPageProps> = ({ error, ...props }) => (\n <WebAppPage title=\"Oops! Something went wrong\" {...props}>\n <h1>Oops! Something went wrong!</h1>\n <p>{`${error}`}</p>\n <ButtonEx href=\"/\" variant=\"contained\">\n Homepage\n </ButtonEx>\n </WebAppPage>\n)\n\n/** @deprecated use WebAppErrorPage instead */\nexport const ErrorPage = WebAppErrorPage\n","import { Container, ContainerProps, styled } from '@mui/material'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { FlexBoxProps, FlexGrowCol } from '@xylabs/react-flexbox'\nimport { useUserEvents } from '@xylabs/react-pixel'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { Helmet } from 'react-helmet'\nimport { useLocation } from 'react-router-dom'\n\nimport { WebAppBody, WebAppBodyProps } from './Body'\nimport { fixedWrap, scrollableWrap } from './lib'\n\nconst WebAppPageRoot = styled(FlexGrowCol, {\n name: 'WebAppPage',\n shouldForwardProp: (propName) => propName !== 'mobileScrollingBreakpoint' && propName !== 'variant',\n slot: 'Root',\n})<WebAppPageProps>(({ theme, mobileScrollingBreakpoint = 'sm', variant }) => {\n const props = variant === 'scrollable' ? scrollableWrap : fixedWrap\n return {\n ...props,\n alignItems: 'stretch',\n justifyContent: 'start',\n maxWidth: '100vw',\n [theme.breakpoints.down(mobileScrollingBreakpoint)]: {\n inset: 0,\n position: 'absolute',\n },\n }\n})\n\nexport interface WebAppPageProps extends WebAppBodyProps, FlexBoxProps {\n container?: ContainerProps['maxWidth'] | 'none'\n disableGutters?: boolean\n}\n\nexport const WebAppPage: React.FC<WithChildren<WebAppPageProps>> = ({\n disableGutters,\n disableBreadcrumbGutter,\n title,\n container,\n children,\n breadcrumbs,\n mobileScrollingBreakpoint,\n variant = 'scrollable',\n ...props\n}) => {\n const userEvents = useUserEvents()\n const { pathname } = useLocation()\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async () => {\n await userEvents?.viewContent({ name: title ?? 'NodeBasePage', path: location.pathname })\n },\n [pathname, title, userEvents],\n )\n\n return (\n <WebAppPageRoot mobileScrollingBreakpoint={mobileScrollingBreakpoint} variant={variant} {...props}>\n <Helmet title={title} />\n {container && container !== 'none' ? (\n <Container\n disableGutters={disableGutters}\n style={{ alignItems: 'stretch', display: 'flex', flexDirection: 'column', flexGrow: 1, justifyContent: 'flex-start' }}\n maxWidth={container}\n >\n <WebAppBody\n disableBreadcrumbGutter={disableBreadcrumbGutter}\n breadcrumbs={breadcrumbs}\n mobileScrollingBreakpoint={mobileScrollingBreakpoint}\n variant={variant}\n {...props}\n >\n {children}\n </WebAppBody>\n </Container>\n ) : (\n <WebAppBody\n disableBreadcrumbGutter={disableBreadcrumbGutter}\n breadcrumbs={breadcrumbs}\n mobileScrollingBreakpoint={mobileScrollingBreakpoint}\n paddingX={disableGutters ? 0 : 1}\n variant={variant}\n {...props}\n >\n {children}\n </WebAppBody>\n )}\n </WebAppPageRoot>\n )\n}\n\n/** @deprecated use WebAppPagePage instead */\nexport const FlexPage = WebAppPage\n","import { Breakpoint, styled } from '@mui/material'\nimport { FlexBoxProps, FlexGrowCol, FlexRow } from '@xylabs/react-flexbox'\nimport React, { ReactNode } from 'react'\n\nimport { fixedContent, scrollableContent } from './lib'\n\nconst WebAppBodyName = 'WebAppBody'\nconst propsNotForwarded = ['mobileScrollingBreakpoint', 'variant', 'spacing', 'disableBreadcrumbGutter']\nconst defaultStyledOptions = {\n shouldForwardProp: (prop: string) => !propsNotForwarded.includes(prop),\n}\n\nconst WebAppBodyRoot = styled(FlexGrowCol, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Root',\n})<WebAppBodyProps>(({ spacing, theme, mobileScrollingBreakpoint = 'sm', variant }) => {\n const scrollable = variant === 'scrollable'\n return theme.unstable_sx({\n alignItems: 'stretch',\n gap: 1,\n justifyContent: 'flex-start',\n overflowX: 'visible',\n overflowY: scrollable ? 'scroll' : 'hidden',\n paddingY: spacing,\n [theme.breakpoints.down(mobileScrollingBreakpoint)]: {\n overflowY: 'scroll',\n },\n })\n})\n\nconst WebAppBodyBreadcrumb = styled(FlexRow, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Breadcrumb',\n})<WebAppBodyProps>(({ theme, disableBreadcrumbGutter, spacing }) =>\n theme.unstable_sx({\n justifyContent: 'start',\n marginX: disableBreadcrumbGutter ? 0 : spacing,\n }),\n)\n\nconst WebAppBodyScrollableWrapper = styled(FlexGrowCol, {\n name: WebAppBodyName,\n slot: 'ScrollableWrapper',\n})<WebAppBodyProps>(() => ({\n alignItems: 'stretch',\n}))\n\nconst WebAppBodyScrollable = styled(FlexGrowCol, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Scrollable',\n})<WebAppBodyProps>(({ theme, mobileScrollingBreakpoint = 'sm', variant }) => {\n const props = variant === 'scrollable' ? scrollableContent : fixedContent\n return {\n ...props,\n alignItems: 'stretch',\n justifyContent: 'start',\n [theme.breakpoints.down(mobileScrollingBreakpoint)]: {\n inset: 'unset',\n position: 'relative',\n },\n }\n})\n\nexport interface WebAppBodyProps extends FlexBoxProps {\n breadcrumbs?: ReactNode\n disableBreadcrumbGutter?: boolean\n mobileScrollingBreakpoint?: Breakpoint\n spacing?: string | number\n variant?: 'scrollable' | 'fixed'\n}\n\nexport const WebAppBody: React.FC<WebAppBodyProps> = ({\n children,\n breadcrumbs,\n disableBreadcrumbGutter,\n mobileScrollingBreakpoint,\n spacing = 1,\n variant,\n ...props\n}) => {\n return (\n <WebAppBodyRoot mobileScrollingBreakpoint={mobileScrollingBreakpoint} spacing={spacing} variant={variant} {...props}>\n {breadcrumbs ? (\n <WebAppBodyBreadcrumb disableBreadcrumbGutter={disableBreadcrumbGutter} spacing={spacing}>\n {breadcrumbs}\n </WebAppBodyBreadcrumb>\n ) : null}\n <WebAppBodyScrollableWrapper>\n <WebAppBodyScrollable mobileScrollingBreakpoint={mobileScrollingBreakpoint} variant={variant}>\n {children}\n </WebAppBodyScrollable>\n </WebAppBodyScrollableWrapper>\n </WebAppBodyRoot>\n )\n}\n","import { CSSProperties } from 'react'\n\nexport const scrollableWrap: CSSProperties = {\n inset: 0,\n position: 'absolute',\n} as const\n\nexport const fixedWrap: CSSProperties = {\n inset: 'unset',\n position: 'relative',\n} as const\n\n// Making a scrollable vs fixed wrapper and content is an inversion of the wrap and content styles\nexport const scrollableContent: CSSProperties = {\n ...fixedWrap,\n} as const\n\nexport const fixedContent: CSSProperties = {\n ...scrollableWrap,\n} as const\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,mBAA+B;AAC/B,IAAAC,wBAAgE;AAEhE,0BAAiD;AACjD,0BAAuB;AACvB,0BAA8B;AAC9B,mBAAsC;AACtC,IAAAC,uBAAuB;;;ACPvB,0BAAyB;;;ACAzB,IAAAC,mBAAkD;AAClD,gCAA+B;AAC/B,IAAAC,wBAA0C;AAC1C,yBAA8B;AAE9B,0BAAuB;AACvB,8BAA4B;;;ACN5B,sBAAmC;AACnC,2BAAmD;;;ACC5C,IAAM,iBAAgC;AAAA,EAC3C,OAAO;AAAA,EACP,UAAU;AACZ;AAEO,IAAM,YAA2B;AAAA,EACtC,OAAO;AAAA,EACP,UAAU;AACZ;AAGO,IAAM,oBAAmC;AAAA,EAC9C,GAAG;AACL;AAEO,IAAM,eAA8B;AAAA,EACzC,GAAG;AACL;;;ADiEI;AA9EJ,IAAM,iBAAiB;AACvB,IAAM,oBAAoB,CAAC,6BAA6B,WAAW,WAAW,yBAAyB;AACvG,IAAM,uBAAuB;AAAA,EAC3B,mBAAmB,CAAC,SAAiB,CAAC,kBAAkB,SAAS,IAAI;AACvE;AAEA,IAAM,qBAAiB,wBAAO,kCAAa;AAAA,EACzC,GAAG;AAAA,EACH,MAAM;AAAA,EACN,MAAM;AACR,CAAC,EAAmB,CAAC,EAAE,SAAS,OAAO,4BAA4B,MAAM,QAAQ,MAAM;AACrF,QAAM,aAAa,YAAY;AAC/B,SAAO,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aAAa,6CAAC,mBAAgB,OAAc;AAAA,YACrD;AAAA,YAEC;AAAA;AAAA,QACH,GACF;AAAA,SACF;AAAA,MACA,6CAAC,iCAAQ,IAAG,eAAc,YAAW,WACnC,uDAAC,0BAAM,WAAW,iBAAiB,QAAM,MACtC,oBAAU,6CAAC,8BAAO,eAAa,MAAC,GACnC,GACF;AAAA,OACF;AAAA,EAEJ;AACF;AAEA,aAAa,cAAc;","names":["import_material","import_react_flexbox","import_react_helmet","import_material","import_react_flexbox","import_jsx_runtime","import_jsx_runtime","import_jsx_runtime"]}
@@ -1,225 +0,0 @@
1
- // src/components/Chrome.tsx
2
- import { Divider, Paper } from "@mui/material";
3
- import { FlexCol, FlexGrowCol as FlexGrowCol3, FlexGrowRow } from "@xylabs/react-flexbox";
4
- import { ApplicationAppBar, SystemToolbar } from "@xyo-network/react-appbar";
5
- import { Footer } from "@xyo-network/react-footer";
6
- import { ErrorBoundary } from "@xyo-network/react-shared";
7
- import { forwardRef } from "react";
8
- import { Helmet as Helmet2 } from "react-helmet";
9
-
10
- // src/components/ErrorPage.tsx
11
- import { ButtonEx } from "@xylabs/react-button";
12
-
13
- // src/components/Page.tsx
14
- import { Container, styled as styled2 } from "@mui/material";
15
- import { useAsyncEffect } from "@xylabs/react-async-effect";
16
- import { FlexGrowCol as FlexGrowCol2 } from "@xylabs/react-flexbox";
17
- import { useUserEvents } from "@xylabs/react-pixel";
18
- import { Helmet } from "react-helmet";
19
- import { useLocation } from "react-router-dom";
20
-
21
- // src/components/Body.tsx
22
- import { styled } from "@mui/material";
23
- import { FlexGrowCol, FlexRow } from "@xylabs/react-flexbox";
24
-
25
- // src/components/lib/cssValues.ts
26
- var scrollableWrap = {
27
- inset: 0,
28
- position: "absolute"
29
- };
30
- var fixedWrap = {
31
- inset: "unset",
32
- position: "relative"
33
- };
34
- var scrollableContent = {
35
- ...fixedWrap
36
- };
37
- var fixedContent = {
38
- ...scrollableWrap
39
- };
40
-
41
- // src/components/Body.tsx
42
- import { jsx, jsxs } from "react/jsx-runtime";
43
- var WebAppBodyName = "WebAppBody";
44
- var propsNotForwarded = ["mobileScrollingBreakpoint", "variant", "spacing", "disableBreadcrumbGutter"];
45
- var defaultStyledOptions = {
46
- shouldForwardProp: (prop) => !propsNotForwarded.includes(prop)
47
- };
48
- var WebAppBodyRoot = styled(FlexGrowCol, {
49
- ...defaultStyledOptions,
50
- name: WebAppBodyName,
51
- slot: "Root"
52
- })(({ spacing, theme, mobileScrollingBreakpoint = "sm", variant }) => {
53
- const scrollable = variant === "scrollable";
54
- return theme.unstable_sx({
55
- alignItems: "stretch",
56
- gap: 1,
57
- justifyContent: "flex-start",
58
- overflowX: "visible",
59
- overflowY: scrollable ? "scroll" : "hidden",
60
- paddingY: spacing,
61
- [theme.breakpoints.down(mobileScrollingBreakpoint)]: {
62
- overflowY: "scroll"
63
- }
64
- });
65
- });
66
- var WebAppBodyBreadcrumb = styled(FlexRow, {
67
- ...defaultStyledOptions,
68
- name: WebAppBodyName,
69
- slot: "Breadcrumb"
70
- })(
71
- ({ theme, disableBreadcrumbGutter, spacing }) => theme.unstable_sx({
72
- justifyContent: "start",
73
- marginX: disableBreadcrumbGutter ? 0 : spacing
74
- })
75
- );
76
- var WebAppBodyScrollableWrapper = styled(FlexGrowCol, {
77
- name: WebAppBodyName,
78
- slot: "ScrollableWrapper"
79
- })(() => ({
80
- alignItems: "stretch"
81
- }));
82
- var WebAppBodyScrollable = styled(FlexGrowCol, {
83
- ...defaultStyledOptions,
84
- name: WebAppBodyName,
85
- slot: "Scrollable"
86
- })(({ theme, mobileScrollingBreakpoint = "sm", variant }) => {
87
- const props = variant === "scrollable" ? scrollableContent : fixedContent;
88
- return {
89
- ...props,
90
- alignItems: "stretch",
91
- justifyContent: "start",
92
- [theme.breakpoints.down(mobileScrollingBreakpoint)]: {
93
- inset: "unset",
94
- position: "relative"
95
- }
96
- };
97
- });
98
- var WebAppBody = ({
99
- children,
100
- breadcrumbs,
101
- disableBreadcrumbGutter,
102
- mobileScrollingBreakpoint,
103
- spacing = 1,
104
- variant,
105
- ...props
106
- }) => {
107
- return /* @__PURE__ */ jsxs(WebAppBodyRoot, { mobileScrollingBreakpoint, spacing, variant, ...props, children: [
108
- breadcrumbs ? /* @__PURE__ */ jsx(WebAppBodyBreadcrumb, { disableBreadcrumbGutter, spacing, children: breadcrumbs }) : null,
109
- /* @__PURE__ */ jsx(WebAppBodyScrollableWrapper, { children: /* @__PURE__ */ jsx(WebAppBodyScrollable, { mobileScrollingBreakpoint, variant, children }) })
110
- ] });
111
- };
112
-
113
- // src/components/Page.tsx
114
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
115
- var WebAppPageRoot = styled2(FlexGrowCol2, {
116
- name: "WebAppPage",
117
- shouldForwardProp: (propName) => propName !== "mobileScrollingBreakpoint" && propName !== "variant",
118
- slot: "Root"
119
- })(({ theme, mobileScrollingBreakpoint = "sm", variant }) => {
120
- const props = variant === "scrollable" ? scrollableWrap : fixedWrap;
121
- return {
122
- ...props,
123
- alignItems: "stretch",
124
- justifyContent: "start",
125
- maxWidth: "100vw",
126
- [theme.breakpoints.down(mobileScrollingBreakpoint)]: {
127
- inset: 0,
128
- position: "absolute"
129
- }
130
- };
131
- });
132
- var WebAppPage = ({
133
- disableGutters,
134
- disableBreadcrumbGutter,
135
- title,
136
- container,
137
- children,
138
- breadcrumbs,
139
- mobileScrollingBreakpoint,
140
- variant = "scrollable",
141
- ...props
142
- }) => {
143
- const userEvents = useUserEvents();
144
- const { pathname } = useLocation();
145
- useAsyncEffect(
146
- // eslint-disable-next-line react-hooks/exhaustive-deps
147
- async () => {
148
- await (userEvents == null ? void 0 : userEvents.viewContent({ name: title ?? "NodeBasePage", path: location.pathname }));
149
- },
150
- [pathname, title, userEvents]
151
- );
152
- return /* @__PURE__ */ jsxs2(WebAppPageRoot, { mobileScrollingBreakpoint, variant, ...props, children: [
153
- /* @__PURE__ */ jsx2(Helmet, { title }),
154
- container && container !== "none" ? /* @__PURE__ */ jsx2(
155
- Container,
156
- {
157
- disableGutters,
158
- style: { alignItems: "stretch", display: "flex", flexDirection: "column", flexGrow: 1, justifyContent: "flex-start" },
159
- maxWidth: container,
160
- children: /* @__PURE__ */ jsx2(
161
- WebAppBody,
162
- {
163
- disableBreadcrumbGutter,
164
- breadcrumbs,
165
- mobileScrollingBreakpoint,
166
- variant,
167
- ...props,
168
- children
169
- }
170
- )
171
- }
172
- ) : /* @__PURE__ */ jsx2(
173
- WebAppBody,
174
- {
175
- disableBreadcrumbGutter,
176
- breadcrumbs,
177
- mobileScrollingBreakpoint,
178
- paddingX: disableGutters ? 0 : 1,
179
- variant,
180
- ...props,
181
- children
182
- }
183
- )
184
- ] });
185
- };
186
-
187
- // src/components/ErrorPage.tsx
188
- import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
189
- var WebAppErrorPage = ({ error, ...props }) => /* @__PURE__ */ jsxs3(WebAppPage, { title: "Oops! Something went wrong", ...props, children: [
190
- /* @__PURE__ */ jsx3("h1", { children: "Oops! Something went wrong!" }),
191
- /* @__PURE__ */ jsx3("p", { children: `${error}` }),
192
- /* @__PURE__ */ jsx3(ButtonEx, { href: "/", variant: "contained", children: "Homepage" })
193
- ] });
194
-
195
- // src/components/Chrome.tsx
196
- import { Fragment, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
197
- var WebAppChrome = forwardRef(
198
- ({ appName, appbar, children, errorPage, footer, footerElevation = 4, menuItems, navigationType = "menu", ...props }, ref) => {
199
- return /* @__PURE__ */ jsxs4(FlexCol, { id: "web-chrome-flex", alignItems: "stretch", overflow: "hidden", height: "100vh", ref, ...props, children: [
200
- /* @__PURE__ */ jsx4(Helmet2, { defaultTitle: appName, titleTemplate: `%s | ${appName}`, children: /* @__PURE__ */ jsx4("meta", { content: "website", property: "og:type" }) }),
201
- appbar ?? /* @__PURE__ */ jsx4(ApplicationAppBar, { systemToolbar: /* @__PURE__ */ jsx4(SystemToolbar, { menuItems: navigationType === "menu" ? menuItems : void 0 }) }),
202
- /* @__PURE__ */ jsxs4(FlexGrowRow, { id: "sidebar-nav-flex", overflow: "hidden", alignItems: "stretch", children: [
203
- navigationType !== "menu" ? /* @__PURE__ */ jsxs4(Fragment, { children: [
204
- menuItems,
205
- /* @__PURE__ */ jsx4(Divider, { orientation: "vertical" })
206
- ] }) : null,
207
- /* @__PURE__ */ jsx4(FlexGrowCol3, { id: "main-flex", justifyContent: "flex-start", alignItems: "stretch", children: /* @__PURE__ */ jsx4(
208
- ErrorBoundary,
209
- {
210
- fallbackWithError: (error) => {
211
- return errorPage ?? /* @__PURE__ */ jsx4(WebAppErrorPage, { error });
212
- },
213
- children
214
- }
215
- ) })
216
- ] }),
217
- /* @__PURE__ */ jsx4(FlexCol, { id: "footer-flex", alignItems: "stretch", children: /* @__PURE__ */ jsx4(Paper, { elevation: footerElevation, square: true, children: footer ?? /* @__PURE__ */ jsx4(Footer, { dynamicHeight: true }) }) })
218
- ] });
219
- }
220
- );
221
- WebAppChrome.displayName = "WebAppChrome";
222
- export {
223
- WebAppChrome
224
- };
225
- //# sourceMappingURL=Chrome.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/Chrome.tsx","../../../src/components/ErrorPage.tsx","../../../src/components/Page.tsx","../../../src/components/Body.tsx","../../../src/components/lib/cssValues.ts"],"sourcesContent":["import { Divider, Paper } from '@mui/material'\nimport { FlexBoxProps, FlexCol, FlexGrowCol, FlexGrowRow } from '@xylabs/react-flexbox'\nimport { WebAppNavigationType } from '@xyo-network/react-app-settings'\nimport { ApplicationAppBar, SystemToolbar } from '@xyo-network/react-appbar'\nimport { Footer } from '@xyo-network/react-footer'\nimport { ErrorBoundary } from '@xyo-network/react-shared'\nimport { forwardRef, ReactNode } from 'react'\nimport { Helmet } from 'react-helmet'\n\nimport { WebAppErrorPage } from './ErrorPage'\n\nexport interface WebAppChromeProps extends FlexBoxProps {\n appName: string\n appbar?: ReactNode\n errorPage?: ReactNode\n footer?: ReactNode\n footerElevation?: number\n menuItems?: ReactNode\n navigationType?: WebAppNavigationType\n}\n\nexport const WebAppChrome = forwardRef<HTMLDivElement, WebAppChromeProps>(\n ({ appName, appbar, children, errorPage, footer, footerElevation = 4, menuItems, navigationType = 'menu', ...props }, ref) => {\n return (\n <FlexCol id=\"web-chrome-flex\" alignItems=\"stretch\" overflow=\"hidden\" height=\"100vh\" ref={ref} {...props}>\n <Helmet defaultTitle={appName} titleTemplate={`%s | ${appName}`}>\n <meta content=\"website\" property=\"og:type\" />\n </Helmet>\n {appbar ?? <ApplicationAppBar systemToolbar={<SystemToolbar menuItems={navigationType === 'menu' ? menuItems : undefined} />} />}\n <FlexGrowRow id=\"sidebar-nav-flex\" overflow=\"hidden\" alignItems=\"stretch\">\n {navigationType !== 'menu' ? (\n <>\n {menuItems}\n <Divider orientation=\"vertical\" />\n </>\n ) : null}\n <FlexGrowCol id=\"main-flex\" justifyContent=\"flex-start\" alignItems=\"stretch\">\n <ErrorBoundary\n fallbackWithError={(error) => {\n return errorPage ?? <WebAppErrorPage error={error} />\n }}\n >\n {children}\n </ErrorBoundary>\n </FlexGrowCol>\n </FlexGrowRow>\n <FlexCol id=\"footer-flex\" alignItems=\"stretch\">\n <Paper elevation={footerElevation} square>\n {footer ?? <Footer dynamicHeight />}\n </Paper>\n </FlexCol>\n </FlexCol>\n )\n },\n)\n\nWebAppChrome.displayName = 'WebAppChrome'\n","import { ButtonEx } from '@xylabs/react-button'\n\nimport { WebAppPage, WebAppPageProps } from './Page'\n\nexport interface WebAppErrorPageProps extends WebAppPageProps {\n error?: Error\n}\n\nexport const WebAppErrorPage: React.FC<WebAppErrorPageProps> = ({ error, ...props }) => (\n <WebAppPage title=\"Oops! Something went wrong\" {...props}>\n <h1>Oops! Something went wrong!</h1>\n <p>{`${error}`}</p>\n <ButtonEx href=\"/\" variant=\"contained\">\n Homepage\n </ButtonEx>\n </WebAppPage>\n)\n\n/** @deprecated use WebAppErrorPage instead */\nexport const ErrorPage = WebAppErrorPage\n","import { Container, ContainerProps, styled } from '@mui/material'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { FlexBoxProps, FlexGrowCol } from '@xylabs/react-flexbox'\nimport { useUserEvents } from '@xylabs/react-pixel'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { Helmet } from 'react-helmet'\nimport { useLocation } from 'react-router-dom'\n\nimport { WebAppBody, WebAppBodyProps } from './Body'\nimport { fixedWrap, scrollableWrap } from './lib'\n\nconst WebAppPageRoot = styled(FlexGrowCol, {\n name: 'WebAppPage',\n shouldForwardProp: (propName) => propName !== 'mobileScrollingBreakpoint' && propName !== 'variant',\n slot: 'Root',\n})<WebAppPageProps>(({ theme, mobileScrollingBreakpoint = 'sm', variant }) => {\n const props = variant === 'scrollable' ? scrollableWrap : fixedWrap\n return {\n ...props,\n alignItems: 'stretch',\n justifyContent: 'start',\n maxWidth: '100vw',\n [theme.breakpoints.down(mobileScrollingBreakpoint)]: {\n inset: 0,\n position: 'absolute',\n },\n }\n})\n\nexport interface WebAppPageProps extends WebAppBodyProps, FlexBoxProps {\n container?: ContainerProps['maxWidth'] | 'none'\n disableGutters?: boolean\n}\n\nexport const WebAppPage: React.FC<WithChildren<WebAppPageProps>> = ({\n disableGutters,\n disableBreadcrumbGutter,\n title,\n container,\n children,\n breadcrumbs,\n mobileScrollingBreakpoint,\n variant = 'scrollable',\n ...props\n}) => {\n const userEvents = useUserEvents()\n const { pathname } = useLocation()\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async () => {\n await userEvents?.viewContent({ name: title ?? 'NodeBasePage', path: location.pathname })\n },\n [pathname, title, userEvents],\n )\n\n return (\n <WebAppPageRoot mobileScrollingBreakpoint={mobileScrollingBreakpoint} variant={variant} {...props}>\n <Helmet title={title} />\n {container && container !== 'none' ? (\n <Container\n disableGutters={disableGutters}\n style={{ alignItems: 'stretch', display: 'flex', flexDirection: 'column', flexGrow: 1, justifyContent: 'flex-start' }}\n maxWidth={container}\n >\n <WebAppBody\n disableBreadcrumbGutter={disableBreadcrumbGutter}\n breadcrumbs={breadcrumbs}\n mobileScrollingBreakpoint={mobileScrollingBreakpoint}\n variant={variant}\n {...props}\n >\n {children}\n </WebAppBody>\n </Container>\n ) : (\n <WebAppBody\n disableBreadcrumbGutter={disableBreadcrumbGutter}\n breadcrumbs={breadcrumbs}\n mobileScrollingBreakpoint={mobileScrollingBreakpoint}\n paddingX={disableGutters ? 0 : 1}\n variant={variant}\n {...props}\n >\n {children}\n </WebAppBody>\n )}\n </WebAppPageRoot>\n )\n}\n\n/** @deprecated use WebAppPagePage instead */\nexport const FlexPage = WebAppPage\n","import { Breakpoint, styled } from '@mui/material'\nimport { FlexBoxProps, FlexGrowCol, FlexRow } from '@xylabs/react-flexbox'\nimport React, { ReactNode } from 'react'\n\nimport { fixedContent, scrollableContent } from './lib'\n\nconst WebAppBodyName = 'WebAppBody'\nconst propsNotForwarded = ['mobileScrollingBreakpoint', 'variant', 'spacing', 'disableBreadcrumbGutter']\nconst defaultStyledOptions = {\n shouldForwardProp: (prop: string) => !propsNotForwarded.includes(prop),\n}\n\nconst WebAppBodyRoot = styled(FlexGrowCol, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Root',\n})<WebAppBodyProps>(({ spacing, theme, mobileScrollingBreakpoint = 'sm', variant }) => {\n const scrollable = variant === 'scrollable'\n return theme.unstable_sx({\n alignItems: 'stretch',\n gap: 1,\n justifyContent: 'flex-start',\n overflowX: 'visible',\n overflowY: scrollable ? 'scroll' : 'hidden',\n paddingY: spacing,\n [theme.breakpoints.down(mobileScrollingBreakpoint)]: {\n overflowY: 'scroll',\n },\n })\n})\n\nconst WebAppBodyBreadcrumb = styled(FlexRow, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Breadcrumb',\n})<WebAppBodyProps>(({ theme, disableBreadcrumbGutter, spacing }) =>\n theme.unstable_sx({\n justifyContent: 'start',\n marginX: disableBreadcrumbGutter ? 0 : spacing,\n }),\n)\n\nconst WebAppBodyScrollableWrapper = styled(FlexGrowCol, {\n name: WebAppBodyName,\n slot: 'ScrollableWrapper',\n})<WebAppBodyProps>(() => ({\n alignItems: 'stretch',\n}))\n\nconst WebAppBodyScrollable = styled(FlexGrowCol, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Scrollable',\n})<WebAppBodyProps>(({ theme, mobileScrollingBreakpoint = 'sm', variant }) => {\n const props = variant === 'scrollable' ? scrollableContent : fixedContent\n return {\n ...props,\n alignItems: 'stretch',\n justifyContent: 'start',\n [theme.breakpoints.down(mobileScrollingBreakpoint)]: {\n inset: 'unset',\n position: 'relative',\n },\n }\n})\n\nexport interface WebAppBodyProps extends FlexBoxProps {\n breadcrumbs?: ReactNode\n disableBreadcrumbGutter?: boolean\n mobileScrollingBreakpoint?: Breakpoint\n spacing?: string | number\n variant?: 'scrollable' | 'fixed'\n}\n\nexport const WebAppBody: React.FC<WebAppBodyProps> = ({\n children,\n breadcrumbs,\n disableBreadcrumbGutter,\n mobileScrollingBreakpoint,\n spacing = 1,\n variant,\n ...props\n}) => {\n return (\n <WebAppBodyRoot mobileScrollingBreakpoint={mobileScrollingBreakpoint} spacing={spacing} variant={variant} {...props}>\n {breadcrumbs ? (\n <WebAppBodyBreadcrumb disableBreadcrumbGutter={disableBreadcrumbGutter} spacing={spacing}>\n {breadcrumbs}\n </WebAppBodyBreadcrumb>\n ) : null}\n <WebAppBodyScrollableWrapper>\n <WebAppBodyScrollable mobileScrollingBreakpoint={mobileScrollingBreakpoint} variant={variant}>\n {children}\n </WebAppBodyScrollable>\n </WebAppBodyScrollableWrapper>\n </WebAppBodyRoot>\n )\n}\n","import { CSSProperties } from 'react'\n\nexport const scrollableWrap: CSSProperties = {\n inset: 0,\n position: 'absolute',\n} as const\n\nexport const fixedWrap: CSSProperties = {\n inset: 'unset',\n position: 'relative',\n} as const\n\n// Making a scrollable vs fixed wrapper and content is an inversion of the wrap and content styles\nexport const scrollableContent: CSSProperties = {\n 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