@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.
- package/dist/browser/index.mjs +48 -60
- 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 +84 -84
- 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 +64 -64
- 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 +1 -2
- package/src/modules/widgets/Types/DataColumns/TwoColTwoStat.tsx +0 -1
- package/src/modules/widgets/Types/Tables/BooleanTable.tsx +0 -1
- 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.
|
|
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.
|
|
37
|
-
"@xylabs/array": "~5.0.
|
|
38
|
-
"@xylabs/assert": "~5.0.
|
|
39
|
-
"@xylabs/base": "~5.0.
|
|
40
|
-
"@xylabs/events": "~5.0.
|
|
41
|
-
"@xylabs/forget": "~5.0.
|
|
42
|
-
"@xylabs/hex": "~5.0.
|
|
43
|
-
"@xylabs/object": "~5.0.
|
|
44
|
-
"@xylabs/promise": "~5.0.
|
|
45
|
-
"@xylabs/react-animation": "~7.
|
|
46
|
-
"@xylabs/react-async-effect": "~7.
|
|
47
|
-
"@xylabs/react-button": "~7.
|
|
48
|
-
"@xylabs/react-error": "~7.
|
|
49
|
-
"@xylabs/react-flexbox": "~7.
|
|
50
|
-
"@xylabs/react-link": "~7.
|
|
51
|
-
"@xylabs/react-promise": "~7.
|
|
52
|
-
"@xylabs/react-theme": "~7.
|
|
53
|
-
"@xyo-network/archivist-indexeddb": "~5.
|
|
54
|
-
"@xyo-network/archivist-model": "~5.
|
|
55
|
-
"@xyo-network/bios-browser": "~7.
|
|
56
|
-
"@xyo-network/bios-model": "~7.
|
|
57
|
-
"@xyo-network/diviner-boundwitness-indexeddb": "~5.
|
|
58
|
-
"@xyo-network/diviner-model": "~5.
|
|
59
|
-
"@xyo-network/diviner-payload-generic": "~5.
|
|
60
|
-
"@xyo-network/diviner-payload-indexeddb": "~5.
|
|
61
|
-
"@xyo-network/diviner-payload-model": "~5.
|
|
62
|
-
"@xyo-network/kernel": "~7.
|
|
63
|
-
"@xyo-network/kernel-model": "~7.
|
|
64
|
-
"@xyo-network/module-factory-locator": "~5.
|
|
65
|
-
"@xyo-network/module-model": "~5.
|
|
66
|
-
"@xyo-network/node-model": "~5.
|
|
67
|
-
"@xyo-network/os-model": "~7.
|
|
68
|
-
"@xyo-network/os-react-debug": "~7.
|
|
69
|
-
"@xyo-network/os-react-model": "~7.
|
|
70
|
-
"@xyo-network/os-runtime": "~7.
|
|
71
|
-
"@xyo-network/payload-model": "~5.
|
|
72
|
-
"@xyo-network/react-archivist": "~7.
|
|
73
|
-
"@xyo-network/react-card": "~7.
|
|
74
|
-
"@xyo-network/react-form-credit-card": "~7.
|
|
75
|
-
"@xyo-network/react-node": "~7.
|
|
76
|
-
"@xyo-network/react-shared": "~7.
|
|
77
|
-
"@xyo-network/react-table": "~7.
|
|
78
|
-
"@xyo-network/react-wallet": "~7.
|
|
79
|
-
"@xyo-network/wallet-model": "~5.
|
|
80
|
-
"luxon": "~3.7.
|
|
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.
|
|
83
|
+
"react-router-dom": "~7.9.6",
|
|
84
84
|
"react-use-gesture": "~9.1.3",
|
|
85
|
-
"rollbar": "~2.26.
|
|
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.
|
|
91
|
-
"@mui/material": "~7.3.
|
|
92
|
-
"@mui/system": "~7.3.
|
|
93
|
-
"@mui/x-tree-view": "~8.
|
|
94
|
-
"@storybook/react-vite": "~
|
|
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.
|
|
96
|
+
"@types/react": "~19.2.6",
|
|
97
97
|
"@types/react-helmet": "~6.1.11",
|
|
98
|
-
"@xylabs/ts-scripts-react-yarn3": "~7.
|
|
99
|
-
"@xylabs/ts-scripts-yarn3": "~7.
|
|
100
|
-
"@xylabs/tsconfig": "~7.
|
|
101
|
-
"@xylabs/tsconfig-dom": "~7.
|
|
102
|
-
"@xylabs/tsconfig-react": "~7.
|
|
103
|
-
"react": "~19.
|
|
104
|
-
"react-dom": "~19.
|
|
105
|
-
"storybook": "~
|
|
106
|
-
"typescript": "~5.9.
|
|
107
|
-
"vite": "~7.
|
|
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,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
|
|
|
@@ -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.
|
|
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}
|
|
@@ -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).
|
|
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
|
-
.
|
|
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).
|
|
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
|
}
|