@layerswap/widget 1.0.0 → 1.0.2
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/esm/components/Modal/modalWithoutAnimation.js +1 -1
- package/dist/esm/components/Modal/vaulModal.js +3 -3
- package/dist/esm/components/Pages/Swap/Form/ExchangeForm.js +14 -13
- package/dist/esm/components/Wallet/WalletModal/ConnectorsList.js +9 -8
- package/dist/esm/components/Widget/Index.js +5 -1
- package/dist/esm/context/LayerswapProvider.js +2 -2
- package/dist/esm/exports/index.js +1 -1
- package/dist/esm/helpers/getSettings.js +17 -1
- package/dist/index.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/components/Pages/Swap/Form/ExchangeForm.d.ts.map +1 -1
- package/dist/types/components/Wallet/WalletModal/ConnectorsList.d.ts.map +1 -1
- package/dist/types/components/Widget/Index.d.ts.map +1 -1
- package/dist/types/exports/index.d.ts +1 -1
- package/dist/types/exports/index.d.ts.map +1 -1
- package/dist/types/helpers/getSettings.d.ts +10 -5
- package/dist/types/helpers/getSettings.d.ts.map +1 -1
- package/dist/types/lib/AppSettings.d.ts +1 -1
- package/dist/types/lib/AppSettings.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExchangeForm.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Pages/Swap/Form/ExchangeForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAgC,MAAM,OAAO,CAAC;AAMzD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAuB3C,KAAK,KAAK,GAAG;IACT,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"ExchangeForm.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Pages/Swap/Form/ExchangeForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAgC,MAAM,OAAO,CAAC;AAMzD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAuB3C,KAAK,KAAK,GAAG;IACT,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,KAAK,CA0H3B,CAAA;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectorsList.d.ts","sourceRoot":"","sources":["../../../../../src/components/Wallet/WalletModal/ConnectorsList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,EAAE,EAAwD,MAAM,OAAO,CAAC;AAG3F,OAAO,EAAqB,MAAM,EAA4B,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"ConnectorsList.d.ts","sourceRoot":"","sources":["../../../../../src/components/Wallet/WalletModal/ConnectorsList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,EAAE,EAAwD,MAAM,OAAO,CAAC;AAG3F,OAAO,EAAqB,MAAM,EAA4B,MAAM,gBAAgB,CAAC;AAkBrF,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAA;CAAE,CAoM1E,CAAA;AA+MD,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Index.d.ts","sourceRoot":"","sources":["../../../../src/components/Widget/Index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Index.d.ts","sourceRoot":"","sources":["../../../../src/components/Widget/Index.tsx"],"names":[],"mappings":"AAQA,KAAK,KAAK,GAAG;IACV,QAAQ,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAEnC,CAAA;AAED,QAAA,MAAM,MAAM;qDAAoD,KAAK;;;;;;;;;;;CAqCpE,CAAA;AAKD,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -6,7 +6,7 @@ export { CampaignDetails } from '../components/Pages/Campaigns/Details';
|
|
|
6
6
|
export { WidgetLoading } from '../components/WidgetLoading';
|
|
7
7
|
export { LayerSwapSettings } from '../Models/LayerSwapSettings';
|
|
8
8
|
export { type ThemeData, THEME_COLORS, type ThemeColor } from '../Models/Theme';
|
|
9
|
-
export { getSettings } from '../helpers/getSettings';
|
|
9
|
+
export { getSettings, useSettings } from '../helpers/getSettings';
|
|
10
10
|
export { LayerswapProvider, type LayerswapWidgetConfig } from '../context/LayerswapProvider';
|
|
11
11
|
export { useSettingsState } from '../context/settings';
|
|
12
12
|
export { resolveWalletConnectorIcon, walletIconResolver } from '../lib/wallets/utils/resolveWalletIcon';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EAAE,KAAK,SAAS,EAAE,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EAAE,KAAK,SAAS,EAAE,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC/E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,EAAE,iBAAiB,EAAE,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAA;AACvG,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,oBAAoB,CAAA;AACzD,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAA"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { LayerSwapSettings } from "../../types";
|
|
2
|
+
export declare function getSettings(apiKey: string): Promise<{
|
|
3
|
+
networks: import("../../types").NetworkWithTokens[];
|
|
4
|
+
sourceExchanges: import("../../types").Exchange[];
|
|
5
|
+
sourceRoutes: import("../../types").NetworkWithTokens[];
|
|
6
|
+
destinationRoutes: import("../../types").NetworkWithTokens[];
|
|
6
7
|
} | undefined>;
|
|
8
|
+
export declare function useSettings(apiKey: string): {
|
|
9
|
+
settings: LayerSwapSettings | null;
|
|
10
|
+
loading: boolean;
|
|
11
|
+
};
|
|
7
12
|
//# sourceMappingURL=getSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSettings.d.ts","sourceRoot":"","sources":["../../../src/helpers/getSettings.ts"],"names":[],"mappings":"AAEA,wBAAsB,WAAW;;;;;
|
|
1
|
+
{"version":3,"file":"getSettings.d.ts","sourceRoot":"","sources":["../../../src/helpers/getSettings.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,wBAAsB,WAAW,CAAC,MAAM,EAAE,MAAM;;;;;eAqB/C;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM;;;EAczC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSettings.d.ts","sourceRoot":"","sources":["../../../src/lib/AppSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,MAAM,CAAC,OAAO,OAAO,WAAW;IAC5B,MAAM,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"AppSettings.d.ts","sourceRoot":"","sources":["../../../src/lib/AppSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,MAAM,CAAC,OAAO,OAAO,WAAW;IAC5B,MAAM,CAAC,UAAU,EAAE,MAAM,CAAY;IACrC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAuC;IACjE,MAAM,CAAC,eAAe,CAAC,EAAE,MAAM,CAA6B;IAC5D,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAA2D;IAC5F,MAAM,CAAC,kBAAkB;;;;;MAKxB;IACD,MAAM,CAAC,mBAAmB,EAAE;QACxB,SAAS,EAAE,MAAM,CAAA;QACjB,IAAI,EAAE,MAAM,CAAA;QACZ,WAAW,EAAE,MAAM,CAAA;QACnB,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,EAAE,CAAA;KAClB,CAMI;IACL,MAAM,CAAC,eAAe,EAAE;QACpB,SAAS,EAAE,MAAM,CAAA;KACpB,CAEI;IACL,MAAM,CAAC,mBAAmB,EAAE;QACxB,cAAc,EAAE,MAAM,CAAC;QACvB,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,iBAAiB,EAAE,MAAM,CAAA;KAC5B,GAAG,SAAS,CAKR;IACL,MAAM,CAAC,gBAAgB,EAAE,OAAO,CAAQ;IACxC,MAAM,CAAC,eAAe,CAAC,EAAE;QACrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;QAChC,OAAO,EAAE,MAAM,CAAC;QAChB,0BAA0B,CAAC,EAAE,cAAc,GAAG,eAAe,GAAG,MAAM,EAAE,CAAA;KAC3E,CAAA;IACD,MAAM,CAAC,gBAAgB,EAAE;QACrB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KACxB,CAGI;IACL,MAAM,CAAC,SAAS,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;CAEtC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerswap/widget",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Streamline your asset transaction experience with Layerswap Widget across 60+ blockchains and 15+ exchanges.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc",
|
|
47
47
|
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc",
|
|
48
|
-
"zustand": "
|
|
48
|
+
"zustand": "4.5.7"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@headlessui/react": "^2.1.1",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@types/react": "18.3.1",
|
|
90
90
|
"react": "18.3.1",
|
|
91
91
|
"react-dom": "18.3.1",
|
|
92
|
-
"zustand": "
|
|
92
|
+
"zustand": "4.5.7"
|
|
93
93
|
},
|
|
94
94
|
"engines": {
|
|
95
95
|
"node": ">=22"
|