@xyo-network/react-webapp 7.6.3 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../src/components/Page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAGnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../src/components/Page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAGnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAwBjD,MAAM,WAAW,eAAgB,SAAQ,eAAe,EAAE,YAAY;IACpE,SAAS,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,MAAM,CAAA;IAC/C,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAyDnE,CAAA;AAED,6CAA6C;AAC7C,eAAO,MAAM,QAAQ,8CAAa,CAAA"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -126,9 +126,8 @@ import { Container, styled as styled2 } from "@mui/material";
|
|
|
126
126
|
import { useAsyncEffect } from "@xylabs/react-async-effect";
|
|
127
127
|
import { FlexGrowCol as FlexGrowCol2 } from "@xylabs/react-flexbox";
|
|
128
128
|
import { useUserEvents } from "@xylabs/react-pixel";
|
|
129
|
-
import { Helmet } from "react-helmet";
|
|
130
129
|
import { useLocation } from "react-router-dom";
|
|
131
|
-
import { jsx as jsx3
|
|
130
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
132
131
|
var WebAppPageRoot = styled2(FlexGrowCol2, {
|
|
133
132
|
name: "WebAppPage",
|
|
134
133
|
shouldForwardProp: (propName) => propName !== "mobileScrollingBreakpoint" && propName !== "variant",
|
|
@@ -169,51 +168,48 @@ var WebAppPage = ({
|
|
|
169
168
|
},
|
|
170
169
|
[pathname, title, userEvents]
|
|
171
170
|
);
|
|
172
|
-
return /* @__PURE__ */
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
{
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}
|
|
209
|
-
)
|
|
210
|
-
] });
|
|
171
|
+
return /* @__PURE__ */ jsx3(WebAppPageRoot, { mobileScrollingBreakpoint, variant, ...props, children: container && container !== "none" ? /* @__PURE__ */ jsx3(
|
|
172
|
+
Container,
|
|
173
|
+
{
|
|
174
|
+
disableGutters,
|
|
175
|
+
style: {
|
|
176
|
+
alignItems: "stretch",
|
|
177
|
+
display: "flex",
|
|
178
|
+
flexDirection: "column",
|
|
179
|
+
flexGrow: 1,
|
|
180
|
+
justifyContent: "flex-start"
|
|
181
|
+
},
|
|
182
|
+
sx: { maxWidth: container },
|
|
183
|
+
children: /* @__PURE__ */ jsx3(
|
|
184
|
+
WebAppBody,
|
|
185
|
+
{
|
|
186
|
+
disableBreadcrumbGutter,
|
|
187
|
+
breadcrumbs,
|
|
188
|
+
mobileScrollingBreakpoint,
|
|
189
|
+
variant,
|
|
190
|
+
...props,
|
|
191
|
+
children
|
|
192
|
+
}
|
|
193
|
+
)
|
|
194
|
+
}
|
|
195
|
+
) : /* @__PURE__ */ jsx3(
|
|
196
|
+
WebAppBody,
|
|
197
|
+
{
|
|
198
|
+
disableBreadcrumbGutter,
|
|
199
|
+
breadcrumbs,
|
|
200
|
+
mobileScrollingBreakpoint,
|
|
201
|
+
variant,
|
|
202
|
+
...props,
|
|
203
|
+
sx: [{ paddingX: disableGutters ? 0 : 1 }, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
|
|
204
|
+
children
|
|
205
|
+
}
|
|
206
|
+
) });
|
|
211
207
|
};
|
|
212
208
|
var FlexPage = WebAppPage;
|
|
213
209
|
|
|
214
210
|
// src/components/ErrorPage.tsx
|
|
215
|
-
import { jsx as jsx4, jsxs as
|
|
216
|
-
var WebAppErrorPage = ({ error, ...props }) => /* @__PURE__ */
|
|
211
|
+
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
212
|
+
var WebAppErrorPage = ({ error, ...props }) => /* @__PURE__ */ jsxs2(WebAppPage, { title: "Oops! Something went wrong", ...props, children: [
|
|
217
213
|
/* @__PURE__ */ jsx4("h1", { children: "Oops! Something went wrong!" }),
|
|
218
214
|
/* @__PURE__ */ jsx4("p", { children: `${error}` }),
|
|
219
215
|
/* @__PURE__ */ jsx4(ButtonEx, { href: "/", variant: "contained", children: "Homepage" })
|
|
@@ -235,4 +231,4 @@ export {
|
|
|
235
231
|
WebAppPage,
|
|
236
232
|
XyoWebAppChrome
|
|
237
233
|
};
|
|
238
|
-
//# sourceMappingURL=index.mjs.map
|
|
234
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/Body.tsx","../../src/components/lib/cssValues.ts","../../src/components/Chrome.tsx","../../src/components/ErrorPage.tsx","../../src/components/Page.tsx","../../src/components/NotFoundPage/Page.tsx"],"sourcesContent":["import type { Breakpoint } from '@mui/material'\nimport { styled } from '@mui/material'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexGrowCol, FlexRow } from '@xylabs/react-flexbox'\nimport type { ReactNode } from 'react'\nimport React from 'react'\n\nimport { fixedContent, scrollableContent } from './lib/index.ts'\n\nconst WebAppBodyName = 'WebAppBody'\nconst propsNotForwarded = new Set(['mobileScrollingBreakpoint', 'variant', 'spacing', 'disableBreadcrumbGutter'])\nconst defaultStyledOptions = { shouldForwardProp: (prop: string) => !propsNotForwarded.has(prop) }\n\nconst WebAppBodyRoot = styled(FlexGrowCol, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Root',\n})<WebAppBodyProps>(({\n spacing, theme, mobileScrollingBreakpoint = 'sm', variant,\n}) => {\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)]: { overflowY: 'scroll' },\n })\n})\n\nconst WebAppBodyBreadcrumb = styled(FlexRow, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Breadcrumb',\n})<WebAppBodyProps>(({\n theme, disableBreadcrumbGutter, spacing,\n}) =>\n theme.unstable_sx({\n justifyContent: 'start',\n marginX: disableBreadcrumbGutter ? 0 : spacing,\n }))\n\nconst WebAppBodyScrollableWrapper = styled(FlexGrowCol, {\n name: WebAppBodyName,\n slot: 'ScrollableWrapper',\n})<WebAppBodyProps>(() => ({ alignItems: 'stretch' }))\n\nconst WebAppBodyScrollable = styled(FlexGrowCol, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Scrollable',\n})<WebAppBodyProps>(({\n theme, mobileScrollingBreakpoint = 'sm', variant,\n}) => {\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 ? (\n <WebAppBodyBreadcrumb disableBreadcrumbGutter={disableBreadcrumbGutter} spacing={spacing}>\n {breadcrumbs}\n </WebAppBodyBreadcrumb>\n )\n : null}\n <WebAppBodyScrollableWrapper>\n <WebAppBodyScrollable mobileScrollingBreakpoint={mobileScrollingBreakpoint} variant={variant}>\n {children}\n </WebAppBodyScrollable>\n </WebAppBodyScrollableWrapper>\n </WebAppBodyRoot>\n )\n}\n","import type { 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 = { ...fixedWrap } as const\n\nexport const fixedContent: CSSProperties = { ...scrollableWrap } as const\n","import { WebAppChrome, type WebAppChromeProps } from '@xylabs/react-webapp'\nimport { XyoApplicationAppBar } from '@xyo-network/react-appbar'\nimport { Footer } from '@xyo-network/react-footer'\nimport React from 'react'\n\nexport interface XyoWebAppChromeProps extends WebAppChromeProps {}\n\nexport const XyoWebAppChrome = ({\n ref, appbar, footer, footerElevation = 4, navigationType = 'menu', ...props\n}: XyoWebAppChromeProps) => {\n return (\n <WebAppChrome\n ref={ref}\n appbar={appbar ?? <XyoApplicationAppBar />}\n footerElevation={footerElevation}\n navigationType={navigationType}\n footer={footer ?? <Footer dynamicHeight />}\n {...props}\n />\n )\n}\n\nXyoWebAppChrome.displayName = 'XyoWebAppChrome'\n","import { ButtonEx } from '@xylabs/react-button'\nimport React from 'react'\n\nimport type { WebAppPageProps } from './Page.tsx'\nimport { WebAppPage } from './Page.tsx'\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 type { ContainerProps } from '@mui/material'\nimport { Container, styled } from '@mui/material'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexGrowCol } from '@xylabs/react-flexbox'\nimport { useUserEvents } from '@xylabs/react-pixel'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\nimport { Helmet } from 'react-helmet'\nimport { useLocation } from 'react-router-dom'\n\nimport type { WebAppBodyProps } from './Body.tsx'\nimport { WebAppBody } from './Body.tsx'\nimport { fixedWrap, scrollableWrap } from './lib/index.ts'\n\nconst WebAppPageRoot = styled(FlexGrowCol, {\n name: 'WebAppPage',\n shouldForwardProp: propName => propName !== 'mobileScrollingBreakpoint' && propName !== 'variant',\n slot: 'Root',\n})<WebAppPageProps>(({\n theme, mobileScrollingBreakpoint = 'sm', variant,\n}) => {\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<PropsWithChildren<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 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 ? (\n <Container\n disableGutters={disableGutters}\n style={{\n alignItems: 'stretch', display: 'flex', flexDirection: 'column', flexGrow: 1, justifyContent: 'flex-start',\n }}\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 : (\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 { NotFound } from '@xyo-network/react-shared'\nimport React from 'react'\n\nimport type { WebAppPageProps } from '../Page.tsx'\nimport { WebAppPage } from '../Page.tsx'\n\nexport const WebAppNotFoundPage: React.FC<WebAppPageProps> = ({ title, ...props }) => (\n <WebAppPage title={title ?? 'Sorry! Page Not Found'} {...props}>\n <NotFound />\n </WebAppPage>\n)\n\n/** @deprecated use WebAppNotFoundPage instead */\nexport const NotFoundPage = WebAppNotFoundPage\n"],"mappings":";AACA,SAAS,cAAc;AAEvB,SAAS,aAAa,eAAe;;;ACD9B,IAAM,iBAAgC;AAAA,EAC3C,OAAO;AAAA,EACP,UAAU;AACZ;AAEO,IAAM,YAA2B;AAAA,EACtC,OAAO;AAAA,EACP,UAAU;AACZ;AAGO,IAAM,oBAAmC,EAAE,GAAG,UAAU;AAExD,IAAM,eAA8B,EAAE,GAAG,eAAe;;;ADuE3D,SAGQ,KAHR;AA7EJ,IAAM,iBAAiB;AACvB,IAAM,oBAAoB,oBAAI,IAAI,CAAC,6BAA6B,WAAW,WAAW,yBAAyB,CAAC;AAChH,IAAM,uBAAuB,EAAE,mBAAmB,CAAC,SAAiB,CAAC,kBAAkB,IAAI,IAAI,EAAE;AAEjG,IAAM,iBAAiB,OAAO,aAAa;AAAA,EACzC,GAAG;AAAA,EACH,MAAM;AAAA,EACN,MAAM;AACR,CAAC,EAAmB,CAAC;AAAA,EACnB;AAAA,EAAS;AAAA,EAAO,4BAA4B;AAAA,EAAM;AACpD,MAAM;AACJ,QAAM,aAAa,YAAY;AAC/B,SAAO,MAAM,YAAY;AAAA,IACvB,YAAY;AAAA,IACZ,KAAK;AAAA,IACL,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,WAAW,aAAa,WAAW;AAAA,IACnC,UAAU;AAAA,IACV,CAAC,MAAM,YAAY,KAAK,yBAAyB,CAAC,GAAG,EAAE,WAAW,SAAS;AAAA,EAC7E,CAAC;AACH,CAAC;AAED,IAAM,uBAAuB,OAAO,SAAS;AAAA,EAC3C,GAAG;AAAA,EACH,MAAM;AAAA,EACN,MAAM;AACR,CAAC,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]}
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/Body.tsx", "../../src/components/lib/cssValues.ts", "../../src/components/Chrome.tsx", "../../src/components/ErrorPage.tsx", "../../src/components/Page.tsx", "../../src/components/NotFoundPage/Page.tsx"],
|
|
4
|
+
"sourcesContent": ["import type { Breakpoint } from '@mui/material'\nimport { styled } from '@mui/material'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexGrowCol, FlexRow } from '@xylabs/react-flexbox'\nimport type { ReactNode } from 'react'\nimport React from 'react'\n\nimport { fixedContent, scrollableContent } from './lib/index.ts'\n\nconst WebAppBodyName = 'WebAppBody'\nconst propsNotForwarded = new Set(['mobileScrollingBreakpoint', 'variant', 'spacing', 'disableBreadcrumbGutter'])\nconst defaultStyledOptions = { shouldForwardProp: (prop: string) => !propsNotForwarded.has(prop) }\n\nconst WebAppBodyRoot = styled(FlexGrowCol, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Root',\n})<WebAppBodyProps>(({\n spacing, theme, mobileScrollingBreakpoint = 'sm', variant,\n}) => {\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)]: { overflowY: 'scroll' },\n })\n})\n\nconst WebAppBodyBreadcrumb = styled(FlexRow, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Breadcrumb',\n})<WebAppBodyProps>(({\n theme, disableBreadcrumbGutter, spacing,\n}) =>\n theme.unstable_sx({\n justifyContent: 'start',\n marginX: disableBreadcrumbGutter ? 0 : spacing,\n }))\n\nconst WebAppBodyScrollableWrapper = styled(FlexGrowCol, {\n name: WebAppBodyName,\n slot: 'ScrollableWrapper',\n})<WebAppBodyProps>(() => ({ alignItems: 'stretch' }))\n\nconst WebAppBodyScrollable = styled(FlexGrowCol, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Scrollable',\n})<WebAppBodyProps>(({\n theme, mobileScrollingBreakpoint = 'sm', variant,\n}) => {\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 ? (\n <WebAppBodyBreadcrumb disableBreadcrumbGutter={disableBreadcrumbGutter} spacing={spacing}>\n {breadcrumbs}\n </WebAppBodyBreadcrumb>\n )\n : null}\n <WebAppBodyScrollableWrapper>\n <WebAppBodyScrollable mobileScrollingBreakpoint={mobileScrollingBreakpoint} variant={variant}>\n {children}\n </WebAppBodyScrollable>\n </WebAppBodyScrollableWrapper>\n </WebAppBodyRoot>\n )\n}\n", "import type { 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 = { ...fixedWrap } as const\n\nexport const fixedContent: CSSProperties = { ...scrollableWrap } as const\n", "import { WebAppChrome, type WebAppChromeProps } from '@xylabs/react-webapp'\nimport { XyoApplicationAppBar } from '@xyo-network/react-appbar'\nimport { Footer } from '@xyo-network/react-footer'\nimport React from 'react'\n\nexport interface XyoWebAppChromeProps extends WebAppChromeProps {}\n\nexport const XyoWebAppChrome = ({\n ref, appbar, footer, footerElevation = 4, navigationType = 'menu', ...props\n}: XyoWebAppChromeProps) => {\n return (\n <WebAppChrome\n ref={ref}\n appbar={appbar ?? <XyoApplicationAppBar />}\n footerElevation={footerElevation}\n navigationType={navigationType}\n footer={footer ?? <Footer dynamicHeight />}\n {...props}\n />\n )\n}\n\nXyoWebAppChrome.displayName = 'XyoWebAppChrome'\n", "import { ButtonEx } from '@xylabs/react-button'\nimport React from 'react'\n\nimport type { WebAppPageProps } from './Page.tsx'\nimport { WebAppPage } from './Page.tsx'\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 type { ContainerProps } from '@mui/material'\nimport { Container, styled } from '@mui/material'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexGrowCol } from '@xylabs/react-flexbox'\nimport { useUserEvents } from '@xylabs/react-pixel'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\nimport { useLocation } from 'react-router-dom'\n\nimport type { WebAppBodyProps } from './Body.tsx'\nimport { WebAppBody } from './Body.tsx'\nimport { fixedWrap, scrollableWrap } from './lib/index.ts'\n\nconst WebAppPageRoot = styled(FlexGrowCol, {\n name: 'WebAppPage',\n shouldForwardProp: propName => propName !== 'mobileScrollingBreakpoint' && propName !== 'variant',\n slot: 'Root',\n})<WebAppPageProps>(({\n theme, mobileScrollingBreakpoint = 'sm', variant,\n}) => {\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<PropsWithChildren<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 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 {container && container !== 'none'\n ? (\n <Container\n disableGutters={disableGutters}\n style={{\n alignItems: 'stretch', display: 'flex', flexDirection: 'column', flexGrow: 1, justifyContent: 'flex-start',\n }}\n sx={{ 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 : (\n <WebAppBody\n disableBreadcrumbGutter={disableBreadcrumbGutter}\n breadcrumbs={breadcrumbs}\n mobileScrollingBreakpoint={mobileScrollingBreakpoint}\n variant={variant}\n {...props}\n sx={[{ paddingX: disableGutters ? 0 : 1 }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n {children}\n </WebAppBody>\n )}\n </WebAppPageRoot>\n )\n}\n\n/** @deprecated use WebAppPagePage instead */\nexport const FlexPage = WebAppPage\n", "import { NotFound } from '@xyo-network/react-shared'\nimport React from 'react'\n\nimport type { WebAppPageProps } from '../Page.tsx'\nimport { WebAppPage } from '../Page.tsx'\n\nexport const WebAppNotFoundPage: React.FC<WebAppPageProps> = ({ title, ...props }) => (\n <WebAppPage title={title ?? 'Sorry! Page Not Found'} {...props}>\n <NotFound />\n </WebAppPage>\n)\n\n/** @deprecated use WebAppNotFoundPage instead */\nexport const NotFoundPage = WebAppNotFoundPage\n"],
|
|
5
|
+
"mappings": ";AACA,SAAS,cAAc;AAEvB,SAAS,aAAa,eAAe;;;ACD9B,IAAM,iBAAgC;AAAA,EAC3C,OAAO;AAAA,EACP,UAAU;AACZ;AAEO,IAAM,YAA2B;AAAA,EACtC,OAAO;AAAA,EACP,UAAU;AACZ;AAGO,IAAM,oBAAmC,EAAE,GAAG,UAAU;AAExD,IAAM,eAA8B,EAAE,GAAG,eAAe;;;ADuE3D,SAGQ,KAHR;AA7EJ,IAAM,iBAAiB;AACvB,IAAM,oBAAoB,oBAAI,IAAI,CAAC,6BAA6B,WAAW,WAAW,yBAAyB,CAAC;AAChH,IAAM,uBAAuB,EAAE,mBAAmB,CAAC,SAAiB,CAAC,kBAAkB,IAAI,IAAI,EAAE;AAEjG,IAAM,iBAAiB,OAAO,aAAa;AAAA,EACzC,GAAG;AAAA,EACH,MAAM;AAAA,EACN,MAAM;AACR,CAAC,EAAmB,CAAC;AAAA,EACnB;AAAA,EAAS;AAAA,EAAO,4BAA4B;AAAA,EAAM;AACpD,MAAM;AACJ,QAAM,aAAa,YAAY;AAC/B,SAAO,MAAM,YAAY;AAAA,IACvB,YAAY;AAAA,IACZ,KAAK;AAAA,IACL,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,WAAW,aAAa,WAAW;AAAA,IACnC,UAAU;AAAA,IACV,CAAC,MAAM,YAAY,KAAK,yBAAyB,CAAC,GAAG,EAAE,WAAW,SAAS;AAAA,EAC7E,CAAC;AACH,CAAC;AAED,IAAM,uBAAuB,OAAO,SAAS;AAAA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,YAAS,GACZ;AAIK,IAAM,eAAe;",
|
|
6
|
+
"names": ["jsx", "styled", "FlexGrowCol", "jsx", "styled", "FlexGrowCol", "jsx", "jsxs", "jsx"]
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-webapp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -41,40 +41,39 @@
|
|
|
41
41
|
"README.md"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@xyo-network/react-appbar": "~
|
|
45
|
-
"@xyo-network/react-
|
|
46
|
-
"@xyo-network/react-
|
|
44
|
+
"@xyo-network/react-appbar": "~8.0.1",
|
|
45
|
+
"@xyo-network/react-footer": "~8.0.1",
|
|
46
|
+
"@xyo-network/react-shared": "~8.0.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@bitauth/libauth": "~3.0.0",
|
|
50
|
-
"@mui/icons-material": "^
|
|
51
|
-
"@mui/material": "^
|
|
50
|
+
"@mui/icons-material": "^9.0.1",
|
|
51
|
+
"@mui/material": "^9.0.1",
|
|
52
52
|
"@opentelemetry/api": "^1.9.1",
|
|
53
53
|
"@opentelemetry/sdk-trace-base": "^2.7.1",
|
|
54
54
|
"@react-spring/web": "~10.0.3",
|
|
55
55
|
"@scure/base": "~2.2.0",
|
|
56
|
-
"@storybook/react-vite": "~10.
|
|
56
|
+
"@storybook/react-vite": "~10.4.0",
|
|
57
57
|
"@types/react": "^19.2.14",
|
|
58
|
-
"@
|
|
59
|
-
"@xylabs/
|
|
60
|
-
"@xylabs/react-
|
|
61
|
-
"@xylabs/react-
|
|
62
|
-
"@xylabs/react-
|
|
63
|
-
"@xylabs/react-
|
|
64
|
-
"@xylabs/react-
|
|
65
|
-
"@xylabs/react-
|
|
66
|
-
"@xylabs/react-
|
|
67
|
-
"@xylabs/react-
|
|
68
|
-
"@xylabs/react-
|
|
69
|
-
"@xylabs/react-
|
|
70
|
-
"@xylabs/react-
|
|
71
|
-
"@xylabs/
|
|
72
|
-
"@xylabs/
|
|
73
|
-
"@xylabs/
|
|
74
|
-
"@xylabs/
|
|
75
|
-
"@xylabs/tsconfig": "^
|
|
76
|
-
"@xylabs/tsconfig-
|
|
77
|
-
"@xylabs/tsconfig-react": "~7.13.15",
|
|
58
|
+
"@xylabs/pixel": "~5.1.3",
|
|
59
|
+
"@xylabs/react-appbar": "~8.0.3",
|
|
60
|
+
"@xylabs/react-async-effect": "~8.0.3",
|
|
61
|
+
"@xylabs/react-button": "~8.0.3",
|
|
62
|
+
"@xylabs/react-flexbox": "~8.0.3",
|
|
63
|
+
"@xylabs/react-hooks": "~8.0.3",
|
|
64
|
+
"@xylabs/react-link": "~8.0.3",
|
|
65
|
+
"@xylabs/react-pixel": "~8.0.3",
|
|
66
|
+
"@xylabs/react-promise": "~8.0.3",
|
|
67
|
+
"@xylabs/react-select": "~8.0.3",
|
|
68
|
+
"@xylabs/react-shared": "~8.0.3",
|
|
69
|
+
"@xylabs/react-theme": "~8.0.3",
|
|
70
|
+
"@xylabs/react-webapp": "~8.0.3",
|
|
71
|
+
"@xylabs/sdk-js": "^5.1.3",
|
|
72
|
+
"@xylabs/threads": "~5.1.3",
|
|
73
|
+
"@xylabs/toolchain": "~8.0.6",
|
|
74
|
+
"@xylabs/tsconfig": "^8.0.6",
|
|
75
|
+
"@xylabs/tsconfig-dom": "^8.0.6",
|
|
76
|
+
"@xylabs/tsconfig-react": "~8.0.6",
|
|
78
77
|
"@xyo-network/boundwitness-model": "^5.6.3",
|
|
79
78
|
"@xyo-network/boundwitness-validator": "^5.6.2",
|
|
80
79
|
"@xyo-network/network": "~5.6.3",
|
|
@@ -86,50 +85,49 @@
|
|
|
86
85
|
"buffer": "^6.0.3",
|
|
87
86
|
"chalk": "^5.6.2",
|
|
88
87
|
"debug": "~4.4.3",
|
|
89
|
-
"eslint": "^10.
|
|
88
|
+
"eslint": "^10.4.0",
|
|
90
89
|
"ethers": "^6.16.0",
|
|
91
90
|
"fast-deep-equal": "~3.1.3",
|
|
92
91
|
"hash-wasm": "~4.12.0",
|
|
93
|
-
"js-cookie": "~3.0.
|
|
94
|
-
"mixpanel-browser": "~2.
|
|
92
|
+
"js-cookie": "~3.0.6",
|
|
93
|
+
"mixpanel-browser": "~2.79.0",
|
|
95
94
|
"observable-fns": "~0.6.1",
|
|
96
95
|
"pako": "^2.1.0",
|
|
97
96
|
"query-string": "~9.3.1",
|
|
98
97
|
"react": "^19.2.6",
|
|
99
98
|
"react-dom": "^19.2.6",
|
|
100
|
-
"react-helmet": "~6.1.0",
|
|
101
99
|
"react-icons": "~5.6.0",
|
|
102
100
|
"react-is": "^19.2.6",
|
|
103
|
-
"react-router-dom": "^7.15.
|
|
101
|
+
"react-router-dom": "^7.15.1",
|
|
104
102
|
"recharts": "~3.8.1",
|
|
105
103
|
"spark-md5": "~3.0.2",
|
|
106
|
-
"storybook": "^10.
|
|
107
|
-
"typescript": "^
|
|
108
|
-
"vite": "^8.0.
|
|
104
|
+
"storybook": "^10.4.0",
|
|
105
|
+
"typescript": "^6.0.3",
|
|
106
|
+
"vite": "^8.0.13",
|
|
109
107
|
"wasm-feature-detect": "~1.8.0",
|
|
110
108
|
"zod": "^4.4.3"
|
|
111
109
|
},
|
|
112
110
|
"peerDependencies": {
|
|
113
111
|
"@bitauth/libauth": "~3.0",
|
|
114
|
-
"@mui/icons-material": "^
|
|
115
|
-
"@mui/material": "^
|
|
112
|
+
"@mui/icons-material": "^9.0",
|
|
113
|
+
"@mui/material": "^9.0",
|
|
116
114
|
"@opentelemetry/api": "^1.9",
|
|
117
115
|
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
118
116
|
"@react-spring/web": "~10.0",
|
|
119
117
|
"@scure/base": "~2.2",
|
|
120
118
|
"@xylabs/pixel": "~5.1",
|
|
121
|
-
"@xylabs/react-appbar": "~
|
|
122
|
-
"@xylabs/react-async-effect": "~
|
|
123
|
-
"@xylabs/react-button": "~
|
|
124
|
-
"@xylabs/react-flexbox": "~
|
|
125
|
-
"@xylabs/react-hooks": "~
|
|
126
|
-
"@xylabs/react-link": "~
|
|
127
|
-
"@xylabs/react-pixel": "~
|
|
128
|
-
"@xylabs/react-promise": "~
|
|
129
|
-
"@xylabs/react-select": "~
|
|
130
|
-
"@xylabs/react-shared": "~
|
|
131
|
-
"@xylabs/react-theme": "~
|
|
132
|
-
"@xylabs/react-webapp": "~
|
|
119
|
+
"@xylabs/react-appbar": "~8.0",
|
|
120
|
+
"@xylabs/react-async-effect": "~8.0",
|
|
121
|
+
"@xylabs/react-button": "~8.0",
|
|
122
|
+
"@xylabs/react-flexbox": "~8.0",
|
|
123
|
+
"@xylabs/react-hooks": "~8.0",
|
|
124
|
+
"@xylabs/react-link": "~8.0",
|
|
125
|
+
"@xylabs/react-pixel": "~8.0",
|
|
126
|
+
"@xylabs/react-promise": "~8.0",
|
|
127
|
+
"@xylabs/react-select": "~8.0",
|
|
128
|
+
"@xylabs/react-shared": "~8.0",
|
|
129
|
+
"@xylabs/react-theme": "~8.0",
|
|
130
|
+
"@xylabs/react-webapp": "~8.0",
|
|
133
131
|
"@xylabs/sdk-js": "^5.1",
|
|
134
132
|
"@xylabs/threads": "~5.1",
|
|
135
133
|
"@xyo-network/boundwitness-model": "^5.6",
|
|
@@ -147,13 +145,12 @@
|
|
|
147
145
|
"fast-deep-equal": "~3.1",
|
|
148
146
|
"hash-wasm": "~4.12",
|
|
149
147
|
"js-cookie": "~3.0",
|
|
150
|
-
"mixpanel-browser": "~2.
|
|
148
|
+
"mixpanel-browser": "~2.79",
|
|
151
149
|
"observable-fns": "~0.6",
|
|
152
150
|
"pako": "^2.1",
|
|
153
151
|
"query-string": "~9.3",
|
|
154
152
|
"react": "^19.2",
|
|
155
153
|
"react-dom": "^19.2",
|
|
156
|
-
"react-helmet": "~6.1",
|
|
157
154
|
"react-icons": "~5.6",
|
|
158
155
|
"react-is": "^19.2",
|
|
159
156
|
"react-router-dom": "^7.15",
|