@symbiote-native/react 0.2.5 → 0.2.7
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/build/{create-portal.js → create-portal/index.js} +1 -1
- package/build/index.js +2 -2
- package/package.json +7 -5
- /package/build/{create-portal.d.ts → create-portal/index.d.ts} +0 -0
- /package/build/{create-tunnel.d.ts → create-tunnel/index.d.ts} +0 -0
- /package/build/{create-tunnel.js → create-tunnel/index.js} +0 -0
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// independently-mounted SymbioteSurface. Cross-surface targets aren't wired: resetAfterCommit only
|
|
12
12
|
// fires for the primary root's own container, so a different surface's tree would never repaint.
|
|
13
13
|
import { isSymbioteNode, SymbioteSurface } from '@symbiote-native/engine';
|
|
14
|
-
import reconciler from '
|
|
14
|
+
import reconciler from '../host-config.js';
|
|
15
15
|
export function createPortal(children, container, key) {
|
|
16
16
|
if (!(container instanceof SymbioteSurface) && !isSymbioteNode(container)) {
|
|
17
17
|
throw new Error('createPortal target must be an already-mounted host node (e.g. a ref to a rendered <View>) — got something else. Did you forget `.current`/`.value`, or pass a CSS-selector-style string?');
|
package/build/index.js
CHANGED
|
@@ -26,12 +26,12 @@ export { mount, unmount } from './render.js';
|
|
|
26
26
|
// createPortal: react-reconciler's Fiber-level portal, working here because @symbiote-native/react is
|
|
27
27
|
// mutation-mode (unlike stock RN's persistent-mode Fabric renderer, which doesn't support it —
|
|
28
28
|
// see create-portal.ts). v1 scope: target must be an already-mounted node in the SAME surface.
|
|
29
|
-
export { createPortal } from './create-portal.js';
|
|
29
|
+
export { createPortal } from './create-portal/index.js';
|
|
30
30
|
// createTunnel: cross-surface content sharing. createPortal/Teleport stay same-surface-only
|
|
31
31
|
// by design — a real React portal can't reach across two separate reconciler roots either
|
|
32
32
|
// (see github.com/facebook/react/issues/17147), so reaching a different surface means letting
|
|
33
33
|
// that surface commit its own content by reading from a shared store instead.
|
|
34
|
-
export { createTunnel } from './create-tunnel.js';
|
|
34
|
+
export { createTunnel } from './create-tunnel/index.js';
|
|
35
35
|
// descriptorToReact: the @symbiote-native/components Descriptor → React.createElement bridge. Exported so
|
|
36
36
|
// an external wrapper package (e.g. @symbiote-native/slider/react over a third-party native view) can map
|
|
37
37
|
// a shared render fn's Descriptor onto React elements through the SAME bridge the adapter uses.
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbiote-native/react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "SymbioteNative's React adapter — a react-reconciler host config (mutation mode) driving real native iOS/Android views through stock React Native Fabric.",
|
|
5
|
+
"license": "MIT",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
7
8
|
"url": "git+https://github.com/OneEyed1366/symbiote-native.git",
|
|
@@ -36,11 +37,11 @@
|
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
39
|
"react-reconciler": "^0.33.0",
|
|
39
|
-
"@symbiote-native/components": "0.2.
|
|
40
|
-
"@symbiote-native/css-parser": "0.2.
|
|
41
|
-
"@symbiote-native/engine": "0.1.5"
|
|
40
|
+
"@symbiote-native/components": "0.2.6",
|
|
41
|
+
"@symbiote-native/css-parser": "0.2.3"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
+
"@symbiote-native/engine": ">=0.1.7",
|
|
44
45
|
"react": ">=19.0.0",
|
|
45
46
|
"react-native": ">=0.86"
|
|
46
47
|
},
|
|
@@ -48,7 +49,8 @@
|
|
|
48
49
|
"@types/react": "^19.2.0",
|
|
49
50
|
"@types/react-reconciler": "^0.32.2",
|
|
50
51
|
"react": "19.2.3",
|
|
51
|
-
"@symbiote-native/
|
|
52
|
+
"@symbiote-native/engine": "0.1.7",
|
|
53
|
+
"@symbiote-native/test-utils": "0.1.6"
|
|
52
54
|
},
|
|
53
55
|
"scripts": {
|
|
54
56
|
"typecheck": "tsc --build",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|