@xyo-network/os-react-runtime 7.1.1 → 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 (52) hide show
  1. package/dist/browser/index.mjs +44 -56
  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 +81 -81
  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 +59 -59
  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 +0 -1
  51. package/src/modules/widgets/Types/DataColumns/TwoColTwoStat.tsx +0 -1
  52. package/src/modules/widgets/Types/Tables/BooleanTable.tsx +0 -1
@@ -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',
@@ -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 {