26.0.3 • Published 4 months ago

@weavy/uikit-react v26.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

@weavy/uikit-react

React components based UIKit for Weavy powered by @weavy/uikit-web web components under the hood. It comes with regular React components for Weavy Blocks and React hooks for simplified configuration and usage.

See UIKit React documentation.

Installation

npm install @weavy/uikit-react

Getting started

You need a Weavy server in order to test any of the frontend examples. If you don't have one, you can create one for free after signing up for an account on get.weavy.com.

You also need an application with a user system and a token endpoint. See Weavy Authentication for more info about configuring authentication and single sign-on between your application and Weavy.

Weavy docs

Use Weavy React Components

To use any block you must first configure Weavy with an url and a tokenUrl or tokenFactory. This can be done using the useWeavy hook or alternatively use the <WyContext /> provider.

import { useWeavy, WyMessenger } from "@weavy/uikit-react";

export function App() {
  const weavy = useWeavy({
    url: "https://myenvironment.weavy.io",
    tokenUrl: "https://myserver.test/api/token",
  });

  return (
    <>
      ...
      <WyMessenger />
    </>
  );
}

Run the React components demo in developer mode

The developer mode compiles and starts up a developer server that also provides authentication for a single developer user.

.env

You must provide an .env file with your WEAVY_URL and WEAVY_APIKEY to run the development test server. See the .env.example for an example configuration.

WEAVY_URL="https://mysite.weavy.io"
WEAVY_APIKEY=""

Dev server

Once you have configured you .env you can start up the auth server and dev server. The dev server runs in watch mode.

npm install
npm start
26.0.3

4 months ago

26.0.2

4 months ago

26.0.1

4 months ago

26.0.0

5 months ago

25.2.0

6 months ago

25.1.0

7 months ago

25.0.0

8 months ago

24.4.1

9 months ago

24.3.1

9 months ago

24.3.0

9 months ago

24.1.0

10 months ago

24.4.0

9 months ago

24.2.0

9 months ago

24.0.4

10 months ago

24.0.3

10 months ago

23.4.0

12 months ago

23.2.1

1 year ago

23.2.0

1 year ago

23.3.0

12 months ago

24.0.2

11 months ago

24.0.1

11 months ago

24.0.0

11 months ago

23.1.1

1 year ago

23.0.0

1 year ago

23.1.0

1 year ago

22.2.1

1 year ago

22.2.0

1 year ago

22.1.0

1 year ago

22.0.0

1 year ago

21.1.2

1 year ago

21.1.1

1 year ago

21.1.0

1 year ago

21.0.0

1 year ago

20.0.0

1 year ago

19.1.2

1 year ago

19.1.1

1 year ago

19.1.0

1 year ago

19.0.6

1 year ago

19.0.5

1 year ago

19.0.4

1 year ago

19.0.3

1 year ago

19.0.2

2 years ago

19.0.1

2 years ago

19.0.0

2 years ago

18.0.2

2 years ago

18.0.1

2 years ago

18.0.0

2 years ago

17.2.1

2 years ago

17.2.0

2 years ago

17.0.3

2 years ago

17.0.2

2 years ago

15.0.0

2 years ago

17.0.4

2 years ago

15.0.1

2 years ago

17.1.0

2 years ago

17.0.1

2 years ago

17.0.0

2 years ago

14.0.0

3 years ago

16.0.2

2 years ago

14.0.1

3 years ago

16.0.1

2 years ago

14.0.2

3 years ago

16.0.0

2 years ago

14.0.3

3 years ago

14.0.4

3 years ago

13.0.0

3 years ago

12.1.0

3 years ago

11.2.0

3 years ago

11.1.0

3 years ago

11.0.1

3 years ago

11.0.0

3 years ago