@mebius-io/react 0.1.0 → 0.1.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 +7 -18
- 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):
|
|
12
|
+
Sudah **live di npm** (public). Satu perintah cukup — `@mebius-io/web`
|
|
13
|
+
(dependency) dan `react` (peer) ikut otomatis dari registry:
|
|
17
14
|
|
|
18
15
|
```bash
|
|
19
|
-
|
|
20
|
-
|
|
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):
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
npm i @mebius-io/react @mebius-io/web react
|
|
16
|
+
npm i @mebius-io/react
|
|
17
|
+
# atau: pnpm add @mebius-io/react / yarn add @mebius-io/react
|
|
30
18
|
```
|
|
31
19
|
|
|
32
|
-
>
|
|
33
|
-
>
|
|
20
|
+
> Butuh install offline / tanpa registry? Pakai tarball — di mode ini `@mebius-io/web`
|
|
21
|
+
> TIDAK ikut otomatis, jadi install kedua tarball (`web` + `react`) dalam satu
|
|
22
|
+
> perintah. 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.2",
|
|
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.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": ">=18"
|