@xyo-network/react-chain-blockchain 1.17.0 → 1.17.2

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.
Files changed (60) hide show
  1. package/dist/browser/components/chain/index.d.ts +0 -1
  2. package/dist/browser/components/chain/index.d.ts.map +1 -1
  3. package/dist/browser/hooks/chain-iterator/index.d.ts +0 -2
  4. package/dist/browser/hooks/chain-iterator/index.d.ts.map +1 -1
  5. package/dist/browser/index.mjs +352 -613
  6. package/dist/browser/index.mjs.map +1 -1
  7. package/package.json +48 -48
  8. package/src/components/chain/index.ts +0 -1
  9. package/src/hooks/chain-iterator/index.ts +0 -2
  10. package/dist/browser/components/chain/render/index.d.ts +0 -2
  11. package/dist/browser/components/chain/render/index.d.ts.map +0 -1
  12. package/dist/browser/components/chain/render/static/flexbox/Flexbox.d.ts +0 -5
  13. package/dist/browser/components/chain/render/static/flexbox/Flexbox.d.ts.map +0 -1
  14. package/dist/browser/components/chain/render/static/flexbox/Flexbox.stories.d.ts +0 -8
  15. package/dist/browser/components/chain/render/static/flexbox/Flexbox.stories.d.ts.map +0 -1
  16. package/dist/browser/components/chain/render/static/flexbox/index.d.ts +0 -2
  17. package/dist/browser/components/chain/render/static/flexbox/index.d.ts.map +0 -1
  18. package/dist/browser/components/chain/render/static/flexbox/variants/Base.d.ts +0 -4
  19. package/dist/browser/components/chain/render/static/flexbox/variants/Base.d.ts.map +0 -1
  20. package/dist/browser/components/chain/render/static/flexbox/variants/WithAnalysis.d.ts +0 -4
  21. package/dist/browser/components/chain/render/static/flexbox/variants/WithAnalysis.d.ts.map +0 -1
  22. package/dist/browser/components/chain/render/static/flexbox/variants/index.d.ts +0 -3
  23. package/dist/browser/components/chain/render/static/flexbox/variants/index.d.ts.map +0 -1
  24. package/dist/browser/components/chain/render/static/hooks/index.d.ts +0 -2
  25. package/dist/browser/components/chain/render/static/hooks/index.d.ts.map +0 -1
  26. package/dist/browser/components/chain/render/static/hooks/useStaticBlockRenderComponents.d.ts +0 -11
  27. package/dist/browser/components/chain/render/static/hooks/useStaticBlockRenderComponents.d.ts.map +0 -1
  28. package/dist/browser/components/chain/render/static/index.d.ts +0 -2
  29. package/dist/browser/components/chain/render/static/index.d.ts.map +0 -1
  30. package/dist/browser/components/chain/render/static/table/Ex.d.ts +0 -5
  31. package/dist/browser/components/chain/render/static/table/Ex.d.ts.map +0 -1
  32. package/dist/browser/components/chain/render/static/table/Ex.stories.d.ts +0 -8
  33. package/dist/browser/components/chain/render/static/table/Ex.stories.d.ts.map +0 -1
  34. package/dist/browser/components/chain/render/static/table/variants/Base.d.ts +0 -4
  35. package/dist/browser/components/chain/render/static/table/variants/Base.d.ts.map +0 -1
  36. package/dist/browser/components/chain/render/static/table/variants/WithAnalysis.d.ts +0 -4
  37. package/dist/browser/components/chain/render/static/table/variants/WithAnalysis.d.ts.map +0 -1
  38. package/dist/browser/components/chain/render/static/table/variants/index.d.ts +0 -3
  39. package/dist/browser/components/chain/render/static/table/variants/index.d.ts.map +0 -1
  40. package/dist/browser/hooks/chain-iterator/ChainIteratorStore.d.ts +0 -24
  41. package/dist/browser/hooks/chain-iterator/ChainIteratorStore.d.ts.map +0 -1
  42. package/dist/browser/hooks/chain-iterator/useChainIteratorUpdatingHead.d.ts +0 -10
  43. package/dist/browser/hooks/chain-iterator/useChainIteratorUpdatingHead.d.ts.map +0 -1
  44. package/src/components/chain/render/index.ts +0 -1
  45. package/src/components/chain/render/static/flexbox/Flexbox.stories.tsx +0 -37
  46. package/src/components/chain/render/static/flexbox/Flexbox.tsx +0 -3
  47. package/src/components/chain/render/static/flexbox/index.ts +0 -1
  48. package/src/components/chain/render/static/flexbox/variants/Base.tsx +0 -31
  49. package/src/components/chain/render/static/flexbox/variants/WithAnalysis.tsx +0 -24
  50. package/src/components/chain/render/static/flexbox/variants/index.ts +0 -2
  51. package/src/components/chain/render/static/hooks/index.ts +0 -1
  52. package/src/components/chain/render/static/hooks/useStaticBlockRenderComponents.ts +0 -38
  53. package/src/components/chain/render/static/index.ts +0 -1
  54. package/src/components/chain/render/static/table/Ex.stories.tsx +0 -35
  55. package/src/components/chain/render/static/table/Ex.tsx +0 -3
  56. package/src/components/chain/render/static/table/variants/Base.tsx +0 -29
  57. package/src/components/chain/render/static/table/variants/WithAnalysis.tsx +0 -11
  58. package/src/components/chain/render/static/table/variants/index.ts +0 -2
  59. package/src/hooks/chain-iterator/ChainIteratorStore.ts +0 -87
  60. package/src/hooks/chain-iterator/useChainIteratorUpdatingHead.ts +0 -56
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-blockchain",
4
- "version": "1.17.0",
4
+ "version": "1.17.2",
5
5
  "description": "XYO Layer One React SDK Blockchain",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -47,64 +47,64 @@
