@rango-dev/widget-embedded 0.39.1-next.15 → 0.39.1-next.17

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Wallets.d.ts","sourceRoot":"","sources":["../../../src/containers/Wallets/Wallets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,SAAS,EACT,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAS/C,OAAO,KAAoD,MAAM,OAAO,CAAC;AAUzE,eAAO,MAAM,aAAa,uCAOxB,CAAC;AAqMH,wBAAgB,aAAa,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAOhE"}
1
+ {"version":3,"file":"Wallets.d.ts","sourceRoot":"","sources":["../../../src/containers/Wallets/Wallets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,SAAS,EACT,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAoD,MAAM,OAAO,CAAC;AASzE,eAAO,MAAM,aAAa,uCAOxB,CAAC;AAsFH,wBAAgB,aAAa,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAOhE"}
@@ -0,0 +1,4 @@
1
+ import type { OnUpdateState } from './Wallets.types';
2
+ import type { LegacyEventHandler } from '@rango-dev/wallets-core/legacy';
3
+ export declare function propagateEvents(cb: OnUpdateState, eventParams: Parameters<LegacyEventHandler>): void;
4
+ //# sourceMappingURL=Wallets.helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Wallets.helpers.d.ts","sourceRoot":"","sources":["../../../src/containers/Wallets/Wallets.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AASzE,wBAAgB,eAAe,CAC7B,EAAE,EAAE,aAAa,EACjB,WAAW,EAAE,UAAU,CAAC,kBAAkB,CAAC,GAC1C,IAAI,CAYN"}
@@ -1,5 +1,5 @@
1
1
  import type { WidgetConfig } from '../../types';
2
- import type { LegacyEventHandler as EventHandler } from '@rango-dev/wallets-core/legacy';
2
+ import type { LegacyEventHandler as EventHandler, LegacyEvents } from '@rango-dev/wallets-core/legacy';
3
3
  export type OnWalletConnectionChange = (key: string) => void;
4
4
  export interface WidgetContextInterface {
5
5
  /**
@@ -15,8 +15,12 @@ export interface WidgetContextInterface {
15
15
  */
16
16
  onDisconnectWallet(handler: OnWalletConnectionChange): void;
17
17
  }
18
+ type EventHandlerParams = Parameters<EventHandler>;
19
+ type EventParam = Exclude<LegacyEvents, LegacyEvents.PROVIDER_DISCONNECTED>;
20
+ export type OnUpdateState = (type: EventHandlerParams[0], event: EventParam, value: EventHandlerParams[2], coreState: EventHandlerParams[3], info: EventHandlerParams[4]) => void;
18
21
  export interface PropTypes {
19
- onUpdateState?: EventHandler;
22
+ onUpdateState?: OnUpdateState;
20
23
  config: WidgetConfig;
21
24
  }
25
+ export {};
22
26
  //# sourceMappingURL=Wallets.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Wallets.types.d.ts","sourceRoot":"","sources":["../../../src/containers/Wallets/Wallets.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,kBAAkB,IAAI,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAEzF,MAAM,MAAM,wBAAwB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;AAC7D,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,eAAe,CAAC,OAAO,EAAE,wBAAwB,GAAG,IAAI,CAAC;IACzD;;;;OAIG;IACH,kBAAkB,CAAC,OAAO,EAAE,wBAAwB,GAAG,IAAI,CAAC;CAC7D;AAED,MAAM,WAAW,SAAS;IACxB,aAAa,CAAC,EAAE,YAAY,CAAC;IAC7B,MAAM,EAAE,YAAY,CAAC;CACtB"}
1
+ {"version":3,"file":"Wallets.types.d.ts","sourceRoot":"","sources":["../../../src/containers/Wallets/Wallets.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EACV,kBAAkB,IAAI,YAAY,EAClC,YAAY,EACb,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,wBAAwB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;AAC7D,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,eAAe,CAAC,OAAO,EAAE,wBAAwB,GAAG,IAAI,CAAC;IACzD;;;;OAIG;IACH,kBAAkB,CAAC,OAAO,EAAE,wBAAwB,GAAG,IAAI,CAAC;CAC7D;AAED,KAAK,kBAAkB,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC;AACnD,KAAK,UAAU,GAAG,OAAO,CAAC,YAAY,EAAE,YAAY,CAAC,qBAAqB,CAAC,CAAC;AAE5E,MAAM,MAAM,aAAa,GAAG,CAC1B,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAC3B,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAC5B,SAAS,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAChC,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC,KACxB,IAAI,CAAC;AAEV,MAAM,WAAW,SAAS;IACxB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,MAAM,EAAE,YAAY,CAAC;CACtB"}
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import type { OnWalletConnectionChange } from './Wallets.types';
3
+ import type { LegacyEventHandler as EventHandler } from '@rango-dev/wallets-core/legacy';
4
+ interface UseUpdatesParams {
5
+ onConnectWalletHandler: React.MutableRefObject<OnWalletConnectionChange | undefined>;
6
+ onDisconnectWalletHandler: React.MutableRefObject<OnWalletConnectionChange | undefined>;
7
+ }
8
+ interface UseUpdates {
9
+ handler: EventHandler;
10
+ }
11
+ export declare function useUpdates(params: UseUpdatesParams): UseUpdates;
12
+ export {};
13
+ //# sourceMappingURL=useUpdates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUpdates.d.ts","sourceRoot":"","sources":["../../../src/containers/Wallets/useUpdates.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,KAAK,EACV,kBAAkB,IAAI,YAAY,EAEnC,MAAM,gCAAgC,CAAC;AAgBxC,UAAU,gBAAgB;IACxB,sBAAsB,EAAE,KAAK,CAAC,gBAAgB,CAC5C,wBAAwB,GAAG,SAAS,CACrC,CAAC;IACF,yBAAyB,EAAE,KAAK,CAAC,gBAAgB,CAC/C,wBAAwB,GAAG,SAAS,CACrC,CAAC;CACH;AACD,UAAU,UAAU;IAClB,OAAO,EAAE,YAAY,CAAC;CACvB;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,gBAAgB,GAAG,UAAU,CA+M/D"}