@kubohiroya/turbowarp-react-islands 0.3.1 → 0.5.0
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.ja.md +5 -2
- package/README.md +5 -2
- package/assets/block-icon.svg +1 -0
- package/dist/turbowarp-react-islands.js +9657 -8385
- package/docs/index.html +9 -3
- package/package.json +12 -11
- package/src/config.ts +1 -1
package/README.ja.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# TurboWarp React Islands
|
|
2
2
|
|
|
3
|
+
<img src="assets/block-icon.svg" alt="" width="48" height="48">
|
|
4
|
+
|
|
3
5
|
[English](README.md)
|
|
4
6
|
|
|
5
7
|
`turbowarp-http-server` と `turbowarp-html` で作るHTMLレスポンスの一部に、Reactコンポーネントを island として埋め込むためのTurboWarp拡張とTypeScriptヘルパーです。
|
|
@@ -19,7 +21,7 @@ MVPでは、TurboWarp内でReactを実行しきることはしません。まず
|
|
|
19
21
|
## インストール
|
|
20
22
|
|
|
21
23
|
```bash
|
|
22
|
-
pnpm add --save-exact @kubohiroya/turbowarp-react-islands@0.
|
|
24
|
+
pnpm add --save-exact @kubohiroya/turbowarp-react-islands@0.5.0
|
|
23
25
|
```
|
|
24
26
|
|
|
25
27
|
## できること
|
|
@@ -32,7 +34,7 @@ pnpm add --save-exact @kubohiroya/turbowarp-react-islands@0.3.1
|
|
|
32
34
|
|
|
33
35
|
## 要件と注意
|
|
34
36
|
|
|
35
|
-
- Node.js
|
|
37
|
+
- Node.js 24以上
|
|
36
38
|
- Corepack経由のpnpm
|
|
37
39
|
- TurboWarp
|
|
38
40
|
- HTTP/HTML合成に使う `turbowarp-http-server` と `turbowarp-html`
|
|
@@ -43,6 +45,7 @@ propsはJSONに限定します。関数、class instance、DOM node、hooksの
|
|
|
43
45
|
## 開発
|
|
44
46
|
|
|
45
47
|
```bash
|
|
48
|
+
npm install --global corepack@latest
|
|
46
49
|
corepack enable
|
|
47
50
|
pnpm install --frozen-lockfile
|
|
48
51
|
pnpm run check
|
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# TurboWarp React Islands
|
|
2
2
|
|
|
3
|
+
<img src="assets/block-icon.svg" alt="" width="48" height="48">
|
|
4
|
+
|
|
3
5
|
[日本語](README.ja.md)
|
|
4
6
|
|
|
5
7
|
TurboWarp extension and TypeScript helpers for describing React islands inside
|
|
@@ -22,7 +24,7 @@ descriptors and HTML fragments that a later build step can consume.
|
|
|
22
24
|
## Installation
|
|
23
25
|
|
|
24
26
|
```bash
|
|
25
|
-
pnpm add --save-exact @kubohiroya/turbowarp-react-islands@0.
|
|
27
|
+
pnpm add --save-exact @kubohiroya/turbowarp-react-islands@0.5.0
|
|
26
28
|
```
|
|
27
29
|
|
|
28
30
|
## What it does
|
|
@@ -35,7 +37,7 @@ pnpm add --save-exact @kubohiroya/turbowarp-react-islands@0.3.1
|
|
|
35
37
|
|
|
36
38
|
## Requirements and safety
|
|
37
39
|
|
|
38
|
-
- Node.js
|
|
40
|
+
- Node.js 24 or newer;
|
|
39
41
|
- pnpm through Corepack;
|
|
40
42
|
- TurboWarp;
|
|
41
43
|
- `turbowarp-http-server` and `turbowarp-html` for HTTP/HTML composition;
|
|
@@ -47,6 +49,7 @@ state are intentionally outside the block contract.
|
|
|
47
49
|
## Development
|
|
48
50
|
|
|
49
51
|
```bash
|
|
52
|
+
npm install --global corepack@latest
|
|
50
53
|
corepack enable
|
|
51
54
|
pnpm install --frozen-lockfile
|
|
52
55
|
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M28.0 27.0L28.0 5.0M28.0 27.0L43.6 11.4M28.0 27.0L50.0 27.0M28.0 27.0L43.6 42.6M28.0 27.0L28.0 49.0M28.0 27.0L12.4 42.6M28.0 27.0L6.0 27.0M28.0 27.0L12.4 11.4" stroke="#2563EB" stroke-width="1.04" stroke-linecap="round"/><path d="M28.0 10.0L40.0 15.0L45.0 27.0L40.0 39.0L28.0 44.0L16.0 39.0L11.0 27.0L16.0 15.0Z" fill="none" stroke="#2563EB" stroke-width="1.3" stroke-linejoin="round"/><path d="M22.5 21h11.5l7 7v14.5a2 2 0 0 1-2 2H22.5a2 2 0 0 1-2-2V23a2 2 0 0 1 2-2z" fill="#fff" stroke="#16305C" stroke-width="2.4" stroke-linejoin="round"/><path d="M34 21v7h7" fill="none" stroke="#16305C" stroke-width="2.4" stroke-linejoin="round"/><rect x="24.5" y="30" width="11.5" height="5.5" rx="2.2" fill="#F2A33A"/><rect x="24.5" y="37.5" width="7.5" height="5.5" rx="2.2" fill="#F2A33A"/><path d="M14 0V8.0" stroke="#16305C" stroke-width="1.5" stroke-linecap="round"/><path d="M12.3 8.5L6.1 6.9L3.1 2.9M15.7 8.5L21.9 6.9L24.9 2.9M12.3 10.0L5.4 9.9L2.1 6.9M15.7 10.0L22.6 9.9L25.9 6.9M12.3 11.8L5.4 11.9L2.1 14.9M15.7 11.8L22.6 11.9L25.9 14.9M12.3 13.3L6.1 14.9L3.1 18.9M15.7 13.3L21.9 14.9L24.9 18.9" fill="none" stroke="#16305C" stroke-width="1.05" stroke-linecap="round" stroke-linejoin="round"/><circle cx="14" cy="10.9" r="3.4" fill="#16305C"/><circle cx="14" cy="15.1" r="2.3" fill="#16305C"/></svg>
|