@rainlanguage/ui-components 0.0.1-alpha.43 → 0.0.1-alpha.45
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.
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { RainlangLR } from "codemirror-rainlang";
|
|
3
3
|
import { lightCodeMirrorTheme } from "../../utils/codeMirrorThemes";
|
|
4
4
|
import { Button, Modal } from "flowbite-svelte";
|
|
5
|
-
|
|
5
|
+
import { useGui } from "../../hooks/useGui";
|
|
6
|
+
const gui = useGui();
|
|
6
7
|
let rainlangText = null;
|
|
7
8
|
let open = false;
|
|
8
9
|
async function generateRainlang() {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import type { DotrainOrderGui } from '@rainlanguage/orderbook/js_api';
|
|
3
2
|
declare const __propDef: {
|
|
4
|
-
props:
|
|
5
|
-
gui: DotrainOrderGui;
|
|
6
|
-
};
|
|
3
|
+
props: Record<string, never>;
|
|
7
4
|
events: {
|
|
8
5
|
[evt: string]: CustomEvent<any>;
|
|
9
6
|
};
|
|
@@ -163,12 +163,8 @@ async function handleDeployButtonClick() {
|
|
|
163
163
|
try {
|
|
164
164
|
result = await getDeploymentTransactionArgs(gui, $account);
|
|
165
165
|
} catch (e) {
|
|
166
|
-
checkingDeployment = false;
|
|
167
166
|
DeploymentStepsError.catch(e, DeploymentStepsErrorCode.ADD_ORDER_FAILED);
|
|
168
|
-
}
|
|
169
|
-
if (!result) {
|
|
170
167
|
checkingDeployment = false;
|
|
171
|
-
DeploymentStepsError.catch(null, DeploymentStepsErrorCode.ADD_ORDER_FAILED);
|
|
172
168
|
return;
|
|
173
169
|
}
|
|
174
170
|
checkingDeployment = false;
|
|
@@ -222,15 +218,7 @@ const areAllTokensSelected = async () => {
|
|
|
222
218
|
};
|
|
223
219
|
</script>
|
|
224
220
|
|
|
225
|
-
<div>
|
|
226
|
-
{#if $deploymentStepsError}
|
|
227
|
-
<Alert color="red">
|
|
228
|
-
<p class="text-red-500">{$deploymentStepsError.code}</p>
|
|
229
|
-
{#if $deploymentStepsError.details}
|
|
230
|
-
<p class="text-red-500">{$deploymentStepsError.details}</p>
|
|
231
|
-
{/if}
|
|
232
|
-
</Alert>
|
|
233
|
-
{/if}
|
|
221
|
+
<div class="py-6">
|
|
234
222
|
{#if dotrain}
|
|
235
223
|
{#if gui}
|
|
236
224
|
<div class="flex max-w-3xl flex-col gap-12" in:fade>
|
|
@@ -314,7 +302,7 @@ const areAllTokensSelected = async () => {
|
|
|
314
302
|
{:else}
|
|
315
303
|
<WalletConnect {appKitModal} connected={wagmiConnected} />
|
|
316
304
|
{/if}
|
|
317
|
-
<ComposedRainlangModal
|
|
305
|
+
<ComposedRainlangModal />
|
|
318
306
|
<ShareChoicesButton handleShareChoices={_handleShareChoices} />
|
|
319
307
|
</div>
|
|
320
308
|
{/if}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rainlanguage/ui-components",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.45",
|
|
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.
|
|
56
|
+
"@rainlanguage/orderbook": "0.0.1-alpha.45",
|
|
57
57
|
"@reown/appkit": "1.6.4",
|
|
58
58
|
"@reown/appkit-adapter-wagmi": "1.6.4",
|
|
59
59
|
"@sentry/sveltekit": "7.120.0",
|