@rango-dev/widget-embedded 0.60.2-next.0 → 0.60.2-next.1

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.
Files changed (44) hide show
  1. package/dist/components/WalletStatefulConnect/DerivationPath.helpers.d.ts +1 -1
  2. package/dist/components/WalletStatefulConnect/DerivationPath.helpers.d.ts.map +1 -1
  3. package/dist/components/WalletStatefulConnect/Detached.types.d.ts +1 -1
  4. package/dist/components/WalletStatefulConnect/Detached.types.d.ts.map +1 -1
  5. package/dist/components/WalletStatefulConnect/Namespaces.types.d.ts +2 -2
  6. package/dist/components/WalletStatefulConnect/Namespaces.types.d.ts.map +1 -1
  7. package/dist/hooks/useStatefulConnect/useStatefulConnect.d.ts +1 -1
  8. package/dist/hooks/useStatefulConnect/useStatefulConnect.d.ts.map +1 -1
  9. package/dist/hooks/useStatefulConnect/useStatefulConnect.state.d.ts +1 -1
  10. package/dist/hooks/useStatefulConnect/useStatefulConnect.state.d.ts.map +1 -1
  11. package/dist/hooks/useStatefulConnect/useStatefulConnect.types.d.ts +1 -1
  12. package/dist/hooks/useStatefulConnect/useStatefulConnect.types.d.ts.map +1 -1
  13. package/dist/hooks/useWalletProviders/useWalletProviders.d.ts +1 -1
  14. package/dist/hooks/useWalletProviders/useWalletProviders.helpers.d.ts +1 -1
  15. package/dist/hooks/useWalletProviders/useWalletProviders.helpers.d.ts.map +1 -1
  16. package/dist/index.js +2 -2
  17. package/dist/index.js.map +3 -3
  18. package/dist/store/slices/config.d.ts +1 -1
  19. package/dist/store/slices/config.d.ts.map +1 -1
  20. package/dist/store/slices/wallets.d.ts +1 -1
  21. package/dist/store/slices/wallets.d.ts.map +1 -1
  22. package/dist/store/utils/wallets.d.ts +1 -1
  23. package/dist/store/utils/wallets.d.ts.map +1 -1
  24. package/dist/types/config.d.ts +1 -1
  25. package/dist/types/config.d.ts.map +1 -1
  26. package/dist/utils/providers.d.ts +2 -1
  27. package/dist/utils/providers.d.ts.map +1 -1
  28. package/dist/widget-embedded.build.json +1 -1
  29. package/package.json +9 -6
  30. package/src/components/StatefulConnectModal/StatefulConnectModal.tsx +1 -1
  31. package/src/components/WalletStatefulConnect/DerivationPath.helpers.ts +1 -1
  32. package/src/components/WalletStatefulConnect/Detached.tsx +1 -1
  33. package/src/components/WalletStatefulConnect/Detached.types.ts +1 -1
  34. package/src/components/WalletStatefulConnect/Namespaces.tsx +1 -1
  35. package/src/components/WalletStatefulConnect/Namespaces.types.tsx +2 -2
  36. package/src/hooks/useStatefulConnect/useStatefulConnect.state.ts +1 -1
  37. package/src/hooks/useStatefulConnect/useStatefulConnect.ts +1 -1
  38. package/src/hooks/useStatefulConnect/useStatefulConnect.types.ts +1 -1
  39. package/src/hooks/useWalletProviders/useWalletProviders.helpers.ts +1 -1
  40. package/src/store/slices/config.ts +1 -1
  41. package/src/store/slices/wallets.ts +1 -1
  42. package/src/store/utils/wallets.ts +1 -1
  43. package/src/types/config.ts +1 -1
  44. package/src/utils/providers.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.60.2-next.0",
3
+ "version": "0.60.2-next.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -22,18 +22,21 @@
22
22
  "test:coverage": "vitest run --coverage"
23
23
  },
