@parhelia/editor-bridge-head 0.1.12875
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 +22 -0
- package/dist/host/v1/parhelia-bridge.js +2699 -0
- package/dist/host/v1/parhelia-stub.js +185 -0
- package/dist/index.d.ts +510 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +189 -0
- package/package.json +40 -0
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Parhelia Editor Bridge Head
|
|
2
|
+
|
|
3
|
+
Bridge head package for the Parhelia cross-origin editing bridge.
|
|
4
|
+
|
|
5
|
+
It contains the shared protocol types, runtime guards, and generated host
|
|
6
|
+
artifacts for `parhelia-bridge.js` and the `parhelia-stub.js` bootloader.
|
|
7
|
+
The package intentionally has no React dependency; use
|
|
8
|
+
`@parhelia/editor-bridge-head-react` for a React script-tag helper.
|
|
9
|
+
|
|
10
|
+
## Debugging
|
|
11
|
+
|
|
12
|
+
Enable bridge message logging in the browser console with either:
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
localStorage.setItem("parhelia:bridge:debug", "1");
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
or by adding `parhelia_bridge_debug=1` to the editor and rendering host URLs.
|
|
19
|
+
|
|
20
|
+
Logs are emitted as collapsed console groups named `[Parhelia bridge] ...`.
|
|
21
|
+
Fields with names like `token`, `secret`, `signedContext`, or `sessionId` are
|
|
22
|
+
redacted before logging.
|