@xyo-network/os-react-runtime 4.0.3 → 4.0.5
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/DappPage.d.ts.map +1 -1
- package/dist/browser/StyledBuilder.d.ts +1 -1
- package/dist/browser/components/Widgets/Types/BarGraph/StyledLinearProgress.d.ts +1 -1
- package/dist/browser/components/Widgets/Types/Stat/Subtitle.d.ts +1 -1
- package/dist/browser/components/Widgets/Types/Stat/Unit.d.ts +1 -1
- package/dist/browser/components/Widgets/Types/Stat/Value.d.ts +1 -1
- package/dist/browser/components/Widgets/Types/Tables/BooleanTable.d.ts +4 -4
- package/dist/browser/components/alerts/errors/RenderErrorWithSupportLink.d.ts +3 -2
- package/dist/browser/components/alerts/errors/RenderErrorWithSupportLink.d.ts.map +1 -1
- package/dist/browser/dapps/shared/table/head/components/StyledTableRowHeader.d.ts +1 -1
- package/dist/browser/helpers/BridgeActivityHelper.d.ts +1 -1
- package/dist/browser/helpers/BridgeActivityHelper.d.ts.map +1 -1
- package/dist/browser/index.mjs +21 -20
- 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/lib/decomposeProps.d.ts +21 -21
- 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/modules/Window/DappWindow.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/Window/menu/BottomMenuArea.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/Window/menu/StyledListItems.d.ts +2 -2
- package/dist/browser/modules/Dapp/modules/access-interface/components/Dialog.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/access-interface/components/Flexbox.d.ts.map +1 -1
- package/dist/browser/modules/network/components/StyledLoadingIndicator.d.ts +1 -1
- package/package.json +45 -45
- package/src/DappPage.tsx +4 -3
- package/src/DappPathSwitcher.tsx +1 -1
- package/src/components/alerts/errors/RenderErrorWithSupportLink.tsx +4 -5
- package/src/helpers/BridgeActivityHelper.ts +1 -1
- package/src/modules/Dapp/modules/Window/DappWindow.tsx +1 -1
- package/src/modules/Dapp/modules/Window/menu/BottomMenuArea.tsx +2 -3
- package/src/modules/Dapp/modules/access-interface/components/Dialog.tsx +12 -10
- package/src/modules/Dapp/modules/access-interface/components/Flexbox.tsx +1 -1
package/dist/browser/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/components/alerts/errors/RenderErrorWithSupportLink.tsx
|
|
2
2
|
import { ButtonEx } from "@xylabs/react-button";
|
|
3
|
-
import { ErrorAlert } from "@
|
|
3
|
+
import { ErrorAlert } from "@xylabs/react-error";
|
|
4
4
|
import { useEffect } from "react";
|
|
5
5
|
import { useLocation } from "react-router-dom";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -9,7 +9,6 @@ var ErrorRenderWithSupport = ({
|
|
|
9
9
|
supportTo,
|
|
10
10
|
supportLinkText = "Support",
|
|
11
11
|
error,
|
|
12
|
-
errorContext,
|
|
13
12
|
onCancel,
|
|
14
13
|
...props
|
|
15
14
|
}) => {
|
|
@@ -22,7 +21,6 @@ var ErrorRenderWithSupport = ({
|
|
|
22
21
|
{
|
|
23
22
|
action: supportTo ? /* @__PURE__ */ jsx(ButtonEx, { target: "_blank", to: supportTo, color: "inherit", size: "small", children: supportLinkText }) : /* @__PURE__ */ jsx(ButtonEx, { target: "_blank", href: supportHref, color: "inherit", size: "small", children: supportLinkText }),
|
|
24
23
|
error,
|
|
25
|
-
errorContext,
|
|
26
24
|
onCancel,
|
|
27
25
|
...props
|
|
28
26
|
}
|
|
@@ -166,8 +164,8 @@ import { useColorSchemeEx as useColorSchemeEx4 } from "@xylabs/react-invertible-
|
|
|
166
164
|
|
|
167
165
|
// src/DappPage.tsx
|
|
168
166
|
import { Container as Container3, Typography as Typography10 } from "@mui/material";
|
|
167
|
+
import { ThrownErrorBoundary } from "@xylabs/react-error";
|
|
169
168
|
import { FlexCol as FlexCol13 } from "@xylabs/react-flexbox";
|
|
170
|
-
import { ThrownErrorBoundary } from "@xyo-network/react-error";
|
|
171
169
|
|
|
172
170
|
// src/modules/Dapp/Button/hooks/useLaunchPoint.tsx
|
|
173
171
|
import { useLayoutEffect, useState as useState2 } from "react";
|
|
@@ -797,7 +795,7 @@ import { usePromise as usePromise8 } from "@xylabs/react-promise";
|
|
|
797
795
|
import { assertEx as assertEx2 } from "@xylabs/assert";
|
|
798
796
|
import { GenericPayloadDivinerConfigSchema } from "@xyo-network/diviner-payload-generic";
|
|
799
797
|
import { PayloadDivinerQuerySchema } from "@xyo-network/diviner-payload-model";
|
|
800
|
-
import { BaseEmitter } from "@xyo-network/module-
|
|
798
|
+
import { BaseEmitter } from "@xyo-network/module-event-emitter";
|
|
801
799
|
var BridgeActivityHelper = class extends BaseEmitter {
|
|
802
800
|
get archivist() {
|
|
803
801
|
return assertEx2(this.params.archivist.deref(), () => "Archivist is missing");
|
|
@@ -1901,9 +1899,9 @@ var DefaultComingSoon = ({
|
|
|
1901
1899
|
};
|
|
1902
1900
|
|
|
1903
1901
|
// src/modules/Dapp/modules/Window/DappWindow.tsx
|
|
1902
|
+
import { ErrorBoundary, ErrorRender as ErrorRender3 } from "@xylabs/react-error";
|
|
1904
1903
|
import { FlexCol as FlexCol10 } from "@xylabs/react-flexbox";
|
|
1905
1904
|
import { NameTransforms as NameTransforms4 } from "@xyo-network/os-runtime";
|
|
1906
|
-
import { ErrorBoundary, ErrorRender as ErrorRender3 } from "@xyo-network/react-error";
|
|
1907
1905
|
import { NodeProvider as NodeProvider2 } from "@xyo-network/react-node";
|
|
1908
1906
|
import { WalletProvider } from "@xyo-network/react-wallet";
|
|
1909
1907
|
import { useMemo as useMemo12 } from "react";
|
|
@@ -1965,10 +1963,10 @@ import {
|
|
|
1965
1963
|
DialogTitle,
|
|
1966
1964
|
Typography as Typography5
|
|
1967
1965
|
} from "@mui/material";
|
|
1966
|
+
import { ErrorRender } from "@xylabs/react-error";
|
|
1968
1967
|
import { FlexCol as FlexCol5, FlexRow as FlexRow6 } from "@xylabs/react-flexbox";
|
|
1969
1968
|
import { RegisteredNames } from "@xyo-network/os-model";
|
|
1970
1969
|
import { AccessNodeQueries } from "@xyo-network/os-runtime";
|
|
1971
|
-
import { ErrorRender } from "@xyo-network/react-error";
|
|
1972
1970
|
import { useState as useState9 } from "react";
|
|
1973
1971
|
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1974
1972
|
var DappAccessDialog = ({
|
|
@@ -1984,19 +1982,22 @@ var DappAccessDialog = ({
|
|
|
1984
1982
|
setNoPayloadsInserted(false);
|
|
1985
1983
|
props.onClose?.({}, "escapeKeyDown");
|
|
1986
1984
|
};
|
|
1987
|
-
const handleAllow =
|
|
1985
|
+
const handleAllow = () => {
|
|
1988
1986
|
if (accessRequest && registeredDappAccess && dappNode) {
|
|
1989
1987
|
try {
|
|
1990
1988
|
switch (registeredDappAccess.name) {
|
|
1991
1989
|
case RegisteredNames: {
|
|
1992
1990
|
const accessNodeQueries = new AccessNodeQueries(dappNode, accessRequest, registeredDappAccess);
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
1991
|
+
accessNodeQueries.run().then((payloads) => {
|
|
1992
|
+
if (payloads.length === 0) {
|
|
1993
|
+
setNoPayloadsInserted(true);
|
|
1994
|
+
} else {
|
|
1995
|
+
onClose();
|
|
1996
|
+
}
|
|
1997
|
+
return;
|
|
1998
|
+
}).catch((e) => {
|
|
1999
|
+
setError(e);
|
|
2000
|
+
});
|
|
2000
2001
|
}
|
|
2001
2002
|
default: {
|
|
2002
2003
|
const message = `no helper for interface ${registeredDappAccess.name} found`;
|
|
@@ -2078,7 +2079,7 @@ var DappAccessDialog = ({
|
|
|
2078
2079
|
};
|
|
2079
2080
|
|
|
2080
2081
|
// src/modules/Dapp/modules/access-interface/components/Flexbox.tsx
|
|
2081
|
-
import { ErrorRender as ErrorRender2 } from "@
|
|
2082
|
+
import { ErrorRender as ErrorRender2 } from "@xylabs/react-error";
|
|
2082
2083
|
|
|
2083
2084
|
// src/modules/Dapp/modules/access-interface/hooks/useDialogState.tsx
|
|
2084
2085
|
import { usePromise as usePromise10 } from "@xylabs/react-promise";
|
|
@@ -2878,7 +2879,7 @@ var BottomMenuArea = ({ openDebug, backgroundColor }) => {
|
|
|
2878
2879
|
/* @__PURE__ */ jsx23(Tooltip3, { title: "Debug Node View", children: /* @__PURE__ */ jsx23(IconButton3, { onClick: openDebug, sx: { color: "#fff" }, children: /* @__PURE__ */ jsx23(BugReport2, {}) }) }),
|
|
2879
2880
|
/* @__PURE__ */ jsx23(Tooltip3, { title: "Toggle Light/Dark Mode", children: /* @__PURE__ */ jsx23("span", { children: /* @__PURE__ */ jsx23(DarkModeIconButtonForColorScheme2, { defaultLightModeColor: "warning" }) }) })
|
|
2880
2881
|
] }),
|
|
2881
|
-
/* @__PURE__ */ jsx23(FlexRow7, { flexWrap: "wrap", children: socialLinksData.map((social
|
|
2882
|
+
/* @__PURE__ */ jsx23(FlexRow7, { flexWrap: "wrap", children: socialLinksData.map((social) => /* @__PURE__ */ jsx23(RotationAnimation, { rotation: 20, children: /* @__PURE__ */ jsx23(
|
|
2882
2883
|
IconButton3,
|
|
2883
2884
|
{
|
|
2884
2885
|
sx: { color: "#fff" },
|
|
@@ -2886,7 +2887,7 @@ var BottomMenuArea = ({ openDebug, backgroundColor }) => {
|
|
|
2886
2887
|
target: "_blank",
|
|
2887
2888
|
children: social.icon
|
|
2888
2889
|
}
|
|
2889
|
-
) },
|
|
2890
|
+
) }, social.link)) }),
|
|
2890
2891
|
/* @__PURE__ */ jsxs11(FlexRow7, { padding: 1, justifyContent: "center", gap: 0.5, children: [
|
|
2891
2892
|
/* @__PURE__ */ jsx23(Typography7, { variant: "body2", color: theme.palette.text.primary, children: "Powered By" }),
|
|
2892
2893
|
/* @__PURE__ */ jsx23(
|
|
@@ -3506,7 +3507,7 @@ var DappPage = ({
|
|
|
3506
3507
|
return /* @__PURE__ */ jsx33(
|
|
3507
3508
|
ThrownErrorBoundary,
|
|
3508
3509
|
{
|
|
3509
|
-
errorComponent: (error, boundaryName) => /* @__PURE__ */ jsx33(ErrorRenderWithSupportDefault, {
|
|
3510
|
+
errorComponent: (error, boundaryName) => /* @__PURE__ */ jsx33(ErrorRenderWithSupportDefault, { scope: boundaryName, error }),
|
|
3510
3511
|
rollbar,
|
|
3511
3512
|
scope: "DappPage",
|
|
3512
3513
|
children: /* @__PURE__ */ jsx33(NetworkReadyFlexBox, { skipCheck: !checkNetwork, children: container ? /* @__PURE__ */ jsx33(Container3, { disableGutters: true, maxWidth: container === true ? "md" : container, children: noScroll ? /* @__PURE__ */ jsx33(
|
|
@@ -3901,7 +3902,7 @@ var WidgetCardExamples = () => {
|
|
|
3901
3902
|
|
|
3902
3903
|
// src/DappPathSwitcher.tsx
|
|
3903
3904
|
import { animated as animated3, useTransition } from "@react-spring/web";
|
|
3904
|
-
import { ErrorRender as ErrorRender4 } from "@
|
|
3905
|
+
import { ErrorRender as ErrorRender4 } from "@xylabs/react-error";
|
|
3905
3906
|
import { Fragment as Fragment8, jsx as jsx42 } from "react/jsx-runtime";
|
|
3906
3907
|
var DappPathSwitcher = ({ activePath, pathToComponent }) => {
|
|
3907
3908
|
const transitions = useTransition(activePath, {
|