@xyo-network/react-error 2.41.33 → 2.41.34

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.
package/package.json CHANGED
@@ -10,10 +10,10 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/react-common": "^2.15.8",
14
- "@xylabs/react-flexbox": "^2.15.8",
15
- "@xylabs/react-shared": "^2.15.8",
16
- "@xyo-network/module": "^2.43.7"
13
+ "@xylabs/react-common": "^2.15.9",
14
+ "@xylabs/react-flexbox": "^2.15.9",
15
+ "@xylabs/react-shared": "^2.15.9",
16
+ "@xyo-network/module": "^2.43.9"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "@mui/icons-material": "^5",
@@ -25,7 +25,7 @@
25
25
  "rollbar": "^2.25.2"
26
26
  },
27
27
  "devDependencies": {
28
- "@xylabs/ts-scripts-yarn3": "2.12.0"
28
+ "@xylabs/ts-scripts-yarn3": "2.12.21"
29
29
  },
30
30
  "peerDependenciesMeta": {
31
31
  "rollbar": {
@@ -75,5 +75,5 @@
75
75
  },
76
76
  "sideEffects": false,
77
77
  "types": "dist/esm/index.d.ts",
78
- "version": "2.41.33"
78
+ "version": "2.41.34"
79
79
  }
@@ -1,71 +1,19 @@
1
1
  /* eslint-disable import/no-internal-modules */
2
- import { Alert, Paper, TextField } from '@mui/material'
2
+ import { Alert } from '@mui/material'
3
3
  import { ComponentStory, Meta } from '@storybook/react'
4
- import { BasePageProps } from '@xylabs/react-common'
5
- import { FlexCol } from '@xylabs/react-flexbox'
6
- import { ApiProvider, ArchivesProvider } from '@xyo-network/react-api'
7
- import { ApplicationAppBar, SystemToolbar } from '@xyo-network/react-appbar'
8
- import { Footer } from '@xyo-network/react-footer'
9
- import { NetworkMemoryProvider } from '@xyo-network/react-network'
10
- import { BrowserRouter } from 'react-router-dom'
11
4
 
12
5
  import { XyoThrownErrorBoundary } from './ThrownErrorBoundary'
13
6
 
14
- const basePageProps: BasePageProps = {
15
- appBar: (
16
- <ApplicationAppBar
17
- systemToolbar={
18
- <SystemToolbar
19
- style={{ paddingLeft: 8, paddingRight: 8 }}
20
- disableGutters
21
- archiveSelectProps={{
22
- sx: { display: 'none' },
23
- }}
24
- sx={{ flexWrap: 'wrap-reverse', justifyContent: 'end' }}
25
- darkModeButton
26
- authButton
27
- />
28
- }
29
- >
30
- <TextField fullWidth size="small" />
31
- </ApplicationAppBar>
32
- ),
33
- appFooter: (
34
- <FlexCol alignItems="stretch">
35
- <Paper elevation={8}>
36
- <Footer width="100%" />
37
- </Paper>
38
- </FlexCol>
39
- ),
40
- title: 'Page Title',
41
- }
42
-
43
7
  const StorybookEntry: Meta = {
44
- args: {
45
- basePageProps,
46
- },
47
8
  component: XyoThrownErrorBoundary,
48
- parameters: {
49
- docs: {
50
- page: null,
51
- },
52
- },
53
9
  title: 'auth-service/XyoApiBoundary/ThrownErrorBoundary',
54
10
  }
55
11
 
56
- const Template: ComponentStory<typeof XyoThrownErrorBoundary> = ({ basePageProps, errorComponent }) => {
12
+ const Template: ComponentStory<typeof XyoThrownErrorBoundary> = ({ errorComponent }) => {
57
13
  return (
58
- <BrowserRouter>
59
- <NetworkMemoryProvider>
60
- <ApiProvider apiDomain="http://localhost:8080">
61
- <ArchivesProvider>
62
- <XyoThrownErrorBoundary basePageProps={basePageProps} errorComponent={errorComponent} boundaryName="StoryBook">
63
- <Alert severity="info">Use React Dev Tools to trigger and error within the boundary</Alert>
64
- </XyoThrownErrorBoundary>
65
- </ArchivesProvider>
66
- </ApiProvider>
67
- </NetworkMemoryProvider>
68
- </BrowserRouter>
14
+ <XyoThrownErrorBoundary errorComponent={errorComponent} boundaryName="StoryBook">
15
+ <Alert severity="info">Use React Dev Tools to trigger and error within the boundary</Alert>
16
+ </XyoThrownErrorBoundary>
69
17
  )
70
18
  }
71
19