@parhelia/editor-bridge-head-react 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 ADDED
@@ -0,0 +1,14 @@
1
+ # Parhelia Editor Bridge Head React
2
+
3
+ React helper for adding the Parhelia editor bridge head to rendering hosts.
4
+
5
+ The component renders the framework-agnostic stub script tag:
6
+
7
+ ```tsx
8
+ <ParheliaBridgeHead />
9
+ ```
10
+
11
+ Projects still need to serve `parhelia-stub.js` and `parhelia-bridge.js`,
12
+ usually by copying them from `@parhelia/editor-bridge-head/host/v1/` into
13
+ public assets. The stub connects to the parent editor, receives the canonical
14
+ bridge URL, validates it, and bootstraps the full bridge.
@@ -0,0 +1,3 @@
1
+ import { type ReactElement } from "react";
2
+ export declare function ParheliaBridgeHead(): ReactElement;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAEzD,wBAAgB,kBAAkB,IAAI,YAAY,CAMjD"}
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ import { PARHELIA_EDITOR_BRIDGE_HEAD_STUB_PATH } from "@parhelia/editor-bridge-head";
2
+ import { createElement } from "react";
3
+ export function ParheliaBridgeHead() {
4
+ return createElement("script", {
5
+ id: "parhelia-editing-bridge",
6
+ src: PARHELIA_EDITOR_BRIDGE_HEAD_STUB_PATH,
7
+ defer: true,
8
+ });
9
+ }
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@parhelia/editor-bridge-head-react",
3
+ "version": "0.1.12875",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "main": "./dist/index.js",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "development": "./src/index.ts",
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.js"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist/",
19
+ "README.md",
20
+ "LICENSE"
21
+ ],
22
+ "type": "module",
23
+ "scripts": {
24
+ "build": "tsc -p tsconfig.build.json",
25
+ "build:native": "tsgo -p tsconfig.build.json",
26
+ "check-types": "tsc --noEmit -p tsconfig.build.json",
27
+ "check-types:native": "tsgo --noEmit -p tsconfig.build.json"
28
+ },
29
+ "dependencies": {
30
+ "@parhelia/editor-bridge-head": "*"
31
+ },
32
+ "peerDependencies": {
33
+ "react": ">=18"
34
+ },
35
+ "devDependencies": {
36
+ "@repo/typescript-config": "*",
37
+ "@types/react": "19.2.14",
38
+ "typescript": "5.8.2"
39
+ }
40
+ }