@rainlanguage/ui-components 0.0.1-alpha.44 → 0.0.1-alpha.45

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.
@@ -2,7 +2,8 @@
2
2
  import { RainlangLR } from "codemirror-rainlang";
3
3
  import { lightCodeMirrorTheme } from "../../utils/codeMirrorThemes";
4
4
  import { Button, Modal } from "flowbite-svelte";
5
- export let gui;
5
+ import { useGui } from "../../hooks/useGui";
6
+ const gui = useGui();
6
7
  let rainlangText = null;
7
8
  let open = false;
8
9
  async function generateRainlang() {
@@ -1,9 +1,6 @@
1
1
  import { SvelteComponent } from "svelte";
2
- import type { DotrainOrderGui } from '@rainlanguage/orderbook/js_api';
3
2
  declare const __propDef: {
4
- props: {
5
- gui: DotrainOrderGui;
6
- };
3
+ props: Record<string, never>;
7
4
  events: {
8
5
  [evt: string]: CustomEvent<any>;
9
6
  };
@@ -302,7 +302,7 @@ const areAllTokensSelected = async () => {
302
302
  {:else}
303
303
  <WalletConnect {appKitModal} connected={wagmiConnected} />
304
304
  {/if}
305
- <ComposedRainlangModal {gui} />
305
+ <ComposedRainlangModal />
306
306
  <ShareChoicesButton handleShareChoices={_handleShareChoices} />
307
307
  </div>
308
308
  {/if}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rainlanguage/ui-components",
3
- "version": "0.0.1-alpha.44",
3
+ "version": "0.0.1-alpha.45",
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.44",
56
+ "@rainlanguage/orderbook": "0.0.1-alpha.45",
57
57
  "@reown/appkit": "1.6.4",
58
58
  "@reown/appkit-adapter-wagmi": "1.6.4",
59
59
  "@sentry/sveltekit": "7.120.0",