@xyo-network/os-react-runtime 5.0.12 → 6.0.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 +102 -91
- package/dist/browser/index.mjs.map +1 -1
- package/dist/types/helpers/BridgeActivityHelper.d.ts +4 -20
- package/dist/types/helpers/BridgeActivityHelper.d.ts.map +1 -1
- package/dist/types/modules/Dapp/Button/StyledComponents.d.ts.map +1 -1
- package/dist/types/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.d.ts.map +1 -1
- package/dist/types/modules/Dapp/modules/Window/components/menu/Drawer.d.ts.map +1 -1
- package/dist/types/modules/Dapp/modules/Window/components/menu/StyledListItems.d.ts +1 -1
- package/dist/types/modules/Dapp/modules/Window/hooks/useExposedNode.d.ts +1 -9
- package/dist/types/modules/Dapp/modules/Window/hooks/useExposedNode.d.ts.map +1 -1
- package/dist/types/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPoint.d.ts.map +1 -1
- package/dist/types/modules/dapps/accounts/hooks/useAccountArchivist.d.ts +1 -9
- package/dist/types/modules/dapps/accounts/hooks/useAccountArchivist.d.ts.map +1 -1
- package/dist/types/modules/dapps/table/head/components/StyledTableRowHeader.d.ts.map +1 -1
- package/dist/types/modules/widgets/StackOfWidgets.d.ts.map +1 -1
- package/dist/types/modules/widgets/Types/BarGraph/StyledLinearProgress.d.ts.map +1 -1
- package/dist/types/modules/widgets/Types/Tables/BooleanTable.d.ts.map +1 -1
- package/dist/types/modules/widgets/WidgetCard.d.ts.map +1 -1
- package/dist/types/settings/Theme/ThemeCssVars.d.ts.map +1 -1
- package/package.json +59 -60
- package/src/helpers/BridgeActivityHelper.ts +2 -2
- package/src/helpers/BrowserLocator.ts +4 -4
- package/src/modules/Dapp/Button/LaunchFrame.tsx +1 -1
- package/src/modules/Dapp/Button/StyledComponents.tsx +7 -6
- package/src/modules/Dapp/Button/StyledDappIconBuilder.tsx +1 -1
- package/src/modules/Dapp/modules/Window/Chrome.tsx +2 -2
- package/src/modules/Dapp/modules/Window/LoadingFlexbox.tsx +2 -2
- package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.tsx +3 -2
- package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/DeveloperLinkSection.tsx +1 -1
- package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/SummarySection.tsx +1 -1
- package/src/modules/Dapp/modules/Window/components/menu/BottomMenuArea.tsx +3 -3
- package/src/modules/Dapp/modules/Window/components/menu/BottomNavigation.tsx +1 -1
- package/src/modules/Dapp/modules/Window/components/menu/Drawer.tsx +13 -8
- package/src/modules/Dapp/modules/Window/components/menu/StyledListItems.tsx +1 -1
- package/src/modules/Dapp/modules/Window/components/menu/stories/Drawer.stories.tsx +2 -1
- package/src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappInjectableParamsFromRoute.tsx +1 -1
- package/src/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPoint.tsx +3 -4
- package/src/modules/dapps/table/head/components/StyledTableRowHeader.tsx +1 -1
- package/src/modules/network/components/LoadingIndicator.tsx +4 -4
- package/src/modules/widgets/StackOfWidgets.tsx +3 -4
- package/src/modules/widgets/Types/BarGraph/StyledLinearProgress.tsx +3 -4
- package/src/modules/widgets/Types/Tables/BooleanTable.tsx +5 -4
- package/src/modules/widgets/WidgetCard.tsx +4 -3
- package/src/settings/Theme/ThemeCssVars.ts +8 -7
- package/src/utils/DappInstallTypeFilters.ts +2 -2
|
@@ -1,33 +1,17 @@
|
|
|
1
1
|
import type { BaseParams } from '@xylabs/base';
|
|
2
|
+
import { BaseEmitter } from '@xylabs/events';
|
|
2
3
|
import type { Address, Hash } from '@xylabs/hex';
|
|
3
4
|
import type { EmptyObject } from '@xylabs/object';
|
|
4
5
|
import type { ArchivistInstance, NextOptions } from '@xyo-network/archivist-model';
|
|
5
6
|
import type { DivinerInstance } from '@xyo-network/diviner-model';
|
|
6
7
|
import type { PayloadDivinerQueryPayload } from '@xyo-network/diviner-payload-model';
|
|
7
|
-
import { ModuleBaseEmitter } from '@xyo-network/module-event-emitter';
|
|
8
8
|
export interface BridgeActivityHelperParams extends BaseParams {
|
|
9
9
|
archivist: WeakRef<ArchivistInstance>;
|
|
10
10
|
diviner: WeakRef<DivinerInstance>;
|
|
11
11
|
}
|
|
12
|
-
export declare class BridgeActivityHelper<TParams extends BridgeActivityHelperParams | void = void> extends
|
|
13
|
-
get archivist(): ArchivistInstance<import("@
|
|
14
|
-
|
|
15
|
-
addToResolvers?: boolean;
|
|
16
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
17
|
-
allowNameResolution?: boolean;
|
|
18
|
-
config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/archivist-model").ArchivistConfig>;
|
|
19
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
20
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
21
|
-
} & import("@xyo-network/module-model").ModuleChildrenParams & import("@xyo-network/archivist-model").ArchivistParamFields & object, import("@xyo-network/archivist-model").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>;
|
|
22
|
-
get diviner(): DivinerInstance<import("@xylabs/base").BaseParamsFields & {
|
|
23
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
24
|
-
addToResolvers?: boolean;
|
|
25
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
26
|
-
allowNameResolution?: boolean;
|
|
27
|
-
config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/diviner-model").DivinerConfig>;
|
|
28
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
29
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
30
|
-
} & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/payload-model").Payload, import("@xyo-network/payload-model").Payload, import("@xyo-network/diviner-model").DivinerModuleEventData>;
|
|
12
|
+
export declare class BridgeActivityHelper<TParams extends BridgeActivityHelperParams | void = void> extends BaseEmitter<TParams extends BridgeActivityHelperParams ? TParams : BridgeActivityHelperParams> {
|
|
13
|
+
get archivist(): ArchivistInstance<import("@xyo-network/archivist-model").ArchivistParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/archivist-model").ArchivistConfig>>, import("@xyo-network/archivist-model").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>;
|
|
14
|
+
get diviner(): DivinerInstance<import("@xyo-network/diviner-model").DivinerParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/diviner-model").DivinerConfig>>, import("@xyo-network/payload-model").Payload, import("@xyo-network/payload-model").Payload, import("@xyo-network/diviner-model").DivinerModuleEventData>;
|
|
31
15
|
next(options?: NextOptions<Hash>): import("@xylabs/promise").PromisableArray<import("@xyo-network/payload-model").WithStorageMeta<import("@xyo-network/payload-model").WithStorageMeta<import("@xyo-network/payload-model").Payload>>>;
|
|
32
16
|
nextByAddress(address: Address, options?: Pick<PayloadDivinerQueryPayload<EmptyObject>, 'cursor' | 'order'>): Promise<{
|
|
33
17
|
schema: import("@xyo-network/payload-model").Schema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BridgeActivityHelper.d.ts","sourceRoot":"","sources":["../../../src/helpers/BridgeActivityHelper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAA;
|
|
1
|
+
{"version":3,"file":"BridgeActivityHelper.d.ts","sourceRoot":"","sources":["../../../src/helpers/BridgeActivityHelper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAA;AAGpF,MAAM,WAAW,0BAA2B,SAAQ,UAAU;IAC5D,SAAS,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAA;IACrC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,CAAA;CAClC;AAED,qBAAa,oBAAoB,CAAC,OAAO,SAAS,0BAA0B,GAAG,IAAI,GAAG,IAAI,CAAE,SAAQ,WAAW,CAC7G,OAAO,SAAS,0BAA0B,GAAG,OAAO,GAAG,0BAA0B,CAClF;IACC,IAAI,SAAS,0SAEZ;IAED,IAAI,OAAO,0UAIV;IAED,IAAI,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC,IAAI,CAAC;IAIhC,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,0BAA0B,CAAC,WAAW,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;;;;CAM5G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledComponents.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Dapp/Button/StyledComponents.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StyledComponents.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Dapp/Button/StyledComponents.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,sBAAsB;sBAIf,MAAM;UA0BxB,CAAA;AAEF,eAAO,MAAM,cAAc,yPAaxB,CAAA;AAEH,eAAO,MAAM,qBAAqB,yPAA8E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultComingSoon.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DefaultComingSoon.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,OAAO,CAAC,EAAE,WAAW,CAAA;CACtB;AAID,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA0D9D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/Dapp/modules/Window/components/menu/Drawer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/Dapp/modules/Window/components/menu/Drawer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAkBhD,OAAO,KAAK,EACV,QAAQ,EAAE,WAAW,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW,EACnE,MAAM,uBAAuB,CAAA;AAE9B,OAAO,KAA8B,MAAM,OAAO,CAAA;AAQlD,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B,SAAS,CAAC,EAAE,WAAW,EAAE,CAAA;IACzB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,OAAO,CAAC,EAAE,WAAW,CAAA;CACtB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsHxD,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const StyledMenuIconWrapSpan: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof import("react").ClassAttributes<HTMLSpanElement> | keyof import("react").HTMLAttributes<HTMLSpanElement>>, {}>;
|
|
2
|
-
export declare const StyledListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "classes" | "className" | "style" | "children" | "sx" | "autoFocus" | "tabIndex" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "dense" | "
|
|
2
|
+
export declare const StyledListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "classes" | "className" | "style" | "children" | "sx" | "autoFocus" | "tabIndex" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "dense" | "divider" | "disableGutters" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
3
3
|
active?: boolean;
|
|
4
4
|
}, {}, {}>;
|
|
5
5
|
//# sourceMappingURL=StyledListItems.d.ts.map
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
export declare const useExposedNode: () => import("@xyo-network/node-model").NodeInstance<import("@
|
|
2
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
3
|
-
addToResolvers?: boolean;
|
|
4
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
5
|
-
allowNameResolution?: boolean;
|
|
6
|
-
config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/node-model").NodeConfig>;
|
|
7
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
8
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
9
|
-
} & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/node-model").NodeModuleEventData> | undefined;
|
|
1
|
+
export declare const useExposedNode: () => import("@xyo-network/node-model").NodeInstance<import("@xyo-network/node-model").NodeParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/node-model").NodeConfig>>, import("@xyo-network/node-model").NodeModuleEventData> | undefined;
|
|
10
2
|
//# sourceMappingURL=useExposedNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExposedNode.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/Dapp/modules/Window/hooks/useExposedNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"useExposedNode.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/Dapp/modules/Window/hooks/useExposedNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,0QAG1B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TwoToneBulletPoint.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPoint.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"TwoToneBulletPoint.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPoint.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAG7C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAgBjD,CAAA"}
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
export declare const useAccountArchivist: () => [WeakRef<import("@xyo-network/archivist-model").ArchivistInstance<import("@
|
|
2
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
3
|
-
addToResolvers?: boolean;
|
|
4
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
5
|
-
allowNameResolution?: boolean;
|
|
6
|
-
config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/archivist-model").ArchivistConfig>;
|
|
7
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
8
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
9
|
-
} & import("@xyo-network/module-model").ModuleChildrenParams & import("@xyo-network/archivist-model").ArchivistParamFields & object, import("@xyo-network/archivist-model").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>> | undefined, Error | undefined];
|
|
1
|
+
export declare const useAccountArchivist: () => [WeakRef<import("@xyo-network/archivist-model").ArchivistInstance<import("@xyo-network/archivist-model").ArchivistParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/archivist-model").ArchivistConfig>>, import("@xyo-network/archivist-model").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>> | undefined, Error | undefined];
|
|
10
2
|
//# sourceMappingURL=useAccountArchivist.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAccountArchivist.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/dapps/accounts/hooks/useAccountArchivist.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"useAccountArchivist.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/dapps/accounts/hooks/useAccountArchivist.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,8XAE/B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledTableRowHeader.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/dapps/table/head/components/StyledTableRowHeader.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"StyledTableRowHeader.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/dapps/table/head/components/StyledTableRowHeader.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,o6KAGwE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackOfWidgets.d.ts","sourceRoot":"","sources":["../../../../src/modules/widgets/StackOfWidgets.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StackOfWidgets.d.ts","sourceRoot":"","sources":["../../../../src/modules/widgets/StackOfWidgets.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAgIvC,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAelC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledLinearProgress.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/widgets/Types/BarGraph/StyledLinearProgress.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StyledLinearProgress.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/widgets/Types/BarGraph/StyledLinearProgress.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,qOAQ9B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BooleanTable.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/widgets/Types/Tables/BooleanTable.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"BooleanTable.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/widgets/Types/Tables/BooleanTable.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAKzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,OAAO,CAAA;CACf;AAUD,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,KAAK,EAAE,0BAA0B,EAAE,CAAA;IACnC,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,UAAU,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,eAAO,MAAM,mBAAmB,+5KAG7B,CAAA;AAEH,eAAO,MAAM,sBAAsB,gzQAIhC,CAAA;AAEH,eAAO,MAAM,iBAAiB,0zQAG3B,CAAA;AAEH,eAAO,MAAM,kBAAkB,0zQAG5B,CAAA;AAKH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA8BpD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetCard.d.ts","sourceRoot":"","sources":["../../../../src/modules/widgets/WidgetCard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WidgetCard.d.ts","sourceRoot":"","sources":["../../../../src/modules/widgets/WidgetCard.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAG9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,SAAS,CAAA;IACxB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAsFhD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeCssVars.d.ts","sourceRoot":"","sources":["../../../../src/settings/Theme/ThemeCssVars.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeCssVars.d.ts","sourceRoot":"","sources":["../../../../src/settings/Theme/ThemeCssVars.ts"],"names":[],"mappings":"AAKA,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,cAAc;QACtB,qBAAqB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAA;QACpD,0BAA0B,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAA;QACzD,YAAY,EAAE,MAAM,CAAA;QACpB,iBAAiB,EAAE,MAAM,CAAA;KAC1B;IACD,UAAU,OAAO;QACf,qBAAqB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAA;QACpD,0BAA0B,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAA;QACzD,YAAY,EAAE,MAAM,CAAA;QACpB,iBAAiB,EAAE,MAAM,CAAA;KAC1B;CACF;AAED,eAAO,MAAM,qBAAqB,YAAY,CAAA;AAC9C,eAAO,MAAM,0BAA0B,YAAY,CAAA;AA+DnD,eAAO,MAAM,YAAY,+BA8IvB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/os-react-runtime",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,77 +29,76 @@
|
|
|
29
29
|
"main": "dist/browser/index.mjs",
|
|
30
30
|
"types": "dist/types/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@react-spring/web": "^
|
|
33
|
-
"@xylabs/array": "^4.
|
|
34
|
-
"@xylabs/assert": "^4.
|
|
35
|
-
"@xylabs/base": "^4.
|
|
36
|
-
"@xylabs/
|
|
37
|
-
"@xylabs/
|
|
38
|
-
"@xylabs/
|
|
39
|
-
"@xylabs/
|
|
40
|
-
"@xylabs/
|
|
41
|
-
"@xylabs/react-
|
|
42
|
-
"@xylabs/react-
|
|
43
|
-
"@xylabs/react-
|
|
44
|
-
"@xylabs/react-
|
|
45
|
-
"@xylabs/react-
|
|
46
|
-
"@xylabs/react-
|
|
47
|
-
"@xylabs/react-
|
|
48
|
-
"@
|
|
49
|
-
"@xyo-network/archivist-
|
|
50
|
-
"@xyo-network/
|
|
51
|
-
"@xyo-network/bios-
|
|
52
|
-
"@xyo-network/
|
|
53
|
-
"@xyo-network/diviner-
|
|
54
|
-
"@xyo-network/diviner-
|
|
55
|
-
"@xyo-network/diviner-payload-
|
|
56
|
-
"@xyo-network/diviner-payload-
|
|
57
|
-
"@xyo-network/
|
|
58
|
-
"@xyo-network/kernel
|
|
59
|
-
"@xyo-network/
|
|
60
|
-
"@xyo-network/module-factory-locator": "^
|
|
61
|
-
"@xyo-network/module-model": "^
|
|
62
|
-
"@xyo-network/node-model": "^
|
|
63
|
-
"@xyo-network/os-model": "^
|
|
64
|
-
"@xyo-network/os-react-debug": "^
|
|
65
|
-
"@xyo-network/os-react-model": "^
|
|
66
|
-
"@xyo-network/os-runtime": "^
|
|
67
|
-
"@xyo-network/payload-model": "^
|
|
68
|
-
"@xyo-network/react-archivist": "^
|
|
69
|
-
"@xyo-network/react-card": "^
|
|
70
|
-
"@xyo-network/react-form-credit-card": "^
|
|
71
|
-
"@xyo-network/react-node": "^
|
|
72
|
-
"@xyo-network/react-shared": "^
|
|
73
|
-
"@xyo-network/react-table": "^
|
|
74
|
-
"@xyo-network/react-wallet": "^
|
|
75
|
-
"@xyo-network/wallet-model": "^
|
|
32
|
+
"@react-spring/web": "^10.0.1",
|
|
33
|
+
"@xylabs/array": "^4.12.31",
|
|
34
|
+
"@xylabs/assert": "^4.12.31",
|
|
35
|
+
"@xylabs/base": "^4.12.31",
|
|
36
|
+
"@xylabs/events": "^4.12.31",
|
|
37
|
+
"@xylabs/forget": "^4.12.31",
|
|
38
|
+
"@xylabs/hex": "^4.12.31",
|
|
39
|
+
"@xylabs/object": "^4.12.31",
|
|
40
|
+
"@xylabs/promise": "^4.12.31",
|
|
41
|
+
"@xylabs/react-animation": "^6.3.7",
|
|
42
|
+
"@xylabs/react-async-effect": "^6.3.7",
|
|
43
|
+
"@xylabs/react-button": "^6.3.7",
|
|
44
|
+
"@xylabs/react-error": "^6.3.7",
|
|
45
|
+
"@xylabs/react-flexbox": "^6.3.7",
|
|
46
|
+
"@xylabs/react-link": "^6.3.7",
|
|
47
|
+
"@xylabs/react-promise": "^6.3.7",
|
|
48
|
+
"@xylabs/react-theme": "^6.3.7",
|
|
49
|
+
"@xyo-network/archivist-indexeddb": "^4.0.1",
|
|
50
|
+
"@xyo-network/archivist-model": "^4.0.1",
|
|
51
|
+
"@xyo-network/bios-browser": "^6.0.0",
|
|
52
|
+
"@xyo-network/bios-model": "^6.0.0",
|
|
53
|
+
"@xyo-network/diviner-boundwitness-indexeddb": "^4.0.1",
|
|
54
|
+
"@xyo-network/diviner-model": "^4.0.1",
|
|
55
|
+
"@xyo-network/diviner-payload-generic": "^4.0.1",
|
|
56
|
+
"@xyo-network/diviner-payload-indexeddb": "^4.0.1",
|
|
57
|
+
"@xyo-network/diviner-payload-model": "^4.0.1",
|
|
58
|
+
"@xyo-network/kernel": "^6.0.0",
|
|
59
|
+
"@xyo-network/kernel-model": "^6.0.0",
|
|
60
|
+
"@xyo-network/module-factory-locator": "^4.0.1",
|
|
61
|
+
"@xyo-network/module-model": "^4.0.1",
|
|
62
|
+
"@xyo-network/node-model": "^4.0.1",
|
|
63
|
+
"@xyo-network/os-model": "^6.0.0",
|
|
64
|
+
"@xyo-network/os-react-debug": "^6.0.0",
|
|
65
|
+
"@xyo-network/os-react-model": "^6.0.0",
|
|
66
|
+
"@xyo-network/os-runtime": "^6.0.0",
|
|
67
|
+
"@xyo-network/payload-model": "^4.0.1",
|
|
68
|
+
"@xyo-network/react-archivist": "^6.0.0",
|
|
69
|
+
"@xyo-network/react-card": "^6.0.0",
|
|
70
|
+
"@xyo-network/react-form-credit-card": "^6.0.0",
|
|
71
|
+
"@xyo-network/react-node": "^6.0.0",
|
|
72
|
+
"@xyo-network/react-shared": "^6.0.0",
|
|
73
|
+
"@xyo-network/react-table": "^6.0.0",
|
|
74
|
+
"@xyo-network/react-wallet": "^6.0.0",
|
|
75
|
+
"@xyo-network/wallet-model": "^4.0.1",
|
|
76
76
|
"luxon": "^3.6.1",
|
|
77
77
|
"react-helmet": "^6.1.0",
|
|
78
78
|
"react-icons": "^5.5.0",
|
|
79
|
-
"react-router-dom": "^7.6.
|
|
79
|
+
"react-router-dom": "^7.6.3",
|
|
80
80
|
"react-use-gesture": "^9.1.3",
|
|
81
|
-
"rollbar": "^
|
|
81
|
+
"rollbar": "^3.0.0-alpha.2"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@emotion/react": "^11.14.0",
|
|
85
|
-
"@emotion/styled": "^11.14.
|
|
86
|
-
"@mui/icons-material": "^7.
|
|
87
|
-
"@mui/material": "^7.
|
|
88
|
-
"@mui/system": "^7.
|
|
85
|
+
"@emotion/styled": "^11.14.1",
|
|
86
|
+
"@mui/icons-material": "^7.2.0",
|
|
87
|
+
"@mui/material": "^7.2.0",
|
|
88
|
+
"@mui/system": "^7.2.0",
|
|
89
89
|
"@mui/x-tree-view": "^7.29.1",
|
|
90
|
-
"@storybook/react": "^8.6.12",
|
|
91
90
|
"@types/luxon": "^3.6.2",
|
|
92
|
-
"@types/react": "^19.1.
|
|
91
|
+
"@types/react": "^19.1.8",
|
|
93
92
|
"@types/react-helmet": "^6.1.11",
|
|
94
|
-
"@xylabs/ts-scripts-react-yarn3": "^6.5.
|
|
95
|
-
"@xylabs/ts-scripts-yarn3": "^6.5.
|
|
96
|
-
"@xylabs/tsconfig": "^6.5.
|
|
97
|
-
"@xylabs/tsconfig-dom": "^6.5.
|
|
98
|
-
"@xylabs/tsconfig-react": "^6.5.
|
|
99
|
-
"@xyo-network/module-events": "^
|
|
93
|
+
"@xylabs/ts-scripts-react-yarn3": "^6.5.12",
|
|
94
|
+
"@xylabs/ts-scripts-yarn3": "^6.5.12",
|
|
95
|
+
"@xylabs/tsconfig": "^6.5.12",
|
|
96
|
+
"@xylabs/tsconfig-dom": "^6.5.12",
|
|
97
|
+
"@xylabs/tsconfig-react": "^6.5.12",
|
|
98
|
+
"@xyo-network/module-events": "^4.0.1",
|
|
100
99
|
"react": "^19.1.0",
|
|
101
100
|
"react-dom": "^19.1.0",
|
|
102
|
-
"storybook": "^
|
|
101
|
+
"storybook": "^9.0.15",
|
|
103
102
|
"typescript": "^5.8.3"
|
|
104
103
|
},
|
|
105
104
|
"peerDependencies": {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/assert'
|
|
2
2
|
import type { BaseParams } from '@xylabs/base'
|
|
3
|
+
import { BaseEmitter } from '@xylabs/events'
|
|
3
4
|
import type { Address, Hash } from '@xylabs/hex'
|
|
4
5
|
import type { EmptyObject } from '@xylabs/object'
|
|
5
6
|
import type { ArchivistInstance, NextOptions } from '@xyo-network/archivist-model'
|
|
@@ -7,14 +8,13 @@ import type { DivinerInstance } from '@xyo-network/diviner-model'
|
|
|
7
8
|
import { GenericPayloadDivinerConfigSchema } from '@xyo-network/diviner-payload-generic'
|
|
8
9
|
import type { PayloadDivinerQueryPayload } from '@xyo-network/diviner-payload-model'
|
|
9
10
|
import { PayloadDivinerQuerySchema } from '@xyo-network/diviner-payload-model'
|
|
10
|
-
import { ModuleBaseEmitter } from '@xyo-network/module-event-emitter'
|
|
11
11
|
|
|
12
12
|
export interface BridgeActivityHelperParams extends BaseParams {
|
|
13
13
|
archivist: WeakRef<ArchivistInstance>
|
|
14
14
|
diviner: WeakRef<DivinerInstance>
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export class BridgeActivityHelper<TParams extends BridgeActivityHelperParams | void = void> extends
|
|
17
|
+
export class BridgeActivityHelper<TParams extends BridgeActivityHelperParams | void = void> extends BaseEmitter<
|
|
18
18
|
TParams extends BridgeActivityHelperParams ? TParams : BridgeActivityHelperParams
|
|
19
19
|
> {
|
|
20
20
|
get archivist() {
|
|
@@ -7,11 +7,11 @@ import { ModuleFactoryLocator } from '@xyo-network/module-factory-locator'
|
|
|
7
7
|
export const GenericPayloadDivinerTags = { 'network.xyo.generic.payload.diviner': 'GenericPayloadDiviner' }
|
|
8
8
|
|
|
9
9
|
export const BrowserLocator = new ModuleFactoryLocator()
|
|
10
|
-
BrowserLocator.register(GenericPayloadDiviner, GenericPayloadDivinerTags)
|
|
11
|
-
BrowserLocator.register(IndexedDbArchivist, { 'network.xyo.archivist.persistence.scope': 'device' }, 'network.xyo.archivist.config')
|
|
12
|
-
BrowserLocator.register(IndexedDbPayloadDiviner, { 'network.xyo.archivist.persistence.scope': 'device' }, 'network.xyo.diviner.payload.config')
|
|
10
|
+
BrowserLocator.register(GenericPayloadDiviner.factory(), GenericPayloadDivinerTags)
|
|
11
|
+
BrowserLocator.register(IndexedDbArchivist.factory(), { 'network.xyo.archivist.persistence.scope': 'device' }, 'network.xyo.archivist.config')
|
|
12
|
+
BrowserLocator.register(IndexedDbPayloadDiviner.factory(), { 'network.xyo.archivist.persistence.scope': 'device' }, 'network.xyo.diviner.payload.config')
|
|
13
13
|
BrowserLocator.register(
|
|
14
|
-
IndexedDbBoundWitnessDiviner,
|
|
14
|
+
IndexedDbBoundWitnessDiviner.factory(),
|
|
15
15
|
{ 'network.xyo.archivist.persistence.scope': 'device' },
|
|
16
16
|
'network.xyo.diviner.boundwitness.config',
|
|
17
17
|
)
|
|
@@ -61,7 +61,7 @@ export const DappLaunchFrame: React.FC<DappLaunchFrameProps> = ({
|
|
|
61
61
|
style={{
|
|
62
62
|
...scaleProps,
|
|
63
63
|
alignItems: 'start',
|
|
64
|
-
background: bgColor ?? theme.palette.background.default,
|
|
64
|
+
background: bgColor ?? theme.vars?.palette.background.default,
|
|
65
65
|
display: 'flex',
|
|
66
66
|
height: '100%',
|
|
67
67
|
justifyContent: 'start',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { styled } from '@mui/material'
|
|
2
2
|
import { ButtonEx } from '@xylabs/react-button'
|
|
3
|
+
import { alphaCss } from '@xylabs/react-theme'
|
|
3
4
|
import { TypographyEx } from '@xyo-network/react-shared'
|
|
4
5
|
|
|
5
6
|
const borderRadiusFactor = 1.5
|
|
@@ -15,7 +16,7 @@ export const StyledDappIconButtonEx = styled(ButtonEx, {
|
|
|
15
16
|
'&:before': {
|
|
16
17
|
WebkitBackdropFilter: 'blur(20px)',
|
|
17
18
|
backdropFilter: 'blur(20px)',
|
|
18
|
-
backgroundColor:
|
|
19
|
+
backgroundColor: alphaCss(theme.vars?.palette.background.paper ?? '#fff', 0.5),
|
|
19
20
|
borderRadius: theme.spacing(borderRadiusFactor),
|
|
20
21
|
content: "''",
|
|
21
22
|
inset: 0,
|
|
@@ -28,9 +29,9 @@ export const StyledDappIconButtonEx = styled(ButtonEx, {
|
|
|
28
29
|
'&:hover:before': { opacity: 1 },
|
|
29
30
|
'WebkitBackdropFilter': 'blur(20px)',
|
|
30
31
|
'backdropFilter': 'blur(20px)',
|
|
31
|
-
'backgroundColor':
|
|
32
|
+
'backgroundColor': alphaCss(theme.vars?.palette.background.paper ?? '#fff', 0.5),
|
|
32
33
|
'borderRadius': theme.spacing(borderRadiusFactor),
|
|
33
|
-
'color': theme.palette.text.primary,
|
|
34
|
+
'color': theme.vars?.palette.text.primary,
|
|
34
35
|
'position': 'relative',
|
|
35
36
|
'transition': 'transform 0.15s linear',
|
|
36
37
|
}
|
|
@@ -39,14 +40,14 @@ export const StyledDappIconButtonEx = styled(ButtonEx, {
|
|
|
39
40
|
export const StyledDappName = styled(TypographyEx, { name: 'StyledDappName' })(({ theme }) => ({
|
|
40
41
|
// WebkitBoxOrient: 'vertical',
|
|
41
42
|
WebkitLineClamp: 2,
|
|
42
|
-
color: theme.palette.text.primary,
|
|
43
|
+
color: theme.vars?.palette.text.primary,
|
|
43
44
|
flexWrap: 'wrap',
|
|
44
45
|
fontWeight: 700,
|
|
45
46
|
letterSpacing: '-0.5px',
|
|
46
47
|
lineClamp: 2,
|
|
47
48
|
textAlign: 'center',
|
|
48
49
|
textOverflow: 'ellipsis',
|
|
49
|
-
textShadow: `1px 1px 3px ${
|
|
50
|
+
textShadow: `1px 1px 3px ${alphaCss(theme.vars?.palette.common.black ?? '#000', 0.3)}`,
|
|
50
51
|
whiteSpace: 'initial',
|
|
51
52
|
wordWrap: 'break-word',
|
|
52
53
|
}))
|
|
@@ -11,7 +11,7 @@ export const StyledDappIconBuilder = (DappIcon: SvgIconComponent) =>
|
|
|
11
11
|
name: 'StyledDappIcon',
|
|
12
12
|
shouldForwardProp: key => !['iconSize'].includes(key as string),
|
|
13
13
|
})<StyledDappIconBuilderProps>(({ iconSize, theme }) => ({
|
|
14
|
-
color: theme.palette.text.primary,
|
|
14
|
+
color: theme.vars?.palette.text.primary,
|
|
15
15
|
height: iconSize,
|
|
16
16
|
width: iconSize,
|
|
17
17
|
}))
|
|
@@ -29,7 +29,7 @@ const DappChromeSmall: React.FC<DappChromeBaseProps> = ({
|
|
|
29
29
|
alignItems="stretch"
|
|
30
30
|
id="dapp-chrome-small"
|
|
31
31
|
justifyContent="start"
|
|
32
|
-
sx={{ background: (theme: Theme) => theme.palette.background.default }}
|
|
32
|
+
sx={{ background: (theme: Theme) => theme.vars?.palette.background.default }}
|
|
33
33
|
>
|
|
34
34
|
{appBar}
|
|
35
35
|
<FlexGrowCol
|
|
@@ -55,7 +55,7 @@ export const DappChromeLarge: React.FC<DappChromeBaseProps> = ({
|
|
|
55
55
|
alignItems="stretch"
|
|
56
56
|
id="dapp-chrome-large"
|
|
57
57
|
justifyContent="start"
|
|
58
|
-
sx={{ background: (theme: Theme) => theme.palette.background.default }}
|
|
58
|
+
sx={{ background: (theme: Theme) => theme.vars?.palette.background.default }}
|
|
59
59
|
>
|
|
60
60
|
{appBar}
|
|
61
61
|
<FlexGrowCol
|
|
@@ -87,8 +87,8 @@ export const DappLoadingFlexbox: React.FC<DappLoadingFlexBoxProps> = ({
|
|
|
87
87
|
|
|
88
88
|
const StyledSplashContainer = styled(FlexCol, { name: 'StyledSplashContainer' })(({ theme }) => {
|
|
89
89
|
return {
|
|
90
|
-
background: theme.palette.background.default,
|
|
91
|
-
color: theme.palette.text.primary,
|
|
90
|
+
background: theme.vars?.palette.background.default,
|
|
91
|
+
color: theme.vars?.palette.text.primary,
|
|
92
92
|
gap: theme.spacing(1),
|
|
93
93
|
height: '100%',
|
|
94
94
|
left: 0,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/* eslint-disable @eslint-react/no-array-index-key */
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
Card, CardContent, Chip, Container, Divider, Typography, useTheme,
|
|
4
4
|
} from '@mui/material'
|
|
5
5
|
import { FlexGrowCol, FlexRow } from '@xylabs/react-flexbox'
|
|
6
|
+
import { alphaCss } from '@xylabs/react-theme'
|
|
6
7
|
import type { DappName, DappVersion } from '@xyo-network/os-model'
|
|
7
8
|
import type { PropsWithChildren } from 'react'
|
|
8
9
|
import React from 'react'
|
|
@@ -45,7 +46,7 @@ export const DefaultComingSoon: React.FC<DefaultComingSoonProps> = ({
|
|
|
45
46
|
<Chip
|
|
46
47
|
label="This app is not yet publicly available on xyOS"
|
|
47
48
|
sx={{
|
|
48
|
-
backgroundColor:
|
|
49
|
+
backgroundColor: alphaCss(theme.vars?.palette.info.main ?? '#000', 0.2), color: theme.vars?.palette.info.main, width: '100%',
|
|
49
50
|
}}
|
|
50
51
|
>
|
|
51
52
|
</Chip>
|
package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/DeveloperLinkSection.tsx
CHANGED
|
@@ -19,7 +19,7 @@ export const DeveloperLinkSection: React.FC<DeveloperLinkSectionProps> = ({ deve
|
|
|
19
19
|
}}
|
|
20
20
|
{...props}
|
|
21
21
|
>
|
|
22
|
-
<LinkEx color={theme.palette.info.main} href={developerLink} target="_blank">
|
|
22
|
+
<LinkEx color={theme.vars?.palette.info.main} href={developerLink} target="_blank">
|
|
23
23
|
{developerLink}
|
|
24
24
|
</LinkEx>
|
|
25
25
|
</FlexGrowRow>
|
|
@@ -57,7 +57,7 @@ export const SummarySection: React.FC<SummarySectionProps> = ({
|
|
|
57
57
|
</FlexGrowCol>
|
|
58
58
|
<FlexGrowRow gap={0.5} alignItems="center" justifyContent="center">
|
|
59
59
|
<VerifiedRounded color="success" fontSize="small" />
|
|
60
|
-
<Typography variant="body1" color={theme.palette.success.main}>
|
|
60
|
+
<Typography variant="body1" color={theme.vars?.palette.success.main}>
|
|
61
61
|
XY Labs
|
|
62
62
|
</Typography>
|
|
63
63
|
</FlexGrowRow>
|
|
@@ -93,17 +93,17 @@ export const BottomMenuArea: React.FC<BottomMenuAreaProps> = ({ openDebug, backg
|
|
|
93
93
|
))}
|
|
94
94
|
</FlexRow>
|
|
95
95
|
<FlexRow padding={1} justifyContent="center" gap={0.5}>
|
|
96
|
-
<Typography variant="body2" color={theme.palette.text.primary}>
|
|
96
|
+
<Typography variant="body2" color={theme.vars?.palette.text.primary}>
|
|
97
97
|
Powered By
|
|
98
98
|
</Typography>
|
|
99
99
|
<img
|
|
100
|
-
style={{ color: theme.palette.text.primary, fill: theme.palette.text.primary }}
|
|
100
|
+
style={{ color: theme.vars?.palette.text.primary, fill: theme.vars?.palette.text.primary }}
|
|
101
101
|
src={XyoOSLogoWhite}
|
|
102
102
|
width="auto"
|
|
103
103
|
height="20px"
|
|
104
104
|
/>
|
|
105
105
|
</FlexRow>
|
|
106
|
-
<Typography variant="caption" color={theme.palette.text.primary}>
|
|
106
|
+
<Typography variant="caption" color={theme.vars?.palette.text.primary}>
|
|
107
107
|
Copyright © 2024 XY Labs, Inc.
|
|
108
108
|
</Typography>
|
|
109
109
|
<Stack gap={0.5} flexDirection="row">
|
|
@@ -64,5 +64,5 @@ export const DappBottomNavigation: React.FC<DappBottomNavigationProps> = ({
|
|
|
64
64
|
|
|
65
65
|
const StyledBottomNavigationAction = styled(BottomNavigationAction, { name: 'StyledBottomNavigationAction' })(({ theme }) => {
|
|
66
66
|
const darkMode = useIsDark()
|
|
67
|
-
return { '&.Mui-selected': { color: darkMode ? theme.palette.primary.main : theme.palette.secondary.main } }
|
|
67
|
+
return { '&.Mui-selected': { color: darkMode ? theme.vars?.palette.primary.main : theme.vars?.palette.secondary.main } }
|
|
68
68
|
})
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import type { DrawerProps } from '@mui/material'
|
|
3
3
|
import {
|
|
4
4
|
alpha,
|
|
5
|
-
darken,
|
|
6
5
|
Drawer,
|
|
7
6
|
List,
|
|
8
7
|
ListItem,
|
|
@@ -15,7 +14,9 @@ import {
|
|
|
15
14
|
import {
|
|
16
15
|
FlexCol, FlexGrowRow, FlexRow,
|
|
17
16
|
} from '@xylabs/react-flexbox'
|
|
18
|
-
import {
|
|
17
|
+
import {
|
|
18
|
+
alphaCss, darkenCss, useIsDark,
|
|
19
|
+
} from '@xylabs/react-theme'
|
|
19
20
|
import type {
|
|
20
21
|
DappName, DappNavItem, DappNavMenuConfig, DappVersion, XyOsContext,
|
|
21
22
|
} from '@xyo-network/os-model'
|
|
@@ -53,8 +54,8 @@ export const DappMenuDrawer: React.FC<DappMenuDrawerProps> = ({
|
|
|
53
54
|
const [path, setPath] = useState('')
|
|
54
55
|
const darkMode = useIsDark()
|
|
55
56
|
const theme = useTheme()
|
|
56
|
-
const drawerColor = darkMode ? theme.palette.background.paper :
|
|
57
|
-
const activeColor = theme.palette.primary.light
|
|
57
|
+
const drawerColor = darkMode ? theme.vars?.palette.background.paper : darkenCss(theme.vars?.palette.primary.main ?? '#fff', 0.5)
|
|
58
|
+
const activeColor = theme.vars?.palette.primary.light
|
|
58
59
|
|
|
59
60
|
useEffect(() => {
|
|
60
61
|
if (menuConfig?.defaultPath && menuItems && activePath) {
|
|
@@ -136,9 +137,13 @@ export const DappMenuDrawer: React.FC<DappMenuDrawerProps> = ({
|
|
|
136
137
|
/>
|
|
137
138
|
</ListItemIcon>
|
|
138
139
|
<ListItemText
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
slotProps={{
|
|
141
|
+
primary: {
|
|
142
|
+
typography: {
|
|
143
|
+
fontWeight: path === pathFromPayload ? 'bold' : 'inherit',
|
|
144
|
+
color: pathFromPayload === path ? 'inherit' : alphaCss(theme.vars?.palette.text.primary ?? '#000', 0.5),
|
|
145
|
+
},
|
|
146
|
+
},
|
|
142
147
|
}}
|
|
143
148
|
primary={primaryText}
|
|
144
149
|
style={{ opacity: pathFromPayload === path ? 1 : 0.5 }}
|
|
@@ -149,7 +154,7 @@ export const DappMenuDrawer: React.FC<DappMenuDrawerProps> = ({
|
|
|
149
154
|
))}
|
|
150
155
|
</List>
|
|
151
156
|
</FlexCol>
|
|
152
|
-
<BottomMenuArea openDebug={openDebug} backgroundColor={theme.palette.primary.dark} />
|
|
157
|
+
<BottomMenuArea openDebug={openDebug} backgroundColor={theme.vars?.palette.primary.dark ?? '#000'} />
|
|
153
158
|
</FlexCol>
|
|
154
159
|
</Drawer>
|
|
155
160
|
)
|
|
@@ -10,7 +10,7 @@ export const StyledMenuIconWrapSpan = styled('span', { name: 'StyledMenuIconWrap
|
|
|
10
10
|
export const StyledListItemButton = styled(ListItemButton, { name: 'StyledListItemButton', shouldForwardProp: prop => prop !== 'active' })<{
|
|
11
11
|
active?: boolean
|
|
12
12
|
}>(({ theme, active }) => {
|
|
13
|
-
const activeOrHoverColor = theme.palette.primary.main
|
|
13
|
+
const activeOrHoverColor = theme.vars?.palette.primary.main
|
|
14
14
|
|
|
15
15
|
return {
|
|
16
16
|
'position': 'relative',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Meta, StoryFn } from '@storybook/react'
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/react-vite'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
import { BrowserRouter } from 'react-router-dom'
|
|
4
4
|
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
const StorybookEntry: Meta = {
|
|
11
11
|
component: DappMenuDrawer,
|
|
12
12
|
title: 'shared/DappMenuDrawer',
|
|
13
|
+
parameters: { layout: 'fullscreen' },
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
const Template: StoryFn<typeof DappMenuDrawer> = (props) => {
|