@rainlanguage/ui-components 0.0.1-alpha.138 → 0.0.1-alpha.139

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.
@@ -46,7 +46,7 @@ const getTokenSymbol = async () => {
46
46
  function handlePresetClick(preset) {
47
47
  if (deposit.token?.key) {
48
48
  inputValue = preset;
49
- gui.saveDeposit(deposit.token?.key, preset);
49
+ gui.setDeposit(deposit.token?.key, preset);
50
50
  try {
51
51
  currentDeposit = getCurrentDeposit();
52
52
  } catch (e) {
@@ -58,7 +58,7 @@ function handleInput(e) {
58
58
  if (deposit.token?.key) {
59
59
  if (e.currentTarget instanceof HTMLInputElement) {
60
60
  inputValue = e.currentTarget.value;
61
- gui.saveDeposit(deposit.token.key, e.currentTarget.value);
61
+ gui.setDeposit(deposit.token.key, e.currentTarget.value);
62
62
  try {
63
63
  currentDeposit = getCurrentDeposit();
64
64
  } catch (e2) {
@@ -23,7 +23,7 @@ onMount(() => {
23
23
  });
24
24
  async function handlePresetClick(preset) {
25
25
  inputValue = preset.value;
26
- gui.saveFieldValue(fieldDefinition.binding, inputValue);
26
+ gui.setFieldValue(fieldDefinition.binding, inputValue);
27
27
  const result = gui.getFieldValue(fieldDefinition.binding);
28
28
  if (result.error) {
29
29
  throw new Error(result.error.msg);
@@ -32,7 +32,7 @@ async function handlePresetClick(preset) {
32
32
  }
33
33
  async function handleCustomInputChange(value) {
34
34
  inputValue = value;
35
- gui.saveFieldValue(fieldDefinition.binding, inputValue);
35
+ gui.setFieldValue(fieldDefinition.binding, inputValue);
36
36
  const result = gui.getFieldValue(fieldDefinition.binding);
37
37
  if (result.error) {
38
38
  throw new Error(result.error.msg);
@@ -46,7 +46,7 @@ async function handleInput(event) {
46
46
  }
47
47
  checking = true;
48
48
  try {
49
- await gui.saveSelectToken(token.key, currentTarget.value);
49
+ await gui.setSelectToken(token.key, currentTarget.value);
50
50
  await getInfoForSelectedToken();
51
51
  } catch (e) {
52
52
  const errorMessage = e.message ? e.message : "Invalid token address.";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rainlanguage/ui-components",
3
- "version": "0.0.1-alpha.138",
3
+ "version": "0.0.1-alpha.139",
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.138",
56
+ "@rainlanguage/orderbook": "0.0.1-alpha.139",
57
57
  "@reown/appkit": "1.6.4",
58
58
  "@reown/appkit-adapter-wagmi": "1.6.4",
59
59
  "@sentry/sveltekit": "7.120.0",