47
47
  "package-cycle": "echo Nothing to do"
48
48
  },
49
49
  "dependencies": {
50
- "@storybook/react-vite": "~10.0.8",
51
- "@xylabs/axios": "~5.0.46",
52
- "@xylabs/react-animation": "~7.1.8",
53
- "@xylabs/react-error": "~7.1.8",
54
- "@xylabs/react-flexbox": "~7.1.8",
55
- "@xylabs/react-promise": "~7.1.8",
56
- "@xylabs/react-quick-tip-button": "~7.1.8",
57
- "@xylabs/react-shared": "~7.1.8",
58
- "@xylabs/react-theme": "~7.1.8",
59
- "@xylabs/sdk-js": "~5.0.46",
60
- "@xyo-network/account": "~5.2.10",
61
- "@xyo-network/archivist-memory": "~5.2.10",
62
- "@xyo-network/archivist-model": "~5.2.10",
63
- "@xyo-network/boundwitness-builder": "~5.2.10",
64
- "@xyo-network/boundwitness-model": "~5.2.10",
65
- "@xyo-network/bridge-http": "~5.2.10",
66
- "@xyo-network/chain-analyze": "~1.17.0",
67
- "@xyo-network/chain-protocol": "~1.17.0",
68
- "@xyo-network/chain-services": "~1.17.0",
69
- "@xyo-network/chain-utils": "~1.17.0",
70
- "@xyo-network/chain-wrappers": "~1.17.0",
71
- "@xyo-network/module-model": "~5.2.10",
72
- "@xyo-network/payload-builder": "~5.2.10",
73
- "@xyo-network/payload-model": "~5.2.10",
74
- "@xyo-network/react-boundwitness-plugin": "~7.4.0",
75
- "@xyo-network/react-chain-blockies": "~1.17.0",
76
- "@xyo-network/react-chain-provider": "~1.17.0",
77
- "@xyo-network/react-chain-shared": "~1.17.0",
78
- "@xyo-network/react-error": "~7.4.0",
79
- "@xyo-network/react-event": "~7.4.0",
80
- "@xyo-network/react-payload-raw-info": "~7.4.0",
81
- "@xyo-network/react-payload-table": "~7.4.0",
82
- "@xyo-network/react-shared": "~7.4.0",
83
- "@xyo-network/react-table": "~7.4.0",
84
- "@xyo-network/xl1-protocol": "~1.14.15",
85
- "@xyo-network/xl1-protocol-sdk": "~1.17.0"
50
+ "@storybook/react-vite": "~10.1.4",
51
+ "@xylabs/axios": "~5.0.50",
52
+ "@xylabs/react-animation": "~7.1.9",
53
+ "@xylabs/react-error": "~7.1.9",
54
+ "@xylabs/react-flexbox": "~7.1.9",
55
+ "@xylabs/react-promise": "~7.1.9",
56
+ "@xylabs/react-quick-tip-button": "~7.1.9",
57
+ "@xylabs/react-shared": "~7.1.9",
58
+ "@xylabs/react-theme": "~7.1.9",
59
+ "@xylabs/sdk-js": "~5.0.50",
60
+ "@xyo-network/account": "~5.2.17",
61
+ "@xyo-network/archivist-memory": "~5.2.17",
62
+ "@xyo-network/archivist-model": "~5.2.17",
63
+ "@xyo-network/boundwitness-builder": "~5.2.17",
64
+ "@xyo-network/boundwitness-model": "~5.2.17",
65
+ "@xyo-network/bridge-http": "~5.2.17",
66
+ "@xyo-network/chain-analyze": "~1.17.2",
67
+ "@xyo-network/chain-protocol": "~1.17.2",
68
+ "@xyo-network/chain-services": "~1.17.2",
69
+ "@xyo-network/chain-utils": "~1.17.2",
70
+ "@xyo-network/chain-wrappers": "~1.17.2",
71
+ "@xyo-network/module-model": "~5.2.17",
72
+ "@xyo-network/payload-builder": "~5.2.17",
73
+ "@xyo-network/payload-model": "~5.2.17",
74
+ "@xyo-network/react-boundwitness-plugin": "~7.4.1",
75
+ "@xyo-network/react-chain-blockies": "~1.17.2",
76
+ "@xyo-network/react-chain-provider": "~1.17.2",
77
+ "@xyo-network/react-chain-shared": "~1.17.2",
78
+ "@xyo-network/react-error": "~7.4.1",
79
+ "@xyo-network/react-event": "~7.4.1",
80
+ "@xyo-network/react-payload-raw-info": "~7.4.1",
81
+ "@xyo-network/react-payload-table": "~7.4.1",
82
+ "@xyo-network/react-shared": "~7.4.1",
83
+ "@xyo-network/react-table": "~7.4.1",
84
+ "@xyo-network/xl1-protocol": "~1.14.16",
85
+ "@xyo-network/xl1-protocol-sdk": "~1.17.2"
86
86
  },
