@rango-dev/widget-embedded 0.17.1-next.24 → 0.17.1-next.25
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/containers/WidgetInfo/WidgetInfo.d.ts.map +1 -1
- package/dist/containers/WidgetInfo/WidgetInfo.helpers.d.ts +12 -0
- package/dist/containers/WidgetInfo/WidgetInfo.helpers.d.ts.map +1 -0
- package/dist/containers/WidgetInfo/WidgetInfo.types.d.ts +2 -2
- package/dist/containers/WidgetInfo/WidgetInfo.types.d.ts.map +1 -1
- package/dist/index.d.ts +7 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/package.json +8 -8
- package/src/containers/WidgetInfo/WidgetInfo.helpers.ts +45 -0
- package/src/containers/WidgetInfo/WidgetInfo.tsx +4 -3
- package/src/containers/WidgetInfo/WidgetInfo.types.ts +2 -2
- package/src/index.ts +37 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetInfo.d.ts","sourceRoot":"","sources":["../../../src/containers/WidgetInfo/WidgetInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGrE,OAAO,KAAoC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"WidgetInfo.d.ts","sourceRoot":"","sources":["../../../src/containers/WidgetInfo/WidgetInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGrE,OAAO,KAAoC,MAAM,OAAO,CAAC;AAOzD,eAAO,MAAM,iBAAiB,uDAElB,CAAC;AAEb,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,qBAuBxD;AAED,wBAAgB,SAAS,IAAI,0BAA0B,CAQtD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Manager } from '@rango-dev/queue-manager-core';
|
|
2
|
+
import type { PendingSwap } from '@rango-dev/queue-manager-rango-preset';
|
|
3
|
+
export declare class WidgetHistory {
|
|
4
|
+
private manager;
|
|
5
|
+
constructor(manager: Manager | undefined);
|
|
6
|
+
getAllSwaps(): import("@rango-dev/queue-manager-rango-preset").PendingSwapWithQueueID[];
|
|
7
|
+
getCurrentStep(swap: PendingSwap): import("@rango-dev/queue-manager-rango-preset").PendingSwapStep | null;
|
|
8
|
+
getCurrentStepWallet(swap: PendingSwap): import("@rango-dev/queue-manager-rango-preset/dist/shared").WalletTypeAndAddress | null;
|
|
9
|
+
getCurrentStepNetwork(swap: PendingSwap): string | null;
|
|
10
|
+
private getCurrentStepInfo;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=WidgetInfo.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WidgetInfo.helpers.d.ts","sourceRoot":"","sources":["../../../src/containers/WidgetInfo/WidgetInfo.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAUzE,qBAAa,aAAa;IACxB,OAAO,CAAC,OAAO,CAAsB;gBAEzB,OAAO,EAAE,OAAO,GAAG,SAAS;IAIjC,WAAW;IAIX,cAAc,CAAC,IAAI,EAAE,WAAW;IAIhC,oBAAoB,CAAC,IAAI,EAAE,WAAW;IAItC,qBAAqB,CAAC,IAAI,EAAE,WAAW;IAI9C,OAAO,CAAC,kBAAkB;CAU3B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import type { WidgetHistory } from './WidgetInfo.helpers';
|
|
1
2
|
import type { ConnectedWallet } from '../../store/wallets';
|
|
2
3
|
import type { Wallet } from '../../types';
|
|
3
|
-
import type { PendingSwapWithQueueID } from '@rango-dev/queue-manager-rango-preset';
|
|
4
4
|
import type { Token } from 'rango-sdk';
|
|
5
5
|
export interface WidgetInfoContextInterface {
|
|
6
|
-
|
|
6
|
+
history: WidgetHistory;
|
|
7
7
|
wallets: {
|
|
8
8
|
details: ConnectedWallet[];
|
|
9
9
|
totalBalance: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetInfo.types.d.ts","sourceRoot":"","sources":["../../../src/containers/WidgetInfo/WidgetInfo.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"WidgetInfo.types.d.ts","sourceRoot":"","sources":["../../../src/containers/WidgetInfo/WidgetInfo.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,EAAE;QACP,OAAO,EAAE,eAAe,EAAE,CAAC;QAC3B,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,OAAO,CAAC;QACnB,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC;KACxD,CAAC;CACH"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { WidgetProps } from './containers/Widget';
|
|
2
2
|
import type { ConnectedWallet } from './store/wallets';
|
|
3
3
|
import type { BlockchainAndTokenConfig, WidgetColors, WidgetColorsKeys, WidgetConfig, WidgetTheme } from './types';
|
|
4
|
-
import type { Route, RouteEvent, RouteFailedEvent, RouteStartedEvent, RouteSucceededEvent, Step, StepApprovalTxSucceededEvent, StepCheckStatusEvent, StepEvent, StepFailedEvent, StepOutputRevealedEvent, StepStartedEvent, StepSucceededEvent, StepTxExecutionBlockedEvent, StepTxExecutionUpdatedEvent } from '@rango-dev/queue-manager-rango-preset';
|
|
4
|
+
import type { EventSeverity, PendingSwap, PendingSwapStep, PendingSwapWithQueueID, Route, RouteEvent, RouteExecutionEvents, RouteFailedEvent, RouteStartedEvent, RouteSucceededEvent, Step, StepApprovalTxSucceededEvent, StepCheckStatusEvent, StepEvent, StepFailedEvent, StepOutputRevealedEvent, StepStartedEvent, StepSucceededEvent, StepTxExecutionBlockedEvent, StepTxExecutionUpdatedEvent } from '@rango-dev/queue-manager-rango-preset';
|
|
5
5
|
import type { EventHandler as HandleWalletsUpdate, ProviderInterface } from '@rango-dev/wallets-react';
|
|
6
|
-
import type { WalletType } from '@rango-dev/wallets-shared';
|
|
7
|
-
import { MainEvents, RouteEventType, StepEventType, StepExecutionBlockedEventStatus, StepExecutionEventStatus, useEvents as useWidgetEvents } from '@rango-dev/queue-manager-rango-preset';
|
|
8
|
-
import { useWallets } from '@rango-dev/wallets-react';
|
|
6
|
+
import type { WalletInfo, WalletState, WalletType } from '@rango-dev/wallets-shared';
|
|
7
|
+
import { MainEvents, PendingSwapNetworkStatus, RouteEventType, StepEventType, StepExecutionBlockedEventStatus, StepExecutionEventStatus, useEvents as useWidgetEvents } from '@rango-dev/queue-manager-rango-preset';
|
|
8
|
+
import { readAccountAddress, useWallets, Events as WalletEvents } from '@rango-dev/wallets-react';
|
|
9
|
+
import { Networks, WalletTypes } from '@rango-dev/wallets-shared';
|
|
9
10
|
import { WidgetWallets } from './containers/Wallets';
|
|
10
11
|
import { Widget } from './containers/Widget';
|
|
11
12
|
import { useWidget } from './containers/WidgetInfo';
|
|
@@ -17,4 +18,6 @@ export { Widget,
|
|
|
17
18
|
* @deprecated Use `WidgetProvider` instead. This component will be removed in future versions.
|
|
18
19
|
*/
|
|
19
20
|
WidgetWallets, WidgetProvider, useWidget, useWallets, useWidgetEvents, customizedThemeTokens, MainEvents, RouteEventType, StepEventType, StepExecutionEventStatus, StepExecutionBlockedEventStatus, };
|
|
21
|
+
export type { WalletState, WalletInfo, PendingSwap, PendingSwapWithQueueID, PendingSwapStep, RouteExecutionEvents, EventSeverity, };
|
|
22
|
+
export { readAccountAddress, Networks, WalletEvents, WalletTypes, PendingSwapNetworkStatus, };
|
|
20
23
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EACV,wBAAwB,EACxB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACZ,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EACV,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,IAAI,EACJ,4BAA4B,EAC5B,oBAAoB,EACpB,SAAS,EACT,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EACV,YAAY,IAAI,mBAAmB,EACnC,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EACV,wBAAwB,EACxB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACZ,MAAM,SAAS,CAAC;AACjB,OAA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