@rainlanguage/ui-components 0.0.1-alpha.40 → 0.0.1-alpha.41
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.
|
@@ -260,7 +260,7 @@ const areAllTokensSelected = async () => {
|
|
|
260
260
|
{#if allTokensSelected || selectTokens?.length === 0}
|
|
261
261
|
{#if allFieldDefinitionsWithoutDefaults.length > 0}
|
|
262
262
|
{#each allFieldDefinitionsWithoutDefaults as fieldDefinition}
|
|
263
|
-
<FieldDefinitionInput {fieldDefinition}
|
|
263
|
+
<FieldDefinitionInput {fieldDefinition} />
|
|
264
264
|
{/each}
|
|
265
265
|
{/if}
|
|
266
266
|
|
|
@@ -268,7 +268,7 @@ const areAllTokensSelected = async () => {
|
|
|
268
268
|
|
|
269
269
|
{#if allFieldDefinitionsWithDefaults.length > 0 && showAdvancedOptions}
|
|
270
270
|
{#each allFieldDefinitionsWithDefaults as fieldDefinition}
|
|
271
|
-
<FieldDefinitionInput {fieldDefinition}
|
|
271
|
+
<FieldDefinitionInput {fieldDefinition} />
|
|
272
272
|
{/each}
|
|
273
273
|
{/if}
|
|
274
274
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
<script>import { Input } from "flowbite-svelte";
|
|
2
|
-
import {
|
|
3
|
-
DotrainOrderGui
|
|
4
|
-
} from "@rainlanguage/orderbook/js_api";
|
|
2
|
+
import {} from "@rainlanguage/orderbook/js_api";
|
|
5
3
|
import ButtonSelectOption from "./ButtonSelectOption.svelte";
|
|
6
4
|
import DeploymentSectionHeader from "./DeploymentSectionHeader.svelte";
|
|
7
5
|
import { onMount } from "svelte";
|
|
6
|
+
import { useGui } from "../../hooks/useGui";
|
|
8
7
|
export let fieldDefinition;
|
|
9
|
-
|
|
8
|
+
const gui = useGui();
|
|
10
9
|
let currentValue;
|
|
11
10
|
let inputValue = currentValue?.value ? currentValue?.value : fieldDefinition.default || null;
|
|
12
11
|
onMount(() => {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import {
|
|
2
|
+
import { type GuiFieldDefinitionCfg } from '@rainlanguage/orderbook/js_api';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
fieldDefinition: GuiFieldDefinitionCfg;
|
|
6
|
-
gui: DotrainOrderGui;
|
|
7
6
|
};
|
|
8
7
|
events: {
|
|
9
8
|
[evt: string]: CustomEvent<any>;
|
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.41",
|
|
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.41",
|
|
57
57
|
"@reown/appkit": "1.6.4",
|
|
58
58
|
"@reown/appkit-adapter-wagmi": "1.6.4",
|
|
59
59
|
"@sentry/sveltekit": "7.120.0",
|