@xyo-network/os-react-runtime 7.2.1 → 7.3.1

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 (295) hide show
  1. package/dist/browser/helpers/BridgeActivityHelper.d.ts +1 -1
  2. package/dist/browser/helpers/BrowserLocator.d.ts +1 -1
  3. package/dist/browser/helpers/BrowserLocator.d.ts.map +1 -1
  4. package/dist/browser/helpers/widget/Caller.d.ts.map +1 -1
  5. package/dist/browser/img/backgrounds/index.d.ts +18 -18
  6. package/dist/browser/img/backgrounds/index.d.ts.map +1 -1
  7. package/dist/browser/index.mjs +210 -180
  8. package/dist/browser/index.mjs.map +1 -1
  9. package/dist/browser/modules/Dapp/Alert/RenderErrorWithSupportLink.d.ts.map +1 -1
  10. package/dist/browser/modules/Dapp/Button/StyledDappIconBuilder.d.ts +1 -1
  11. package/dist/browser/modules/Dapp/Button/lib/decomposeProps.d.ts +9 -1098
  12. package/dist/browser/modules/Dapp/Button/lib/decomposeProps.d.ts.map +1 -1
  13. package/dist/browser/modules/Dapp/Page/DappPathSwitcher.d.ts.map +1 -1
  14. package/dist/browser/modules/Dapp/modules/Window/LoadingFlexbox.d.ts.map +1 -1
  15. package/dist/browser/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.d.ts +1 -1
  16. package/dist/browser/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.d.ts.map +1 -1
  17. package/dist/browser/modules/Dapp/modules/Window/components/menu/BottomNavigation.d.ts.map +1 -1
  18. package/dist/browser/modules/Dapp/modules/Window/components/menu/Drawer.d.ts.map +1 -1
  19. package/dist/browser/modules/Dapp/modules/Window/components/menu/StyledListItems.d.ts +1 -1
  20. package/dist/browser/modules/Dapp/modules/Window/components/menu/img/index.d.ts +2 -2
  21. package/dist/browser/modules/Dapp/modules/Window/components/menu/img/index.d.ts.map +1 -1
  22. package/dist/browser/modules/Dapp/modules/Window/hooks/menu/useDappMenu.d.ts.map +1 -1
  23. package/dist/browser/modules/Dapp/modules/Window/hooks/menu/useDappMenuCaller.d.ts +2 -2
  24. package/dist/browser/modules/Dapp/modules/Window/hooks/menu/useDappMenuCaller.d.ts.map +1 -1
  25. package/dist/browser/modules/Dapp/modules/access-interface/components/Dialog.d.ts.map +1 -1
  26. package/dist/browser/modules/LoadingOsLogo/img/index.d.ts +1 -1
  27. package/dist/browser/modules/LoadingOsLogo/img/index.d.ts.map +1 -1
  28. package/dist/browser/modules/XyOsUi/lib/XyOsUi.d.ts.map +1 -1
  29. package/dist/browser/modules/bios/hooks/useKernel.d.ts +1 -1
  30. package/dist/browser/modules/bios/hooks/useKernel.d.ts.map +1 -1
  31. package/dist/browser/modules/dapps/accounts/components/AccountCard.d.ts +1 -1
  32. package/dist/browser/modules/dapps/accounts/components/AccountCard.d.ts.map +1 -1
  33. package/dist/browser/modules/dapps/accounts/models/CreditCardInput.d.ts +2 -2
  34. package/dist/browser/modules/dapps/accounts/models/CreditCardInput.d.ts.map +1 -1
  35. package/dist/browser/modules/dapps/table/head/components/StyledTableRowHeader.d.ts +1 -1
  36. package/dist/browser/modules/intent/useDappIntentListener2.d.ts.map +1 -1
  37. package/dist/browser/modules/intent/useNavigateIntent.d.ts +2 -2
  38. package/dist/browser/modules/intent/useNavigateIntent.d.ts.map +1 -1
  39. package/dist/browser/modules/network/components/LoadingIndicator.d.ts.map +1 -1
  40. package/dist/browser/modules/os/hooks/useDappRegistrationResults.d.ts.map +1 -1
  41. package/dist/browser/modules/os/hooks/useDappRegistry.d.ts.map +1 -1
  42. package/dist/browser/modules/os/hooks/useDappSeedPhraseRepository.d.ts +1 -1
  43. package/dist/browser/modules/os/hooks/useDappSeedPhraseRepository.d.ts.map +1 -1
  44. package/dist/browser/modules/resource/ResourceHooks.d.ts.map +1 -1
  45. package/dist/browser/modules/resource/useSyncExternalPayloadStore.d.ts.map +1 -1
  46. package/dist/browser/modules/stack/useStackReady.d.ts.map +1 -1
  47. package/dist/browser/modules/widgets/Types/Stat/Subtitle.d.ts +1 -1
  48. package/dist/browser/modules/widgets/Types/Stat/Unit.d.ts +1 -1
  49. package/dist/browser/modules/widgets/Types/Stat/Value.d.ts +1 -1
  50. package/dist/browser/modules/widgets/Types/Tables/BooleanTable.d.ts +4 -4
  51. package/package.json +304 -69
  52. package/dist/browser/modules/Dapp/modules/Window/components/menu/stories/DefaultData.d.ts +0 -10
  53. package/dist/browser/modules/Dapp/modules/Window/components/menu/stories/DefaultData.d.ts.map +0 -1
  54. package/dist/browser/modules/Dapp/modules/Window/components/menu/stories/Drawer.stories.d.ts +0 -6
  55. package/dist/browser/modules/Dapp/modules/Window/components/menu/stories/Drawer.stories.d.ts.map +0 -1
  56. package/src/helpers/BridgeActivityHelper.ts +0 -39
  57. package/src/helpers/BrowserLocator.ts +0 -19
  58. package/src/helpers/NodePalettes.ts +0 -84
  59. package/src/helpers/index.ts +0 -5
  60. package/src/helpers/monitor/XyOsBrowserMonitor.ts +0 -14
  61. package/src/helpers/monitor/index.ts +0 -1
  62. package/src/helpers/widget/Caller.tsx +0 -125
  63. package/src/helpers/widget/index.ts +0 -1
  64. package/src/img/backgrounds/candy-dark@3x.webp +0 -0
  65. package/src/img/backgrounds/candy-light@3x.webp +0 -0
  66. package/src/img/backgrounds/candyApple-dark@3x.webp +0 -0
  67. package/src/img/backgrounds/candyApple-light@3x.webp +0 -0
  68. package/src/img/backgrounds/images.d.ts +0 -5
  69. package/src/img/backgrounds/index.ts +0 -18
  70. package/src/img/backgrounds/moss-dark@3x.webp +0 -0
  71. package/src/img/backgrounds/moss-light@3x.webp +0 -0
  72. package/src/img/backgrounds/ocean-dark@3x.webp +0 -0
  73. package/src/img/backgrounds/ocean-light@3x.webp +0 -0
  74. package/src/img/backgrounds/peachYogurt-dark@3x.webp +0 -0
  75. package/src/img/backgrounds/peachYogurt-light@3x.webp +0 -0
  76. package/src/img/backgrounds/sherbet-dark@3x.webp +0 -0
  77. package/src/img/backgrounds/sherbet-light@3x.webp +0 -0
  78. package/src/img/backgrounds/spring-dark@3x.webp +0 -0
  79. package/src/img/backgrounds/spring-light@3x.webp +0 -0
  80. package/src/img/backgrounds/sunset-dark@3x.webp +0 -0
  81. package/src/img/backgrounds/sunset-light@3x.webp +0 -0
  82. package/src/img/backgrounds/xyo-dark@3x.webp +0 -0
  83. package/src/img/backgrounds/xyo-light@3x.webp +0 -0
  84. package/src/img/index.ts +0 -1
  85. package/src/index.ts +0 -5
  86. package/src/interfaces/StackReady.ts +0 -6
  87. package/src/interfaces/index.ts +0 -1
  88. package/src/modules/Dapp/Alert/RenderErrorWithSupportLink.tsx +0 -50
  89. package/src/modules/Dapp/Alert/index.ts +0 -1
  90. package/src/modules/Dapp/Button/IconEx.tsx +0 -96
  91. package/src/modules/Dapp/Button/LaunchFrame.tsx +0 -77
  92. package/src/modules/Dapp/Button/StyledComponents.tsx +0 -55
  93. package/src/modules/Dapp/Button/StyledDappIconBuilder.tsx +0 -17
  94. package/src/modules/Dapp/Button/hooks/index.ts +0 -1
  95. package/src/modules/Dapp/Button/hooks/useLaunchPoint.tsx +0 -31
  96. package/src/modules/Dapp/Button/index.ts +0 -4
  97. package/src/modules/Dapp/Button/lib/decomposeProps.tsx +0 -15
  98. package/src/modules/Dapp/Button/lib/index.ts +0 -1
  99. package/src/modules/Dapp/Container.tsx +0 -63
  100. package/src/modules/Dapp/ContainerFlexbox.tsx +0 -30
  101. package/src/modules/Dapp/Debug/Dialog.tsx +0 -54
  102. package/src/modules/Dapp/Debug/index.ts +0 -1
  103. package/src/modules/Dapp/EnterAnimation.tsx +0 -54
  104. package/src/modules/Dapp/Page/DappPage.tsx +0 -115
  105. package/src/modules/Dapp/Page/DappPathSwitcher.tsx +0 -58
  106. package/src/modules/Dapp/Page/DividerChip.tsx +0 -31
  107. package/src/modules/Dapp/Page/Row.tsx +0 -69
  108. package/src/modules/Dapp/Page/index.ts +0 -3
  109. package/src/modules/Dapp/RenderHtml.tsx +0 -12
  110. package/src/modules/Dapp/index.ts +0 -8
  111. package/src/modules/Dapp/lib/DappState.ts +0 -5
  112. package/src/modules/Dapp/lib/DefaultIconSize.ts +0 -1
  113. package/src/modules/Dapp/lib/deriveDappState.ts +0 -16
  114. package/src/modules/Dapp/lib/index.ts +0 -3
  115. package/src/modules/Dapp/modules/Window/AppBar.tsx +0 -115
  116. package/src/modules/Dapp/modules/Window/Chrome.tsx +0 -79
  117. package/src/modules/Dapp/modules/Window/DappWindow.tsx +0 -39
  118. package/src/modules/Dapp/modules/Window/LoadingFlexbox.tsx +0 -99
  119. package/src/modules/Dapp/modules/Window/MetaTags.tsx +0 -27
  120. package/src/modules/Dapp/modules/Window/NodeManifest.tsx +0 -16
  121. package/src/modules/Dapp/modules/Window/Rendered.tsx +0 -101
  122. package/src/modules/Dapp/modules/Window/Trail.tsx +0 -33
  123. package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.tsx +0 -82
  124. package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/DeveloperLinkSection.tsx +0 -27
  125. package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/InstallButtonSection.tsx +0 -34
  126. package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/SummarySection.tsx +0 -73
  127. package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/index.ts +0 -1
  128. package/src/modules/Dapp/modules/Window/components/index.ts +0 -2
  129. package/src/modules/Dapp/modules/Window/components/menu/BottomMenuArea.tsx +0 -130
  130. package/src/modules/Dapp/modules/Window/components/menu/BottomNavigation.tsx +0 -66
  131. package/src/modules/Dapp/modules/Window/components/menu/Drawer.tsx +0 -160
  132. package/src/modules/Dapp/modules/Window/components/menu/SocialData.tsx +0 -68
  133. package/src/modules/Dapp/modules/Window/components/menu/StyledListItems.tsx +0 -36
  134. package/src/modules/Dapp/modules/Window/components/menu/img/index.ts +0 -2
  135. package/src/modules/Dapp/modules/Window/components/menu/img/xyoOS-Icon-Black.svg +0 -1
  136. package/src/modules/Dapp/modules/Window/components/menu/img/xyoOS-Icon-White.svg +0 -1
  137. package/src/modules/Dapp/modules/Window/components/menu/index.ts +0 -3
  138. package/src/modules/Dapp/modules/Window/components/menu/stories/DefaultData.tsx +0 -118
  139. package/src/modules/Dapp/modules/Window/components/menu/stories/Drawer.stories.tsx +0 -36
  140. package/src/modules/Dapp/modules/Window/components/menu/stories/default.manifest.json +0 -20
  141. package/src/modules/Dapp/modules/Window/hooks/index.ts +0 -8
  142. package/src/modules/Dapp/modules/Window/hooks/lib/DappPathHelpers.ts +0 -34
  143. package/src/modules/Dapp/modules/Window/hooks/lib/detectCustomer.ts +0 -21
  144. package/src/modules/Dapp/modules/Window/hooks/lib/index.ts +0 -2
  145. package/src/modules/Dapp/modules/Window/hooks/menu/index.ts +0 -5
  146. package/src/modules/Dapp/modules/Window/hooks/menu/useAddDappMenuItems.ts +0 -25
  147. package/src/modules/Dapp/modules/Window/hooks/menu/useBuildDappMenuResource.ts +0 -39
  148. package/src/modules/Dapp/modules/Window/hooks/menu/useDappMenu.ts +0 -71
  149. package/src/modules/Dapp/modules/Window/hooks/menu/useDappMenuCaller.ts +0 -22
  150. package/src/modules/Dapp/modules/Window/hooks/menu/useDappMenuDependencies.ts +0 -16
  151. package/src/modules/Dapp/modules/Window/hooks/route/helpers/RoutingNodes.md +0 -7
  152. package/src/modules/Dapp/modules/Window/hooks/route/helpers/index.ts +0 -4
  153. package/src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappInjectableParamsFromRoute.tsx +0 -55
  154. package/src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappIntentRequest.tsx +0 -68
  155. package/src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappPathFromRoute.tsx +0 -75
  156. package/src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappStateFromRoute.tsx +0 -51
  157. package/src/modules/Dapp/modules/Window/hooks/route/index.ts +0 -1
  158. package/src/modules/Dapp/modules/Window/hooks/useDebugClick.ts +0 -61
  159. package/src/modules/Dapp/modules/Window/hooks/useDecomposeDapp.tsx +0 -21
  160. package/src/modules/Dapp/modules/Window/hooks/useExposedNode.ts +0 -6
  161. package/src/modules/Dapp/modules/Window/hooks/useSkipLoadingScreen.tsx +0 -17
  162. package/src/modules/Dapp/modules/Window/hooks/useSyncOsRegisteredAccessInterfaces.tsx +0 -36
  163. package/src/modules/Dapp/modules/Window/index.ts +0 -7
  164. package/src/modules/Dapp/modules/Window/types/DappMenuProperties.ts +0 -9
  165. package/src/modules/Dapp/modules/Window/types/DappWindowProps.ts +0 -14
  166. package/src/modules/Dapp/modules/Window/types/index.ts +0 -2
  167. package/src/modules/Dapp/modules/access-interface/components/Dialog.tsx +0 -132
  168. package/src/modules/Dapp/modules/access-interface/components/Flexbox.tsx +0 -29
  169. package/src/modules/Dapp/modules/access-interface/components/index.ts +0 -2
  170. package/src/modules/Dapp/modules/access-interface/hooks/index.ts +0 -1
  171. package/src/modules/Dapp/modules/access-interface/hooks/useDialogState.tsx +0 -28
  172. package/src/modules/Dapp/modules/access-interface/index.ts +0 -2
  173. package/src/modules/Dapp/modules/index.ts +0 -2
  174. package/src/modules/Dapp/useDappCaller.ts +0 -16
  175. package/src/modules/LoadingOsLogo/LoadingOsLogo.tsx +0 -54
  176. package/src/modules/LoadingOsLogo/img/index.ts +0 -1
  177. package/src/modules/LoadingOsLogo/img/xyoOS-Icon.svg +0 -1
  178. package/src/modules/LoadingOsLogo/index.ts +0 -1
  179. package/src/modules/XyOsUi/contexts/XyOsUiContext.ts +0 -10
  180. package/src/modules/XyOsUi/contexts/index.ts +0 -1
  181. package/src/modules/XyOsUi/index.ts +0 -2
  182. package/src/modules/XyOsUi/lib/XyOsUi.ts +0 -51
  183. package/src/modules/XyOsUi/lib/index.ts +0 -1
  184. package/src/modules/access-requests/NameServiceRegistrationHooks.ts +0 -36
  185. package/src/modules/access-requests/index.ts +0 -2
  186. package/src/modules/access-requests/useBuildDappAccessRequestResource.ts +0 -38
  187. package/src/modules/bios/hooks/index.ts +0 -2
  188. package/src/modules/bios/hooks/useBios.ts +0 -25
  189. package/src/modules/bios/hooks/useKernel.ts +0 -36
  190. package/src/modules/bios/index.ts +0 -1
  191. package/src/modules/dapps/accounts/components/AccountCard.tsx +0 -57
  192. package/src/modules/dapps/accounts/components/AnimatedComponents/GenericAnimations/ShiftAnimation.tsx +0 -116
  193. package/src/modules/dapps/accounts/components/AnimatedComponents/GenericAnimations/index.ts +0 -1
  194. package/src/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPoint.tsx +0 -23
  195. package/src/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPointList.tsx +0 -24
  196. package/src/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/index.ts +0 -2
  197. package/src/modules/dapps/accounts/components/AnimatedComponents/index.ts +0 -2
  198. package/src/modules/dapps/accounts/components/InputFields/CoinbaseEmail.tsx +0 -41
  199. package/src/modules/dapps/accounts/components/InputFields/PrimaryCryptowallet.tsx +0 -42
  200. package/src/modules/dapps/accounts/components/InputFields/SecondaryCryptowallet.tsx +0 -42
  201. package/src/modules/dapps/accounts/components/InputFields/index.ts +0 -3
  202. package/src/modules/dapps/accounts/components/PaymentMethods.tsx +0 -51
  203. package/src/modules/dapps/accounts/components/index.ts +0 -3
  204. package/src/modules/dapps/accounts/hooks/index.ts +0 -1
  205. package/src/modules/dapps/accounts/hooks/useAccountArchivist.ts +0 -5
  206. package/src/modules/dapps/accounts/icon/Icon.tsx +0 -49
  207. package/src/modules/dapps/accounts/icon/custom-accounts-icon.svg +0 -1
  208. package/src/modules/dapps/accounts/icon/index.ts +0 -1
  209. package/src/modules/dapps/accounts/index.ts +0 -3
  210. package/src/modules/dapps/accounts/models/CreditCardInput.ts +0 -20
  211. package/src/modules/dapps/accounts/models/index.ts +0 -1
  212. package/src/modules/dapps/index.ts +0 -3
  213. package/src/modules/dapps/name-service/DomainIcon.tsx +0 -12
  214. package/src/modules/dapps/name-service/index.ts +0 -1
  215. package/src/modules/dapps/table/NextIteratorFlexbox.tsx +0 -33
  216. package/src/modules/dapps/table/head/Payload.ts +0 -11
  217. package/src/modules/dapps/table/head/Schema.ts +0 -4
  218. package/src/modules/dapps/table/head/components/Head.tsx +0 -47
  219. package/src/modules/dapps/table/head/components/StyledTableRowHeader.tsx +0 -6
  220. package/src/modules/dapps/table/head/components/index.ts +0 -1
  221. package/src/modules/dapps/table/head/hooks/index.ts +0 -1
  222. package/src/modules/dapps/table/head/hooks/useVisibleColumns.tsx +0 -15
  223. package/src/modules/dapps/table/head/index.ts +0 -4
  224. package/src/modules/dapps/table/index.ts +0 -2
  225. package/src/modules/index.ts +0 -12
  226. package/src/modules/intent/DappIntentResourceHooks.ts +0 -35
  227. package/src/modules/intent/index.ts +0 -7
  228. package/src/modules/intent/useClearIntents.ts +0 -14
  229. package/src/modules/intent/useDappIntentCaller.ts +0 -17
  230. package/src/modules/intent/useDappIntentListener.ts +0 -53
  231. package/src/modules/intent/useDappIntentListener2.ts +0 -48
  232. package/src/modules/intent/useNavigateIntent.ts +0 -51
  233. package/src/modules/intent/useSendDappIntent.ts +0 -38
  234. package/src/modules/network/components/LoadingIndicator.tsx +0 -51
  235. package/src/modules/network/components/NetworkButton.tsx +0 -27
  236. package/src/modules/network/components/NetworkReady.tsx +0 -31
  237. package/src/modules/network/components/StyledLoadingIndicator.tsx +0 -49
  238. package/src/modules/network/components/index.ts +0 -3
  239. package/src/modules/network/hooks/index.ts +0 -2
  240. package/src/modules/network/hooks/lib/NetworkState.ts +0 -8
  241. package/src/modules/network/hooks/lib/createNetworkState.ts +0 -20
  242. package/src/modules/network/hooks/lib/index.ts +0 -2
  243. package/src/modules/network/hooks/useOsNetwork.tsx +0 -17
  244. package/src/modules/network/hooks/useXyoPublicNetwork.tsx +0 -17
  245. package/src/modules/network/index.ts +0 -2
  246. package/src/modules/os/hooks/index.ts +0 -8
  247. package/src/modules/os/hooks/useDappContextCreator.ts +0 -89
  248. package/src/modules/os/hooks/useDappRegistrationResults.ts +0 -30
  249. package/src/modules/os/hooks/useDappRegistry.ts +0 -19
  250. package/src/modules/os/hooks/useDappSeedPhraseRepository.ts +0 -19
  251. package/src/modules/os/hooks/useOsSettingsCaller.ts +0 -19
  252. package/src/modules/os/hooks/usePhraseFile.ts +0 -33
  253. package/src/modules/os/hooks/useTabs.ts +0 -14
  254. package/src/modules/os/hooks/useWidgetDapps.ts +0 -23
  255. package/src/modules/os/index.ts +0 -1
  256. package/src/modules/resource/ResourceHooks.ts +0 -45
  257. package/src/modules/resource/index.ts +0 -3
  258. package/src/modules/resource/useCleanup.ts +0 -10
  259. package/src/modules/resource/useSyncExternalPayloadStore.ts +0 -37
  260. package/src/modules/stack/index.ts +0 -1
  261. package/src/modules/stack/useStackReady.ts +0 -48
  262. package/src/modules/widgets/StackOfWidgets.tsx +0 -149
  263. package/src/modules/widgets/Types/BarGraph/HorizontalBarGraph.tsx +0 -58
  264. package/src/modules/widgets/Types/BarGraph/StyledLinearProgress.tsx +0 -12
  265. package/src/modules/widgets/Types/BarGraph/index.ts +0 -2
  266. package/src/modules/widgets/Types/DataColumns/TwoColFourStat.tsx +0 -34
  267. package/src/modules/widgets/Types/DataColumns/TwoColTwoStat.tsx +0 -39
  268. package/src/modules/widgets/Types/DataColumns/index.ts +0 -1
  269. package/src/modules/widgets/Types/Examples/BarGraph.tsx +0 -10
  270. package/src/modules/widgets/Types/Examples/BooleanTable.tsx +0 -27
  271. package/src/modules/widgets/Types/Examples/TwoColTwoStat.tsx +0 -27
  272. package/src/modules/widgets/Types/Examples/index.ts +0 -3
  273. package/src/modules/widgets/Types/Stat/Insight.ts +0 -9
  274. package/src/modules/widgets/Types/Stat/InsightStatProps.ts +0 -7
  275. package/src/modules/widgets/Types/Stat/Stat.tsx +0 -41
  276. package/src/modules/widgets/Types/Stat/Subtitle.tsx +0 -14
  277. package/src/modules/widgets/Types/Stat/Unit.tsx +0 -13
  278. package/src/modules/widgets/Types/Stat/Value.tsx +0 -16
  279. package/src/modules/widgets/Types/Stat/index.ts +0 -3
  280. package/src/modules/widgets/Types/Tables/BooleanTable.tsx +0 -88
  281. package/src/modules/widgets/Types/Tables/index.ts +0 -1
  282. package/src/modules/widgets/Types/index.ts +0 -4
  283. package/src/modules/widgets/WidgetCard.tsx +0 -111
  284. package/src/modules/widgets/WidgetCardExamples.tsx +0 -31
  285. package/src/modules/widgets/index.ts +0 -2
  286. package/src/settings/Theme/ThemeCssVars.ts +0 -228
  287. package/src/settings/Theme/ThemeProvider.tsx +0 -20
  288. package/src/settings/Theme/index.ts +0 -1
  289. package/src/settings/index.ts +0 -1
  290. package/src/types/global.d.ts +0 -11
  291. package/src/types/images.d.ts +0 -4
  292. package/src/utils/DappInstallTypeFilters.ts +0 -27
  293. package/src/utils/getApiDomain.ts +0 -14
  294. package/src/utils/index.ts +0 -3
  295. package/src/utils/useOnWindowResize.tsx +0 -18
