@mebius-io/react 0.1.0 → 0.1.1
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 +6 -17
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,28 +9,17 @@ README `@mebius-io/web`; di sini fokus API hooks.
|
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
tarball dalam satu perintah** supaya dependency `@mebius-io/web` terpenuhi dari
|
|
15
|
-
tarball lokal (kalau tidak, npm akan mencoba mengambilnya dari registry dan
|
|
16
|
-
gagal):
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
# Maintainer (di repo SDK):
|
|
20
|
-
pnpm pack:all # -> mebius-web-0.1.0.tgz, mebius-react-0.1.0.tgz (di root repo)
|
|
21
|
-
|
|
22
|
-
# Consumer (kedua tarball sekaligus + react):
|
|
23
|
-
npm i ./mebius-web-0.1.0.tgz ./mebius-react-0.1.0.tgz react
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
Setelah dipublish ke registry npm (opsi masa depan):
|
|
12
|
+
Sudah **live di npm** (public). `@mebius-io/react` butuh `@mebius-io/web` (peer)
|
|
13
|
+
dan `react`:
|
|
27
14
|
|
|
28
15
|
```bash
|
|
29
16
|
npm i @mebius-io/react @mebius-io/web react
|
|
17
|
+
# atau: pnpm add @mebius-io/react @mebius-io/web react
|
|
30
18
|
```
|
|
31
19
|
|
|
32
|
-
>
|
|
33
|
-
> `
|
|
20
|
+
> Butuh install offline / tanpa registry? Pakai tarball — install kedua tarball
|
|
21
|
+
> (`web` + `react`) dalam satu perintah supaya `@mebius-io/web` terpenuhi lokal.
|
|
22
|
+
> Detail di README [`@mebius-io/web`](../web#distribusi-via-tarball-offline--tanpa-registry).
|
|
34
23
|
|
|
35
24
|
## Hooks
|
|
36
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mebius-io/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "React hooks for the Mebius Web SDK — a thin layer over @mebius-io/web.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"directory": "packages/react"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@mebius-io/web": "0.1.
|
|
28
|
+
"@mebius-io/web": "0.1.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": ">=18"
|