@parhelia/editor-bridge-react 0.3.12771 → 0.3.12788
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 +9 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Render the full bridge script directly in Parhelia editing mode:
|
|
|
7
7
|
```tsx
|
|
8
8
|
import { ParheliaBridgeScript } from "@parhelia/editor-bridge-react";
|
|
9
9
|
|
|
10
|
-
<ParheliaBridgeScript searchParams={searchParams}
|
|
10
|
+
<ParheliaBridgeScript searchParams={searchParams} />;
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
By default, `ParheliaBridgeScript` renders only for `?parhelia=1` and reads
|
|
@@ -39,3 +39,11 @@ The Sitecore origin should come from trusted server config or fixed application
|
|
|
39
39
|
code. Do not source it from the query string or a parent-window message. For
|
|
40
40
|
cross-origin rendering hosts, allow the Sitecore origin that serves this script
|
|
41
41
|
in `script-src`.
|
|
42
|
+
|
|
43
|
+
Background page screenshot and DOM capture render the target in preview mode
|
|
44
|
+
with `?parhelia=1`. Same-origin and Sitecore-proxied pages can receive the
|
|
45
|
+
bridge through Parhelia's parent-injection fallback. A direct cross-origin
|
|
46
|
+
rendering host cannot be modified by the parent browser, so it must render
|
|
47
|
+
`ParheliaBridgeScript` whenever `parhelia=1`, including preview requests where
|
|
48
|
+
Sitecore's normal editing flag is false. Configure the host bridge with an
|
|
49
|
+
explicit Parhelia/Sitecore parent origin; do not use a wildcard allowed origin.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parhelia/editor-bridge-react",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.12788",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@repo/typescript-config": "*",
|
|
34
34
|
"@types/react": "19.2.17",
|
|
35
|
-
"typescript": "
|
|
35
|
+
"@typescript/native": "npm:typescript@7.0.2",
|
|
36
|
+
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
36
37
|
"vitest": "^4.1.5"
|
|
37
38
|
}
|
|
38
39
|
}
|