@@ -1,19 +0,0 @@
1
- import { DappSeedPhraseRepository } from '@xyo-network/os-runtime'
2
- import { useMemo } from 'react'
3
-
4
- import { useXyOsUiContext } from '../../XyOsUi/index.ts'
5
-
6
- let _dappWalletRepository: DappSeedPhraseRepository
7
-
8
- export const useDappSeedPhraseRepository = (allowedNames: string[]) => {
9
- const context = useXyOsUiContext()
10
-
11
- const dappWalletRepository = useMemo(() => {
12
- if (_dappWalletRepository === undefined && context) {
13
- _dappWalletRepository = new DappSeedPhraseRepository(context, allowedNames)
14
- }
15
- return _dappWalletRepository
16
- }, [context, allowedNames])
17
-
18
- return dappWalletRepository
19
- }
@@ -1,19 +0,0 @@
1
- import { assertEx } from '@xylabs/sdk-js'
2
- import type { XyOsContext } from '@xyo-network/os-model'
3
- import { OsSettingsCaller, OsSettingsReadyEvent } from '@xyo-network/os-runtime'
4
- import { useMemo } from 'react'
5
-
6
- import { useStackReady } from '../../stack/index.ts'
7
- import { useXyOsUiContext } from '../../XyOsUi/index.ts'
8
-
9
- export const useOsSettingsCaller = (context?: XyOsContext | null) => {
10
- const providedContext = useXyOsUiContext()
11
- const { ready } = useStackReady(OsSettingsReadyEvent, 'osSettingsStack', providedContext)
12
-
13
- return useMemo(() => {
14
- if (providedContext || context || ready) {
15
- const derivedNode = assertEx(context ?? providedContext, () => 'no node was found in context or passed as argument')
16
- return new OsSettingsCaller(derivedNode)
17
- }
18
- }, [context, providedContext])
19
- }
@@ -1,33 +0,0 @@
1
- import { usePromise } from '@xylabs/react-promise'
2
- import { buildUserWalletSeedPhrasePayload } from '@xyo-network/os-runtime'
3
- import { useMemo } from 'react'
4
-
5
- export const usePhraseFile = (phrase?: string) => {
6
- const [payloadAndRootHash] = usePromise(async () => (phrase ? await buildUserWalletSeedPhrasePayload(phrase) : undefined), [phrase])
7
-
8
- const filename = useMemo(() => `xyo-phrase-${payloadAndRootHash?.rootHash}.json`, [payloadAndRootHash?.rootHash])
9
-
10
- const { phraseFile, phraseFileError } = useMemo<{
11
- phraseFile?: string
12
- phraseFileError?: Error
13
- }>(() => {
14
- const payload = payloadAndRootHash?.payload
15
- if (payload) {
16
- try {
17
- const data = new Blob([JSON.stringify(payload, null, 2)], { type: 'text/plain' })
18
- return { phraseFile: globalThis.URL.createObjectURL(data) }
19
- } catch (e) {
20
- return { phraseFileError: e as Error }
21
- }
22
- } else {
23
- return {}
24
- }
25
- }, [payloadAndRootHash])
26
-
27
- return {
28
- filename,
29
- payload: payloadAndRootHash?.payload,
30
- phraseFile,
31
- phraseFileError,
32
- }
33
- }
@@ -1,14 +0,0 @@
1
- import type { Dispatch } from 'react'
2
- import { useLocation, useNavigate } from 'react-router-dom'
3
-
4
- export const useTabs = (): [string, Dispatch<string>] => {
5
- const location = useLocation()
6
- const navigate = useNavigate()
7
-
8
- const rootFolder = location.pathname.split('/')[1]
9
- const tab = rootFolder?.length > 0 ? rootFolder : 'node'
10
- const setTab = (tab: string) => {
11
- void navigate(`/${tab}`)
12
- }
13
- return [tab, setTab]
14
- }
@@ -1,23 +0,0 @@
1
- import type { UsePromiseState } from '@xylabs/react-promise'
2
- import { usePromise } from '@xylabs/react-promise'
3
- import type { WidgetTrayLayout } from '@xyo-network/os-model'
4
- import type { RegisteredReactDappSet } from '@xyo-network/os-react-model'
5
- import type { JSX } from 'react'
6
-
7
- import { WidgetCaller } from '../../../helpers/index.ts'
8
- import { useXyOsUiContext } from '../../XyOsUi/index.ts'
9
-
10
- type WidgetResults = [(JSX.Element | undefined)[] | undefined, (Error | undefined)[]] | undefined
11
-
12
- export const useWidgetDapps = (
13
- registeredDapps?: RegisteredReactDappSet[],
14
- widgetTrayLayout?: WidgetTrayLayout,
15
- ): [WidgetResults, Error | undefined, UsePromiseState | undefined] => {
16
- const context = useXyOsUiContext()
17
- return usePromise(async () => {
18
- if (registeredDapps && registeredDapps.length > 0 && context && widgetTrayLayout) {
19
- const caller = new WidgetCaller(context, registeredDapps, widgetTrayLayout)
20
- return await caller.buildWidgetComponents()
21
- }
22
- }, [context, registeredDapps, widgetTrayLayout])
23
- }
@@ -1 +0,0 @@
1
- export * from './hooks/index.ts'
@@ -1,45 +0,0 @@
1
- import type { UsePromiseState } from '@xylabs/react-promise'
2
- import type { XyOsContext } from '@xyo-network/os-model'
3
- import type { ResourceStore } from '@xyo-network/os-runtime'
4
-
5
- import { useXyOsUiContext } from '../XyOsUi/index.ts'
6
-
7
- export class ResourceHooks<Views extends string, T extends ResourceStore<Views>> {
8
- private buildResource: (context?: XyOsContext | null, pathPrefix?: string) => [T | undefined, Error | undefined, UsePromiseState | undefined]
9
- private buildViews: (resource?: T) => { [K in Views]: ReturnType<T['views'][K]> | undefined } | (undefined & Record<'resource', T | undefined>)
10
-
11
- constructor(
12
- buildResource: (context?: XyOsContext | null, pathPrefix?: string) => [T | undefined, Error | undefined, UsePromiseState | undefined],
13
- buildViews: (resource?: T) => { [K in Views]: ReturnType<T['views'][K]> | undefined } | (undefined & Record<'resource', T | undefined>),
14
- ) {
15
- this.buildResource = buildResource
16
- this.buildViews = buildViews
17
- }
18
-
19
- resourceViewsFromContext = (context?: XyOsContext | null, pathPrefix?: string) => {
20
- const [resource, resourceError] = this.buildResource(context, pathPrefix)
21
- const views = this.buildViews(resource)
22
-
23
- return {
24
- ...views,
25
- resource,
26
- resourceError,
27
- }
28
- }
29
-
30
- useBuildResourceFromProvidedNode = (pathPrefix?: string) => {
31
- const xyOs = useXyOsUiContext()
32
- return this.buildResource(xyOs, pathPrefix)
33
- }
34
-
35
- useResourceViewsFromProvidedNode = (pathPrefix?: string) => {
36
- const [resource, resourceError] = this.useBuildResourceFromProvidedNode(pathPrefix)
37
- const views = this.buildViews(resource)
38
-
39
- return {
40
- ...views,
41
- resource,
42
- resourceError,
43
- }
44
- }
45
- }
@@ -1,3 +0,0 @@
1
- export * from './ResourceHooks.ts'
2
- export * from './useCleanup.ts'
3
- export * from './useSyncExternalPayloadStore.ts'
@@ -1,10 +0,0 @@
1
- import type { ResourceStore } from '@xyo-network/os-runtime'
2
- import { useEffect } from 'react'
3
-
4
- export const useCleanUpResource = (resource?: ResourceStore) => {
5
- useEffect(() => {
6
- return () => {
7
- resource?.cleanupListeners()
8
- }
9
- }, [resource])
10
- }
@@ -1,37 +0,0 @@
1
- import type { ResourceStore } from '@xyo-network/os-runtime'
2
- import { useMemo, useSyncExternalStore } from 'react'
3
-
4
- /**
5
- * Given a repository and one of its store names, return a stream of payloads
6
- */
7
- export const useSyncExternalPayloadStore = <T extends ResourceStore = ResourceStore, ViewName extends string = string>(
8
- viewName: ViewName,
9
- repository?: T,
10
- ) => {
11
- // Grab the return type of the getSnapshot function to ascertain its payload
12
- type PayloadStoreType = ReturnType<T['views'][ViewName]>
13
-
14
- const { getSnapShot, subscribe } = useMemo(() => {
15
- // capture the view's subscribe function
16
- const subscriber = repository?.subscriptions[viewName]
17
- // capture the view's getSnapshot function
18
- const snapshot = repository?.views[viewName] as (() => PayloadStoreType) | undefined
19
-
20
- if (snapshot && subscriber) {
21
- return {
22
- // since useExternalStore calls its methods in it's own lambda function, we lose the `this` context of the calling class.
23
- // bind each method to its appropriate object so the `this` calls work as expected.
24
- getSnapShot: snapshot,
25
- subscribe: subscriber.bind(repository),
26
- }
27
- }
28
- // Return a default implementation to satisfy the hook interface
29
- return {
30
- // eslint-disable-next-line unicorn/no-useless-undefined
31
- getSnapShot: () => undefined,
32
- subscribe: () => () => {},
33
- }
34
- }, [repository, viewName])
35
-
36
- return useSyncExternalStore(subscribe, getSnapShot)
37
- }
@@ -1 +0,0 @@
1
- export * from './useStackReady.ts'
@@ -1,48 +0,0 @@
1
- import type { EventListener } from '@xylabs/sdk-js'
2
- import { assertEx } from '@xylabs/sdk-js'
3
- import type { EventBusPubSubConnectionRequest, XyOsContext } from '@xyo-network/os-model'
4
- import { EventBusPubSubConnection } from '@xyo-network/os-runtime'
5
- import { useEffect, useState } from 'react'
6
-
7
- import type { StackReady } from '../../interfaces/index.ts'
8
- import { useXyOsUiContext } from '../XyOsUi/index.ts'
9
-
10
- export const useStackReady = (stackReadyEvent: string, stackName: string, context?: XyOsContext | null) => {
11
- const providedContext = useXyOsUiContext()
12
- const [stackReady, setStackReady] = useState<StackReady>({ ready: false })
13
-
14
- useEffect(() => {
15
- const derivedContext = context ?? providedContext
16
-
17
- const listener: EventListener = () => {
18
- if (!derivedContext) throw new Error('no context found')
19
- const stack = assertEx(derivedContext.getStack(stackName).stack, () => `${stackName} missing stack`)
20
- setStackReady({ ready: true, stack })
21
- }
22
-
23
- const stackReadyReadyConnectionRequest: EventBusPubSubConnectionRequest = {
24
- subscribableEvents: new Map([[stackReadyEvent, listener]]),
25
- type: 'PubSub',
26
- }
27
-
28
- const stackReadyReadyConnection = new EventBusPubSubConnection(stackReadyReadyConnectionRequest)
29
-
30
- if (derivedContext) {
31
- // connect to the bus
32
- derivedContext.eventBus.addConnection(stackReadyReadyConnection)
33
-
34
- // attempt to see if the stack is already initialized
35
- const stack = derivedContext.getStack(stackName)
36
- if (stack.initialized) setStackReady({ ready: true, stack: stack.stack })
37
- }
38
-
39
- return () => {
40
- const derivedContext = context ?? providedContext
41
- if (derivedContext && stackReadyReadyConnection._id) {
42
- derivedContext.eventBus.removeConnection(stackReadyReadyConnection.id)
43
- }
44
- }
45
- }, [context, providedContext])
46
-
47
- return stackReady
48
- }
@@ -1,149 +0,0 @@
1
- // Example from https://codesandbox.io/p/sandbox/cards-stack-to6uf?
2
- import { Box, useTheme } from '@mui/material'
3
- import {
4
- animated, to as interpolate, useSprings,
5
- } from '@react-spring/web'
6
- import { alphaCss } from '@xylabs/react-theme'
7
- import type { ReactNode } from 'react'
8
- import React, { useState } from 'react'
9
- import { useDrag } from 'react-use-gesture'
10
-
11
- import {
12
- ExampleBarGraphWidget, ExampleBooleanTableWidget, ExampleTwoColTwoStatWidget,
13
- } from './Types/index.ts'
14
-
15
- const cards: ReactNode[] = [
16
- <ExampleBarGraphWidget key="bar-graph" />,
17
- <ExampleBooleanTableWidget key="boolean-table" />,
18
- <ExampleTwoColTwoStatWidget key="two-column" />,
19
- ]
20
-
21
- // These two are just helpers, they curate spring data, values that are later being interpolated into css
22
- const to = (i: number) => ({
23
- delay: i * 100,
24
- rot: -10 + Math.random() * 15,
25
- scale: 1,
26
- x: 0,
27
- y: i * -4,
28
- })
29
- const from = (_i: number) => ({
30
- rot: 0, scale: 1.5, x: 0, y: -1000,
31
- })
32
- // This is being used down there in the view, it interpolates rotation and scale into a css transform
33
- const trans = (r: number, s: number) => `perspective(1500px) rotateY(${r / 10}deg) scale(${s})`
34
-
35
- function Deck() {
36
- const [gone] = useState(() => new Set()) // The set flags all the cards that are flicked out
37
- const theme = useTheme()
38
- const [props, api] = useSprings(cards.length, i => ({
39
- ...to(i),
40
- from: from(i),
41
- })) // Create a bunch of springs using the helpers above
42
- // Create a gesture, we're interested in down-state, delta (current-pos - click-pos), direction and velocity
43
- const bind = useDrag(({
44
- args: [index], down, movement: [mx], direction: [xDir], velocity,
45
- }) => {
46
- const trigger = velocity > 0.2 // If you flick hard enough it should trigger the card to fly out
47
- const dir = xDir < 0 ? -1 : 1 // Direction should either point left or right
48
- if (!down && trigger) gone.add(index) // If button/finger's up and trigger velocity is reached, we flag the card ready to fly out
49
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
50
- api.start((i) => {
51
- if (index !== i) return // We're only interested in changing spring-data for the current spring
52
- const isGone = gone.has(index)
53
- const x
54
- = isGone
55
- ? (200 + globalThis.innerWidth) * dir
56
- : down
57
- ? mx
58
- : 0 // When a card is gone it flys out left or right, otherwise goes back to zero
59
- const rot = mx / 100 + (isGone ? dir * 10 * velocity : 0) // How much the card tilts, flicking it harder makes it rotate faster
60
- const scale = down ? 1.1 : 1 // Active cards lift up a bit
61
- return {
62
- config: {
63
- friction: 50,
64
- tension:
65
- down
66
- ? 800
67
- : isGone
68
- ? 200
69
- : 500,
70
- },
71
- delay: undefined,
72
- rot,
73
- scale,
74
- x,
75
- }
76
- })
77
- if (!down && gone.size === cards.length)
78
- setTimeout(() => {
79
- gone.clear()
80
-
81
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
82
- api.start(i => to(i))
83
- }, 600)
84
- })
85
- // Now we're just mapping the animated values to our view, that's it. Btw, this component only renders once. :-)
86
- return (
87
- <>
88
- {props.map(({
89
- x, y, rot, scale,
90
- }, i) => (
91
- <animated.div
92
- key={i}
93
- style={{
94
- alignItems: 'center',
95
- display: 'flex',
96
- height: '300px',
97
- justifyContent: 'center',
98
- position: 'absolute',
99
- touchAction: 'none',
100
- width: '300px',
101
- willChange: 'transform',
102
- x,
103
- y,
104
- }}
105
- >
106
- {/* This is the card itself, we're binding our gesture to it (and inject its index so we know which is which) */}
107
- <animated.div
108
- {...bind(i)}
109
- style={{
110
- // WebkitBackdropFilter: 'blur(10px)',
111
- // backdropFilter: 'blur(10px)',
112
- backgroundColor: alphaCss(theme.vars?.palette.background.paper ?? '#000', 0.2),
113
- backgroundPosition: 'center center',
114
- backgroundRepeat: 'no-repeat',
115
- backgroundSize: 'auto 85%',
116
- borderRadius: ' 10px',
117
- boxShadow: theme.shadows[7],
118
- height: '85vh',
119
- maxHeight: '300px',
120
- maxWidth: '300px',
121
- transform: interpolate([rot, scale], trans),
122
- width: '45vh',
123
- willChange: 'transform',
124
- }}
125
- >
126
- {cards[i]}
127
- </animated.div>
128
- </animated.div>
129
- ))}
130
- </>
131
- )
132
- }
133
-
134
- export const StackOfWidgets: React.FC = () => {
135
- return (
136
- <Box
137
- sx={{
138
- alignItems: 'center',
139
- cursor: 'pointer',
140
- display: 'flex',
141
- height: '300px',
142
- justifyContent: 'center',
143
- width: '300px',
144
- }}
145
- >
146
- <Deck />
147
- </Box>
148
- )
149
- }
@@ -1,58 +0,0 @@
1
- import { Typography } from '@mui/material'
2
- import type { FlexBoxProps } from '@xylabs/react-flexbox'
3
- import { FlexCol, FlexGrowRow } from '@xylabs/react-flexbox'
4
- import React from 'react'
5
-
6
- import { StyledLinearProgress } from './StyledLinearProgress.tsx'
7
-
8
- export interface HorizontalBarGraphItemProps {
9
- name: string
10
- value: number
11
- }
12
-
13
- export interface HorizontalBarGraphProps extends FlexBoxProps {
14
- items?: HorizontalBarGraphItemProps[]
15
- }
16
-
17
- const sampleData: HorizontalBarGraphItemProps[] = [
18
- { name: 'United States', value: 134 },
19
- { name: 'South Africa', value: 400 },
20
- { name: 'Canada', value: 382 },
21
- { name: 'Philippines', value: 423 },
22
- { name: 'Denmark', value: 123 },
23
- { name: 'Greece', value: 321 },
24
- { name: 'Japan', value: 421 },
25
- ]
26
-
27
- export const HorizontalBarGraph: React.FC<HorizontalBarGraphProps> = ({ items = sampleData, ...props }) => {
28
- const itemsSortedByValue = items.toSorted(function (a, b) {
29
- const keyA = a.value,
30
- keyB = b.value
31
- // Compare the 2 dates
32
- if (keyA > keyB) return -1
33
- if (keyA < keyB) return 1
34
- return 0
35
- })
36
-
37
- console.log(itemsSortedByValue)
38
-
39
- const topValue = itemsSortedByValue[0].value
40
-
41
- return (
42
- <FlexCol alignItems="stretch" gap={0.5} {...props}>
43
- {items.slice(0, 5).map((item, index) => (
44
- <FlexCol alignItems="stretch" key={index}>
45
- <FlexGrowRow justifyContent="space-between">
46
- <Typography variant="caption" maxWidth="50%" noWrap>
47
- {item.name}
48
- </Typography>
49
- <Typography variant="caption" maxWidth="50%">
50
- {item.value}
51
- </Typography>
52
- </FlexGrowRow>
53
- <StyledLinearProgress color="primary" value={(item.value / (topValue * 1.25)) * 100} variant="determinate" />
54
- </FlexCol>
55
- ))}
56
- </FlexCol>
57
- )
58
- }
@@ -1,12 +0,0 @@
1
- import { LinearProgress, styled } from '@mui/material'
2
- import { alphaCss } from '@xylabs/react-theme'
3
-
4
- export const StyledLinearProgress = styled(LinearProgress, { name: 'StyledLinearProgress' })(({ theme }) => ({
5
- '& .MuiLinearProgress-bar': { borderRadius: theme.shape.borderRadius },
6
- 'MozBoxSizing': 'border-box',
7
- 'WebkitBoxSizing': 'border-box',
8
- 'background': 'transparent',
9
- 'borderBottom': `1px solid ${alphaCss(theme.vars?.palette.text.secondary ?? '#000', 0.3)}`,
10
- 'boxSizing': 'border-box',
11
- 'height': theme.spacing(0.25),
12
- }))
@@ -1,2 +0,0 @@
1
- export * from './HorizontalBarGraph.tsx'
2
- export * from './StyledLinearProgress.tsx'
@@ -1,34 +0,0 @@
1
- import { Typography, useTheme } from '@mui/material'
2
- import type { FlexBoxProps } from '@xylabs/react-flexbox'
3
- import { FlexCol, FlexGrowRow } from '@xylabs/react-flexbox'
4
- import React from 'react'
5
-
6
- export interface TwoColTwoStatProps extends FlexBoxProps {
7
- data1: string
8
- data2: string
9
- type1: string
10
- type2: string
11
- }
12
-
13
- export const TwoColTwoStat: React.FC<TwoColTwoStatProps> = ({
14
- type1, type2, data1, data2, ...props
15
- }) => {
16
- const theme = useTheme()
17
-
18
- return (
19
- <FlexGrowRow gap={2} {...props}>
20
- <FlexCol flexGrow={1} alignItems="start">
21
- <Typography variant="h2" fontWeight={theme.typography.fontWeightMedium}>
22
- {data1}
23
- </Typography>
24
- <Typography variant="body2">{type1}</Typography>
25
- </FlexCol>
26
- <FlexCol flexGrow={1} alignItems="start">
27
- <Typography variant="h2" fontWeight={theme.typography.fontWeightMedium}>
28
- {data2}
29
- </Typography>
30
- <Typography variant="body2">{type2}</Typography>
31
- </FlexCol>
32
- </FlexGrowRow>
33
- )
34
- }
@@ -1,39 +0,0 @@
1
- import { Typography, useTheme } from '@mui/material'
2
- import type { FlexBoxProps } from '@xylabs/react-flexbox'
3
- import { FlexCol, FlexGrowRow } from '@xylabs/react-flexbox'
4
- import React, { useEffect } from 'react'
5
-
6
- import type { InsightStatProps } from '../Stat/index.ts'
7
-
8
- export interface TwoColTwoStatProps extends FlexBoxProps {
9
- items: InsightStatProps[]
10
- }
11
-
12
- const MAX_LENGTH = 2
13
-
14
- const validateProps = (props: InsightStatProps[]) => {
15
- if (props.length > MAX_LENGTH) {
16
- throw new Error(`The length of items for the Two Column Two Stat widget should not exceed ${MAX_LENGTH}`)
17
- }
18
- }
19
-
20
- export const TwoColTwoStat: React.FC<TwoColTwoStatProps> = ({ items, ...props }) => {
21
- const theme = useTheme()
22
-
23
- useEffect(() => {
24
- validateProps(items)
25
- }, [items])
26
-
27
- return (
28
- <FlexGrowRow gap={2} {...props}>
29
- {items.map((item, index) => (
30
- <FlexCol key={`stat-${index}-${item.unit}`} flexGrow={1} alignItems="start">
31
- <Typography variant="h2" fontWeight={theme.typography.fontWeightMedium}>
32
- {item.rawInsightValue}
33
- </Typography>
34
- <Typography variant="body2">{item.subtitle}</Typography>
35
- </FlexCol>
36
- ))}
37
- </FlexGrowRow>
38
- )
39
- }
@@ -1 +0,0 @@
1
- export * from './TwoColTwoStat.tsx'
@@ -1,10 +0,0 @@
1
- import React from 'react'
2
-
3
- import { WidgetCard } from '../../WidgetCard.tsx'
4
- import { HorizontalBarGraph } from '../BarGraph/index.ts'
5
-
6
- export const ExampleBarGraphWidget: React.FC = () => {
7
- return (
8
- <WidgetCard widgetContent={<HorizontalBarGraph />} widgetName="Friend Locations" timeOfData={1_715_713_478} widgetPath="/profile"></WidgetCard>
9
- )
10
- }
@@ -1,27 +0,0 @@
1
- import React from 'react'
2
-
3
- import { WidgetCard } from '../../WidgetCard.tsx'
4
- import { BooleanTable } from '../Tables/index.ts'
5
-
6
- export const ExampleBooleanTableWidget: React.FC = () => {
7
- return (
8
- <WidgetCard
9
- widgetContent={(
10
- <BooleanTable
11
- items={[
12
- { name: '@arietrouw', value: true },
13
- { name: '@officialxyo', value: false },
14
- { name: '0x187623121928634124', value: true },
15
- { name: '@coinwithus', value: true },
16
- { name: '0x871218376123894321', value: true },
17
- ]}
18
- tableHeaders={['Id', 'Online']}
19
- />
20
- )}
21
- widgetName="Friends"
22
- timeOfData={1_715_875_797}
23
- widgetPath="/profile"
24
- >
25
- </WidgetCard>
26
- )
27
- }
@@ -1,27 +0,0 @@
1
- import React from 'react'
2
-
3
- import { WidgetCard } from '../../WidgetCard.tsx'
4
- import { TwoColTwoStat } from '../DataColumns/index.ts'
5
-
6
- export const ExampleTwoColTwoStatWidget: React.FC = () => {
7
- return (
8
- <WidgetCard
9
- widgetContent={(
10
- <TwoColTwoStat
11
- items={[
12
- {
13
- rawInsightValue: 218, subtitle: 'Inbound Access Requests', uiInsightValue: 218, unit: 'requests',
14
- },
15
- {
16
- rawInsightValue: 18, subtitle: 'Outbound Access Requests', uiInsightValue: 18, unit: 'requests',
17
- },
18
- ]}
19
- />
20
- )}
21
- widgetName="Network Activity"
22
- timeOfData={1_642_637_397}
23
- widgetPath="/network"
24
- >
25
- </WidgetCard>
26
- )
27
- }
@@ -1,3 +0,0 @@
1
- export * from './BarGraph.tsx'
2
- export * from './BooleanTable.tsx'
3
- export * from './TwoColTwoStat.tsx'
@@ -1,9 +0,0 @@
1
- export interface Insight {
2
- /** raw value used for additional calculations */
3
- rawInsightValue?: string | number | undefined
4
-
5
- /** formatted value meant for presentation */
6
- uiInsightValue: string | number | undefined
7
-
8
- unit: string | number | undefined
9
- }
@@ -1,7 +0,0 @@
1
- import type { Insight } from './Insight.ts'
2
-
3
- export interface InsightStatProps extends Insight {
4
- insightColor?: string
5
- source?: string
6
- subtitle?: string
7
- }