24
24
  "dependencies": {
25
+ "@hub3js/core": "^0.60.1",
26
+ "@hub3js/namespaces": "^0.1.1",
27
+ "@hub3js/std": "^0.1.1",
25
28
  "@lingui/core": "4.2.1",
26
29
  "@lingui/react": "4.2.1",
27
30
  "@rango-dev/logging-core": "^0.12.1",
28
- "@rango-dev/provider-all": "^0.62.2-next.0",
31
+ "@rango-dev/provider-all": "^0.62.2-next.1",
29
32
  "@rango-dev/queue-manager-core": "^0.33.0",
30
- "@rango-dev/queue-manager-rango-preset": "^0.62.1-next.0",
33
+ "@rango-dev/queue-manager-rango-preset": "^0.62.1-next.1",
31
34
  "@rango-dev/queue-manager-react": "^0.33.0",
32
35
  "@rango-dev/signer-solana": "^0.48.0",
33
- "@rango-dev/ui": "^0.63.1-next.0",
36
+ "@rango-dev/ui": "^0.63.1-next.1",
34
37
  "@rango-dev/wallets-core": "^0.59.1-next.0",
35
- "@rango-dev/wallets-react": "^0.46.1-next.0",
36
- "@rango-dev/wallets-shared": "^0.60.1-next.0",
38
+ "@rango-dev/wallets-react": "^0.46.1-next.1",
39
+ "@rango-dev/wallets-shared": "^0.60.1-next.1",
37
40
  "bignumber.js": "^9.1.1",
38
41
  "copy-to-clipboard": "^3.3.3",
39
42
  "crypto-browserify": "^3.12.1",
@@ -1,6 +1,6 @@
1
1
  import type { Result } from '../../hooks/useStatefulConnect';
2
2
  import type { WalletInfoWithExtra } from '../../types';
3
- import type { Namespace } from '@rango-dev/wallets-core/namespaces/common';
3
+ import type { Namespace } from '@hub3js/namespaces';
4
4
 
5
5
  import { Divider } from '@rango-dev/ui';
6
6
  import React, { useEffect, useRef, useState } from 'react';
@@ -1,4 +1,4 @@
1
- import type { Namespace } from '@rango-dev/wallets-core/namespaces/common';
1
+ import type { Namespace } from '@hub3js/namespaces';
2
2
  import type { DerivationPath } from '@rango-dev/wallets-shared';
3
3
 
4
4
  import { namespaces } from '@rango-dev/wallets-shared';
@@ -1,6 +1,6 @@
1
1
  import type { PropTypes } from './Detached.types';
2
+ import type { Namespace } from '@hub3js/namespaces';
2
3
  import type { LegacyNamespaceMeta } from '@rango-dev/wallets-core/legacy';
3
- import type { Namespace } from '@rango-dev/wallets-core/namespaces/common';
4
4
 
5
5
  import { i18n } from '@lingui/core';
6
6
  import {
@@ -1,5 +1,5 @@
1
1
  import type { NeedsNamespacesState } from '../../hooks/useStatefulConnect';
2
- import type { Namespace } from '@rango-dev/wallets-core/namespaces/common';
2
+ import type { Namespace } from '@hub3js/namespaces';
3
3
 
4
4
  export interface PropTypes {
5
5
  value: NeedsNamespacesState;
@@ -1,5 +1,5 @@
1
1
  import type { PropTypes } from './Namespaces.types';
2
- import type { Namespace } from '@rango-dev/wallets-core/namespaces/common';
2
+ import type { Namespace } from '@hub3js/namespaces';
3
3
 
4
4
  import { i18n } from '@lingui/core';
5
5
  import {
@@ -1,7 +1,7 @@
1
1
  import type { NeedsNamespacesState } from '../../hooks/useStatefulConnect';
2
+ import type { NamespaceData } from '@hub3js/core/store';
3
+ import type { Namespace } from '@hub3js/namespaces';
2
4
  import type { LegacyNamespaceMeta } from '@rango-dev/wallets-core/legacy';
3
- import type { Namespace } from '@rango-dev/wallets-core/namespaces/common';
4
- import type { NamespaceData } from '@rango-dev/wallets-core/store';
5
5
 
6
6
  export interface PropTypes {
7
7
  onConfirm: (namespaces: Namespace[]) => void;
@@ -3,7 +3,7 @@ import type {
3
3
  NeedsDerivationPathState,
4
4
  NeedsNamespacesState,
5
5
  } from './useStatefulConnect.types';
6
- import type { Namespace } from '@rango-dev/wallets-core/namespaces/common';
6
+ import type { Namespace } from '@hub3js/namespaces';
7
7
 
8
8
  export interface State {
9
9
  status: 'init' | 'namespace' | 'derivationPath' | 'detached';
@@ -1,6 +1,6 @@
1
1
  import type { HandleConnectOptions, Result } from './useStatefulConnect.types';
2
2
  import type { WalletInfoWithExtra } from '../../types';
3
- import type { Namespace } from '@rango-dev/wallets-core/namespaces/common';
3
+ import type { Namespace } from '@hub3js/namespaces';
4
4
  import type { NamespaceData } from '@rango-dev/wallets-shared';
5
5
 
6
6
  import { WalletState } from '@rango-dev/ui';
@@ -1,5 +1,5 @@
1
1
  import type { ExtendedModalWalletInfo } from '../../utils/wallets';
2
- import type { Namespace } from '@rango-dev/wallets-core/namespaces/common';
2
+ import type { Namespace } from '@hub3js/namespaces';
3
3
 
4
4
  export interface HandleConnectOptions {
5
5
  // To have a switch between connect and disconnect when user is clicking on a button, this option can be helpful.
@@ -1,6 +1,6 @@
1
1
  import type { ProviderInterface } from '@rango-dev/wallets-react';
2
2
 
3
- import { Provider } from '@rango-dev/wallets-core';
3
+ import { Provider } from '@hub3js/core';
4
4
 
5
5
  export function hashProviders(
6
6
  providers: (string | ProviderInterface | Provider)[]
@@ -2,9 +2,9 @@ import type { DataSlice } from './data';
2
2
  import type { SettingsSlice } from './settings';
3
3
  import type { WidgetConfig } from '../../types';
4
4
  import type { StateCreatorWithInitialData } from '../app';
5
+ import type { VersionedProviders } from '@hub3js/core/utils';
5
6
 
6
7
  import { allProviders as getAllProviders } from '@rango-dev/provider-all';
7
- import { type VersionedProviders } from '@rango-dev/wallets-core';
8
8
 
9
9
  import { cacheService } from '../../services/cacheService';
10
10
  import {
@@ -1,5 +1,5 @@
1
1
  import type { AppStoreState } from './types';
2
- import type { Namespace } from '@rango-dev/wallets-core/namespaces/common';
2
+ import type { Namespace } from '@hub3js/namespaces';
3
3
  import type { Asset, Token, WalletDetail } from 'rango-sdk';
4
4
 
5
5
  import BigNumber from 'bignumber.js';
@@ -8,7 +8,7 @@ import type {
8
8
  BalanceState,
9
9
  ConnectedWallet,
10
10
  } from '../slices/wallets';
11
- import type { Namespace } from '@rango-dev/wallets-core/namespaces/common';
11
+ import type { Namespace } from '@hub3js/namespaces';
12
12
  import type { Asset, WalletDetail } from 'rango-types';
13
13
 
14
14
  import BigNumber from 'bignumber.js';
@@ -1,5 +1,5 @@
1
+ import type { Provider } from '@hub3js/core';
1
2
  import type { Language, theme } from '@rango-dev/ui';
2
- import type { Provider } from '@rango-dev/wallets-core';
3
3
  import type { LegacyProviderInterface } from '@rango-dev/wallets-core/legacy';
4
4
  import type { WalletType } from '@rango-dev/wallets-shared';
5
5
  import type { Asset } from 'rango-sdk';
@@ -1,12 +1,12 @@
1
1
  import type { WidgetConfig } from '../types';
2
2
  import type { LegacyProviderInterface } from '@rango-dev/wallets-core/legacy';
3
3
 
4
+ import { Provider } from '@hub3js/core';
4
5
  import {
5
6
  defineVersions,
6
7
  pickVersion,
7
- Provider,
8
8
  type VersionedProviders,
9
- } from '@rango-dev/wallets-core';
9
+ } from '@hub3js/core/utils';
10
10
 
11
11
  export interface ProvidersOptions {
12
12
  walletConnectProjectId?: WidgetConfig['walletConnectProjectId'];