87
87
  "devDependencies": {
88
88
  "@emotion/react": "~11.14.0",
89
89
  "@emotion/styled": "~11.14.1",
90
- "@mui/icons-material": "~7.3.5",
91
- "@mui/material": "~7.3.5",
90
+ "@mui/icons-material": "~7.3.6",
91
+ "@mui/material": "~7.3.6",
92
92
  "@types/react": "~19.2.7",
93
- "@xylabs/react-button": "~7.1.8",
94
- "@xylabs/sdk-js": "~5.0.46",
93
+ "@xylabs/react-button": "~7.1.9",
94
+ "@xylabs/sdk-js": "~5.0.50",
95
95
  "@xylabs/ts-scripts-yarn3": "~7.2.8",
96
96
  "@xylabs/tsconfig": "~7.2.8",
97
97
  "@xylabs/tsconfig-dom": "~7.2.8",
98
98
  "@xylabs/tsconfig-react": "~7.2.8",
99
- "@xyo-network/api-models": "~5.2.10",
100
- "@xyo-network/xl1-network-model": "~1.17.0",
101
- "@xyo-network/xl1-rpc": "~1.17.0",
99
+ "@xyo-network/api-models": "~5.2.17",
100
+ "@xyo-network/xl1-network-model": "~1.17.2",
101
+ "@xyo-network/xl1-rpc": "~1.17.2",
102
102
  "axios": "^1.13.2",
103
103
  "eslint": "^9.39.1",
104
- "react": "~19.2.0",
105
- "react-dom": "~19.2.0",
106
- "react-router-dom": "^7.9.6",
107
- "storybook": "~10.0.8",
104
+ "react": "~19.2.1",
105
+ "react-dom": "~19.2.1",
106
+ "react-router-dom": "^7.10.0",
107
+ "storybook": "~10.1.4",
108
108
  "typescript": "~5.9.3"
109
109
  },
