@xyo-network/react-storybook 2.61.0 → 2.62.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.
Files changed (175) hide show
  1. package/dist/DeprecateStory.d.mts.map +1 -0
  2. package/dist/DeprecateStory.d.ts +5 -0
  3. package/dist/DeprecateStory.d.ts.map +1 -0
  4. package/dist/WithMapboxSetup.d.mts.map +1 -0
  5. package/dist/WithMapboxSetup.d.ts +3 -0
  6. package/dist/WithMapboxSetup.d.ts.map +1 -0
  7. package/dist/WithRefDecorator.d.mts.map +1 -0
  8. package/dist/WithRefDecorator.d.ts +3 -0
  9. package/dist/WithRefDecorator.d.ts.map +1 -0
  10. package/dist/defaultSeedPhrase.d.mts.map +1 -0
  11. package/dist/defaultSeedPhrase.d.ts +2 -0
  12. package/dist/defaultSeedPhrase.d.ts.map +1 -0
  13. package/dist/docs.json +8680 -0
  14. package/dist/index.d.mts.map +1 -0
  15. package/dist/{esm/index.js → index.d.ts} +1 -1
  16. package/dist/index.d.ts.map +1 -0
  17. package/dist/index.js +896 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/index.mjs +846 -0
  20. package/dist/index.mjs.map +1 -0
  21. package/dist/sampleAddressHistory.d.mts.map +1 -0
  22. package/dist/sampleAddressHistory.d.ts +35 -0
  23. package/dist/sampleAddressHistory.d.ts.map +1 -0
  24. package/dist/sampleBlock.d.mts.map +1 -0
  25. package/dist/sampleBlock.d.ts +7 -0
  26. package/dist/sampleBlock.d.ts.map +1 -0
  27. package/dist/sampleCoinGeckoPayload.d.mts.map +1 -0
  28. package/dist/sampleCoinGeckoPayload.d.ts +73 -0
  29. package/dist/sampleCoinGeckoPayload.d.ts.map +1 -0
  30. package/dist/sampleEthereumGasDivinerPayload.d.mts.map +1 -0
  31. package/dist/sampleEthereumGasDivinerPayload.d.ts +24 -0
  32. package/dist/sampleEthereumGasDivinerPayload.d.ts.map +1 -0
  33. package/dist/sampleGasPricePayloads/blocknative.d.mts.map +1 -0
  34. package/dist/sampleGasPricePayloads/blocknative.d.ts +68 -0
  35. package/dist/sampleGasPricePayloads/blocknative.d.ts.map +1 -0
  36. package/dist/sampleGasPricePayloads/ethGasStation.d.mts.map +1 -0
  37. package/dist/sampleGasPricePayloads/ethGasStation.d.ts +19 -0
  38. package/dist/sampleGasPricePayloads/ethGasStation.d.ts.map +1 -0
  39. package/dist/sampleGasPricePayloads/etherchainV1.d.mts.map +1 -0
  40. package/dist/sampleGasPricePayloads/etherchainV1.d.ts +11 -0
  41. package/dist/sampleGasPricePayloads/etherchainV1.d.ts.map +1 -0
  42. package/dist/sampleGasPricePayloads/etherchainV2.d.mts.map +1 -0
  43. package/dist/sampleGasPricePayloads/etherchainV2.d.ts +14 -0
  44. package/dist/sampleGasPricePayloads/etherchainV2.d.ts.map +1 -0
  45. package/dist/sampleGasPricePayloads/ethers.d.mts.map +1 -0
  46. package/dist/sampleGasPricePayloads/ethers.d.ts +9 -0
  47. package/dist/sampleGasPricePayloads/ethers.d.ts.map +1 -0
  48. package/dist/sampleGasPricePayloads/etherscan.d.mts.map +1 -0
  49. package/dist/sampleGasPricePayloads/etherscan.d.ts +15 -0
  50. package/dist/sampleGasPricePayloads/etherscan.d.ts.map +1 -0
  51. package/dist/sampleGasPricePayloads/index.d.mts.map +1 -0
  52. package/dist/{esm/sampleGasPricePayloads/index.js → sampleGasPricePayloads/index.d.ts} +1 -1
  53. package/dist/sampleGasPricePayloads/index.d.ts.map +1 -0
  54. package/dist/samplePayload.d.mts.map +1 -0
  55. package/dist/samplePayload.d.ts +31 -0
  56. package/dist/samplePayload.d.ts.map +1 -0
  57. package/dist/sampleUniswapPayload.d.mts.map +1 -0
  58. package/dist/sampleUniswapPayload.d.ts +17 -0
  59. package/dist/sampleUniswapPayload.d.ts.map +1 -0
  60. package/dist/useAppThemeDecorator.d.mts.map +1 -0
  61. package/dist/useAppThemeDecorator.d.ts +4 -0
  62. package/dist/useAppThemeDecorator.d.ts.map +1 -0
  63. package/package.json +32 -24
  64. package/dist/cjs/DeprecateStory.js +0 -10
  65. package/dist/cjs/DeprecateStory.js.map +0 -1
  66. package/dist/cjs/WithMapboxSetup.js +0 -10
  67. package/dist/cjs/WithMapboxSetup.js.map +0 -1
  68. package/dist/cjs/WithRefDecorator.js +0 -18
  69. package/dist/cjs/WithRefDecorator.js.map +0 -1
  70. package/dist/cjs/defaultSeedPhrase.js +0 -6
  71. package/dist/cjs/defaultSeedPhrase.js.map +0 -1
  72. package/dist/cjs/index.js +0 -16
  73. package/dist/cjs/index.js.map +0 -1
  74. package/dist/cjs/sampleAddressHistory.js +0 -117
  75. package/dist/cjs/sampleAddressHistory.js.map +0 -1
  76. package/dist/cjs/sampleBlock.js +0 -93
  77. package/dist/cjs/sampleBlock.js.map +0 -1
  78. package/dist/cjs/sampleCoinGeckoPayload.js +0 -76
  79. package/dist/cjs/sampleCoinGeckoPayload.js.map +0 -1
  80. package/dist/cjs/sampleEthereumGasDivinerPayload.js +0 -27
  81. package/dist/cjs/sampleEthereumGasDivinerPayload.js.map +0 -1
  82. package/dist/cjs/sampleGasPricePayloads/blocknative.js +0 -95
  83. package/dist/cjs/sampleGasPricePayloads/blocknative.js.map +0 -1
  84. package/dist/cjs/sampleGasPricePayloads/ethGasStation.js +0 -22
  85. package/dist/cjs/sampleGasPricePayloads/ethGasStation.js.map +0 -1
  86. package/dist/cjs/sampleGasPricePayloads/etherchainV1.js +0 -14
  87. package/dist/cjs/sampleGasPricePayloads/etherchainV1.js.map +0 -1
  88. package/dist/cjs/sampleGasPricePayloads/etherchainV2.js +0 -17
  89. package/dist/cjs/sampleGasPricePayloads/etherchainV2.js.map +0 -1
  90. package/dist/cjs/sampleGasPricePayloads/ethers.js +0 -12
  91. package/dist/cjs/sampleGasPricePayloads/ethers.js.map +0 -1
  92. package/dist/cjs/sampleGasPricePayloads/etherscan.js +0 -18
  93. package/dist/cjs/sampleGasPricePayloads/etherscan.js.map +0 -1
  94. package/dist/cjs/sampleGasPricePayloads/index.js +0 -10
  95. package/dist/cjs/sampleGasPricePayloads/index.js.map +0 -1
  96. package/dist/cjs/samplePayload.js +0 -30
  97. package/dist/cjs/samplePayload.js.map +0 -1
  98. package/dist/cjs/sampleUniswapPayload.js +0 -197
  99. package/dist/cjs/sampleUniswapPayload.js.map +0 -1
  100. package/dist/cjs/useAppThemeDecorator.js +0 -15
  101. package/dist/cjs/useAppThemeDecorator.js.map +0 -1
  102. package/dist/esm/DeprecateStory.js +0 -6
  103. package/dist/esm/DeprecateStory.js.map +0 -1
  104. package/dist/esm/WithMapboxSetup.js +0 -6
  105. package/dist/esm/WithMapboxSetup.js.map +0 -1
  106. package/dist/esm/WithRefDecorator.js +0 -14
  107. package/dist/esm/WithRefDecorator.js.map +0 -1
  108. package/dist/esm/defaultSeedPhrase.js +0 -3
  109. package/dist/esm/defaultSeedPhrase.js.map +0 -1
  110. package/dist/esm/index.js.map +0 -1
  111. package/dist/esm/sampleAddressHistory.js +0 -114
  112. package/dist/esm/sampleAddressHistory.js.map +0 -1
  113. package/dist/esm/sampleBlock.js +0 -90
  114. package/dist/esm/sampleBlock.js.map +0 -1
  115. package/dist/esm/sampleCoinGeckoPayload.js +0 -73
  116. package/dist/esm/sampleCoinGeckoPayload.js.map +0 -1
  117. package/dist/esm/sampleEthereumGasDivinerPayload.js +0 -24
  118. package/dist/esm/sampleEthereumGasDivinerPayload.js.map +0 -1
  119. package/dist/esm/sampleGasPricePayloads/blocknative.js +0 -92
  120. package/dist/esm/sampleGasPricePayloads/blocknative.js.map +0 -1
  121. package/dist/esm/sampleGasPricePayloads/ethGasStation.js +0 -19
  122. package/dist/esm/sampleGasPricePayloads/ethGasStation.js.map +0 -1
  123. package/dist/esm/sampleGasPricePayloads/etherchainV1.js +0 -11
  124. package/dist/esm/sampleGasPricePayloads/etherchainV1.js.map +0 -1
  125. package/dist/esm/sampleGasPricePayloads/etherchainV2.js +0 -14
  126. package/dist/esm/sampleGasPricePayloads/etherchainV2.js.map +0 -1
  127. package/dist/esm/sampleGasPricePayloads/ethers.js +0 -9
  128. package/dist/esm/sampleGasPricePayloads/ethers.js.map +0 -1
  129. package/dist/esm/sampleGasPricePayloads/etherscan.js +0 -15
  130. package/dist/esm/sampleGasPricePayloads/etherscan.js.map +0 -1
  131. package/dist/esm/sampleGasPricePayloads/index.js.map +0 -1
  132. package/dist/esm/samplePayload.js +0 -30
  133. package/dist/esm/samplePayload.js.map +0 -1
  134. package/dist/esm/sampleUniswapPayload.js +0 -194
  135. package/dist/esm/sampleUniswapPayload.js.map +0 -1
  136. package/dist/esm/useAppThemeDecorator.js +0 -12
  137. package/dist/esm/useAppThemeDecorator.js.map +0 -1
  138. package/dist/types/DeprecateStory.d.ts.map +0 -1
  139. package/dist/types/WithMapboxSetup.d.ts.map +0 -1
  140. package/dist/types/WithRefDecorator.d.ts.map +0 -1
  141. package/dist/types/defaultSeedPhrase.d.ts.map +0 -1
  142. package/dist/types/index.d.ts.map +0 -1
  143. package/dist/types/sampleAddressHistory.d.ts.map +0 -1
  144. package/dist/types/sampleBlock.d.ts.map +0 -1
  145. package/dist/types/sampleCoinGeckoPayload.d.ts.map +0 -1
  146. package/dist/types/sampleEthereumGasDivinerPayload.d.ts.map +0 -1
  147. package/dist/types/sampleGasPricePayloads/blocknative.d.ts.map +0 -1
  148. package/dist/types/sampleGasPricePayloads/ethGasStation.d.ts.map +0 -1
  149. package/dist/types/sampleGasPricePayloads/etherchainV1.d.ts.map +0 -1
  150. package/dist/types/sampleGasPricePayloads/etherchainV2.d.ts.map +0 -1
  151. package/dist/types/sampleGasPricePayloads/ethers.d.ts.map +0 -1
  152. package/dist/types/sampleGasPricePayloads/etherscan.d.ts.map +0 -1
  153. package/dist/types/sampleGasPricePayloads/index.d.ts.map +0 -1
  154. package/dist/types/samplePayload.d.ts.map +0 -1
  155. package/dist/types/sampleUniswapPayload.d.ts.map +0 -1
  156. package/dist/types/useAppThemeDecorator.d.ts.map +0 -1
  157. /package/dist/{types/DeprecateStory.d.ts → DeprecateStory.d.mts} +0 -0
  158. /package/dist/{types/WithMapboxSetup.d.ts → WithMapboxSetup.d.mts} +0 -0
  159. /package/dist/{types/WithRefDecorator.d.ts → WithRefDecorator.d.mts} +0 -0
  160. /package/dist/{types/defaultSeedPhrase.d.ts → defaultSeedPhrase.d.mts} +0 -0
  161. /package/dist/{types/index.d.ts → index.d.mts} +0 -0
  162. /package/dist/{types/sampleAddressHistory.d.ts → sampleAddressHistory.d.mts} +0 -0
  163. /package/dist/{types/sampleBlock.d.ts → sampleBlock.d.mts} +0 -0
  164. /package/dist/{types/sampleCoinGeckoPayload.d.ts → sampleCoinGeckoPayload.d.mts} +0 -0
  165. /package/dist/{types/sampleEthereumGasDivinerPayload.d.ts → sampleEthereumGasDivinerPayload.d.mts} +0 -0
  166. /package/dist/{types/sampleGasPricePayloads/blocknative.d.ts → sampleGasPricePayloads/blocknative.d.mts} +0 -0
  167. /package/dist/{types/sampleGasPricePayloads/ethGasStation.d.ts → sampleGasPricePayloads/ethGasStation.d.mts} +0 -0
  168. /package/dist/{types/sampleGasPricePayloads/etherchainV1.d.ts → sampleGasPricePayloads/etherchainV1.d.mts} +0 -0
  169. /package/dist/{types/sampleGasPricePayloads/etherchainV2.d.ts → sampleGasPricePayloads/etherchainV2.d.mts} +0 -0
  170. /package/dist/{types/sampleGasPricePayloads/ethers.d.ts → sampleGasPricePayloads/ethers.d.mts} +0 -0
  171. /package/dist/{types/sampleGasPricePayloads/etherscan.d.ts → sampleGasPricePayloads/etherscan.d.mts} +0 -0
  172. /package/dist/{types/sampleGasPricePayloads/index.d.ts → sampleGasPricePayloads/index.d.mts} +0 -0
  173. /package/dist/{types/samplePayload.d.ts → samplePayload.d.mts} +0 -0
  174. /package/dist/{types/sampleUniswapPayload.d.ts → sampleUniswapPayload.d.mts} +0 -0
  175. /package/dist/{types/useAppThemeDecorator.d.ts → useAppThemeDecorator.d.mts} +0 -0
