@lifi/widget 3.0.0-alpha.1 → 3.0.0-alpha.2

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.
package/README.md ADDED
@@ -0,0 +1,89 @@
1
+ <div align="center">
2
+
3
+ [![license](https://img.shields.io/badge/license-Apache%202-blue)](/LICENSE.md)
4
+ [![npm latest package](https://img.shields.io/npm/v/@lifi/widget/latest.svg)](https://www.npmjs.com/package/@lifi/widget)
5
+ [![npm downloads](https://img.shields.io/npm/dm/@lifi/widget.svg)](https://www.npmjs.com/package/@lifi/widget)
6
+ [![Crowdin](https://badges.crowdin.net/lifi-widget/localized.svg)](https://crowdin.com/project/lifi-widget)
7
+ [![Follow on Twitter](https://img.shields.io/twitter/follow/lifiprotocol.svg?label=follow+LI.FI)](https://twitter.com/lifiprotocol)
8
+
9
+ </div>
10
+
11
+ <h1 align="center">LI.FI Widget</h1>
12
+
13
+ This repository contains LI.FI Widget and supporting libraries.
14
+
15
+ - [_LI.FI Widget_](https://li.fi/widget/) for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
16
+
17
+ - [_LI.FI Wallet Management_](https://www.npmjs.com/package/@lifi/wallet-management) is our library of hooks that can help you gain complete control over your app's wallet management.
18
+
19
+ ## Installation
20
+
21
+ ### LI.FI Widget
22
+
23
+ LI.FI Widget is available as an [npm package](https://www.npmjs.com/package/@lifi/widget).
24
+
25
+ **npm:**
26
+
27
+ ```sh
28
+ npm install @lifi/widget
29
+ ```
30
+
31
+ **yarn:**
32
+
33
+ ```sh
34
+ yarn add @lifi/widget
35
+ ```
36
+
37
+ ### LI.FI Wallet Management
38
+
39
+ LI.FI Wallet Management is available as an [npm package](https://www.npmjs.com/package/@lifi/wallet-management).
40
+
41
+ **npm:**
42
+
43
+ ```sh
44
+ npm install @lifi/wallet-management
45
+ ```
46
+
47
+ **yarn:**
48
+
49
+ ```sh
50
+ yarn add @lifi/wallet-management
51
+ ```
52
+
53
+ ## Getting started with LI.FI Widget
54
+
55
+ Here is an example of a basic app using LI.FI Widget:
56
+
57
+ ```tsx
58
+ import { LiFiWidget, WidgetConfig } from '@lifi/widget';
59
+
60
+ const widgetConfig: WidgetConfig = {
61
+ containerStyle: {
62
+ border: '1px solid rgb(234, 234, 234)',
63
+ borderRadius: '16px',
64
+ },
65
+ };
66
+
67
+ export const WidgetPage = () => {
68
+ return (
69
+ <LiFiWidget integrator="Your dApp/company name" config={widgetConfig} />
70
+ );
71
+ };
72
+ ```
73
+
74
+ ## Examples
75
+
76
+ Visit our [playground](https://playground.li.fi) to see how you can customize your [LI.FI Widget](https://www.npmjs.com/package/@lifi/widget) experience.
77
+
78
+ ## Documentation
79
+
80
+ [LI.FI Widget Documentation](https://docs.li.fi/integrate-li.fi-widget/li.fi-widget-overview)
81
+
82
+ ## Changelog
83
+
84
+ The [changelog](/CHANGELOG.md) is regularly updated to reflect what's changed in each new release.
85
+
86
+ ## License
87
+
88
+ This project is licensed under the terms of the
89
+ [Apache-2.0](/LICENSE.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/widget",
3
- "version": "3.0.0-alpha.1",
3
+ "version": "3.0.0-alpha.2",
4
4
  "description": "LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
5
5
  "type": "module",
6
6
  "main": "./src/_esm/index.js",
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@lifi/widget";
2
- export declare const version = "3.0.0-alpha.1";
2
+ export declare const version = "3.0.0-alpha.2";
@@ -1,3 +1,3 @@
1
1
  export const name = '@lifi/widget';
2
- export const version = '3.0.0-alpha.1';
2
+ export const version = '3.0.0-alpha.2';
3
3
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
1
  export const name = '@lifi/widget';
2
- export const version = '3.0.0-alpha.1';
2
+ export const version = '3.0.0-alpha.2';