@rango-dev/widget-embedded 0.23.1-next.23 → 0.23.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/components/AppRouter.d.ts +1 -6
- package/dist/components/AppRouter.d.ts.map +1 -1
- package/dist/components/QuoteSkeleton/QuoteSkeleton.styles.d.ts +1 -0
- package/dist/components/QuoteSkeleton/QuoteSkeleton.styles.d.ts.map +1 -1
- package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.d.ts.map +1 -1
- package/dist/components/QuoteSkeleton/StepSkeleton.styles.d.ts +3 -1
- package/dist/components/QuoteSkeleton/StepSkeleton.styles.d.ts.map +1 -1
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.helpers.d.ts.map +1 -1
- package/dist/components/Quotes/Quotes.d.ts.map +1 -1
- package/dist/containers/App/App.d.ts.map +1 -1
- package/dist/containers/Inputs/Inputs.d.ts.map +1 -1
- package/dist/containers/Wallets/Wallets.d.ts.map +1 -1
- package/dist/containers/Wallets/Wallets.types.d.ts +13 -2
- package/dist/containers/Wallets/Wallets.types.d.ts.map +1 -1
- package/dist/containers/Widget/Widget.d.ts.map +1 -1
- package/dist/hooks/useBootstrap/index.d.ts +2 -0
- package/dist/hooks/useBootstrap/index.d.ts.map +1 -0
- package/dist/hooks/useBootstrap/useBootstrap.d.ts +2 -0
- package/dist/hooks/useBootstrap/useBootstrap.d.ts.map +1 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +4 -4
- package/dist/pages/ConfirmSwapPage.d.ts.map +1 -1
- package/dist/utils/swap.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/AppRouter.tsx +1 -29
- package/src/components/QuoteSkeleton/QuoteSkeleton.styles.ts +9 -1
- package/src/components/QuoteSkeleton/QuoteSkeleton.tsx +2 -2
- package/src/components/QuoteSkeleton/QuoteSummarySkeleton.styles.ts +2 -2
- package/src/components/QuoteSkeleton/QuoteSummarySkeleton.tsx +5 -4
- package/src/components/QuoteSkeleton/StepSkeleton.styles.ts +7 -0
- package/src/components/QuoteSkeleton/StepSkeleton.tsx +1 -1
- package/src/components/QuoteWarningsAndErrors/HighValueLossWarningModal.tsx +1 -1
- package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.helpers.ts +1 -0
- package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.ts +1 -1
- package/src/components/Quotes/Quotes.tsx +12 -11
- package/src/constants/errors.ts +1 -1
- package/src/containers/App/App.tsx +4 -25
- package/src/containers/Inputs/Inputs.tsx +7 -1
- package/src/containers/Wallets/Wallets.tsx +27 -10
- package/src/containers/Wallets/Wallets.types.ts +13 -2
- package/src/containers/Widget/Widget.tsx +1 -7
- package/src/hooks/useBootstrap/index.ts +1 -0
- package/src/hooks/useBootstrap/useBootstrap.ts +72 -0
- package/src/pages/ConfirmSwapPage.tsx +2 -1
- package/src/utils/swap.ts +1 -5
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import type { WalletType } from '@rango-dev/wallets-shared';
|
|
2
1
|
import type { PropsWithChildren } from 'react';
|
|
3
2
|
import React from 'react';
|
|
4
|
-
export declare function AppRouter({ children
|
|
5
|
-
lastConnectedWallet: string;
|
|
6
|
-
disconnectedWallet: WalletType | undefined;
|
|
7
|
-
clearDisconnectedWallet: () => void;
|
|
8
|
-
}): React.JSX.Element;
|
|
3
|
+
export declare function AppRouter({ children }: PropsWithChildren): React.JSX.Element;
|
|
9
4
|
//# sourceMappingURL=AppRouter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppRouter.d.ts","sourceRoot":"","sources":["../../src/components/AppRouter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"AppRouter.d.ts","sourceRoot":"","sources":["../../src/components/AppRouter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,qBAKxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuoteSkeleton.styles.d.ts","sourceRoot":"","sources":["../../../src/components/QuoteSkeleton/QuoteSkeleton.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"QuoteSkeleton.styles.d.ts","sourceRoot":"","sources":["../../../src/components/QuoteSkeleton/QuoteSkeleton.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAwBpB,CAAC;AAEH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAEjB,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAEhB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAaxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuoteSummarySkeleton.d.ts","sourceRoot":"","sources":["../../../src/components/QuoteSkeleton/QuoteSummarySkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAG9D,OAAO,KAAK,MAAM,OAAO,CAAC;AAiB1B,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"QuoteSummarySkeleton.d.ts","sourceRoot":"","sources":["../../../src/components/QuoteSkeleton/QuoteSummarySkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAG9D,OAAO,KAAK,MAAM,OAAO,CAAC;AAiB1B,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,SAAS,qBA2EpD"}
|
|
@@ -160,7 +160,9 @@ export declare const StepContent: import("@stitches/react/types/styled-component
|
|
|
160
160
|
zIndices: {};
|
|
161
161
|
transitions: {};
|
|
162
162
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
163
|
-
export declare const StepTokens: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
163
|
+
export declare const StepTokens: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
164
|
+
extraSpace?: boolean | "true" | undefined;
|
|
165
|
+
}, {
|
|
164
166
|
xs: string;
|
|
165
167
|
sm: string;
|
|
166
168
|
md: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepSkeleton.styles.d.ts","sourceRoot":"","sources":["../../../src/components/QuoteSkeleton/StepSkeleton.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAGpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuoteWarningsAndErrors.helpers.d.ts","sourceRoot":"","sources":["../../../src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,yBAAyB,EACzB,YAAY,EACb,MAAM,aAAa,CAAC;AAQrB,KAAK,SAAS,GAAG;IACf,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,GAAG,iBAAiB,GAAG,IAAI,CAAC;CAChD,CAAC;AAEF,wBAAgB,UAAU,CACxB,OAAO,EAAE,YAAY,GAAG,IAAI,EAC5B,KAAK,EAAE,gBAAgB,GAAG,yBAAyB,GAAG,IAAI,GACzD,SAAS,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"QuoteWarningsAndErrors.helpers.d.ts","sourceRoot":"","sources":["../../../src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,yBAAyB,EACzB,YAAY,EACb,MAAM,aAAa,CAAC;AAQrB,KAAK,SAAS,GAAG;IACf,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,GAAG,iBAAiB,GAAG,IAAI,CAAC;CAChD,CAAC;AAEF,wBAAgB,UAAU,CACxB,OAAO,EAAE,YAAY,GAAG,IAAI,EAC5B,KAAK,EAAE,gBAAgB,GAAG,yBAAyB,GAAG,IAAI,GACzD,SAAS,GAAG,IAAI,CAoDlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Quotes.d.ts","sourceRoot":"","sources":["../../../src/components/Quotes/Quotes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAKhD,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"Quotes.d.ts","sourceRoot":"","sources":["../../../src/components/Quotes/Quotes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAKhD,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,qBA4HtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/containers/App/App.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/containers/App/App.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,wBAAgB,IAAI,sBAgBnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Inputs.d.ts","sourceRoot":"","sources":["../../../src/containers/Inputs/Inputs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAIhD,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Inputs.d.ts","sourceRoot":"","sources":["../../../src/containers/Inputs/Inputs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAIhD,OAAO,KAAK,MAAM,OAAO,CAAC;AAuB1B,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,qBA+ItC"}
|
|
@@ -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;AAK/C,OAAO,
|
|
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;AAK/C,OAAO,KAAoD,MAAM,OAAO,CAAC;AAWzE,eAAO,MAAM,aAAa,uCAOxB,CAAC;AA8GH,wBAAgB,aAAa,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAOhE"}
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import type { WidgetConfig } from '../../types';
|
|
2
2
|
import type { EventHandler } from '@rango-dev/wallets-react';
|
|
3
|
-
export type
|
|
3
|
+
export type OnWalletConnectionChange = (key: string) => void;
|
|
4
4
|
export interface WidgetContextInterface {
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* A wallet connection handler, utilized within the wallet provider,
|
|
7
|
+
* is linked to the useBootstrap hook for synchronizing the state of the last connected wallet.
|
|
8
|
+
* It's important not to override this handler in other locations.
|
|
9
|
+
*/
|
|
10
|
+
onConnectWallet(handler: OnWalletConnectionChange): void;
|
|
11
|
+
/**
|
|
12
|
+
* A wallet disconnection handler, utilized within the wallet provider,
|
|
13
|
+
* is linked to the useBootstrap hook for synchronizing the state of the last disconnected wallet.
|
|
14
|
+
* It's important not to override this handler in other locations.
|
|
15
|
+
*/
|
|
16
|
+
onDisconnectWallet(handler: OnWalletConnectionChange): void;
|
|
6
17
|
}
|
|
7
18
|
export interface PropTypes {
|
|
8
19
|
onUpdateState?: EventHandler;
|
|
@@ -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,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,MAAM,
|
|
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,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Widget.d.ts","sourceRoot":"","sources":["../../../src/containers/Widget/Widget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,
|
|
1
|
+
{"version":3,"file":"Widget.d.ts","sourceRoot":"","sources":["../../../src/containers/Widget/Widget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,wBAAgB,MAAM,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,qBAS3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBootstrap/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBootstrap.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBootstrap/useBootstrap.ts"],"names":[],"mappings":"AAgBA,wBAAgB,YAAY,SAuD3B"}
|