@xyo-network/os-react-runtime 7.2.1 → 7.3.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/BridgeActivityHelper.d.ts +1 -1
- package/dist/browser/helpers/BrowserLocator.d.ts +1 -1
- package/dist/browser/helpers/BrowserLocator.d.ts.map +1 -1
- package/dist/browser/helpers/widget/Caller.d.ts.map +1 -1
- package/dist/browser/img/backgrounds/index.d.ts +18 -18
- package/dist/browser/img/backgrounds/index.d.ts.map +1 -1
- package/dist/browser/index.mjs +208 -178
- package/dist/browser/index.mjs.map +1 -1
- package/dist/browser/modules/Dapp/Alert/RenderErrorWithSupportLink.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/Button/StyledDappIconBuilder.d.ts +1 -1
- package/dist/browser/modules/Dapp/Button/lib/decomposeProps.d.ts +9 -1098
- package/dist/browser/modules/Dapp/Button/lib/decomposeProps.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/Page/DappPathSwitcher.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/components/DefaultComingSoon/DefaultComingSoon.d.ts +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 +1 -1
- package/dist/browser/modules/Dapp/modules/Window/components/menu/img/index.d.ts +2 -2
- package/dist/browser/modules/Dapp/modules/Window/components/menu/img/index.d.ts.map +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/menu/useDappMenuCaller.d.ts +2 -2
- package/dist/browser/modules/Dapp/modules/Window/hooks/menu/useDappMenuCaller.d.ts.map +1 -1
- package/dist/browser/modules/Dapp/modules/access-interface/components/Dialog.d.ts.map +1 -1
- package/dist/browser/modules/LoadingOsLogo/img/index.d.ts +1 -1
- package/dist/browser/modules/LoadingOsLogo/img/index.d.ts.map +1 -1
- package/dist/browser/modules/XyOsUi/lib/XyOsUi.d.ts.map +1 -1
- package/dist/browser/modules/bios/hooks/useKernel.d.ts +1 -1
- package/dist/browser/modules/bios/hooks/useKernel.d.ts.map +1 -1
- package/dist/browser/modules/dapps/accounts/components/AccountCard.d.ts +1 -1
- package/dist/browser/modules/dapps/accounts/components/AccountCard.d.ts.map +1 -1
- package/dist/browser/modules/dapps/accounts/models/CreditCardInput.d.ts +2 -2
- package/dist/browser/modules/dapps/accounts/models/CreditCardInput.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/intent/useNavigateIntent.d.ts +2 -2
- package/dist/browser/modules/intent/useNavigateIntent.d.ts.map +1 -1
- package/dist/browser/modules/network/components/LoadingIndicator.d.ts.map +1 -1
- package/dist/browser/modules/os/hooks/useDappRegistrationResults.d.ts.map +1 -1
- package/dist/browser/modules/os/hooks/useDappRegistry.d.ts.map +1 -1
- package/dist/browser/modules/os/hooks/useDappSeedPhraseRepository.d.ts +1 -1
- package/dist/browser/modules/os/hooks/useDappSeedPhraseRepository.d.ts.map +1 -1
- package/dist/browser/modules/resource/ResourceHooks.d.ts.map +1 -1
- package/dist/browser/modules/resource/useSyncExternalPayloadStore.d.ts.map +1 -1
- package/dist/browser/modules/stack/useStackReady.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/package.json +324 -69
- package/dist/browser/modules/Dapp/modules/Window/components/menu/stories/DefaultData.d.ts +0 -10
- package/dist/browser/modules/Dapp/modules/Window/components/menu/stories/DefaultData.d.ts.map +0 -1
- package/dist/browser/modules/Dapp/modules/Window/components/menu/stories/Drawer.stories.d.ts +0 -6
- package/dist/browser/modules/Dapp/modules/Window/components/menu/stories/Drawer.stories.d.ts.map +0 -1
- package/src/helpers/BridgeActivityHelper.ts +0 -39
- package/src/helpers/BrowserLocator.ts +0 -19
- package/src/helpers/NodePalettes.ts +0 -84
- package/src/helpers/index.ts +0 -5
- package/src/helpers/monitor/XyOsBrowserMonitor.ts +0 -14
- package/src/helpers/monitor/index.ts +0 -1
- package/src/helpers/widget/Caller.tsx +0 -125
- package/src/helpers/widget/index.ts +0 -1
- package/src/img/backgrounds/candy-dark@3x.webp +0 -0
- package/src/img/backgrounds/candy-light@3x.webp +0 -0
- package/src/img/backgrounds/candyApple-dark@3x.webp +0 -0
- package/src/img/backgrounds/candyApple-light@3x.webp +0 -0
- package/src/img/backgrounds/images.d.ts +0 -5
- package/src/img/backgrounds/index.ts +0 -18
- package/src/img/backgrounds/moss-dark@3x.webp +0 -0
- package/src/img/backgrounds/moss-light@3x.webp +0 -0
- package/src/img/backgrounds/ocean-dark@3x.webp +0 -0
- package/src/img/backgrounds/ocean-light@3x.webp +0 -0
- package/src/img/backgrounds/peachYogurt-dark@3x.webp +0 -0
- package/src/img/backgrounds/peachYogurt-light@3x.webp +0 -0
- package/src/img/backgrounds/sherbet-dark@3x.webp +0 -0
- package/src/img/backgrounds/sherbet-light@3x.webp +0 -0
- package/src/img/backgrounds/spring-dark@3x.webp +0 -0
- package/src/img/backgrounds/spring-light@3x.webp +0 -0
- package/src/img/backgrounds/sunset-dark@3x.webp +0 -0
- package/src/img/backgrounds/sunset-light@3x.webp +0 -0
- package/src/img/backgrounds/xyo-dark@3x.webp +0 -0
- package/src/img/backgrounds/xyo-light@3x.webp +0 -0
- package/src/img/index.ts +0 -1
- package/src/index.ts +0 -5
- package/src/interfaces/StackReady.ts +0 -6
- package/src/interfaces/index.ts +0 -1
- package/src/modules/Dapp/Alert/RenderErrorWithSupportLink.tsx +0 -50
- package/src/modules/Dapp/Alert/index.ts +0 -1
- package/src/modules/Dapp/Button/IconEx.tsx +0 -96
- package/src/modules/Dapp/Button/LaunchFrame.tsx +0 -77
- package/src/modules/Dapp/Button/StyledComponents.tsx +0 -55
- package/src/modules/Dapp/Button/StyledDappIconBuilder.tsx +0 -17
- package/src/modules/Dapp/Button/hooks/index.ts +0 -1
- package/src/modules/Dapp/Button/hooks/useLaunchPoint.tsx +0 -31
- package/src/modules/Dapp/Button/index.ts +0 -4
- package/src/modules/Dapp/Button/lib/decomposeProps.tsx +0 -15
- package/src/modules/Dapp/Button/lib/index.ts +0 -1
- package/src/modules/Dapp/Container.tsx +0 -63
- package/src/modules/Dapp/ContainerFlexbox.tsx +0 -30
- package/src/modules/Dapp/Debug/Dialog.tsx +0 -54
- package/src/modules/Dapp/Debug/index.ts +0 -1
- package/src/modules/Dapp/EnterAnimation.tsx +0 -54
- package/src/modules/Dapp/Page/DappPage.tsx +0 -115
- package/src/modules/Dapp/Page/DappPathSwitcher.tsx +0 -58
- package/src/modules/Dapp/Page/DividerChip.tsx +0 -31
- package/src/modules/Dapp/Page/Row.tsx +0 -69
- package/src/modules/Dapp/Page/index.ts +0 -3
- package/src/modules/Dapp/RenderHtml.tsx +0 -12
- package/src/modules/Dapp/index.ts +0 -8
- package/src/modules/Dapp/lib/DappState.ts +0 -5
- package/src/modules/Dapp/lib/DefaultIconSize.ts +0 -1
- package/src/modules/Dapp/lib/deriveDappState.ts +0 -16
- package/src/modules/Dapp/lib/index.ts +0 -3
- package/src/modules/Dapp/modules/Window/AppBar.tsx +0 -115
- package/src/modules/Dapp/modules/Window/Chrome.tsx +0 -79
- package/src/modules/Dapp/modules/Window/DappWindow.tsx +0 -39
- package/src/modules/Dapp/modules/Window/LoadingFlexbox.tsx +0 -99
- package/src/modules/Dapp/modules/Window/MetaTags.tsx +0 -27
- package/src/modules/Dapp/modules/Window/NodeManifest.tsx +0 -16
- package/src/modules/Dapp/modules/Window/Rendered.tsx +0 -101
- package/src/modules/Dapp/modules/Window/Trail.tsx +0 -33
- package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.tsx +0 -82
- package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/DeveloperLinkSection.tsx +0 -27
- package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/InstallButtonSection.tsx +0 -34
- package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/SummarySection.tsx +0 -73
- package/src/modules/Dapp/modules/Window/components/DefaultComingSoon/index.ts +0 -1
- package/src/modules/Dapp/modules/Window/components/index.ts +0 -2
- package/src/modules/Dapp/modules/Window/components/menu/BottomMenuArea.tsx +0 -130
- package/src/modules/Dapp/modules/Window/components/menu/BottomNavigation.tsx +0 -66
- package/src/modules/Dapp/modules/Window/components/menu/Drawer.tsx +0 -160
- package/src/modules/Dapp/modules/Window/components/menu/SocialData.tsx +0 -68
- package/src/modules/Dapp/modules/Window/components/menu/StyledListItems.tsx +0 -36
- package/src/modules/Dapp/modules/Window/components/menu/img/index.ts +0 -2
- package/src/modules/Dapp/modules/Window/components/menu/img/xyoOS-Icon-Black.svg +0 -1
- package/src/modules/Dapp/modules/Window/components/menu/img/xyoOS-Icon-White.svg +0 -1
- package/src/modules/Dapp/modules/Window/components/menu/index.ts +0 -3
- package/src/modules/Dapp/modules/Window/components/menu/stories/DefaultData.tsx +0 -118
- package/src/modules/Dapp/modules/Window/components/menu/stories/Drawer.stories.tsx +0 -36
- package/src/modules/Dapp/modules/Window/components/menu/stories/default.manifest.json +0 -20
- package/src/modules/Dapp/modules/Window/hooks/index.ts +0 -8
- package/src/modules/Dapp/modules/Window/hooks/lib/DappPathHelpers.ts +0 -34
- package/src/modules/Dapp/modules/Window/hooks/lib/detectCustomer.ts +0 -21
- package/src/modules/Dapp/modules/Window/hooks/lib/index.ts +0 -2
- package/src/modules/Dapp/modules/Window/hooks/menu/index.ts +0 -5
- package/src/modules/Dapp/modules/Window/hooks/menu/useAddDappMenuItems.ts +0 -25
- package/src/modules/Dapp/modules/Window/hooks/menu/useBuildDappMenuResource.ts +0 -39
- package/src/modules/Dapp/modules/Window/hooks/menu/useDappMenu.ts +0 -71
- package/src/modules/Dapp/modules/Window/hooks/menu/useDappMenuCaller.ts +0 -22
- package/src/modules/Dapp/modules/Window/hooks/menu/useDappMenuDependencies.ts +0 -16
- package/src/modules/Dapp/modules/Window/hooks/route/helpers/RoutingNodes.md +0 -7
- package/src/modules/Dapp/modules/Window/hooks/route/helpers/index.ts +0 -4
- package/src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappInjectableParamsFromRoute.tsx +0 -55
- package/src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappIntentRequest.tsx +0 -68
- package/src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappPathFromRoute.tsx +0 -75
- package/src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappStateFromRoute.tsx +0 -51
- package/src/modules/Dapp/modules/Window/hooks/route/index.ts +0 -1
- package/src/modules/Dapp/modules/Window/hooks/useDebugClick.ts +0 -61
- package/src/modules/Dapp/modules/Window/hooks/useDecomposeDapp.tsx +0 -21
- package/src/modules/Dapp/modules/Window/hooks/useExposedNode.ts +0 -6
- package/src/modules/Dapp/modules/Window/hooks/useSkipLoadingScreen.tsx +0 -17
- package/src/modules/Dapp/modules/Window/hooks/useSyncOsRegisteredAccessInterfaces.tsx +0 -36
- package/src/modules/Dapp/modules/Window/index.ts +0 -7
- package/src/modules/Dapp/modules/Window/types/DappMenuProperties.ts +0 -9
- package/src/modules/Dapp/modules/Window/types/DappWindowProps.ts +0 -14
- package/src/modules/Dapp/modules/Window/types/index.ts +0 -2
- package/src/modules/Dapp/modules/access-interface/components/Dialog.tsx +0 -132
- package/src/modules/Dapp/modules/access-interface/components/Flexbox.tsx +0 -29
- package/src/modules/Dapp/modules/access-interface/components/index.ts +0 -2
- package/src/modules/Dapp/modules/access-interface/hooks/index.ts +0 -1
- package/src/modules/Dapp/modules/access-interface/hooks/useDialogState.tsx +0 -28
- package/src/modules/Dapp/modules/access-interface/index.ts +0 -2
- package/src/modules/Dapp/modules/index.ts +0 -2
- package/src/modules/Dapp/useDappCaller.ts +0 -16
- package/src/modules/LoadingOsLogo/LoadingOsLogo.tsx +0 -54
- package/src/modules/LoadingOsLogo/img/index.ts +0 -1
- package/src/modules/LoadingOsLogo/img/xyoOS-Icon.svg +0 -1
- package/src/modules/LoadingOsLogo/index.ts +0 -1
- package/src/modules/XyOsUi/contexts/XyOsUiContext.ts +0 -10
- package/src/modules/XyOsUi/contexts/index.ts +0 -1
- package/src/modules/XyOsUi/index.ts +0 -2
- package/src/modules/XyOsUi/lib/XyOsUi.ts +0 -51
- package/src/modules/XyOsUi/lib/index.ts +0 -1
- package/src/modules/access-requests/NameServiceRegistrationHooks.ts +0 -36
- package/src/modules/access-requests/index.ts +0 -2
- package/src/modules/access-requests/useBuildDappAccessRequestResource.ts +0 -38
- package/src/modules/bios/hooks/index.ts +0 -2
- package/src/modules/bios/hooks/useBios.ts +0 -25
- package/src/modules/bios/hooks/useKernel.ts +0 -36
- package/src/modules/bios/index.ts +0 -1
- package/src/modules/dapps/accounts/components/AccountCard.tsx +0 -57
- package/src/modules/dapps/accounts/components/AnimatedComponents/GenericAnimations/ShiftAnimation.tsx +0 -116
- package/src/modules/dapps/accounts/components/AnimatedComponents/GenericAnimations/index.ts +0 -1
- package/src/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPoint.tsx +0 -23
- package/src/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPointList.tsx +0 -24
- package/src/modules/dapps/accounts/components/AnimatedComponents/IconAnimations/index.ts +0 -2
- package/src/modules/dapps/accounts/components/AnimatedComponents/index.ts +0 -2
- package/src/modules/dapps/accounts/components/InputFields/CoinbaseEmail.tsx +0 -41
- package/src/modules/dapps/accounts/components/InputFields/PrimaryCryptowallet.tsx +0 -42
- package/src/modules/dapps/accounts/components/InputFields/SecondaryCryptowallet.tsx +0 -42
- package/src/modules/dapps/accounts/components/InputFields/index.ts +0 -3
- package/src/modules/dapps/accounts/components/PaymentMethods.tsx +0 -51
- package/src/modules/dapps/accounts/components/index.ts +0 -3
- package/src/modules/dapps/accounts/hooks/index.ts +0 -1
- package/src/modules/dapps/accounts/hooks/useAccountArchivist.ts +0 -5
- package/src/modules/dapps/accounts/icon/Icon.tsx +0 -49
- package/src/modules/dapps/accounts/icon/custom-accounts-icon.svg +0 -1
- package/src/modules/dapps/accounts/icon/index.ts +0 -1
- package/src/modules/dapps/accounts/index.ts +0 -3
- package/src/modules/dapps/accounts/models/CreditCardInput.ts +0 -20
- package/src/modules/dapps/accounts/models/index.ts +0 -1
- package/src/modules/dapps/index.ts +0 -3
- package/src/modules/dapps/name-service/DomainIcon.tsx +0 -12
- package/src/modules/dapps/name-service/index.ts +0 -1
- package/src/modules/dapps/table/NextIteratorFlexbox.tsx +0 -33
- package/src/modules/dapps/table/head/Payload.ts +0 -11
- package/src/modules/dapps/table/head/Schema.ts +0 -4
- package/src/modules/dapps/table/head/components/Head.tsx +0 -47
- package/src/modules/dapps/table/head/components/StyledTableRowHeader.tsx +0 -6
- package/src/modules/dapps/table/head/components/index.ts +0 -1
- package/src/modules/dapps/table/head/hooks/index.ts +0 -1
- package/src/modules/dapps/table/head/hooks/useVisibleColumns.tsx +0 -15
- package/src/modules/dapps/table/head/index.ts +0 -4
- package/src/modules/dapps/table/index.ts +0 -2
- package/src/modules/index.ts +0 -12
- package/src/modules/intent/DappIntentResourceHooks.ts +0 -35
- package/src/modules/intent/index.ts +0 -7
- package/src/modules/intent/useClearIntents.ts +0 -14
- package/src/modules/intent/useDappIntentCaller.ts +0 -17
- package/src/modules/intent/useDappIntentListener.ts +0 -53
- package/src/modules/intent/useDappIntentListener2.ts +0 -48
- package/src/modules/intent/useNavigateIntent.ts +0 -51
- package/src/modules/intent/useSendDappIntent.ts +0 -38
- package/src/modules/network/components/LoadingIndicator.tsx +0 -51
- package/src/modules/network/components/NetworkButton.tsx +0 -27
- package/src/modules/network/components/NetworkReady.tsx +0 -31
- package/src/modules/network/components/StyledLoadingIndicator.tsx +0 -49
- package/src/modules/network/components/index.ts +0 -3
- package/src/modules/network/hooks/index.ts +0 -2
- package/src/modules/network/hooks/lib/NetworkState.ts +0 -8
- package/src/modules/network/hooks/lib/createNetworkState.ts +0 -20
- package/src/modules/network/hooks/lib/index.ts +0 -2
- package/src/modules/network/hooks/useOsNetwork.tsx +0 -17
- package/src/modules/network/hooks/useXyoPublicNetwork.tsx +0 -17
- package/src/modules/network/index.ts +0 -2
- package/src/modules/os/hooks/index.ts +0 -8
- package/src/modules/os/hooks/useDappContextCreator.ts +0 -89
- package/src/modules/os/hooks/useDappRegistrationResults.ts +0 -30
- package/src/modules/os/hooks/useDappRegistry.ts +0 -19
- package/src/modules/os/hooks/useDappSeedPhraseRepository.ts +0 -19
- package/src/modules/os/hooks/useOsSettingsCaller.ts +0 -19
- package/src/modules/os/hooks/usePhraseFile.ts +0 -33
- package/src/modules/os/hooks/useTabs.ts +0 -14
- package/src/modules/os/hooks/useWidgetDapps.ts +0 -23
- package/src/modules/os/index.ts +0 -1
- package/src/modules/resource/ResourceHooks.ts +0 -45
- package/src/modules/resource/index.ts +0 -3
- package/src/modules/resource/useCleanup.ts +0 -10
- package/src/modules/resource/useSyncExternalPayloadStore.ts +0 -37
- package/src/modules/stack/index.ts +0 -1
- package/src/modules/stack/useStackReady.ts +0 -48
- package/src/modules/widgets/StackOfWidgets.tsx +0 -149
- package/src/modules/widgets/Types/BarGraph/HorizontalBarGraph.tsx +0 -58
- package/src/modules/widgets/Types/BarGraph/StyledLinearProgress.tsx +0 -12
- package/src/modules/widgets/Types/BarGraph/index.ts +0 -2
- package/src/modules/widgets/Types/DataColumns/TwoColFourStat.tsx +0 -34
- package/src/modules/widgets/Types/DataColumns/TwoColTwoStat.tsx +0 -39
- package/src/modules/widgets/Types/DataColumns/index.ts +0 -1
- package/src/modules/widgets/Types/Examples/BarGraph.tsx +0 -10
- package/src/modules/widgets/Types/Examples/BooleanTable.tsx +0 -27
- package/src/modules/widgets/Types/Examples/TwoColTwoStat.tsx +0 -27
- package/src/modules/widgets/Types/Examples/index.ts +0 -3
- package/src/modules/widgets/Types/Stat/Insight.ts +0 -9
- package/src/modules/widgets/Types/Stat/InsightStatProps.ts +0 -7
- package/src/modules/widgets/Types/Stat/Stat.tsx +0 -41
- package/src/modules/widgets/Types/Stat/Subtitle.tsx +0 -14
- package/src/modules/widgets/Types/Stat/Unit.tsx +0 -13
- package/src/modules/widgets/Types/Stat/Value.tsx +0 -16
- package/src/modules/widgets/Types/Stat/index.ts +0 -3
- package/src/modules/widgets/Types/Tables/BooleanTable.tsx +0 -88
- package/src/modules/widgets/Types/Tables/index.ts +0 -1
- package/src/modules/widgets/Types/index.ts +0 -4
- package/src/modules/widgets/WidgetCard.tsx +0 -111
- package/src/modules/widgets/WidgetCardExamples.tsx +0 -31
- package/src/modules/widgets/index.ts +0 -2
- package/src/settings/Theme/ThemeCssVars.ts +0 -228
- package/src/settings/Theme/ThemeProvider.tsx +0 -20
- package/src/settings/Theme/index.ts +0 -1
- package/src/settings/index.ts +0 -1
- package/src/types/global.d.ts +0 -11
- package/src/types/images.d.ts +0 -4
- package/src/utils/DappInstallTypeFilters.ts +0 -27
- package/src/utils/getApiDomain.ts +0 -14
- package/src/utils/index.ts +0 -3
- package/src/utils/useOnWindowResize.tsx +0 -18
package/dist/browser/index.mjs
CHANGED
|
@@ -37,8 +37,8 @@ import { IndexedDbArchivist } from "@xyo-network/archivist-indexeddb";
|
|
|
37
37
|
import { IndexedDbBoundWitnessDiviner } from "@xyo-network/diviner-boundwitness-indexeddb";
|
|
38
38
|
import { GenericPayloadDiviner } from "@xyo-network/diviner-payload-generic";
|
|
39
39
|
import { IndexedDbPayloadDiviner } from "@xyo-network/diviner-payload-indexeddb";
|
|
40
|
-
import { ModuleFactoryLocator } from "@xyo-network/module-factory-locator";
|
|
41
40
|
import { asSchema } from "@xyo-network/payload-model";
|
|
41
|
+
import { ModuleFactoryLocator } from "@xyo-network/sdk-js";
|
|
42
42
|
var GenericPayloadDivinerTags = {
|
|
43
43
|
"network.xyo.generic.payload.diviner": "GenericPayloadDiviner"
|
|
44
44
|
};
|
|
@@ -73,78 +73,96 @@ var XyOsBrowserMonitor = class extends XyOsMonitor {
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
// src/img/backgrounds/index.ts
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import
|
|
89
|
-
import
|
|
90
|
-
import
|
|
91
|
-
import
|
|
92
|
-
import
|
|
93
|
-
import
|
|
76
|
+
import candyDarkImport from "./candy-dark@3x-N2S7K4QB.webp";
|
|
77
|
+
import candyLightImport from "./candy-light@3x-WKECMFRP.webp";
|
|
78
|
+
import candyAppleDarkImport from "./candyApple-dark@3x-HGSPETPR.webp";
|
|
79
|
+
import candyAppleLightImport from "./candyApple-light@3x-OWA5XNTF.webp";
|
|
80
|
+
import mossDarkImport from "./moss-dark@3x-HV35CF34.webp";
|
|
81
|
+
import mossLightImport from "./moss-light@3x-UH4AJQR5.webp";
|
|
82
|
+
import oceanDarkImport from "./ocean-dark@3x-LDW7E4ZL.webp";
|
|
83
|
+
import oceanLightImport from "./ocean-light@3x-FP7M2MO7.webp";
|
|
84
|
+
import peachYogurtDarkImport from "./peachYogurt-dark@3x-UWHJTY5O.webp";
|
|
85
|
+
import peachYogurtLightImport from "./peachYogurt-light@3x-X7Y7NU2Y.webp";
|
|
86
|
+
import sherbetDarkImport from "./sherbet-dark@3x-UAIXX4RP.webp";
|
|
87
|
+
import sherbetLightImport from "./sherbet-light@3x-2Q2EFFWE.webp";
|
|
88
|
+
import springDarkImport from "./spring-dark@3x-XU3GBWBF.webp";
|
|
89
|
+
import springLightImport from "./spring-light@3x-EFV3QMVY.webp";
|
|
90
|
+
import sunsetDarkImport from "./sunset-dark@3x-F25FUK74.webp";
|
|
91
|
+
import sunsetLightImport from "./sunset-light@3x-B5T3EVGS.webp";
|
|
92
|
+
import xyoDarkImport from "./xyo-dark@3x-N62LIF7V.webp";
|
|
93
|
+
import xyoLightImport from "./xyo-light@3x-5S6CF5P4.webp";
|
|
94
|
+
var candyDark = candyDarkImport;
|
|
95
|
+
var candyLight = candyLightImport;
|
|
96
|
+
var candyAppleDark = candyAppleDarkImport;
|
|
97
|
+
var candyAppleLight = candyAppleLightImport;
|
|
98
|
+
var mossDark = mossDarkImport;
|
|
99
|
+
var mossLight = mossLightImport;
|
|
100
|
+
var oceanDark = oceanDarkImport;
|
|
101
|
+
var oceanLight = oceanLightImport;
|
|
102
|
+
var peachYogurtDark = peachYogurtDarkImport;
|
|
103
|
+
var peachYogurtLight = peachYogurtLightImport;
|
|
104
|
+
var sherbetDark = sherbetDarkImport;
|
|
105
|
+
var sherbetLight = sherbetLightImport;
|
|
106
|
+
var springDark = springDarkImport;
|
|
107
|
+
var springLight = springLightImport;
|
|
108
|
+
var sunsetDark = sunsetDarkImport;
|
|
109
|
+
var sunsetLight = sunsetLightImport;
|
|
110
|
+
var xyoDark = xyoDarkImport;
|
|
111
|
+
var xyoLight = xyoLightImport;
|
|
94
112
|
|
|
95
113
|
// src/helpers/NodePalettes.ts
|
|
96
114
|
var OsPalettes = {
|
|
97
115
|
candy: {
|
|
98
|
-
darkModeWallpaper:
|
|
99
|
-
lightModeWallpaper:
|
|
116
|
+
darkModeWallpaper: candyDark,
|
|
117
|
+
lightModeWallpaper: candyLight,
|
|
100
118
|
nameCode: "candy",
|
|
101
119
|
readableName: "Candy"
|
|
102
120
|
},
|
|
103
121
|
candyApple: {
|
|
104
|
-
darkModeWallpaper:
|
|
105
|
-
lightModeWallpaper:
|
|
122
|
+
darkModeWallpaper: candyAppleDark,
|
|
123
|
+
lightModeWallpaper: candyAppleLight,
|
|
106
124
|
nameCode: "candyApple",
|
|
107
125
|
readableName: "Candy Apple"
|
|
108
126
|
},
|
|
109
127
|
moss: {
|
|
110
|
-
darkModeWallpaper:
|
|
111
|
-
lightModeWallpaper:
|
|
128
|
+
darkModeWallpaper: mossDark,
|
|
129
|
+
lightModeWallpaper: mossLight,
|
|
112
130
|
nameCode: "moss",
|
|
113
131
|
readableName: "Moss"
|
|
114
132
|
},
|
|
115
133
|
ocean: {
|
|
116
|
-
darkModeWallpaper:
|
|
117
|
-
lightModeWallpaper:
|
|
134
|
+
darkModeWallpaper: oceanDark,
|
|
135
|
+
lightModeWallpaper: oceanLight,
|
|
118
136
|
nameCode: "ocean",
|
|
119
137
|
readableName: "Ocean"
|
|
120
138
|
},
|
|
121
139
|
peachYogurt: {
|
|
122
|
-
darkModeWallpaper:
|
|
123
|
-
lightModeWallpaper:
|
|
140
|
+
darkModeWallpaper: peachYogurtDark,
|
|
141
|
+
lightModeWallpaper: peachYogurtLight,
|
|
124
142
|
nameCode: "peachYogurt",
|
|
125
143
|
readableName: "Peach Yogurt"
|
|
126
144
|
},
|
|
127
145
|
sherbet: {
|
|
128
|
-
darkModeWallpaper:
|
|
129
|
-
lightModeWallpaper:
|
|
146
|
+
darkModeWallpaper: sherbetDark,
|
|
147
|
+
lightModeWallpaper: sherbetLight,
|
|
130
148
|
nameCode: "sherbet",
|
|
131
149
|
readableName: "Sherbet"
|
|
132
150
|
},
|
|
133
151
|
spring: {
|
|
134
|
-
darkModeWallpaper:
|
|
135
|
-
lightModeWallpaper:
|
|
152
|
+
darkModeWallpaper: springDark,
|
|
153
|
+
lightModeWallpaper: springLight,
|
|
136
154
|
nameCode: "spring",
|
|
137
155
|
readableName: "Spring"
|
|
138
156
|
},
|
|
139
157
|
sunset: {
|
|
140
|
-
darkModeWallpaper:
|
|
141
|
-
lightModeWallpaper:
|
|
158
|
+
darkModeWallpaper: sunsetDark,
|
|
159
|
+
lightModeWallpaper: sunsetLight,
|
|
142
160
|
nameCode: "sunset",
|
|
143
161
|
readableName: "Sunset"
|
|
144
162
|
},
|
|
145
163
|
xyo: {
|
|
146
|
-
darkModeWallpaper:
|
|
147
|
-
lightModeWallpaper:
|
|
164
|
+
darkModeWallpaper: xyoDark,
|
|
165
|
+
lightModeWallpaper: xyoLight,
|
|
148
166
|
nameCode: "xyo",
|
|
149
167
|
readableName: "XYO"
|
|
150
168
|
}
|
|
@@ -200,7 +218,9 @@ var WidgetCaller = class extends OsCallerBase {
|
|
|
200
218
|
}) : void 0;
|
|
201
219
|
}));
|
|
202
220
|
const successfulResults = results.filter(fulfilled).map((result) => result.value);
|
|
203
|
-
const failedResults = results.filter(rejected).map((result) =>
|
|
221
|
+
const failedResults = results.filter(rejected).map((result) => {
|
|
222
|
+
return result.reason instanceof Error ? result.reason : new Error(String(result.reason));
|
|
223
|
+
});
|
|
204
224
|
return [
|
|
205
225
|
successfulResults,
|
|
206
226
|
failedResults
|
|
@@ -259,8 +279,8 @@ var XyOsUiContextProvider = XyOsUiContext.Provider;
|
|
|
259
279
|
|
|
260
280
|
// src/modules/XyOsUi/lib/XyOsUi.ts
|
|
261
281
|
import { forget } from "@xylabs/sdk-js";
|
|
262
|
-
import { ModuleFactoryLocator as ModuleFactoryLocator2 } from "@xyo-network/module-factory-locator";
|
|
263
282
|
import { dappsReadyConnection, XyOs } from "@xyo-network/os-runtime";
|
|
283
|
+
import { ModuleFactoryLocator as ModuleFactoryLocator2 } from "@xyo-network/sdk-js";
|
|
264
284
|
var XyOsUi = class extends XyOs {
|
|
265
285
|
static {
|
|
266
286
|
__name(this, "XyOsUi");
|
|
@@ -478,19 +498,8 @@ var useKernel = /* @__PURE__ */ __name((locator, params) => {
|
|
|
478
498
|
// src/modules/Dapp/Alert/RenderErrorWithSupportLink.tsx
|
|
479
499
|
import { ButtonEx } from "@xylabs/react-button";
|
|
480
500
|
import { ErrorAlert } from "@xylabs/react-error";
|
|
481
|
-
import React2
|
|
482
|
-
import { useLocation } from "react-router-dom";
|
|
501
|
+
import React2 from "react";
|
|
483
502
|
var ErrorRenderWithSupport = /* @__PURE__ */ __name(({ supportHref = "", supportTo, supportLinkText = "Support", error, onCancel, ...props }) => {
|
|
484
|
-
const location2 = useLocation();
|
|
485
|
-
useEffect4(() => {
|
|
486
|
-
location2.state = {
|
|
487
|
-
from: {
|
|
488
|
-
pathname: globalThis.location.pathname
|
|
489
|
-
}
|
|
490
|
-
};
|
|
491
|
-
}, [
|
|
492
|
-
location2
|
|
493
|
-
]);
|
|
494
503
|
return /* @__PURE__ */ React2.createElement(ErrorAlert, {
|
|
495
504
|
action: supportTo ? /* @__PURE__ */ React2.createElement(ButtonEx, {
|
|
496
505
|
target: "_blank",
|
|
@@ -522,7 +531,7 @@ import React26, { memo, useMemo as useMemo14 } from "react";
|
|
|
522
531
|
import { useAsyncEffect } from "@xylabs/react-async-effect";
|
|
523
532
|
import { DappIntentTypes } from "@xyo-network/os-model";
|
|
524
533
|
import { DappContextCreator, RunningDappCache } from "@xyo-network/os-runtime";
|
|
525
|
-
import { useCallback, useEffect as
|
|
534
|
+
import { useCallback, useEffect as useEffect4, useRef, useState } from "react";
|
|
526
535
|
var useDappContextCreator = /* @__PURE__ */ __name((xnsNodeUrl, xnsNetwork, dapp, currentIntent, allowedNames, createOnMount = false) => {
|
|
527
536
|
const context = useXyOsUiContext();
|
|
528
537
|
const [windowDappNodeSet, setWindowDappNodeSet] = useState({
|
|
@@ -532,7 +541,7 @@ var useDappContextCreator = /* @__PURE__ */ __name((xnsNodeUrl, xnsNetwork, dapp
|
|
|
532
541
|
const [dappWindowNodeError, setDappWindowNodeError] = useState();
|
|
533
542
|
const targetedDapp = !!(dapp && context && currentIntent?.targetDappId === dapp?.config.name);
|
|
534
543
|
const windowDappNodeSetRef = useRef(windowDappNodeSet);
|
|
535
|
-
|
|
544
|
+
useEffect4(() => {
|
|
536
545
|
windowDappNodeSetRef.current = windowDappNodeSet;
|
|
537
546
|
}, [
|
|
538
547
|
windowDappNodeSet
|
|
@@ -552,7 +561,7 @@ var useDappContextCreator = /* @__PURE__ */ __name((xnsNodeUrl, xnsNetwork, dapp
|
|
|
552
561
|
context,
|
|
553
562
|
allowedNames
|
|
554
563
|
]);
|
|
555
|
-
|
|
564
|
+
useEffect4(() => {
|
|
556
565
|
if (createOnMount) {
|
|
557
566
|
void (async () => {
|
|
558
567
|
await createNode();
|
|
@@ -594,11 +603,11 @@ var useDappContextCreator = /* @__PURE__ */ __name((xnsNodeUrl, xnsNetwork, dapp
|
|
|
594
603
|
|
|
595
604
|
// src/modules/os/hooks/useDappRegistrationResults.ts
|
|
596
605
|
import { EventBusPubSubConnection } from "@xyo-network/os-runtime";
|
|
597
|
-
import { useEffect as
|
|
606
|
+
import { useEffect as useEffect5, useState as useState2 } from "react";
|
|
598
607
|
var useDappRegistrationResults = /* @__PURE__ */ __name(() => {
|
|
599
608
|
const context = useXyOsUiContext();
|
|
600
609
|
const [registeredDappSetResults, setRegisteredDappSetResults] = useState2();
|
|
601
|
-
|
|
610
|
+
useEffect5(() => {
|
|
602
611
|
const listener = /* @__PURE__ */ __name(() => {
|
|
603
612
|
setRegisteredDappSetResults(context?.dappRegistrationResults);
|
|
604
613
|
}, "listener");
|
|
@@ -612,11 +621,15 @@ var useDappRegistrationResults = /* @__PURE__ */ __name(() => {
|
|
|
612
621
|
type: "PubSub"
|
|
613
622
|
};
|
|
614
623
|
const dappsReadyConnection2 = new EventBusPubSubConnection(dappsReadyConnectionRequest);
|
|
624
|
+
let initialResultsTimeoutId;
|
|
615
625
|
if (context) {
|
|
616
626
|
context.eventBus.addConnection(dappsReadyConnection2);
|
|
617
|
-
setRegisteredDappSetResults(context.dappRegistrationResults);
|
|
627
|
+
initialResultsTimeoutId = setTimeout(() => setRegisteredDappSetResults(context.dappRegistrationResults), 0);
|
|
618
628
|
}
|
|
619
|
-
return () =>
|
|
629
|
+
return () => {
|
|
630
|
+
if (initialResultsTimeoutId !== void 0) clearTimeout(initialResultsTimeoutId);
|
|
631
|
+
if (context && dappsReadyConnection2.id) context.eventBus.removeConnection(dappsReadyConnection2.id);
|
|
632
|
+
};
|
|
620
633
|
}, [
|
|
621
634
|
context
|
|
622
635
|
]);
|
|
@@ -631,31 +644,30 @@ import { useMemo as useMemo3 } from "react";
|
|
|
631
644
|
import { DappSeedPhraseRepository } from "@xyo-network/os-runtime";
|
|
632
645
|
import { useMemo as useMemo2 } from "react";
|
|
633
646
|
var _dappWalletRepository;
|
|
647
|
+
var getOrCreateDappSeedPhraseRepository = /* @__PURE__ */ __name((context, allowedNames) => {
|
|
648
|
+
_dappWalletRepository ??= new DappSeedPhraseRepository(context, allowedNames);
|
|
649
|
+
return _dappWalletRepository;
|
|
650
|
+
}, "getOrCreateDappSeedPhraseRepository");
|
|
634
651
|
var useDappSeedPhraseRepository = /* @__PURE__ */ __name((allowedNames) => {
|
|
635
652
|
const context = useXyOsUiContext();
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
_dappWalletRepository = new DappSeedPhraseRepository(context, allowedNames);
|
|
639
|
-
}
|
|
640
|
-
return _dappWalletRepository;
|
|
653
|
+
return useMemo2(() => {
|
|
654
|
+
return context ? getOrCreateDappSeedPhraseRepository(context, allowedNames) : void 0;
|
|
641
655
|
}, [
|
|
642
656
|
context,
|
|
643
657
|
allowedNames
|
|
644
658
|
]);
|
|
645
|
-
return dappWalletRepository;
|
|
646
659
|
}, "useDappSeedPhraseRepository");
|
|
647
660
|
|
|
648
661
|
// src/modules/os/hooks/useDappRegistry.ts
|
|
649
662
|
var _dappRegistry;
|
|
663
|
+
var getOrCreateDappRegistry = /* @__PURE__ */ __name((repository) => {
|
|
664
|
+
_dappRegistry ??= new DappRegistry(repository);
|
|
665
|
+
return _dappRegistry;
|
|
666
|
+
}, "getOrCreateDappRegistry");
|
|
650
667
|
var useDappRegistry = /* @__PURE__ */ __name((allowedNames) => {
|
|
651
668
|
const dappSeedPhraseRepository = useDappSeedPhraseRepository(allowedNames);
|
|
652
669
|
return useMemo3(() => {
|
|
653
|
-
|
|
654
|
-
if (!_dappRegistry) {
|
|
655
|
-
_dappRegistry = new DappRegistry(dappSeedPhraseRepository);
|
|
656
|
-
}
|
|
657
|
-
return _dappRegistry;
|
|
658
|
-
}
|
|
670
|
+
return dappSeedPhraseRepository ? getOrCreateDappRegistry(dappSeedPhraseRepository) : void 0;
|
|
659
671
|
}, [
|
|
660
672
|
dappSeedPhraseRepository
|
|
661
673
|
]);
|
|
@@ -669,13 +681,13 @@ import { useMemo as useMemo4 } from "react";
|
|
|
669
681
|
// src/modules/stack/useStackReady.ts
|
|
670
682
|
import { assertEx as assertEx3 } from "@xylabs/sdk-js";
|
|
671
683
|
import { EventBusPubSubConnection as EventBusPubSubConnection2 } from "@xyo-network/os-runtime";
|
|
672
|
-
import { useEffect as
|
|
684
|
+
import { useEffect as useEffect6, useState as useState3 } from "react";
|
|
673
685
|
var useStackReady = /* @__PURE__ */ __name((stackReadyEvent, stackName, context) => {
|
|
674
686
|
const providedContext = useXyOsUiContext();
|
|
675
687
|
const [stackReady, setStackReady] = useState3({
|
|
676
688
|
ready: false
|
|
677
689
|
});
|
|
678
|
-
|
|
690
|
+
useEffect6(() => {
|
|
679
691
|
const derivedContext = context ?? providedContext;
|
|
680
692
|
const listener = /* @__PURE__ */ __name(() => {
|
|
681
693
|
if (!derivedContext) throw new Error("no context found");
|
|
@@ -695,15 +707,19 @@ var useStackReady = /* @__PURE__ */ __name((stackReadyEvent, stackName, context)
|
|
|
695
707
|
type: "PubSub"
|
|
696
708
|
};
|
|
697
709
|
const stackReadyReadyConnection = new EventBusPubSubConnection2(stackReadyReadyConnectionRequest);
|
|
710
|
+
let initialReadyTimeoutId;
|
|
698
711
|
if (derivedContext) {
|
|
699
712
|
derivedContext.eventBus.addConnection(stackReadyReadyConnection);
|
|
700
713
|
const stack = derivedContext.getStack(stackName);
|
|
701
|
-
if (stack.initialized)
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
714
|
+
if (stack.initialized) {
|
|
715
|
+
initialReadyTimeoutId = setTimeout(() => setStackReady({
|
|
716
|
+
ready: true,
|
|
717
|
+
stack: stack.stack
|
|
718
|
+
}), 0);
|
|
719
|
+
}
|
|
705
720
|
}
|
|
706
721
|
return () => {
|
|
722
|
+
if (initialReadyTimeoutId !== void 0) clearTimeout(initialReadyTimeoutId);
|
|
707
723
|
const derivedContext2 = context ?? providedContext;
|
|
708
724
|
if (derivedContext2 && stackReadyReadyConnection._id) {
|
|
709
725
|
derivedContext2.eventBus.removeConnection(stackReadyReadyConnection.id);
|
|
@@ -711,7 +727,9 @@ var useStackReady = /* @__PURE__ */ __name((stackReadyEvent, stackName, context)
|
|
|
711
727
|
};
|
|
712
728
|
}, [
|
|
713
729
|
context,
|
|
714
|
-
providedContext
|
|
730
|
+
providedContext,
|
|
731
|
+
stackName,
|
|
732
|
+
stackReadyEvent
|
|
715
733
|
]);
|
|
716
734
|
return stackReady;
|
|
717
735
|
}, "useStackReady");
|
|
@@ -774,9 +792,9 @@ var usePhraseFile = /* @__PURE__ */ __name((phrase) => {
|
|
|
774
792
|
}, "usePhraseFile");
|
|
775
793
|
|
|
776
794
|
// src/modules/os/hooks/useTabs.ts
|
|
777
|
-
import { useLocation
|
|
795
|
+
import { useLocation, useNavigate } from "react-router-dom";
|
|
778
796
|
var useTabs = /* @__PURE__ */ __name(() => {
|
|
779
|
-
const location2 =
|
|
797
|
+
const location2 = useLocation();
|
|
780
798
|
const navigate = useNavigate();
|
|
781
799
|
const rootFolder = location2.pathname.split("/")[1];
|
|
782
800
|
const tab = rootFolder?.length > 0 ? rootFolder : "node";
|
|
@@ -837,10 +855,10 @@ var getApiDomain = /* @__PURE__ */ __name((localHost, apiDomain) => {
|
|
|
837
855
|
}, "getApiDomain");
|
|
838
856
|
|
|
839
857
|
// src/utils/useOnWindowResize.tsx
|
|
840
|
-
import { useEffect as
|
|
858
|
+
import { useEffect as useEffect7, useState as useState4 } from "react";
|
|
841
859
|
var useOnWindowResize = /* @__PURE__ */ __name(() => {
|
|
842
860
|
const [resized, setResized] = useState4();
|
|
843
|
-
|
|
861
|
+
useEffect7(() => {
|
|
844
862
|
const onResize = /* @__PURE__ */ __name((event) => {
|
|
845
863
|
setResized(event);
|
|
846
864
|
}, "onResize");
|
|
@@ -943,12 +961,12 @@ var useDappIntentCaller = /* @__PURE__ */ __name((xyOsContext) => {
|
|
|
943
961
|
import { filterAs } from "@xylabs/sdk-js";
|
|
944
962
|
import { asOptionalDappIntent, DappIntentTypes as DappIntentTypes2, DappMode } from "@xyo-network/os-model";
|
|
945
963
|
import { useWeakArchivistFromNode as useWeakArchivistFromNode2 } from "@xyo-network/react-archivist";
|
|
946
|
-
import { useEffect as
|
|
964
|
+
import { useEffect as useEffect8, useState as useState6 } from "react";
|
|
947
965
|
var useDappIntentListener = /* @__PURE__ */ __name((dappName, targetMode = DappMode.Window) => {
|
|
948
966
|
const [dappIntentType, setDappIntentType] = useState6(DappIntentTypes2.Close);
|
|
949
967
|
const [intentPayload, setIntentPayload] = useState6();
|
|
950
968
|
const [intentArchivist] = useWeakArchivistFromNode2("IntentArchivist");
|
|
951
|
-
|
|
969
|
+
useEffect8(() => {
|
|
952
970
|
const listener = /* @__PURE__ */ __name(({ payloads }) => {
|
|
953
971
|
const filteredPayloads = filterAs(payloads, asOptionalDappIntent);
|
|
954
972
|
for (const payload of filteredPayloads) {
|
|
@@ -993,35 +1011,40 @@ var useDappIntentListener = /* @__PURE__ */ __name((dappName, targetMode = DappM
|
|
|
993
1011
|
|
|
994
1012
|
// src/modules/intent/useDappIntentListener2.ts
|
|
995
1013
|
import { DappIntentTypes as DappIntentTypes3, DappMode as DappMode2 } from "@xyo-network/os-model";
|
|
996
|
-
import { useEffect as
|
|
1014
|
+
import { useEffect as useEffect9, useState as useState7 } from "react";
|
|
997
1015
|
var useDappIntentListener2 = /* @__PURE__ */ __name((dappName, sourceMode = DappMode2.Window) => {
|
|
998
1016
|
const { latestDappIntent } = DappIntentResourceHooks.useResourceViewsFromProvidedNode();
|
|
999
1017
|
const [dappIntentType, setDappIntentType] = useState7(DappIntentTypes3.Close);
|
|
1000
|
-
|
|
1001
|
-
if (sourceMode
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1018
|
+
useEffect9(() => {
|
|
1019
|
+
if (sourceMode !== DappMode2.Window) {
|
|
1020
|
+
console.warn("Intent sent from unrecognized mode", sourceMode);
|
|
1021
|
+
return;
|
|
1022
|
+
}
|
|
1023
|
+
let nextIntent;
|
|
1024
|
+
for (const payload of latestDappIntent ?? []) {
|
|
1025
|
+
if (payload.targetDappId === dappName) {
|
|
1026
|
+
switch (payload.intent) {
|
|
1027
|
+
case DappIntentTypes3.Close: {
|
|
1028
|
+
nextIntent = DappIntentTypes3.Close;
|
|
1029
|
+
break;
|
|
1030
|
+
}
|
|
1031
|
+
case DappIntentTypes3.Launch: {
|
|
1032
|
+
nextIntent = DappIntentTypes3.Launch;
|
|
1033
|
+
break;
|
|
1034
|
+
}
|
|
1035
|
+
case DappIntentTypes3.Minimize: {
|
|
1036
|
+
nextIntent = DappIntentTypes3.Minimize;
|
|
1037
|
+
break;
|
|
1038
|
+
}
|
|
1039
|
+
default: {
|
|
1040
|
+
console.warn("Unrecognized DappIntentType:", payload);
|
|
1020
1041
|
}
|
|
1021
1042
|
}
|
|
1022
1043
|
}
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1044
|
+
}
|
|
1045
|
+
if (nextIntent !== void 0) {
|
|
1046
|
+
const timeoutId = setTimeout(() => setDappIntentType(nextIntent), 0);
|
|
1047
|
+
return () => clearTimeout(timeoutId);
|
|
1025
1048
|
}
|
|
1026
1049
|
}, [
|
|
1027
1050
|
dappName,
|
|
@@ -1041,7 +1064,7 @@ var useNavigateIntent = /* @__PURE__ */ __name(() => {
|
|
|
1041
1064
|
const navigate = useNavigate2();
|
|
1042
1065
|
const { dappName: dappNameParam } = useParams();
|
|
1043
1066
|
const updateRouteParam = useCallback2((dappIntent, { skipNavigate } = {}) => {
|
|
1044
|
-
if (dappIntent
|
|
1067
|
+
if (dappIntent?.targetDappId) {
|
|
1045
1068
|
const { targetDappId: dappName, intent: intentType, params: intentParams } = dappIntent;
|
|
1046
1069
|
const slug = new NameTransforms(dappName).slug();
|
|
1047
1070
|
switch (intentType) {
|
|
@@ -1365,6 +1388,7 @@ var DappAccessDialog = /* @__PURE__ */ __name(({ accessRequest, children, dappNo
|
|
|
1365
1388
|
}).catch((e) => {
|
|
1366
1389
|
setError(e);
|
|
1367
1390
|
});
|
|
1391
|
+
break;
|
|
1368
1392
|
}
|
|
1369
1393
|
default: {
|
|
1370
1394
|
const message = `no helper for interface ${registeredDappAccess.name} found`;
|
|
@@ -1658,7 +1682,7 @@ var useAddDappMenuItems = /* @__PURE__ */ __name((payloads) => {
|
|
|
1658
1682
|
}, "useAddDappMenuItems");
|
|
1659
1683
|
|
|
1660
1684
|
// src/modules/Dapp/modules/Window/hooks/menu/useDappMenu.ts
|
|
1661
|
-
import { useEffect as
|
|
1685
|
+
import { useEffect as useEffect10, useRef as useRef3, useState as useState10 } from "react";
|
|
1662
1686
|
import { useNavigate as useNavigate3, useParams as useParams2 } from "react-router-dom";
|
|
1663
1687
|
|
|
1664
1688
|
// src/modules/Dapp/modules/Window/hooks/menu/useDappMenuDependencies.ts
|
|
@@ -1686,27 +1710,30 @@ var useDappMenu = /* @__PURE__ */ __name((context, dappName) => {
|
|
|
1686
1710
|
const { defaultPath, menuConfigs, menuItemsVisible, menuSelection, resourceError } = useDappMenuDependencies(context);
|
|
1687
1711
|
const activePath = menuSelection ?? defaultPath;
|
|
1688
1712
|
const currentPathRef = useRef3(void 0);
|
|
1689
|
-
|
|
1713
|
+
useEffect10(() => {
|
|
1690
1714
|
if (params && currentPathRef.current === void 0) {
|
|
1691
1715
|
currentPathRef.current = params.path ?? "";
|
|
1692
1716
|
}
|
|
1693
1717
|
}, []);
|
|
1694
|
-
|
|
1718
|
+
useEffect10(() => {
|
|
1695
1719
|
if (context === null) {
|
|
1696
1720
|
currentPathRef.current = void 0;
|
|
1697
1721
|
}
|
|
1698
1722
|
}, [
|
|
1699
1723
|
context
|
|
1700
1724
|
]);
|
|
1701
|
-
|
|
1725
|
+
useEffect10(() => {
|
|
1702
1726
|
if (menuSelection) {
|
|
1703
1727
|
currentPathRef.current = menuSelection;
|
|
1704
1728
|
}
|
|
1705
1729
|
}, [
|
|
1706
1730
|
menuSelection
|
|
1707
1731
|
]);
|
|
1708
|
-
|
|
1709
|
-
if (resourceError)
|
|
1732
|
+
useEffect10(() => {
|
|
1733
|
+
if (resourceError) {
|
|
1734
|
+
const timeoutId = setTimeout(() => setError(resourceError), 0);
|
|
1735
|
+
return () => clearTimeout(timeoutId);
|
|
1736
|
+
}
|
|
1710
1737
|
}, [
|
|
1711
1738
|
resourceError
|
|
1712
1739
|
]);
|
|
@@ -1786,7 +1813,7 @@ import { useAtomicPromise, usePromise as usePromise12 } from "@xylabs/react-prom
|
|
|
1786
1813
|
import { findAs as findAs2 } from "@xylabs/sdk-js";
|
|
1787
1814
|
import { asOptionalDappIntent as asOptionalDappIntent2, DappIntentTypes as DappIntentTypes7 } from "@xyo-network/os-model";
|
|
1788
1815
|
import { DappIntentCaller as DappIntentCaller3 } from "@xyo-network/os-runtime";
|
|
1789
|
-
import { useEffect as
|
|
1816
|
+
import { useEffect as useEffect11, useState as useState11 } from "react";
|
|
1790
1817
|
var useManageDappIntentRequest = /* @__PURE__ */ __name((context, dappId) => {
|
|
1791
1818
|
const dappCaller = useDappCaller(context);
|
|
1792
1819
|
const sendIntent = useSendDappIntent();
|
|
@@ -1820,7 +1847,7 @@ var useManageDappIntentRequest = /* @__PURE__ */ __name((context, dappId) => {
|
|
|
1820
1847
|
intentPayload,
|
|
1821
1848
|
sendIntent
|
|
1822
1849
|
]);
|
|
1823
|
-
|
|
1850
|
+
useEffect11(() => {
|
|
1824
1851
|
const listener = /* @__PURE__ */ __name(({ payloads }) => {
|
|
1825
1852
|
if (context) {
|
|
1826
1853
|
const intentPayload2 = findAs2(payloads, asOptionalDappIntent2);
|
|
@@ -1845,7 +1872,7 @@ var useManageDappIntentRequest = /* @__PURE__ */ __name((context, dappId) => {
|
|
|
1845
1872
|
|
|
1846
1873
|
// src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappPathFromRoute.tsx
|
|
1847
1874
|
import { usePromise as usePromise13 } from "@xylabs/react-promise";
|
|
1848
|
-
import { useCallback as useCallback4, useEffect as
|
|
1875
|
+
import { useCallback as useCallback4, useEffect as useEffect12, useRef as useRef4 } from "react";
|
|
1849
1876
|
import { useNavigate as useNavigate5, useParams as useParams3 } from "react-router-dom";
|
|
1850
1877
|
var useManageDappPathFromRoute = /* @__PURE__ */ __name((context, dappName) => {
|
|
1851
1878
|
const params = useParams3();
|
|
@@ -1870,7 +1897,7 @@ var useManageDappPathFromRoute = /* @__PURE__ */ __name((context, dappName) => {
|
|
|
1870
1897
|
context,
|
|
1871
1898
|
defaultPath
|
|
1872
1899
|
]);
|
|
1873
|
-
|
|
1900
|
+
useEffect12(() => {
|
|
1874
1901
|
if (context && menuSelection) {
|
|
1875
1902
|
const pathIsInUnchanged = DappPathHelpers.detectDuplicateSelections(currentPathRef.current ?? "", menuSelection, defaultPath);
|
|
1876
1903
|
if (pathIsInUnchanged) return;
|
|
@@ -1943,7 +1970,7 @@ var useManageDappStateFromRoute = /* @__PURE__ */ __name((intentPayload) => {
|
|
|
1943
1970
|
}, "useManageDappStateFromRoute");
|
|
1944
1971
|
|
|
1945
1972
|
// src/modules/Dapp/modules/Window/hooks/useDebugClick.ts
|
|
1946
|
-
import { useCallback as useCallback5, useEffect as
|
|
1973
|
+
import { useCallback as useCallback5, useEffect as useEffect13, useRef as useRef6, useState as useState12 } from "react";
|
|
1947
1974
|
import { useNavigate as useNavigate6, useSearchParams as useSearchParams2 } from "react-router-dom";
|
|
1948
1975
|
var useDebugClick = /* @__PURE__ */ __name(() => {
|
|
1949
1976
|
const [params, setParams] = useSearchParams2();
|
|
@@ -1972,7 +1999,7 @@ var useDebugClick = /* @__PURE__ */ __name(() => {
|
|
|
1972
1999
|
}, [
|
|
1973
2000
|
navigate
|
|
1974
2001
|
]);
|
|
1975
|
-
|
|
2002
|
+
useEffect13(() => {
|
|
1976
2003
|
const initialOpen = openFromClick.current && !closeFromClick.current && params.has("debug");
|
|
1977
2004
|
const backButtonClicked = openFromClick.current && !closeFromClick.current && !params.has("debug");
|
|
1978
2005
|
if (initialOpen) {
|
|
@@ -2398,12 +2425,14 @@ var DefaultComingSoon = /* @__PURE__ */ __name(({ children, desc = defaultDescri
|
|
|
2398
2425
|
// src/modules/Dapp/modules/Window/components/menu/BottomNavigation.tsx
|
|
2399
2426
|
import { BottomNavigation, BottomNavigationAction, Paper, styled as styled2 } from "@mui/material";
|
|
2400
2427
|
import { useIsDark } from "@xylabs/react-theme";
|
|
2401
|
-
import React16, { useEffect as
|
|
2428
|
+
import React16, { useEffect as useEffect14, useState as useState13 } from "react";
|
|
2402
2429
|
var DappBottomNavigation = /* @__PURE__ */ __name(({ activePath, menuConfig, menuItems, onPathChange, ...props }) => {
|
|
2403
2430
|
const [activeIndex, setActiveIndex] = useState13(0);
|
|
2404
|
-
|
|
2431
|
+
useEffect14(() => {
|
|
2405
2432
|
if (menuConfig?.defaultPath && menuItems && activePath) {
|
|
2406
|
-
|
|
2433
|
+
const nextIndex = menuItems.findIndex((item) => activePath === item.path);
|
|
2434
|
+
const timeoutId = setTimeout(() => setActiveIndex(nextIndex), 0);
|
|
2435
|
+
return () => clearTimeout(timeoutId);
|
|
2407
2436
|
}
|
|
2408
2437
|
}, [
|
|
2409
2438
|
activePath,
|
|
@@ -2452,7 +2481,7 @@ import { alpha, Drawer, List, ListItem, ListItemIcon, ListItemText, Tooltip as T
|
|
|
2452
2481
|
import { FlexCol as FlexCol6, FlexGrowRow as FlexGrowRow4, FlexRow as FlexRow7 } from "@xylabs/react-flexbox";
|
|
2453
2482
|
import { alphaCss as alphaCss3, darkenCss, useIsDark as useIsDark2 } from "@xylabs/react-theme";
|
|
2454
2483
|
import { XyOsMonitor as XyOsMonitor3 } from "@xyo-network/os-runtime";
|
|
2455
|
-
import React19, { useEffect as
|
|
2484
|
+
import React19, { useEffect as useEffect15, useState as useState15 } from "react";
|
|
2456
2485
|
|
|
2457
2486
|
// src/modules/Dapp/modules/Window/components/menu/BottomMenuArea.tsx
|
|
2458
2487
|
import { BugReport as BugReport2, KeyboardArrowDownRounded, KeyboardArrowUpRounded } from "@mui/icons-material";
|
|
@@ -2466,6 +2495,9 @@ import React18, { useState as useState14 } from "react";
|
|
|
2466
2495
|
// src/modules/Dapp/modules/Window/components/menu/img/xyoOS-Icon-White.svg
|
|
2467
2496
|
var xyoOS_Icon_White_default = '<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 900"><defs><style>.cls-1{fill:#a8a8a8;opacity:.21;}.cls-1,.cls-2{stroke-width:0px;}.cls-2{fill:#fff;}</style></defs><path class="cls-1" d="M864.29,297.43c-2.44-6.58-9.76-9.94-16.34-7.5l-143.74,53.26L533.2,21.88c-1.85-3.48-5.21-5.9-9.09-6.56-3.89-.66-7.85.51-10.75,3.18l-267.76,246.55-118-97.86c-5.4-4.48-13.42-3.73-17.9,1.67-4.48,5.4-3.73,13.42,1.67,17.9l118,97.86L36.62,593.37c-2.09,3.34-2.5,7.46-1.14,11.15s4.37,6.54,8.13,7.72l347.4,108.61-25.75,151.12c-1.18,6.92,3.48,13.49,10.4,14.67.24.04.47.07.7.1,6.66.76,12.82-3.81,13.96-10.5l25.75-151.12,363.77,12.56c3.94.14,7.71-1.56,10.22-4.59,2.51-3.03,3.48-7.06,2.62-10.9l-79.64-355.16,143.75-53.26c6.58-2.44,9.94-9.75,7.5-16.34ZM518.49,48.34l156.33,293.75-401.12-68.35,244.79-225.4ZM674.37,367.8l-264.69,319.16-144.06-388.81,408.75,69.65ZM66.9,592.88l176.22-282.26,141.37,381.56-317.59-99.29ZM431.72,700.22l259.75-313.21,72.81,324.69-332.56-11.48Z"/><path class="cls-2" d="M865.04,302.64c.01-.2.02-.4.03-.6,0-.33,0-.66-.03-.99-.01-.2-.02-.39-.04-.58-.04-.35-.1-.71-.17-1.06-.03-.16-.05-.32-.09-.48-.12-.5-.26-1.01-.45-1.5-.18-.49-.4-.97-.64-1.43-.08-.15-.17-.29-.25-.43-.17-.31-.35-.61-.55-.9-.12-.17-.24-.33-.37-.49-.19-.25-.39-.5-.6-.74-.14-.16-.29-.32-.45-.47-.22-.22-.45-.44-.68-.65-.1-.08-.18-.18-.27-.26L530.1,18.07c-.34-.28-.7-.53-1.07-.77-.09-.06-.17-.13-.26-.19-.62-.39-1.26-.7-1.92-.98-.18-.07-.36-.14-.54-.21-.71-.26-1.43-.47-2.16-.6,0,0-.01,0-.02,0,0,0,0,0-.01,0-.67-.11-1.35-.15-2.03-.16-.37,0-.73,0-1.09.03-.23.02-.46.06-.7.09-.86.11-1.69.31-2.5.59-.07.03-.15.04-.23.07l-.32.12c-.2.08-.4.13-.59.22L115.08,165.06c-.11.04-.22.1-.33.15-.3.12-.59.25-.88.39-.19.1-.38.19-.57.3-.27.15-.54.32-.81.5-.17.12-.35.22-.52.35-.27.2-.53.42-.79.64-.14.12-.28.23-.41.35-.35.33-.68.68-1,1.05-.04.05-.08.1-.12.14-.32.38-.6.78-.87,1.2-.09.14-.16.29-.25.43-.18.31-.36.62-.51.94-.08.17-.15.35-.23.53-.13.31-.25.62-.36.93-.06.19-.12.38-.17.57-.09.33-.17.65-.23.98-.02.11-.06.22-.08.33l-72.09,423.12c-.07.43-.11.87-.13,1.3,0,.11-.03.22-.03.33-.03.73.02,1.44.12,2.16.02.19.06.38.09.57.13.74.31,1.48.57,2.19,0,0,0,0,0,0,0,.02.01.03.02.04.2.53.43,1.04.7,1.53.12.22.26.42.38.63.17.28.33.56.52.82.17.23.35.44.54.66.18.22.36.44.56.65.2.21.42.4.63.6.16.14.29.3.46.43l330.39,274c.08.07.17.12.25.18.32.25.65.49.99.71.15.09.29.19.44.28.44.26.9.5,1.37.7.04.02.08.04.12.06.51.21,1.03.39,1.56.53.17.05.35.08.53.12.24.06.47.12.71.16.23.04.46.07.69.1.47.05.95.08,1.42.08.15,0,.3-.02.45-.02.32-.01.65-.02.97-.06.18-.02.36-.06.54-.08.29-.04.58-.09.86-.15.19-.04.38-.1.56-.15.28-.08.55-.16.82-.25.08-.03.15-.04.23-.07l402.48-149.13s.06-.03.09-.04c.39-.15.76-.32,1.13-.51.12-.06.24-.1.35-.16.44-.24.88-.51,1.29-.8.03-.02.06-.04.09-.06.55-.39,1.07-.85,1.56-1.34.83-.82,1.54-1.76,2.11-2.78.09-.17.19-.33.27-.5.32-.64.61-1.3.82-2,.03-.11.05-.22.08-.33.12-.42.23-.84.3-1.27l72.09-423.12c.02-.11.02-.22.03-.33.05-.34.08-.67.1-1.01ZM771.44,701.13l-101.05-83.8,158.61-254.06-57.56,337.86ZM121.2,242.67l65.53,292.26-123.1,45.61,57.57-337.87ZM656.65,591.33l-141.37-381.56,317.59,99.3-176.22,282.26ZM508.76,181.1l22.05-129.41,263.81,218.79-285.86-89.37ZM483.7,176.83l-299.33-10.33L505.75,47.42l-22.05,129.41ZM208.31,514.94l-72.81-324.69,332.56,11.48-259.75,313.21ZM490.1,214.98l144.06,388.81-382.98-65.25-25.77-4.39L490.1,214.98ZM246.9,563.6l379.17,64.6-244.79,225.4-156.33-293.74,21.95,3.74ZM654.16,636.9l101.05,83.8-321.38,119.08,220.33-202.88ZM72.47,604.37l123.1-45.61,140.72,264.4-84.17-69.81-179.65-148.98Z"/></svg>';
|
|
2468
2497
|
|
|
2498
|
+
// src/modules/Dapp/modules/Window/components/menu/img/index.ts
|
|
2499
|
+
var XyoOSLogoWhite = xyoOS_Icon_White_default;
|
|
2500
|
+
|
|
2469
2501
|
// src/modules/Dapp/modules/Window/components/menu/SocialData.tsx
|
|
2470
2502
|
import { Facebook, Instagram, LinkedIn, Reddit, StorefrontRounded, Telegram, X, YouTube } from "@mui/icons-material";
|
|
2471
2503
|
import React17 from "react";
|
|
@@ -2634,7 +2666,7 @@ var BottomMenuArea = /* @__PURE__ */ __name(({ openDebug, backgroundColor }) =>
|
|
|
2634
2666
|
color: theme.vars?.palette.text.primary,
|
|
2635
2667
|
fill: theme.vars?.palette.text.primary
|
|
2636
2668
|
},
|
|
2637
|
-
src:
|
|
2669
|
+
src: XyoOSLogoWhite,
|
|
2638
2670
|
width: "auto",
|
|
2639
2671
|
height: "20px"
|
|
2640
2672
|
})), /* @__PURE__ */ React18.createElement(Typography5, {
|
|
@@ -2708,10 +2740,11 @@ var DappMenuDrawer = /* @__PURE__ */ __name(({ activePath, context, iconSvg, nam
|
|
|
2708
2740
|
const theme = useTheme6();
|
|
2709
2741
|
const drawerColor = darkMode ? theme.vars?.palette.background.paper : darkenCss(theme.vars?.palette.primary.main ?? "#fff", 0.5);
|
|
2710
2742
|
const activeColor = theme.vars?.palette.primary.light;
|
|
2711
|
-
|
|
2743
|
+
useEffect15(() => {
|
|
2712
2744
|
if (menuConfig?.defaultPath && menuItems && activePath) {
|
|
2713
2745
|
const newPath = menuItems.find((item) => activePath === item.path)?.path ?? "";
|
|
2714
|
-
setPath(newPath);
|
|
2746
|
+
const timeoutId = setTimeout(() => setPath(newPath), 0);
|
|
2747
|
+
return () => clearTimeout(timeoutId);
|
|
2715
2748
|
}
|
|
2716
2749
|
}, [
|
|
2717
2750
|
activePath,
|
|
@@ -2878,7 +2911,7 @@ import React25 from "react";
|
|
|
2878
2911
|
// src/modules/Dapp/modules/Window/LoadingFlexbox.tsx
|
|
2879
2912
|
import { Fade, styled as styled4, Typography as Typography7 } from "@mui/material";
|
|
2880
2913
|
import { FlexCol as FlexCol8 } from "@xylabs/react-flexbox";
|
|
2881
|
-
import React24, { useEffect as
|
|
2914
|
+
import React24, { useEffect as useEffect16, useState as useState17 } from "react";
|
|
2882
2915
|
|
|
2883
2916
|
// src/modules/LoadingOsLogo/LoadingOsLogo.tsx
|
|
2884
2917
|
import { FlexCol as FlexCol7 } from "@xylabs/react-flexbox";
|
|
@@ -2887,13 +2920,16 @@ import React22, { useState as useState16 } from "react";
|
|
|
2887
2920
|
// src/modules/LoadingOsLogo/img/xyoOS-Icon.svg
|
|
2888
2921
|
var xyoOS_Icon_default = '<?xml version="1.0" encoding="UTF-8"?><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 900 900"><defs><style>.cls-1{fill:url(#linear-gradient);}.cls-1,.cls-2{stroke-width:0px;}.cls-2{fill:#a8a8a8;opacity:.21;}</style><linearGradient id="linear-gradient" x1="34.7" y1="450.98" x2="865.07" y2="450.98" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#579fd6"/><stop offset=".52" stop-color="#eb407a"/><stop offset="1" stop-color="#f27046"/></linearGradient></defs><path class="cls-2" d="M864.29,297.43c-2.44-6.58-9.76-9.94-16.34-7.5l-143.74,53.26L533.2,21.88c-1.85-3.48-5.21-5.9-9.09-6.56-3.89-.66-7.85.51-10.75,3.18l-267.76,246.55-118-97.86c-5.4-4.48-13.42-3.73-17.9,1.67-4.48,5.4-3.73,13.42,1.67,17.9l118,97.86L36.62,593.37c-2.09,3.34-2.5,7.46-1.14,11.15s4.37,6.54,8.13,7.72l347.4,108.61-25.75,151.12c-1.18,6.92,3.48,13.49,10.4,14.67.24.04.47.07.7.1,6.66.76,12.82-3.81,13.96-10.5l25.75-151.12,363.77,12.56c3.94.14,7.71-1.56,10.22-4.59,2.51-3.03,3.48-7.06,2.62-10.9l-79.64-355.16,143.75-53.26c6.58-2.44,9.94-9.75,7.5-16.34ZM518.49,48.34l156.33,293.75-401.12-68.35,244.79-225.4ZM674.37,367.8l-264.69,319.16-144.06-388.81,408.75,69.65ZM66.9,592.88l176.22-282.26,141.37,381.56-317.59-99.29ZM431.72,700.22l259.75-313.21,72.81,324.69-332.56-11.48Z"/><path class="cls-1" d="M865.04,302.64c.01-.2.02-.4.03-.6,0-.33,0-.66-.03-.99-.01-.2-.02-.39-.04-.58-.04-.35-.1-.71-.17-1.06-.03-.16-.05-.32-.09-.48-.12-.5-.26-1.01-.45-1.5-.18-.49-.4-.97-.64-1.43-.08-.15-.17-.29-.25-.43-.17-.31-.35-.61-.55-.9-.12-.17-.24-.33-.37-.49-.19-.25-.39-.5-.6-.74-.14-.16-.29-.32-.45-.47-.22-.22-.45-.44-.68-.65-.1-.08-.18-.18-.27-.26L530.1,18.07c-.34-.28-.7-.53-1.07-.77-.09-.06-.17-.13-.26-.19-.62-.39-1.26-.7-1.92-.98-.18-.07-.36-.14-.54-.21-.71-.26-1.43-.47-2.16-.6,0,0-.01,0-.02,0,0,0,0,0-.01,0-.67-.11-1.35-.15-2.03-.16-.37,0-.73,0-1.09.03-.23.02-.46.06-.7.09-.86.11-1.69.31-2.5.59-.07.03-.15.04-.23.07l-.32.12c-.2.08-.4.13-.59.22L115.08,165.06c-.11.04-.22.1-.33.15-.3.12-.59.25-.88.39-.19.1-.38.19-.57.3-.27.15-.54.32-.81.5-.17.12-.35.22-.52.35-.27.2-.53.42-.79.64-.14.12-.28.23-.41.35-.35.33-.68.68-1,1.05-.04.05-.08.1-.12.14-.32.38-.6.78-.87,1.2-.09.14-.16.29-.25.43-.18.31-.36.62-.51.94-.08.17-.15.35-.23.53-.13.31-.25.62-.36.93-.06.19-.12.38-.17.57-.09.33-.17.65-.23.98-.02.11-.06.22-.08.33l-72.09,423.12c-.07.43-.11.87-.13,1.3,0,.11-.03.22-.03.33-.03.73.02,1.44.12,2.16.02.19.06.38.09.57.13.74.31,1.48.57,2.19,0,0,0,0,0,0,0,.02.01.03.02.04.2.53.43,1.04.7,1.53.12.22.26.42.38.63.17.28.33.56.52.82.17.23.35.44.54.66.18.22.36.44.56.65.2.21.42.4.63.6.16.14.29.3.46.43l330.39,274c.08.07.17.12.25.18.32.25.65.49.99.71.15.09.29.19.44.28.44.26.9.5,1.37.7.04.02.08.04.12.06.51.21,1.03.39,1.56.53.17.05.35.08.53.12.24.06.47.12.71.16.23.04.46.07.69.1.47.05.95.08,1.42.08.15,0,.3-.02.45-.02.32-.01.65-.02.97-.06.18-.02.36-.06.54-.08.29-.04.58-.09.86-.15.19-.04.38-.1.56-.15.28-.08.55-.16.82-.25.08-.03.15-.04.23-.07l402.48-149.13s.06-.03.09-.04c.39-.15.76-.32,1.13-.51.12-.06.24-.1.35-.16.44-.24.88-.51,1.29-.8.03-.02.06-.04.09-.06.55-.39,1.07-.85,1.56-1.34.83-.82,1.54-1.76,2.11-2.78.09-.17.19-.33.27-.5.32-.64.61-1.3.82-2,.03-.11.05-.22.08-.33.12-.42.23-.84.3-1.27l72.09-423.12c.02-.11.02-.22.03-.33.05-.34.08-.67.1-1.01ZM771.44,701.13l-101.05-83.8,158.61-254.06-57.56,337.86ZM121.2,242.67l65.53,292.26-123.1,45.61,57.57-337.87ZM656.65,591.33l-141.37-381.56,317.59,99.3-176.22,282.26ZM508.76,181.1l22.05-129.41,263.81,218.79-285.86-89.37ZM483.7,176.83l-299.33-10.33L505.75,47.42l-22.05,129.41ZM208.31,514.94l-72.81-324.69,332.56,11.48-259.75,313.21ZM490.1,214.98l144.06,388.81-382.98-65.25-25.77-4.39L490.1,214.98ZM246.9,563.6l379.17,64.6-244.79,225.4-156.33-293.74,21.95,3.74ZM654.16,636.9l101.05,83.8-321.38,119.08,220.33-202.88ZM72.47,604.37l123.1-45.61,140.72,264.4-84.17-69.81-179.65-148.98Z"/></svg>';
|
|
2889
2922
|
|
|
2923
|
+
// src/modules/LoadingOsLogo/img/index.ts
|
|
2924
|
+
var XyoOSIcon = xyoOS_Icon_default;
|
|
2925
|
+
|
|
2890
2926
|
// src/modules/LoadingOsLogo/LoadingOsLogo.tsx
|
|
2891
2927
|
var LoadingOsLogo = /* @__PURE__ */ __name(({ widthInPixels, busy, spinsPerSecond = 0.5, ...props }) => {
|
|
2892
2928
|
const [imageLoaded, setImageLoaded] = useState16(false);
|
|
2893
2929
|
if (!imageLoaded) {
|
|
2894
2930
|
const img = new Image();
|
|
2895
2931
|
img.addEventListener("load", () => setImageLoaded(true));
|
|
2896
|
-
img.src =
|
|
2932
|
+
img.src = XyoOSIcon;
|
|
2897
2933
|
}
|
|
2898
2934
|
return imageLoaded ? /* @__PURE__ */ React22.createElement(FlexCol7, {
|
|
2899
2935
|
sx: {
|
|
@@ -2928,7 +2964,7 @@ var LoadingOsLogo = /* @__PURE__ */ __name(({ widthInPixels, busy, spinsPerSecon
|
|
|
2928
2964
|
},
|
|
2929
2965
|
...props
|
|
2930
2966
|
}, /* @__PURE__ */ React22.createElement("img", {
|
|
2931
|
-
src:
|
|
2967
|
+
src: XyoOSIcon,
|
|
2932
2968
|
height: widthInPixels ?? 22
|
|
2933
2969
|
}))) : null;
|
|
2934
2970
|
}, "LoadingOsLogo");
|
|
@@ -2968,11 +3004,11 @@ var DappLoadingFlexbox = /* @__PURE__ */ __name(({ minimize, open, name, ...prop
|
|
|
2968
3004
|
const [fadeIn, setFadeIn] = useState17(!open);
|
|
2969
3005
|
const [trail, setTrail] = useState17(false);
|
|
2970
3006
|
const skipLoadingScreen = useSkipLoadingScreen();
|
|
2971
|
-
|
|
3007
|
+
useEffect16(() => {
|
|
2972
3008
|
if (open) {
|
|
2973
3009
|
if (skipLoadingScreen) {
|
|
2974
|
-
setFadeIn(false);
|
|
2975
|
-
return;
|
|
3010
|
+
const immediateTimeout = setTimeout(() => setFadeIn(false), 0);
|
|
3011
|
+
return () => clearTimeout(immediateTimeout);
|
|
2976
3012
|
}
|
|
2977
3013
|
const fadeInTimeout = setTimeout(() => {
|
|
2978
3014
|
setFadeIn(false);
|
|
@@ -2989,7 +3025,8 @@ var DappLoadingFlexbox = /* @__PURE__ */ __name(({ minimize, open, name, ...prop
|
|
|
2989
3025
|
};
|
|
2990
3026
|
}
|
|
2991
3027
|
if (!minimize) {
|
|
2992
|
-
setFadeIn(true);
|
|
3028
|
+
const resetTimeout = setTimeout(() => setFadeIn(true), 0);
|
|
3029
|
+
return () => clearTimeout(resetTimeout);
|
|
2993
3030
|
}
|
|
2994
3031
|
}, [
|
|
2995
3032
|
minimize,
|
|
@@ -3181,7 +3218,7 @@ import React31 from "react";
|
|
|
3181
3218
|
import { SignalCellularAltOutlined } from "@mui/icons-material";
|
|
3182
3219
|
import { Tooltip as Tooltip4, useTheme as useTheme7 } from "@mui/material";
|
|
3183
3220
|
import { useIsDark as useIsDark3 } from "@xylabs/react-theme";
|
|
3184
|
-
import React28
|
|
3221
|
+
import React28 from "react";
|
|
3185
3222
|
|
|
3186
3223
|
// src/modules/network/hooks/useOsNetwork.tsx
|
|
3187
3224
|
import { OsPubSubNetworkReadyEvent } from "@xyo-network/os-runtime";
|
|
@@ -3308,31 +3345,23 @@ var NetworkLoadingIndicator = /* @__PURE__ */ __name(({ highContrast }) => {
|
|
|
3308
3345
|
const successColor = highContrast ? highContrastSuccessColor : theme.vars?.palette.success.main;
|
|
3309
3346
|
const highContrastErrorColor = darkMode ? theme.vars?.palette.success.dark : theme.vars?.palette.error.main;
|
|
3310
3347
|
const errorColor = highContrast ? highContrastErrorColor : theme.vars?.palette.error.main;
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
})) : () => /* @__PURE__ */ React28.createElement(Tooltip4, {
|
|
3321
|
-
title: "Error Connecting to Network"
|
|
3322
|
-
}, /* @__PURE__ */ React28.createElement(SignalCellularAltOutlined, {
|
|
3323
|
-
sx: {
|
|
3324
|
-
color: errorColor
|
|
3325
|
-
}
|
|
3326
|
-
}));
|
|
3327
|
-
} else {
|
|
3328
|
-
return WaitingForNetwork;
|
|
3348
|
+
if (!networkReady) {
|
|
3349
|
+
return /* @__PURE__ */ React28.createElement(WaitingForNetwork, null);
|
|
3350
|
+
}
|
|
3351
|
+
const connectionReady = true;
|
|
3352
|
+
return connectionReady ? /* @__PURE__ */ React28.createElement(Tooltip4, {
|
|
3353
|
+
title: "Connected to Network"
|
|
3354
|
+
}, /* @__PURE__ */ React28.createElement(SignalCellularAltOutlined, {
|
|
3355
|
+
sx: {
|
|
3356
|
+
color: successColor
|
|
3329
3357
|
}
|
|
3330
|
-
},
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3358
|
+
})) : /* @__PURE__ */ React28.createElement(Tooltip4, {
|
|
3359
|
+
title: "Error Connecting to Network"
|
|
3360
|
+
}, /* @__PURE__ */ React28.createElement(SignalCellularAltOutlined, {
|
|
3361
|
+
sx: {
|
|
3362
|
+
color: errorColor
|
|
3363
|
+
}
|
|
3364
|
+
}));
|
|
3336
3365
|
}, "NetworkLoadingIndicator");
|
|
3337
3366
|
|
|
3338
3367
|
// src/modules/network/components/NetworkButton.tsx
|
|
@@ -3342,7 +3371,7 @@ import React29 from "react";
|
|
|
3342
3371
|
var NetworkButton = /* @__PURE__ */ __name(({ disabled, startIcon, ...props }) => {
|
|
3343
3372
|
const { networkReady } = useOsNetwork();
|
|
3344
3373
|
return /* @__PURE__ */ React29.createElement(Button2, {
|
|
3345
|
-
disabled: disabled || !networkReady,
|
|
3374
|
+
disabled: disabled === true || !networkReady,
|
|
3346
3375
|
startIcon: /* @__PURE__ */ React29.createElement(React29.Fragment, null, startIcon, networkReady === false ? /* @__PURE__ */ React29.createElement(NotInterested, null) : null),
|
|
3347
3376
|
...props
|
|
3348
3377
|
});
|
|
@@ -3458,6 +3487,14 @@ var DappPage = /* @__PURE__ */ __name(({ checkNetwork, noScroll, subtitle, title
|
|
|
3458
3487
|
import { animated as animated2, useTransition } from "@react-spring/web";
|
|
3459
3488
|
import { ErrorRender as ErrorRender5 } from "@xylabs/react-error";
|
|
3460
3489
|
import React32 from "react";
|
|
3490
|
+
var resolveActiveComponent = /* @__PURE__ */ __name((activePathRef, pathToComponent) => {
|
|
3491
|
+
const activeIndex = pathToComponent?.findIndex(({ path: componentPath }) => activePathRef === componentPath);
|
|
3492
|
+
const activeItem = pathToComponent && activeIndex !== -1 && activeIndex !== void 0 ? pathToComponent[activeIndex] : void 0;
|
|
3493
|
+
return activeItem ? activeItem.component : /* @__PURE__ */ React32.createElement(ErrorRender5, {
|
|
3494
|
+
error: new Error(`No component found for path: ${activePathRef}`),
|
|
3495
|
+
scope: "DappPathSwitcher"
|
|
3496
|
+
});
|
|
3497
|
+
}, "resolveActiveComponent");
|
|
3461
3498
|
var DappPathSwitcher = /* @__PURE__ */ __name(({ activePath, pathToComponent }) => {
|
|
3462
3499
|
const transitions = useTransition(activePath, {
|
|
3463
3500
|
enter: {
|
|
@@ -3491,19 +3528,12 @@ var DappPathSwitcher = /* @__PURE__ */ __name(({ activePath, pathToComponent })
|
|
|
3491
3528
|
top: 0,
|
|
3492
3529
|
zIndex
|
|
3493
3530
|
}
|
|
3494
|
-
}, (
|
|
3495
|
-
const activeIndex = pathToComponent?.findIndex(({ path: componentPath }) => activePathRef === componentPath);
|
|
3496
|
-
const activeItem = pathToComponent && activeIndex !== -1 && activeIndex !== void 0 ? pathToComponent[activeIndex] : void 0;
|
|
3497
|
-
return activeItem ? activeItem.component : /* @__PURE__ */ React32.createElement(ErrorRender5, {
|
|
3498
|
-
error: new Error(`No component found for path: ${activePathRef}`),
|
|
3499
|
-
scope: "DappPathSwitcher"
|
|
3500
|
-
});
|
|
3501
|
-
})())));
|
|
3531
|
+
}, resolveActiveComponent(activePathRef, pathToComponent))));
|
|
3502
3532
|
}, "DappPathSwitcher");
|
|
3503
3533
|
|
|
3504
3534
|
// src/modules/Dapp/Page/Row.tsx
|
|
3505
3535
|
import { Divider as Divider4, Fade as Fade2, styled as styled6 } from "@mui/material";
|
|
3506
|
-
import React34, { useMemo as
|
|
3536
|
+
import React34, { useMemo as useMemo17 } from "react";
|
|
3507
3537
|
|
|
3508
3538
|
// src/modules/Dapp/Page/DividerChip.tsx
|
|
3509
3539
|
import { Chip as Chip2, CircularProgress } from "@mui/material";
|
|
@@ -3527,7 +3557,7 @@ var DividerChip = /* @__PURE__ */ __name(({ registeredDapps, ...props }) => {
|
|
|
3527
3557
|
|
|
3528
3558
|
// src/modules/Dapp/Page/Row.tsx
|
|
3529
3559
|
var DappsRow = /* @__PURE__ */ __name(({ chipLabel, currentIntent, installType, registeredDappsSet, xnsNetwork, xnsNodeUrl }) => {
|
|
3530
|
-
const filteredRegisteredDappSets =
|
|
3560
|
+
const filteredRegisteredDappSets = useMemo17(() => DappInstallTypeFilters[installType](registeredDappsSet), [
|
|
3531
3561
|
installType,
|
|
3532
3562
|
registeredDappsSet
|
|
3533
3563
|
]);
|
|
@@ -3565,7 +3595,7 @@ var StyledGridContainer = styled6("div", {
|
|
|
3565
3595
|
|
|
3566
3596
|
// src/modules/dapps/accounts/components/AnimatedComponents/GenericAnimations/ShiftAnimation.tsx
|
|
3567
3597
|
import { animated as animated3, useSpring as useSpring2 } from "@react-spring/web";
|
|
3568
|
-
import React35, { useEffect as
|
|
3598
|
+
import React35, { useEffect as useEffect17, useState as useState18 } from "react";
|
|
3569
3599
|
var MovementData = {
|
|
3570
3600
|
down: [
|
|
3571
3601
|
{
|
|
@@ -3646,7 +3676,7 @@ var ShiftAnimation = /* @__PURE__ */ __name(({ startAnimation = false, animation
|
|
|
3646
3676
|
y: startAnimation ? MovementData[animationDirection][0].FromYMovement : 0
|
|
3647
3677
|
}
|
|
3648
3678
|
});
|
|
3649
|
-
|
|
3679
|
+
useEffect17(() => {
|
|
3650
3680
|
if (!isShifted) {
|
|
3651
3681
|
return;
|
|
3652
3682
|
}
|
|
@@ -3931,10 +3961,10 @@ import React44 from "react";
|
|
|
3931
3961
|
|
|
3932
3962
|
// src/modules/dapps/table/head/hooks/useVisibleColumns.tsx
|
|
3933
3963
|
import { useMediaQuery as useMediaQuery2 } from "@mui/material";
|
|
3934
|
-
import { useMemo as
|
|
3964
|
+
import { useMemo as useMemo18 } from "react";
|
|
3935
3965
|
var useVisibleColumns = /* @__PURE__ */ __name((tableHeadCells) => {
|
|
3936
3966
|
const isMedium = useMediaQuery2((theme) => theme.breakpoints.down("lg"));
|
|
3937
|
-
const VisibleTableCells =
|
|
3967
|
+
const VisibleTableCells = useMemo18(() => {
|
|
3938
3968
|
return isMedium ? tableHeadCells.filter((cell) => cell.showOnMobile) : tableHeadCells;
|
|
3939
3969
|
}, [
|
|
3940
3970
|
isMedium,
|
|
@@ -4210,7 +4240,7 @@ var HorizontalBarGraph = /* @__PURE__ */ __name(({ items = sampleData, ...props
|
|
|
4210
4240
|
// src/modules/widgets/Types/DataColumns/TwoColTwoStat.tsx
|
|
4211
4241
|
import { Typography as Typography13, useTheme as useTheme10 } from "@mui/material";
|
|
4212
4242
|
import { FlexCol as FlexCol16, FlexGrowRow as FlexGrowRow9 } from "@xylabs/react-flexbox";
|
|
4213
|
-
import React48, { useEffect as
|
|
4243
|
+
import React48, { useEffect as useEffect18 } from "react";
|
|
4214
4244
|
var MAX_LENGTH = 2;
|
|
4215
4245
|
var validateProps = /* @__PURE__ */ __name((props) => {
|
|
4216
4246
|
if (props.length > MAX_LENGTH) {
|
|
@@ -4219,7 +4249,7 @@ var validateProps = /* @__PURE__ */ __name((props) => {
|
|
|
4219
4249
|
}, "validateProps");
|
|
4220
4250
|
var TwoColTwoStat = /* @__PURE__ */ __name(({ items, ...props }) => {
|
|
4221
4251
|
const theme = useTheme10();
|
|
4222
|
-
|
|
4252
|
+
useEffect18(() => {
|
|
4223
4253
|
validateProps(items);
|
|
4224
4254
|
}, [
|
|
4225
4255
|
items
|
|
@@ -4511,7 +4541,7 @@ var WidgetCardExamples = /* @__PURE__ */ __name(() => {
|
|
|
4511
4541
|
const darkMode = useIsDark4();
|
|
4512
4542
|
return /* @__PURE__ */ React54.createElement(DappPage, {
|
|
4513
4543
|
sx: {
|
|
4514
|
-
backgroundImage: darkMode ? `url(${
|
|
4544
|
+
backgroundImage: darkMode ? `url(${xyoDark})` : `url(${xyoLight})`,
|
|
4515
4545
|
backgroundSize: "cover"
|
|
4516
4546
|
},
|
|
4517
4547
|
container: "xl",
|
|
@@ -4526,9 +4556,9 @@ var WidgetCardExamples = /* @__PURE__ */ __name(() => {
|
|
|
4526
4556
|
// src/settings/Theme/ThemeProvider.tsx
|
|
4527
4557
|
import { ThemeProvider } from "@mui/material";
|
|
4528
4558
|
import { XyosTheme } from "@xylabs/react-theme";
|
|
4529
|
-
import React55, { useMemo as
|
|
4559
|
+
import React55, { useMemo as useMemo19 } from "react";
|
|
4530
4560
|
var AppOsThemeProvider = /* @__PURE__ */ __name(({ children }) => {
|
|
4531
|
-
const initialValue =
|
|
4561
|
+
const initialValue = useMemo19(() => {
|
|
4532
4562
|
const validValues = [
|
|
4533
4563
|
"light",
|
|
4534
4564
|
"dark"
|