@xyo-network/react-shared 2.49.5 → 2.49.7

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,15 +1,17 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import BubbleChartRoundedIcon from '@mui/icons-material/BubbleChartRounded';
3
- import CloudRoundedIcon from '@mui/icons-material/CloudRounded';
4
3
  import HubRoundedIcon from '@mui/icons-material/HubRounded';
4
+ import InsertLinkRoundedIcon from '@mui/icons-material/InsertLinkRounded';
5
5
  import Inventory2RoundedIcon from '@mui/icons-material/Inventory2Rounded';
6
6
  import TimerRoundedIcon from '@mui/icons-material/TimerRounded';
7
+ import VisibilityRoundedIcon from '@mui/icons-material/VisibilityRounded';
7
8
  export const networkComponents = [
8
9
  { icon: (props) => _jsx(HubRoundedIcon, { ...props }), name: 'Node', slug: 'node' },
9
10
  { icon: (props) => _jsx(TimerRoundedIcon, { ...props }), name: 'Sentinel', slug: 'sentinel' },
10
- { icon: (props) => _jsx(CloudRoundedIcon, { ...props }), name: 'Bridge', slug: 'bridge' },
11
+ { icon: (props) => _jsx(InsertLinkRoundedIcon, { ...props }), name: 'Bridge', slug: 'bridge' },
11
12
  { icon: (props) => _jsx(Inventory2RoundedIcon, { ...props }), name: 'Archivist', slug: 'archivist' },
12
13
  { icon: (props) => _jsx(BubbleChartRoundedIcon, { ...props }), name: 'Diviner', slug: 'diviner' },
14
+ { icon: (props) => _jsx(VisibilityRoundedIcon, { ...props }), name: 'Witness', slug: 'witness' },
13
15
  ];
14
16
  export const findNetworkComponentIndex = (slug) => {
15
17
  return networkComponents.findIndex((info) => info.slug === slug);
@@ -1 +1 @@
1
- {"version":3,"file":"networkComponents.js","sourceRoot":"","sources":["../../../src/lib/networkComponents.tsx"],"names":[],"mappings":";AAAA,OAAO,sBAAsB,MAAM,wCAAwC,CAAA;AAC3E,OAAO,gBAAgB,MAAM,kCAAkC,CAAA;AAC/D,OAAO,cAAc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;CAC5F,CAAA;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,IAAY,EAAE,EAAE;IACxD,OAAO,iBAAiB,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAA;AAClE,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,IAAY,EAAE,EAAE;IACnD,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAA;AAC7D,CAAC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { SvgIconProps } from '@mui/material';
2
2
  import { ReactElement } from 'react';
3
- export type NetworkComponentSlug = 'sentinel' | 'bridge' | 'archivist' | 'diviner' | 'node';
3
+ export type NetworkComponentSlug = 'sentinel' | 'bridge' | 'archivist' | 'diviner' | 'node' | 'witness';
4
4
  export interface NetworkComponentDetails {
5
5
  icon: (props?: SvgIconProps) => ReactElement;
6
6
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"networkComponents.d.ts","sourceRoot":"","sources":["../../../src/lib/networkComponents.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAA;AAE3F,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,YAAY,KAAK,YAAY,CAAA;IAC5C,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,oBAAoB,CAAA;CAC3B;AAED,eAAO,MAAM,iBAAiB,EAAE,uBAAuB,EAMtD,CAAA;AAED,eAAO,MAAM,yBAAyB,SAAU,MAAM,WAErD,CAAA;AAED,eAAO,MAAM,oBAAoB,SAAU,MAAM,wCAEhD,CAAA"}
1
+ {"version":3,"file":"networkComponents.d.ts","sourceRoot":"","sources":["../../../src/lib/networkComponents.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;AAEvG,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,YAAY,KAAK,YAAY,CAAA;IAC5C,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,oBAAoB,CAAA;CAC3B;AAED,eAAO,MAAM,iBAAiB,EAAE,uBAAuB,EAOtD,CAAA;AAED,eAAO,MAAM,yBAAyB,SAAU,MAAM,WAErD,CAAA;AAED,eAAO,MAAM,oBAAoB,SAAU,MAAM,wCAEhD,CAAA"}
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "@xylabs/react-flexbox": "^2.17.2",
18
18
  "@xylabs/react-link": "^2.17.2",
19
19
  "@xylabs/react-shared": "^2.17.2",
20
- "@xyo-network/react-event": "^2.49.5"
20
+ "@xyo-network/react-event": "^2.49.7"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@storybook/react": "^7.0.8",
@@ -78,5 +78,5 @@
78
78
  },
79
79
  "sideEffects": false,
80
80
  "types": "dist/types/index.d.ts",
81
- "version": "2.49.5"
81
+ "version": "2.49.7"
82
82
  }
@@ -1,12 +1,13 @@
1
1
  import BubbleChartRoundedIcon from '@mui/icons-material/BubbleChartRounded'
2
- import CloudRoundedIcon from '@mui/icons-material/CloudRounded'
3
2
  import HubRoundedIcon from '@mui/icons-material/HubRounded'
3
+ import InsertLinkRoundedIcon from '@mui/icons-material/InsertLinkRounded'
4
4
  import Inventory2RoundedIcon from '@mui/icons-material/Inventory2Rounded'
5
5
  import TimerRoundedIcon from '@mui/icons-material/TimerRounded'
6
+ import VisibilityRoundedIcon from '@mui/icons-material/VisibilityRounded'
6
7
  import { SvgIconProps } from '@mui/material'
7
8
  import { ReactElement } from 'react'
8
9
 
9
- export type NetworkComponentSlug = 'sentinel' | 'bridge' | 'archivist' | 'diviner' | 'node'
10
+ export type NetworkComponentSlug = 'sentinel' | 'bridge' | 'archivist' | 'diviner' | 'node' | 'witness'
10
11
 
11
12
  export interface NetworkComponentDetails {
12
13
  icon: (props?: SvgIconProps) => ReactElement
@@ -17,9 +18,10 @@ export interface NetworkComponentDetails {
17
18
  export const networkComponents: NetworkComponentDetails[] = [
18
19
  { icon: (props) => <HubRoundedIcon {...props} />, name: 'Node', slug: 'node' },
19
20
  { icon: (props) => <TimerRoundedIcon {...props} />, name: 'Sentinel', slug: 'sentinel' },
20
- { icon: (props) => <CloudRoundedIcon {...props} />, name: 'Bridge', slug: 'bridge' },
21
+ { icon: (props) => <InsertLinkRoundedIcon {...props} />, name: 'Bridge', slug: 'bridge' },
21
22
  { icon: (props) => <Inventory2RoundedIcon {...props} />, name: 'Archivist', slug: 'archivist' },
22
23
  { icon: (props) => <BubbleChartRoundedIcon {...props} />, name: 'Diviner', slug: 'diviner' },
24
+ { icon: (props) => <VisibilityRoundedIcon {...props} />, name: 'Witness', slug: 'witness' },
23
25
  ]
24
26
 
25
27
  export const findNetworkComponentIndex = (slug: string) => {