@zhyi64/onepc-bridge 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 +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @zhyi64/
|
|
1
|
+
# @zhyi64/onepc-bridge
|
|
2
2
|
|
|
3
3
|
统一的跨 iframe 通信 SDK,用于多层嵌套 iframe 架构的消息路由与转发。
|
|
4
4
|
|
|
@@ -15,7 +15,7 @@ C (openclaw) ← 叶节点
|
|
|
15
15
|
## 安装
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
npm install @zhyi64/
|
|
18
|
+
npm install @zhyi64/onepc-bridge
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
## 快速开始
|
|
@@ -23,7 +23,7 @@ npm install @zhyi64/message-bridge
|
|
|
23
23
|
### 叶节点 (C - openclaw)
|
|
24
24
|
|
|
25
25
|
```typescript
|
|
26
|
-
import { OnePcBridge } from '@zhyi64/
|
|
26
|
+
import { OnePcBridge } from '@zhyi64/onepc-bridge'
|
|
27
27
|
|
|
28
28
|
const bridge = new OnePcBridge({
|
|
29
29
|
nodeId: 'openclaw',
|
|
@@ -45,7 +45,7 @@ bridge.on('theme', (payload) => {
|
|
|
45
45
|
### 中间节点 (B - intelligent-web)
|
|
46
46
|
|
|
47
47
|
```typescript
|
|
48
|
-
import { OnePcBridge } from '@zhyi64/
|
|
48
|
+
import { OnePcBridge } from '@zhyi64/onepc-bridge'
|
|
49
49
|
|
|
50
50
|
const bridge = new OnePcBridge({
|
|
51
51
|
nodeId: 'intelligent',
|
|
@@ -63,7 +63,7 @@ bridge.init()
|
|
|
63
63
|
### 根节点 (A - onepcweb)
|
|
64
64
|
|
|
65
65
|
```typescript
|
|
66
|
-
import { OnePcBridge } from '@zhyi64/
|
|
66
|
+
import { OnePcBridge } from '@zhyi64/onepc-bridge'
|
|
67
67
|
|
|
68
68
|
const bridge = new OnePcBridge({
|
|
69
69
|
nodeId: 'onepcweb',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhyi64/onepc-bridge",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Unified cross-iframe communication SDK for nested iframe architecture (onepcweb → intelligent-web → openclaw)",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|