@xyo-network/os-react-runtime 7.1.0 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/browser/index.mjs +48 -60
  2. package/dist/browser/index.mjs.map +1 -1
  3. package/dist/browser/modules/Dapp/Button/StyledComponents.d.ts +3 -3
  4. package/dist/browser/modules/Dapp/Button/StyledDappIconBuilder.d.ts +1 -1
  5. package/dist/browser/modules/Dapp/Button/lib/decomposeProps.d.ts +84 -84
  6. package/dist/browser/modules/Dapp/Page/DappPathSwitcher.d.ts.map +1 -1
  7. package/dist/browser/modules/Dapp/Page/Row.d.ts +1 -1
  8. package/dist/browser/modules/Dapp/RenderHtml.d.ts.map +1 -1
  9. package/dist/browser/modules/Dapp/modules/Window/LoadingFlexbox.d.ts.map +1 -1
  10. package/dist/browser/modules/Dapp/modules/Window/Trail.d.ts.map +1 -1
  11. package/dist/browser/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.d.ts.map +1 -1
  12. package/dist/browser/modules/Dapp/modules/Window/components/menu/BottomNavigation.d.ts.map +1 -1
  13. package/dist/browser/modules/Dapp/modules/Window/components/menu/Drawer.d.ts.map +1 -1
  14. package/dist/browser/modules/Dapp/modules/Window/components/menu/StyledListItems.d.ts +2 -2
  15. package/dist/browser/modules/Dapp/modules/Window/components/menu/stories/Drawer.stories.d.ts +1 -1
  16. package/dist/browser/modules/Dapp/modules/Window/hooks/menu/useDappMenu.d.ts.map +1 -1
  17. package/dist/browser/modules/Dapp/modules/Window/hooks/useDebugClick.d.ts.map +1 -1
  18. package/dist/browser/modules/dapps/accounts/components/AccountCard.d.ts.map +1 -1
  19. package/dist/browser/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPointList.d.ts.map +1 -1
  20. package/dist/browser/modules/dapps/table/head/components/StyledTableRowHeader.d.ts +1 -1
  21. package/dist/browser/modules/intent/useDappIntentListener2.d.ts.map +1 -1
  22. package/dist/browser/modules/network/components/StyledLoadingIndicator.d.ts +1 -1
  23. package/dist/browser/modules/os/hooks/useDappRegistrationResults.d.ts.map +1 -1
  24. package/dist/browser/modules/stack/useStackReady.d.ts.map +1 -1
  25. package/dist/browser/modules/widgets/StackOfWidgets.d.ts.map +1 -1
  26. package/dist/browser/modules/widgets/Types/BarGraph/HorizontalBarGraph.d.ts.map +1 -1
  27. package/dist/browser/modules/widgets/Types/BarGraph/StyledLinearProgress.d.ts +1 -1
  28. package/dist/browser/modules/widgets/Types/DataColumns/TwoColTwoStat.d.ts.map +1 -1
  29. package/dist/browser/modules/widgets/Types/Stat/Subtitle.d.ts +1 -1
  30. package/dist/browser/modules/widgets/Types/Stat/Unit.d.ts +1 -1
  31. package/dist/browser/modules/widgets/Types/Stat/Value.d.ts +1 -1
  32. package/dist/browser/modules/widgets/Types/Tables/BooleanTable.d.ts +4 -4
  33. package/dist/browser/modules/widgets/Types/Tables/BooleanTable.d.ts.map +1 -1
  34. package/package.json +64 -64
  35. package/src/modules/Dapp/Page/DappPathSwitcher.tsx +1 -0
  36. package/src/modules/Dapp/RenderHtml.tsx +0 -1
  37. package/src/modules/Dapp/modules/Window/LoadingFlexbox.tsx +0 -1
  38. package/src/modules/Dapp/modules/Window/Trail.tsx +0 -2
  39. package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.tsx +0 -1
  40. package/src/modules/Dapp/modules/Window/components/menu/BottomNavigation.tsx +0 -2
  41. package/src/modules/Dapp/modules/Window/components/menu/Drawer.tsx +0 -1
  42. package/src/modules/Dapp/modules/Window/hooks/menu/useDappMenu.ts +0 -1
  43. package/src/modules/Dapp/modules/Window/hooks/useDebugClick.ts +0 -1
  44. package/src/modules/dapps/accounts/components/AccountCard.tsx +0 -2
  45. package/src/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPointList.tsx +0 -1
  46. package/src/modules/intent/useDappIntentListener2.ts +0 -1
  47. package/src/modules/os/hooks/useDappRegistrationResults.ts +0 -1
  48. package/src/modules/stack/useStackReady.ts +0 -1
  49. package/src/modules/widgets/StackOfWidgets.tsx +0 -2
  50. package/src/modules/widgets/Types/BarGraph/HorizontalBarGraph.tsx +1 -2
  51. package/src/modules/widgets/Types/DataColumns/TwoColTwoStat.tsx +0 -1
  52. package/src/modules/widgets/Types/Tables/BooleanTable.tsx +0 -1
  53. package/src/utils/DappInstallTypeFilters.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/os-react-runtime",
