@xswap-link/sdk 0.6.9 → 0.7.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @xswap-link/xswap-sdk
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - cddadc4: change modal rendering
8
+
9
+ ## 0.6.10
10
+
11
+ ### Patch Changes
12
+
13
+ - f38be29: make passing styles and customCalls as objects
14
+
3
15
  ## 0.6.9
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -222,8 +222,8 @@ type ModalIntegrationStyles = Pick<ModalIntegrationThemeStyles, "mainAccentLight
222
222
  };
223
223
  type ModalIntegrationPayload = {
224
224
  integratorId: string;
225
- dstChain: string;
226
- dstToken: string;
225
+ dstChain?: string;
226
+ dstToken?: string;
227
227
  srcChain?: string;
228
228
  srcToken?: string;
229
229
  customContractCalls?: ContractCall[];
@@ -245,7 +245,7 @@ type WidgetIntegrationPayload = {
245
245
  dstDisplayToken?: string;
246
246
  lightTheme?: boolean;
247
247
  defaultWalletPicker?: boolean;
248
- styles?: string;
248
+ styles?: ModalIntegrationStyles | string;
249
249
  };
250
250
 
251
251
  type Protocol = {
@@ -355,12 +355,12 @@ type TxWidgetWCAttributes = {
355
355
  "dst-token": WidgetIntegrationPayload["dstToken"];
356
356
  "src-chain": WidgetIntegrationPayload["srcChain"];
357
357
  "src-token": WidgetIntegrationPayload["srcToken"];
358
- "custom-contract-calls": WidgetIntegrationPayload["customContractCalls"];
358
+ "custom-contract-calls": string | undefined;
359
359
  desc: WidgetIntegrationPayload["desc"];
360
360
  "dst-display-token": WidgetIntegrationPayload["dstDisplayToken"];
361
361
  "light-theme": WidgetIntegrationPayload["lightTheme"];
362
362
  "default-wallet-picker": WidgetIntegrationPayload["defaultWalletPicker"];
363
- styles: WidgetIntegrationPayload["styles"];
363
+ styles: string | undefined;
364
364
  };
365
365
 
366
366
  declare global {
package/dist/index.d.ts CHANGED
@@ -222,8 +222,8 @@ type ModalIntegrationStyles = Pick<ModalIntegrationThemeStyles, "mainAccentLight
222
222
  };
223
223
  type ModalIntegrationPayload = {
224
224
  integratorId: string;
225
- dstChain: string;
226
- dstToken: string;
225
+ dstChain?: string;
226
+ dstToken?: string;
227
227
  srcChain?: string;
228
228
  srcToken?: string;
229
229
  customContractCalls?: ContractCall[];
@@ -245,7 +245,7 @@ type WidgetIntegrationPayload = {
245
245
  dstDisplayToken?: string;
246
246
  lightTheme?: boolean;
247
247
  defaultWalletPicker?: boolean;
248
- styles?: string;
248
+ styles?: ModalIntegrationStyles | string;
249
249
  };
250
250
 
251
251
  type Protocol = {
@@ -355,12 +355,12 @@ type TxWidgetWCAttributes = {
355
355
  "dst-token": WidgetIntegrationPayload["dstToken"];
356
356
  "src-chain": WidgetIntegrationPayload["srcChain"];
357
357
  "src-token": WidgetIntegrationPayload["srcToken"];
358
- "custom-contract-calls": WidgetIntegrationPayload["customContractCalls"];
358
+ "custom-contract-calls": string | undefined;
359
359
  desc: WidgetIntegrationPayload["desc"];
360
360
  "dst-display-token": WidgetIntegrationPayload["dstDisplayToken"];
361
361
  "light-theme": WidgetIntegrationPayload["lightTheme"];
362
362
  "default-wallet-picker": WidgetIntegrationPayload["defaultWalletPicker"];
363
- styles: WidgetIntegrationPayload["styles"];
363
+ styles: string | undefined;
364
364
  };
365
365
 
366
366
  declare global {