@rainlanguage/ui-components 0.0.1-alpha.19 → 0.0.1-alpha.20
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<script>import { Alert } from "flowbite-svelte";
|
|
2
2
|
import TokenIOInput from "./TokenIOInput.svelte";
|
|
3
3
|
import ComposedRainlangModal from "./ComposedRainlangModal.svelte";
|
|
4
|
-
import FieldDefinitionsSection from "./FieldDefinitionsSection.svelte";
|
|
5
4
|
import {} from "@rainlanguage/orderbook/js_api";
|
|
6
5
|
import WalletConnect from "../wallet/WalletConnect.svelte";
|
|
7
6
|
import {
|
|
@@ -15,6 +14,7 @@ import { handleShareChoices } from "../../services/handleShareChoices";
|
|
|
15
14
|
import { getDeploymentTransactionArgs } from "./getDeploymentTransactionArgs";
|
|
16
15
|
import { DeploymentStepsError, DeploymentStepsErrorCode } from "../../errors";
|
|
17
16
|
import { onMount } from "svelte";
|
|
17
|
+
import FieldDefinitionInput from "./FieldDefinitionInput.svelte";
|
|
18
18
|
import DepositInput from "./DepositInput.svelte";
|
|
19
19
|
import SelectToken from "./SelectToken.svelte";
|
|
20
20
|
import DeploymentSectionHeader from "./DeploymentSectionHeader.svelte";
|
|
@@ -232,16 +232,17 @@ const areAllTokensSelected = async () => {
|
|
|
232
232
|
|
|
233
233
|
{#if allTokensSelected || selectTokens?.length === 0}
|
|
234
234
|
{#if allFieldDefinitionsWithoutDefaults.length > 0}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
/>
|
|
235
|
+
{#each allFieldDefinitionsWithoutDefaults as fieldDefinition}
|
|
236
|
+
<FieldDefinitionInput {fieldDefinition} {gui} />
|
|
237
|
+
{/each}
|
|
239
238
|
{/if}
|
|
240
239
|
|
|
241
240
|
<Toggle bind:checked={showAdvancedOptions}>Show advanced options</Toggle>
|
|
242
241
|
|
|
243
242
|
{#if allFieldDefinitionsWithDefaults.length > 0 && showAdvancedOptions}
|
|
244
|
-
|
|
243
|
+
{#each allFieldDefinitionsWithDefaults as fieldDefinition}
|
|
244
|
+
<FieldDefinitionInput {fieldDefinition} {gui} />
|
|
245
|
+
{/each}
|
|
245
246
|
{/if}
|
|
246
247
|
|
|
247
248
|
{#if showAdvancedOptions}
|
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.20",
|
|
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.0.18",
|
|
54
54
|
"@imask/svelte": "^7.3.0",
|
|
55
55
|
"@observablehq/plot": "^0.6.13",
|
|
56
|
-
"@rainlanguage/orderbook": "0.0.1-alpha.
|
|
56
|
+
"@rainlanguage/orderbook": "0.0.1-alpha.20",
|
|
57
57
|
"@reown/appkit": "^1.6.4",
|
|
58
58
|
"@reown/appkit-adapter-wagmi": "^1.6.4",
|
|
59
59
|
"@sentry/sveltekit": "^7.107.0",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<script>import FieldDefinitionInput from "./FieldDefinitionInput.svelte";
|
|
2
|
-
import {} from "@rainlanguage/orderbook/js_api";
|
|
3
|
-
export let allFieldDefinitions;
|
|
4
|
-
export let gui;
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
{#each allFieldDefinitions as fieldDefinition}
|
|
8
|
-
<FieldDefinitionInput {fieldDefinition} {gui} />
|
|
9
|
-
{/each}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
|
-
import { type DotrainOrderGui, type GuiFieldDefinitionCfg } from '@rainlanguage/orderbook/js_api';
|
|
3
|
-
declare const __propDef: {
|
|
4
|
-
props: {
|
|
5
|
-
allFieldDefinitions: GuiFieldDefinitionCfg[];
|
|
6
|
-
gui: DotrainOrderGui;
|
|
7
|
-
};
|
|
8
|
-
events: {
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
exports?: {} | undefined;
|
|
13
|
-
bindings?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
export type FieldDefinitionsSectionProps = typeof __propDef.props;
|
|
16
|
-
export type FieldDefinitionsSectionEvents = typeof __propDef.events;
|
|
17
|
-
export type FieldDefinitionsSectionSlots = typeof __propDef.slots;
|
|
18
|
-
export default class FieldDefinitionsSection extends SvelteComponent<FieldDefinitionsSectionProps, FieldDefinitionsSectionEvents, FieldDefinitionsSectionSlots> {
|
|
19
|
-
}
|
|
20
|
-
export {};
|