@xyo-network/react-chain-boundwitness 1.0.1 → 1.0.3
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/dist/browser/index.mjs.map +1 -1
- package/dist/types/Plugin.d.ts +1 -1
- package/dist/types/Plugin.d.ts.map +1 -1
- package/dist/types/components/Card/Card.d.ts +2 -2
- package/dist/types/components/Card/Card.d.ts.map +1 -1
- package/dist/types/components/Card/CardContent/AddressAvatarGroup.d.ts +1 -1
- package/dist/types/components/Card/CardContent/AddressAvatarGroup.d.ts.map +1 -1
- package/dist/types/components/Card/CardContent/CardContent.d.ts +2 -2
- package/dist/types/components/Card/CardContent/CardContent.d.ts.map +1 -1
- package/dist/types/components/Card/CardContent/SchemaAvatarGroup.d.ts +1 -1
- package/dist/types/components/Card/CardContent/SchemaAvatarGroup.d.ts.map +1 -1
- package/dist/types/components/Card/CardContent/layout/CardColumnTitle.d.ts +1 -1
- package/dist/types/components/Card/CardContent/layout/CardColumnTitle.d.ts.map +1 -1
- package/dist/types/components/Card/CardHeader/CardHeader.d.ts +4 -3
- package/dist/types/components/Card/CardHeader/CardHeader.d.ts.map +1 -1
- package/dist/types/components/Details/BoundWitnessLinksDetails.d.ts +2 -2
- package/dist/types/components/Details/BoundWitnessLinksDetails.d.ts.map +1 -1
- package/dist/types/components/Details/Box/DetailsBox.d.ts +2 -2
- package/dist/types/components/Details/Box/DetailsBox.d.ts.map +1 -1
- package/dist/types/components/Details/Card/DetailsCard.d.ts +1 -1
- package/dist/types/components/Details/Card/DetailsCard.d.ts.map +1 -1
- package/dist/types/components/Details/Card/DetailsCardContent.d.ts +4 -3
- package/dist/types/components/Details/Card/DetailsCardContent.d.ts.map +1 -1
- package/dist/types/components/Details/Card/DetailsCardInner.d.ts +1 -1
- package/dist/types/components/Details/Card/DetailsCardInner.d.ts.map +1 -1
- package/dist/types/components/Details/Card/Navigation/BottomNavigation.d.ts +4 -3
- package/dist/types/components/Details/Card/Navigation/BottomNavigation.d.ts.map +1 -1
- package/dist/types/components/Details/Card/Navigation/NavigationTabs.d.ts +4 -3
- package/dist/types/components/Details/Card/Navigation/NavigationTabs.d.ts.map +1 -1
- package/dist/types/components/Details/Details.d.ts +2 -2
- package/dist/types/components/Details/Details.d.ts.map +1 -1
- package/dist/types/components/Details/ValidationDetails.d.ts +2 -2
- package/dist/types/components/Details/ValidationDetails.d.ts.map +1 -1
- package/dist/types/components/_shared/Actions/BWActions.d.ts +4 -3
- package/dist/types/components/_shared/Actions/BWActions.d.ts.map +1 -1
- package/dist/types/components/_shared/Actions/Verification.d.ts +2 -2
- package/dist/types/components/_shared/Actions/Verification.d.ts.map +1 -1
- package/dist/types/components/_shared/Actions/_shared/ActionMenuItemProps.d.ts +2 -2
- package/dist/types/components/_shared/Actions/_shared/ActionMenuItemProps.d.ts.map +1 -1
- package/dist/types/components/_shared/Actions/_shared/MenuItemDialog.d.ts +1 -1
- package/dist/types/components/_shared/Actions/_shared/MenuItemDialog.d.ts.map +1 -1
- package/dist/types/components/_shared/Actions/json/MenuItem.d.ts +1 -1
- package/dist/types/components/_shared/Actions/json/MenuItem.d.ts.map +1 -1
- package/dist/types/components/_shared/Actions/previous-hash/DialogContent.d.ts +2 -2
- package/dist/types/components/_shared/Actions/previous-hash/DialogContent.d.ts.map +1 -1
- package/dist/types/components/_shared/Actions/previous-hash/MenuItem.d.ts +1 -1
- package/dist/types/components/_shared/Actions/previous-hash/MenuItem.d.ts.map +1 -1
- package/dist/types/components/_shared/Actions/previous-hash/QuickTipButton.d.ts +2 -2
- package/dist/types/components/_shared/Actions/previous-hash/QuickTipButton.d.ts.map +1 -1
- package/dist/types/components/_shared/Heading/HashHeadingPaper/Adornment/BackPaperAdornment.d.ts +1 -1
- package/dist/types/components/_shared/Heading/HashHeadingPaper/Adornment/BackPaperAdornment.d.ts.map +1 -1
- package/dist/types/components/_shared/Heading/HashHeadingPaper/Adornment/PaperAdornment.d.ts +1 -1
- package/dist/types/components/_shared/Heading/HashHeadingPaper/Adornment/PaperAdornment.d.ts.map +1 -1
- package/dist/types/components/_shared/Heading/HashHeadingPaper/Adornment/PaperAdornmentIconButton.d.ts +1 -1
- package/dist/types/components/_shared/Heading/HashHeadingPaper/Adornment/PaperAdornmentIconButton.d.ts.map +1 -1
- package/dist/types/components/_shared/Heading/HashHeadingPaper/HashHeadingPaper.d.ts +2 -2
- package/dist/types/components/_shared/Heading/HashHeadingPaper/HashHeadingPaper.d.ts.map +1 -1
- package/dist/types/components/_shared/Heading/Heading.d.ts +1 -1
- package/dist/types/components/_shared/Heading/Heading.d.ts.map +1 -1
- package/dist/types/components/_shared/Heading/HeadingPaper/HeadingPaper.d.ts +2 -2
- package/dist/types/components/_shared/Heading/HeadingPaper/HeadingPaper.d.ts.map +1 -1
- package/dist/types/components/_shared/Heading/HeadingProps.d.ts +3 -3
- package/dist/types/components/_shared/Heading/HeadingProps.d.ts.map +1 -1
- package/dist/types/components/_shared/Payloads/PayloadsPropertyGroup.d.ts +3 -3
- package/dist/types/components/_shared/Payloads/PayloadsPropertyGroup.d.ts.map +1 -1
- package/dist/types/components/_shared/Payloads/PayloadsTable.d.ts +4 -3
- package/dist/types/components/_shared/Payloads/PayloadsTable.d.ts.map +1 -1
- package/dist/types/components/_shared/Payloads/payloads-table/TableBody.d.ts +2 -2
- package/dist/types/components/_shared/Payloads/payloads-table/TableBody.d.ts.map +1 -1
- package/dist/types/components/_shared/Payloads/payloads-table/TableBodyFiltered.d.ts +1 -1
- package/dist/types/components/_shared/Payloads/payloads-table/TableBodyFiltered.d.ts.map +1 -1
- package/dist/types/components/_shared/Payloads/payloads-table/TableHead.d.ts +1 -1
- package/dist/types/components/_shared/Payloads/payloads-table/TableHead.d.ts.map +1 -1
- package/dist/types/components/_shared/Signatures/SignatureDetails.d.ts +2 -2
- package/dist/types/components/_shared/Signatures/SignatureDetails.d.ts.map +1 -1
- package/dist/types/components/_shared/Signatures/SignatureTable.d.ts +2 -2
- package/dist/types/components/_shared/Signatures/SignatureTable.d.ts.map +1 -1
- package/dist/types/components/_shared/Signatures/SignatureTableRow.d.ts +1 -1
- package/dist/types/components/_shared/Signatures/SignatureTableRow.d.ts.map +1 -1
- package/eslint.config.mjs +24 -0
- package/package.json +13 -13
- package/src/Plugin.ts +3 -2
- package/src/components/Card/Card.stories.tsx +1 -1
- package/src/components/Card/Card.tsx +4 -3
- package/src/components/Card/CardContent/AddressAvatarGroup.tsx +2 -3
- package/src/components/Card/CardContent/CardContent.tsx +3 -3
- package/src/components/Card/CardContent/SchemaAvatarGroup.tsx +2 -3
- package/src/components/Card/CardContent/layout/CardColumnTitle.tsx +2 -3
- package/src/components/Card/CardHeader/CardHeader.tsx +6 -4
- package/src/components/Details/BoundWitnessLinksDetails.tsx +3 -4
- package/src/components/Details/Box/DetailsBox.stories.tsx +2 -2
- package/src/components/Details/Box/DetailsBox.tsx +6 -4
- package/src/components/Details/Card/DetailsCard.stories.tsx +1 -1
- package/src/components/Details/Card/DetailsCard.tsx +2 -2
- package/src/components/Details/Card/DetailsCardContent.tsx +5 -5
- package/src/components/Details/Card/DetailsCardInner.tsx +4 -3
- package/src/components/Details/Card/Navigation/BottomNavigation.stories.tsx +1 -1
- package/src/components/Details/Card/Navigation/BottomNavigation.tsx +6 -5
- package/src/components/Details/Card/Navigation/NavigationTabs.stories.tsx +1 -1
- package/src/components/Details/Card/Navigation/NavigationTabs.tsx +6 -3
- package/src/components/Details/Details.stories.tsx +3 -3
- package/src/components/Details/Details.tsx +4 -3
- package/src/components/Details/ValidationDetails.tsx +3 -4
- package/src/components/_shared/Actions/BWActions.tsx +5 -3
- package/src/components/_shared/Actions/Verification.tsx +5 -3
- package/src/components/_shared/Actions/_shared/ActionMenuItemProps.ts +2 -2
- package/src/components/_shared/Actions/_shared/MenuItemDialog.tsx +2 -1
- package/src/components/_shared/Actions/json/MenuItem.tsx +4 -2
- package/src/components/_shared/Actions/previous-hash/DialogContent.tsx +3 -2
- package/src/components/_shared/Actions/previous-hash/MenuItem.tsx +4 -2
- package/src/components/_shared/Actions/previous-hash/QuickTipButton.tsx +3 -2
- package/src/components/_shared/Heading/HashHeadingPaper/Adornment/BackPaperAdornment.tsx +1 -1
- package/src/components/_shared/Heading/HashHeadingPaper/Adornment/PaperAdornment.tsx +2 -1
- package/src/components/_shared/Heading/HashHeadingPaper/Adornment/PaperAdornmentIconButton.tsx +2 -3
- package/src/components/_shared/Heading/HashHeadingPaper/HashHeadingPaper.stories.tsx +1 -1
- package/src/components/_shared/Heading/HashHeadingPaper/HashHeadingPaper.tsx +4 -2
- package/src/components/_shared/Heading/Heading.tsx +2 -2
- package/src/components/_shared/Heading/HeadingPaper/HeadingPaper.tsx +3 -4
- package/src/components/_shared/Heading/HeadingProps.tsx +3 -3
- package/src/components/_shared/Payloads/PayloadsPropertyGroup.tsx +4 -3
- package/src/components/_shared/Payloads/PayloadsTable.tsx +5 -3
- package/src/components/_shared/Payloads/payloads-table/TableBody.tsx +4 -2
- package/src/components/_shared/Payloads/payloads-table/TableBodyFiltered.tsx +2 -1
- package/src/components/_shared/Payloads/payloads-table/TableHead.tsx +1 -1
- package/src/components/_shared/Signatures/SignatureDetails.tsx +3 -2
- package/src/components/_shared/Signatures/SignatureTable.stories.tsx +1 -1
- package/src/components/_shared/Signatures/SignatureTable.tsx +3 -4
- package/src/components/_shared/Signatures/SignatureTableRow.tsx +2 -1
- package/xy.config.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
2
|
-
import { TableExProps } from '@xyo-network/react-table';
|
|
1
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
2
|
+
import type { TableExProps } from '@xyo-network/react-table';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
export interface BoundWitnessSignatureTableProps extends TableExProps {
|
|
5
5
|
block?: BoundWitness;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignatureTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/_shared/Signatures/SignatureTable.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"SignatureTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/_shared/Signatures/SignatureTable.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAGnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5D,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,+BAAgC,SAAQ,YAAY;IACnE,KAAK,CAAC,EAAE,YAAY,CAAA;CACrB;AAoBD,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,+BAA+B,CAyDhF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignatureTableRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/_shared/Signatures/SignatureTableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SignatureTableRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/_shared/Signatures/SignatureTableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAWlD,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,KAAK,eAAe,GAAG,SAAS,GAAG,WAAW,CAAA;AAE9C,MAAM,WAAW,kCAAmC,SAAQ,aAAa;IACvE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,eAAe,EAAE,CAAA;IACnC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,kCAAkC,CA8DtF,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
typescriptConfig,
|
|
3
|
+
unicornConfig,
|
|
4
|
+
workspacesConfig,
|
|
5
|
+
rulesConfig,
|
|
6
|
+
sonarConfig,
|
|
7
|
+
importConfig,
|
|
8
|
+
} from '@xylabs/eslint-config-flat'
|
|
9
|
+
|
|
10
|
+
export default [
|
|
11
|
+
{ ignores: ['.yarn', 'dist', '**/dist/**', 'build', '**/build/**', 'node_modules/**', 'public', '**/storybook-static', '**/.storybook'] },
|
|
12
|
+
unicornConfig,
|
|
13
|
+
workspacesConfig,
|
|
14
|
+
rulesConfig,
|
|
15
|
+
typescriptConfig,
|
|
16
|
+
importConfig,
|
|
17
|
+
sonarConfig,
|
|
18
|
+
{
|
|
19
|
+
rules: {
|
|
20
|
+
'sonarjs/prefer-single-boolean-return': ['off'],
|
|
21
|
+
'import-x/no-unresolved': ['off'],
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
]
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@xyo-network/react-chain-boundwitness",
|
|
4
|
-
"version": "1.0.
|
|
5
|
-
"description": "XYO Layer One SDK",
|
|
4
|
+
"version": "1.0.3",
|
|
5
|
+
"description": "XYO Layer One React SDK BoundWitness",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
8
8
|
"url": "git+https://github.com/xylabs/xyo-chain/issues",
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"@xyo-network/boundwitness-model": "^3.9.37",
|
|
45
45
|
"@xyo-network/boundwitness-validator": "^3.9.37",
|
|
46
46
|
"@xyo-network/payload-model": "^3.9.37",
|
|
47
|
-
"@xyo-network/react-card": "^5.0.
|
|
48
|
-
"@xyo-network/react-event": "^5.0.
|
|
49
|
-
"@xyo-network/react-payload-details": "^5.0.
|
|
50
|
-
"@xyo-network/react-payload-plugin": "^5.0.
|
|
51
|
-
"@xyo-network/react-payload-plugin-resolver": "^5.0.
|
|
52
|
-
"@xyo-network/react-payload-raw-info": "^5.0.
|
|
53
|
-
"@xyo-network/react-payload-table": "^5.0.
|
|
54
|
-
"@xyo-network/react-property": "^5.0.
|
|
55
|
-
"@xyo-network/react-shared": "^5.0.
|
|
56
|
-
"@xyo-network/react-table": "^5.0.
|
|
47
|
+
"@xyo-network/react-card": "^5.0.4",
|
|
48
|
+
"@xyo-network/react-event": "^5.0.4",
|
|
49
|
+
"@xyo-network/react-payload-details": "^5.0.4",
|
|
50
|
+
"@xyo-network/react-payload-plugin": "^5.0.4",
|
|
51
|
+
"@xyo-network/react-payload-plugin-resolver": "^5.0.4",
|
|
52
|
+
"@xyo-network/react-payload-raw-info": "^5.0.4",
|
|
53
|
+
"@xyo-network/react-payload-table": "^5.0.4",
|
|
54
|
+
"@xyo-network/react-property": "^5.0.4",
|
|
55
|
+
"@xyo-network/react-shared": "^5.0.4",
|
|
56
|
+
"@xyo-network/react-table": "^5.0.4",
|
|
57
57
|
"react-icons": "^5.5.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@xylabs/hex": "^4.6.0",
|
|
68
68
|
"@xylabs/ts-scripts-yarn3": "^6.0.9",
|
|
69
69
|
"@xylabs/tsconfig-react": "^6.0.9",
|
|
70
|
-
"@xyo-network/react-storybook": "^5.0.
|
|
70
|
+
"@xyo-network/react-storybook": "^5.0.4",
|
|
71
71
|
"eslint": "^9.22.0",
|
|
72
72
|
"react": "^19.0.0",
|
|
73
73
|
"react-dom": "^19.0.0",
|
package/src/Plugin.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Payload } from '@xyo-network/payload-model'
|
|
2
|
-
import {
|
|
1
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
2
|
+
import type { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'
|
|
3
|
+
import { createPayloadRenderPlugin } from '@xyo-network/react-payload-plugin'
|
|
3
4
|
|
|
4
5
|
import {
|
|
5
6
|
BoundWitnessCardContent, BoundWitnessCardHeader, BoundWitnessDetailsBox,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { CardProps } from '@mui/material'
|
|
2
|
+
import { Card } from '@mui/material'
|
|
3
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
4
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
4
5
|
import React from 'react'
|
|
5
6
|
|
|
6
7
|
import { BoundWitnessCardContent } from './CardContent/index.ts'
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from '@mui/material'
|
|
1
|
+
import type { AvatarGroupProps } from '@mui/material'
|
|
2
|
+
import { Avatar, AvatarGroup } from '@mui/material'
|
|
4
3
|
import { Identicon } from '@xylabs/react-identicon'
|
|
5
4
|
import React, { useRef } from 'react'
|
|
6
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CardContentProps } from '@mui/material'
|
|
2
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
3
|
-
import { Payload } from '@xyo-network/payload-model'
|
|
1
|
+
import type { CardContentProps } from '@mui/material'
|
|
2
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
3
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
4
4
|
import React, { forwardRef } from 'react'
|
|
5
5
|
|
|
6
6
|
import { AddressAvatarGroup } from './AddressAvatarGroup.tsx'
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from '@mui/material'
|
|
1
|
+
import type { AvatarGroupProps } from '@mui/material'
|
|
2
|
+
import { Avatar, AvatarGroup } from '@mui/material'
|
|
4
3
|
import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'
|
|
5
4
|
import { usePayloadRenderPluginResolver } from '@xyo-network/react-payload-plugin-resolver'
|
|
6
5
|
import React, { useCallback } from 'react'
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from '@mui/material'
|
|
1
|
+
import type { TypographyProps } from '@mui/material'
|
|
2
|
+
import { styled, Typography } from '@mui/material'
|
|
4
3
|
import React from 'react'
|
|
5
4
|
|
|
6
5
|
export const CardColumnTitle = styled(Typography, { name: 'CardColumnTitle' })(({ theme }) => ({
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import type { CardHeaderProps } from '@mui/material'
|
|
1
2
|
import {
|
|
2
|
-
CardHeader,
|
|
3
|
+
CardHeader,
|
|
3
4
|
styled, useTheme,
|
|
4
5
|
} from '@mui/material'
|
|
5
6
|
import { Identicon } from '@xylabs/react-identicon'
|
|
6
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
7
|
-
import { Payload } from '@xyo-network/payload-model'
|
|
7
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
8
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
8
9
|
import { usePayloadHash } from '@xyo-network/react-shared'
|
|
9
|
-
import
|
|
10
|
+
import type { ReactNode } from 'react'
|
|
11
|
+
import React, { forwardRef } from 'react'
|
|
10
12
|
|
|
11
13
|
import { BWActions, BWHeading } from '../../_shared/index.ts'
|
|
12
14
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Typography } from '@mui/material'
|
|
2
2
|
import { FlexRow } from '@xylabs/react-flexbox'
|
|
3
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
3
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
4
4
|
import { useEvent } from '@xyo-network/react-event'
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
} from '@xyo-network/react-property'
|
|
5
|
+
import type { PropertyGroupProps } from '@xyo-network/react-property'
|
|
6
|
+
import { Property, PropertyGroup } from '@xyo-network/react-property'
|
|
8
7
|
import React from 'react'
|
|
9
8
|
|
|
10
9
|
export type BoundWitnessLinksDetails = PropertyGroupProps & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryFn } from '@storybook/react'
|
|
2
|
-
import { Payload } from '@xyo-network/payload-model'
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/react'
|
|
2
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
3
3
|
import { useEvent } from '@xyo-network/react-event'
|
|
4
4
|
import { sampleAddressHistory } from '@xyo-network/react-storybook'
|
|
5
5
|
import React, { useRef } from 'react'
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Divider } from '@mui/material'
|
|
2
|
-
import { FlexBoxProps
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import type { FlexBoxProps } from '@xylabs/react-flexbox'
|
|
3
|
+
import { FlexCol } from '@xylabs/react-flexbox'
|
|
4
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
5
|
+
import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'
|
|
6
|
+
import type { PayloadDetailsListRenderProps, PayloadDetailsRenderProps } from '@xyo-network/react-payload-plugin'
|
|
5
7
|
import { usePayloadHash } from '@xyo-network/react-shared'
|
|
6
8
|
import { TableHeightProvider } from '@xyo-network/react-table'
|
|
7
|
-
import React, {
|
|
9
|
+
import React, { useMemo } from 'react'
|
|
8
10
|
// eslint-disable-next-line import-x/no-internal-modules
|
|
9
11
|
import { FaSignature } from 'react-icons/fa'
|
|
10
12
|
// eslint-disable-next-line import-x/no-internal-modules
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CardProps } from '@mui/material'
|
|
2
|
-
import { PayloadDetailsListRenderProps } from '@xyo-network/react-payload-plugin'
|
|
1
|
+
import type { CardProps } from '@mui/material'
|
|
2
|
+
import type { PayloadDetailsListRenderProps } from '@xyo-network/react-payload-plugin'
|
|
3
3
|
import { TableHeightProvider } from '@xyo-network/react-table'
|
|
4
4
|
import React, { forwardRef } from 'react'
|
|
5
5
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Collapse } from '@mui/material'
|
|
2
2
|
import { FlexGrowCol, FlexRow } from '@xylabs/react-flexbox'
|
|
3
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
4
|
-
import {
|
|
3
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
4
|
+
import type { CardContentExProps } from '@xyo-network/react-card'
|
|
5
|
+
import { CardContentEx } from '@xyo-network/react-card'
|
|
5
6
|
import { useTableHeight } from '@xyo-network/react-table'
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
} from 'react'
|
|
7
|
+
import type { Dispatch, SetStateAction } from 'react'
|
|
8
|
+
import React, { forwardRef, useState } from 'react'
|
|
9
9
|
|
|
10
10
|
import {
|
|
11
11
|
BoundWitnessPayloadsTable, BoundWitnessPayloadsTableForBWs, BoundWitnessSignatureTable,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ExpandLessRounded as ExpandLessRoundedIcon, ExpandMoreRounded as ExpandMoreRoundedIcon } from '@mui/icons-material'
|
|
2
|
+
import type { CardProps } from '@mui/material'
|
|
2
3
|
import {
|
|
3
|
-
Card,
|
|
4
|
+
Card,
|
|
4
5
|
Divider, IconButton,
|
|
5
6
|
} from '@mui/material'
|
|
6
7
|
import { useResetState } from '@xylabs/react-hooks'
|
|
7
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
8
|
-
import { PayloadDetailsRenderProps } from '@xyo-network/react-payload-plugin'
|
|
8
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
9
|
+
import type { PayloadDetailsRenderProps } from '@xyo-network/react-payload-plugin'
|
|
9
10
|
import React, { forwardRef } from 'react'
|
|
10
11
|
|
|
11
12
|
import { BoundWitnessCardHeader } from '../../Card/index.ts'
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import type { BottomNavigationProps } from '@mui/material'
|
|
1
2
|
import {
|
|
2
|
-
BottomNavigation, BottomNavigationAction,
|
|
3
|
+
BottomNavigation, BottomNavigationAction,
|
|
3
4
|
styled,
|
|
4
5
|
} from '@mui/material'
|
|
5
|
-
import { BoundWitness
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
} from 'react'
|
|
6
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
7
|
+
import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'
|
|
8
|
+
import type { Dispatch, SetStateAction } from 'react'
|
|
9
|
+
import React, { forwardRef } from 'react'
|
|
9
10
|
// eslint-disable-next-line import-x/no-internal-modules
|
|
10
11
|
import { FaSignature } from 'react-icons/fa'
|
|
11
12
|
// eslint-disable-next-line import-x/no-internal-modules
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import type { TabProps, TabsProps } from '@mui/material'
|
|
1
2
|
import {
|
|
2
|
-
Paper, Tab,
|
|
3
|
+
Paper, Tab, Tabs,
|
|
3
4
|
useTheme,
|
|
4
5
|
} from '@mui/material'
|
|
5
|
-
import { BoundWitness
|
|
6
|
-
import
|
|
6
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
7
|
+
import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'
|
|
8
|
+
import type {
|
|
7
9
|
Dispatch, SetStateAction, SyntheticEvent,
|
|
8
10
|
} from 'react'
|
|
11
|
+
import React from 'react'
|
|
9
12
|
// eslint-disable-next-line import-x/no-internal-modules
|
|
10
13
|
import { FaSignature } from 'react-icons/fa'
|
|
11
14
|
// eslint-disable-next-line import-x/no-internal-modules
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Meta, StoryFn } from '@storybook/react'
|
|
2
|
-
import { Hash } from '@xylabs/hex'
|
|
3
|
-
import { Payload } from '@xyo-network/payload-model'
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/react'
|
|
2
|
+
import type { Hash } from '@xylabs/hex'
|
|
3
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
4
4
|
import { useEvent } from '@xyo-network/react-event'
|
|
5
5
|
import { sampleBlock } from '@xyo-network/react-storybook'
|
|
6
6
|
import React, { useRef } from 'react'
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { FlexBoxProps
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { FlexBoxProps } from '@xylabs/react-flexbox'
|
|
2
|
+
import { FlexCol } from '@xylabs/react-flexbox'
|
|
3
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
4
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
4
5
|
import { PayloadDataDetails, PayloadJsonDetails } from '@xyo-network/react-payload-details'
|
|
5
6
|
import React, { forwardRef } from 'react'
|
|
6
7
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Typography } from '@mui/material'
|
|
2
2
|
import { FlexCol } from '@xylabs/react-flexbox'
|
|
3
3
|
import { usePromise } from '@xylabs/react-promise'
|
|
4
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
4
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
5
5
|
import { BoundWitnessValidator } from '@xyo-network/boundwitness-validator'
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
} from '@xyo-network/react-property'
|
|
6
|
+
import type { PropertyGroupProps } from '@xyo-network/react-property'
|
|
7
|
+
import { Property, PropertyGroup } from '@xyo-network/react-property'
|
|
9
8
|
import React from 'react'
|
|
10
9
|
|
|
11
10
|
export type BoundWitnessValidationDetailsProps = PropertyGroupProps & {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { DataObject as DataObjectIcon } from '@mui/icons-material'
|
|
2
2
|
import { ellipsize } from '@xylabs/eth-address'
|
|
3
|
-
import { FlexBoxProps
|
|
3
|
+
import type { FlexBoxProps } from '@xylabs/react-flexbox'
|
|
4
|
+
import { FlexRow } from '@xylabs/react-flexbox'
|
|
4
5
|
import { QuickTipButton } from '@xylabs/react-quick-tip-button'
|
|
5
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
6
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
6
7
|
import { usePayloadHash } from '@xyo-network/react-shared'
|
|
7
|
-
import
|
|
8
|
+
import type { ReactNode } from 'react'
|
|
9
|
+
import React from 'react'
|
|
8
10
|
|
|
9
11
|
import { BWPreviousHashQuickTipButton } from './previous-hash/index.ts'
|
|
10
12
|
import { BWVerification } from './Verification.tsx'
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { CancelRounded as CancelRoundedIcon, CheckCircleOutlineRounded as CheckCircleOutlineRoundedIcon } from '@mui/icons-material'
|
|
2
|
-
import { SvgIconProps
|
|
2
|
+
import type { SvgIconProps } from '@mui/material'
|
|
3
|
+
import { Typography } from '@mui/material'
|
|
3
4
|
import { FlexCol } from '@xylabs/react-flexbox'
|
|
4
5
|
import { usePromise } from '@xylabs/react-promise'
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
6
|
+
import type { QuickTipButtonProps } from '@xylabs/react-quick-tip-button'
|
|
7
|
+
import { QuickTipButton } from '@xylabs/react-quick-tip-button'
|
|
8
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
7
9
|
import { BoundWitnessValidator } from '@xyo-network/boundwitness-validator'
|
|
8
10
|
import React, { forwardRef } from 'react'
|
|
9
11
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MenuItemProps } from '@mui/material'
|
|
2
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
1
|
+
import type { MenuItemProps } from '@mui/material'
|
|
2
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
3
3
|
|
|
4
4
|
export interface ActionMenuItemProps extends MenuItemProps {
|
|
5
5
|
boundwitness?: BoundWitness
|
|
@@ -3,9 +3,11 @@ import { ListItemIcon, MenuItem } from '@mui/material'
|
|
|
3
3
|
import { ellipsize } from '@xylabs/eth-address'
|
|
4
4
|
import { JsonViewerEx } from '@xyo-network/react-payload-raw-info'
|
|
5
5
|
import { usePayloadHash } from '@xyo-network/react-shared'
|
|
6
|
-
import
|
|
6
|
+
import type { MouseEventHandler } from 'react'
|
|
7
|
+
import React, { useState } from 'react'
|
|
7
8
|
|
|
8
|
-
import { ActionMenuItemProps
|
|
9
|
+
import type { ActionMenuItemProps } from '../_shared/index.ts'
|
|
10
|
+
import { MenuItemDialog } from '../_shared/index.ts'
|
|
9
11
|
|
|
10
12
|
export interface BWJsonMenuItemProps extends ActionMenuItemProps {}
|
|
11
13
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ContentCopy } from '@mui/icons-material'
|
|
2
|
+
import type { DialogContentProps } from '@mui/material'
|
|
2
3
|
import {
|
|
3
4
|
Alert, AlertTitle, Collapse,
|
|
4
|
-
DialogContent,
|
|
5
|
+
DialogContent,
|
|
5
6
|
} from '@mui/material'
|
|
6
7
|
import { FlexGrowRow, FlexRow } from '@xylabs/react-flexbox'
|
|
7
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
8
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
8
9
|
import { EllipsizeBox } from '@xyo-network/react-shared'
|
|
9
10
|
import React, { useState } from 'react'
|
|
10
11
|
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Link } from '@mui/icons-material'
|
|
2
2
|
import { ListItemIcon, MenuItem } from '@mui/material'
|
|
3
|
-
import
|
|
3
|
+
import type { MouseEventHandler } from 'react'
|
|
4
|
+
import React, { useState } from 'react'
|
|
4
5
|
|
|
5
|
-
import { ActionMenuItemProps
|
|
6
|
+
import type { ActionMenuItemProps } from '../_shared/index.ts'
|
|
7
|
+
import { MenuItemDialog } from '../_shared/index.ts'
|
|
6
8
|
import { PreviousHashDialogContent } from './DialogContent.tsx'
|
|
7
9
|
|
|
8
10
|
export interface BWPreviousHashMenuItemProps extends ActionMenuItemProps {}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { LinkRounded as LinkRoundedIcon } from '@mui/icons-material'
|
|
2
2
|
import { ellipsize } from '@xylabs/eth-address'
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import type { QuickTipButtonProps } from '@xylabs/react-quick-tip-button'
|
|
4
|
+
import { QuickTipButton } from '@xylabs/react-quick-tip-button'
|
|
5
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
5
6
|
import React from 'react'
|
|
6
7
|
|
|
7
8
|
import { PreviousHashDialogContent } from './DialogContent.tsx'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { styled } from '@mui/material'
|
|
2
|
-
import { FlexBoxProps
|
|
2
|
+
import type { FlexBoxProps } from '@xylabs/react-flexbox'
|
|
3
|
+
import { FlexCol } from '@xylabs/react-flexbox'
|
|
3
4
|
|
|
4
5
|
export interface PaperAdornmentProps extends FlexBoxProps {
|
|
5
6
|
clickable?: boolean
|
package/src/components/_shared/Heading/HashHeadingPaper/Adornment/PaperAdornmentIconButton.tsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from '@mui/material'
|
|
1
|
+
import type { IconButtonProps } from '@mui/material'
|
|
2
|
+
import { IconButton, styled } from '@mui/material'
|
|
4
3
|
|
|
5
4
|
export interface PaperAdornmentIconButton extends IconButtonProps {
|
|
6
5
|
themePadding?: number
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { useTheme } from '@mui/material'
|
|
2
|
-
import {
|
|
2
|
+
import type { IdenticonProps } from '@xylabs/react-identicon'
|
|
3
|
+
import { Identicon } from '@xylabs/react-identicon'
|
|
3
4
|
import React, { forwardRef } from 'react'
|
|
4
5
|
|
|
5
|
-
import {
|
|
6
|
+
import type { HeadingPaperProps } from '../HeadingPaper/index.ts'
|
|
7
|
+
import { HeadingPaper } from '../HeadingPaper/index.ts'
|
|
6
8
|
|
|
7
9
|
export interface HashHeadingPaperProps extends HeadingPaperProps {
|
|
8
10
|
hash?: string
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TypographyVariant } from '@mui/material'
|
|
1
|
+
import type { TypographyVariant } from '@mui/material'
|
|
2
2
|
import { FlexGrowRow } from '@xylabs/react-flexbox'
|
|
3
3
|
import { EllipsizeBox } from '@xyo-network/react-shared'
|
|
4
4
|
import React, { useRef } from 'react'
|
|
5
5
|
|
|
6
|
-
import { BWHeadingProps, HeadingTextSizes } from './HeadingProps.tsx'
|
|
6
|
+
import type { BWHeadingProps, HeadingTextSizes } from './HeadingProps.tsx'
|
|
7
7
|
|
|
8
8
|
export const BWHeading: React.FC<BWHeadingProps> = ({
|
|
9
9
|
AdornmentEnd,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from '@mui/material'
|
|
1
|
+
import type { PaperProps } from '@mui/material'
|
|
2
|
+
import { Paper, styled } from '@mui/material'
|
|
4
3
|
import React, { forwardRef } from 'react'
|
|
5
4
|
|
|
6
5
|
import { BWHeading } from '../Heading.tsx'
|
|
7
|
-
import { BWHeadingProps } from '../HeadingProps.tsx'
|
|
6
|
+
import type { BWHeadingProps } from '../HeadingProps.tsx'
|
|
8
7
|
|
|
9
8
|
export interface HeadingPaperProps extends BWHeadingProps {
|
|
10
9
|
paperProps?: PaperProps
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TypographyProps } from '@mui/material'
|
|
2
|
-
import { FlexBoxProps } from '@xylabs/react-flexbox'
|
|
3
|
-
import { ReactNode } from 'react'
|
|
1
|
+
import type { TypographyProps } from '@mui/material'
|
|
2
|
+
import type { FlexBoxProps } from '@xylabs/react-flexbox'
|
|
3
|
+
import type { ReactNode } from 'react'
|
|
4
4
|
|
|
5
5
|
export type HeadingTextSizes = 'small' | 'medium' | 'large'
|
|
6
6
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
2
|
-
import { PayloadTableProps } from '@xyo-network/react-payload-table'
|
|
3
|
-
import {
|
|
1
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
2
|
+
import type { PayloadTableProps } from '@xyo-network/react-payload-table'
|
|
3
|
+
import type { PropertyGroupProps } from '@xyo-network/react-property'
|
|
4
|
+
import { PropertyGroup } from '@xyo-network/react-property'
|
|
4
5
|
import React from 'react'
|
|
5
6
|
|
|
6
7
|
import { BoundWitnessPayloadsTable } from './PayloadsTable.tsx'
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { BoundWitness
|
|
2
|
-
import {
|
|
1
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
2
|
+
import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'
|
|
3
|
+
import type { PayloadTableProps } from '@xyo-network/react-payload-table'
|
|
3
4
|
import { usePayloadHash } from '@xyo-network/react-shared'
|
|
4
5
|
import { TableEx } from '@xyo-network/react-table'
|
|
5
|
-
import
|
|
6
|
+
import type { PropsWithChildren } from 'react'
|
|
7
|
+
import React from 'react'
|
|
6
8
|
|
|
7
9
|
import { BoundWitnessFilteredPayloadTableBody, BoundWitnessPayloadTableHead } from './payloads-table/index.ts'
|
|
8
10
|
|