3
- "version": "7.1.0",
3
+ "version": "7.2.0",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -33,78 +33,78 @@
33
33
  "src"
34
34
  ],
35
35
  "dependencies": {
36
- "@react-spring/web": "~10.0.1",
37
- "@xylabs/array": "~5.0.11",
38
- "@xylabs/assert": "~5.0.11",
39
- "@xylabs/base": "~5.0.11",
40
- "@xylabs/events": "~5.0.11",
41
- "@xylabs/forget": "~5.0.11",
42
- "@xylabs/hex": "~5.0.11",
43
- "@xylabs/object": "~5.0.11",
44
- "@xylabs/promise": "~5.0.11",
45
- "@xylabs/react-animation": "~7.0.4",
46
- "@xylabs/react-async-effect": "~7.0.4",
47
- "@xylabs/react-button": "~7.0.4",
48
- "@xylabs/react-error": "~7.0.4",
49
- "@xylabs/react-flexbox": "~7.0.4",
50
- "@xylabs/react-link": "~7.0.4",
51
- "@xylabs/react-promise": "~7.0.4",
52
- "@xylabs/react-theme": "~7.0.4",
53
- "@xyo-network/archivist-indexeddb": "~5.1.0",
54
- "@xyo-network/archivist-model": "~5.1.0",
55
- "@xyo-network/bios-browser": "~7.1.0",
56
- "@xyo-network/bios-model": "~7.1.0",
57
- "@xyo-network/diviner-boundwitness-indexeddb": "~5.1.0",
58
- "@xyo-network/diviner-model": "~5.1.0",
59
- "@xyo-network/diviner-payload-generic": "~5.1.0",
60
- "@xyo-network/diviner-payload-indexeddb": "~5.1.0",
61
- "@xyo-network/diviner-payload-model": "~5.1.0",
62
- "@xyo-network/kernel": "~7.1.0",
63
- "@xyo-network/kernel-model": "~7.1.0",
64
- "@xyo-network/module-factory-locator": "~5.1.0",
65
- "@xyo-network/module-model": "~5.1.0",
66
- "@xyo-network/node-model": "~5.1.0",
67
- "@xyo-network/os-model": "~7.1.0",
68
- "@xyo-network/os-react-debug": "~7.1.0",
69
- "@xyo-network/os-react-model": "~7.1.0",
70
- "@xyo-network/os-runtime": "~7.1.0",
71
- "@xyo-network/payload-model": "~5.1.0",
72
- "@xyo-network/react-archivist": "~7.1.0",
73
- "@xyo-network/react-card": "~7.1.0",
74
- "@xyo-network/react-form-credit-card": "~7.1.0",
75
- "@xyo-network/react-node": "~7.1.0",
76
- "@xyo-network/react-shared": "~7.1.0",
77
- "@xyo-network/react-table": "~7.1.0",
78
- "@xyo-network/react-wallet": "~7.1.0",
79
- "@xyo-network/wallet-model": "~5.1.0",
80
- "luxon": "~3.7.1",
36
+ "@react-spring/web": "~10.0.3",
37
+ "@xylabs/array": "~5.0.42",
38
+ "@xylabs/assert": "~5.0.42",
39
+ "@xylabs/base": "~5.0.42",
40
+ "@xylabs/events": "~5.0.42",
41
+ "@xylabs/forget": "~5.0.42",
42
+ "@xylabs/hex": "~5.0.42",
43
+ "@xylabs/object": "~5.0.42",
44
+ "@xylabs/promise": "~5.0.42",
45
+ "@xylabs/react-animation": "~7.1.8",
46
+ "@xylabs/react-async-effect": "~7.1.8",
47
+ "@xylabs/react-button": "~7.1.8",
48
+ "@xylabs/react-error": "~7.1.8",
49
+ "@xylabs/react-flexbox": "~7.1.8",
50
+ "@xylabs/react-link": "~7.1.8",
51
+ "@xylabs/react-promise": "~7.1.8",
52
+ "@xylabs/react-theme": "~7.1.8",
53
+ "@xyo-network/archivist-indexeddb": "~5.2.9",
54
+ "@xyo-network/archivist-model": "~5.2.9",
55
+ "@xyo-network/bios-browser": "~7.2.0",
56
+ "@xyo-network/bios-model": "~7.2.0",
57
+ "@xyo-network/diviner-boundwitness-indexeddb": "~5.2.9",
58
+ "@xyo-network/diviner-model": "~5.2.9",
59
+ "@xyo-network/diviner-payload-generic": "~5.2.9",
60
+ "@xyo-network/diviner-payload-indexeddb": "~5.2.9",
61
+ "@xyo-network/diviner-payload-model": "~5.2.9",
62
+ "@xyo-network/kernel": "~7.2.0",
63
+ "@xyo-network/kernel-model": "~7.2.0",
64
+ "@xyo-network/module-factory-locator": "~5.2.9",
65
+ "@xyo-network/module-model": "~5.2.9",
66
+ "@xyo-network/node-model": "~5.2.9",
67
+ "@xyo-network/os-model": "~7.2.0",
68
+ "@xyo-network/os-react-debug": "~7.2.0",
69
+ "@xyo-network/os-react-model": "~7.2.0",
70
+ "@xyo-network/os-runtime": "~7.2.0",
71
+ "@xyo-network/payload-model": "~5.2.9",
72
+ "@xyo-network/react-archivist": "~7.4.0",
73
+ "@xyo-network/react-card": "~7.4.0",
74
+ "@xyo-network/react-form-credit-card": "~7.4.0",
75
+ "@xyo-network/react-node": "~7.4.0",
76
+ "@xyo-network/react-shared": "~7.4.0",
77
+ "@xyo-network/react-table": "~7.4.0",
78
+ "@xyo-network/react-wallet": "~7.4.0",
79
+ "@xyo-network/wallet-model": "~5.2.9",
80
+ "luxon": "~3.7.2",
81
81
  "react-helmet": "~6.1.0",
82
82
  "react-icons": "~5.5.0",
83
- "react-router-dom": "~7.8.2",
83
+ "react-router-dom": "~7.9.6",
84
84
  "react-use-gesture": "~9.1.3",
85
- "rollbar": "~2.26.4"
85
+ "rollbar": "~2.26.5"
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.1",
91
- "@mui/material": "~7.3.1",
92
- "@mui/system": "~7.3.1",
93
- "@mui/x-tree-view": "~8.10.2",
94
- "@storybook/react-vite": "~9.1.3",
90
+ "@mui/icons-material": "~7.3.5",
91
+ "@mui/material": "~7.3.5",
92
+ "@mui/system": "~7.3.5",
93
+ "@mui/x-tree-view": "~8.14.1",
94
+ "@storybook/react-vite": "~10.0.8",
95
95
  "@types/luxon": "~3.7.1",
96
- "@types/react": "~19.1.12",
96
+ "@types/react": "~19.2.6",
97
97
  "@types/react-helmet": "~6.1.11",
98
- "@xylabs/ts-scripts-react-yarn3": "~7.1.7",
99
- "@xylabs/ts-scripts-yarn3": "~7.1.7",
100
- "@xylabs/tsconfig": "~7.1.7",
101
- "@xylabs/tsconfig-dom": "~7.1.7",
102
- "@xylabs/tsconfig-react": "~7.1.7",
103
- "react": "~19.1.1",
104
- "react-dom": "~19.1.1",
105
- "storybook": "~9.1.3",
106
- "typescript": "~5.9.2",
107
- "vite": "~7.1.3"
98
+ "@xylabs/ts-scripts-react-yarn3": "~7.2.8",
99
+ "@xylabs/ts-scripts-yarn3": "~7.2.8",
100
+ "@xylabs/tsconfig": "~7.2.8",
101
+ "@xylabs/tsconfig-dom": "~7.2.8",
102
+ "@xylabs/tsconfig-react": "~7.2.8",
103
+ "react": "~19.2.0",
104
+ "react-dom": "~19.2.0",
105
+ "storybook": "~10.0.8",
106
+ "typescript": "~5.9.3",
107
+ "vite": "~7.2.4"
108
108
  },
