@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.
- package/dist/browser/index.mjs +44 -56
- package/dist/browser/index.mjs.map +1 -1
- package/dist/browser/modules/Dapp/Button/StyledComponents.d.ts +3 -3
- package/dist/browser/modules/Dapp/Button/StyledDappIconBuilder.d.ts +1 -1
- package/dist/browser/modules/Dapp/Button/lib/decomposeProps.d.ts +81 -81
- package/dist/browser/modules/Dapp/Page/DappPathSwitcher.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/Page/Row.d.ts +1 -1
- package/dist/browser/modules/Dapp/RenderHtml.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/Window/LoadingFlexbox.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/Window/Trail.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/Window/components/menu/BottomNavigation.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/Window/components/menu/Drawer.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/Window/components/menu/StyledListItems.d.ts +2 -2
- package/dist/browser/modules/Dapp/modules/Window/components/menu/stories/Drawer.stories.d.ts +1 -1
- package/dist/browser/modules/Dapp/modules/Window/hooks/menu/useDappMenu.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/Window/hooks/useDebugClick.d.ts.map +1 -1
- package/dist/browser/modules/dapps/accounts/components/AccountCard.d.ts.map +1 -1
- package/dist/browser/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPointList.d.ts.map +1 -1
- package/dist/browser/modules/dapps/table/head/components/StyledTableRowHeader.d.ts +1 -1
- package/dist/browser/modules/intent/useDappIntentListener2.d.ts.map +1 -1
- package/dist/browser/modules/network/components/StyledLoadingIndicator.d.ts +1 -1
- package/dist/browser/modules/os/hooks/useDappRegistrationResults.d.ts.map +1 -1
- package/dist/browser/modules/stack/useStackReady.d.ts.map +1 -1
- package/dist/browser/modules/widgets/StackOfWidgets.d.ts.map +1 -1
- package/dist/browser/modules/widgets/Types/BarGraph/HorizontalBarGraph.d.ts.map +1 -1
- package/dist/browser/modules/widgets/Types/BarGraph/StyledLinearProgress.d.ts +1 -1
- package/dist/browser/modules/widgets/Types/DataColumns/TwoColTwoStat.d.ts.map +1 -1
- package/dist/browser/modules/widgets/Types/Stat/Subtitle.d.ts +1 -1
- package/dist/browser/modules/widgets/Types/Stat/Unit.d.ts +1 -1
- package/dist/browser/modules/widgets/Types/Stat/Value.d.ts +1 -1
- package/dist/browser/modules/widgets/Types/Tables/BooleanTable.d.ts +4 -4
- package/dist/browser/modules/widgets/Types/Tables/BooleanTable.d.ts.map +1 -1
- package/package.json +59 -59
- package/src/modules/Dapp/Page/DappPathSwitcher.tsx +1 -0
- package/src/modules/Dapp/RenderHtml.tsx +0 -1
- package/src/modules/Dapp/modules/Window/LoadingFlexbox.tsx +0 -1
- package/src/modules/Dapp/modules/Window/Trail.tsx +0 -2
- package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.tsx +0 -1
- package/src/modules/Dapp/modules/Window/components/menu/BottomNavigation.tsx +0 -2
- package/src/modules/Dapp/modules/Window/components/menu/Drawer.tsx +0 -1
- package/src/modules/Dapp/modules/Window/hooks/menu/useDappMenu.ts +0 -1
- package/src/modules/Dapp/modules/Window/hooks/useDebugClick.ts +0 -1
- package/src/modules/dapps/accounts/components/AccountCard.tsx +0 -2
- package/src/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPointList.tsx +0 -1
- package/src/modules/intent/useDappIntentListener2.ts +0 -1
- package/src/modules/os/hooks/useDappRegistrationResults.ts +0 -1
- package/src/modules/stack/useStackReady.ts +0 -1
- package/src/modules/widgets/StackOfWidgets.tsx +0 -2
- package/src/modules/widgets/Types/BarGraph/HorizontalBarGraph.tsx +0 -1
- package/src/modules/widgets/Types/DataColumns/TwoColTwoStat.tsx +0 -1
- package/src/modules/widgets/Types/Tables/BooleanTable.tsx +0 -1
|
@@ -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: {
|
|
@@ -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}
|
|
@@ -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
|
|
|
@@ -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}
|