@rainlanguage/ui-components 0.0.1-alpha.46 → 0.0.1-alpha.47
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.
|
@@ -27,6 +27,7 @@ export let deployment;
|
|
|
27
27
|
export let strategyDetail;
|
|
28
28
|
export let handleDeployModal;
|
|
29
29
|
export let handleDisclaimerModal;
|
|
30
|
+
export let registryUrl;
|
|
30
31
|
let allDepositFields = [];
|
|
31
32
|
let allTokenOutputs = [];
|
|
32
33
|
let allFieldDefinitionsWithoutDefaults = [];
|
|
@@ -123,7 +124,7 @@ async function updateFields() {
|
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
async function _handleShareChoices() {
|
|
126
|
-
await handleShareChoices(gui);
|
|
127
|
+
await handleShareChoices(gui, registryUrl);
|
|
127
128
|
}
|
|
128
129
|
async function onSelectTokenSelect() {
|
|
129
130
|
await areAllTokensSelected();
|
|
@@ -17,6 +17,7 @@ declare const __propDef: {
|
|
|
17
17
|
strategyDetail: NameAndDescriptionCfg;
|
|
18
18
|
handleDeployModal: (args: DeployModalProps) => void;
|
|
19
19
|
handleDisclaimerModal: (args: DisclaimerModalProps) => void;
|
|
20
|
+
registryUrl: string;
|
|
20
21
|
wagmiConfig: Writable<Config | undefined>;
|
|
21
22
|
wagmiConnected: Writable<boolean>;
|
|
22
23
|
appKitModal: Writable<AppKit>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { DotrainOrderGui } from '@rainlanguage/orderbook/js_api';
|
|
2
|
-
export declare function handleShareChoices(gui: DotrainOrderGui): Promise<void>;
|
|
2
|
+
export declare function handleShareChoices(gui: DotrainOrderGui, registryUrl: string): Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { page } from '$app/stores';
|
|
2
2
|
import { get } from 'svelte/store';
|
|
3
|
-
export async function handleShareChoices(gui) {
|
|
3
|
+
export async function handleShareChoices(gui, registryUrl) {
|
|
4
4
|
// get the current url
|
|
5
5
|
const url = get(page).url;
|
|
6
6
|
// get the current state
|
|
@@ -10,5 +10,6 @@ export async function handleShareChoices(gui) {
|
|
|
10
10
|
}
|
|
11
11
|
const state = result.value;
|
|
12
12
|
url.searchParams.set('state', state || '');
|
|
13
|
+
url.searchParams.set('registry', registryUrl);
|
|
13
14
|
navigator.clipboard.writeText(url.toString());
|
|
14
15
|
}
|
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.47",
|
|
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.47",
|
|
57
57
|
"@reown/appkit": "1.6.4",
|
|
58
58
|
"@reown/appkit-adapter-wagmi": "1.6.4",
|
|
59
59
|
"@sentry/sveltekit": "7.120.0",
|