@rango-dev/widget-embedded 0.20.1-next.19 → 0.20.1-next.20
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/components/NotificationContent/NotificationContent.d.ts.map +1 -1
- package/dist/components/WidgetEvents.d.ts.map +1 -1
- package/dist/containers/WidgetInfo/WidgetInfo.d.ts.map +1 -1
- package/dist/containers/WidgetInfo/WidgetInfo.types.d.ts +4 -0
- package/dist/containers/WidgetInfo/WidgetInfo.types.d.ts.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +4 -4
- package/dist/types/notification.d.ts +1 -2
- package/dist/types/notification.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/NotificationContent/NotificationContent.tsx +10 -1
- package/src/components/WidgetEvents.tsx +2 -14
- package/src/containers/WidgetInfo/WidgetInfo.tsx +5 -0
- package/src/containers/WidgetInfo/WidgetInfo.types.ts +4 -0
- package/src/index.ts +2 -2
- package/src/types/notification.ts +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationContent.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationContent/NotificationContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NotificationContent.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationContent/NotificationContent.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,wBAAgB,mBAAmB,sBA+FlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetEvents.d.ts","sourceRoot":"","sources":["../../src/components/WidgetEvents.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WidgetEvents.d.ts","sourceRoot":"","sources":["../../src/components/WidgetEvents.tsx"],"names":[],"mappings":"AAcA,wBAAgB,YAAY,SAoD3B"}
|
|
@@ -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;AAWzD,eAAO,MAAM,iBAAiB,uDAElB,CAAC;AAEb,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,qBAyCxD;AAED,wBAAgB,SAAS,IAAI,0BAA0B,CAQtD"}
|
|
@@ -2,6 +2,7 @@ import type { WidgetHistory } from './WidgetInfo.helpers';
|
|
|
2
2
|
import type { FetchStatus } from '../../store/slices/data';
|
|
3
3
|
import type { ConnectedWallet } from '../../store/wallets';
|
|
4
4
|
import type { Wallet } from '../../types';
|
|
5
|
+
import type { Notification } from '../../types/notification';
|
|
5
6
|
import type { BlockchainMeta, SwapperMeta, Token } from 'rango-sdk';
|
|
6
7
|
export interface WidgetInfoContextInterface {
|
|
7
8
|
history: WidgetHistory;
|
|
@@ -18,5 +19,8 @@ export interface WidgetInfoContextInterface {
|
|
|
18
19
|
loadingStatus: FetchStatus;
|
|
19
20
|
};
|
|
20
21
|
resetLanguage: () => void;
|
|
22
|
+
notifications: {
|
|
23
|
+
list: Notification[];
|
|
24
|
+
};
|
|
21
25
|
}
|
|
22
26
|
//# sourceMappingURL=WidgetInfo.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetInfo.types.d.ts","sourceRoot":"","sources":["../../../src/containers/WidgetInfo/WidgetInfo.types.ts"],"names":[],"mappings":"AAAA,OAAO,KA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E,MAAM,WAAW,CAAC;AAEpE,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;IACF,IAAI,EAAE;QACJ,WAAW,EAAE,cAAc,EAAE,CAAC;QAC9B,MAAM,EAAE,KAAK,EAAE,CAAC;QAChB,QAAQ,EAAE,WAAW,EAAE,CAAC;QACxB,aAAa,EAAE,WAAW,CAAC;KAC5B,CAAC;IACF,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,EAAE;QACb,IAAI,EAAE,YAAY,EAAE,CAAC;KACtB,CAAC;CACH"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { WidgetProps } from './containers/Widget';
|
|
2
2
|
import type { ConnectedWallet } from './store/wallets';
|
|
3
3
|
import type { BlockchainAndTokenConfig, Tokens, WidgetColors, WidgetColorsKeys, WidgetConfig, WidgetTheme } from './types';
|
|
4
|
-
import type {
|
|
4
|
+
import type { 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
6
|
import type { WalletInfo, WalletState, WalletType } from '@rango-dev/wallets-shared';
|
|
7
7
|
import type { PendingSwap, PendingSwapStep } from 'rango-types';
|
|
8
|
-
import { MainEvents, RouteEventType, StepEventType, StepExecutionBlockedEventStatus, StepExecutionEventStatus, useEvents as useWidgetEvents } from '@rango-dev/queue-manager-rango-preset';
|
|
8
|
+
import { EventSeverity, MainEvents, RouteEventType, StepEventType, StepExecutionBlockedEventStatus, StepExecutionEventStatus, useEvents as useWidgetEvents } from '@rango-dev/queue-manager-rango-preset';
|
|
9
9
|
import { readAccountAddress, useWallets, Events as WalletEvents } from '@rango-dev/wallets-react';
|
|
10
10
|
import { Networks, WalletTypes } from '@rango-dev/wallets-shared';
|
|
11
11
|
import { PendingSwapNetworkStatus } from 'rango-types';
|
|
@@ -20,6 +20,6 @@ export { Widget,
|
|
|
20
20
|
* @deprecated Use `WidgetProvider` instead. This component will be removed in future versions.
|
|
21
21
|
*/
|
|
22
22
|
WidgetWallets, WidgetProvider, useWidget, useWallets, useWidgetEvents, customizedThemeTokens, MainEvents, RouteEventType, StepEventType, StepExecutionEventStatus, StepExecutionBlockedEventStatus, };
|
|
23
|
-
export type { WalletState, WalletInfo, PendingSwap, PendingSwapWithQueueID, PendingSwapStep, RouteExecutionEvents,
|
|
24
|
-
export { readAccountAddress, Networks, WalletEvents, WalletTypes, PendingSwapNetworkStatus, };
|
|
23
|
+
export type { WalletState, WalletInfo, PendingSwap, PendingSwapWithQueueID, PendingSwapStep, RouteExecutionEvents, };
|
|
24
|
+
export { readAccountAddress, Networks, WalletEvents, WalletTypes, PendingSwapNetworkStatus, EventSeverity, };
|
|
25
25
|
//# 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,MAAM,EACN,YAAY,EAC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