109
109
  "peerDependencies": {
110
110
  "@mui/icons-material": ">=6 <8",
@@ -1,3 +1,4 @@
1
+ /* eslint-disable react-x/jsx-no-iife */
1
2
  import { animated, useTransition } from '@react-spring/web'
2
3
  import { ErrorRender } from '@xylabs/react-error'
3
4
  import type { ReactNode } from 'react'
@@ -6,7 +6,6 @@ export const RenderHtml = ({ htmlString }: {
6
6
  return (
7
7
  <div
8
8
  style={{ height: 64, width: 64 }}
9
- // eslint-disable-next-line @eslint-react/dom/no-dangerously-set-innerhtml
10
9
  dangerouslySetInnerHTML={{ __html: htmlString }}
11
10
  />
12
11
  )
@@ -1,4 +1,3 @@
1
- /* eslint-disable @eslint-react/hooks-extra/no-direct-set-state-in-use-effect */
2
1
  import {
3
2
  Fade, styled, Typography,
4
3
  } from '@mui/material'
@@ -1,4 +1,3 @@
1
- /* eslint-disable @eslint-react/no-array-index-key */
2
1
  import { a, useTrail } from '@react-spring/web'
3
2
  import type { FlexBoxProps } from '@xylabs/react-flexbox'
4
3
  import React from 'react'
@@ -8,7 +7,6 @@ interface TextTrailProps extends FlexBoxProps {
8
7
  }
9
8
 
10
9
  export const TextTrail: React.FC<TextTrailProps> = ({ open, children }) => {
11
- // eslint-disable-next-line @eslint-react/no-children-to-array
12
10
  const items = React.Children.toArray(children)
13
11
  const trail = useTrail(items.length, {
14
12
  config: {
@@ -1,4 +1,3 @@
1
- /* eslint-disable @eslint-react/no-array-index-key */
2
1
  import {
3
2
  Card, CardContent, Chip, Container, Divider, Typography, useTheme,
4
3
  } from '@mui/material'
@@ -1,5 +1,3 @@
1
- /* eslint-disable @eslint-react/no-array-index-key */
2
- /* eslint-disable @eslint-react/hooks-extra/no-direct-set-state-in-use-effect */
3
1
  import type { BottomNavigationProps } from '@mui/material'
4
2
  import {
5
3
  BottomNavigation, BottomNavigationAction, Paper, styled,
@@ -1,4 +1,3 @@
1
- /* eslint-disable @eslint-react/hooks-extra/no-direct-set-state-in-use-effect */
2
1
  import type { DrawerProps } from '@mui/material'
3
2
  import {
4
3
  alpha,
@@ -1,4 +1,3 @@
1
- /* eslint-disable @eslint-react/hooks-extra/no-direct-set-state-in-use-effect */
2
1
  import type { DappName, XyOsContext } from '@xyo-network/os-model'
3
2
  import {
4
3
  useEffect, useRef, useState,
@@ -26,7 +26,6 @@ export const useDebugClick = () => {
26
26
  closeFromClick.current = true
27
27
  initialized.current = false
28
28
  void navigate(-1)
29
- // eslint-disable-next-line @eslint-react/hooks-extra/no-direct-set-state-in-use-effect
30
29
  setDebugOpen(false)
31
30
  }, [navigate])
32
31
 
@@ -23,8 +23,6 @@ export const AccountCard: React.FC<AccountCardProps> = ({ items, ...props }) =>
23
23
  <FlexGrowCol width="100%" gap={2}>
24
24
  {items.map((item, index) => {
25
25
  return (
26
-
27
- // eslint-disable-next-line @eslint-react/no-array-index-key
28
26
  <FlexGrowCol gap={2} key={index} width="100%" alignItems="stretch">
29
27
  <FlexGrowRow
30
28
  sx={{
@@ -13,7 +13,6 @@ export const TwoToneBulletPointList: React.FC<TwoToneBulletPointListProps> = ({
13
13
  <FlexCol alignItems="flex-start" gap={1}>
14
14
  {list.map((item, index) => {
15
15
  return (
16
- // eslint-disable-next-line @eslint-react/no-array-index-key
17
16
  <FlexGrowRow key={index + 'bulletPointList'} alignItems="flex-start" justifyContent="flex-start" gap={1}>
18
17
  <TwoToneBulletPoint marginTop="4px" />
19
18
  {item}
@@ -1,4 +1,3 @@
1
- /* eslint-disable @eslint-react/hooks-extra/no-direct-set-state-in-use-effect */
2
1
  import { DappIntentTypes, DappMode } from '@xyo-network/os-model'
3
2
  import { useEffect, useState } from 'react'
4
3
 
@@ -21,7 +21,6 @@ export const useDappRegistrationResults = () => {
21
21
  const dappsReadyConnection = new EventBusPubSubConnection(dappsReadyConnectionRequest)
22
22
  if (context) {
23
23
  context.eventBus.addConnection(dappsReadyConnection)
24
- // eslint-disable-next-line @eslint-react/hooks-extra/no-direct-set-state-in-use-effect
25
24
  setRegisteredDappSetResults(context.dappRegistrationResults)
26
25
  }
27
26
  return () => (context && dappsReadyConnection.id ? context.eventBus.removeConnection(dappsReadyConnection.id) : undefined)
@@ -33,7 +33,6 @@ export const useStackReady = (stackReadyEvent: string, stackName: string, contex
33
33
 
34
34
  // attempt to see if the stack is already initialized
35
35
  const stack = derivedContext.getStack(stackName)
36
- // eslint-disable-next-line @eslint-react/hooks-extra/no-direct-set-state-in-use-effect
37
36
  if (stack.initialized) setStackReady({ ready: true, stack: stack.stack })
38
37
  }
39
38
 
@@ -89,8 +89,6 @@ function Deck() {
89
89
  x, y, rot, scale,
90
90
  }, i) => (
91
91
  <animated.div
92
-
93
- // eslint-disable-next-line @eslint-react/no-array-index-key
94
92
  key={i}
95
93
  style={{
96
94
  alignItems: 'center',
@@ -25,7 +25,7 @@ const sampleData: HorizontalBarGraphItemProps[] = [
25
25
  ]
26
26
 
27
27
  export const HorizontalBarGraph: React.FC<HorizontalBarGraphProps> = ({ items = sampleData, ...props }) => {
28
- const itemsSortedByValue = items.sort(function (a, b) {
28
+ const itemsSortedByValue = items.toSorted(function (a, b) {
29
29
  const keyA = a.value,
30
30
  keyB = b.value
31
31
  // Compare the 2 dates
@@ -41,7 +41,6 @@ export const HorizontalBarGraph: React.FC<HorizontalBarGraphProps> = ({ items =
41
41
  return (
42
42
  <FlexCol alignItems="stretch" gap={0.5} {...props}>
43
43
  {items.slice(0, 5).map((item, index) => (
44
- // eslint-disable-next-line @eslint-react/no-array-index-key
45
44
  <FlexCol alignItems="stretch" key={index}>
46
45
  <FlexGrowRow justifyContent="space-between">
47
46
  <Typography variant="caption" maxWidth="50%" noWrap>
@@ -27,7 +27,6 @@ export const TwoColTwoStat: React.FC<TwoColTwoStatProps> = ({ items, ...props })
27
27
  return (
28
28
  <FlexGrowRow gap={2} {...props}>
29
29
  {items.map((item, index) => (
30
- // eslint-disable-next-line @eslint-react/no-array-index-key
31
30
  <FlexCol key={`stat-${index}-${item.unit}`} flexGrow={1} alignItems="start">
32
31
  <Typography variant="h2" fontWeight={theme.typography.fontWeightMedium}>
33
32
  {item.rawInsightValue}
@@ -1,4 +1,3 @@
1
- /* eslint-disable @eslint-react/no-array-index-key */
2
1
  import { CircleRounded } from '@mui/icons-material'
3
2
  import type { SvgIcon } from '@mui/material'
4
3
  import {
@@ -9,19 +9,19 @@ export const DappInstallTypeFilters: Record<
9
9
  > = {
10
10
  installed(registeredDappSets?: RegisteredDappSet[]) {
11
11
  return registeredDappSets && registeredDappSets?.length > 0
12
- ? registeredDappSets?.filter(isInstalledDappSet).sort((a, b) => (a.dapp.config.name.toUpperCase() < b.dapp.config.name.toUpperCase() ? -1 : 1))
12
+ ? registeredDappSets?.filter(isInstalledDappSet).toSorted((a, b) => (a.dapp.config.name.toUpperCase() < b.dapp.config.name.toUpperCase() ? -1 : 1))
13
13
  : undefined
14
14
  },
15
15
  preInstalled(registeredDappSets?: RegisteredDappSet[]) {
16
16
  return registeredDappSets && registeredDappSets?.length > 0
17
17
  ? registeredDappSets
18
18
  ?.filter(isPreInstalledDappSet)
19
- .sort((a, b) => (a.dapp.config.name.toUpperCase() < b.dapp.config.name.toUpperCase() ? -1 : 1))
19
+ .toSorted((a, b) => (a.dapp.config.name.toUpperCase() < b.dapp.config.name.toUpperCase() ? -1 : 1))
20
20
  : undefined
21
21
  },
22
22
  uninstalled(registeredDappSets?: RegisteredDappSet[]) {
23
23
  return registeredDappSets && registeredDappSets?.length > 0
24
- ? registeredDappSets.filter(isUnInstalledDappSet).sort((a, b) => (a.dapp.config.name.toUpperCase() < b.dapp.config.name.toUpperCase() ? -1 : 1))
24
+ ? registeredDappSets.filter(isUnInstalledDappSet).toSorted((a, b) => (a.dapp.config.name.toUpperCase() < b.dapp.config.name.toUpperCase() ? -1 : 1))
25
25
  : undefined
26
26
  },
27
27
  }