@xyo-network/react-chain-boundwitness 1.6.5 → 1.7.0
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/components/block/BlockBoundWitnessDetails.stories.d.ts +8 -0
- package/dist/browser/components/block/BlockBoundWitnessDetails.stories.d.ts.map +1 -0
- package/dist/browser/components/transactions/TransactionBoundWitnessDetails.stories.d.ts +8 -0
- package/dist/browser/components/transactions/TransactionBoundWitnessDetails.stories.d.ts.map +1 -0
- package/dist/browser/index.d.ts +55 -0
- package/package.json +32 -32
- package/src/components/block/BlockBoundWitnessDetails.stories.tsx +2 -2
- package/dist/types/index.d.ts +0 -3
- /package/dist/{types → browser}/components/PayloadTable.d.ts +0 -0
- /package/dist/{types → browser}/components/PayloadTable.d.ts.map +0 -0
- /package/dist/{types → browser}/components/block/BlockBoundWitnessDetails.d.ts +0 -0
- /package/dist/{types → browser}/components/block/BlockBoundWitnessDetails.d.ts.map +0 -0
- /package/dist/{types → browser}/components/block/card/Card.d.ts +0 -0
- /package/dist/{types → browser}/components/block/card/Card.d.ts.map +0 -0
- /package/dist/{types → browser}/components/block/card/CardHeader.d.ts +0 -0
- /package/dist/{types → browser}/components/block/card/CardHeader.d.ts.map +0 -0
- /package/dist/{types → browser}/components/block/card/actions/BlockBoundWitnessActions.d.ts +0 -0
- /package/dist/{types → browser}/components/block/card/actions/BlockBoundWitnessActions.d.ts.map +0 -0
- /package/dist/{types → browser}/components/block/card/actions/BlockBoundWitnessVerification.d.ts +0 -0
- /package/dist/{types → browser}/components/block/card/actions/BlockBoundWitnessVerification.d.ts.map +0 -0
- /package/dist/{types → browser}/components/block/card/actions/index.d.ts +0 -0
- /package/dist/{types → browser}/components/block/card/actions/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/block/card/hooks/index.d.ts +0 -0
- /package/dist/{types → browser}/components/block/card/hooks/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/block/card/hooks/useDetails.d.ts +0 -0
- /package/dist/{types → browser}/components/block/card/hooks/useDetails.d.ts.map +0 -0
- /package/dist/{types → browser}/components/block/card/index.d.ts +0 -0
- /package/dist/{types → browser}/components/block/card/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/block/index.d.ts +0 -0
- /package/dist/{types → browser}/components/block/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/index.d.ts +0 -0
- /package/dist/{types → browser}/components/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/transactions/TransactionBoundWitnessDetails.d.ts +0 -0
- /package/dist/{types → browser}/components/transactions/TransactionBoundWitnessDetails.d.ts.map +0 -0
- /package/dist/{types → browser}/components/transactions/card/Card.d.ts +0 -0
- /package/dist/{types → browser}/components/transactions/card/Card.d.ts.map +0 -0
- /package/dist/{types → browser}/components/transactions/card/actions/TransactionActions.d.ts +0 -0
- /package/dist/{types → browser}/components/transactions/card/actions/TransactionActions.d.ts.map +0 -0
- /package/dist/{types → browser}/components/transactions/card/actions/TransactionVerification.d.ts +0 -0
- /package/dist/{types → browser}/components/transactions/card/actions/TransactionVerification.d.ts.map +0 -0
- /package/dist/{types → browser}/components/transactions/card/actions/index.d.ts +0 -0
- /package/dist/{types → browser}/components/transactions/card/actions/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/transactions/card/hooks/index.d.ts +0 -0
- /package/dist/{types → browser}/components/transactions/card/hooks/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/transactions/card/hooks/useDetails.d.ts +0 -0
- /package/dist/{types → browser}/components/transactions/card/hooks/useDetails.d.ts.map +0 -0
- /package/dist/{types → browser}/components/transactions/card/index.d.ts +0 -0
- /package/dist/{types → browser}/components/transactions/card/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/transactions/hooks/index.d.ts +0 -0
- /package/dist/{types → browser}/components/transactions/hooks/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/transactions/hooks/usePayloadTypes.d.ts +0 -0
- /package/dist/{types → browser}/components/transactions/hooks/usePayloadTypes.d.ts.map +0 -0
- /package/dist/{types → browser}/components/transactions/index.d.ts +0 -0
- /package/dist/{types → browser}/components/transactions/index.d.ts.map +0 -0
- /package/dist/{types → browser}/index.d.ts.map +0 -0
- /package/dist/{types → browser}/lib/formatFees.d.ts +0 -0
- /package/dist/{types → browser}/lib/formatFees.d.ts.map +0 -0
- /package/dist/{types → browser}/lib/formatNumber.d.ts +0 -0
- /package/dist/{types → browser}/lib/formatNumber.d.ts.map +0 -0
- /package/dist/{types → browser}/lib/formatPayloadsForTable.d.ts +0 -0
- /package/dist/{types → browser}/lib/formatPayloadsForTable.d.ts.map +0 -0
- /package/dist/{types → browser}/lib/formatResults.d.ts +0 -0
- /package/dist/{types → browser}/lib/formatResults.d.ts.map +0 -0
- /package/dist/{types → browser}/lib/index.d.ts +0 -0
- /package/dist/{types → browser}/lib/index.d.ts.map +0 -0
- /package/dist/{types → browser}/types/CustomBWEvents.d.ts +0 -0
- /package/dist/{types → browser}/types/CustomBWEvents.d.ts.map +0 -0
- /package/dist/{types → browser}/types/index.d.ts +0 -0
- /package/dist/{types → browser}/types/index.d.ts.map +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta } from '@storybook/react-vite';
|
|
2
|
+
declare const _default: Meta;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./BlockBoundWitnessDetails.tsx").BoundWitnessDetailsProps>;
|
|
5
|
+
declare const WithData: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./BlockBoundWitnessDetails.tsx").BoundWitnessDetailsProps>;
|
|
6
|
+
declare const WithDataEvents: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./BlockBoundWitnessDetails.tsx").BoundWitnessDetailsProps>;
|
|
7
|
+
export { Default, WithData, WithDataEvents, };
|
|
8
|
+
//# sourceMappingURL=BlockBoundWitnessDetails.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockBoundWitnessDetails.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/block/BlockBoundWitnessDetails.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACC,IAAI,EAChB,MAAM,uBAAuB,CAAA;wBAsBzB,IAAI;AAJT,wBAIS;AA0CT,QAAA,MAAM,OAAO,qKAAoB,CAAA;AAGjC,QAAA,MAAM,QAAQ,qKAAoB,CAAA;AAGlC,QAAA,MAAM,cAAc,qKAA8B,CAAA;AAGlD,OAAO,EACL,OAAO,EAAE,QAAQ,EAAE,cAAc,GAClC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta } from '@storybook/react-vite';
|
|
2
|
+
declare const _default: Meta;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./TransactionBoundWitnessDetails.tsx").TransactionBoundWitnessDetailsProps>;
|
|
5
|
+
declare const WithData: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./TransactionBoundWitnessDetails.tsx").TransactionBoundWitnessDetailsProps>;
|
|
6
|
+
declare const WithInvalidData: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./TransactionBoundWitnessDetails.tsx").TransactionBoundWitnessDetailsProps>;
|
|
7
|
+
export { Default, WithData, WithInvalidData, };
|
|
8
|
+
//# sourceMappingURL=TransactionBoundWitnessDetails.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionBoundWitnessDetails.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/transactions/TransactionBoundWitnessDetails.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAWrD,IAAI;AAHT,wBAGS;AAaT,QAAA,MAAM,OAAO,sLAAoB,CAAA;AAGjC,QAAA,MAAM,QAAQ,sLAAoB,CAAA;AAGlC,QAAA,MAAM,eAAe,sLAAoB,CAAA;AAGzC,OAAO,EACL,OAAO,EAAE,QAAQ,EAAE,eAAe,GACnC,CAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
3
|
+
import { HydratedBlock, XyoViewer, HydratedTransaction } from '@xyo-network/xl1-protocol';
|
|
4
|
+
import { Hash } from '@xylabs/hex';
|
|
5
|
+
import { ExtendEventNoun, EventNoun } from '@xyo-network/react-event';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { QuickTipButtonProps } from '@xylabs/react-quick-tip-button';
|
|
8
|
+
import { CardProps } from '@mui/material';
|
|
9
|
+
import { HydratedTransactionInstance } from '@xyo-network/xl1-protocol-sdk';
|
|
10
|
+
|
|
11
|
+
interface BoundWitnessDetailsProps extends FlexBoxProps {
|
|
12
|
+
block?: HydratedBlock;
|
|
13
|
+
viewer?: XyoViewer;
|
|
14
|
+
}
|
|
15
|
+
declare const BlockBoundWitnessDetails: ({ block, paper, viewer, children, ...props }: BoundWitnessDetailsProps) => react_jsx_runtime.JSX.Element;
|
|
16
|
+
|
|
17
|
+
type ClickableFields = 'hash';
|
|
18
|
+
interface BWPayloadTableFlexboxProps<TNoun extends ExtendEventNoun = EventNoun> extends FlexBoxProps {
|
|
19
|
+
IconComponent?: React.ReactNode;
|
|
20
|
+
clickableFields?: ClickableFields[];
|
|
21
|
+
eventNoun?: TNoun;
|
|
22
|
+
hashes?: Hash[];
|
|
23
|
+
headingTitle?: string;
|
|
24
|
+
schemas?: string[];
|
|
25
|
+
tooltip?: string;
|
|
26
|
+
}
|
|
27
|
+
declare const PayloadTableFlexbox: <TNoun extends ExtendEventNoun = EventNoun>({ IconComponent, eventNoun, hashes, schemas, headingTitle, clickableFields, tooltip, ...props }: BWPayloadTableFlexboxProps<TNoun>) => react_jsx_runtime.JSX.Element;
|
|
28
|
+
|
|
29
|
+
interface TransactionActionsProps extends FlexBoxProps {
|
|
30
|
+
transaction?: HydratedTransaction | null;
|
|
31
|
+
validationIconColors?: boolean;
|
|
32
|
+
}
|
|
33
|
+
declare const TransactionActions: React.FC<TransactionActionsProps>;
|
|
34
|
+
|
|
35
|
+
interface TxVerification extends QuickTipButtonProps {
|
|
36
|
+
iconColors?: boolean;
|
|
37
|
+
transaction?: HydratedTransaction | null;
|
|
38
|
+
}
|
|
39
|
+
declare const TransactionVerification: React.FC<TxVerification>;
|
|
40
|
+
|
|
41
|
+
interface TransactionBoundWitnessCardProps extends CardProps {
|
|
42
|
+
linkedAddress?: boolean;
|
|
43
|
+
wrapper?: HydratedTransactionInstance;
|
|
44
|
+
}
|
|
45
|
+
declare const TransactionBoundWitnessCard: React.FC<TransactionBoundWitnessCardProps>;
|
|
46
|
+
|
|
47
|
+
interface TransactionBoundWitnessDetailsProps extends FlexBoxProps {
|
|
48
|
+
transaction?: HydratedTransaction | null;
|
|
49
|
+
}
|
|
50
|
+
declare const TransactionBoundWitnessDetails: React.FC<TransactionBoundWitnessDetailsProps>;
|
|
51
|
+
|
|
52
|
+
type TransactionBoundWitnessEvents = ExtendEventNoun<'transaction'>;
|
|
53
|
+
|
|
54
|
+
export { BlockBoundWitnessDetails, PayloadTableFlexbox, TransactionActions, TransactionBoundWitnessCard, TransactionBoundWitnessDetails, TransactionVerification };
|
|
55
|
+
export type { BWPayloadTableFlexboxProps, BoundWitnessDetailsProps, ClickableFields, TransactionActionsProps, TransactionBoundWitnessCardProps, TransactionBoundWitnessDetailsProps, TransactionBoundWitnessEvents, TxVerification };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@xyo-network/react-chain-boundwitness",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.0",
|
|
5
5
|
"description": "XYO Layer One React SDK BoundWitness",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -23,41 +23,41 @@
|
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
25
25
|
"browser": {
|
|
26
|
-
"types": "./dist/
|
|
26
|
+
"types": "./dist/browser/index.d.ts",
|
|
27
27
|
"default": "./dist/browser/index.mjs"
|
|
28
28
|
},
|
|
29
|
-
"types": "./dist/
|
|
29
|
+
"types": "./dist/browser/index.d.ts",
|
|
30
30
|
"default": "./dist/browser/index.mjs"
|
|
31
31
|
},
|
|
32
32
|
"./package.json": "./package.json"
|
|
33
33
|
},
|
|
34
34
|
"module": "dist/browser/index.mjs",
|
|
35
|
-
"types": "dist/
|
|
35
|
+
"types": "dist/browser/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@xylabs/array": "^4.
|
|
38
|
-
"@xylabs/assert": "^4.
|
|
39
|
-
"@xylabs/eth-address": "^4.
|
|
40
|
-
"@xylabs/hex": "^4.
|
|
41
|
-
"@xylabs/react-error": "^6.3.
|
|
42
|
-
"@xylabs/react-flexbox": "^6.3.
|
|
43
|
-
"@xylabs/react-promise": "^6.3.
|
|
44
|
-
"@xylabs/react-quick-tip-button": "^6.3.
|
|
45
|
-
"@xylabs/typeof": "^4.
|
|
46
|
-
"@xyo-network/boundwitness-model": "^4.
|
|
47
|
-
"@xyo-network/chain-utils": "^1.
|
|
48
|
-
"@xyo-network/chain-validation": "^1.
|
|
49
|
-
"@xyo-network/chain-wrappers": "^1.
|
|
50
|
-
"@xyo-network/payload-builder": "^4.
|
|
51
|
-
"@xyo-network/payload-model": "^4.
|
|
37
|
+
"@xylabs/array": "^4.13.15",
|
|
38
|
+
"@xylabs/assert": "^4.13.15",
|
|
39
|
+
"@xylabs/eth-address": "^4.13.15",
|
|
40
|
+
"@xylabs/hex": "^4.13.15",
|
|
41
|
+
"@xylabs/react-error": "^6.3.10",
|
|
42
|
+
"@xylabs/react-flexbox": "^6.3.10",
|
|
43
|
+
"@xylabs/react-promise": "^6.3.10",
|
|
44
|
+
"@xylabs/react-quick-tip-button": "^6.3.10",
|
|
45
|
+
"@xylabs/typeof": "^4.13.15",
|
|
46
|
+
"@xyo-network/boundwitness-model": "^4.1.1",
|
|
47
|
+
"@xyo-network/chain-utils": "^1.7.0",
|
|
48
|
+
"@xyo-network/chain-validation": "^1.7.0",
|
|
49
|
+
"@xyo-network/chain-wrappers": "^1.7.0",
|
|
50
|
+
"@xyo-network/payload-builder": "^4.1.1",
|
|
51
|
+
"@xyo-network/payload-model": "^4.1.1",
|
|
52
52
|
"@xyo-network/react-boundwitness-plugin": "^6.0.0",
|
|
53
|
-
"@xyo-network/react-chain-blockchain": "^1.
|
|
54
|
-
"@xyo-network/react-chain-blockies": "^1.
|
|
55
|
-
"@xyo-network/react-chain-shared": "^1.
|
|
53
|
+
"@xyo-network/react-chain-blockchain": "^1.7.0",
|
|
54
|
+
"@xyo-network/react-chain-blockies": "^1.7.0",
|
|
55
|
+
"@xyo-network/react-chain-shared": "^1.7.0",
|
|
56
56
|
"@xyo-network/react-event": "^6.0.0",
|
|
57
57
|
"@xyo-network/react-shared": "^6.0.0",
|
|
58
58
|
"@xyo-network/react-table": "^6.0.0",
|
|
59
|
-
"@xyo-network/xl1-protocol": "^1.6.
|
|
60
|
-
"@xyo-network/xl1-protocol-sdk": "^1.
|
|
59
|
+
"@xyo-network/xl1-protocol": "^1.6.4",
|
|
60
|
+
"@xyo-network/xl1-protocol-sdk": "^1.7.0",
|
|
61
61
|
"react-icons": "^5.5.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
@@ -66,14 +66,14 @@
|
|
|
66
66
|
"@mui/icons-material": "^7.2.0",
|
|
67
67
|
"@mui/material": "^7.2.0",
|
|
68
68
|
"@storybook/react-vite": "^9.0.16",
|
|
69
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
70
|
-
"@xylabs/tsconfig-react": "^
|
|
71
|
-
"@xyo-network/account": "^4.
|
|
72
|
-
"@xyo-network/chain-network-model": "^1.
|
|
73
|
-
"@xyo-network/chain-protocol": "^1.
|
|
74
|
-
"@xyo-network/react-chain-network": "^1.
|
|
75
|
-
"@xyo-network/react-chain-provider": "^1.
|
|
76
|
-
"@xyo-network/react-chain-shared": "^1.
|
|
69
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.23",
|
|
70
|
+
"@xylabs/tsconfig-react": "^7.0.0-rc.23",
|
|
71
|
+
"@xyo-network/account": "^4.1.1",
|
|
72
|
+
"@xyo-network/chain-network-model": "^1.7.0",
|
|
73
|
+
"@xyo-network/chain-protocol": "^1.7.0",
|
|
74
|
+
"@xyo-network/react-chain-network": "^1.7.0",
|
|
75
|
+
"@xyo-network/react-chain-provider": "^1.7.0",
|
|
76
|
+
"@xyo-network/react-chain-shared": "^1.7.0",
|
|
77
77
|
"knip": "^5.61.3",
|
|
78
78
|
"react": "^19.1.0",
|
|
79
79
|
"react-dom": "^19.1.0",
|
|
@@ -8,7 +8,7 @@ import type {
|
|
|
8
8
|
import { SequenceNetwork } from '@xyo-network/chain-network-model'
|
|
9
9
|
import { type BlockHeaderEventNouns, useBlockHeadingEvents } from '@xyo-network/react-chain-blockchain'
|
|
10
10
|
import { ChainNetworkProvider } from '@xyo-network/react-chain-network'
|
|
11
|
-
import {
|
|
11
|
+
import { useHttpRpcViewer } from '@xyo-network/react-chain-provider'
|
|
12
12
|
import { buildRandomBlockChain } from '@xyo-network/react-chain-shared'
|
|
13
13
|
import type { Event } from '@xyo-network/react-event'
|
|
14
14
|
import type { XyoViewer } from '@xyo-network/xl1-protocol'
|
|
@@ -49,7 +49,7 @@ const TemplateWithEvents: StoryFn<typeof BlockBoundWitnessDetails> = (args) => {
|
|
|
49
49
|
const [ref] = useBlockHeadingEvents((noun, verb, data) => setEvent({
|
|
50
50
|
noun, verb, data,
|
|
51
51
|
}))
|
|
52
|
-
const viewer =
|
|
52
|
+
const viewer = useHttpRpcViewer()
|
|
53
53
|
|
|
54
54
|
return (
|
|
55
55
|
<>
|
package/dist/types/index.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{types → browser}/components/block/card/actions/BlockBoundWitnessActions.d.ts.map
RENAMED
|
File without changes
|
/package/dist/{types → browser}/components/block/card/actions/BlockBoundWitnessVerification.d.ts
RENAMED
|
File without changes
|
/package/dist/{types → browser}/components/block/card/actions/BlockBoundWitnessVerification.d.ts.map
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{types → browser}/components/transactions/TransactionBoundWitnessDetails.d.ts.map
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{types → browser}/components/transactions/card/actions/TransactionActions.d.ts
RENAMED
|
File without changes
|
/package/dist/{types → browser}/components/transactions/card/actions/TransactionActions.d.ts.map
RENAMED
|
File without changes
|
/package/dist/{types → browser}/components/transactions/card/actions/TransactionVerification.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|