@rainlanguage/ui-components 0.0.1-alpha.82 → 0.0.1-alpha.84

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.
@@ -5,7 +5,7 @@ export let disabled = false;
5
5
 
6
6
  <Button disabled={loading || disabled} {...$$props} on:click>
7
7
  {#if loading}
8
- <Spinner class="mr-2 h-4 w-4" color="white" />
8
+ <Spinner data-testid="spinner" class="mr-2 h-4 w-4" color="white" />
9
9
  {/if}
10
10
  <slot />
11
11
  </Button>
@@ -128,6 +128,7 @@ const transactionStore = () => {
128
128
  hash: hash || ''
129
129
  }));
130
130
  const handleDeploymentTransaction = async ({ config, approvals, deploymentCalldata, orderbookAddress, chainId, subgraphUrl, network }) => {
131
+ reset();
131
132
  try {
132
133
  await switchChain(config, { chainId });
133
134
  }
@@ -179,6 +180,7 @@ const transactionStore = () => {
179
180
  }
180
181
  };
181
182
  const handleDepositOrWithdrawTransaction = async ({ config, approvalCalldata, transactionCalldata, action, chainId, vault, subgraphUrl }) => {
183
+ reset();
182
184
  try {
183
185
  await switchChain(config, { chainId });
184
186
  }
@@ -231,6 +233,7 @@ const transactionStore = () => {
231
233
  }
232
234
  };
233
235
  const handleRemoveOrderTransaction = async ({ config, orderbookAddress, removeOrderCalldata, chainId, subgraphUrl }) => {
236
+ reset();
234
237
  try {
235
238
  await switchChain(config, { chainId });
236
239
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rainlanguage/ui-components",
3
- "version": "0.0.1-alpha.82",
3
+ "version": "0.0.1-alpha.84",
4
4
  "description": "A component library for building Svelte applications to be used with Raindex.",
5
5
  "license": "LicenseRef-DCL-1.0",
6
6
  "author": "Rain Open Source Software Ltd",
@@ -53,7 +53,7 @@
53
53
  "@fontsource/dm-sans": "5.1.0",
54
54
  "@imask/svelte": "7.6.1",
55
55
  "@observablehq/plot": "0.6.16",
56
- "@rainlanguage/orderbook": "0.0.1-alpha.82",
56
+ "@rainlanguage/orderbook": "0.0.1-alpha.84",
57
57
  "@reown/appkit": "1.6.4",
58
58
  "@reown/appkit-adapter-wagmi": "1.6.4",
59
59
  "@sentry/sveltekit": "7.120.0",