@rainlanguage/ui-components 0.0.1-alpha.51 → 0.0.1-alpha.52

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,5 +1,6 @@
1
1
  <script>import { Input } from "flowbite-svelte";
2
- import {} from "@rainlanguage/orderbook/js_api";
2
+ import {
3
+ } from "@rainlanguage/orderbook/js_api";
3
4
  import ButtonSelectOption from "./ButtonSelectOption.svelte";
4
5
  import DeploymentSectionHeader from "./DeploymentSectionHeader.svelte";
5
6
  import { onMount } from "svelte";
@@ -22,10 +23,7 @@ onMount(() => {
22
23
  });
23
24
  async function handlePresetClick(preset) {
24
25
  inputValue = preset.value;
25
- gui?.saveFieldValue(fieldDefinition.binding, {
26
- isPreset: true,
27
- value: preset.id
28
- });
26
+ gui.saveFieldValue(fieldDefinition.binding, inputValue);
29
27
  const result = gui.getFieldValue(fieldDefinition.binding);
30
28
  if (result.error) {
31
29
  throw new Error(result.error.msg);
@@ -34,10 +32,7 @@ async function handlePresetClick(preset) {
34
32
  }
35
33
  async function handleCustomInputChange(value) {
36
34
  inputValue = value;
37
- gui?.saveFieldValue(fieldDefinition.binding, {
38
- isPreset: false,
39
- value
40
- });
35
+ gui.saveFieldValue(fieldDefinition.binding, inputValue);
41
36
  const result = gui.getFieldValue(fieldDefinition.binding);
42
37
  if (result.error) {
43
38
  throw new Error(result.error.msg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rainlanguage/ui-components",
3
- "version": "0.0.1-alpha.51",
3
+ "version": "0.0.1-alpha.52",
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.51",
56
+ "@rainlanguage/orderbook": "0.0.1-alpha.52",
57
57
  "@reown/appkit": "1.6.4",
58
58
  "@reown/appkit-adapter-wagmi": "1.6.4",
59
59
  "@sentry/sveltekit": "7.120.0",