@xyo-network/os-react-runtime 7.0.0 → 7.1.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/helpers/widget/Caller.d.ts +1 -1
- package/dist/browser/helpers/widget/Caller.d.ts.map +1 -1
- package/dist/browser/index.mjs +2373 -2504
- 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/StyledComponents.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/Button/StyledDappIconBuilder.d.ts +1 -1
- package/dist/browser/modules/Dapp/Button/StyledDappIconBuilder.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/Button/lib/decomposeProps.d.ts +87 -93
- package/dist/browser/modules/Dapp/Button/lib/decomposeProps.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/Page/Row.d.ts +1 -1
- package/dist/browser/modules/Dapp/Page/Row.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/StyledListItems.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/Window/components/menu/stories/Drawer.stories.d.ts +1 -1
- package/dist/browser/modules/Dapp/modules/Window/components/menu/stories/Drawer.stories.d.ts.map +1 -1
- package/dist/browser/modules/dapps/table/head/components/StyledTableRowHeader.d.ts +1 -1
- package/dist/browser/modules/dapps/table/head/components/StyledTableRowHeader.d.ts.map +1 -1
- package/dist/browser/modules/network/components/StyledLoadingIndicator.d.ts +1 -1
- package/dist/browser/modules/network/components/StyledLoadingIndicator.d.ts.map +1 -1
- package/dist/browser/modules/resource/ResourceHooks.d.ts.map +1 -1
- package/dist/browser/modules/widgets/Types/BarGraph/StyledLinearProgress.d.ts +1 -1
- package/dist/browser/modules/widgets/Types/BarGraph/StyledLinearProgress.d.ts.map +1 -1
- package/dist/browser/modules/widgets/Types/Stat/Subtitle.d.ts +1 -1
- package/dist/browser/modules/widgets/Types/Stat/Subtitle.d.ts.map +1 -1
- package/dist/browser/modules/widgets/Types/Stat/Unit.d.ts +1 -1
- package/dist/browser/modules/widgets/Types/Stat/Unit.d.ts.map +1 -1
- package/dist/browser/modules/widgets/Types/Stat/Value.d.ts +1 -1
- package/dist/browser/modules/widgets/Types/Stat/Value.d.ts.map +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 +73 -72
- package/src/helpers/widget/Caller.tsx +6 -2
- package/src/modules/Dapp/modules/Window/components/menu/Drawer.tsx +2 -2
- package/src/modules/resource/ResourceHooks.ts +9 -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.1.0",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -33,83 +33,84 @@
|
|
|
33
33
|
"src"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@react-spring/web": "
|
|
37
|
-
"@xylabs/array": "
|
|
38
|
-
"@xylabs/assert": "
|
|
39
|
-
"@xylabs/base": "
|
|
40
|
-
"@xylabs/events": "
|
|
41
|
-
"@xylabs/forget": "
|
|
42
|
-
"@xylabs/hex": "
|
|
43
|
-
"@xylabs/object": "
|
|
44
|
-
"@xylabs/promise": "
|
|
45
|
-
"@xylabs/react-animation": "
|
|
46
|
-
"@xylabs/react-async-effect": "
|
|
47
|
-
"@xylabs/react-button": "
|
|
48
|
-
"@xylabs/react-error": "
|
|
49
|
-
"@xylabs/react-flexbox": "
|
|
50
|
-
"@xylabs/react-link": "
|
|
51
|
-
"@xylabs/react-promise": "
|
|
52
|
-
"@xylabs/react-theme": "
|
|
53
|
-
"@xyo-network/archivist-indexeddb": "
|
|
54
|
-
"@xyo-network/archivist-model": "
|
|
55
|
-
"@xyo-network/bios-browser": "
|
|
56
|
-
"@xyo-network/bios-model": "
|
|
57
|
-
"@xyo-network/diviner-boundwitness-indexeddb": "
|
|
58
|
-
"@xyo-network/diviner-model": "
|
|
59
|
-
"@xyo-network/diviner-payload-generic": "
|
|
60
|
-
"@xyo-network/diviner-payload-indexeddb": "
|
|
61
|
-
"@xyo-network/diviner-payload-model": "
|
|
62
|
-
"@xyo-network/kernel": "
|
|
63
|
-
"@xyo-network/kernel-model": "
|
|
64
|
-
"@xyo-network/module-factory-locator": "
|
|
65
|
-
"@xyo-network/module-model": "
|
|
66
|
-
"@xyo-network/node-model": "
|
|
67
|
-
"@xyo-network/os-model": "
|
|
68
|
-
"@xyo-network/os-react-debug": "
|
|
69
|
-
"@xyo-network/os-react-model": "
|
|
70
|
-
"@xyo-network/os-runtime": "
|
|
71
|
-
"@xyo-network/payload-model": "
|
|
72
|
-
"@xyo-network/react-archivist": "
|
|
73
|
-
"@xyo-network/react-card": "
|
|
74
|
-
"@xyo-network/react-form-credit-card": "
|
|
75
|
-
"@xyo-network/react-node": "
|
|
76
|
-
"@xyo-network/react-shared": "
|
|
77
|
-
"@xyo-network/react-table": "
|
|
78
|
-
"@xyo-network/react-wallet": "
|
|
79
|
-
"@xyo-network/wallet-model": "
|
|
80
|
-
"luxon": "
|
|
81
|
-
"react-helmet": "
|
|
82
|
-
"react-icons": "
|
|
83
|
-
"react-router-dom": "
|
|
84
|
-
"react-use-gesture": "
|
|
85
|
-
"rollbar": "
|
|
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",
|
|
81
|
+
"react-helmet": "~6.1.0",
|
|
82
|
+
"react-icons": "~5.5.0",
|
|
83
|
+
"react-router-dom": "~7.8.2",
|
|
84
|
+
"react-use-gesture": "~9.1.3",
|
|
85
|
+
"rollbar": "~2.26.4"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@emotion/react": "
|
|
89
|
-
"@emotion/styled": "
|
|
90
|
-
"@mui/icons-material": "
|
|
91
|
-
"@mui/material": "
|
|
92
|
-
"@mui/system": "
|
|
93
|
-
"@mui/x-tree-view": "
|
|
94
|
-
"@storybook/react-vite": "
|
|
95
|
-
"@types/luxon": "
|
|
96
|
-
"@types/react": "
|
|
97
|
-
"@types/react-helmet": "
|
|
98
|
-
"@xylabs/ts-scripts-react-yarn3": "
|
|
99
|
-
"@xylabs/ts-scripts-yarn3": "
|
|
100
|
-
"@xylabs/tsconfig": "
|
|
101
|
-
"@xylabs/tsconfig-dom": "
|
|
102
|
-
"@xylabs/tsconfig-react": "
|
|
103
|
-
"react": "
|
|
104
|
-
"react-dom": "
|
|
105
|
-
"storybook": "
|
|
106
|
-
"typescript": "
|
|
88
|
+
"@emotion/react": "~11.14.0",
|
|
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",
|
|
95
|
+
"@types/luxon": "~3.7.1",
|
|
96
|
+
"@types/react": "~19.1.12",
|
|
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"
|
|
107
108
|
},
|
|
108
109
|
"peerDependencies": {
|
|
109
110
|
"@mui/icons-material": ">=6 <8",
|
|
110
111
|
"@mui/material": ">=6 <8",
|
|
111
|
-
"react": "
|
|
112
|
-
"react-dom": "
|
|
112
|
+
"react": "~19",
|
|
113
|
+
"react-dom": "~19"
|
|
113
114
|
},
|
|
114
115
|
"publishConfig": {
|
|
115
116
|
"access": "public"
|
|
@@ -14,12 +14,16 @@ import React from 'react'
|
|
|
14
14
|
type WidgetResults = [(JSX.Element | undefined)[] | undefined, (Error | undefined)[]] | undefined
|
|
15
15
|
|
|
16
16
|
export class WidgetCaller extends OsCallerBase {
|
|
17
|
+
private _registeredDappSets?: RegisteredReactDappSet[]
|
|
18
|
+
private _widgetTrayLayout?: WidgetTrayLayout
|
|
17
19
|
constructor(
|
|
18
20
|
context: XyOsContext,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
_registeredDappSets?: RegisteredReactDappSet[],
|
|
22
|
+
_widgetTrayLayout?: WidgetTrayLayout,
|
|
21
23
|
) {
|
|
22
24
|
super(context)
|
|
25
|
+
this._registeredDappSets = _registeredDappSets
|
|
26
|
+
this._widgetTrayLayout = _widgetTrayLayout
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
get dappsAsObject() {
|
|
@@ -129,8 +129,8 @@ export const DappMenuDrawer: React.FC<DappMenuDrawerProps> = ({
|
|
|
129
129
|
sx={{ color: pathFromPayload === path ? activeColor : alpha('#fff', 0.3), justifyContent: 'center' }}
|
|
130
130
|
>
|
|
131
131
|
<StyledMenuIconWrapSpan
|
|
132
|
-
ref={(ref) => {
|
|
133
|
-
if (ref) {
|
|
132
|
+
ref={(ref: HTMLSpanElement | null) => {
|
|
133
|
+
if (ref !== null) {
|
|
134
134
|
ref.innerHTML = icon ?? ''
|
|
135
135
|
}
|
|
136
136
|
}}
|
|
@@ -5,10 +5,16 @@ import type { ResourceStore } from '@xyo-network/os-runtime'
|
|
|
5
5
|
import { useXyOsUiContext } from '../XyOsUi/index.ts'
|
|
6
6
|
|
|
7
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
|
+
|
|
8
11
|
constructor(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
) {
|
|
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
|
+
}
|
|
12
18
|
|
|
13
19
|
resourceViewsFromContext = (context?: XyOsContext | null, pathPrefix?: string) => {
|
|
14
20
|
const [resource, resourceError] = this.buildResource(context, pathPrefix)
|