110
110
  "peerDependencies": {
@@ -2,6 +2,5 @@ export * from './controls/index.ts'
2
2
  export * from './dialog/index.ts'
3
3
  export * from './hooks/index.ts'
4
4
  export * from './pagination/index.ts'
5
- export * from './render/index.ts'
6
5
  export * from './stats/index.ts'
7
6
  export * from './styled/index.ts'
@@ -1,3 +1 @@
1
- export * from './ChainIteratorStore.ts'
2
1
  export * from './useChainIteratorParams.ts'
3
- export * from './useChainIteratorUpdatingHead.ts'
@@ -1,2 +0,0 @@
1
- export * from './static/index.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/chain/render/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
@@ -1,5 +0,0 @@
1
- export declare const StaticBlockchainRenderFlexBox: {
2
- Base: import("react").FC<import("../../../../../types/index.ts").BlockChainRenderFlexboxProps>;
3
- WithAnalysis: import("react").FC<import("../../../../../types/index.ts").BlockChainRenderFlexboxProps>;
4
- };
5
- //# sourceMappingURL=Flexbox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Flexbox.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/chain/render/static/flexbox/Flexbox.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,6BAA6B;;;CAAyC,CAAA"}
@@ -1,8 +0,0 @@
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").ReactRenderer, import("../../../../../types/index.ts").BlockChainRenderFlexboxProps>;
5
- declare const WithMaxBlocks: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../../../../../types/index.ts").BlockChainRenderFlexboxProps>;
6
- declare const WithPagination: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../../../../../types/index.ts").BlockChainRenderFlexboxProps>;
7
- export { Default, WithMaxBlocks, WithPagination, };
8
- //# sourceMappingURL=Flexbox.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Flexbox.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/chain/render/static/flexbox/Flexbox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAcrD,IAAI;AAHT,wBAGS;AAQT,QAAA,MAAM,OAAO,mKAAoB,CAAA;AAIjC,QAAA,MAAM,aAAa,mKAAoB,CAAA;AAIvC,QAAA,MAAM,cAAc,mKAAoB,CAAA;AAIxC,OAAO,EACL,OAAO,EAAE,aAAa,EAAE,cAAc,GACvC,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './Flexbox.tsx';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/chain/render/static/flexbox/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { BlockChainRenderFlexboxProps } from '../../../../../../types/index.ts';
3
- export declare const StaticListBase: React.FC<BlockChainRenderFlexboxProps>;
4
- //# sourceMappingURL=Base.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/chain/render/static/flexbox/variants/Base.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAA;AAOpF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAmBjE,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { BlockChainRenderFlexboxProps } from '../../../../../../types/index.ts';
3
- export declare const WithAnalysis: React.FC<BlockChainRenderFlexboxProps>;
4
- //# sourceMappingURL=WithAnalysis.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WithAnalysis.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/chain/render/static/flexbox/variants/WithAnalysis.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAItC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAA;AAGpF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAc/D,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Base.tsx';
2
- export * from './WithAnalysis.tsx';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/chain/render/static/flexbox/variants/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './useStaticBlockRenderComponents.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/chain/render/static/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA"}
@@ -1,11 +0,0 @@
1
- import type { ComponentType } from 'react';
2
- import type { BlockChainRenderProps, BlockComponentWithTxsProps } from '../../../../../types/index.ts';
3
- export declare const useStaticBlockRenderComponents: (BlockComponent: ComponentType<BlockComponentWithTxsProps>, blockChainRenderProps?: BlockChainRenderProps) => {
4
- paginatedBlockComponents: import("../../../../../types/BlockComponents.ts").BlockChainRenderComponent[] | undefined;
5
- blockComponents: import("../../../../../types/BlockComponents.ts").BlockChainRenderComponent[] | undefined;
6
- errors: Error[];
7
- onPageChange: (_event: import("react").MouseEvent<HTMLButtonElement>, newPage: number) => void;
8
- page: number;
9
- pageSize: number;
10
- };
11
- //# sourceMappingURL=useStaticBlockRenderComponents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useStaticBlockRenderComponents.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/chain/render/static/hooks/useStaticBlockRenderComponents.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAI1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAA;AAOtG,eAAO,MAAM,8BAA8B,GAAI,gBAAgB,aAAa,CAAC,0BAA0B,CAAC,EAAE,wBAAwB,qBAAqB;;;;;;;CAwBtJ,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './flexbox/index.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chain/render/static/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
@@ -1,5 +0,0 @@
1
- export declare const StaticBlockchainRenderTableEx: {
2
- Base: import("react").FC<import("../../../../../types/index.ts").BlockChainRenderTableExProps>;
3
- WithAnalysis: import("react").FC<import("../../../../../types/index.ts").BlockChainRenderTableExProps>;
4
- };
5
- //# sourceMappingURL=Ex.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Ex.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/chain/render/static/table/Ex.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,6BAA6B;;;CAAyB,CAAA"}
@@ -1,8 +0,0 @@
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").ReactRenderer, import("../../../../../types/index.ts").BlockChainRenderTableExProps>;
5
- declare const WithMaxBlocks: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../../../../../types/index.ts").BlockChainRenderTableExProps>;
6
- declare const WithPagination: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../../../../../types/index.ts").BlockChainRenderTableExProps>;
7
- export { Default, WithMaxBlocks, WithPagination, };
8
- //# sourceMappingURL=Ex.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Ex.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/chain/render/static/table/Ex.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAcrD,IAAI;AAHT,wBAGS;AAMT,QAAA,MAAM,OAAO,mKAAoB,CAAA;AAIjC,QAAA,MAAM,aAAa,mKAAoB,CAAA;AAIvC,QAAA,MAAM,cAAc,mKAAoB,CAAA;AAIxC,OAAO,EACL,OAAO,EAAE,aAAa,EAAE,cAAc,GACvC,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { BlockChainRenderTableExProps } from '../../../../../../types/index.ts';
3
- export declare const Base: React.FC<BlockChainRenderTableExProps>;
4
- //# sourceMappingURL=Base.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/chain/render/static/table/variants/Base.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAA;AAMpF,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAkBvD,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { BlockChainRenderTableExProps } from '../../../../../../types/index.ts';
3
- export declare const WithAnalysis: React.FC<BlockChainRenderTableExProps>;
4
- //# sourceMappingURL=WithAnalysis.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WithAnalysis.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/chain/render/static/table/variants/WithAnalysis.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAA;AAGpF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAK/D,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Base.tsx';
2
- export * from './WithAnalysis.tsx';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/chain/render/static/table/variants/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA"}
@@ -1,24 +0,0 @@
1
- import type { XyoChainIteratorParams } from '@xyo-network/chain-services';
2
- import { ChainBlockNumberIterationService } from '@xyo-network/chain-services';
3
- import type { HydratedBlock } from '@xyo-network/xl1-protocol';
4
- import type { EventingChainBlockNumberIteratorService } from '@xyo-network/xl1-protocol-sdk';
5
- export type Listener = (...args: Array<unknown>) => void;
6
- export type ChainIteratorStoreValues = {
7
- chainIterator: ChainBlockNumberIterationService;
8
- error?: Error;
9
- head: HydratedBlock;
10
- };
11
- export declare class ChainIteratorStore {
12
- private _chainIterator;
13
- private _externalListeners;
14
- private _internalUnsubscribes;
15
- private _values;
16
- get chainIterator(): EventingChainBlockNumberIteratorService;
17
- get values(): ChainIteratorStoreValues;
18
- static create(params: XyoChainIteratorParams): Promise<ChainIteratorStore>;
19
- cleanup(): void;
20
- getSnapshot(): Partial<ChainIteratorStoreValues>;
21
- subscribe(onStoreChange: Listener): () => void;
22
- private emitChange;
23
- }
24
- //# sourceMappingURL=ChainIteratorStore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChainIteratorStore.d.ts","sourceRoot":"","sources":["../../../../src/hooks/chain-iterator/ChainIteratorStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACzE,OAAO,EAAE,gCAAgC,EAAE,MAAM,6BAA6B,CAAA;AAE9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,KAAK,EAAE,uCAAuC,EAAiB,MAAM,+BAA+B,CAAA;AAG3G,MAAM,MAAM,QAAQ,GAAG,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,IAAI,CAAA;AAExD,MAAM,MAAM,wBAAwB,GAAG;IAAE,aAAa,EAAE,gCAAgC,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,aAAa,CAAA;CAAE,CAAA;AAE9H,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,cAAc,CAAqD;IAC3E,OAAO,CAAC,kBAAkB,CAAiB;IAC3C,OAAO,CAAC,qBAAqB,CAA4B;IACzD,OAAO,CAAC,OAAO,CAAsC;IAErD,IAAI,aAAa,IAAI,uCAAuC,CAE3D;IAED,IAAI,MAAM,IAAI,wBAAwB,CAErC;WAEY,MAAM,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAqChF,OAAO;IAOP,WAAW,IAAI,OAAO,CAAC,wBAAwB,CAAC;IAIhD,SAAS,CAAC,aAAa,EAAE,QAAQ;IAOjC,OAAO,CAAC,UAAU;CAKnB"}
@@ -1,10 +0,0 @@
1
- import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
- import { type ChainBlockNumberIteratorService } from '@xyo-network/xl1-protocol-sdk';
3
- export interface ChainIteratorUpdatingHeadParams {
4
- chainArchivist?: ArchivistInstance;
5
- chainIterator?: ChainBlockNumberIteratorService;
6
- interval?: number;
7
- maxBlocks?: number;
8
- }
9
- export declare const useChainIteratorUpdatingHead: ({ chainIterator, interval, maxBlocks, chainArchivist, }: ChainIteratorUpdatingHeadParams) => Error | undefined;
10
- //# sourceMappingURL=useChainIteratorUpdatingHead.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useChainIteratorUpdatingHead.d.ts","sourceRoot":"","sources":["../../../../src/hooks/chain-iterator/useChainIteratorUpdatingHead.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAE,KAAK,+BAA+B,EAAuB,MAAM,+BAA+B,CAAA;AAGzG,MAAM,WAAW,+BAA+B;IAC9C,cAAc,CAAC,EAAE,iBAAiB,CAAA;IAClC,aAAa,CAAC,EAAE,+BAA+B,CAAA;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAGD,eAAO,MAAM,4BAA4B,GAAI,yDAE1C,+BAA+B,KAAG,KAAK,GAAG,SAwC5C,CAAA"}
@@ -1 +0,0 @@
1
- export * from './static/index.ts'
@@ -1,37 +0,0 @@
1
- import type { Meta, StoryFn } from '@storybook/react-vite'
2
- import type { CreatableName } from '@xylabs/sdk-js'
3
- import React from 'react'
4
-
5
- import { ChainArchivistDecorator } from '../../../../../stories/index.ts'
6
- import { StaticBlockchainRenderFlexBox } from './Flexbox.tsx'
7
-
8
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
9
- // @ts-expect-error
10
- globalThis.rollbar = undefined
11
-
12
- export default {
13
- title: 'Blockchain/Static/Flexbox/Local/WithAnalysis',
14
- component: StaticBlockchainRenderFlexBox.WithAnalysis,
15
- } as Meta
16
-
17
- const Template: StoryFn<typeof StaticBlockchainRenderFlexBox.WithAnalysis> = (args) => {
18
- return <StaticBlockchainRenderFlexBox.WithAnalysis {...args} />
19
- }
20
-
21
- // The head would normally be passed as a prop, but the decorator passes it behind
22
- // the scenes to the component because it generated the chain in use by the story
23
- const Default = Template.bind({})
24
- Default.args = {}
25
- Default.decorators = [ChainArchivistDecorator]
26
-
27
- const WithMaxBlocks = Template.bind({})
28
- WithMaxBlocks.args = { blockChainRenderProps: { maxBlocks: 4, name: 'unknown' as CreatableName } }
29
- WithMaxBlocks.decorators = [ChainArchivistDecorator]
30
-
31
- const WithPagination = Template.bind({})
32
- WithPagination.args = { blockChainRenderProps: { pageSize: 4, name: 'unknown' as CreatableName } }
33
- WithPagination.decorators = [ChainArchivistDecorator]
34
-
35
- export {
36
- Default, WithMaxBlocks, WithPagination,
37
- }
@@ -1,3 +0,0 @@
1
- import { StaticListBase, WithAnalysis } from './variants/index.ts'
2
-
3
- export const StaticBlockchainRenderFlexBox = { Base: StaticListBase, WithAnalysis }
@@ -1 +0,0 @@
1
- export * from './Flexbox.tsx'
@@ -1,31 +0,0 @@
1
- import { ErrorRender } from '@xylabs/react-error'
2
- import { FlexCol, FlexGrowRow } from '@xylabs/react-flexbox'
3
- import React from 'react'
4
-
5
- import type { BlockChainRenderFlexboxProps } from '../../../../../../types/index.ts'
6
- import { BlockHeadingFlexbox } from '../../../../../block/index.ts'
7
- import { BlockListAnimated } from '../../../../list/index.ts'
8
- import { BlockChainPagination } from '../../../../pagination/index.ts'
9
- import { ChainAnalyzerStatsDialogFromContext } from '../../../../stats/index.ts'
10
- import { useStaticBlockRenderComponents } from '../../hooks/index.ts'
11
-
12
- export const StaticListBase: React.FC<BlockChainRenderFlexboxProps> = ({ blockChainRenderProps, ...props }) => {
13
- const {
14
- blockComponents, errors, paginatedBlockComponents, onPageChange, page, pageSize,
15
- } = useStaticBlockRenderComponents(BlockHeadingFlexbox, blockChainRenderProps)
16
-
17
- return (
18
- <FlexCol alignItems="start" gap={2} width="100%" {...props}>
19
- {errors?.map(error => <ErrorRender error={error} key={error.name} scope="StaticBlockchainFlexboxInner" />)}
20
- {(paginatedBlockComponents?.length ?? 0) > 0
21
- ? (
22
- <FlexGrowRow justifyContent="space-between" width="100%">
23
- <ChainAnalyzerStatsDialogFromContext />
24
- <BlockChainPagination count={blockComponents?.length ?? 0} onPageChange={onPageChange} page={page} rowsPerPage={pageSize} />
25
- </FlexGrowRow>
26
- )
27
- : null}
28
- <BlockListAnimated blockChainRenderComponents={paginatedBlockComponents} />
29
- </FlexCol>
30
- )
31
- }
@@ -1,24 +0,0 @@
1
- import { isAddress } from '@xylabs/sdk-js'
2
- import { ChainProducersAnalyzer } from '@xyo-network/chain-analyze'
3
- import React, { useMemo } from 'react'
4
-
5
- import type { ChainAnalyzers } from '../../../../../../context/index.ts'
6
- import { ChainAnalyzersProvider } from '../../../../../../context/index.ts'
7
- import type { BlockChainRenderFlexboxProps } from '../../../../../../types/index.ts'
8
- import { StaticListBase } from './Base.tsx'
9
-
10
- export const WithAnalysis: React.FC<BlockChainRenderFlexboxProps> = ({ blockChainRenderProps, ...props }) => {
11
- const { chainId } = blockChainRenderProps ?? {}
12
-
13
- const analyzers = useMemo(() => {
14
- if (isAddress(chainId)) {
15
- return { producers: new ChainProducersAnalyzer() } as ChainAnalyzers
16
- }
17
- }, [chainId])
18
-
19
- return (
20
- <ChainAnalyzersProvider analyzers={analyzers}>
21
- <StaticListBase blockChainRenderProps={blockChainRenderProps} {...props} />
22
- </ChainAnalyzersProvider>
23
- )
24
- }
@@ -1,2 +0,0 @@
1
- export * from './Base.tsx'
2
- export * from './WithAnalysis.tsx'
@@ -1 +0,0 @@
1
- export * from './useStaticBlockRenderComponents.ts'
@@ -1,38 +0,0 @@
1
- import type { CreatableName } from '@xylabs/sdk-js'
2
- import { exists } from '@xylabs/sdk-js'
3
- import type { ComponentType } from 'react'
4
- import { useMemo } from 'react'
5
-
6
- import { useChainIteratorParams, useIterateChain } from '../../../../../hooks/index.ts'
7
- import type { BlockChainRenderProps, BlockComponentWithTxsProps } from '../../../../../types/index.ts'
8
- import { useStaticBlockComponents } from '../../../../block/index.ts'
9
- import { useChainPagination } from '../../../pagination/index.ts'
10
-
11
- const DEFAULT_PAGE_SIZE = 25
12
-
13
- // This is a hook but could easily be bundled up in a class with callbacks
14
- export const useStaticBlockRenderComponents = (BlockComponent: ComponentType<BlockComponentWithTxsProps>, blockChainRenderProps?: BlockChainRenderProps) => {
15
- const { maxBlocks } = blockChainRenderProps ?? {}
16
- const pageSize = blockChainRenderProps?.pageSize ?? DEFAULT_PAGE_SIZE
17
-
18
- const chainIteratorParams = useMemo(() => blockChainRenderProps ?? { name: 'unknown' as CreatableName }, [blockChainRenderProps])
19
-
20
- const [params, paramsError] = useChainIteratorParams(chainIteratorParams)
21
-
22
- const [blocks, blocksError] = useIterateChain(params, maxBlocks)
23
-
24
- const { blockComponents, errors: blockComponentsError } = useStaticBlockComponents(BlockComponent, params, blocks)
25
-
26
- const {
27
- onPageChange, page, paginatedBlockComponents,
28
- } = useChainPagination(pageSize, blockComponents)
29
-
30
- return {
31
- paginatedBlockComponents,
32
- blockComponents,
33
- errors: [paramsError, blocksError, blockComponentsError].filter(exists),
34
- onPageChange,
35
- page,
36
- pageSize,
37
- }
38
- }
@@ -1 +0,0 @@
1
- export * from './flexbox/index.ts'
@@ -1,35 +0,0 @@
1
- import type { Meta, StoryFn } from '@storybook/react-vite'
2
- import type { CreatableName } from '@xylabs/sdk-js'
3
- import React from 'react'
4
-
5
- import { ChainArchivistDecorator } from '../../../../../stories/index.ts'
6
- import { StaticBlockchainRenderTableEx } from './Ex.tsx'
7
-
8
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
9
- // @ts-expect-error
10
- globalThis.rollbar = undefined
11
-
12
- export default {
13
- title: 'Blockchain/Static/TableEx/Local/Base',
14
- component: StaticBlockchainRenderTableEx.Base,
15
- } as Meta
16
-
17
- const Template: StoryFn<typeof StaticBlockchainRenderTableEx.Base> = (args) => {
18
- return <StaticBlockchainRenderTableEx.Base {...args} />
19
- }
20
-
21
- const Default = Template.bind({})
22
- Default.args = {}
23
- Default.decorators = [ChainArchivistDecorator]
24
-
25
- const WithMaxBlocks = Template.bind({})
26
- WithMaxBlocks.args = { blockChainRenderProps: { maxBlocks: 4, name: 'unknown' as CreatableName } }
27
- WithMaxBlocks.decorators = [ChainArchivistDecorator]
28
-
29
- const WithPagination = Template.bind({})
30
- WithPagination.args = { blockChainRenderProps: { pageSize: 4, name: 'unknown' as CreatableName } }
31
- WithPagination.decorators = [ChainArchivistDecorator]
32
-
33
- export {
34
- Default, WithMaxBlocks, WithPagination,
35
- }
@@ -1,3 +0,0 @@
1
- import { Base, WithAnalysis } from './variants/index.ts'
2
-
3
- export const StaticBlockchainRenderTableEx = { Base, WithAnalysis }
@@ -1,29 +0,0 @@
1
- import { ErrorRender } from '@xylabs/react-error'
2
- import { FlexCol, FlexGrowRow } from '@xylabs/react-flexbox'
3
- import React from 'react'
4
-
5
- import type { BlockChainRenderTableExProps } from '../../../../../../types/index.ts'
6
- import { BlockChainTableRow } from '../../../../../block/index.ts'
7
- import { BlockListTableEx } from '../../../../list/index.ts'
8
- import { BlockChainPagination } from '../../../../pagination/index.ts'
9
- import { useStaticBlockRenderComponents } from '../../hooks/index.ts'
10
-
11
- export const Base: React.FC<BlockChainRenderTableExProps> = ({ blockChainRenderProps, ...props }) => {
12
- const {
13
- blockComponents, errors, paginatedBlockComponents, onPageChange, page, pageSize,
14
- } = useStaticBlockRenderComponents(BlockChainTableRow, blockChainRenderProps)
15
-
16
- return (
17
- <FlexCol alignItems="start" gap={2} width="100%" {...props}>
18
- {errors?.map(error => <ErrorRender error={error} key={error.name} scope="StaticBlockchainFlexboxInner" />)}
19
- {(paginatedBlockComponents?.length ?? 0) > 0
20
- ? (
21
- <FlexGrowRow justifyContent="space-between" width="100%">
22
- <BlockChainPagination count={blockComponents?.length ?? 0} onPageChange={onPageChange} page={page} rowsPerPage={pageSize} />
23
- </FlexGrowRow>
24
- )
25
- : null}
26
- <BlockListTableEx blockChainRenderComponents={paginatedBlockComponents} />
27
- </FlexCol>
28
- )
29
- }
@@ -1,11 +0,0 @@
1
- import React from 'react'
2
-
3
- import type { BlockChainRenderTableExProps } from '../../../../../../types/index.ts'
4
- import { Base } from './Base.tsx'
5
-
6
- export const WithAnalysis: React.FC<BlockChainRenderTableExProps> = ({ blockChainRenderProps, ...props }) => {
7
- // More code here if we want to analyze the static data via ChainAnalyzers
8
- return (
9
- <Base blockChainRenderProps={blockChainRenderProps} {...props} />
10
- )
11
- }
@@ -1,2 +0,0 @@
1
- export * from './Base.tsx'
2
- export * from './WithAnalysis.tsx'