@xyo-network/os-react-runtime 4.2.13 → 5.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 +373 -378
- package/dist/browser/index.mjs.map +1 -1
- package/dist/browser/xyoOS-Icon-Black-ACSS4SEQ.svg +1 -0
- package/dist/types/StyledBuilder.d.ts +6 -0
- package/dist/{browser → types}/StyledBuilder.d.ts.map +1 -1
- package/dist/{browser → types}/components/RenderHtml.d.ts.map +1 -1
- package/dist/{browser → types}/components/Widgets/Types/Stat/Stat.d.ts +1 -1
- package/dist/types/components/Widgets/Types/Stat/Stat.d.ts.map +1 -0
- package/dist/types/components/Widgets/Types/Stat/Subtitle.d.ts +2 -0
- package/dist/{browser → types}/components/Widgets/Types/Stat/Subtitle.d.ts.map +1 -1
- package/dist/types/components/Widgets/Types/Stat/Unit.d.ts +2 -0
- package/dist/{browser → types}/components/Widgets/Types/Stat/Unit.d.ts.map +1 -1
- package/dist/types/components/Widgets/Types/Stat/Value.d.ts +2 -0
- package/dist/{browser → types}/components/Widgets/Types/Stat/Value.d.ts.map +1 -1
- package/dist/types/components/Widgets/Types/Tables/BooleanTable.d.ts +19 -0
- package/dist/{browser → types}/components/Widgets/Types/Tables/BooleanTable.d.ts.map +1 -1
- package/dist/types/dapps/shared/accounts/icon/Icon.d.ts +4 -0
- package/dist/{browser → types}/dapps/shared/accounts/models/CreditCardInput.d.ts +1 -11
- package/dist/{browser → types}/dapps/shared/accounts/models/CreditCardInput.d.ts.map +1 -1
- package/dist/types/dapps/shared/name-service/DomainIcon.d.ts +4 -0
- package/dist/types/dapps/shared/table/head/Payload.d.ts +8 -0
- package/dist/{browser → types}/dapps/shared/table/head/Payload.d.ts.map +1 -1
- package/dist/types/dapps/shared/table/head/components/StyledTableRowHeader.d.ts +2 -0
- package/dist/{browser → types}/dapps/shared/table/head/components/StyledTableRowHeader.d.ts.map +1 -1
- package/dist/{browser → types}/dapps/shared/table/head/hooks/useVisibleColumns.d.ts.map +1 -1
- package/dist/types/helpers/BridgeActivityHelper.d.ts +41 -0
- package/dist/{browser → types}/helpers/BridgeActivityHelper.d.ts.map +1 -1
- package/dist/{browser → types}/helpers/NodePalettes.d.ts.map +1 -1
- package/dist/{browser → types}/helpers/widget/Caller.d.ts +1 -10
- package/dist/types/helpers/widget/Caller.d.ts.map +1 -0
- package/dist/types/hooks/DappIntentResourceHooks.d.ts +12 -0
- package/dist/{browser → types}/hooks/DappIntentResourceHooks.d.ts.map +1 -1
- package/dist/{browser → types}/hooks/NameServiceRegistrationHooks.d.ts +1 -1
- package/dist/{browser → types}/hooks/NameServiceRegistrationHooks.d.ts.map +1 -1
- package/dist/{browser → types}/hooks/ResourceHooks.d.ts.map +1 -1
- package/dist/types/hooks/access-requests/useBuildDappAccessRequestResource.d.ts +12 -0
- package/dist/{browser → types}/hooks/access-requests/useBuildDappAccessRequestResource.d.ts.map +1 -1
- package/dist/{browser → types}/hooks/bios/useKernel.d.ts.map +1 -1
- package/dist/types/hooks/intent/useDappIntentListener.d.ts +8 -0
- package/dist/types/hooks/intent/useDappIntentListener.d.ts.map +1 -0
- package/dist/{browser → types}/hooks/intent/useDappIntentListener2.d.ts.map +1 -1
- package/dist/types/hooks/menu/useAddDappMenuItems.d.ts +8 -0
- package/dist/{browser → types}/hooks/menu/useAddDappMenuItems.d.ts.map +1 -1
- package/dist/types/hooks/menu/useBuildDappMenuResource.d.ts +14 -0
- package/dist/{browser → types}/hooks/menu/useBuildDappMenuResource.d.ts.map +1 -1
- package/dist/{browser → types}/hooks/menu/useDappMenuCaller.d.ts.map +1 -1
- package/dist/{browser → types}/hooks/os/useDappContextCreator.d.ts.map +1 -1
- package/dist/{browser → types}/hooks/os/useDappRegistry.d.ts.map +1 -1
- package/dist/{browser → types}/hooks/os/useDappSeedPhraseRepository.d.ts.map +1 -1
- package/dist/{browser → types}/hooks/os/useWidgetDapps.d.ts.map +1 -1
- package/dist/types/hooks/useAccountArchivist.d.ts +12 -0
- package/dist/{browser → types}/hooks/useAccountArchivist.d.ts.map +1 -1
- package/dist/{browser → types}/hooks/useCleanup.d.ts.map +1 -1
- package/dist/{browser → types}/hooks/useDappCaller.d.ts.map +1 -1
- package/dist/{browser → types}/hooks/useDappIntentCaller.d.ts.map +1 -1
- package/dist/types/hooks/useExposedNode.d.ts +12 -0
- package/dist/{browser → types}/hooks/useExposedNode.d.ts.map +1 -1
- package/dist/{browser → types}/hooks/useOsSettingsCaller.d.ts.map +1 -1
- package/dist/{browser → types}/hooks/usePhraseFile.d.ts.map +1 -1
- package/dist/{browser → types}/hooks/useStackReady.d.ts.map +1 -1
- package/dist/{browser → types}/hooks/useSyncExternalPayloadStore.d.ts +1 -1
- package/dist/{browser → types}/hooks/useSyncExternalPayloadStore.d.ts.map +1 -1
- package/dist/types/modules/Dapp/Button/LaunchFrame.d.ts +12 -0
- package/dist/types/modules/Dapp/Button/LaunchFrame.d.ts.map +1 -0
- package/dist/{browser → types}/modules/Dapp/Button/StyledComponents.d.ts +1 -3
- package/dist/types/modules/Dapp/Button/StyledComponents.d.ts.map +1 -0
- package/dist/{browser → types}/modules/Dapp/Button/hooks/useLaunchPoint.d.ts.map +1 -1
- package/dist/{browser → types}/modules/Dapp/Button/lib/decomposeProps.d.ts +45 -6
- package/dist/types/modules/Dapp/Button/lib/decomposeProps.d.ts.map +1 -0
- package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/lib/deriveDappState.d.ts.map +1 -1
- package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/menu/useDappMenu.d.ts.map +1 -1
- package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappInjectableParamsFromRoute.d.ts +1 -1
- package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappInjectableParamsFromRoute.d.ts.map +1 -1
- package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappIntentRequest.d.ts.map +1 -1
- package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappPathFromRoute.d.ts.map +1 -1
- package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappStateFromRoute.d.ts.map +1 -1
- package/dist/types/modules/Dapp/modules/Window/hooks/useDappMenuResourceValues.d.ts +9 -0
- package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/useDappMenuResourceValues.d.ts.map +1 -1
- package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/useDecomposeDapp.d.ts.map +1 -1
- package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/useSyncOsRegisteredAccessInterfaces.d.ts.map +1 -1
- package/dist/{browser → types}/modules/Dapp/modules/Window/menu/BottomMenuArea.d.ts.map +1 -1
- package/dist/types/modules/Dapp/modules/Window/menu/StyledListItems.d.ts +5 -0
- package/dist/{browser → types}/modules/Dapp/modules/Window/menu/StyledListItems.d.ts.map +1 -1
- package/dist/types/modules/Dapp/modules/Window/menu/img/index.d.ts +3 -0
- package/dist/types/modules/Dapp/modules/Window/menu/img/index.d.ts.map +1 -0
- package/dist/types/modules/Dapp/modules/Window/menu/stories/DefaultData.d.ts +10 -0
- package/dist/types/modules/Dapp/modules/Window/menu/stories/DefaultData.d.ts.map +1 -0
- package/dist/types/modules/Dapp/modules/access-interface/hooks/useDialogState.d.ts +9 -0
- package/dist/{browser → types}/modules/Dapp/modules/access-interface/hooks/useDialogState.d.ts.map +1 -1
- package/dist/{browser → types}/modules/network/hooks/lib/createNetworkState.d.ts +1 -1
- package/dist/{browser → types}/modules/network/hooks/lib/createNetworkState.d.ts.map +1 -1
- package/dist/{browser → types}/utils/getApiDomain.d.ts.map +1 -1
- package/package.json +63 -62
- package/src/components/RenderHtml.tsx +1 -1
- package/src/components/Widgets/Types/Stat/Stat.tsx +5 -7
- package/src/hooks/intent/useDappIntentListener.tsx +4 -2
- package/src/modules/Dapp/Button/IconEx.tsx +1 -1
- package/src/modules/Dapp/Button/LaunchFrame.tsx +7 -8
- package/src/modules/Dapp/Button/StyledComponents.tsx +1 -15
- package/src/modules/Dapp/modules/Window/hooks/menu/useDappMenu.tsx +1 -1
- package/src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappInjectableParamsFromRoute.tsx +3 -3
- package/src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappIntentRequest.tsx +3 -2
- package/src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappPathFromRoute.tsx +1 -1
- package/src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappStateFromRoute.tsx +2 -2
- package/src/modules/Dapp/modules/Window/menu/BottomMenuArea.tsx +2 -4
- package/src/modules/Dapp/modules/Window/menu/img/index.ts +2 -0
- package/src/modules/Dapp/modules/Window/menu/stories/DefaultData.tsx +1 -1
- package/src/modules/XyOsUi/contexts/XyOsUiContext.ts +2 -2
- package/src/modules/network/hooks/lib/createNetworkState.ts +1 -1
- package/src/types/global.d.ts +3 -0
- package/src/types/images.d.ts +0 -9
- package/dist/browser/StyledBuilder.d.ts +0 -8
- package/dist/browser/components/Widgets/Types/Stat/Stat.d.ts.map +0 -1
- package/dist/browser/components/Widgets/Types/Stat/Subtitle.d.ts +0 -4
- package/dist/browser/components/Widgets/Types/Stat/Unit.d.ts +0 -4
- package/dist/browser/components/Widgets/Types/Stat/Value.d.ts +0 -4
- package/dist/browser/components/Widgets/Types/Tables/BooleanTable.d.ts +0 -27
- package/dist/browser/dapps/shared/accounts/icon/Icon.d.ts +0 -4
- package/dist/browser/dapps/shared/name-service/DomainIcon.d.ts +0 -4
- package/dist/browser/dapps/shared/table/head/Payload.d.ts +0 -18
- package/dist/browser/dapps/shared/table/head/components/StyledTableRowHeader.d.ts +0 -4
- package/dist/browser/helpers/BridgeActivityHelper.d.ts +0 -130
- package/dist/browser/helpers/widget/Caller.d.ts.map +0 -1
- package/dist/browser/hooks/DappIntentResourceHooks.d.ts +0 -30
- package/dist/browser/hooks/access-requests/useBuildDappAccessRequestResource.d.ts +0 -26
- package/dist/browser/hooks/intent/useDappIntentListener.d.ts +0 -16
- package/dist/browser/hooks/intent/useDappIntentListener.d.ts.map +0 -1
- package/dist/browser/hooks/menu/useAddDappMenuItems.d.ts +0 -16
- package/dist/browser/hooks/menu/useBuildDappMenuResource.d.ts +0 -42
- package/dist/browser/hooks/useAccountArchivist.d.ts +0 -64
- package/dist/browser/hooks/useExposedNode.d.ts +0 -45
- package/dist/browser/modules/Dapp/Button/LaunchFrame.d.ts +0 -11
- package/dist/browser/modules/Dapp/Button/LaunchFrame.d.ts.map +0 -1
- package/dist/browser/modules/Dapp/Button/StyledComponents.d.ts.map +0 -1
- package/dist/browser/modules/Dapp/Button/lib/decomposeProps.d.ts.map +0 -1
- package/dist/browser/modules/Dapp/modules/Window/hooks/useDappMenuResourceValues.d.ts +0 -23
- package/dist/browser/modules/Dapp/modules/Window/menu/StyledListItems.d.ts +0 -7
- package/dist/browser/modules/Dapp/modules/Window/menu/stories/DefaultData.d.ts +0 -138
- package/dist/browser/modules/Dapp/modules/Window/menu/stories/DefaultData.d.ts.map +0 -1
- package/dist/browser/modules/Dapp/modules/access-interface/hooks/useDialogState.d.ts +0 -23
- /package/dist/{browser → types}/DappPage.d.ts +0 -0
- /package/dist/{browser → types}/DappPage.d.ts.map +0 -0
- /package/dist/{browser → types}/DappPathSwitcher.d.ts +0 -0
- /package/dist/{browser → types}/DappPathSwitcher.d.ts.map +0 -0
- /package/dist/{browser → types}/components/RenderHtml.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/StackOfWidgets.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/StackOfWidgets.d.ts.map +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/BarGraph/HorizontalBarGraph.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/BarGraph/HorizontalBarGraph.d.ts.map +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/BarGraph/StyledLinearProgress.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/BarGraph/StyledLinearProgress.d.ts.map +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/BarGraph/index.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/BarGraph/index.d.ts.map +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/DataColumns/TwoColFourStat.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/DataColumns/TwoColFourStat.d.ts.map +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/DataColumns/TwoColTwoStat.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/DataColumns/TwoColTwoStat.d.ts.map +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/DataColumns/index.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/DataColumns/index.d.ts.map +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/Examples/BarGraph.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/Examples/BarGraph.d.ts.map +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/Examples/BooleanTable.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/Examples/BooleanTable.d.ts.map +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/Examples/TwoColTwoStat.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/Examples/TwoColTwoStat.d.ts.map +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/Examples/index.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/Examples/index.d.ts.map +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/Stat/Insight.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/Stat/Insight.d.ts.map +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/Stat/InsightStatProps.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/Stat/InsightStatProps.d.ts.map +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/Stat/index.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/Stat/index.d.ts.map +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/Tables/index.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/Tables/index.d.ts.map +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/index.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/Types/index.d.ts.map +0 -0
- /package/dist/{browser → types}/components/Widgets/WidgetCard.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/WidgetCard.d.ts.map +0 -0
- /package/dist/{browser → types}/components/Widgets/WidgetCardExamples.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/WidgetCardExamples.d.ts.map +0 -0
- /package/dist/{browser → types}/components/Widgets/index.d.ts +0 -0
- /package/dist/{browser → types}/components/Widgets/index.d.ts.map +0 -0
- /package/dist/{browser → types}/components/alerts/errors/RenderErrorWithSupportLink.d.ts +0 -0
- /package/dist/{browser → types}/components/alerts/errors/RenderErrorWithSupportLink.d.ts.map +0 -0
- /package/dist/{browser → types}/components/alerts/errors/index.d.ts +0 -0
- /package/dist/{browser → types}/components/alerts/errors/index.d.ts.map +0 -0
- /package/dist/{browser → types}/components/alerts/index.d.ts +0 -0
- /package/dist/{browser → types}/components/alerts/index.d.ts.map +0 -0
- /package/dist/{browser → types}/components/index.d.ts +0 -0
- /package/dist/{browser → types}/components/index.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/index.d.ts +0 -0
- /package/dist/{browser → types}/dapps/index.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/AccountCard.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/AccountCard.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/AnimatedComponents/GenericAnimations/ShiftAnimation.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/AnimatedComponents/GenericAnimations/ShiftAnimation.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/AnimatedComponents/GenericAnimations/index.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/AnimatedComponents/GenericAnimations/index.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPoint.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPoint.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPointList.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPointList.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/AnimatedComponents/IconAnimations/index.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/AnimatedComponents/IconAnimations/index.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/AnimatedComponents/index.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/AnimatedComponents/index.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/InputFields/CoinbaseEmail.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/InputFields/CoinbaseEmail.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/InputFields/PrimaryCryptowallet.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/InputFields/PrimaryCryptowallet.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/InputFields/SecondaryCryptowallet.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/InputFields/SecondaryCryptowallet.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/InputFields/index.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/InputFields/index.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/PaymentMethods.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/PaymentMethods.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/index.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/components/index.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/icon/Icon.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/icon/index.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/icon/index.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/index.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/index.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/models/index.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/accounts/models/index.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/index.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/index.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/name-service/DomainIcon.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/name-service/index.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/name-service/index.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/table/NextIteratorFlexbox.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/table/NextIteratorFlexbox.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/table/head/Schema.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/table/head/Schema.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/table/head/components/Head.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/table/head/components/Head.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/table/head/components/index.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/table/head/components/index.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/table/head/hooks/index.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/table/head/hooks/index.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/table/head/hooks/useVisibleColumns.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/table/head/index.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/table/head/index.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/table/index.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/table/index.d.ts.map +0 -0
- /package/dist/{browser → types}/dapps/shared/utils/countries.d.ts +0 -0
- /package/dist/{browser → types}/dapps/shared/utils/countries.d.ts.map +0 -0
- /package/dist/{browser → types}/helpers/BrowserLocator.d.ts +0 -0
- /package/dist/{browser → types}/helpers/BrowserLocator.d.ts.map +0 -0
- /package/dist/{browser → types}/helpers/NodePalettes.d.ts +0 -0
- /package/dist/{browser → types}/helpers/index.d.ts +0 -0
- /package/dist/{browser → types}/helpers/index.d.ts.map +0 -0
- /package/dist/{browser → types}/helpers/monitor/XyOsBrowserMonitor.d.ts +0 -0
- /package/dist/{browser → types}/helpers/monitor/XyOsBrowserMonitor.d.ts.map +0 -0
- /package/dist/{browser → types}/helpers/monitor/index.d.ts +0 -0
- /package/dist/{browser → types}/helpers/monitor/index.d.ts.map +0 -0
- /package/dist/{browser → types}/helpers/widget/index.d.ts +0 -0
- /package/dist/{browser → types}/helpers/widget/index.d.ts.map +0 -0
- /package/dist/{browser → types}/hooks/ResourceHooks.d.ts +0 -0
- /package/dist/{browser → types}/hooks/access-requests/index.d.ts +0 -0
- /package/dist/{browser → types}/hooks/access-requests/index.d.ts.map +0 -0
- /package/dist/{browser → types}/hooks/bios/index.d.ts +0 -0
- /package/dist/{browser → types}/hooks/bios/index.d.ts.map +0 -0
- /package/dist/{browser → types}/hooks/bios/useBios.d.ts +0 -0
- /package/dist/{browser → types}/hooks/bios/useBios.d.ts.map +0 -0
- /package/dist/{browser → types}/hooks/bios/useKernel.d.ts +0 -0
- /package/dist/{browser → types}/hooks/index.d.ts +0 -0
- /package/dist/{browser → types}/hooks/index.d.ts.map +0 -0
- /package/dist/{browser → types}/hooks/intent/index.d.ts +0 -0
- /package/dist/{browser → types}/hooks/intent/index.d.ts.map +0 -0
- /package/dist/{browser → types}/hooks/intent/useClearIntents.d.ts +0 -0
- /package/dist/{browser → types}/hooks/intent/useClearIntents.d.ts.map +0 -0
- /package/dist/{browser → types}/hooks/intent/useDappIntentListener2.d.ts +0 -0
- /package/dist/{browser → types}/hooks/intent/useNavigateIntent.d.ts +0 -0
- /package/dist/{browser → types}/hooks/intent/useNavigateIntent.d.ts.map +0 -0
- /package/dist/{browser → types}/hooks/intent/useSendDappIntent.d.ts +0 -0
- /package/dist/{browser → types}/hooks/intent/useSendDappIntent.d.ts.map +0 -0
- /package/dist/{browser → types}/hooks/menu/index.d.ts +0 -0
- /package/dist/{browser → types}/hooks/menu/index.d.ts.map +0 -0
- /package/dist/{browser → types}/hooks/menu/useDappMenuCaller.d.ts +0 -0
- /package/dist/{browser → types}/hooks/os/index.d.ts +0 -0
- /package/dist/{browser → types}/hooks/os/index.d.ts.map +0 -0
- /package/dist/{browser → types}/hooks/os/useDappContextCreator.d.ts +0 -0
- /package/dist/{browser → types}/hooks/os/useDappRegistrationResults.d.ts +0 -0
- /package/dist/{browser → types}/hooks/os/useDappRegistrationResults.d.ts.map +0 -0
- /package/dist/{browser → types}/hooks/os/useDappRegistry.d.ts +0 -0
- /package/dist/{browser → types}/hooks/os/useDappSeedPhraseRepository.d.ts +0 -0
- /package/dist/{browser → types}/hooks/os/useWidgetDapps.d.ts +0 -0
- /package/dist/{browser → types}/hooks/useCleanup.d.ts +0 -0
- /package/dist/{browser → types}/hooks/useDappCaller.d.ts +0 -0
- /package/dist/{browser → types}/hooks/useDappIntentCaller.d.ts +0 -0
- /package/dist/{browser → types}/hooks/useDebugClick.d.ts +0 -0
- /package/dist/{browser → types}/hooks/useDebugClick.d.ts.map +0 -0
- /package/dist/{browser → types}/hooks/useDetectCustomer.d.ts +0 -0
- /package/dist/{browser → types}/hooks/useDetectCustomer.d.ts.map +0 -0
- /package/dist/{browser → types}/hooks/useOsSettingsCaller.d.ts +0 -0
- /package/dist/{browser → types}/hooks/usePhraseFile.d.ts +0 -0
- /package/dist/{browser → types}/hooks/useStackReady.d.ts +0 -0
- /package/dist/{browser → types}/hooks/useTabs.d.ts +0 -0
- /package/dist/{browser → types}/hooks/useTabs.d.ts.map +0 -0
- /package/dist/{browser → types}/img/backgrounds/index.d.ts +0 -0
- /package/dist/{browser → types}/img/backgrounds/index.d.ts.map +0 -0
- /package/dist/{browser → types}/img/index.d.ts +0 -0
- /package/dist/{browser → types}/img/index.d.ts.map +0 -0
- /package/dist/{browser → types}/index.d.ts +0 -0
- /package/dist/{browser → types}/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/Button/IconEx.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/Button/IconEx.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/Button/hooks/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/Button/hooks/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/Button/hooks/useLaunchPoint.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/Button/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/Button/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/Button/lib/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/Button/lib/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/Container.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/Container.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/ContainerFlexbox.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/ContainerFlexbox.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/Debug/Dialog.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/Debug/Dialog.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/Debug/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/Debug/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/EnterAnimation.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/EnterAnimation.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/Page/DividerChip.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/Page/DividerChip.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/Page/Row.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/Page/Row.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/Page/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/Page/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/lib/DefaultIconSize.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/lib/DefaultIconSize.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/lib/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/lib/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/AppBar.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/AppBar.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/Chrome.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/Chrome.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/DappWindow.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/DappWindow.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/LoadingFlexbox.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/LoadingFlexbox.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/MetaTags.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/MetaTags.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/NodeManifest.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/NodeManifest.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/Rendered.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/Rendered.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/Trail.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/Trail.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/components/DefaultComingSoon/DeveloperLinkSection.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/components/DefaultComingSoon/DeveloperLinkSection.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/components/DefaultComingSoon/InstallButtonSection.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/components/DefaultComingSoon/InstallButtonSection.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/components/DefaultComingSoon/SummarySection.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/components/DefaultComingSoon/SummarySection.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/components/DefaultComingSoon/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/components/DefaultComingSoon/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/components/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/components/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/lib/DappPathHelpers.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/lib/DappPathHelpers.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/lib/deriveDappState.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/lib/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/lib/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/menu/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/menu/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/menu/useDappMenu.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/route/helpers/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/route/helpers/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappIntentRequest.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappPathFromRoute.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappStateFromRoute.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/route/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/route/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/useDecomposeDapp.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/useSkipLoadingScreen.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/useSkipLoadingScreen.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/hooks/useSyncOsRegisteredAccessInterfaces.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/menu/BottomMenuArea.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/menu/BottomNavigation.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/menu/BottomNavigation.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/menu/Drawer.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/menu/Drawer.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/menu/SocialData.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/menu/SocialData.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/menu/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/menu/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/types/DappMenuProperties.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/types/DappMenuProperties.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/types/DappWindowProps.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/types/DappWindowProps.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/types/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/Window/types/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/access-interface/components/Dialog.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/access-interface/components/Dialog.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/access-interface/components/Flexbox.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/access-interface/components/Flexbox.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/access-interface/components/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/access-interface/components/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/access-interface/hooks/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/access-interface/hooks/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/access-interface/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/access-interface/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/Dapp/modules/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/LoadingOsLogo/LoadingOsLogo.d.ts +0 -0
- /package/dist/{browser → types}/modules/LoadingOsLogo/LoadingOsLogo.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/LoadingOsLogo/img/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/LoadingOsLogo/img/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/LoadingOsLogo/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/LoadingOsLogo/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/XyOsUi/contexts/XyOsUiContext.d.ts +0 -0
- /package/dist/{browser → types}/modules/XyOsUi/contexts/XyOsUiContext.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/XyOsUi/contexts/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/XyOsUi/contexts/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/XyOsUi/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/XyOsUi/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/XyOsUi/lib/XyOsUi.d.ts +0 -0
- /package/dist/{browser → types}/modules/XyOsUi/lib/XyOsUi.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/XyOsUi/lib/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/XyOsUi/lib/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/network/components/LoadingIndicator.d.ts +0 -0
- /package/dist/{browser → types}/modules/network/components/LoadingIndicator.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/network/components/NetworkButton.d.ts +0 -0
- /package/dist/{browser → types}/modules/network/components/NetworkButton.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/network/components/NetworkReady.d.ts +0 -0
- /package/dist/{browser → types}/modules/network/components/NetworkReady.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/network/components/StyledLoadingIndicator.d.ts +0 -0
- /package/dist/{browser → types}/modules/network/components/StyledLoadingIndicator.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/network/components/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/network/components/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/network/hooks/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/network/hooks/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/network/hooks/lib/NetworkState.d.ts +0 -0
- /package/dist/{browser → types}/modules/network/hooks/lib/NetworkState.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/network/hooks/lib/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/network/hooks/lib/index.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/network/hooks/useOsNetwork.d.ts +0 -0
- /package/dist/{browser → types}/modules/network/hooks/useOsNetwork.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/network/hooks/useXyoPublicNetwork.d.ts +0 -0
- /package/dist/{browser → types}/modules/network/hooks/useXyoPublicNetwork.d.ts.map +0 -0
- /package/dist/{browser → types}/modules/network/index.d.ts +0 -0
- /package/dist/{browser → types}/modules/network/index.d.ts.map +0 -0
- /package/dist/{browser → types}/settings/Theme/ThemeCssVars.d.ts +0 -0
- /package/dist/{browser → types}/settings/Theme/ThemeCssVars.d.ts.map +0 -0
- /package/dist/{browser → types}/settings/Theme/ThemeProvider.d.ts +0 -0
- /package/dist/{browser → types}/settings/Theme/ThemeProvider.d.ts.map +0 -0
- /package/dist/{browser → types}/settings/Theme/index.d.ts +0 -0
- /package/dist/{browser → types}/settings/Theme/index.d.ts.map +0 -0
- /package/dist/{browser → types}/settings/index.d.ts +0 -0
- /package/dist/{browser → types}/settings/index.d.ts.map +0 -0
- /package/dist/{browser → types}/utils/DappInstallTypeFilters.d.ts +0 -0
- /package/dist/{browser → types}/utils/DappInstallTypeFilters.d.ts.map +0 -0
- /package/dist/{browser → types}/utils/getApiDomain.d.ts +0 -0
- /package/dist/{browser → types}/utils/index.d.ts +0 -0
- /package/dist/{browser → types}/utils/index.d.ts.map +0 -0
- /package/dist/{browser → types}/utils/useOnWindowResize.d.ts +0 -0
- /package/dist/{browser → types}/utils/useOnWindowResize.d.ts.map +0 -0
package/dist/browser/index.mjs
CHANGED
|
@@ -44,18 +44,16 @@ var ErrorRenderWithSupportDefault = /* @__PURE__ */ __name((props) => {
|
|
|
44
44
|
// src/components/RenderHtml.tsx
|
|
45
45
|
import React2 from "react";
|
|
46
46
|
var RenderHtml = /* @__PURE__ */ __name(({ htmlString }) => {
|
|
47
|
-
return (
|
|
47
|
+
return /* @__PURE__ */ React2.createElement("div", {
|
|
48
|
+
style: {
|
|
49
|
+
height: 64,
|
|
50
|
+
width: 64
|
|
51
|
+
},
|
|
48
52
|
// eslint-disable-next-line @eslint-react/dom/no-dangerously-set-innerhtml
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
dangerouslySetInnerHTML: {
|
|
55
|
-
__html: htmlString
|
|
56
|
-
}
|
|
57
|
-
})
|
|
58
|
-
);
|
|
53
|
+
dangerouslySetInnerHTML: {
|
|
54
|
+
__html: htmlString
|
|
55
|
+
}
|
|
56
|
+
});
|
|
59
57
|
}, "RenderHtml");
|
|
60
58
|
|
|
61
59
|
// src/components/Widgets/WidgetCard.tsx
|
|
@@ -158,16 +156,16 @@ var WidgetCard = /* @__PURE__ */ __name(({ widgetName, widgetContent, widgetPath
|
|
|
158
156
|
// src/components/Widgets/WidgetCardExamples.tsx
|
|
159
157
|
import { Stack as Stack2 } from "@mui/material";
|
|
160
158
|
import { useColorSchemeEx as useColorSchemeEx4 } from "@xylabs/react-invertible-theme";
|
|
161
|
-
import
|
|
159
|
+
import React42 from "react";
|
|
162
160
|
|
|
163
161
|
// src/DappPage.tsx
|
|
164
162
|
import { Container as Container3, Typography as Typography10 } from "@mui/material";
|
|
165
163
|
import { ThrownErrorBoundary } from "@xylabs/react-error";
|
|
166
164
|
import { FlexCol as FlexCol13 } from "@xylabs/react-flexbox";
|
|
167
|
-
import
|
|
165
|
+
import React34 from "react";
|
|
168
166
|
|
|
169
167
|
// src/modules/Dapp/Container.tsx
|
|
170
|
-
import
|
|
168
|
+
import React27, { memo, useMemo as useMemo14 } from "react";
|
|
171
169
|
|
|
172
170
|
// src/hooks/access-requests/useBuildDappAccessRequestResource.ts
|
|
173
171
|
import { usePromise } from "@xylabs/react-promise";
|
|
@@ -366,7 +364,8 @@ var useClearIntents = /* @__PURE__ */ __name(() => {
|
|
|
366
364
|
}, "useClearIntents");
|
|
367
365
|
|
|
368
366
|
// src/hooks/intent/useDappIntentListener.tsx
|
|
369
|
-
import {
|
|
367
|
+
import { filterAs } from "@xylabs/array";
|
|
368
|
+
import { asOptionalDappIntent, DappIntentTypes, DappMode } from "@xyo-network/os-model";
|
|
370
369
|
import { useWeakArchivistFromNode as useWeakArchivistFromNode2 } from "@xyo-network/react-archivist";
|
|
371
370
|
import { useEffect as useEffect5, useState } from "react";
|
|
372
371
|
var useDappIntentListener = /* @__PURE__ */ __name((dappName, targetMode = DappMode.Window) => {
|
|
@@ -375,7 +374,7 @@ var useDappIntentListener = /* @__PURE__ */ __name((dappName, targetMode = DappM
|
|
|
375
374
|
const [intentArchivist] = useWeakArchivistFromNode2("IntentArchivist");
|
|
376
375
|
useEffect5(() => {
|
|
377
376
|
const listener = /* @__PURE__ */ __name(({ payloads }) => {
|
|
378
|
-
const filteredPayloads = payloads
|
|
377
|
+
const filteredPayloads = filterAs(payloads, asOptionalDappIntent);
|
|
379
378
|
for (const payload of filteredPayloads) {
|
|
380
379
|
const allDapps = dappName === null && payload.targetMode === targetMode;
|
|
381
380
|
const targetDapps = dappName === payload.targetDappId && payload.targetMode === targetMode;
|
|
@@ -1355,7 +1354,7 @@ import { Circle } from "@mui/icons-material";
|
|
|
1355
1354
|
import { FlexCol as FlexCol2 } from "@xylabs/react-flexbox";
|
|
1356
1355
|
import { DappIntentTypes as DappIntentTypes5 } from "@xyo-network/os-model";
|
|
1357
1356
|
import { DappIntentCaller as DappIntentCaller2, XyOsMonitor as XyOsMonitor2 } from "@xyo-network/os-runtime";
|
|
1358
|
-
import
|
|
1357
|
+
import React6, { useRef as useRef3 } from "react";
|
|
1359
1358
|
|
|
1360
1359
|
// src/modules/Dapp/lib/DefaultIconSize.ts
|
|
1361
1360
|
var DEFAULT_ICON_SIZE = 84;
|
|
@@ -1363,8 +1362,8 @@ var DEFAULT_ICON_SIZE = 84;
|
|
|
1363
1362
|
// src/modules/Dapp/Button/LaunchFrame.tsx
|
|
1364
1363
|
import { useTheme as useTheme2 } from "@mui/material";
|
|
1365
1364
|
import { animated, config, useSpring } from "@react-spring/web";
|
|
1366
|
-
import React5, {
|
|
1367
|
-
var DappLaunchFrame = /* @__PURE__ */
|
|
1365
|
+
import React5, { useMemo as useMemo9 } from "react";
|
|
1366
|
+
var DappLaunchFrame = /* @__PURE__ */ __name(({ bgColor, children, id, launchLeft, open, launchTop, ref }) => {
|
|
1368
1367
|
const theme = useTheme2();
|
|
1369
1368
|
const frameOpenSpringConfig = useMemo9(() => ({
|
|
1370
1369
|
config: config.stiff,
|
|
@@ -1420,8 +1419,7 @@ var DappLaunchFrame = /* @__PURE__ */ forwardRef(({ bgColor, children, id, launc
|
|
|
1420
1419
|
width: "100%"
|
|
1421
1420
|
}
|
|
1422
1421
|
}, children)));
|
|
1423
|
-
});
|
|
1424
|
-
DappLaunchFrame.displayName = "DappLaunchFrame";
|
|
1422
|
+
}, "DappLaunchFrame");
|
|
1425
1423
|
|
|
1426
1424
|
// src/modules/Dapp/Button/lib/decomposeProps.tsx
|
|
1427
1425
|
var decomposeProps = /* @__PURE__ */ __name((dappIcon, props) => {
|
|
@@ -1441,15 +1439,8 @@ var decomposeProps = /* @__PURE__ */ __name((dappIcon, props) => {
|
|
|
1441
1439
|
import { alpha as alpha2, styled } from "@mui/material";
|
|
1442
1440
|
import { ButtonEx as ButtonEx3 } from "@xylabs/react-button";
|
|
1443
1441
|
import { TypographyEx } from "@xyo-network/react-shared";
|
|
1444
|
-
import React6, { forwardRef as forwardRef2 } from "react";
|
|
1445
|
-
var ForwardedRefButtonEx = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
1446
|
-
return /* @__PURE__ */ React6.createElement("span", {
|
|
1447
|
-
ref
|
|
1448
|
-
}, /* @__PURE__ */ React6.createElement(ButtonEx3, props));
|
|
1449
|
-
});
|
|
1450
|
-
ForwardedRefButtonEx.displayName = "ForwardedRefButtonEx";
|
|
1451
1442
|
var borderRadiusFactor = 1.5;
|
|
1452
|
-
var StyledDappIconButtonEx = styled(
|
|
1443
|
+
var StyledDappIconButtonEx = styled(ButtonEx3, {
|
|
1453
1444
|
name: "DappIconButton",
|
|
1454
1445
|
shouldForwardProp: /* @__PURE__ */ __name((prop) => ![
|
|
1455
1446
|
"iconBgBaseColor"
|
|
@@ -1526,20 +1517,20 @@ var DappIconButton = /* @__PURE__ */ __name(({ children, dappIcon, dappIconSvg,
|
|
|
1526
1517
|
});
|
|
1527
1518
|
await sendIntent?.(DappIntentCaller2.buildIntent(DappIntentCaller2.OsDappName, DappIntentTypes5.Launch, dappName));
|
|
1528
1519
|
}, "onClickIcon");
|
|
1529
|
-
return /* @__PURE__ */
|
|
1520
|
+
return /* @__PURE__ */ React6.createElement(FlexCol2, {
|
|
1530
1521
|
alignItems: "stretch",
|
|
1531
1522
|
justifyContent: "stretch"
|
|
1532
|
-
}, /* @__PURE__ */
|
|
1523
|
+
}, /* @__PURE__ */ React6.createElement(DappLaunchFrame, {
|
|
1533
1524
|
id: "dapp-launch-frame",
|
|
1534
1525
|
open: !!active,
|
|
1535
1526
|
launchLeft,
|
|
1536
1527
|
launchTop
|
|
1537
|
-
}, children), /* @__PURE__ */
|
|
1528
|
+
}, children), /* @__PURE__ */ React6.createElement("span", {
|
|
1538
1529
|
style: {
|
|
1539
1530
|
cursor: "pointer"
|
|
1540
1531
|
},
|
|
1541
1532
|
onClick: onClickIcon
|
|
1542
|
-
}, /* @__PURE__ */
|
|
1533
|
+
}, /* @__PURE__ */ React6.createElement(StyledDappIconButtonEx, {
|
|
1543
1534
|
iconBgBaseColor: color,
|
|
1544
1535
|
ref: iconButtonRef,
|
|
1545
1536
|
sx: {
|
|
@@ -1549,16 +1540,16 @@ var DappIconButton = /* @__PURE__ */ __name(({ children, dappIcon, dappIconSvg,
|
|
|
1549
1540
|
...sx
|
|
1550
1541
|
},
|
|
1551
1542
|
...nonSxProps
|
|
1552
|
-
}, dappIconSvg ? /* @__PURE__ */
|
|
1543
|
+
}, dappIconSvg ? /* @__PURE__ */ React6.createElement(RenderHtml, {
|
|
1553
1544
|
htmlString: dappIconSvg
|
|
1554
|
-
}) : /* @__PURE__ */
|
|
1545
|
+
}) : /* @__PURE__ */ React6.createElement(StyledDefaultDappIcon, {
|
|
1555
1546
|
fontSize: DappIconSize
|
|
1556
|
-
}, dappIcon?.name.at(0))), /* @__PURE__ */
|
|
1547
|
+
}, dappIcon?.name.at(0))), /* @__PURE__ */ React6.createElement(FlexCol2, {
|
|
1557
1548
|
gap: 0.25
|
|
1558
|
-
}, /* @__PURE__ */
|
|
1549
|
+
}, /* @__PURE__ */ React6.createElement(StyledDappName, {
|
|
1559
1550
|
variant: "body2",
|
|
1560
1551
|
maxWidth: iconSize
|
|
1561
|
-
}, MiddleEllipsisFunction(dappIcon?.name)), /* @__PURE__ */
|
|
1552
|
+
}, MiddleEllipsisFunction(dappIcon?.name)), /* @__PURE__ */ React6.createElement(Circle, {
|
|
1562
1553
|
sx: {
|
|
1563
1554
|
height: 8,
|
|
1564
1555
|
opacity: minimized ? 1 : 0,
|
|
@@ -1574,7 +1565,7 @@ import { ErrorRender } from "@xylabs/react-error";
|
|
|
1574
1565
|
import { FlexCol as FlexCol3, FlexRow as FlexRow2 } from "@xylabs/react-flexbox";
|
|
1575
1566
|
import { RegisteredNames } from "@xyo-network/os-model";
|
|
1576
1567
|
import { AccessNodeQueries } from "@xyo-network/os-runtime";
|
|
1577
|
-
import
|
|
1568
|
+
import React7, { useState as useState9 } from "react";
|
|
1578
1569
|
var DappAccessDialog = /* @__PURE__ */ __name(({ accessRequest, children, dappNode, registeredDappAccess, ...props }) => {
|
|
1579
1570
|
const [error, setError] = useState9();
|
|
1580
1571
|
const [noPayloadsInserted, setNoPayloadsInserted] = useState9(false);
|
|
@@ -1613,43 +1604,43 @@ var DappAccessDialog = /* @__PURE__ */ __name(({ accessRequest, children, dappNo
|
|
|
1613
1604
|
setError(new Error("No registered dapp access or dappNode found"));
|
|
1614
1605
|
}
|
|
1615
1606
|
}, "handleAllow");
|
|
1616
|
-
return /* @__PURE__ */
|
|
1607
|
+
return /* @__PURE__ */ React7.createElement(Dialog, props, /* @__PURE__ */ React7.createElement(DialogTitle, null, "Message from XYO OS"), /* @__PURE__ */ React7.createElement(DialogContent, {
|
|
1617
1608
|
dividers: true,
|
|
1618
1609
|
sx: {
|
|
1619
1610
|
display: "flex",
|
|
1620
1611
|
flexDirection: "column",
|
|
1621
1612
|
gap: 3
|
|
1622
1613
|
}
|
|
1623
|
-
}, /* @__PURE__ */
|
|
1614
|
+
}, /* @__PURE__ */ React7.createElement(ErrorRender, {
|
|
1624
1615
|
error,
|
|
1625
1616
|
scope: "DappAccessDialog"
|
|
1626
|
-
}), /* @__PURE__ */
|
|
1617
|
+
}), /* @__PURE__ */ React7.createElement(FlexCol3, {
|
|
1627
1618
|
gap: 1
|
|
1628
|
-
}, /* @__PURE__ */
|
|
1619
|
+
}, /* @__PURE__ */ React7.createElement(Typography2, {
|
|
1629
1620
|
variant: "subtitle2"
|
|
1630
|
-
}, "dApp to dApp Access Request"), /* @__PURE__ */
|
|
1621
|
+
}, "dApp to dApp Access Request"), /* @__PURE__ */ React7.createElement(FlexRow2, {
|
|
1631
1622
|
gap: 1
|
|
1632
|
-
}, /* @__PURE__ */
|
|
1623
|
+
}, /* @__PURE__ */ React7.createElement(Typography2, {
|
|
1633
1624
|
fontSize: 16
|
|
1634
|
-
}, /* @__PURE__ */
|
|
1625
|
+
}, /* @__PURE__ */ React7.createElement("strong", null, accessRequest?.requestingDappId), "\xA0"), /* @__PURE__ */ React7.createElement(ArrowForward, null), /* @__PURE__ */ React7.createElement(Typography2, {
|
|
1635
1626
|
fontSize: 16
|
|
1636
|
-
}, /* @__PURE__ */
|
|
1627
|
+
}, /* @__PURE__ */ React7.createElement("strong", null, registeredDappAccess?.registeringDappId))))), /* @__PURE__ */ React7.createElement(DialogContent, {
|
|
1637
1628
|
dividers: true,
|
|
1638
1629
|
sx: {
|
|
1639
1630
|
display: "flex",
|
|
1640
1631
|
flexDirection: "column",
|
|
1641
1632
|
gap: 3
|
|
1642
1633
|
}
|
|
1643
|
-
}, /* @__PURE__ */
|
|
1634
|
+
}, /* @__PURE__ */ React7.createElement(FlexCol3, {
|
|
1644
1635
|
gap: 1
|
|
1645
|
-
}, /* @__PURE__ */
|
|
1636
|
+
}, /* @__PURE__ */ React7.createElement(Typography2, null, /* @__PURE__ */ React7.createElement("strong", null, accessRequest?.requestingDappId), " ", "dApp would like to access your", /* @__PURE__ */ React7.createElement("strong", null, registeredDappAccess?.name), " ", "from", " ", /* @__PURE__ */ React7.createElement("strong", null, registeredDappAccess?.registeringDappId), " ", "dApp")), noPayloadsInserted ? /* @__PURE__ */ React7.createElement(Alert, {
|
|
1646
1637
|
severity: "warning"
|
|
1647
|
-
}, registeredDappAccess?.name, " ", "Access Request did not find payloads to insert") : null), children ? /* @__PURE__ */
|
|
1638
|
+
}, registeredDappAccess?.name, " ", "Access Request did not find payloads to insert") : null), children ? /* @__PURE__ */ React7.createElement(DialogContent, {
|
|
1648
1639
|
dividers: true
|
|
1649
|
-
}, children) : null, /* @__PURE__ */
|
|
1640
|
+
}, children) : null, /* @__PURE__ */ React7.createElement(DialogActions, null, /* @__PURE__ */ React7.createElement(Button, {
|
|
1650
1641
|
variant: "outlined",
|
|
1651
1642
|
onClick: onClose
|
|
1652
|
-
}, "Cancel"), /* @__PURE__ */
|
|
1643
|
+
}, "Cancel"), /* @__PURE__ */ React7.createElement(Button, {
|
|
1653
1644
|
variant: "contained",
|
|
1654
1645
|
onClick: handleAllow
|
|
1655
1646
|
}, "Allow")));
|
|
@@ -1657,7 +1648,7 @@ var DappAccessDialog = /* @__PURE__ */ __name(({ accessRequest, children, dappNo
|
|
|
1657
1648
|
|
|
1658
1649
|
// src/modules/Dapp/modules/access-interface/components/Flexbox.tsx
|
|
1659
1650
|
import { ErrorRender as ErrorRender2 } from "@xylabs/react-error";
|
|
1660
|
-
import
|
|
1651
|
+
import React8 from "react";
|
|
1661
1652
|
|
|
1662
1653
|
// src/modules/Dapp/modules/access-interface/hooks/useDialogState.tsx
|
|
1663
1654
|
import { usePromise as usePromise10 } from "@xylabs/react-promise";
|
|
@@ -1692,13 +1683,13 @@ var useDialogState = /* @__PURE__ */ __name((context) => {
|
|
|
1692
1683
|
// src/modules/Dapp/modules/access-interface/components/Flexbox.tsx
|
|
1693
1684
|
var DappAccessFlexbox = /* @__PURE__ */ __name(({ context }) => {
|
|
1694
1685
|
const { accessRequests, allowAccessDialogError, openAccessDialog, registeredInterface, setOpenAccessDialog } = useDialogState(context);
|
|
1695
|
-
return /* @__PURE__ */
|
|
1686
|
+
return /* @__PURE__ */ React8.createElement(DappAccessDialog, {
|
|
1696
1687
|
accessRequest: accessRequests?.[0],
|
|
1697
1688
|
dappNode: context,
|
|
1698
1689
|
open: openAccessDialog,
|
|
1699
1690
|
onClose: /* @__PURE__ */ __name(() => setOpenAccessDialog(false), "onClose"),
|
|
1700
1691
|
registeredDappAccess: registeredInterface
|
|
1701
|
-
}, allowAccessDialogError ? /* @__PURE__ */
|
|
1692
|
+
}, allowAccessDialogError ? /* @__PURE__ */ React8.createElement(ErrorRender2, {
|
|
1702
1693
|
error: allowAccessDialogError,
|
|
1703
1694
|
scope: "DappAccessFlexbox"
|
|
1704
1695
|
}) : null);
|
|
@@ -1711,38 +1702,38 @@ import { FlexGrowRow as FlexGrowRow2 } from "@xylabs/react-flexbox";
|
|
|
1711
1702
|
import { DarkModeIconButtonForColorScheme } from "@xylabs/react-invertible-theme";
|
|
1712
1703
|
import { DappIntentTypes as DappIntentTypes6 } from "@xyo-network/os-model";
|
|
1713
1704
|
import { DappIntentCaller as DappIntentCaller3 } from "@xyo-network/os-runtime";
|
|
1714
|
-
import
|
|
1705
|
+
import React10 from "react";
|
|
1715
1706
|
|
|
1716
1707
|
// src/modules/Dapp/Debug/Dialog.tsx
|
|
1717
1708
|
import { Dialog as Dialog2, DialogActions as DialogActions2, DialogContent as DialogContent2 } from "@mui/material";
|
|
1718
1709
|
import { ButtonEx as ButtonEx4 } from "@xylabs/react-button";
|
|
1719
1710
|
import { FlexCol as FlexCol4 } from "@xylabs/react-flexbox";
|
|
1720
1711
|
import { NodeProvider } from "@xyo-network/react-node";
|
|
1721
|
-
import
|
|
1712
|
+
import React9, { lazy, Suspense } from "react";
|
|
1722
1713
|
var Debug = /* @__PURE__ */ lazy(() => import(
|
|
1723
1714
|
/* webpackChunkName: "Debug" */
|
|
1724
1715
|
"@xyo-network/os-react-debug"
|
|
1725
1716
|
));
|
|
1726
|
-
var LazyDebug = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
1727
|
-
fallback: /* @__PURE__ */
|
|
1728
|
-
}, /* @__PURE__ */
|
|
1717
|
+
var LazyDebug = /* @__PURE__ */ __name(() => /* @__PURE__ */ React9.createElement(Suspense, {
|
|
1718
|
+
fallback: /* @__PURE__ */ React9.createElement(FlexCol4, null)
|
|
1719
|
+
}, /* @__PURE__ */ React9.createElement(FlexCol4, null), /* @__PURE__ */ React9.createElement(Debug, {
|
|
1729
1720
|
height: "100%"
|
|
1730
1721
|
})), "LazyDebug");
|
|
1731
1722
|
var DebugDialog = /* @__PURE__ */ __name(({ closeDebug, debugOpen, ...props }) => {
|
|
1732
|
-
return /* @__PURE__ */
|
|
1723
|
+
return /* @__PURE__ */ React9.createElement(Dialog2, {
|
|
1733
1724
|
open: debugOpen,
|
|
1734
1725
|
onClose: closeDebug,
|
|
1735
1726
|
fullScreen: true,
|
|
1736
1727
|
...props
|
|
1737
|
-
}, /* @__PURE__ */
|
|
1728
|
+
}, /* @__PURE__ */ React9.createElement(DialogContent2, null, /* @__PURE__ */ React9.createElement(LazyDebug, null)), /* @__PURE__ */ React9.createElement(DialogActions2, null, /* @__PURE__ */ React9.createElement(ButtonEx4, {
|
|
1738
1729
|
variant: "outlined",
|
|
1739
1730
|
onClick: closeDebug
|
|
1740
1731
|
}, "Close")));
|
|
1741
1732
|
}, "DebugDialog");
|
|
1742
1733
|
var DebugDialogWithNode = /* @__PURE__ */ __name(({ closeDebug, debugOpen, context, ...props }) => {
|
|
1743
|
-
return /* @__PURE__ */
|
|
1734
|
+
return /* @__PURE__ */ React9.createElement(NodeProvider, {
|
|
1744
1735
|
node: context?.root
|
|
1745
|
-
}, /* @__PURE__ */
|
|
1736
|
+
}, /* @__PURE__ */ React9.createElement(DebugDialog, {
|
|
1746
1737
|
closeDebug,
|
|
1747
1738
|
debugOpen,
|
|
1748
1739
|
...props
|
|
@@ -1751,7 +1742,7 @@ var DebugDialogWithNode = /* @__PURE__ */ __name(({ closeDebug, debugOpen, conte
|
|
|
1751
1742
|
|
|
1752
1743
|
// src/modules/Dapp/modules/Window/AppBar.tsx
|
|
1753
1744
|
var EmptyDappBarForPadding = /* @__PURE__ */ __name((props) => {
|
|
1754
|
-
return /* @__PURE__ */
|
|
1745
|
+
return /* @__PURE__ */ React10.createElement(AppBar, {
|
|
1755
1746
|
color: "primary",
|
|
1756
1747
|
sx: {
|
|
1757
1748
|
flexDirection: "row"
|
|
@@ -1764,7 +1755,7 @@ var EmptyDappBarForPadding = /* @__PURE__ */ __name((props) => {
|
|
|
1764
1755
|
var DappBar = /* @__PURE__ */ __name(({ title, context, name, ...props }) => {
|
|
1765
1756
|
const sendIntent = useSendDappIntent();
|
|
1766
1757
|
const { closeDebug, debugOpen, openDebug } = useDebugClick();
|
|
1767
|
-
return /* @__PURE__ */
|
|
1758
|
+
return /* @__PURE__ */ React10.createElement(AppBar, {
|
|
1768
1759
|
elevation: 0,
|
|
1769
1760
|
color: "transparent",
|
|
1770
1761
|
sx: {
|
|
@@ -1774,21 +1765,21 @@ var DappBar = /* @__PURE__ */ __name(({ title, context, name, ...props }) => {
|
|
|
1774
1765
|
component: "div",
|
|
1775
1766
|
position: "sticky",
|
|
1776
1767
|
...props
|
|
1777
|
-
}, /* @__PURE__ */
|
|
1768
|
+
}, /* @__PURE__ */ React10.createElement(Toolbar, {
|
|
1778
1769
|
disableGutters: true,
|
|
1779
1770
|
sx: {
|
|
1780
1771
|
paddingX: 2
|
|
1781
1772
|
}
|
|
1782
|
-
}, /* @__PURE__ */
|
|
1773
|
+
}, /* @__PURE__ */ React10.createElement(Typography3, {
|
|
1783
1774
|
noWrap: true,
|
|
1784
1775
|
variant: "h6",
|
|
1785
1776
|
letterSpacing: "-1px"
|
|
1786
|
-
}, title)), /* @__PURE__ */
|
|
1777
|
+
}, title)), /* @__PURE__ */ React10.createElement(FlexGrowRow2, null), /* @__PURE__ */ React10.createElement(Toolbar, {
|
|
1787
1778
|
disableGutters: true,
|
|
1788
1779
|
sx: {
|
|
1789
1780
|
paddingX: 2
|
|
1790
1781
|
}
|
|
1791
|
-
}, /* @__PURE__ */
|
|
1782
|
+
}, /* @__PURE__ */ React10.createElement(IconButton2, {
|
|
1792
1783
|
onClick: openDebug,
|
|
1793
1784
|
sx: {
|
|
1794
1785
|
display: {
|
|
@@ -1796,7 +1787,7 @@ var DappBar = /* @__PURE__ */ __name(({ title, context, name, ...props }) => {
|
|
|
1796
1787
|
xs: "flex"
|
|
1797
1788
|
}
|
|
1798
1789
|
}
|
|
1799
|
-
}, /* @__PURE__ */
|
|
1790
|
+
}, /* @__PURE__ */ React10.createElement(BugReport, null)), /* @__PURE__ */ React10.createElement(Tooltip2, {
|
|
1800
1791
|
title: "Toggle Light/Dark Mode",
|
|
1801
1792
|
sx: {
|
|
1802
1793
|
display: {
|
|
@@ -1804,9 +1795,9 @@ var DappBar = /* @__PURE__ */ __name(({ title, context, name, ...props }) => {
|
|
|
1804
1795
|
xs: "flex"
|
|
1805
1796
|
}
|
|
1806
1797
|
}
|
|
1807
|
-
}, /* @__PURE__ */
|
|
1798
|
+
}, /* @__PURE__ */ React10.createElement(Box2, null, /* @__PURE__ */ React10.createElement(DarkModeIconButtonForColorScheme, {
|
|
1808
1799
|
defaultLightModeColor: "warning"
|
|
1809
|
-
}))), /* @__PURE__ */
|
|
1800
|
+
}))), /* @__PURE__ */ React10.createElement(Divider, {
|
|
1810
1801
|
orientation: "vertical",
|
|
1811
1802
|
flexItem: true,
|
|
1812
1803
|
sx: {
|
|
@@ -1816,19 +1807,19 @@ var DappBar = /* @__PURE__ */ __name(({ title, context, name, ...props }) => {
|
|
|
1816
1807
|
},
|
|
1817
1808
|
m: 1
|
|
1818
1809
|
}
|
|
1819
|
-
}), /* @__PURE__ */
|
|
1810
|
+
}), /* @__PURE__ */ React10.createElement(Tooltip2, {
|
|
1820
1811
|
title: "Minimize"
|
|
1821
|
-
}, /* @__PURE__ */
|
|
1812
|
+
}, /* @__PURE__ */ React10.createElement(IconButton2, {
|
|
1822
1813
|
onClick: /* @__PURE__ */ __name(async () => await sendIntent?.(DappIntentCaller3.buildIntent(DappIntentCaller3.OsDappName, DappIntentTypes6.Minimize, name)), "onClick")
|
|
1823
|
-
}, /* @__PURE__ */
|
|
1814
|
+
}, /* @__PURE__ */ React10.createElement(RemoveRounded, {
|
|
1824
1815
|
htmlColor: "inherit"
|
|
1825
|
-
}))), /* @__PURE__ */
|
|
1816
|
+
}))), /* @__PURE__ */ React10.createElement(Tooltip2, {
|
|
1826
1817
|
title: "Close"
|
|
1827
|
-
}, /* @__PURE__ */
|
|
1818
|
+
}, /* @__PURE__ */ React10.createElement(IconButton2, {
|
|
1828
1819
|
onClick: /* @__PURE__ */ __name(async () => await sendIntent?.(DappIntentCaller3.buildIntent(DappIntentCaller3.OsDappName, DappIntentTypes6.Close, name)), "onClick")
|
|
1829
|
-
}, /* @__PURE__ */
|
|
1820
|
+
}, /* @__PURE__ */ React10.createElement(CloseRounded, {
|
|
1830
1821
|
htmlColor: "inherit"
|
|
1831
|
-
})))), /* @__PURE__ */
|
|
1822
|
+
})))), /* @__PURE__ */ React10.createElement(DebugDialogWithNode, {
|
|
1832
1823
|
closeDebug,
|
|
1833
1824
|
debugOpen,
|
|
1834
1825
|
context
|
|
@@ -1838,20 +1829,20 @@ var DappBar = /* @__PURE__ */ __name(({ title, context, name, ...props }) => {
|
|
|
1838
1829
|
// src/modules/Dapp/modules/Window/Chrome.tsx
|
|
1839
1830
|
import { useMediaQuery } from "@mui/material";
|
|
1840
1831
|
import { FlexCol as FlexCol5, FlexGrowCol, FlexRow as FlexRow3 } from "@xylabs/react-flexbox";
|
|
1841
|
-
import
|
|
1832
|
+
import React11 from "react";
|
|
1842
1833
|
var DappChromeSmall = /* @__PURE__ */ __name(({ appBar, children, screenMenu, splashScreen, ...props }) => {
|
|
1843
|
-
return /* @__PURE__ */
|
|
1834
|
+
return /* @__PURE__ */ React11.createElement(FlexCol5, {
|
|
1844
1835
|
alignItems: "stretch",
|
|
1845
1836
|
id: "dapp-chrome-container-small",
|
|
1846
1837
|
...props
|
|
1847
|
-
}, splashScreen, /* @__PURE__ */
|
|
1838
|
+
}, splashScreen, /* @__PURE__ */ React11.createElement(FlexGrowCol, {
|
|
1848
1839
|
alignItems: "stretch",
|
|
1849
1840
|
id: "dapp-chrome-small",
|
|
1850
1841
|
justifyContent: "start",
|
|
1851
1842
|
sx: {
|
|
1852
1843
|
background: /* @__PURE__ */ __name((theme) => theme.palette.background.default, "background")
|
|
1853
1844
|
}
|
|
1854
|
-
}, appBar, /* @__PURE__ */
|
|
1845
|
+
}, appBar, /* @__PURE__ */ React11.createElement(FlexGrowCol, {
|
|
1855
1846
|
sx: {
|
|
1856
1847
|
overflowY: "auto"
|
|
1857
1848
|
},
|
|
@@ -1859,18 +1850,18 @@ var DappChromeSmall = /* @__PURE__ */ __name(({ appBar, children, screenMenu, sp
|
|
|
1859
1850
|
}, children), screenMenu));
|
|
1860
1851
|
}, "DappChromeSmall");
|
|
1861
1852
|
var DappChromeLarge = /* @__PURE__ */ __name(({ appBar, children, screenMenu, splashScreen, ...props }) => {
|
|
1862
|
-
return /* @__PURE__ */
|
|
1853
|
+
return /* @__PURE__ */ React11.createElement(FlexRow3, {
|
|
1863
1854
|
alignItems: "stretch",
|
|
1864
1855
|
id: "dapp-chrome-container-large",
|
|
1865
1856
|
...props
|
|
1866
|
-
}, splashScreen, screenMenu, /* @__PURE__ */
|
|
1857
|
+
}, splashScreen, screenMenu, /* @__PURE__ */ React11.createElement(FlexGrowCol, {
|
|
1867
1858
|
alignItems: "stretch",
|
|
1868
1859
|
id: "dapp-chrome-large",
|
|
1869
1860
|
justifyContent: "start",
|
|
1870
1861
|
sx: {
|
|
1871
1862
|
background: /* @__PURE__ */ __name((theme) => theme.palette.background.default, "background")
|
|
1872
1863
|
}
|
|
1873
|
-
}, appBar, /* @__PURE__ */
|
|
1864
|
+
}, appBar, /* @__PURE__ */ React11.createElement(FlexGrowCol, {
|
|
1874
1865
|
sx: {
|
|
1875
1866
|
overflowY: "auto"
|
|
1876
1867
|
},
|
|
@@ -1880,10 +1871,10 @@ var DappChromeLarge = /* @__PURE__ */ __name(({ appBar, children, screenMenu, sp
|
|
|
1880
1871
|
}, "DappChromeLarge");
|
|
1881
1872
|
var DappChrome = /* @__PURE__ */ __name(({ largeScreenMenu, smallScreenMenu, ...props }) => {
|
|
1882
1873
|
const isMedium = useMediaQuery((theme) => theme.breakpoints.up("md"));
|
|
1883
|
-
return isMedium ? /* @__PURE__ */
|
|
1874
|
+
return isMedium ? /* @__PURE__ */ React11.createElement(DappChromeLarge, {
|
|
1884
1875
|
screenMenu: largeScreenMenu,
|
|
1885
1876
|
...props
|
|
1886
|
-
}) : /* @__PURE__ */
|
|
1877
|
+
}) : /* @__PURE__ */ React11.createElement(DappChromeSmall, {
|
|
1887
1878
|
screenMenu: smallScreenMenu,
|
|
1888
1879
|
...props
|
|
1889
1880
|
});
|
|
@@ -1892,14 +1883,14 @@ var DappChrome = /* @__PURE__ */ __name(({ largeScreenMenu, smallScreenMenu, ...
|
|
|
1892
1883
|
// src/modules/Dapp/modules/Window/components/DefaultComingSoon/DefaultComingSoon.tsx
|
|
1893
1884
|
import { alpha as alpha3, Card as Card2, CardContent as CardContent3, Chip, Container, Divider as Divider2, Typography as Typography5, useTheme as useTheme5 } from "@mui/material";
|
|
1894
1885
|
import { FlexGrowCol as FlexGrowCol3, FlexRow as FlexRow6 } from "@xylabs/react-flexbox";
|
|
1895
|
-
import
|
|
1886
|
+
import React15 from "react";
|
|
1896
1887
|
|
|
1897
1888
|
// src/modules/Dapp/modules/Window/components/DefaultComingSoon/InstallButtonSection.tsx
|
|
1898
1889
|
import { ButtonEx as ButtonEx5 } from "@xylabs/react-button";
|
|
1899
1890
|
import { FlexRow as FlexRow4 } from "@xylabs/react-flexbox";
|
|
1900
|
-
import
|
|
1891
|
+
import React12 from "react";
|
|
1901
1892
|
var InstallButtonSection = /* @__PURE__ */ __name(({ installLink = "", notificationLink = "https://xyo.network/newsletter", ...props }) => {
|
|
1902
|
-
return /* @__PURE__ */
|
|
1893
|
+
return /* @__PURE__ */ React12.createElement(FlexRow4, {
|
|
1903
1894
|
width: "100%",
|
|
1904
1895
|
gap: 1,
|
|
1905
1896
|
sx: {
|
|
@@ -1910,12 +1901,12 @@ var InstallButtonSection = /* @__PURE__ */ __name(({ installLink = "", notificat
|
|
|
1910
1901
|
}
|
|
1911
1902
|
},
|
|
1912
1903
|
...props
|
|
1913
|
-
}, /* @__PURE__ */
|
|
1904
|
+
}, /* @__PURE__ */ React12.createElement(ButtonEx5, {
|
|
1914
1905
|
fullWidth: true,
|
|
1915
1906
|
variant: "contained",
|
|
1916
1907
|
disabled: true,
|
|
1917
1908
|
href: installLink
|
|
1918
|
-
}, "Install"), /* @__PURE__ */
|
|
1909
|
+
}, "Install"), /* @__PURE__ */ React12.createElement(ButtonEx5, {
|
|
1919
1910
|
fullWidth: true,
|
|
1920
1911
|
variant: "outlined",
|
|
1921
1912
|
href: notificationLink,
|
|
@@ -1927,16 +1918,16 @@ var InstallButtonSection = /* @__PURE__ */ __name(({ installLink = "", notificat
|
|
|
1927
1918
|
import { VerifiedRounded } from "@mui/icons-material";
|
|
1928
1919
|
import { Card, CardContent as CardContent2, Typography as Typography4, useTheme as useTheme4 } from "@mui/material";
|
|
1929
1920
|
import { FlexGrowCol as FlexGrowCol2, FlexGrowRow as FlexGrowRow4, FlexRow as FlexRow5 } from "@xylabs/react-flexbox";
|
|
1930
|
-
import
|
|
1921
|
+
import React14 from "react";
|
|
1931
1922
|
|
|
1932
1923
|
// src/modules/Dapp/modules/Window/components/DefaultComingSoon/DeveloperLinkSection.tsx
|
|
1933
1924
|
import { useTheme as useTheme3 } from "@mui/material";
|
|
1934
1925
|
import { FlexGrowRow as FlexGrowRow3 } from "@xylabs/react-flexbox";
|
|
1935
1926
|
import { LinkEx } from "@xylabs/react-link";
|
|
1936
|
-
import
|
|
1927
|
+
import React13 from "react";
|
|
1937
1928
|
var DeveloperLinkSection = /* @__PURE__ */ __name(({ developerLink = "https://xylabs.com", ...props }) => {
|
|
1938
1929
|
const theme = useTheme3();
|
|
1939
|
-
return /* @__PURE__ */
|
|
1930
|
+
return /* @__PURE__ */ React13.createElement(FlexGrowRow3, {
|
|
1940
1931
|
gap: 1,
|
|
1941
1932
|
sx: {
|
|
1942
1933
|
alignItems: "flex-start",
|
|
@@ -1946,7 +1937,7 @@ var DeveloperLinkSection = /* @__PURE__ */ __name(({ developerLink = "https://xy
|
|
|
1946
1937
|
}
|
|
1947
1938
|
},
|
|
1948
1939
|
...props
|
|
1949
|
-
}, /* @__PURE__ */
|
|
1940
|
+
}, /* @__PURE__ */ React13.createElement(LinkEx, {
|
|
1950
1941
|
color: theme.palette.info.main,
|
|
1951
1942
|
href: developerLink,
|
|
1952
1943
|
target: "_blank"
|
|
@@ -1956,18 +1947,18 @@ var DeveloperLinkSection = /* @__PURE__ */ __name(({ developerLink = "https://xy
|
|
|
1956
1947
|
// src/modules/Dapp/modules/Window/components/DefaultComingSoon/SummarySection.tsx
|
|
1957
1948
|
var SummarySection = /* @__PURE__ */ __name(({ name, dappIconSvg, version = "1.0", developerLink = "https://xylabs.com" }) => {
|
|
1958
1949
|
const theme = useTheme4();
|
|
1959
|
-
return /* @__PURE__ */
|
|
1950
|
+
return /* @__PURE__ */ React14.createElement(Card, {
|
|
1960
1951
|
sx: {
|
|
1961
1952
|
width: "100%"
|
|
1962
1953
|
}
|
|
1963
|
-
}, /* @__PURE__ */
|
|
1954
|
+
}, /* @__PURE__ */ React14.createElement(CardContent2, null, /* @__PURE__ */ React14.createElement(FlexRow5, {
|
|
1964
1955
|
gap: 3,
|
|
1965
1956
|
alignItems: "flex-start",
|
|
1966
1957
|
sx: {
|
|
1967
1958
|
flexDirection: "column",
|
|
1968
1959
|
width: "100%"
|
|
1969
1960
|
}
|
|
1970
|
-
}, /* @__PURE__ */
|
|
1961
|
+
}, /* @__PURE__ */ React14.createElement(FlexGrowRow4, {
|
|
1971
1962
|
sx: {
|
|
1972
1963
|
gap: {
|
|
1973
1964
|
md: 2,
|
|
@@ -1975,16 +1966,16 @@ var SummarySection = /* @__PURE__ */ __name(({ name, dappIconSvg, version = "1.0
|
|
|
1975
1966
|
}
|
|
1976
1967
|
},
|
|
1977
1968
|
alignItems: "flex-start"
|
|
1978
|
-
}, /* @__PURE__ */
|
|
1969
|
+
}, /* @__PURE__ */ React14.createElement(Card, {
|
|
1979
1970
|
elevation: 0,
|
|
1980
1971
|
variant: "outlined"
|
|
1981
|
-
}, /* @__PURE__ */
|
|
1972
|
+
}, /* @__PURE__ */ React14.createElement(CardContent2, null, dappIconSvg ? /* @__PURE__ */ React14.createElement(RenderHtml, {
|
|
1982
1973
|
htmlString: dappIconSvg
|
|
1983
|
-
}) : null)), /* @__PURE__ */
|
|
1974
|
+
}) : null)), /* @__PURE__ */ React14.createElement(FlexGrowCol2, {
|
|
1984
1975
|
alignItems: "flex-start"
|
|
1985
|
-
}, /* @__PURE__ */
|
|
1976
|
+
}, /* @__PURE__ */ React14.createElement(FlexGrowCol2, {
|
|
1986
1977
|
alignItems: "flex-start"
|
|
1987
|
-
}, /* @__PURE__ */
|
|
1978
|
+
}, /* @__PURE__ */ React14.createElement(Typography4, {
|
|
1988
1979
|
sx: {
|
|
1989
1980
|
fontSize: {
|
|
1990
1981
|
md: theme.typography.h1.fontSize,
|
|
@@ -1992,20 +1983,20 @@ var SummarySection = /* @__PURE__ */ __name(({ name, dappIconSvg, version = "1.0
|
|
|
1992
1983
|
}
|
|
1993
1984
|
},
|
|
1994
1985
|
fontWeight: theme.typography.fontWeightBold
|
|
1995
|
-
}, name), /* @__PURE__ */
|
|
1986
|
+
}, name), /* @__PURE__ */ React14.createElement(Typography4, {
|
|
1996
1987
|
gutterBottom: true,
|
|
1997
1988
|
variant: "subtitle2"
|
|
1998
|
-
}, "Version:", " ", version)), /* @__PURE__ */
|
|
1989
|
+
}, "Version:", " ", version)), /* @__PURE__ */ React14.createElement(FlexGrowRow4, {
|
|
1999
1990
|
gap: 0.5,
|
|
2000
1991
|
alignItems: "center",
|
|
2001
1992
|
justifyContent: "center"
|
|
2002
|
-
}, /* @__PURE__ */
|
|
1993
|
+
}, /* @__PURE__ */ React14.createElement(VerifiedRounded, {
|
|
2003
1994
|
color: "success",
|
|
2004
1995
|
fontSize: "small"
|
|
2005
|
-
}), /* @__PURE__ */
|
|
1996
|
+
}), /* @__PURE__ */ React14.createElement(Typography4, {
|
|
2006
1997
|
variant: "body1",
|
|
2007
1998
|
color: theme.palette.success.main
|
|
2008
|
-
}, "XY Labs")), developerLink ? /* @__PURE__ */
|
|
1999
|
+
}, "XY Labs")), developerLink ? /* @__PURE__ */ React14.createElement(DeveloperLinkSection, {
|
|
2009
2000
|
developerLink
|
|
2010
2001
|
}) : null)))));
|
|
2011
2002
|
}, "SummarySection");
|
|
@@ -2016,7 +2007,7 @@ var defaultDescription = [
|
|
|
2016
2007
|
];
|
|
2017
2008
|
var DefaultComingSoon = /* @__PURE__ */ __name(({ children, desc = defaultDescription, developerLink = "https://xylabs.com", name, dappIconSvg, version }) => {
|
|
2018
2009
|
const theme = useTheme5();
|
|
2019
|
-
return /* @__PURE__ */
|
|
2010
|
+
return /* @__PURE__ */ React15.createElement(Container, {
|
|
2020
2011
|
maxWidth: "md",
|
|
2021
2012
|
sx: {
|
|
2022
2013
|
minHeight: "100%",
|
|
@@ -2024,40 +2015,40 @@ var DefaultComingSoon = /* @__PURE__ */ __name(({ children, desc = defaultDescri
|
|
|
2024
2015
|
paddingTop: 2,
|
|
2025
2016
|
width: "100%"
|
|
2026
2017
|
}
|
|
2027
|
-
}, version ? null : /* @__PURE__ */
|
|
2018
|
+
}, version ? null : /* @__PURE__ */ React15.createElement(FlexRow6, {
|
|
2028
2019
|
width: "100%",
|
|
2029
2020
|
paddingBottom: 2
|
|
2030
|
-
}, /* @__PURE__ */
|
|
2021
|
+
}, /* @__PURE__ */ React15.createElement(Chip, {
|
|
2031
2022
|
label: "This app is not yet publicly available on xyOS",
|
|
2032
2023
|
sx: {
|
|
2033
2024
|
backgroundColor: alpha3(theme.palette.info.main, 0.2),
|
|
2034
2025
|
color: theme.palette.info.main,
|
|
2035
2026
|
width: "100%"
|
|
2036
2027
|
}
|
|
2037
|
-
})), /* @__PURE__ */
|
|
2028
|
+
})), /* @__PURE__ */ React15.createElement(FlexGrowCol3, {
|
|
2038
2029
|
width: "100%",
|
|
2039
2030
|
alignItems: "flex-start",
|
|
2040
2031
|
minHeight: "100%"
|
|
2041
|
-
}, /* @__PURE__ */
|
|
2032
|
+
}, /* @__PURE__ */ React15.createElement(FlexGrowCol3, {
|
|
2042
2033
|
width: "100%",
|
|
2043
2034
|
alignItems: "stretch",
|
|
2044
2035
|
justifyContent: "flex-start",
|
|
2045
2036
|
gap: 2
|
|
2046
|
-
}, /* @__PURE__ */
|
|
2037
|
+
}, /* @__PURE__ */ React15.createElement(SummarySection, {
|
|
2047
2038
|
dappIconSvg,
|
|
2048
2039
|
name,
|
|
2049
2040
|
version,
|
|
2050
2041
|
developerLink
|
|
2051
|
-
}), /* @__PURE__ */
|
|
2042
|
+
}), /* @__PURE__ */ React15.createElement(InstallButtonSection, null), /* @__PURE__ */ React15.createElement(Divider2, {
|
|
2052
2043
|
flexItem: true
|
|
2053
|
-
}), /* @__PURE__ */
|
|
2044
|
+
}), /* @__PURE__ */ React15.createElement(Card2, null, /* @__PURE__ */ React15.createElement(CardContent3, null, /* @__PURE__ */ React15.createElement(FlexGrowCol3, {
|
|
2054
2045
|
justifyContent: "flex-start",
|
|
2055
2046
|
alignItems: "flex-start"
|
|
2056
|
-
}, /* @__PURE__ */
|
|
2047
|
+
}, /* @__PURE__ */ React15.createElement(Typography5, {
|
|
2057
2048
|
variant: "h6",
|
|
2058
2049
|
gutterBottom: true
|
|
2059
2050
|
}, "Learn more about", " ", name), desc?.map((paragraph, index) => {
|
|
2060
|
-
return /* @__PURE__ */
|
|
2051
|
+
return /* @__PURE__ */ React15.createElement(Typography5, {
|
|
2061
2052
|
gutterBottom: true,
|
|
2062
2053
|
paddingBottom: 1,
|
|
2063
2054
|
key: index,
|
|
@@ -2069,7 +2060,7 @@ var DefaultComingSoon = /* @__PURE__ */ __name(({ children, desc = defaultDescri
|
|
|
2069
2060
|
// src/modules/Dapp/modules/Window/DappWindow.tsx
|
|
2070
2061
|
import { Snackbar } from "@mui/material";
|
|
2071
2062
|
import { ErrorBoundary, ErrorRender as ErrorRender3 } from "@xylabs/react-error";
|
|
2072
|
-
import
|
|
2063
|
+
import React18, { useMemo as useMemo13 } from "react";
|
|
2073
2064
|
|
|
2074
2065
|
// src/modules/Dapp/modules/Window/hooks/lib/DappPathHelpers.ts
|
|
2075
2066
|
import { NameTransforms as NameTransforms2 } from "@xyo-network/os-runtime";
|
|
@@ -2140,7 +2131,7 @@ var useDappMenu = /* @__PURE__ */ __name((context, dappName) => {
|
|
|
2140
2131
|
const navigate = useNavigate4();
|
|
2141
2132
|
const { defaultPath, menuConfigs, menuItemsVisible, menuSelection, resourceError } = useDappMenuDependencies(context);
|
|
2142
2133
|
const activePath = menuSelection ?? defaultPath;
|
|
2143
|
-
const currentPathRef = useRef4();
|
|
2134
|
+
const currentPathRef = useRef4(void 0);
|
|
2144
2135
|
useEffect12(() => {
|
|
2145
2136
|
if (params && currentPathRef.current === void 0) {
|
|
2146
2137
|
currentPathRef.current = params.path ?? "";
|
|
@@ -2182,10 +2173,11 @@ var useDappMenu = /* @__PURE__ */ __name((context, dappName) => {
|
|
|
2182
2173
|
}, "useDappMenu");
|
|
2183
2174
|
|
|
2184
2175
|
// src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappInjectableParamsFromRoute.tsx
|
|
2176
|
+
import { findAs } from "@xylabs/array";
|
|
2185
2177
|
import { assertEx as assertEx7 } from "@xylabs/assert";
|
|
2186
2178
|
import { usePromise as usePromise11 } from "@xylabs/react-promise";
|
|
2187
2179
|
import { asArchivistInstance } from "@xyo-network/archivist-model";
|
|
2188
|
-
import {
|
|
2180
|
+
import { asOptionalDappInjectableParams } from "@xyo-network/os-model";
|
|
2189
2181
|
import { DappCaller as DappCaller2 } from "@xyo-network/os-runtime";
|
|
2190
2182
|
import { useNavigate as useNavigate5, useSearchParams as useSearchParams2 } from "react-router-dom";
|
|
2191
2183
|
var useManageDappInjectableParamsFromRoute = /* @__PURE__ */ __name((context) => {
|
|
@@ -2204,7 +2196,7 @@ var useManageDappInjectableParamsFromRoute = /* @__PURE__ */ __name((context) =>
|
|
|
2204
2196
|
const [, listenerError] = usePromise11(async () => {
|
|
2205
2197
|
let archivist;
|
|
2206
2198
|
const listener = /* @__PURE__ */ __name(({ payloads }) => {
|
|
2207
|
-
const injectableParams = payloads
|
|
2199
|
+
const injectableParams = findAs(payloads, asOptionalDappInjectableParams);
|
|
2208
2200
|
if (injectableParams && context) {
|
|
2209
2201
|
const pathname = globalThis.location.pathname;
|
|
2210
2202
|
if (pathname !== injectableParams.path) {
|
|
@@ -2235,8 +2227,9 @@ var useManageDappInjectableParamsFromRoute = /* @__PURE__ */ __name((context) =>
|
|
|
2235
2227
|
}, "useManageDappInjectableParamsFromRoute");
|
|
2236
2228
|
|
|
2237
2229
|
// src/modules/Dapp/modules/Window/hooks/route/helpers/useManageDappIntentRequest.tsx
|
|
2230
|
+
import { findAs as findAs2 } from "@xylabs/array";
|
|
2238
2231
|
import { useAtomicPromise, usePromise as usePromise12 } from "@xylabs/react-promise";
|
|
2239
|
-
import { DappIntentTypes as DappIntentTypes8
|
|
2232
|
+
import { asOptionalDappIntent as asOptionalDappIntent2, DappIntentTypes as DappIntentTypes8 } from "@xyo-network/os-model";
|
|
2240
2233
|
import { DappIntentCaller as DappIntentCaller4 } from "@xyo-network/os-runtime";
|
|
2241
2234
|
import { useEffect as useEffect13, useState as useState12 } from "react";
|
|
2242
2235
|
var useManageDappIntentRequest = /* @__PURE__ */ __name((context, dappId) => {
|
|
@@ -2275,7 +2268,7 @@ var useManageDappIntentRequest = /* @__PURE__ */ __name((context, dappId) => {
|
|
|
2275
2268
|
useEffect13(() => {
|
|
2276
2269
|
const listener = /* @__PURE__ */ __name(({ payloads }) => {
|
|
2277
2270
|
if (context) {
|
|
2278
|
-
const intentPayload2 = payloads
|
|
2271
|
+
const intentPayload2 = findAs2(payloads, asOptionalDappIntent2);
|
|
2279
2272
|
if (intentPayload2) {
|
|
2280
2273
|
setIntentPayload(intentPayload2);
|
|
2281
2274
|
}
|
|
@@ -2307,7 +2300,7 @@ var useManageDappPathFromRoute = /* @__PURE__ */ __name((context, dappName) => {
|
|
|
2307
2300
|
});
|
|
2308
2301
|
const { menuSelection, defaultPath } = useDappMenuDependencies(context);
|
|
2309
2302
|
const navigate = useNavigate6();
|
|
2310
|
-
const currentPathRef = useRef5();
|
|
2303
|
+
const currentPathRef = useRef5(void 0);
|
|
2311
2304
|
const updateMenuArchivist = useCallback5(async (pathParam2) => {
|
|
2312
2305
|
currentPathRef.current = pathParam2;
|
|
2313
2306
|
if (context && dappMenuCaller) {
|
|
@@ -2360,8 +2353,8 @@ var useManageDappStateFromRoute = /* @__PURE__ */ __name((intentPayload) => {
|
|
|
2360
2353
|
const { dappName: dappNameParam } = params;
|
|
2361
2354
|
const sendIntent = useSendDappIntent();
|
|
2362
2355
|
const intentCaller = useDappIntentCaller();
|
|
2363
|
-
const dappNameParamRef = useRef6();
|
|
2364
|
-
const intentRef = useRef6();
|
|
2356
|
+
const dappNameParamRef = useRef6(void 0);
|
|
2357
|
+
const intentRef = useRef6(void 0);
|
|
2365
2358
|
usePromise14(async () => {
|
|
2366
2359
|
const launched = intentPayload?.intent === DappIntentTypes9.Launch;
|
|
2367
2360
|
const dappNameParamRemoved = !!dappNameParamRef.current && dappNameParam === void 0;
|
|
@@ -2400,13 +2393,13 @@ import { useMemo as useMemo11 } from "react";
|
|
|
2400
2393
|
// src/modules/Dapp/modules/Window/NodeManifest.tsx
|
|
2401
2394
|
import { usePromise as usePromise15 } from "@xylabs/react-promise";
|
|
2402
2395
|
import { useProvidedNode } from "@xyo-network/react-node";
|
|
2403
|
-
import
|
|
2396
|
+
import React16 from "react";
|
|
2404
2397
|
var NodeManifest = /* @__PURE__ */ __name(() => {
|
|
2405
2398
|
const [node] = useProvidedNode();
|
|
2406
2399
|
const [nodeManifest] = usePromise15(async () => await node?.manifest(3), [
|
|
2407
2400
|
node
|
|
2408
2401
|
]);
|
|
2409
|
-
return /* @__PURE__ */
|
|
2402
|
+
return /* @__PURE__ */ React16.createElement(React16.Fragment, null, node ? /* @__PURE__ */ React16.createElement("pre", null, JSON.stringify(nodeManifest, null, 2)) : null);
|
|
2410
2403
|
}, "NodeManifest");
|
|
2411
2404
|
|
|
2412
2405
|
// src/modules/Dapp/modules/Window/hooks/useDecomposeDapp.tsx
|
|
@@ -2475,10 +2468,10 @@ var useSyncOsRegisteredAccessInterfaces = /* @__PURE__ */ __name((context) => {
|
|
|
2475
2468
|
|
|
2476
2469
|
// src/modules/Dapp/modules/Window/MetaTags.tsx
|
|
2477
2470
|
import { NameTransforms as NameTransforms4 } from "@xyo-network/os-runtime";
|
|
2478
|
-
import
|
|
2471
|
+
import React17 from "react";
|
|
2479
2472
|
import { Helmet } from "react-helmet";
|
|
2480
2473
|
var DappMetaTags = /* @__PURE__ */ __name(({ active, activePath, dappName }) => {
|
|
2481
|
-
return active ? /* @__PURE__ */
|
|
2474
|
+
return active ? /* @__PURE__ */ React17.createElement(Helmet, null, /* @__PURE__ */ React17.createElement("title", null, activePath ? `${new NameTransforms4(activePath).deSlug()} | ` : "", " ", dappName, " ", "dApp")) : null;
|
|
2482
2475
|
}, "DappMetaTags");
|
|
2483
2476
|
|
|
2484
2477
|
// src/modules/Dapp/modules/Window/DappWindow.tsx
|
|
@@ -2495,14 +2488,14 @@ var DappWindow = /* @__PURE__ */ __name(({ children, context, dapp, dappMenuProp
|
|
|
2495
2488
|
injectableErrors,
|
|
2496
2489
|
routingError
|
|
2497
2490
|
]);
|
|
2498
|
-
return /* @__PURE__ */
|
|
2491
|
+
return /* @__PURE__ */ React18.createElement(React18.Fragment, null, /* @__PURE__ */ React18.createElement(ErrorBoundary, null, /* @__PURE__ */ React18.createElement(DappMetaTags, {
|
|
2499
2492
|
active,
|
|
2500
2493
|
activePath: dappMenuProperties?.activePath,
|
|
2501
2494
|
dappName: name
|
|
2502
|
-
}), resolvedErrors.map((error) => /* @__PURE__ */
|
|
2495
|
+
}), resolvedErrors.map((error) => /* @__PURE__ */ React18.createElement(Snackbar, {
|
|
2503
2496
|
key: error?.message,
|
|
2504
2497
|
open: !!error,
|
|
2505
|
-
message: /* @__PURE__ */
|
|
2498
|
+
message: /* @__PURE__ */ React18.createElement(ErrorRender3, {
|
|
2506
2499
|
error,
|
|
2507
2500
|
scope: "DappWindow"
|
|
2508
2501
|
})
|
|
@@ -2512,7 +2505,7 @@ var DappWindow = /* @__PURE__ */ __name(({ children, context, dapp, dappMenuProp
|
|
|
2512
2505
|
// src/modules/Dapp/modules/Window/menu/BottomNavigation.tsx
|
|
2513
2506
|
import { BottomNavigation, BottomNavigationAction, Paper, styled as styled2 } from "@mui/material";
|
|
2514
2507
|
import { useColorSchemeEx } from "@xylabs/react-invertible-theme";
|
|
2515
|
-
import
|
|
2508
|
+
import React19, { useEffect as useEffect15, useState as useState13 } from "react";
|
|
2516
2509
|
var DappBottomNavigation = /* @__PURE__ */ __name(({ activePath, menuConfig, menuItems, onPathChange, ...props }) => {
|
|
2517
2510
|
const [activeIndex, setActiveIndex] = useState13(0);
|
|
2518
2511
|
useEffect15(() => {
|
|
@@ -2524,9 +2517,9 @@ var DappBottomNavigation = /* @__PURE__ */ __name(({ activePath, menuConfig, men
|
|
|
2524
2517
|
menuConfig,
|
|
2525
2518
|
menuItems
|
|
2526
2519
|
]);
|
|
2527
|
-
return /* @__PURE__ */
|
|
2520
|
+
return /* @__PURE__ */ React19.createElement(Paper, {
|
|
2528
2521
|
elevation: 3
|
|
2529
|
-
}, /* @__PURE__ */
|
|
2522
|
+
}, /* @__PURE__ */ React19.createElement(BottomNavigation, {
|
|
2530
2523
|
value: activeIndex,
|
|
2531
2524
|
onChange: /* @__PURE__ */ __name((_, value) => {
|
|
2532
2525
|
setActiveIndex(value);
|
|
@@ -2536,11 +2529,11 @@ var DappBottomNavigation = /* @__PURE__ */ __name(({ activePath, menuConfig, men
|
|
|
2536
2529
|
showLabels: true,
|
|
2537
2530
|
...props
|
|
2538
2531
|
}, menuItems?.map(({ svgIcon: icon, primaryText }, index) => {
|
|
2539
|
-
return /* @__PURE__ */
|
|
2532
|
+
return /* @__PURE__ */ React19.createElement(StyledBottomNavigationAction, {
|
|
2540
2533
|
className: "bottom-nav-action",
|
|
2541
2534
|
key: index,
|
|
2542
2535
|
label: primaryText,
|
|
2543
|
-
icon: /* @__PURE__ */
|
|
2536
|
+
icon: /* @__PURE__ */ React19.createElement("span", {
|
|
2544
2537
|
ref: /* @__PURE__ */ __name((ref) => {
|
|
2545
2538
|
if (ref) {
|
|
2546
2539
|
ref.innerHTML = icon ?? "";
|
|
@@ -2566,7 +2559,7 @@ import { alpha as alpha4, darken, Drawer, List, ListItem, ListItemIcon, ListItem
|
|
|
2566
2559
|
import { FlexCol as FlexCol7, FlexGrowRow as FlexGrowRow5, FlexRow as FlexRow8 } from "@xylabs/react-flexbox";
|
|
2567
2560
|
import { useColorSchemeEx as useColorSchemeEx2 } from "@xylabs/react-invertible-theme";
|
|
2568
2561
|
import { XyOsMonitor as XyOsMonitor3 } from "@xyo-network/os-runtime";
|
|
2569
|
-
import
|
|
2562
|
+
import React22, { useEffect as useEffect16, useState as useState15 } from "react";
|
|
2570
2563
|
|
|
2571
2564
|
// src/modules/Dapp/modules/Window/menu/BottomMenuArea.tsx
|
|
2572
2565
|
import { BugReport as BugReport2, KeyboardArrowDownRounded, KeyboardArrowUpRounded } from "@mui/icons-material";
|
|
@@ -2575,16 +2568,19 @@ import { RotationAnimation } from "@xylabs/react-animation";
|
|
|
2575
2568
|
import { FlexCol as FlexCol6, FlexRow as FlexRow7 } from "@xylabs/react-flexbox";
|
|
2576
2569
|
import { DarkModeIconButtonForColorScheme as DarkModeIconButtonForColorScheme2 } from "@xylabs/react-invertible-theme";
|
|
2577
2570
|
import { LinkEx as LinkEx2 } from "@xylabs/react-link";
|
|
2578
|
-
import
|
|
2579
|
-
|
|
2571
|
+
import React21, { useState as useState14 } from "react";
|
|
2572
|
+
|
|
2573
|
+
// src/modules/Dapp/modules/Window/menu/img/index.ts
|
|
2574
|
+
import { default as default20 } from "./xyoOS-Icon-Black-ACSS4SEQ.svg";
|
|
2575
|
+
import { default as default21 } from "./xyoOS-Icon-White-47MP66MD.svg";
|
|
2580
2576
|
|
|
2581
2577
|
// src/modules/Dapp/modules/Window/menu/SocialData.tsx
|
|
2582
2578
|
import { Facebook, Instagram, LinkedIn, Reddit, StorefrontRounded, Telegram, X, YouTube } from "@mui/icons-material";
|
|
2583
|
-
import
|
|
2579
|
+
import React20 from "react";
|
|
2584
2580
|
import { FaDiscord } from "react-icons/fa";
|
|
2585
2581
|
var socialLinksData = [
|
|
2586
2582
|
{
|
|
2587
|
-
icon: /* @__PURE__ */
|
|
2583
|
+
icon: /* @__PURE__ */ React20.createElement(Facebook, {
|
|
2588
2584
|
style: {
|
|
2589
2585
|
fontSize: "24px"
|
|
2590
2586
|
}
|
|
@@ -2592,7 +2588,7 @@ var socialLinksData = [
|
|
|
2592
2588
|
link: "https://www.facebook.com/OfficialXYO"
|
|
2593
2589
|
},
|
|
2594
2590
|
{
|
|
2595
|
-
icon: /* @__PURE__ */
|
|
2591
|
+
icon: /* @__PURE__ */ React20.createElement(X, {
|
|
2596
2592
|
style: {
|
|
2597
2593
|
fontSize: "24px"
|
|
2598
2594
|
}
|
|
@@ -2600,7 +2596,7 @@ var socialLinksData = [
|
|
|
2600
2596
|
link: "https://twitter.com/OfficialXYO"
|
|
2601
2597
|
},
|
|
2602
2598
|
{
|
|
2603
|
-
icon: /* @__PURE__ */
|
|
2599
|
+
icon: /* @__PURE__ */ React20.createElement(Instagram, {
|
|
2604
2600
|
style: {
|
|
2605
2601
|
fontSize: "24px"
|
|
2606
2602
|
}
|
|
@@ -2608,7 +2604,7 @@ var socialLinksData = [
|
|
|
2608
2604
|
link: "https://www.instagram.com/officialxyo/"
|
|
2609
2605
|
},
|
|
2610
2606
|
{
|
|
2611
|
-
icon: /* @__PURE__ */
|
|
2607
|
+
icon: /* @__PURE__ */ React20.createElement(Telegram, {
|
|
2612
2608
|
style: {
|
|
2613
2609
|
fontSize: "24px"
|
|
2614
2610
|
}
|
|
@@ -2616,7 +2612,7 @@ var socialLinksData = [
|
|
|
2616
2612
|
link: "https://t.me/xyonetwork"
|
|
2617
2613
|
},
|
|
2618
2614
|
{
|
|
2619
|
-
icon: /* @__PURE__ */
|
|
2615
|
+
icon: /* @__PURE__ */ React20.createElement(Reddit, {
|
|
2620
2616
|
style: {
|
|
2621
2617
|
fontSize: "24px"
|
|
2622
2618
|
}
|
|
@@ -2624,7 +2620,7 @@ var socialLinksData = [
|
|
|
2624
2620
|
link: "https://www.reddit.com/r/XYONetwork/"
|
|
2625
2621
|
},
|
|
2626
2622
|
{
|
|
2627
|
-
icon: /* @__PURE__ */
|
|
2623
|
+
icon: /* @__PURE__ */ React20.createElement(YouTube, {
|
|
2628
2624
|
style: {
|
|
2629
2625
|
fontSize: "24px"
|
|
2630
2626
|
}
|
|
@@ -2632,7 +2628,7 @@ var socialLinksData = [
|
|
|
2632
2628
|
link: "https://www.youtube.com/channel/UCyZDqb9pgntVHJVt1pxXtsw"
|
|
2633
2629
|
},
|
|
2634
2630
|
{
|
|
2635
|
-
icon: /* @__PURE__ */
|
|
2631
|
+
icon: /* @__PURE__ */ React20.createElement(LinkedIn, {
|
|
2636
2632
|
style: {
|
|
2637
2633
|
fontSize: "24px"
|
|
2638
2634
|
}
|
|
@@ -2640,7 +2636,7 @@ var socialLinksData = [
|
|
|
2640
2636
|
link: "https://www.linkedin.com/company/officialxyo/"
|
|
2641
2637
|
},
|
|
2642
2638
|
{
|
|
2643
|
-
icon: /* @__PURE__ */
|
|
2639
|
+
icon: /* @__PURE__ */ React20.createElement(FaDiscord, {
|
|
2644
2640
|
style: {
|
|
2645
2641
|
fontSize: "24px"
|
|
2646
2642
|
}
|
|
@@ -2648,7 +2644,7 @@ var socialLinksData = [
|
|
|
2648
2644
|
link: "https://discord.gg/officialxyo"
|
|
2649
2645
|
},
|
|
2650
2646
|
{
|
|
2651
|
-
icon: /* @__PURE__ */
|
|
2647
|
+
icon: /* @__PURE__ */ React20.createElement(StorefrontRounded, {
|
|
2652
2648
|
style: {
|
|
2653
2649
|
fontSize: "24px"
|
|
2654
2650
|
}
|
|
@@ -2661,11 +2657,10 @@ var socialLinksData = [
|
|
|
2661
2657
|
var BottomMenuArea = /* @__PURE__ */ __name(({ openDebug, backgroundColor }) => {
|
|
2662
2658
|
const theme = useTheme6();
|
|
2663
2659
|
const [expanded, setExpanded] = useState14(false);
|
|
2664
|
-
const logo = XyoOSLogoWhite;
|
|
2665
2660
|
const handleExpandClick = /* @__PURE__ */ __name(() => {
|
|
2666
2661
|
setExpanded(!expanded);
|
|
2667
2662
|
}, "handleExpandClick");
|
|
2668
|
-
return /* @__PURE__ */
|
|
2663
|
+
return /* @__PURE__ */ React21.createElement(Card3, {
|
|
2669
2664
|
sx: {
|
|
2670
2665
|
position: "relative",
|
|
2671
2666
|
borderTopLeftRadius: "10px",
|
|
@@ -2676,10 +2671,10 @@ var BottomMenuArea = /* @__PURE__ */ __name(({ openDebug, backgroundColor }) =>
|
|
|
2676
2671
|
overflow: "hidden"
|
|
2677
2672
|
},
|
|
2678
2673
|
elevation: 4
|
|
2679
|
-
}, /* @__PURE__ */
|
|
2674
|
+
}, /* @__PURE__ */ React21.createElement(FlexCol6, {
|
|
2680
2675
|
paddingY: 1,
|
|
2681
2676
|
alignItems: "stretch"
|
|
2682
|
-
}, /* @__PURE__ */
|
|
2677
|
+
}, /* @__PURE__ */ React21.createElement(Stack, {
|
|
2683
2678
|
paddingX: 2,
|
|
2684
2679
|
justifyContent: "space-between",
|
|
2685
2680
|
flexDirection: "row",
|
|
@@ -2689,17 +2684,17 @@ var BottomMenuArea = /* @__PURE__ */ __name(({ openDebug, backgroundColor }) =>
|
|
|
2689
2684
|
textTransform: "none",
|
|
2690
2685
|
cursor: "pointer"
|
|
2691
2686
|
}
|
|
2692
|
-
}, /* @__PURE__ */
|
|
2687
|
+
}, /* @__PURE__ */ React21.createElement(Typography6, {
|
|
2693
2688
|
gutterBottom: false
|
|
2694
|
-
}, "More"), expanded ? /* @__PURE__ */
|
|
2689
|
+
}, "More"), expanded ? /* @__PURE__ */ React21.createElement(KeyboardArrowUpRounded, {
|
|
2695
2690
|
sx: {
|
|
2696
2691
|
color: "#fff"
|
|
2697
2692
|
}
|
|
2698
|
-
}) : /* @__PURE__ */
|
|
2693
|
+
}) : /* @__PURE__ */ React21.createElement(KeyboardArrowDownRounded, {
|
|
2699
2694
|
sx: {
|
|
2700
2695
|
color: "#fff"
|
|
2701
2696
|
}
|
|
2702
|
-
}))), /* @__PURE__ */
|
|
2697
|
+
}))), /* @__PURE__ */ React21.createElement(Collapse, {
|
|
2703
2698
|
in: expanded,
|
|
2704
2699
|
timeout: "auto",
|
|
2705
2700
|
unmountOnExit: true,
|
|
@@ -2707,74 +2702,74 @@ var BottomMenuArea = /* @__PURE__ */ __name(({ openDebug, backgroundColor }) =>
|
|
|
2707
2702
|
paddingBottom: 3,
|
|
2708
2703
|
color: "#fff"
|
|
2709
2704
|
}
|
|
2710
|
-
}, /* @__PURE__ */
|
|
2705
|
+
}, /* @__PURE__ */ React21.createElement(Divider3, {
|
|
2711
2706
|
flexItem: true
|
|
2712
|
-
}), /* @__PURE__ */
|
|
2707
|
+
}), /* @__PURE__ */ React21.createElement(FlexCol6, {
|
|
2713
2708
|
alignItems: "center"
|
|
2714
|
-
}, /* @__PURE__ */
|
|
2709
|
+
}, /* @__PURE__ */ React21.createElement(Toolbar2, {
|
|
2715
2710
|
sx: {
|
|
2716
2711
|
paddingX: 1.5
|
|
2717
2712
|
}
|
|
2718
|
-
}, /* @__PURE__ */
|
|
2713
|
+
}, /* @__PURE__ */ React21.createElement(Tooltip3, {
|
|
2719
2714
|
title: "Debug Node View"
|
|
2720
|
-
}, /* @__PURE__ */
|
|
2715
|
+
}, /* @__PURE__ */ React21.createElement(IconButton3, {
|
|
2721
2716
|
onClick: openDebug,
|
|
2722
2717
|
sx: {
|
|
2723
2718
|
color: "#fff"
|
|
2724
2719
|
}
|
|
2725
|
-
}, /* @__PURE__ */
|
|
2720
|
+
}, /* @__PURE__ */ React21.createElement(BugReport2, null))), /* @__PURE__ */ React21.createElement(Tooltip3, {
|
|
2726
2721
|
title: "Toggle Light/Dark Mode"
|
|
2727
|
-
}, /* @__PURE__ */
|
|
2722
|
+
}, /* @__PURE__ */ React21.createElement("span", null, /* @__PURE__ */ React21.createElement(DarkModeIconButtonForColorScheme2, {
|
|
2728
2723
|
defaultLightModeColor: "warning"
|
|
2729
|
-
})))), /* @__PURE__ */
|
|
2724
|
+
})))), /* @__PURE__ */ React21.createElement(FlexRow7, {
|
|
2730
2725
|
flexWrap: "wrap"
|
|
2731
|
-
}, socialLinksData.map((social) => /* @__PURE__ */
|
|
2726
|
+
}, socialLinksData.map((social) => /* @__PURE__ */ React21.createElement(RotationAnimation, {
|
|
2732
2727
|
key: social.link,
|
|
2733
2728
|
rotation: 20
|
|
2734
|
-
}, /* @__PURE__ */
|
|
2729
|
+
}, /* @__PURE__ */ React21.createElement(IconButton3, {
|
|
2735
2730
|
sx: {
|
|
2736
2731
|
color: "#fff"
|
|
2737
2732
|
},
|
|
2738
2733
|
href: social.link,
|
|
2739
2734
|
target: "_blank"
|
|
2740
|
-
}, social.icon)))), /* @__PURE__ */
|
|
2735
|
+
}, social.icon)))), /* @__PURE__ */ React21.createElement(FlexRow7, {
|
|
2741
2736
|
padding: 1,
|
|
2742
2737
|
justifyContent: "center",
|
|
2743
2738
|
gap: 0.5
|
|
2744
|
-
}, /* @__PURE__ */
|
|
2739
|
+
}, /* @__PURE__ */ React21.createElement(Typography6, {
|
|
2745
2740
|
variant: "body2",
|
|
2746
2741
|
color: theme.palette.text.primary
|
|
2747
|
-
}, "Powered By"), /* @__PURE__ */
|
|
2742
|
+
}, "Powered By"), /* @__PURE__ */ React21.createElement("img", {
|
|
2748
2743
|
style: {
|
|
2749
2744
|
color: theme.palette.text.primary,
|
|
2750
2745
|
fill: theme.palette.text.primary
|
|
2751
2746
|
},
|
|
2752
|
-
src:
|
|
2747
|
+
src: default21,
|
|
2753
2748
|
width: "auto",
|
|
2754
2749
|
height: "20px"
|
|
2755
|
-
})), /* @__PURE__ */
|
|
2750
|
+
})), /* @__PURE__ */ React21.createElement(Typography6, {
|
|
2756
2751
|
variant: "caption",
|
|
2757
2752
|
color: theme.palette.text.primary
|
|
2758
|
-
}, "Copyright \xA9 2024 XY Labs, Inc."), /* @__PURE__ */
|
|
2753
|
+
}, "Copyright \xA9 2024 XY Labs, Inc."), /* @__PURE__ */ React21.createElement(Stack, {
|
|
2759
2754
|
gap: 0.5,
|
|
2760
2755
|
flexDirection: "row"
|
|
2761
|
-
}, /* @__PURE__ */
|
|
2756
|
+
}, /* @__PURE__ */ React21.createElement(LinkEx2, {
|
|
2762
2757
|
color: "inherit",
|
|
2763
2758
|
target: "_blank",
|
|
2764
2759
|
href: "https://xylabs.com/privacy/"
|
|
2765
|
-
}, /* @__PURE__ */
|
|
2760
|
+
}, /* @__PURE__ */ React21.createElement(Typography6, {
|
|
2766
2761
|
variant: "caption"
|
|
2767
|
-
}, "Privacy")), " ", "\u2022", " ", /* @__PURE__ */
|
|
2762
|
+
}, "Privacy")), " ", "\u2022", " ", /* @__PURE__ */ React21.createElement(LinkEx2, {
|
|
2768
2763
|
color: "inherit",
|
|
2769
2764
|
target: "_blank",
|
|
2770
2765
|
href: "https://xylabs.com/terms/"
|
|
2771
|
-
}, /* @__PURE__ */
|
|
2766
|
+
}, /* @__PURE__ */ React21.createElement(Typography6, {
|
|
2772
2767
|
variant: "caption"
|
|
2773
|
-
}, "Terms")), " ", "\u2022", " ", /* @__PURE__ */
|
|
2768
|
+
}, "Terms")), " ", "\u2022", " ", /* @__PURE__ */ React21.createElement(LinkEx2, {
|
|
2774
2769
|
color: "inherit",
|
|
2775
2770
|
target: "_blank",
|
|
2776
2771
|
href: "https://xyo.network/"
|
|
2777
|
-
}, /* @__PURE__ */
|
|
2772
|
+
}, /* @__PURE__ */ React21.createElement(Typography6, {
|
|
2778
2773
|
variant: "caption"
|
|
2779
2774
|
}, "XYO Website"))))));
|
|
2780
2775
|
}, "BottomMenuArea");
|
|
@@ -2841,7 +2836,7 @@ var DappMenuDrawer = /* @__PURE__ */ __name(({ activePath, context, iconSvg, nam
|
|
|
2841
2836
|
onPathChange?.(to2);
|
|
2842
2837
|
}, "handleChange");
|
|
2843
2838
|
const { closeDebug, debugOpen, openDebug } = useDebugClick();
|
|
2844
|
-
return /* @__PURE__ */
|
|
2839
|
+
return /* @__PURE__ */ React22.createElement(Drawer, {
|
|
2845
2840
|
variant: "permanent",
|
|
2846
2841
|
anchor: "left",
|
|
2847
2842
|
PaperProps: {
|
|
@@ -2855,18 +2850,18 @@ var DappMenuDrawer = /* @__PURE__ */ __name(({ activePath, context, iconSvg, nam
|
|
|
2855
2850
|
width: "280px"
|
|
2856
2851
|
},
|
|
2857
2852
|
...props
|
|
2858
|
-
}, /* @__PURE__ */
|
|
2853
|
+
}, /* @__PURE__ */ React22.createElement(FlexCol7, {
|
|
2859
2854
|
alignItems: "stretch",
|
|
2860
2855
|
justifyContent: "space-between",
|
|
2861
2856
|
height: "100dvh"
|
|
2862
|
-
}, /* @__PURE__ */
|
|
2857
|
+
}, /* @__PURE__ */ React22.createElement(FlexCol7, {
|
|
2863
2858
|
alignItems: "stretch",
|
|
2864
2859
|
justifyContent: "flex-start",
|
|
2865
2860
|
flexGrow: 1,
|
|
2866
2861
|
overflow: "auto"
|
|
2867
|
-
}, /* @__PURE__ */
|
|
2862
|
+
}, /* @__PURE__ */ React22.createElement(Tooltip4, {
|
|
2868
2863
|
title: version
|
|
2869
|
-
}, /* @__PURE__ */
|
|
2864
|
+
}, /* @__PURE__ */ React22.createElement(FlexGrowRow5, {
|
|
2870
2865
|
id: "dapp-name-and-icon",
|
|
2871
2866
|
padding: 2,
|
|
2872
2867
|
justifyContent: "flex-start",
|
|
@@ -2877,31 +2872,31 @@ var DappMenuDrawer = /* @__PURE__ */ __name(({ activePath, context, iconSvg, nam
|
|
|
2877
2872
|
flexGrow: 0
|
|
2878
2873
|
}, iconSvg ? RenderHtml({
|
|
2879
2874
|
htmlString: iconSvg
|
|
2880
|
-
}) : null, /* @__PURE__ */
|
|
2875
|
+
}) : null, /* @__PURE__ */ React22.createElement(Typography7, {
|
|
2881
2876
|
noWrap: true,
|
|
2882
2877
|
variant: "h6",
|
|
2883
2878
|
letterSpacing: "-1px"
|
|
2884
|
-
}, name))), /* @__PURE__ */
|
|
2879
|
+
}, name))), /* @__PURE__ */ React22.createElement(DebugDialogWithNode, {
|
|
2885
2880
|
closeDebug,
|
|
2886
2881
|
debugOpen,
|
|
2887
2882
|
context
|
|
2888
|
-
}), /* @__PURE__ */
|
|
2883
|
+
}), /* @__PURE__ */ React22.createElement(List, {
|
|
2889
2884
|
sx: {
|
|
2890
2885
|
p: 0,
|
|
2891
2886
|
overflow: "auto"
|
|
2892
2887
|
}
|
|
2893
|
-
}, menuItems?.map(({ svgIcon: icon, primaryText, path: pathFromPayload }) => /* @__PURE__ */
|
|
2888
|
+
}, menuItems?.map(({ svgIcon: icon, primaryText, path: pathFromPayload }) => /* @__PURE__ */ React22.createElement(ListItem, {
|
|
2894
2889
|
key: primaryText,
|
|
2895
2890
|
disablePadding: true,
|
|
2896
2891
|
sx: {
|
|
2897
2892
|
paddingBottom: 1
|
|
2898
2893
|
}
|
|
2899
|
-
}, /* @__PURE__ */
|
|
2894
|
+
}, /* @__PURE__ */ React22.createElement(StyledListItemButton, {
|
|
2900
2895
|
onClick: /* @__PURE__ */ __name(() => handleChange(pathFromPayload), "onClick"),
|
|
2901
2896
|
active: pathFromPayload === path,
|
|
2902
2897
|
disableRipple: true,
|
|
2903
2898
|
disableTouchRipple: true
|
|
2904
|
-
}, /* @__PURE__ */
|
|
2899
|
+
}, /* @__PURE__ */ React22.createElement(FlexRow8, {
|
|
2905
2900
|
flexGrow: 1,
|
|
2906
2901
|
paddingX: 2,
|
|
2907
2902
|
paddingY: 0.5,
|
|
@@ -2911,18 +2906,18 @@ var DappMenuDrawer = /* @__PURE__ */ __name(({ activePath, context, iconSvg, nam
|
|
|
2911
2906
|
},
|
|
2912
2907
|
"borderRadius": "10px"
|
|
2913
2908
|
}
|
|
2914
|
-
}, /* @__PURE__ */
|
|
2909
|
+
}, /* @__PURE__ */ React22.createElement(ListItemIcon, {
|
|
2915
2910
|
sx: {
|
|
2916
2911
|
color: pathFromPayload === path ? activeColor : alpha4("#fff", 0.3),
|
|
2917
2912
|
justifyContent: "center"
|
|
2918
2913
|
}
|
|
2919
|
-
}, /* @__PURE__ */
|
|
2914
|
+
}, /* @__PURE__ */ React22.createElement(StyledMenuIconWrapSpan, {
|
|
2920
2915
|
ref: /* @__PURE__ */ __name((ref) => {
|
|
2921
2916
|
if (ref) {
|
|
2922
2917
|
ref.innerHTML = icon ?? "";
|
|
2923
2918
|
}
|
|
2924
2919
|
}, "ref")
|
|
2925
|
-
})), /* @__PURE__ */
|
|
2920
|
+
})), /* @__PURE__ */ React22.createElement(ListItemText, {
|
|
2926
2921
|
primaryTypographyProps: {
|
|
2927
2922
|
fontWeight: path === pathFromPayload ? "bold" : "inherit",
|
|
2928
2923
|
color: pathFromPayload === path ? "inherit" : alpha4(theme.palette.text.primary, 0.5)
|
|
@@ -2931,7 +2926,7 @@ var DappMenuDrawer = /* @__PURE__ */ __name(({ activePath, context, iconSvg, nam
|
|
|
2931
2926
|
style: {
|
|
2932
2927
|
opacity: pathFromPayload === path ? 1 : 0.5
|
|
2933
2928
|
}
|
|
2934
|
-
}))))))), /* @__PURE__ */
|
|
2929
|
+
}))))))), /* @__PURE__ */ React22.createElement(BottomMenuArea, {
|
|
2935
2930
|
openDebug,
|
|
2936
2931
|
backgroundColor: theme.palette.primary.dark
|
|
2937
2932
|
})));
|
|
@@ -2943,13 +2938,13 @@ import { FlexCol as FlexCol10 } from "@xylabs/react-flexbox";
|
|
|
2943
2938
|
import { NameTransforms as NameTransforms5 } from "@xyo-network/os-runtime";
|
|
2944
2939
|
import { NodeProvider as NodeProvider2 } from "@xyo-network/react-node";
|
|
2945
2940
|
import { WalletProvider } from "@xyo-network/react-wallet";
|
|
2946
|
-
import
|
|
2941
|
+
import React26 from "react";
|
|
2947
2942
|
|
|
2948
2943
|
// src/modules/XyOsUi/contexts/XyOsUiContext.ts
|
|
2949
|
-
import { createContext,
|
|
2944
|
+
import { createContext, use } from "react";
|
|
2950
2945
|
var XyOsUiContext = createContext(void 0);
|
|
2951
2946
|
var useXyOsUiContext = /* @__PURE__ */ __name(() => {
|
|
2952
|
-
return
|
|
2947
|
+
return use(XyOsUiContext);
|
|
2953
2948
|
}, "useXyOsUiContext");
|
|
2954
2949
|
var XyOsUiContextProvider = XyOsUiContext.Provider;
|
|
2955
2950
|
|
|
@@ -2999,14 +2994,14 @@ var XyOsUi = class extends XyOs {
|
|
|
2999
2994
|
// src/modules/Dapp/modules/Window/LoadingFlexbox.tsx
|
|
3000
2995
|
import { Fade, styled as styled4, Typography as Typography8 } from "@mui/material";
|
|
3001
2996
|
import { FlexCol as FlexCol9 } from "@xylabs/react-flexbox";
|
|
3002
|
-
import
|
|
2997
|
+
import React25, { useEffect as useEffect17, useState as useState17 } from "react";
|
|
3003
2998
|
|
|
3004
2999
|
// src/modules/LoadingOsLogo/LoadingOsLogo.tsx
|
|
3005
3000
|
import { FlexCol as FlexCol8 } from "@xylabs/react-flexbox";
|
|
3006
|
-
import
|
|
3001
|
+
import React23, { useState as useState16 } from "react";
|
|
3007
3002
|
|
|
3008
3003
|
// src/modules/LoadingOsLogo/img/index.ts
|
|
3009
|
-
import { default as
|
|
3004
|
+
import { default as default22 } from "./xyoOS-Icon-2Q4XCUPP.svg";
|
|
3010
3005
|
|
|
3011
3006
|
// src/modules/LoadingOsLogo/LoadingOsLogo.tsx
|
|
3012
3007
|
var LoadingOsLogo = /* @__PURE__ */ __name(({ widthInPixels, busy, spinsPerSecond = 0.5, ...props }) => {
|
|
@@ -3014,9 +3009,9 @@ var LoadingOsLogo = /* @__PURE__ */ __name(({ widthInPixels, busy, spinsPerSecon
|
|
|
3014
3009
|
if (!imageLoaded) {
|
|
3015
3010
|
const img = new Image();
|
|
3016
3011
|
img.addEventListener("load", () => setImageLoaded(true));
|
|
3017
|
-
img.src =
|
|
3012
|
+
img.src = default22;
|
|
3018
3013
|
}
|
|
3019
|
-
return imageLoaded ? /* @__PURE__ */
|
|
3014
|
+
return imageLoaded ? /* @__PURE__ */ React23.createElement(FlexCol8, {
|
|
3020
3015
|
sx: {
|
|
3021
3016
|
"@keyframes fadeOut": {
|
|
3022
3017
|
"0%": {
|
|
@@ -3034,7 +3029,7 @@ var LoadingOsLogo = /* @__PURE__ */ __name(({ widthInPixels, busy, spinsPerSecon
|
|
|
3034
3029
|
"animationFillMode": "both"
|
|
3035
3030
|
},
|
|
3036
3031
|
...props
|
|
3037
|
-
}, /* @__PURE__ */
|
|
3032
|
+
}, /* @__PURE__ */ React23.createElement(FlexCol8, {
|
|
3038
3033
|
sx: {
|
|
3039
3034
|
"@keyframes spin": {
|
|
3040
3035
|
"0%": {
|
|
@@ -3048,17 +3043,17 @@ var LoadingOsLogo = /* @__PURE__ */ __name(({ widthInPixels, busy, spinsPerSecon
|
|
|
3048
3043
|
"animationDirection": "reverse"
|
|
3049
3044
|
},
|
|
3050
3045
|
...props
|
|
3051
|
-
}, /* @__PURE__ */
|
|
3052
|
-
src:
|
|
3046
|
+
}, /* @__PURE__ */ React23.createElement("img", {
|
|
3047
|
+
src: default22,
|
|
3053
3048
|
height: widthInPixels ?? 22
|
|
3054
3049
|
}))) : null;
|
|
3055
3050
|
}, "LoadingOsLogo");
|
|
3056
3051
|
|
|
3057
3052
|
// src/modules/Dapp/modules/Window/Trail.tsx
|
|
3058
3053
|
import { a, useTrail } from "@react-spring/web";
|
|
3059
|
-
import
|
|
3054
|
+
import React24 from "react";
|
|
3060
3055
|
var TextTrail = /* @__PURE__ */ __name(({ open, children }) => {
|
|
3061
|
-
const items =
|
|
3056
|
+
const items = React24.Children.toArray(children);
|
|
3062
3057
|
const trail = useTrail(items.length, {
|
|
3063
3058
|
config: {
|
|
3064
3059
|
friction: 200,
|
|
@@ -3074,10 +3069,10 @@ var TextTrail = /* @__PURE__ */ __name(({ open, children }) => {
|
|
|
3074
3069
|
opacity: open ? 1 : 0,
|
|
3075
3070
|
y: open ? 0 : 60
|
|
3076
3071
|
});
|
|
3077
|
-
return /* @__PURE__ */
|
|
3072
|
+
return /* @__PURE__ */ React24.createElement("div", null, trail.map(({ height, ...style }, index) => /* @__PURE__ */ React24.createElement(a.div, {
|
|
3078
3073
|
key: index,
|
|
3079
3074
|
style
|
|
3080
|
-
}, /* @__PURE__ */
|
|
3075
|
+
}, /* @__PURE__ */ React24.createElement(a.div, {
|
|
3081
3076
|
style: {
|
|
3082
3077
|
height
|
|
3083
3078
|
}
|
|
@@ -3117,17 +3112,17 @@ var DappLoadingFlexbox = /* @__PURE__ */ __name(({ minimize, open, name, ...prop
|
|
|
3117
3112
|
open,
|
|
3118
3113
|
skipLoadingScreen
|
|
3119
3114
|
]);
|
|
3120
|
-
return /* @__PURE__ */
|
|
3115
|
+
return /* @__PURE__ */ React25.createElement(Fade, {
|
|
3121
3116
|
in: fadeIn,
|
|
3122
3117
|
unmountOnExit: true
|
|
3123
|
-
}, /* @__PURE__ */
|
|
3118
|
+
}, /* @__PURE__ */ React25.createElement(StyledSplashContainer, props, /* @__PURE__ */ React25.createElement(LoadingOsLogo, {
|
|
3124
3119
|
widthInPixels: 100,
|
|
3125
3120
|
busy: true,
|
|
3126
3121
|
position: "absolute"
|
|
3127
|
-
}), /* @__PURE__ */
|
|
3122
|
+
}), /* @__PURE__ */ React25.createElement(TextTrail, {
|
|
3128
3123
|
open: trail,
|
|
3129
3124
|
flexDirection: "row"
|
|
3130
|
-
}, /* @__PURE__ */
|
|
3125
|
+
}, /* @__PURE__ */ React25.createElement(Typography8, {
|
|
3131
3126
|
textAlign: "center",
|
|
3132
3127
|
sx: {
|
|
3133
3128
|
fontSize: {
|
|
@@ -3135,7 +3130,7 @@ var DappLoadingFlexbox = /* @__PURE__ */ __name(({ minimize, open, name, ...prop
|
|
|
3135
3130
|
xs: "2em"
|
|
3136
3131
|
}
|
|
3137
3132
|
}
|
|
3138
|
-
}, "Loading"), /* @__PURE__ */
|
|
3133
|
+
}, "Loading"), /* @__PURE__ */ React25.createElement(Typography8, {
|
|
3139
3134
|
textAlign: "center",
|
|
3140
3135
|
sx: {
|
|
3141
3136
|
fontSize: {
|
|
@@ -3143,7 +3138,7 @@ var DappLoadingFlexbox = /* @__PURE__ */ __name(({ minimize, open, name, ...prop
|
|
|
3143
3138
|
xs: "2em"
|
|
3144
3139
|
}
|
|
3145
3140
|
}
|
|
3146
|
-
}, name), /* @__PURE__ */
|
|
3141
|
+
}, name), /* @__PURE__ */ React25.createElement(Typography8, {
|
|
3147
3142
|
textAlign: "center",
|
|
3148
3143
|
sx: {
|
|
3149
3144
|
fontSize: {
|
|
@@ -3174,9 +3169,9 @@ var DappRendered = /* @__PURE__ */ __name(({ context, dapp, dappMenuProperties,
|
|
|
3174
3169
|
const { DappComponent, name, scrollable = true, version } = useDecomposeDapp(dapp);
|
|
3175
3170
|
const { active, minimized } = dappState ?? {};
|
|
3176
3171
|
const hasErrors = errors && errors.length > 0;
|
|
3177
|
-
return /* @__PURE__ */
|
|
3172
|
+
return /* @__PURE__ */ React26.createElement(DappChrome, {
|
|
3178
3173
|
/* Keep DappBar outside of the Dapp's Node Provider so it can still see the intentArchivist for close and minimize */
|
|
3179
|
-
appBar: /* @__PURE__ */
|
|
3174
|
+
appBar: /* @__PURE__ */ React26.createElement(DappBar, {
|
|
3180
3175
|
context,
|
|
3181
3176
|
name,
|
|
3182
3177
|
version,
|
|
@@ -3184,37 +3179,37 @@ var DappRendered = /* @__PURE__ */ __name(({ context, dapp, dappMenuProperties,
|
|
|
3184
3179
|
}),
|
|
3185
3180
|
height: "100dvh",
|
|
3186
3181
|
width: "100dvw",
|
|
3187
|
-
largeScreenMenu: active && /* @__PURE__ */
|
|
3182
|
+
largeScreenMenu: active && /* @__PURE__ */ React26.createElement(DappMenuDrawer, {
|
|
3188
3183
|
context,
|
|
3189
3184
|
name,
|
|
3190
3185
|
version,
|
|
3191
3186
|
...dappMenuProperties
|
|
3192
3187
|
}),
|
|
3193
|
-
smallScreenMenu: active && /* @__PURE__ */
|
|
3188
|
+
smallScreenMenu: active && /* @__PURE__ */ React26.createElement(DappBottomNavigation, {
|
|
3194
3189
|
...dappMenuProperties,
|
|
3195
3190
|
sx: {
|
|
3196
3191
|
display: dappMenuProperties?.menuConfig ? "flex" : "none"
|
|
3197
3192
|
}
|
|
3198
3193
|
}),
|
|
3199
3194
|
/* Ensure that loading goes away when error occurs */
|
|
3200
|
-
splashScreen: hasErrors ? null : /* @__PURE__ */
|
|
3195
|
+
splashScreen: hasErrors ? null : /* @__PURE__ */ React26.createElement(DappLoadingFlexbox, {
|
|
3201
3196
|
minimize: !!minimized,
|
|
3202
3197
|
name,
|
|
3203
3198
|
open: !!active
|
|
3204
3199
|
})
|
|
3205
|
-
}, hasErrors ? /* @__PURE__ */
|
|
3200
|
+
}, hasErrors ? /* @__PURE__ */ React26.createElement(FlexCol10, {
|
|
3206
3201
|
padding: 2
|
|
3207
|
-
}, errors?.map((error) => /* @__PURE__ */
|
|
3202
|
+
}, errors?.map((error) => /* @__PURE__ */ React26.createElement(ErrorRender4, {
|
|
3208
3203
|
key: error?.message,
|
|
3209
3204
|
error,
|
|
3210
3205
|
scope: "DappWindow"
|
|
3211
|
-
}))) : null, /* @__PURE__ */
|
|
3206
|
+
}))) : null, /* @__PURE__ */ React26.createElement(WalletProvider, {
|
|
3212
3207
|
rootWallet: dappWallet
|
|
3213
|
-
}, context === null ? null : /* @__PURE__ */
|
|
3208
|
+
}, context === null ? null : /* @__PURE__ */ React26.createElement(XyOsUiContextProvider, {
|
|
3214
3209
|
value: context
|
|
3215
|
-
}, /* @__PURE__ */
|
|
3210
|
+
}, /* @__PURE__ */ React26.createElement(NodeProvider2, {
|
|
3216
3211
|
node: context?.root
|
|
3217
|
-
}, active ? /* @__PURE__ */
|
|
3212
|
+
}, active ? /* @__PURE__ */ React26.createElement(React26.Fragment, null, /* @__PURE__ */ React26.createElement(FlexCol10, {
|
|
3218
3213
|
position: "absolute",
|
|
3219
3214
|
top: 0,
|
|
3220
3215
|
left: 0,
|
|
@@ -3225,9 +3220,9 @@ var DappRendered = /* @__PURE__ */ __name(({ context, dapp, dappMenuProperties,
|
|
|
3225
3220
|
sx: {
|
|
3226
3221
|
overflowY: scrollable ? "auto" : "hidden"
|
|
3227
3222
|
}
|
|
3228
|
-
}, /* @__PURE__ */
|
|
3223
|
+
}, /* @__PURE__ */ React26.createElement(DappComponent, {
|
|
3229
3224
|
name: dapp?.config.name
|
|
3230
|
-
})), /* @__PURE__ */
|
|
3225
|
+
})), /* @__PURE__ */ React26.createElement(DappAccessFlexbox, {
|
|
3231
3226
|
context
|
|
3232
3227
|
})) : null))));
|
|
3233
3228
|
}, "DappRendered");
|
|
@@ -3266,21 +3261,21 @@ var DappContainer = /* @__PURE__ */ __name(({ currentIntent, dappSet, xnsNodeUrl
|
|
|
3266
3261
|
dappWallet,
|
|
3267
3262
|
errors
|
|
3268
3263
|
]);
|
|
3269
|
-
return /* @__PURE__ */
|
|
3264
|
+
return /* @__PURE__ */ React27.createElement(DappIconButton, {
|
|
3270
3265
|
dappIcon,
|
|
3271
3266
|
dappIconSvg: dapp.params.iconSvg,
|
|
3272
3267
|
dappName: dapp?.config.name,
|
|
3273
3268
|
dappState
|
|
3274
|
-
}, /* @__PURE__ */
|
|
3269
|
+
}, /* @__PURE__ */ React27.createElement(DappWindow, dappWindowProps, /* @__PURE__ */ React27.createElement(DappRendered, dappWindowProps)));
|
|
3275
3270
|
}, "DappContainer");
|
|
3276
3271
|
var DappContainerMemo = /* @__PURE__ */ memo(DappContainer);
|
|
3277
3272
|
|
|
3278
3273
|
// src/modules/Dapp/ContainerFlexbox.tsx
|
|
3279
3274
|
import { Container as Container2 } from "@mui/material";
|
|
3280
3275
|
import { FlexCol as FlexCol11 } from "@xylabs/react-flexbox";
|
|
3281
|
-
import
|
|
3276
|
+
import React28 from "react";
|
|
3282
3277
|
var ContainerFlexbox = /* @__PURE__ */ __name(({ children, containerProps, scrollable = true, ...props }) => {
|
|
3283
|
-
return /* @__PURE__ */
|
|
3278
|
+
return /* @__PURE__ */ React28.createElement(FlexCol11, {
|
|
3284
3279
|
id: "container-flexbox",
|
|
3285
3280
|
alignItems: "center",
|
|
3286
3281
|
justifyContent: "start",
|
|
@@ -3289,24 +3284,24 @@ var ContainerFlexbox = /* @__PURE__ */ __name(({ children, containerProps, scrol
|
|
|
3289
3284
|
gap: 2,
|
|
3290
3285
|
overflow: scrollable ? "auto" : "unset",
|
|
3291
3286
|
...props
|
|
3292
|
-
}, /* @__PURE__ */
|
|
3287
|
+
}, /* @__PURE__ */ React28.createElement(Container2, containerProps, children));
|
|
3293
3288
|
}, "ContainerFlexbox");
|
|
3294
3289
|
|
|
3295
3290
|
// src/modules/Dapp/Page/Row.tsx
|
|
3296
3291
|
import { Divider as Divider4, Fade as Fade2, styled as styled5 } from "@mui/material";
|
|
3297
|
-
import
|
|
3292
|
+
import React30, { useMemo as useMemo15 } from "react";
|
|
3298
3293
|
|
|
3299
3294
|
// src/modules/Dapp/Page/DividerChip.tsx
|
|
3300
3295
|
import { Chip as Chip2, CircularProgress } from "@mui/material";
|
|
3301
|
-
import
|
|
3296
|
+
import React29 from "react";
|
|
3302
3297
|
var DividerChip = /* @__PURE__ */ __name(({ registeredDapps, ...props }) => {
|
|
3303
|
-
return /* @__PURE__ */
|
|
3304
|
-
avatar: registeredDapps === void 0 ? /* @__PURE__ */
|
|
3298
|
+
return /* @__PURE__ */ React29.createElement(Chip2, {
|
|
3299
|
+
avatar: registeredDapps === void 0 ? /* @__PURE__ */ React29.createElement("span", null, /* @__PURE__ */ React29.createElement(CircularProgress, {
|
|
3305
3300
|
size: "small",
|
|
3306
3301
|
sx: {
|
|
3307
3302
|
display: "inline"
|
|
3308
3303
|
}
|
|
3309
|
-
})) : /* @__PURE__ */
|
|
3304
|
+
})) : /* @__PURE__ */ React29.createElement(React29.Fragment, null),
|
|
3310
3305
|
label: `${registeredDapps?.length ? "" : "Loading "}Beta dApps`,
|
|
3311
3306
|
size: "small",
|
|
3312
3307
|
sx: {
|
|
@@ -3322,19 +3317,19 @@ var DappsRow = /* @__PURE__ */ __name(({ chipLabel, currentIntent, installType,
|
|
|
3322
3317
|
installType,
|
|
3323
3318
|
registeredDappsSet
|
|
3324
3319
|
]);
|
|
3325
|
-
return /* @__PURE__ */
|
|
3320
|
+
return /* @__PURE__ */ React30.createElement(React30.Fragment, null, /* @__PURE__ */ React30.createElement(Divider4, {
|
|
3326
3321
|
variant: "middle",
|
|
3327
3322
|
sx: {
|
|
3328
3323
|
marginY: 3
|
|
3329
3324
|
},
|
|
3330
3325
|
flexItem: true
|
|
3331
|
-
}, /* @__PURE__ */
|
|
3326
|
+
}, /* @__PURE__ */ React30.createElement(DividerChip, {
|
|
3332
3327
|
label: `${filteredRegisteredDappSets === void 0 ? "Loading " : ""}${chipLabel}`,
|
|
3333
3328
|
registeredDapps: filteredRegisteredDappSets
|
|
3334
|
-
})), filteredRegisteredDappSets?.length ? /* @__PURE__ */
|
|
3329
|
+
})), filteredRegisteredDappSets?.length ? /* @__PURE__ */ React30.createElement(Fade2, {
|
|
3335
3330
|
in: !!filteredRegisteredDappSets?.length,
|
|
3336
3331
|
timeout: 1e3
|
|
3337
|
-
}, /* @__PURE__ */
|
|
3332
|
+
}, /* @__PURE__ */ React30.createElement(StyledGridContainer, null, filteredRegisteredDappSets?.map((dappSet) => /* @__PURE__ */ React30.createElement(DappContainerMemo, {
|
|
3338
3333
|
currentIntent,
|
|
3339
3334
|
key: dappSet.dapp.config.name,
|
|
3340
3335
|
dappSet,
|
|
@@ -3358,7 +3353,7 @@ var StyledGridContainer = styled5("div", {
|
|
|
3358
3353
|
import { SignalCellularAltOutlined } from "@mui/icons-material";
|
|
3359
3354
|
import { Tooltip as Tooltip5, useTheme as useTheme8 } from "@mui/material";
|
|
3360
3355
|
import { useColorSchemeEx as useColorSchemeEx3 } from "@xylabs/react-invertible-theme";
|
|
3361
|
-
import
|
|
3356
|
+
import React31, { useMemo as useMemo18 } from "react";
|
|
3362
3357
|
|
|
3363
3358
|
// src/modules/network/hooks/useOsNetwork.tsx
|
|
3364
3359
|
import { OsPubSubNetworkReadyEvent } from "@xyo-network/os-runtime";
|
|
@@ -3474,9 +3469,9 @@ var StyledNetworkLoadingIndicator = styled6("div", {
|
|
|
3474
3469
|
}));
|
|
3475
3470
|
|
|
3476
3471
|
// src/modules/network/components/LoadingIndicator.tsx
|
|
3477
|
-
var WaitingForNetwork = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
3472
|
+
var WaitingForNetwork = /* @__PURE__ */ __name(() => /* @__PURE__ */ React31.createElement(Tooltip5, {
|
|
3478
3473
|
title: "Waiting for Network initialization"
|
|
3479
|
-
}, /* @__PURE__ */
|
|
3474
|
+
}, /* @__PURE__ */ React31.createElement(StyledNetworkLoadingIndicator, null)), "WaitingForNetwork");
|
|
3480
3475
|
var NetworkLoadingIndicator = /* @__PURE__ */ __name(({ highContrast }) => {
|
|
3481
3476
|
const { darkMode } = useColorSchemeEx3();
|
|
3482
3477
|
const theme = useTheme8();
|
|
@@ -3488,15 +3483,15 @@ var NetworkLoadingIndicator = /* @__PURE__ */ __name(({ highContrast }) => {
|
|
|
3488
3483
|
const NetworkComponent = useMemo18(() => {
|
|
3489
3484
|
if (networkReady) {
|
|
3490
3485
|
const connectionReady = true;
|
|
3491
|
-
return connectionReady ? () => /* @__PURE__ */
|
|
3486
|
+
return connectionReady ? () => /* @__PURE__ */ React31.createElement(Tooltip5, {
|
|
3492
3487
|
title: "Connected to Network"
|
|
3493
|
-
}, /* @__PURE__ */
|
|
3488
|
+
}, /* @__PURE__ */ React31.createElement(SignalCellularAltOutlined, {
|
|
3494
3489
|
sx: {
|
|
3495
3490
|
color: successColor
|
|
3496
3491
|
}
|
|
3497
|
-
})) : () => /* @__PURE__ */
|
|
3492
|
+
})) : () => /* @__PURE__ */ React31.createElement(Tooltip5, {
|
|
3498
3493
|
title: "Error Connecting to Network"
|
|
3499
|
-
}, /* @__PURE__ */
|
|
3494
|
+
}, /* @__PURE__ */ React31.createElement(SignalCellularAltOutlined, {
|
|
3500
3495
|
sx: {
|
|
3501
3496
|
color: errorColor
|
|
3502
3497
|
}
|
|
@@ -3509,18 +3504,18 @@ var NetworkLoadingIndicator = /* @__PURE__ */ __name(({ highContrast }) => {
|
|
|
3509
3504
|
networkReady,
|
|
3510
3505
|
successColor
|
|
3511
3506
|
]);
|
|
3512
|
-
return /* @__PURE__ */
|
|
3507
|
+
return /* @__PURE__ */ React31.createElement(NetworkComponent, null);
|
|
3513
3508
|
}, "NetworkLoadingIndicator");
|
|
3514
3509
|
|
|
3515
3510
|
// src/modules/network/components/NetworkButton.tsx
|
|
3516
3511
|
import { NotInterested } from "@mui/icons-material";
|
|
3517
3512
|
import { Button as Button2 } from "@mui/material";
|
|
3518
|
-
import
|
|
3513
|
+
import React32 from "react";
|
|
3519
3514
|
var NetworkButton = /* @__PURE__ */ __name(({ disabled, startIcon, ...props }) => {
|
|
3520
3515
|
const { networkReady } = useOsNetwork();
|
|
3521
|
-
return /* @__PURE__ */
|
|
3516
|
+
return /* @__PURE__ */ React32.createElement(Button2, {
|
|
3522
3517
|
disabled: disabled || !networkReady,
|
|
3523
|
-
startIcon: /* @__PURE__ */
|
|
3518
|
+
startIcon: /* @__PURE__ */ React32.createElement(React32.Fragment, null, startIcon, networkReady === false ? /* @__PURE__ */ React32.createElement(NotInterested, null) : null),
|
|
3524
3519
|
...props
|
|
3525
3520
|
});
|
|
3526
3521
|
}, "NetworkButton");
|
|
@@ -3528,35 +3523,35 @@ var NetworkButton = /* @__PURE__ */ __name(({ disabled, startIcon, ...props }) =
|
|
|
3528
3523
|
// src/modules/network/components/NetworkReady.tsx
|
|
3529
3524
|
import { Typography as Typography9 } from "@mui/material";
|
|
3530
3525
|
import { FlexCol as FlexCol12 } from "@xylabs/react-flexbox";
|
|
3531
|
-
import
|
|
3526
|
+
import React33 from "react";
|
|
3532
3527
|
var NetworkReadyFlexBox = /* @__PURE__ */ __name(({ children, skipCheck, ...props }) => {
|
|
3533
3528
|
const { networkReady } = useOsNetwork();
|
|
3534
|
-
return /* @__PURE__ */
|
|
3529
|
+
return /* @__PURE__ */ React33.createElement(React33.Fragment, null, networkReady || skipCheck ? children : /* @__PURE__ */ React33.createElement(FlexCol12, {
|
|
3535
3530
|
height: "100%",
|
|
3536
3531
|
...props
|
|
3537
|
-
}, /* @__PURE__ */
|
|
3532
|
+
}, /* @__PURE__ */ React33.createElement(LoadingOsLogo, {
|
|
3538
3533
|
widthInPixels: 100,
|
|
3539
3534
|
busy: true
|
|
3540
|
-
}), /* @__PURE__ */
|
|
3535
|
+
}), /* @__PURE__ */ React33.createElement(Typography9, {
|
|
3541
3536
|
fontFamily: "monospace"
|
|
3542
3537
|
}, "Loading XYO Name Service...")));
|
|
3543
3538
|
}, "NetworkReadyFlexBox");
|
|
3544
3539
|
|
|
3545
3540
|
// src/DappPage.tsx
|
|
3546
3541
|
var DappTitle = /* @__PURE__ */ __name(({ subtitle, title, ...props }) => {
|
|
3547
|
-
return title ? /* @__PURE__ */
|
|
3542
|
+
return title ? /* @__PURE__ */ React34.createElement(FlexCol13, {
|
|
3548
3543
|
alignItems: "flex-start",
|
|
3549
3544
|
gap: 1,
|
|
3550
3545
|
...props
|
|
3551
|
-
}, /* @__PURE__ */
|
|
3546
|
+
}, /* @__PURE__ */ React34.createElement(Typography10, {
|
|
3552
3547
|
variant: "h3"
|
|
3553
|
-
}, /* @__PURE__ */
|
|
3548
|
+
}, /* @__PURE__ */ React34.createElement("b", null, title)), /* @__PURE__ */ React34.createElement(Typography10, {
|
|
3554
3549
|
gutterBottom: true,
|
|
3555
3550
|
variant: "subtitle2"
|
|
3556
3551
|
}, subtitle)) : null;
|
|
3557
3552
|
}, "DappTitle");
|
|
3558
3553
|
var InnerDappPage = /* @__PURE__ */ __name(({ noScroll, children, subtitle, title, sx, titleProps, ...props }) => {
|
|
3559
|
-
return /* @__PURE__ */
|
|
3554
|
+
return /* @__PURE__ */ React34.createElement(FlexCol13, {
|
|
3560
3555
|
id: "innerPage",
|
|
3561
3556
|
sx: {
|
|
3562
3557
|
margin: 2,
|
|
@@ -3566,26 +3561,26 @@ var InnerDappPage = /* @__PURE__ */ __name(({ noScroll, children, subtitle, titl
|
|
|
3566
3561
|
alignItems: "stretch",
|
|
3567
3562
|
justifyContent: "flex-start",
|
|
3568
3563
|
...props
|
|
3569
|
-
}, title ? /* @__PURE__ */
|
|
3564
|
+
}, title ? /* @__PURE__ */ React34.createElement(DappTitle, {
|
|
3570
3565
|
subtitle,
|
|
3571
3566
|
title,
|
|
3572
3567
|
...titleProps
|
|
3573
3568
|
}) : null, children);
|
|
3574
3569
|
}, "InnerDappPage");
|
|
3575
3570
|
var DappPage = /* @__PURE__ */ __name(({ checkNetwork, noScroll, subtitle, title, container, rollbar, ...props }) => {
|
|
3576
|
-
return /* @__PURE__ */
|
|
3577
|
-
errorComponent: /* @__PURE__ */ __name((error, boundaryName) => /* @__PURE__ */
|
|
3571
|
+
return /* @__PURE__ */ React34.createElement(ThrownErrorBoundary, {
|
|
3572
|
+
errorComponent: /* @__PURE__ */ __name((error, boundaryName) => /* @__PURE__ */ React34.createElement(ErrorRenderWithSupportDefault, {
|
|
3578
3573
|
scope: boundaryName,
|
|
3579
3574
|
error
|
|
3580
3575
|
}), "errorComponent"),
|
|
3581
3576
|
rollbar,
|
|
3582
3577
|
scope: "DappPage"
|
|
3583
|
-
}, /* @__PURE__ */
|
|
3578
|
+
}, /* @__PURE__ */ React34.createElement(NetworkReadyFlexBox, {
|
|
3584
3579
|
skipCheck: !checkNetwork
|
|
3585
|
-
}, container ? /* @__PURE__ */
|
|
3580
|
+
}, container ? /* @__PURE__ */ React34.createElement(Container3, {
|
|
3586
3581
|
disableGutters: true,
|
|
3587
3582
|
maxWidth: container === true ? "md" : container
|
|
3588
|
-
}, noScroll ? /* @__PURE__ */
|
|
3583
|
+
}, noScroll ? /* @__PURE__ */ React34.createElement(FlexCol13, {
|
|
3589
3584
|
sx: {
|
|
3590
3585
|
position: "absolute",
|
|
3591
3586
|
top: 0,
|
|
@@ -3593,23 +3588,23 @@ var DappPage = /* @__PURE__ */ __name(({ checkNetwork, noScroll, subtitle, title
|
|
|
3593
3588
|
right: 0,
|
|
3594
3589
|
bottom: 0
|
|
3595
3590
|
}
|
|
3596
|
-
}, /* @__PURE__ */
|
|
3591
|
+
}, /* @__PURE__ */ React34.createElement(InnerDappPage, {
|
|
3597
3592
|
noScroll,
|
|
3598
3593
|
title,
|
|
3599
3594
|
subtitle,
|
|
3600
3595
|
...props,
|
|
3601
3596
|
flexGrow: 1
|
|
3602
|
-
})) : /* @__PURE__ */
|
|
3597
|
+
})) : /* @__PURE__ */ React34.createElement(FlexCol13, {
|
|
3603
3598
|
width: "100%",
|
|
3604
3599
|
height: "100%",
|
|
3605
3600
|
alignItems: "stretch"
|
|
3606
|
-
}, /* @__PURE__ */
|
|
3601
|
+
}, /* @__PURE__ */ React34.createElement(InnerDappPage, {
|
|
3607
3602
|
noScroll,
|
|
3608
3603
|
title,
|
|
3609
3604
|
subtitle,
|
|
3610
3605
|
...props,
|
|
3611
3606
|
flexGrow: 1
|
|
3612
|
-
}))) : noScroll ? /* @__PURE__ */
|
|
3607
|
+
}))) : noScroll ? /* @__PURE__ */ React34.createElement(InnerDappPage, {
|
|
3613
3608
|
sx: {
|
|
3614
3609
|
position: "absolute",
|
|
3615
3610
|
top: 0,
|
|
@@ -3622,7 +3617,7 @@ var DappPage = /* @__PURE__ */ __name(({ checkNetwork, noScroll, subtitle, title
|
|
|
3622
3617
|
subtitle,
|
|
3623
3618
|
...props,
|
|
3624
3619
|
flexGrow: 1
|
|
3625
|
-
}) : /* @__PURE__ */
|
|
3620
|
+
}) : /* @__PURE__ */ React34.createElement(InnerDappPage, {
|
|
3626
3621
|
noScroll,
|
|
3627
3622
|
title,
|
|
3628
3623
|
subtitle,
|
|
@@ -3634,13 +3629,13 @@ var DappPage = /* @__PURE__ */ __name(({ checkNetwork, noScroll, subtitle, title
|
|
|
3634
3629
|
// src/components/Widgets/StackOfWidgets.tsx
|
|
3635
3630
|
import { alpha as alpha7, Box as Box3, useTheme as useTheme10 } from "@mui/material";
|
|
3636
3631
|
import { animated as animated2, to as interpolate, useSprings } from "@react-spring/web";
|
|
3637
|
-
import
|
|
3632
|
+
import React41, { useState as useState18 } from "react";
|
|
3638
3633
|
import { useDrag } from "react-use-gesture";
|
|
3639
3634
|
|
|
3640
3635
|
// src/components/Widgets/Types/BarGraph/HorizontalBarGraph.tsx
|
|
3641
3636
|
import { Typography as Typography11 } from "@mui/material";
|
|
3642
3637
|
import { FlexCol as FlexCol14, FlexGrowRow as FlexGrowRow6 } from "@xylabs/react-flexbox";
|
|
3643
|
-
import
|
|
3638
|
+
import React35 from "react";
|
|
3644
3639
|
|
|
3645
3640
|
// src/components/Widgets/Types/BarGraph/StyledLinearProgress.tsx
|
|
3646
3641
|
import { alpha as alpha5, LinearProgress, styled as styled7 } from "@mui/material";
|
|
@@ -3698,25 +3693,25 @@ var HorizontalBarGraph = /* @__PURE__ */ __name(({ items = sampleData, ...props
|
|
|
3698
3693
|
});
|
|
3699
3694
|
console.log(itemsSortedByValue);
|
|
3700
3695
|
const topValue = itemsSortedByValue[0].value;
|
|
3701
|
-
return /* @__PURE__ */
|
|
3696
|
+
return /* @__PURE__ */ React35.createElement(FlexCol14, {
|
|
3702
3697
|
alignItems: "stretch",
|
|
3703
3698
|
gap: 0.5,
|
|
3704
3699
|
...props
|
|
3705
3700
|
}, items.slice(0, 5).map((item, index) => (
|
|
3706
3701
|
// eslint-disable-next-line @eslint-react/no-array-index-key
|
|
3707
|
-
/* @__PURE__ */
|
|
3702
|
+
/* @__PURE__ */ React35.createElement(FlexCol14, {
|
|
3708
3703
|
alignItems: "stretch",
|
|
3709
3704
|
key: index
|
|
3710
|
-
}, /* @__PURE__ */
|
|
3705
|
+
}, /* @__PURE__ */ React35.createElement(FlexGrowRow6, {
|
|
3711
3706
|
justifyContent: "space-between"
|
|
3712
|
-
}, /* @__PURE__ */
|
|
3707
|
+
}, /* @__PURE__ */ React35.createElement(Typography11, {
|
|
3713
3708
|
variant: "caption",
|
|
3714
3709
|
maxWidth: "50%",
|
|
3715
3710
|
noWrap: true
|
|
3716
|
-
}, item.name), /* @__PURE__ */
|
|
3711
|
+
}, item.name), /* @__PURE__ */ React35.createElement(Typography11, {
|
|
3717
3712
|
variant: "caption",
|
|
3718
3713
|
maxWidth: "50%"
|
|
3719
|
-
}, item.value)), /* @__PURE__ */
|
|
3714
|
+
}, item.value)), /* @__PURE__ */ React35.createElement(StyledLinearProgress, {
|
|
3720
3715
|
color: "primary",
|
|
3721
3716
|
value: item.value / (topValue * 1.25) * 100,
|
|
3722
3717
|
variant: "determinate"
|
|
@@ -3727,7 +3722,7 @@ var HorizontalBarGraph = /* @__PURE__ */ __name(({ items = sampleData, ...props
|
|
|
3727
3722
|
// src/components/Widgets/Types/DataColumns/TwoColTwoStat.tsx
|
|
3728
3723
|
import { Typography as Typography12, useTheme as useTheme9 } from "@mui/material";
|
|
3729
3724
|
import { FlexCol as FlexCol15, FlexGrowRow as FlexGrowRow7 } from "@xylabs/react-flexbox";
|
|
3730
|
-
import
|
|
3725
|
+
import React36, { useEffect as useEffect18 } from "react";
|
|
3731
3726
|
var MAX_LENGTH = 2;
|
|
3732
3727
|
var validateProps = /* @__PURE__ */ __name((props) => {
|
|
3733
3728
|
if (props.length > MAX_LENGTH) {
|
|
@@ -3741,29 +3736,29 @@ var TwoColTwoStat = /* @__PURE__ */ __name(({ items, ...props }) => {
|
|
|
3741
3736
|
}, [
|
|
3742
3737
|
items
|
|
3743
3738
|
]);
|
|
3744
|
-
return /* @__PURE__ */
|
|
3739
|
+
return /* @__PURE__ */ React36.createElement(FlexGrowRow7, {
|
|
3745
3740
|
gap: 2,
|
|
3746
3741
|
...props
|
|
3747
3742
|
}, items.map((item, index) => (
|
|
3748
3743
|
// eslint-disable-next-line @eslint-react/no-array-index-key
|
|
3749
|
-
/* @__PURE__ */
|
|
3744
|
+
/* @__PURE__ */ React36.createElement(FlexCol15, {
|
|
3750
3745
|
key: `stat-${index}-${item.unit}`,
|
|
3751
3746
|
flexGrow: 1,
|
|
3752
3747
|
alignItems: "start"
|
|
3753
|
-
}, /* @__PURE__ */
|
|
3748
|
+
}, /* @__PURE__ */ React36.createElement(Typography12, {
|
|
3754
3749
|
variant: "h2",
|
|
3755
3750
|
fontWeight: theme.typography.fontWeightMedium
|
|
3756
|
-
}, item.rawInsightValue), /* @__PURE__ */
|
|
3751
|
+
}, item.rawInsightValue), /* @__PURE__ */ React36.createElement(Typography12, {
|
|
3757
3752
|
variant: "body2"
|
|
3758
3753
|
}, item.subtitle))
|
|
3759
3754
|
)));
|
|
3760
3755
|
}, "TwoColTwoStat");
|
|
3761
3756
|
|
|
3762
3757
|
// src/components/Widgets/Types/Examples/BarGraph.tsx
|
|
3763
|
-
import
|
|
3758
|
+
import React37 from "react";
|
|
3764
3759
|
var ExampleBarGraphWidget = /* @__PURE__ */ __name(() => {
|
|
3765
|
-
return /* @__PURE__ */
|
|
3766
|
-
widgetContent: /* @__PURE__ */
|
|
3760
|
+
return /* @__PURE__ */ React37.createElement(WidgetCard, {
|
|
3761
|
+
widgetContent: /* @__PURE__ */ React37.createElement(HorizontalBarGraph, null),
|
|
3767
3762
|
widgetName: "Friend Locations",
|
|
3768
3763
|
timeOfData: 1715713478,
|
|
3769
3764
|
widgetPath: "/profile"
|
|
@@ -3771,13 +3766,13 @@ var ExampleBarGraphWidget = /* @__PURE__ */ __name(() => {
|
|
|
3771
3766
|
}, "ExampleBarGraphWidget");
|
|
3772
3767
|
|
|
3773
3768
|
// src/components/Widgets/Types/Examples/BooleanTable.tsx
|
|
3774
|
-
import
|
|
3769
|
+
import React39 from "react";
|
|
3775
3770
|
|
|
3776
3771
|
// src/components/Widgets/Types/Tables/BooleanTable.tsx
|
|
3777
3772
|
import { CircleRounded } from "@mui/icons-material";
|
|
3778
3773
|
import { alpha as alpha6, Paper as Paper2, styled as styled8, TableRow, Typography as Typography13 } from "@mui/material";
|
|
3779
3774
|
import { FlexCol as FlexCol16, FlexGrowRow as FlexGrowRow8, FlexRow as FlexRow9 } from "@xylabs/react-flexbox";
|
|
3780
|
-
import
|
|
3775
|
+
import React38 from "react";
|
|
3781
3776
|
var sampleData2 = [
|
|
3782
3777
|
{
|
|
3783
3778
|
name: "@arietrouw",
|
|
@@ -3825,27 +3820,27 @@ var DefaultFalseOutput = styled8(CircleRounded, {
|
|
|
3825
3820
|
fill: alpha6(theme.palette.text.disabled, 0.5),
|
|
3826
3821
|
fontSize: "10px"
|
|
3827
3822
|
}));
|
|
3828
|
-
var defaultTrueOutput = /* @__PURE__ */
|
|
3829
|
-
var defaultFalseOutput = /* @__PURE__ */
|
|
3823
|
+
var defaultTrueOutput = /* @__PURE__ */ React38.createElement(DefaultTrueOutput, null);
|
|
3824
|
+
var defaultFalseOutput = /* @__PURE__ */ React38.createElement(DefaultFalseOutput, null);
|
|
3830
3825
|
var BooleanTable = /* @__PURE__ */ __name(({ items = sampleData2, tableHeaders, trueOutput = defaultTrueOutput, falseOutput = defaultFalseOutput, ...props }) => {
|
|
3831
|
-
return /* @__PURE__ */
|
|
3826
|
+
return /* @__PURE__ */ React38.createElement(FlexCol16, {
|
|
3832
3827
|
alignItems: "stretch",
|
|
3833
3828
|
...props
|
|
3834
|
-
}, /* @__PURE__ */
|
|
3829
|
+
}, /* @__PURE__ */ React38.createElement(FlexRow9, {
|
|
3835
3830
|
paddingBottom: 0.5,
|
|
3836
3831
|
justifyContent: "space-between"
|
|
3837
|
-
}, tableHeaders.map((name) => /* @__PURE__ */
|
|
3832
|
+
}, tableHeaders.map((name) => /* @__PURE__ */ React38.createElement(StyledTableColumnTitle, {
|
|
3838
3833
|
key: name,
|
|
3839
3834
|
variant: "caption"
|
|
3840
|
-
}, name))), /* @__PURE__ */
|
|
3835
|
+
}, name))), /* @__PURE__ */ React38.createElement(FlexCol16, {
|
|
3841
3836
|
alignItems: "stretch",
|
|
3842
3837
|
gap: 0.25
|
|
3843
|
-
}, items.slice(0, 4).map((item, index) => /* @__PURE__ */
|
|
3838
|
+
}, items.slice(0, 4).map((item, index) => /* @__PURE__ */ React38.createElement(TableRow, {
|
|
3844
3839
|
key: index
|
|
3845
|
-
}, /* @__PURE__ */
|
|
3840
|
+
}, /* @__PURE__ */ React38.createElement(FlexGrowRow8, {
|
|
3846
3841
|
flexGrow: 1,
|
|
3847
3842
|
justifyContent: "space-between"
|
|
3848
|
-
}, /* @__PURE__ */
|
|
3843
|
+
}, /* @__PURE__ */ React38.createElement(Typography13, {
|
|
3849
3844
|
variant: "caption",
|
|
3850
3845
|
noWrap: true,
|
|
3851
3846
|
maxWidth: "70%"
|
|
@@ -3854,8 +3849,8 @@ var BooleanTable = /* @__PURE__ */ __name(({ items = sampleData2, tableHeaders,
|
|
|
3854
3849
|
|
|
3855
3850
|
// src/components/Widgets/Types/Examples/BooleanTable.tsx
|
|
3856
3851
|
var ExampleBooleanTableWidget = /* @__PURE__ */ __name(() => {
|
|
3857
|
-
return /* @__PURE__ */
|
|
3858
|
-
widgetContent: /* @__PURE__ */
|
|
3852
|
+
return /* @__PURE__ */ React39.createElement(WidgetCard, {
|
|
3853
|
+
widgetContent: /* @__PURE__ */ React39.createElement(BooleanTable, {
|
|
3859
3854
|
items: [
|
|
3860
3855
|
{
|
|
3861
3856
|
name: "@arietrouw",
|
|
@@ -3890,10 +3885,10 @@ var ExampleBooleanTableWidget = /* @__PURE__ */ __name(() => {
|
|
|
3890
3885
|
}, "ExampleBooleanTableWidget");
|
|
3891
3886
|
|
|
3892
3887
|
// src/components/Widgets/Types/Examples/TwoColTwoStat.tsx
|
|
3893
|
-
import
|
|
3888
|
+
import React40 from "react";
|
|
3894
3889
|
var ExampleTwoColTwoStatWidget = /* @__PURE__ */ __name(() => {
|
|
3895
|
-
return /* @__PURE__ */
|
|
3896
|
-
widgetContent: /* @__PURE__ */
|
|
3890
|
+
return /* @__PURE__ */ React40.createElement(WidgetCard, {
|
|
3891
|
+
widgetContent: /* @__PURE__ */ React40.createElement(TwoColTwoStat, {
|
|
3897
3892
|
items: [
|
|
3898
3893
|
{
|
|
3899
3894
|
rawInsightValue: 218,
|
|
@@ -3917,13 +3912,13 @@ var ExampleTwoColTwoStatWidget = /* @__PURE__ */ __name(() => {
|
|
|
3917
3912
|
|
|
3918
3913
|
// src/components/Widgets/StackOfWidgets.tsx
|
|
3919
3914
|
var cards = [
|
|
3920
|
-
/* @__PURE__ */
|
|
3915
|
+
/* @__PURE__ */ React41.createElement(ExampleBarGraphWidget, {
|
|
3921
3916
|
key: "bar-graph"
|
|
3922
3917
|
}),
|
|
3923
|
-
/* @__PURE__ */
|
|
3918
|
+
/* @__PURE__ */ React41.createElement(ExampleBooleanTableWidget, {
|
|
3924
3919
|
key: "boolean-table"
|
|
3925
3920
|
}),
|
|
3926
|
-
/* @__PURE__ */
|
|
3921
|
+
/* @__PURE__ */ React41.createElement(ExampleTwoColTwoStatWidget, {
|
|
3927
3922
|
key: "two-column"
|
|
3928
3923
|
})
|
|
3929
3924
|
];
|
|
@@ -3974,7 +3969,7 @@ function Deck() {
|
|
|
3974
3969
|
api.start((i) => to(i));
|
|
3975
3970
|
}, 600);
|
|
3976
3971
|
});
|
|
3977
|
-
return /* @__PURE__ */
|
|
3972
|
+
return /* @__PURE__ */ React41.createElement(React41.Fragment, null, props.map(({ x, y, rot, scale }, i) => /* @__PURE__ */ React41.createElement(animated2.div, {
|
|
3978
3973
|
// eslint-disable-next-line @eslint-react/no-array-index-key
|
|
3979
3974
|
key: i,
|
|
3980
3975
|
style: {
|
|
@@ -3989,7 +3984,7 @@ function Deck() {
|
|
|
3989
3984
|
x,
|
|
3990
3985
|
y
|
|
3991
3986
|
}
|
|
3992
|
-
}, /* @__PURE__ */
|
|
3987
|
+
}, /* @__PURE__ */ React41.createElement(animated2.div, {
|
|
3993
3988
|
...bind(i),
|
|
3994
3989
|
style: {
|
|
3995
3990
|
// WebkitBackdropFilter: 'blur(10px)',
|
|
@@ -4014,7 +4009,7 @@ function Deck() {
|
|
|
4014
4009
|
}
|
|
4015
4010
|
__name(Deck, "Deck");
|
|
4016
4011
|
var StackOfWidgets = /* @__PURE__ */ __name(() => {
|
|
4017
|
-
return /* @__PURE__ */
|
|
4012
|
+
return /* @__PURE__ */ React41.createElement(Box3, {
|
|
4018
4013
|
sx: {
|
|
4019
4014
|
alignItems: "center",
|
|
4020
4015
|
cursor: "pointer",
|
|
@@ -4023,30 +4018,30 @@ var StackOfWidgets = /* @__PURE__ */ __name(() => {
|
|
|
4023
4018
|
justifyContent: "center",
|
|
4024
4019
|
width: "300px"
|
|
4025
4020
|
}
|
|
4026
|
-
}, /* @__PURE__ */
|
|
4021
|
+
}, /* @__PURE__ */ React41.createElement(Deck, null));
|
|
4027
4022
|
}, "StackOfWidgets");
|
|
4028
4023
|
|
|
4029
4024
|
// src/components/Widgets/WidgetCardExamples.tsx
|
|
4030
4025
|
var WidgetCardExamples = /* @__PURE__ */ __name(() => {
|
|
4031
4026
|
const { darkMode } = useColorSchemeEx4();
|
|
4032
|
-
return /* @__PURE__ */
|
|
4027
|
+
return /* @__PURE__ */ React42.createElement(DappPage, {
|
|
4033
4028
|
sx: {
|
|
4034
4029
|
backgroundImage: darkMode ? `url(${default18})` : `url(${default19})`,
|
|
4035
4030
|
backgroundSize: "cover"
|
|
4036
4031
|
},
|
|
4037
4032
|
container: "xl",
|
|
4038
4033
|
title: "Example Widget Cards"
|
|
4039
|
-
}, /* @__PURE__ */
|
|
4034
|
+
}, /* @__PURE__ */ React42.createElement(Stack2, {
|
|
4040
4035
|
gap: 2,
|
|
4041
4036
|
flexDirection: "row",
|
|
4042
4037
|
flexWrap: "wrap"
|
|
4043
|
-
}, /* @__PURE__ */
|
|
4038
|
+
}, /* @__PURE__ */ React42.createElement(ExampleTwoColTwoStatWidget, null), /* @__PURE__ */ React42.createElement(ExampleBarGraphWidget, null), /* @__PURE__ */ React42.createElement(ExampleBooleanTableWidget, null), /* @__PURE__ */ React42.createElement(StackOfWidgets, null)));
|
|
4044
4039
|
}, "WidgetCardExamples");
|
|
4045
4040
|
|
|
4046
4041
|
// src/DappPathSwitcher.tsx
|
|
4047
4042
|
import { animated as animated3, useTransition } from "@react-spring/web";
|
|
4048
4043
|
import { ErrorRender as ErrorRender5 } from "@xylabs/react-error";
|
|
4049
|
-
import
|
|
4044
|
+
import React43 from "react";
|
|
4050
4045
|
var DappPathSwitcher = /* @__PURE__ */ __name(({ activePath, pathToComponent }) => {
|
|
4051
4046
|
const transitions = useTransition(activePath, {
|
|
4052
4047
|
enter: {
|
|
@@ -4064,7 +4059,7 @@ var DappPathSwitcher = /* @__PURE__ */ __name(({ activePath, pathToComponent })
|
|
|
4064
4059
|
});
|
|
4065
4060
|
const possibleZIndex = pathToComponent?.findIndex((item) => item.path === activePath);
|
|
4066
4061
|
const zIndex = possibleZIndex !== -1 && possibleZIndex !== void 0 ? possibleZIndex : 1;
|
|
4067
|
-
return /* @__PURE__ */
|
|
4062
|
+
return /* @__PURE__ */ React43.createElement(React43.Fragment, null, transitions((transitionProps, activePathRef) => /* @__PURE__ */ React43.createElement(animated3.div, {
|
|
4068
4063
|
style: {
|
|
4069
4064
|
...transitionProps,
|
|
4070
4065
|
alignItems: "stretch",
|
|
@@ -4083,7 +4078,7 @@ var DappPathSwitcher = /* @__PURE__ */ __name(({ activePath, pathToComponent })
|
|
|
4083
4078
|
}, (() => {
|
|
4084
4079
|
const activeIndex = pathToComponent?.findIndex(({ path: componentPath }) => activePathRef === componentPath);
|
|
4085
4080
|
const activeItem = pathToComponent && activeIndex !== -1 && activeIndex !== void 0 ? pathToComponent[activeIndex] : void 0;
|
|
4086
|
-
return activeItem ? activeItem.component : /* @__PURE__ */
|
|
4081
|
+
return activeItem ? activeItem.component : /* @__PURE__ */ React43.createElement(ErrorRender5, {
|
|
4087
4082
|
error: new Error(`No component found for path: ${activePathRef}`),
|
|
4088
4083
|
scope: "DappPathSwitcher"
|
|
4089
4084
|
});
|
|
@@ -4092,7 +4087,7 @@ var DappPathSwitcher = /* @__PURE__ */ __name(({ activePath, pathToComponent })
|
|
|
4092
4087
|
|
|
4093
4088
|
// src/dapps/shared/accounts/components/AnimatedComponents/GenericAnimations/ShiftAnimation.tsx
|
|
4094
4089
|
import { animated as animated4, useSpring as useSpring2 } from "@react-spring/web";
|
|
4095
|
-
import
|
|
4090
|
+
import React44, { useEffect as useEffect19, useState as useState19 } from "react";
|
|
4096
4091
|
var MovementData = {
|
|
4097
4092
|
down: [
|
|
4098
4093
|
{
|
|
@@ -4186,7 +4181,7 @@ var ShiftAnimation = /* @__PURE__ */ __name(({ startAnimation = false, animation
|
|
|
4186
4181
|
}, [
|
|
4187
4182
|
isShifted
|
|
4188
4183
|
]);
|
|
4189
|
-
return /* @__PURE__ */
|
|
4184
|
+
return /* @__PURE__ */ React44.createElement(animated4.div, {
|
|
4190
4185
|
style: anim
|
|
4191
4186
|
}, children);
|
|
4192
4187
|
}, "ShiftAnimation");
|
|
@@ -4194,10 +4189,10 @@ var ShiftAnimation = /* @__PURE__ */ __name(({ startAnimation = false, animation
|
|
|
4194
4189
|
// src/dapps/shared/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPoint.tsx
|
|
4195
4190
|
import { FiberManualRecordRounded } from "@mui/icons-material";
|
|
4196
4191
|
import { alpha as alpha8, Box as Box4, useTheme as useTheme11 } from "@mui/material";
|
|
4197
|
-
import
|
|
4192
|
+
import React45 from "react";
|
|
4198
4193
|
var TwoToneBulletPoint = /* @__PURE__ */ __name((props) => {
|
|
4199
4194
|
const theme = useTheme11();
|
|
4200
|
-
return /* @__PURE__ */
|
|
4195
|
+
return /* @__PURE__ */ React45.createElement(Box4, props, /* @__PURE__ */ React45.createElement(FiberManualRecordRounded, {
|
|
4201
4196
|
fontSize: "small",
|
|
4202
4197
|
sx: {
|
|
4203
4198
|
"&:hover": {
|
|
@@ -4213,20 +4208,20 @@ var TwoToneBulletPoint = /* @__PURE__ */ __name((props) => {
|
|
|
4213
4208
|
|
|
4214
4209
|
// src/dapps/shared/accounts/components/AnimatedComponents/IconAnimations/TwoToneBulletPointList.tsx
|
|
4215
4210
|
import { FlexCol as FlexCol17, FlexGrowRow as FlexGrowRow9 } from "@xylabs/react-flexbox";
|
|
4216
|
-
import
|
|
4211
|
+
import React46 from "react";
|
|
4217
4212
|
var TwoToneBulletPointList = /* @__PURE__ */ __name(({ list }) => {
|
|
4218
|
-
return /* @__PURE__ */
|
|
4213
|
+
return /* @__PURE__ */ React46.createElement(FlexCol17, {
|
|
4219
4214
|
alignItems: "flex-start",
|
|
4220
4215
|
gap: 1
|
|
4221
4216
|
}, list.map((item, index) => {
|
|
4222
4217
|
return (
|
|
4223
4218
|
// eslint-disable-next-line @eslint-react/no-array-index-key
|
|
4224
|
-
/* @__PURE__ */
|
|
4219
|
+
/* @__PURE__ */ React46.createElement(FlexGrowRow9, {
|
|
4225
4220
|
key: index + "bulletPointList",
|
|
4226
4221
|
alignItems: "flex-start",
|
|
4227
4222
|
justifyContent: "flex-start",
|
|
4228
4223
|
gap: 1
|
|
4229
|
-
}, /* @__PURE__ */
|
|
4224
|
+
}, /* @__PURE__ */ React46.createElement(TwoToneBulletPoint, {
|
|
4230
4225
|
marginTop: "4px"
|
|
4231
4226
|
}), item)
|
|
4232
4227
|
);
|
|
@@ -4236,7 +4231,7 @@ var TwoToneBulletPointList = /* @__PURE__ */ __name(({ list }) => {
|
|
|
4236
4231
|
// src/dapps/shared/accounts/components/InputFields/CoinbaseEmail.tsx
|
|
4237
4232
|
import { FormControl, TextField } from "@mui/material";
|
|
4238
4233
|
import { LabeledTextFieldWrapper } from "@xyo-network/react-shared";
|
|
4239
|
-
import
|
|
4234
|
+
import React47, { useState as useState20 } from "react";
|
|
4240
4235
|
var CoinbaseEmailInput = /* @__PURE__ */ __name(({ existingEmail, ...props }) => {
|
|
4241
4236
|
const [email, setEmail] = useState20(existingEmail);
|
|
4242
4237
|
const [valid, setValid] = useState20();
|
|
@@ -4248,11 +4243,11 @@ var CoinbaseEmailInput = /* @__PURE__ */ __name(({ existingEmail, ...props }) =>
|
|
|
4248
4243
|
setValid(!!emailFromEvent);
|
|
4249
4244
|
setEmail(emailFromEvent);
|
|
4250
4245
|
}, "handleChange");
|
|
4251
|
-
return /* @__PURE__ */
|
|
4246
|
+
return /* @__PURE__ */ React47.createElement(FormControl, {
|
|
4252
4247
|
fullWidth: true
|
|
4253
|
-
}, /* @__PURE__ */
|
|
4248
|
+
}, /* @__PURE__ */ React47.createElement(LabeledTextFieldWrapper, {
|
|
4254
4249
|
label: "Primary Cryptowallet"
|
|
4255
|
-
}, /* @__PURE__ */
|
|
4250
|
+
}, /* @__PURE__ */ React47.createElement(TextField, {
|
|
4256
4251
|
fullWidth: true,
|
|
4257
4252
|
variant: "filled",
|
|
4258
4253
|
error: valid === false,
|
|
@@ -4268,7 +4263,7 @@ var CoinbaseEmailInput = /* @__PURE__ */ __name(({ existingEmail, ...props }) =>
|
|
|
4268
4263
|
// src/dapps/shared/accounts/components/InputFields/PrimaryCryptowallet.tsx
|
|
4269
4264
|
import { FormControl as FormControl2, TextField as TextField2 } from "@mui/material";
|
|
4270
4265
|
import { LabeledTextFieldWrapper as LabeledTextFieldWrapper2 } from "@xyo-network/react-shared";
|
|
4271
|
-
import
|
|
4266
|
+
import React48, { useState as useState21 } from "react";
|
|
4272
4267
|
var PrimaryCryptoWalletInput = /* @__PURE__ */ __name(({ existingPrimaryCryptoWallet, ...props }) => {
|
|
4273
4268
|
const [primaryWallet, setPrimaryWallet] = useState21(existingPrimaryCryptoWallet);
|
|
4274
4269
|
const [valid, setValid] = useState21();
|
|
@@ -4280,11 +4275,11 @@ var PrimaryCryptoWalletInput = /* @__PURE__ */ __name(({ existingPrimaryCryptoWa
|
|
|
4280
4275
|
setValid(!!nameFromEvent);
|
|
4281
4276
|
setPrimaryWallet(nameFromEvent);
|
|
4282
4277
|
}, "handleChange");
|
|
4283
|
-
return /* @__PURE__ */
|
|
4278
|
+
return /* @__PURE__ */ React48.createElement(FormControl2, {
|
|
4284
4279
|
fullWidth: true
|
|
4285
|
-
}, /* @__PURE__ */
|
|
4280
|
+
}, /* @__PURE__ */ React48.createElement(LabeledTextFieldWrapper2, {
|
|
4286
4281
|
label: "Primary Cryptowallet"
|
|
4287
|
-
}, /* @__PURE__ */
|
|
4282
|
+
}, /* @__PURE__ */ React48.createElement(TextField2, {
|
|
4288
4283
|
fullWidth: true,
|
|
4289
4284
|
variant: "filled",
|
|
4290
4285
|
error: valid === false,
|
|
@@ -4301,7 +4296,7 @@ var PrimaryCryptoWalletInput = /* @__PURE__ */ __name(({ existingPrimaryCryptoWa
|
|
|
4301
4296
|
// src/dapps/shared/accounts/components/InputFields/SecondaryCryptowallet.tsx
|
|
4302
4297
|
import { FormControl as FormControl3, TextField as TextField3 } from "@mui/material";
|
|
4303
4298
|
import { LabeledTextFieldWrapper as LabeledTextFieldWrapper3 } from "@xyo-network/react-shared";
|
|
4304
|
-
import
|
|
4299
|
+
import React49, { useState as useState22 } from "react";
|
|
4305
4300
|
var SecondaryCryptoWalletInput = /* @__PURE__ */ __name(({ existingSecondaryCryptoWallet, ...props }) => {
|
|
4306
4301
|
const [secondaryWallet, setSecondaryWallet] = useState22(existingSecondaryCryptoWallet);
|
|
4307
4302
|
const [valid, setValid] = useState22();
|
|
@@ -4313,11 +4308,11 @@ var SecondaryCryptoWalletInput = /* @__PURE__ */ __name(({ existingSecondaryCryp
|
|
|
4313
4308
|
setValid(!!walletFromEvent);
|
|
4314
4309
|
setSecondaryWallet(walletFromEvent);
|
|
4315
4310
|
}, "handleChange");
|
|
4316
|
-
return /* @__PURE__ */
|
|
4311
|
+
return /* @__PURE__ */ React49.createElement(FormControl3, {
|
|
4317
4312
|
fullWidth: true
|
|
4318
|
-
}, /* @__PURE__ */
|
|
4313
|
+
}, /* @__PURE__ */ React49.createElement(LabeledTextFieldWrapper3, {
|
|
4319
4314
|
label: "Secondary Cryptowallet"
|
|
4320
|
-
}, /* @__PURE__ */
|
|
4315
|
+
}, /* @__PURE__ */ React49.createElement(TextField3, {
|
|
4321
4316
|
variant: "filled",
|
|
4322
4317
|
fullWidth: true,
|
|
4323
4318
|
error: valid === false,
|
|
@@ -4334,25 +4329,25 @@ var SecondaryCryptoWalletInput = /* @__PURE__ */ __name(({ existingSecondaryCryp
|
|
|
4334
4329
|
// src/dapps/shared/accounts/components/PaymentMethods.tsx
|
|
4335
4330
|
import { Grid2 } from "@mui/material";
|
|
4336
4331
|
import { FormGroupCreditCardProvider } from "@xyo-network/react-form-credit-card";
|
|
4337
|
-
import
|
|
4332
|
+
import React51 from "react";
|
|
4338
4333
|
|
|
4339
4334
|
// src/dapps/shared/accounts/components/AccountCard.tsx
|
|
4340
4335
|
import { Card as Card4, CardContent as CardContent4, Divider as Divider5, Typography as Typography14 } from "@mui/material";
|
|
4341
4336
|
import { FlexGrowCol as FlexGrowCol4, FlexGrowRow as FlexGrowRow10 } from "@xylabs/react-flexbox";
|
|
4342
|
-
import
|
|
4337
|
+
import React50 from "react";
|
|
4343
4338
|
var AccountCard = /* @__PURE__ */ __name(({ items, ...props }) => {
|
|
4344
|
-
return /* @__PURE__ */
|
|
4339
|
+
return /* @__PURE__ */ React50.createElement(Card4, props, /* @__PURE__ */ React50.createElement(CardContent4, null, /* @__PURE__ */ React50.createElement(FlexGrowCol4, {
|
|
4345
4340
|
width: "100%",
|
|
4346
4341
|
gap: 2
|
|
4347
4342
|
}, items.map((item, index) => {
|
|
4348
4343
|
return (
|
|
4349
4344
|
// eslint-disable-next-line @eslint-react/no-array-index-key
|
|
4350
|
-
/* @__PURE__ */
|
|
4345
|
+
/* @__PURE__ */ React50.createElement(FlexGrowCol4, {
|
|
4351
4346
|
gap: 2,
|
|
4352
4347
|
key: index,
|
|
4353
4348
|
width: "100%",
|
|
4354
4349
|
alignItems: "stretch"
|
|
4355
|
-
}, /* @__PURE__ */
|
|
4350
|
+
}, /* @__PURE__ */ React50.createElement(FlexGrowRow10, {
|
|
4356
4351
|
sx: {
|
|
4357
4352
|
alignItems: "stretch",
|
|
4358
4353
|
flexDirection: {
|
|
@@ -4362,7 +4357,7 @@ var AccountCard = /* @__PURE__ */ __name(({ items, ...props }) => {
|
|
|
4362
4357
|
justifyContent: "space-between"
|
|
4363
4358
|
},
|
|
4364
4359
|
gap: 2
|
|
4365
|
-
}, /* @__PURE__ */
|
|
4360
|
+
}, /* @__PURE__ */ React50.createElement(FlexGrowCol4, {
|
|
4366
4361
|
alignItems: "flex-start",
|
|
4367
4362
|
width: "100%",
|
|
4368
4363
|
sx: {
|
|
@@ -4371,13 +4366,13 @@ var AccountCard = /* @__PURE__ */ __name(({ items, ...props }) => {
|
|
|
4371
4366
|
xs: "100%"
|
|
4372
4367
|
}
|
|
4373
4368
|
}
|
|
4374
|
-
}, /* @__PURE__ */
|
|
4369
|
+
}, /* @__PURE__ */ React50.createElement(Typography14, {
|
|
4375
4370
|
variant: "h5",
|
|
4376
4371
|
gutterBottom: true
|
|
4377
|
-
}, item.title), /* @__PURE__ */
|
|
4372
|
+
}, item.title), /* @__PURE__ */ React50.createElement(Typography14, {
|
|
4378
4373
|
variant: "body1",
|
|
4379
4374
|
gutterBottom: true
|
|
4380
|
-
}, item.desc)), item?.component), items.length === 1 || index === items.length - 1 ? null : /* @__PURE__ */
|
|
4375
|
+
}, item.desc)), item?.component), items.length === 1 || index === items.length - 1 ? null : /* @__PURE__ */ React50.createElement(Divider5, {
|
|
4381
4376
|
flexItem: true
|
|
4382
4377
|
}))
|
|
4383
4378
|
);
|
|
@@ -4386,38 +4381,38 @@ var AccountCard = /* @__PURE__ */ __name(({ items, ...props }) => {
|
|
|
4386
4381
|
|
|
4387
4382
|
// src/dapps/shared/accounts/components/PaymentMethods.tsx
|
|
4388
4383
|
var PaymentMethods = /* @__PURE__ */ __name(() => {
|
|
4389
|
-
return /* @__PURE__ */
|
|
4384
|
+
return /* @__PURE__ */ React51.createElement(DappPage, {
|
|
4390
4385
|
title: "Payment Methods"
|
|
4391
|
-
}, /* @__PURE__ */
|
|
4386
|
+
}, /* @__PURE__ */ React51.createElement(Grid2, {
|
|
4392
4387
|
container: true,
|
|
4393
4388
|
spacing: 3
|
|
4394
|
-
}, /* @__PURE__ */
|
|
4389
|
+
}, /* @__PURE__ */ React51.createElement(Grid2, {
|
|
4395
4390
|
size: {
|
|
4396
4391
|
xs: 12
|
|
4397
4392
|
}
|
|
4398
|
-
}, /* @__PURE__ */
|
|
4393
|
+
}, /* @__PURE__ */ React51.createElement(AccountCard, {
|
|
4399
4394
|
sx: {
|
|
4400
4395
|
height: "100%"
|
|
4401
4396
|
},
|
|
4402
4397
|
items: [
|
|
4403
4398
|
{
|
|
4404
4399
|
// TODO - needs a default implementation
|
|
4405
|
-
component: /* @__PURE__ */
|
|
4400
|
+
component: /* @__PURE__ */ React51.createElement(FormGroupCreditCardProvider, null, /* @__PURE__ */ React51.createElement(React51.Fragment, null)),
|
|
4406
4401
|
desc: "Save a credit card to your node to complete credit payments seamlessly.",
|
|
4407
4402
|
title: "Credit Card"
|
|
4408
4403
|
},
|
|
4409
4404
|
{
|
|
4410
|
-
component: /* @__PURE__ */
|
|
4405
|
+
component: /* @__PURE__ */ React51.createElement(CoinbaseEmailInput, null),
|
|
4411
4406
|
desc: "Use your Coinbase Account receive payments easily.",
|
|
4412
4407
|
title: "Coinbase Email"
|
|
4413
4408
|
},
|
|
4414
4409
|
{
|
|
4415
|
-
component: /* @__PURE__ */
|
|
4410
|
+
component: /* @__PURE__ */ React51.createElement(PrimaryCryptoWalletInput, null),
|
|
4416
4411
|
desc: "This is the primary crypto wallet on your node.",
|
|
4417
4412
|
title: "Primary Crypto Wallet"
|
|
4418
4413
|
},
|
|
4419
4414
|
{
|
|
4420
|
-
component: /* @__PURE__ */
|
|
4415
|
+
component: /* @__PURE__ */ React51.createElement(SecondaryCryptoWalletInput, null),
|
|
4421
4416
|
desc: "This is the secondary crypto wallet on your node.",
|
|
4422
4417
|
title: "Secondary Crypto Wallet"
|
|
4423
4418
|
}
|
|
@@ -4432,18 +4427,18 @@ var isCreditCardInput = isPayloadOfSchemaType(CreditCardInputSchema);
|
|
|
4432
4427
|
|
|
4433
4428
|
// src/dapps/shared/name-service/DomainIcon.tsx
|
|
4434
4429
|
import { createSvgIcon } from "@mui/material";
|
|
4435
|
-
import
|
|
4436
|
-
var XnsDomainIcon = createSvgIcon(/* @__PURE__ */
|
|
4430
|
+
import React52 from "react";
|
|
4431
|
+
var XnsDomainIcon = createSvgIcon(/* @__PURE__ */ React52.createElement("svg", {
|
|
4437
4432
|
id: "Layer_1",
|
|
4438
4433
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4439
4434
|
viewBox: "0 0 400 400"
|
|
4440
|
-
}, /* @__PURE__ */
|
|
4435
|
+
}, /* @__PURE__ */ React52.createElement("path", {
|
|
4441
4436
|
fill: "currentColor",
|
|
4442
4437
|
d: "M0,314.34V85.34h43.89l99.55,152.67V85.34h43.89v229h-43.89L43.89,161.68v152.67H0Z"
|
|
4443
|
-
}), /* @__PURE__ */
|
|
4438
|
+
}), /* @__PURE__ */ React52.createElement("path", {
|
|
4444
4439
|
fill: "currentColor",
|
|
4445
4440
|
d: "M298.99,319.12c-16.96,0-32.26-3-45.88-8.99-13.62-5.99-24.81-14.58-33.56-25.76-8.75-11.18-14.29-24.52-16.62-40l45.17-6.68c3.18,13.15,9.75,23.27,19.72,30.37,9.96,7.1,21.31,10.65,34.03,10.65,7.1,0,14-1.11,20.67-3.34,6.68-2.23,12.17-5.51,16.46-9.86,4.29-4.35,6.44-9.7,6.44-16.06,0-2.33-.35-4.59-1.03-6.76-.69-2.17-1.83-4.21-3.42-6.12-1.59-1.91-3.84-3.71-6.76-5.41-2.92-1.69-6.6-3.23-11.05-4.61l-59.48-17.49c-4.45-1.27-9.62-3.07-15.5-5.41-5.88-2.33-11.58-5.67-17.1-10.02-5.51-4.35-10.1-10.1-13.76-17.26-3.66-7.16-5.49-16.19-5.49-27.11,0-15.37,3.87-28.15,11.61-38.33,7.74-10.18,18.08-17.76,31.01-22.74,12.93-4.98,27.25-7.42,42.94-7.32,15.8.21,29.9,2.92,42.3,8.11,12.4,5.2,22.79,12.75,31.17,22.66,8.37,9.92,14.42,22.03,18.13,36.34l-46.76,7.95c-1.7-7.42-4.83-13.68-9.38-18.77-4.56-5.09-9.99-8.96-16.3-11.61-6.31-2.65-12.91-4.08-19.8-4.29-6.79-.21-13.17.72-19.16,2.78-5.99,2.07-10.87,5.06-14.63,8.99-3.76,3.92-5.65,8.59-5.65,14,0,4.98,1.54,9.04,4.61,12.17,3.07,3.13,6.94,5.65,11.61,7.55,4.66,1.91,9.44,3.5,14.31,4.77l39.76,10.81c5.94,1.59,12.51,3.68,19.72,6.28,7.21,2.6,14.13,6.2,20.75,10.81,6.62,4.61,12.09,10.68,16.38,18.21,4.29,7.53,6.44,17.07,6.44,28.63,0,12.3-2.57,23.03-7.71,32.2-5.14,9.17-12.06,16.75-20.75,22.74-8.69,5.99-18.53,10.47-29.5,13.44-10.97,2.97-22.29,4.45-33.95,4.45Z"
|
|
4446
|
-
}), /* @__PURE__ */
|
|
4441
|
+
}), /* @__PURE__ */ React52.createElement("circle", {
|
|
4447
4442
|
fill: "#3898e7",
|
|
4448
4443
|
cx: "372.52",
|
|
4449
4444
|
cy: "291.63",
|
|
@@ -4453,7 +4448,7 @@ var XnsDomainIcon = createSvgIcon(/* @__PURE__ */ React53.createElement("svg", {
|
|
|
4453
4448
|
// src/dapps/shared/table/head/components/Head.tsx
|
|
4454
4449
|
import { InfoOutlined } from "@mui/icons-material";
|
|
4455
4450
|
import { TableCell, TableHead, Tooltip as Tooltip6 } from "@mui/material";
|
|
4456
|
-
import
|
|
4451
|
+
import React53 from "react";
|
|
4457
4452
|
|
|
4458
4453
|
// src/dapps/shared/table/head/hooks/useVisibleColumns.tsx
|
|
4459
4454
|
import { useMediaQuery as useMediaQuery2 } from "@mui/material";
|
|
@@ -4485,20 +4480,20 @@ var StyledTableRowHeader = styled9(TableRow2, {
|
|
|
4485
4480
|
// src/dapps/shared/table/head/components/Head.tsx
|
|
4486
4481
|
var TableHeadEx = /* @__PURE__ */ __name(({ payloads, ...props }) => {
|
|
4487
4482
|
const [VisibleTableCells] = useVisibleColumns(payloads);
|
|
4488
|
-
return /* @__PURE__ */
|
|
4483
|
+
return /* @__PURE__ */ React53.createElement(TableHead, props, /* @__PURE__ */ React53.createElement(StyledTableRowHeader, null, VisibleTableCells.map((headCell) => /* @__PURE__ */ React53.createElement(TableCell, {
|
|
4489
4484
|
key: headCell.id,
|
|
4490
4485
|
align: headCell.align ?? "left",
|
|
4491
4486
|
padding: headCell.disablePadding ? "none" : "normal",
|
|
4492
4487
|
width: headCell.width ?? "auto"
|
|
4493
|
-
}, headCell.tooltip ? /* @__PURE__ */
|
|
4488
|
+
}, headCell.tooltip ? /* @__PURE__ */ React53.createElement("span", {
|
|
4494
4489
|
style: {
|
|
4495
4490
|
alignItems: "center",
|
|
4496
4491
|
display: "inline-flex",
|
|
4497
4492
|
gap: "4px"
|
|
4498
4493
|
}
|
|
4499
|
-
}, headCell.label, /* @__PURE__ */
|
|
4494
|
+
}, headCell.label, /* @__PURE__ */ React53.createElement(Tooltip6, {
|
|
4500
4495
|
title: headCell.tooltip
|
|
4501
|
-
}, /* @__PURE__ */
|
|
4496
|
+
}, /* @__PURE__ */ React53.createElement(InfoOutlined, {
|
|
4502
4497
|
sx: {
|
|
4503
4498
|
fontSize: "16px"
|
|
4504
4499
|
}
|
|
@@ -4518,28 +4513,28 @@ var isTableHeadCell = isPayloadOfSchemaType2(TableHeadCellSchema);
|
|
|
4518
4513
|
import { ArrowCircleLeftOutlined, ArrowCircleRightOutlined } from "@mui/icons-material";
|
|
4519
4514
|
import { IconButton as IconButton4, LinearProgress as LinearProgress2 } from "@mui/material";
|
|
4520
4515
|
import { FlexRow as FlexRow10 } from "@xylabs/react-flexbox";
|
|
4521
|
-
import
|
|
4516
|
+
import React54 from "react";
|
|
4522
4517
|
var NextIteratorFlexbox = /* @__PURE__ */ __name(({ next: changePage, loading, ...props }) => {
|
|
4523
|
-
return /* @__PURE__ */
|
|
4518
|
+
return /* @__PURE__ */ React54.createElement(FlexRow10, {
|
|
4524
4519
|
justifyContent: "space-between",
|
|
4525
4520
|
gap: 2,
|
|
4526
4521
|
...props
|
|
4527
|
-
}, /* @__PURE__ */
|
|
4522
|
+
}, /* @__PURE__ */ React54.createElement(LinearProgress2, {
|
|
4528
4523
|
sx: {
|
|
4529
4524
|
display: "flex",
|
|
4530
4525
|
flexGrow: 1,
|
|
4531
4526
|
visibility: loading ? "visible" : "hidden"
|
|
4532
4527
|
}
|
|
4533
|
-
}), /* @__PURE__ */
|
|
4528
|
+
}), /* @__PURE__ */ React54.createElement(FlexRow10, null, /* @__PURE__ */ React54.createElement(IconButton4, {
|
|
4534
4529
|
onClick: /* @__PURE__ */ __name(() => changePage("asc"), "onClick")
|
|
4535
|
-
}, /* @__PURE__ */
|
|
4530
|
+
}, /* @__PURE__ */ React54.createElement(ArrowCircleLeftOutlined, null)), /* @__PURE__ */ React54.createElement(IconButton4, {
|
|
4536
4531
|
onClick: /* @__PURE__ */ __name(() => changePage("desc"), "onClick")
|
|
4537
|
-
}, /* @__PURE__ */
|
|
4532
|
+
}, /* @__PURE__ */ React54.createElement(ArrowCircleRightOutlined, null))));
|
|
4538
4533
|
}, "NextIteratorFlexbox");
|
|
4539
4534
|
|
|
4540
4535
|
// src/settings/Theme/ThemeProvider.tsx
|
|
4541
4536
|
import { InvertibleMuiThemeProvider } from "@xylabs/react-invertible-theme";
|
|
4542
|
-
import
|
|
4537
|
+
import React55, { useMemo as useMemo20 } from "react";
|
|
4543
4538
|
|
|
4544
4539
|
// src/settings/Theme/ThemeCssVars.ts
|
|
4545
4540
|
import { alpha as alpha9, createTheme, darken as darken2, lighten } from "@mui/material";
|
|
@@ -4843,7 +4838,7 @@ var AppOsThemeProvider = /* @__PURE__ */ __name(({ children }) => {
|
|
|
4843
4838
|
if (savedValue && validValues.includes(savedValue)) return savedValue;
|
|
4844
4839
|
return "system";
|
|
4845
4840
|
}, []);
|
|
4846
|
-
return /* @__PURE__ */
|
|
4841
|
+
return /* @__PURE__ */ React55.createElement(InvertibleMuiThemeProvider, {
|
|
4847
4842
|
theme: ThemeCssVars,
|
|
4848
4843
|
defaultMode: initialValue
|
|
4849
4844
|
}, children);
|