package/dist/index.mjs ADDED
@@ -0,0 +1,846 @@
1
+ // src/defaultSeedPhrase.ts
2
+ var DefaultSeedPhrase = "later puppy sound rebuild rebuild noise ozone amazing hope broccoli crystal grief";
3
+
4
+ // src/DeprecateStory.tsx
5
+ import { Alert, AlertTitle } from "@mui/material";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ var DeprecateStory = ({ message }) => {
8
+ return /* @__PURE__ */ jsxs(Alert, { severity: "error", sx: { marginBottom: "24px" }, children: [
9
+ /* @__PURE__ */ jsx(AlertTitle, { children: "Story has been Deprecated" }),
10
+ message
11
+ ] });
12
+ };
13
+
14
+ // src/sampleAddressHistory.ts
15
+ import { BoundWitnessSchema } from "@xyo-network/boundwitness-model";
16
+ var sampleAddressHistory = [
17
+ {
18
+ _signatures: ["186de1122640fc9d6577765e0b0f6822860994a0fbd1f80354963f89eebc3da01d0a68c36d2c6facab89bd777964c0d5b76103eb35b7900cc69bb1b90231117e"],
19
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
20
+ payload_hashes: ["97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d"],
21
+ payload_schemas: ["network.xyo.id"],
22
+ previous_hashes: ["8f914f739a96cb8baffaf156724240e4d51ab94cd4a374754c4e8f8281dc4191"],
23
+ schema: BoundWitnessSchema,
24
+ timestamp: 1666830950083
25
+ },
26
+ {
27
+ _signatures: ["35c4aa262694cdf6c72f473e4e2a4b164b35a5f228a6ed1c8345b8a6b7b0d192d6868fc038a09258f2b7016d04157640d7555109102e3c072556f8c4c002543f"],
28
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
29
+ payload_hashes: ["b01dd00648fafa4488ff461c812e80e5c657939da8c7d4bb056177e241554449"],
30
+ payload_schemas: ["network.xyo.id"],
31
+ previous_hashes: ["7456e3a653f6b3cac3ee0204cef37152eeb8cfeef3e20a0e177abf7ec36e0236"],
32
+ schema: BoundWitnessSchema,
33
+ timestamp: 1666830946487
34
+ },
35
+ {
36
+ _signatures: ["f273d8a8587ec2c6c9e91416eec66fdd441156f9ce2fb54e3e78e885aa792017e10ea36af44d9453422ffbafd58732a80387ab57c93ae0618b09aa4847f5e457"],
37
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
38
+ payload_hashes: ["03be02066ed31dc92ffd371a48026eac5770a8647160704b70e8dca8fc64cb0a"],
39
+ payload_schemas: ["network.xyo.id"],
40
+ previous_hashes: ["053d47a27012548dc0b3bb469e6598c7a48e81d3a552a790b455922cdb0750ba"],
41
+ schema: BoundWitnessSchema,
42
+ timestamp: 1666830867311
43
+ },
44
+ {
45
+ _signatures: ["79960dd5c590a1007bc526729a3ffee3153bb37ace383485ed298b3ba94939fffade54980a02c57119238bd9984d2860b822d29dbb36b04251fab83354b5a7cc"],
46
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
47
+ payload_hashes: ["5ebf3c990e08174bcf3987dc94ff0a4ec33b6ba806d3f3ec50e0966395fc1c76"],
48
+ payload_schemas: ["network.xyo.id"],
49
+ previous_hashes: ["9ae219b4d71a5c46321a21cdef08540fafe7e6d51440ba34699883bdaf15e61d"],
50
+ schema: BoundWitnessSchema,
51
+ timestamp: 1666830864908
52
+ },
53
+ {
54
+ _signatures: ["03830c7e9345a80390524543eb4ca097530bafa5d109b91a5a328399fcffe5af3a32b3a66658c045d013cf9b4fd598cafc9374bd0004d0c1bb2224ac812b855a"],
55
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
56
+ payload_hashes: ["ce405ae29915ea7b5f62a87c316bf4f46052c7bb0a36e67e621fedb1ec96fec5"],
57
+ payload_schemas: ["network.xyo.id"],
58
+ previous_hashes: ["322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972"],
59
+ schema: BoundWitnessSchema,
60
+ timestamp: 1666830860155
61
+ },
62
+ {
63
+ _signatures: ["2ddd7f65ad5ccdce83318f47040db7f45ef76142d2bb9c549241ac59619bf00a671f1ca5755d4e4b0e59fb8eb11c31e1d26c5d376eb57d8eeee7156469ae770b"],
64
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
65
+ payload_hashes: ["84efe9b19a752d3d997cfe5e7c336b1b090669fc0172f649825b2f24c8d82876"],
66
+ payload_schemas: ["network.xyo.id"],
67
+ previous_hashes: [null],
68
+ schema: BoundWitnessSchema,
69
+ timestamp: 1666830779473
70
+ }
71
+ ];
72
+ var randomizedSampleAddressHistory = [
73
+ {
74
+ _signatures: ["35c4aa262694cdf6c72f473e4e2a4b164b35a5f228a6ed1c8345b8a6b7b0d192d6868fc038a09258f2b7016d04157640d7555109102e3c072556f8c4c002543f"],
75
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
76
+ payload_hashes: ["b01dd00648fafa4488ff461c812e80e5c657939da8c7d4bb056177e241554449"],
77
+ payload_schemas: ["network.xyo.id"],
78
+ previous_hashes: ["7456e3a653f6b3cac3ee0204cef37152eeb8cfeef3e20a0e177abf7ec36e0236"],
79
+ schema: BoundWitnessSchema,
80
+ timestamp: 1666830946487
81
+ },
82
+ {
83
+ _signatures: ["79960dd5c590a1007bc526729a3ffee3153bb37ace383485ed298b3ba94939fffade54980a02c57119238bd9984d2860b822d29dbb36b04251fab83354b5a7cc"],
84
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
85
+ payload_hashes: ["5ebf3c990e08174bcf3987dc94ff0a4ec33b6ba806d3f3ec50e0966395fc1c76"],
86
+ payload_schemas: ["network.xyo.id"],
87
+ previous_hashes: ["9ae219b4d71a5c46321a21cdef08540fafe7e6d51440ba34699883bdaf15e61d"],
88
+ schema: BoundWitnessSchema,
89
+ timestamp: 1666830864908
90
+ },
91
+ {
92
+ _signatures: ["186de1122640fc9d6577765e0b0f6822860994a0fbd1f80354963f89eebc3da01d0a68c36d2c6facab89bd777964c0d5b76103eb35b7900cc69bb1b90231117e"],
93
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
94
+ payload_hashes: ["97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d"],
95
+ payload_schemas: ["network.xyo.id"],
96
+ previous_hashes: ["8f914f739a96cb8baffaf156724240e4d51ab94cd4a374754c4e8f8281dc4191"],
97
+ schema: BoundWitnessSchema,
98
+ timestamp: 1666830950083
99
+ },
100
+ {
101
+ _signatures: ["f273d8a8587ec2c6c9e91416eec66fdd441156f9ce2fb54e3e78e885aa792017e10ea36af44d9453422ffbafd58732a80387ab57c93ae0618b09aa4847f5e457"],
102
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
103
+ payload_hashes: ["03be02066ed31dc92ffd371a48026eac5770a8647160704b70e8dca8fc64cb0a"],
104
+ payload_schemas: ["network.xyo.id"],
105
+ previous_hashes: ["053d47a27012548dc0b3bb469e6598c7a48e81d3a552a790b455922cdb0750ba"],
106
+ schema: BoundWitnessSchema,
107
+ timestamp: 1666830867311
108
+ },
109
+ {
110
+ _signatures: ["2ddd7f65ad5ccdce83318f47040db7f45ef76142d2bb9c549241ac59619bf00a671f1ca5755d4e4b0e59fb8eb11c31e1d26c5d376eb57d8eeee7156469ae770b"],
111
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
112
+ payload_hashes: ["84efe9b19a752d3d997cfe5e7c336b1b090669fc0172f649825b2f24c8d82876"],
113
+ payload_schemas: ["network.xyo.id"],
114
+ previous_hashes: [null],
115
+ schema: BoundWitnessSchema,
116
+ timestamp: 1666830779473
117
+ },
118
+ {
119
+ _signatures: ["03830c7e9345a80390524543eb4ca097530bafa5d109b91a5a328399fcffe5af3a32b3a66658c045d013cf9b4fd598cafc9374bd0004d0c1bb2224ac812b855a"],
120
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
121
+ payload_hashes: ["ce405ae29915ea7b5f62a87c316bf4f46052c7bb0a36e67e621fedb1ec96fec5"],
122
+ payload_schemas: ["network.xyo.id"],
123
+ previous_hashes: ["322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972"],
124
+ schema: BoundWitnessSchema,
125
+ timestamp: 1666830860155
126
+ }
127
+ ];
128
+
129
+ // src/sampleBlock.ts
130
+ var sampleBlock = {
131
+ _signatures: ["d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f"],
132
+ addresses: ["9c6df83b84297985d3ccc1f721ba1c2e3608c751", "BF005E04EF223aa18c0fBFF6B41BbB0227c45A48"],
133
+ payload_hashes: [
134
+ "43df96261884ec99e0d7667120d036065c1f6a88dbb999f30d7c820dc9a37ee5",
135
+ "31b3a835ebad2b6f2d6cc16ec855b41f237116f52b515aac9a8f555fec05fa3e",
136
+ "97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d",
137
+ "be39d7b3b3383e65405236c0c314e4601eb5e98859266fef4e5caf22b16d5706",
138
+ "21ab79e5fae74ccc22d611a42732f9257e7a29a4da744e51ec99feda948e1115",
139
+ "bd5825ee3cefa969ded2dd1a35d9f28a9a0f312703e7f57bf8554ccda24f0b5f"
140
+ ],
141
+ payload_schemas: [
142
+ "network.xyo.location",
143
+ "network.xyo.id",
144
+ "network.xyo.id",
145
+ "network.xyo.payload",
146
+ "network.xyo.location.range.answer",
147
+ "network.xyo.location.range.query"
148
+ ],
149
+ previous_hashes: [null],
150
+ schema: "network.xyo.boundwitness"
151
+ };
152
+ var sampleBlockWithBoundWitnessPayload = {
153
+ _signatures: ["d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f"],
154
+ addresses: ["9c6df83b84297985d3ccc1f721ba1c2e3608c751", "BF005E04EF223aa18c0fBFF6B41BbB0227c45A48"],
155
+ payload_hashes: [
156
+ "43df96261884ec99e0d7667120d036065c1f6a88dbb999f30d7c820dc9a37ee5",
157
+ "31b3a835ebad2b6f2d6cc16ec855b41f237116f52b515aac9a8f555fec05fa3e",
158
+ "97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d",
159
+ "be39d7b3b3383e65405236c0c314e4601eb5e98859266fef4e5caf22b16d5706",
160
+ "21ab79e5fae74ccc22d611a42732f9257e7a29a4da744e51ec99feda948e1115",
161
+ "bd5825ee3cefa969ded2dd1a35d9f28a9a0f312703e7f57bf8554ccda24f0b5f"
162
+ ],
163
+ payload_schemas: [
164
+ "network.xyo.boundwitness",
165
+ "network.xyo.id",
166
+ "network.xyo.id",
167
+ "network.xyo.payload",
168
+ "network.xyo.location.range.answer",
169
+ "network.xyo.location.range.query"
170
+ ],
171
+ previous_hashes: [null],
172
+ schema: "network.xyo.boundwitness"
173
+ };
174
+ var sampleBlockWithPayloads = {
175
+ _archive: "temp",
176
+ _client: "js",
177
+ _hash: "b31230e7f3386a63acc64cb5f89e5353d5f9379b3bd3ae7385c47b2e600fcbb2",
178
+ _payloads: [
179
+ {
180
+ _archive: "temp",
181
+ _client: "js",
182
+ _hash: "ebeb156c9aa0db6e5bf9fe3bfcab5e7f2765235587667adc34c1e8966f899349",
183
+ _observeDuration: 48,
184
+ _timestamp: 1651520931057,
185
+ definition: {
186
+ $id: "'network.xyo.payload'",
187
+ $schema: "http://json-schema.org/draft-07/schema#",
188
+ properties: {
189
+ schema: {
190
+ type: "'string'"
191
+ }
192
+ },
193
+ required: ["'schema'"],
194
+ type: "'object'"
195
+ },
196
+ schema: "network.xyo.payload"
197
+ },
198
+ {
199
+ _archive: "temp",
200
+ _client: "js",
201
+ _hash: "930443bfebbdd0c9d14d8787def961ab41838fe9681f64acdad82c84e8803b59",
202
+ _observeDuration: 47,
203
+ _timestamp: 1651520931057,
204
+ salt: "117243fd-ee33-45af-b82c-d2cfeb1f85c9",
205
+ schema: "network.xyo.id"
206
+ }
207
+ ],
208
+ _signatures: ["0c742ec946ae28759e997dab4a7d3ca2fa1315e76b6a60c985bd6508b1f870f0ce914a927e15af6ed84f113be4b14ee1a432a896fc1294fc33fa1bb557f1ad6a"],
209
+ _timestamp: 1651520931051,
210
+ addresses: ["9e828f8ba1e8e212398b0fb8ef2a6167e91db24c"],
211
+ payload_hashes: [
212
+ "ebeb156c9aa0db6e5bf9fe3bfcab5e7f2765235587667adc34c1e8966f899349",
213
+ "930443bfebbdd0c9d14d8787def961ab41838fe9681f64acdad82c84e8803b59"
214
+ ],
215
+ payload_schemas: ["network.xyo.payload", "network.xyo.id"],
216
+ previous_hashes: [null],
217
+ schema: "network.xyo.boundwitness"
218
+ };
219
+
220
+ // src/sampleCoinGeckoPayload.ts
221
+ var sampleCoinGeckoPayload = {
222
+ assets: {
223
+ ada: {
224
+ btc: 2121e-8,
225
+ eth: 28602e-8,
226
+ eur: 0.455045,
227
+ usd: 0.451912
228
+ },
229
+ btc: {
230
+ btc: 1,
231
+ eth: 13.480925,
232
+ eur: 21444,
233
+ usd: 21297
234
+ },
235
+ busd: {
236
+ btc: 4691e-8,
237
+ eth: 63254e-8,
238
+ eur: 1.006,
239
+ usd: 0.999271
240
+ },
241
+ doge: {
242
+ btc: 315e-8,
243
+ eth: 4251e-8,
244
+ eur: 0.067639,
245
+ usd: 0.067173
246
+ },
247
+ dot: {
248
+ btc: 33957e-8,
249
+ eth: 457909e-8,
250
+ eur: 7.28,
251
+ usd: 7.23
252
+ },
253
+ eth: {
254
+ btc: 0.07416836,
255
+ eth: 1,
256
+ eur: 1590.95,
257
+ usd: 1580
258
+ },
259
+ sol: {
260
+ btc: 162396e-8,
261
+ eth: 0.02189873,
262
+ eur: 34.83,
263
+ usd: 34.59
264
+ },
265
+ usdc: {
266
+ btc: 4691e-8,
267
+ eth: 63259e-8,
268
+ eur: 1.006,
269
+ usd: 0.999341
270
+ },
271
+ usdt: {
272
+ btc: 4697e-8,
273
+ eth: 63328e-8,
274
+ eur: 1.008,
275
+ usd: 1.001
276
+ },
277
+ wbtc: {
278
+ btc: 0.99985708,
279
+ eth: 13.482839,
280
+ eur: 21447,
281
+ usd: 21300
282
+ },
283
+ xyo: {
284
+ btc: 406347e-12,
285
+ eth: 548e-8,
286
+ eur: 871642e-8,
287
+ usd: 86564e-7
288
+ }
289
+ },
290
+ schema: "network.xyo.crypto.market.coingecko",
291
+ timestamp: 1661188759757
292
+ };
293
+
294
+ // src/sampleEthereumGasDivinerPayload.ts
295
+ var sampleEthereumGasDivinerPayload = {
296
+ baseFee: 13.3646505198,
297
+ feePerGas: {
298
+ high: 17.3060964302,
299
+ low: 12.155000000000001,
300
+ medium: 12.5625,
301
+ veryHigh: 16.5462485885
302
+ },
303
+ priorityFeePerGas: {
304
+ high: 1.075,
305
+ low: 0.7466666666666667,
306
+ medium: 0.8566666666666668,
307
+ veryHigh: 1.2766666666666666
308
+ },
309
+ schema: "network.xyo.blockchain.ethereum.gas",
310
+ timestamp: 1669819808305
311
+ };
312
+ var sampleEthereumGasDivinerPayloadMissingFees = {
313
+ feePerGas: {},
314
+ priorityFeePerGas: {},
315
+ schema: "network.xyo.blockchain.ethereum.gas",
316
+ timestamp: 1659071465718
317
+ };
318
+
319
+ // src/sampleGasPricePayloads/blocknative.ts
320
+ var sampleBlocknativeGasPricePayload = {
321
+ blockPrices: [
322
+ {
323
+ baseFeePerGas: 26.32847478,
324
+ blockNumber: 16134624,
325
+ estimatedPrices: [
326
+ {
327
+ confidence: 99,
328
+ maxFeePerGas: 41.86,
329
+ maxPriorityFeePerGas: 1.18,
330
+ price: 27
331
+ },
332
+ {
333
+ confidence: 95,
334
+ maxFeePerGas: 41.54,
335
+ maxPriorityFeePerGas: 0.86,
336
+ price: 27
337
+ },
338
+ {
339
+ confidence: 90,
340
+ maxFeePerGas: 41.15,
341
+ maxPriorityFeePerGas: 0.47,
342
+ price: 26
343
+ },
344
+ {
345
+ confidence: 80,
346
+ maxFeePerGas: 41,
347
+ maxPriorityFeePerGas: 0.32,
348
+ price: 26
349
+ },
350
+ {
351
+ confidence: 70,
352
+ maxFeePerGas: 40.93,
353
+ maxPriorityFeePerGas: 0.25,
354
+ price: 26
355
+ }
356
+ ],
357
+ estimatedTransactionCount: 186
358
+ }
359
+ ],
360
+ currentBlockNumber: 16134623,
361
+ estimatedBaseFees: [
362
+ {
363
+ "pending+1": [
364
+ {
365
+ baseFee: 29.62,
366
+ confidence: 99
367
+ }
368
+ ]
369
+ },
370
+ {
371
+ "pending+2": [
372
+ {
373
+ baseFee: 33.33,
374
+ confidence: 99
375
+ }
376
+ ]
377
+ },
378
+ {
379
+ "pending+3": [
380
+ {
381
+ baseFee: 37.4,
382
+ confidence: 99
383
+ }
384
+ ]
385
+ },
386
+ {
387
+ "pending+4": [
388
+ {
389
+ baseFee: 39.26,
390
+ confidence: 99
391
+ }
392
+ ]
393
+ },
394
+ {
395
+ "pending+5": [
396
+ {
397
+ baseFee: 40.68,
398
+ confidence: 99
399
+ }
400
+ ]
401
+ }
402
+ ],
403
+ maxPrice: 64,
404
+ msSinceLastBlock: 9645,
405
+ network: "main",
406
+ schema: "network.xyo.blockchain.ethereum.gas.blocknative",
407
+ system: "ethereum",
408
+ timestamp: 1670437800246,
409
+ unit: "gwei"
410
+ };
411
+
412
+ // src/sampleGasPricePayloads/etherchainV1.ts
413
+ var sampleEtherchainV1GasPricePayload = {
414
+ currentBaseFee: 28.3,
415
+ fast: 0.9,
416
+ fastest: 1.5,
417
+ recommendedBaseFee: 57.5,
418
+ safeLow: 0.2,
419
+ schema: "network.xyo.blockchain.ethereum.gas.etherchain.v1",
420
+ standard: 0.4,
421
+ timestamp: 1670437800313
422
+ };
423
+
424
+ // src/sampleGasPricePayloads/etherchainV2.ts
425
+ var sampleEtherchainV2GasPricePayload = {
426
+ code: 200,
427
+ data: {
428
+ fast: 26423463713,
429
+ priceUSD: 1229.43,
430
+ rapid: 37143856713,
431
+ slow: 13e9,
432
+ standard: 21366997291,
433
+ timestamp: 1670437795342
434
+ },
435
+ schema: "network.xyo.blockchain.ethereum.gas.etherchain.v2",
436
+ timestamp: 1670437800338
437
+ };
438
+
439
+ // src/sampleGasPricePayloads/ethers.ts
440
+ var sampleEthersGasPricePayload = {
441
+ gasPrice: 26770943129,
442
+ lastBaseFeePerGas: 26494335502,
443
+ maxFeePerGas: 54488671004,
444
+ maxPriorityFeePerGas: 15e8,
445
+ schema: "network.xyo.blockchain.ethereum.gas.ethers",
446
+ timestamp: 1670437800345
447
+ };
448
+
449
+ // src/sampleGasPricePayloads/etherscan.ts
450
+ var sampleEtherscanGasPricePayload = {
451
+ message: "OK",
452
+ result: {
453
+ FastGasPrice: "35",
454
+ LastBlock: "16134573",
455
+ ProposeGasPrice: "35",
456
+ SafeGasPrice: "34",
457
+ gasUsedRatio: "0.4491729,0.440816333333333,0.480461266666667,0.373305033333333,0.322907566666667",
458
+ suggestBaseFee: "33.952097068"
459
+ },
460
+ schema: "network.xyo.blockchain.ethereum.gas.etherscan",
461
+ status: "1",
462
+ timestamp: 1670437200510
463
+ };
464
+
465
+ // src/sampleGasPricePayloads/ethGasStation.ts
466
+ var sampleEthGasStationGasPricePayload = {
467
+ baseFee: 37,
468
+ blockNumber: 16134572,
469
+ blockTime: 11.88,
470
+ gasPrice: {
471
+ fast: 84,
472
+ instant: 97,
473
+ standard: 53
474
+ },
475
+ nextBaseFee: 37,
476
+ priorityFee: {
477
+ fast: 5,
478
+ instant: 14,
479
+ standard: 2
480
+ },
481
+ schema: "network.xyo.blockchain.ethereum.gas.ethgasstation",
482
+ timestamp: 1670437200687
483
+ };
484
+
485
+ // src/samplePayload.ts
486
+ import { PayloadBuilder } from "@xyo-network/payload-builder";
487
+ var samplePayloadFromBuilder = {
488
+ ...new PayloadBuilder({ schema: "network.xyo.temp" }).fields({ test: "hello" }).build(),
489
+ _archive: "temp"
490
+ };
491
+ var sampleIdPayload = {
492
+ salt: "81b2372a-b4f0-4ab5-8642-c4e6de46a1cf",
493
+ schema: "network.xyo.id"
494
+ };
495
+ var sampleSystemInfoBrowserPayload = {
496
+ bowser: {
497
+ browser: {
498
+ name: "Chrome",
499
+ version: "104.0.0.0"
500
+ },
501
+ engine: {
502
+ name: "Blink"
503
+ },
504
+ os: {
505
+ name: "Windows",
506
+ version: "NT 10.0",
507
+ versionName: "10"
508
+ },
509
+ platform: {
510
+ type: "desktop"
511
+ }
512
+ },
513
+ schema: "network.xyo.system.info.browser"
514
+ };
515
+
516
+ // src/sampleUniswapPayload.ts
517
+ var sampleUniswapPayload = {
518
+ pairs: [
519
+ {
520
+ tokens: [
521
+ {
522
+ address: "0x55296f69f40Ea6d20E478533C15A6B08B654E758",
523
+ symbol: "xyo",
524
+ value: 688928e-11
525
+ },
526
+ {
527
+ address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
528
+ symbol: "weth",
529
+ value: 145153
530
+ }
531
+ ]
532
+ },
533
+ {
534
+ tokens: [
535
+ {
536
+ address: "0x55296f69f40Ea6d20E478533C15A6B08B654E758",
537
+ symbol: "xyo",
538
+ value: 0.0119766
539
+ },
540
+ {
541
+ address: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
542
+ symbol: "usdt",
543
+ value: 83.496
544
+ }
545
+ ]
546
+ },
547
+ {
548
+ tokens: [
549
+ {
550
+ address: "0x55296f69f40Ea6d20E478533C15A6B08B654E758",
551
+ symbol: "xyo",
552
+ value: 0.0119815
553
+ },
554
+ {
555
+ address: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
556
+ symbol: "dai",
557
+ value: 83.4619
558
+ }
559
+ ]
560
+ },
561
+ {
562
+ tokens: [
563
+ {
564
+ address: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
565
+ symbol: "wbtc",
566
+ value: 1985210
567
+ },
568
+ {
569
+ address: "0x55296f69f40Ea6d20E478533C15A6B08B654E758",
570
+ symbol: "xyo",
571
+ value: 503725e-12
572
+ }
573
+ ]
574
+ },
575
+ {
576
+ tokens: [
577
+ {
578
+ address: "0x514910771AF9Ca656af840dff83E8264EcF986CA",
579
+ symbol: "link",
580
+ value: 632.648
581
+ },
582
+ {
583
+ address: "0x55296f69f40Ea6d20E478533C15A6B08B654E758",
584
+ symbol: "xyo",
585
+ value: 158066e-8
586
+ }
587
+ ]
588
+ },
589
+ {
590
+ tokens: [
591
+ {
592
+ address: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
593
+ symbol: "wbtc",
594
+ value: 13.8399
595
+ },
596
+ {
597
+ address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
598
+ symbol: "weth",
599
+ value: 0.072255
600
+ }
601
+ ]
602
+ },
603
+ {
604
+ tokens: [
605
+ {
606
+ address: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
607
+ symbol: "dai",
608
+ value: 1.00004
609
+ },
610
+ {
611
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
612
+ symbol: "usdc",
613
+ value: 0.999964
614
+ }
615
+ ]
616
+ },
617
+ {
618
+ tokens: [
619
+ {
620
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
621
+ symbol: "usdc",
622
+ value: 575766e-9
623
+ },
624
+ {
625
+ address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
626
+ symbol: "weth",
627
+ value: 1736.82
628
+ }
629
+ ]
630
+ },
631
+ {
632
+ tokens: [
633
+ {
634
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
635
+ symbol: "usdc",
636
+ value: 577657e-9
637
+ },
638
+ {
639
+ address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
640
+ symbol: "weth",
641
+ value: 1731.13
642
+ }
643
+ ]
644
+ },
645
+ {
646
+ tokens: [
647
+ {
648
+ address: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
649
+ symbol: "dai",
650
+ value: 1.00002
651
+ },
652
+ {
653
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
654
+ symbol: "usdc",
655
+ value: 0.999983
656
+ }
657
+ ]
658
+ },
659
+ {
660
+ tokens: [
661
+ {
662
+ address: "0x853d955aCEf822Db058eb8505911ED77F175b99e",
663
+ symbol: "frax",
664
+ value: 0.999829
665
+ },
666
+ {
667
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
668
+ symbol: "usdc",
669
+ value: 1.00017
670
+ }
671
+ ]
672
+ },
673
+ {
674
+ tokens: [
675
+ {
676
+ address: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
677
+ symbol: "wbtc",
678
+ value: 23967.5
679
+ },
680
+ {
681
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
682
+ symbol: "usdc",
683
+ value: 417232e-10
684
+ }
685
+ ]
686
+ },
687
+ {
688
+ tokens: [
689
+ {
690
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
691
+ symbol: "usdc",
692
+ value: 0.999756
693
+ },
694
+ {
695
+ address: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
696
+ symbol: "usdt",
697
+ value: 1.00024
698
+ }
699
+ ]
700
+ }
701
+ ],
702
+ schema: "network.xyo.crypto.market.uniswap",
703
+ timestamp: 1659071465718
704
+ };
705
+ var payloadDataMissingPairs = {
706
+ pairs: [],
707
+ schema: "network.xyo.crypto.market.uniswap",
708
+ timestamp: 1659071465718
709
+ };
710
+
711
+ // src/useAppThemeDecorator.tsx
712
+ import { merge as merge2 } from "@xylabs/lodash";
713
+
714
+ // ../../../../node_modules/@xylabs/react-invertible-theme/dist/index.mjs
715
+ import { Experimental_CssVarsProvider as CssVarsProvider, responsiveFontSizes, useColorScheme } from "@mui/material";
716
+ import { useEffect } from "react";
717
+ import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
718
+ import { useColorScheme as useColorScheme2 } from "@mui/material";
719
+ import { useMemo } from "react";
720
+ import { createContext } from "react";
721
+ import { ScopedCssBaseline, ThemeProvider, createTheme, responsiveFontSizes as responsiveFontSizes2 } from "@mui/material";
722
+ import { cloneDeep, merge } from "@xylabs/lodash";
723
+ import { useContext } from "react";
724
+ import { jsx as jsx22 } from "react/jsx-runtime";
725
+ var InvertibleThemeContext = createContext({
726
+ options: {}
727
+ });
728
+ var useInvertibleThemeProvider = () => {
729
+ return useContext(InvertibleThemeContext);
730
+ };
731
+ var resolveThemeColors = (options) => {
732
+ const theme = createTheme(options);
733
+ return merge({}, cloneDeep(options), {
734
+ palette: {
735
+ text: {
736
+ primary: theme.palette?.getContrastText(theme.palette.primary.main),
737
+ secondary: theme.palette?.getContrastText(theme.palette.secondary.main)
738
+ }
739
+ }
740
+ });
741
+ };
742
+ var InvertibleThemeProvider = ({
743
+ options,
744
+ children,
745
+ dark,
746
+ resolve = false,
747
+ scoped = false,
748
+ invert = false,
749
+ noResponsiveFonts,
750
+ darkTheme,
751
+ darkOptions,
752
+ lightOptions
753
+ }) => {
754
+ const parentContext = useInvertibleThemeProvider();
755
+ const clonedOptions = cloneDeep(options ?? parentContext.options ?? {});
756
+ const clonedDarkOptions = cloneDeep(darkOptions ?? darkTheme ?? parentContext.darkOptions);
757
+ const clonedLightOptions = cloneDeep(lightOptions ?? parentContext.lightOptions);
758
+ clonedOptions.palette = clonedOptions.palette ?? {};
759
+ if (invert) {
760
+ clonedOptions.palette.mode = clonedOptions.palette.mode === "dark" ? "light" : "dark";
761
+ }
762
+ if (dark !== void 0) {
763
+ clonedOptions.palette.mode = dark ? "dark" : "light";
764
+ }
765
+ const modeOptions = clonedOptions.palette.mode === "dark" ? clonedDarkOptions : clonedLightOptions;
766
+ let themeOptions2 = merge({}, clonedOptions, modeOptions);
767
+ if (resolve) {
768
+ themeOptions2 = resolveThemeColors(themeOptions2);
769
+ }
770
+ const theme = noResponsiveFonts ? createTheme(themeOptions2) : responsiveFontSizes2(createTheme(themeOptions2));
771
+ const Provider = () => {
772
+ return /* @__PURE__ */ jsx22(InvertibleThemeContext.Provider, { value: { darkOptions: clonedDarkOptions, lightOptions: clonedLightOptions, options: clonedOptions }, children: /* @__PURE__ */ jsx22(ThemeProvider, { theme, children }) });
773
+ };
774
+ return scoped ? /* @__PURE__ */ jsx22(ScopedCssBaseline, { children: /* @__PURE__ */ jsx22(Provider, {}) }) : /* @__PURE__ */ jsx22(Provider, {});
775
+ };
776
+
777
+ // src/useAppThemeDecorator.tsx
778
+ import { appThemeOptions, partialAppDarkThemeOptions, partialAppLightThemeOptions, themeOptions } from "@xyo-network/react-theme";
779
+ import { useDarkMode } from "storybook-dark-mode";
780
+ import { jsx as jsx3 } from "react/jsx-runtime";
781
+ var useAppThemeDecorator = (Story, { args }) => {
782
+ const darkMode = useDarkMode();
783
+ const mergedThemeOptions = merge2(themeOptions, appThemeOptions);
784
+ return /* @__PURE__ */ jsx3(
785
+ InvertibleThemeProvider,
786
+ {
787
+ dark: darkMode,
788
+ options: mergedThemeOptions,
789
+ lightOptions: partialAppLightThemeOptions,
790
+ darkOptions: partialAppDarkThemeOptions,
791
+ children: /* @__PURE__ */ jsx3(Story, { ...args })
792
+ }
793
+ );
794
+ };
795
+
796
+ // src/WithMapboxSetup.tsx
797
+ import { MapboxAccessTokenProvider } from "@xyo-network/react-map";
798
+ import { jsx as jsx4 } from "react/jsx-runtime";
799
+ var WithMapboxSetup = (Story, context) => {
800
+ return /* @__PURE__ */ jsx4(MapboxAccessTokenProvider, { defaultAccessToken: process.env.STORYBOOK_MAPBOX_TOKEN, children: /* @__PURE__ */ jsx4(Story, { ...context }) });
801
+ };
802
+
803
+ // src/WithRefDecorator.tsx
804
+ import { Button } from "@mui/material";
805
+ import { useRef } from "react";
806
+ import { Fragment as Fragment2, jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
807
+ var WithRefDecorator = (Story, args) => {
808
+ const ref = useRef(null);
809
+ const onClick = () => {
810
+ if (ref.current) {
811
+ ref.current.style.color = "green";
812
+ }
813
+ };
814
+ args.args.ref = ref;
815
+ return /* @__PURE__ */ jsxs3(Fragment2, { children: [
816
+ /* @__PURE__ */ jsx5(Button, { onClick, variant: "contained", children: "Change to green" }),
817
+ /* @__PURE__ */ jsx5(Story, { ...args })
818
+ ] });
819
+ };
820
+ export {
821
+ DefaultSeedPhrase,
822
+ DeprecateStory,
823
+ WithMapboxSetup,
824
+ WithRefDecorator,
825
+ payloadDataMissingPairs,
826
+ randomizedSampleAddressHistory,
827
+ sampleAddressHistory,
828
+ sampleBlock,
829
+ sampleBlockWithBoundWitnessPayload,
830
+ sampleBlockWithPayloads,
831
+ sampleBlocknativeGasPricePayload,
832
+ sampleCoinGeckoPayload,
833
+ sampleEthGasStationGasPricePayload,
834
+ sampleEtherchainV1GasPricePayload,
835
+ sampleEtherchainV2GasPricePayload,
836
+ sampleEthereumGasDivinerPayload,
837
+ sampleEthereumGasDivinerPayloadMissingFees,
838
+ sampleEthersGasPricePayload,
839
+ sampleEtherscanGasPricePayload,
840
+ sampleIdPayload,
841
+ samplePayloadFromBuilder,
842
+ sampleSystemInfoBrowserPayload,
843
+ sampleUniswapPayload,
844
+ useAppThemeDecorator
845
+ };
846
+ //# sourceMappingURL=index.mjs.map