@solidnative-dev/fabric-host 0.0.0-stage → 0.1.0-alpha.0

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.
Files changed (72) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +87 -2
  3. package/dist/fatal-error-handler.d.ts +27 -0
  4. package/dist/fatal-error-handler.d.ts.map +1 -0
  5. package/dist/fatal-error-handler.js +106 -0
  6. package/dist/fatal-error-handler.js.map +1 -0
  7. package/dist/index.d.ts +7 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +7 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/native-binding.d.ts +183 -0
  12. package/dist/native-binding.d.ts.map +1 -0
  13. package/dist/native-binding.js +554 -0
  14. package/dist/native-binding.js.map +1 -0
  15. package/dist/native-fabric-host.d.ts +32 -0
  16. package/dist/native-fabric-host.d.ts.map +1 -0
  17. package/dist/native-fabric-host.js +275 -0
  18. package/dist/native-fabric-host.js.map +1 -0
  19. package/dist/native-transaction.d.ts +17 -0
  20. package/dist/native-transaction.d.ts.map +1 -0
  21. package/dist/native-transaction.js +124 -0
  22. package/dist/native-transaction.js.map +1 -0
  23. package/dist/react-native-0.87.d.ts +61 -0
  24. package/dist/react-native-0.87.d.ts.map +1 -0
  25. package/dist/react-native-0.87.js +77 -0
  26. package/dist/react-native-0.87.js.map +1 -0
  27. package/dist/react-native-0.88.d.ts +77 -0
  28. package/dist/react-native-0.88.d.ts.map +1 -0
  29. package/dist/react-native-0.88.js +79 -0
  30. package/dist/react-native-0.88.js.map +1 -0
  31. package/dist/surface-readiness.d.ts +18 -0
  32. package/dist/surface-readiness.d.ts.map +1 -0
  33. package/dist/surface-readiness.js +43 -0
  34. package/dist/surface-readiness.js.map +1 -0
  35. package/native/README.md +502 -0
  36. package/native/SolidNativeFabric.podspec +84 -0
  37. package/native/android/SolidNativeBindingsInstaller.cpp +4218 -0
  38. package/native/android/SolidNativeBindingsInstaller.h +8 -0
  39. package/native/android/SolidNativeRuntime.cmake +61 -0
  40. package/native/android/java/dev/solidnative/runtime/SolidNativeBindingsInstaller.kt +239 -0
  41. package/native/android/java/dev/solidnative/runtime/SolidNativeDebugModule.kt +191 -0
  42. package/native/android/java/dev/solidnative/runtime/SolidNativePackage.kt +43 -0
  43. package/native/android/java/dev/solidnative/runtime/SolidNativePlatformModule.kt +81 -0
  44. package/native/android/java/dev/solidnative/runtime/SolidNativeStartupFailureView.kt +93 -0
  45. package/native/android/java/dev/solidnative/runtime/SolidNativeSurface.kt +423 -0
  46. package/native/android/solid-native.gradle +90 -0
  47. package/native/apple/SolidNativeDebugRequest.mm +421 -0
  48. package/native/fabric/SolidNativeDebugRequest.h +12 -0
  49. package/native/fabric/SolidNativeDirtyNodes.h +26 -0
  50. package/native/fabric/SolidNativeFabricApi.cpp +224 -0
  51. package/native/fabric/SolidNativeFabricApi.h +107 -0
  52. package/native/fabric/SolidNativeFabricApplication.h +32 -0
  53. package/native/fabric/SolidNativeFabricApplication.mm +373 -0
  54. package/native/fabric/SolidNativeFabricJSIBinding.h +43 -0
  55. package/native/fabric/SolidNativeFabricJSIBinding.mm +4491 -0
  56. package/native/fabric/SolidNativeFabricSmokeApplication.h +26 -0
  57. package/native/fabric/SolidNativeFabricSmokeApplication.mm +331 -0
  58. package/native/fabric/SolidNativeFabricSurface.h +63 -0
  59. package/native/fabric/SolidNativeFabricSurface.mm +549 -0
  60. package/native/fabric/SolidNativeFabricTransactionCoordinator.cpp +1275 -0
  61. package/native/fabric/SolidNativeFabricTransactionCoordinator.h +90 -0
  62. package/native/fabric/SolidNativeFabricTransactionCoordinatorApple.mm +97 -0
  63. package/native/fabric/SolidNativeRootViewController.h +20 -0
  64. package/native/fabric/SolidNativeRootViewController.mm +83 -0
  65. package/native/fabric/SolidNativeStagedNodeMap.h +104 -0
  66. package/native/fabric/SolidNativeStartupFailureView.h +17 -0
  67. package/native/fabric/SolidNativeStartupFailureView.mm +77 -0
  68. package/native/react-native-boundary.json +106 -0
  69. package/native/worklets/SolidNativeUIWorklet.cpp +1080 -0
  70. package/native/worklets/SolidNativeUIWorklet.h +245 -0
  71. package/package.json +41 -3
  72. package/scripts/verify-react-native-boundary.mjs +282 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Solid Native contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,88 @@
1
- # Temporary Holding Version
1
+ # `@solidnative-dev/fabric-host`
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ This private incubation package adapts the repository's pinned React Native
4
+ Fabric and Hermes ABI to the framework-neutral host contract. It owns the
5
+ JavaScript-side binding validation, transaction encoding, surface adapter, and
6
+ backend compatibility fingerprint. The same package owns the version-pinned
7
+ C++/Objective-C++/JNI adapter, CocoaPods target, and Android Gradle/CMake
8
+ integration; no Solid runtime source is part of that native boundary.
9
+
10
+ The package exports a machine-readable
11
+ `@solidnative-dev/fabric-host/react-native-boundary` manifest. Repository and
12
+ package checks regenerate its effective header, Kotlin, CocoaPods, and CMake
13
+ surface from source and require an exact match, so a React Native upgrade has a
14
+ small explicit review diff before either native toolchain runs.
15
+
16
+ The transaction encoder also owns React Native's RawProps color boundary.
17
+ Style colors and native color props are converted to the pinned platform
18
+ payload before Fabric sees them, including Android's exceptional
19
+ `underlineColorAndroid` name (which does not end in `Color`). This keeps
20
+ framework integrations from importing React Native's JavaScript component
21
+ wrappers merely to obtain their color preprocessing. The encoder takes the
22
+ target platform explicitly because Android uses signed 32-bit processed colors
23
+ while iOS uses their unsigned representation.
24
+
25
+ It deliberately does not depend on Solid, the Solid renderer, JSX, owners,
26
+ signals, or computations. Framework integrations consume this package through
27
+ `@solidnative-dev/host-contract`; `@solidnative-dev/runtime` remains the compatible
28
+ Solid application-bootstrap facade.
29
+
30
+ The package name is literal and provisional. Public naming is independent of
31
+ the architectural boundary.
32
+
33
+ ## Framework-neutral startup
34
+
35
+ Surface readiness belongs to this backend package rather than the Solid
36
+ runtime. A framework adapter can therefore use the complete public startup
37
+ boundary without importing Solid:
38
+
39
+ ```ts
40
+ import {
41
+ createNativeFabricHost,
42
+ getNativeHostBinding,
43
+ waitForNativeSurface,
44
+ } from "@solidnative-dev/fabric-host";
45
+
46
+ const binding = getNativeHostBinding();
47
+ await waitForNativeSurface({ binding, timeoutMs: 10_000 });
48
+ const host = createNativeFabricHost({ binding, descriptors });
49
+ const surface = host.createSurface({ name: "application" });
50
+ ```
51
+
52
+ `waitForNativeSurface` validates bounded timeout and polling options and throws
53
+ `NativeSurfaceStartupError` when the native shell never transfers ownership.
54
+ The Solid runtime re-exports this same primitive; it does not maintain a second
55
+ startup implementation.
56
+
57
+ Surface ownership is leased per native binding, not merely per JavaScript host
58
+ object. A second adapter therefore fails before it can allocate overlapping
59
+ node IDs or replace the active adapter's event routes. Failed ownership
60
+ transfer releases its provisional lease, while successful teardown releases
61
+ the lease only after the native shell reports that the surface has stopped.
62
+
63
+ The same boundary owns `installReactNativeFatalErrorHandler`. It routes fatal
64
+ Hermes failures into the package-owned native fallback, leaves recoverable
65
+ errors with the previous React Native handler, and restores that handler only
66
+ while it still owns the global slot. Framework adapters can use this without a
67
+ Solid runtime; Solid's `startNativeApplication` composes it with owner cleanup.
68
+
69
+ ## Hardware proof
70
+
71
+ The checked-in Android and iOS Release proofs consume this package and
72
+ `@solidnative-dev/host-contract` directly. They do not import Solid, the renderer,
73
+ runtime, core components, or navigation:
74
+
75
+ ```sh
76
+ pnpm --filter @solidnative-dev/native-e2e android:fabric-host:test
77
+ pnpm --filter @solidnative-dev/native-e2e ios:fabric-host:test
78
+ ```
79
+
80
+ On a connected phone, each proof mounts a native tree from raw host transactions,
81
+ receives a physical touchscreen press through Fabric, reverses and restores
82
+ equally styled rows without changing their count or identity, and commits a
83
+ native text update. The proof checks native row measurements after each reorder
84
+ and onscreen row positions through platform automation, observes the exact mount
85
+ and next-frame lifecycle events, then deletes every node and stops the surface.
86
+ Their source-map gates also reject any accidental framework source in the
87
+ Release bundle. A passing build or source-contract test is not physical-device
88
+ qualification of this scenario.
@@ -0,0 +1,27 @@
1
+ import { type NativeFabricBinding } from "./native-binding.js";
2
+ export type ReactNativeGlobalErrorHandler = (error: unknown, isFatal: boolean) => void;
3
+ export interface ReactNativeErrorUtils {
4
+ getGlobalHandler(): ReactNativeGlobalErrorHandler;
5
+ setGlobalHandler(handler: ReactNativeGlobalErrorHandler): void;
6
+ }
7
+ export interface ReactNativeFatalErrorHandlerOptions {
8
+ readonly binding?: NativeFabricBinding;
9
+ /** Injectable for tests or custom React Native hosts. Defaults to global ErrorUtils. */
10
+ readonly errorUtils?: ReactNativeErrorUtils;
11
+ /** Observes a native handoff failure before the prior handler takes over. */
12
+ readonly onError?: (error: unknown) => unknown;
13
+ }
14
+ export interface ReactNativeFatalErrorHandler {
15
+ /**
16
+ * Restores the prior global handler only if this handler still owns the slot.
17
+ * Returns false after removal or if another handler replaced it.
18
+ */
19
+ remove(): boolean;
20
+ }
21
+ /**
22
+ * Lets the package-owned native shell take over fatal Hermes errors after
23
+ * startup. Non-fatal errors remain with React Native's existing handler. If
24
+ * native takeover fails, the prior fatal handler is invoked synchronously.
25
+ */
26
+ export declare function installReactNativeFatalErrorHandler(options?: ReactNativeFatalErrorHandlerOptions): ReactNativeFatalErrorHandler;
27
+ //# sourceMappingURL=fatal-error-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fatal-error-handler.d.ts","sourceRoot":"","sources":["../src/fatal-error-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,mBAAmB,EACzB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,6BAA6B,GAAG,CAC1C,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,OAAO,KACb,IAAI,CAAC;AAEV,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,IAAI,6BAA6B,CAAC;IAClD,gBAAgB,CAAC,OAAO,EAAE,6BAA6B,GAAG,IAAI,CAAC;CAChE;AAED,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,OAAO,CAAC,EAAE,mBAAmB,CAAC;IACvC,wFAAwF;IACxF,QAAQ,CAAC,UAAU,CAAC,EAAE,qBAAqB,CAAC;IAC5C,6EAA6E;IAC7E,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;CAChD;AAED,MAAM,WAAW,4BAA4B;IAC3C;;;OAGG;IACH,MAAM,IAAI,OAAO,CAAC;CACnB;AA0DD;;;;GAIG;AACH,wBAAgB,mCAAmC,CACjD,OAAO,GAAE,mCAAwC,GAChD,4BAA4B,CAqE9B"}
@@ -0,0 +1,106 @@
1
+ import { IncompatibleNativeHostBindingError, getNativeHostBinding, reportNativeFatalError, supportsNativeFatalErrorReporting, } from "./native-binding.js";
2
+ function safeGlobalProperty(target, key) {
3
+ try {
4
+ return Reflect.get(target, key);
5
+ }
6
+ catch {
7
+ return undefined;
8
+ }
9
+ }
10
+ function requireReactNativeErrorUtils(value) {
11
+ if (value === null ||
12
+ (typeof value !== "object" && typeof value !== "function") ||
13
+ typeof safeGlobalProperty(value, "getGlobalHandler") !== "function" ||
14
+ typeof safeGlobalProperty(value, "setGlobalHandler") !== "function") {
15
+ throw new TypeError("React Native ErrorUtils must expose getGlobalHandler and setGlobalHandler.");
16
+ }
17
+ return value;
18
+ }
19
+ const INSTALLED_FATAL_HANDLERS = new WeakMap();
20
+ function activeFatalPredecessor(handler) {
21
+ let candidate = handler;
22
+ let installed = INSTALLED_FATAL_HANDLERS.get(candidate);
23
+ while (installed !== undefined && !installed.active()) {
24
+ candidate = installed.previous;
25
+ installed = INSTALLED_FATAL_HANDLERS.get(candidate);
26
+ }
27
+ return candidate;
28
+ }
29
+ function reportFatalHandlerError(handler, error) {
30
+ try {
31
+ const result = handler?.(error);
32
+ void Promise.resolve(result).catch(() => undefined);
33
+ }
34
+ catch {
35
+ // A diagnostic observer cannot replace the platform's prior fatal handler.
36
+ }
37
+ }
38
+ /**
39
+ * Lets the package-owned native shell take over fatal Hermes errors after
40
+ * startup. Non-fatal errors remain with React Native's existing handler. If
41
+ * native takeover fails, the prior fatal handler is invoked synchronously.
42
+ */
43
+ export function installReactNativeFatalErrorHandler(options = {}) {
44
+ if (options === null || typeof options !== "object") {
45
+ throw new TypeError("React Native fatal error handler options must be an object.");
46
+ }
47
+ if (options.onError !== undefined && typeof options.onError !== "function") {
48
+ throw new TypeError("onError must be a function when present.");
49
+ }
50
+ const binding = options.binding ?? getNativeHostBinding();
51
+ if (!supportsNativeFatalErrorReporting(binding)) {
52
+ throw new IncompatibleNativeHostBindingError([
53
+ "reportFatalError is unavailable.",
54
+ ]);
55
+ }
56
+ const errorUtils = requireReactNativeErrorUtils(options.errorUtils ?? safeGlobalProperty(globalThis, "ErrorUtils"));
57
+ const getGlobalHandler = safeGlobalProperty(errorUtils, "getGlobalHandler");
58
+ const setGlobalHandler = safeGlobalProperty(errorUtils, "setGlobalHandler");
59
+ const previous = getGlobalHandler.call(errorUtils);
60
+ if (typeof previous !== "function") {
61
+ throw new TypeError("React Native ErrorUtils returned an invalid global handler.");
62
+ }
63
+ let active = true;
64
+ const handler = (error, isFatal) => {
65
+ if (!active || isFatal !== true) {
66
+ activeFatalPredecessor(previous)(error, isFatal);
67
+ return;
68
+ }
69
+ try {
70
+ reportNativeFatalError(binding, error);
71
+ }
72
+ catch (handoffError) {
73
+ reportFatalHandlerError(options.onError, handoffError);
74
+ activeFatalPredecessor(previous)(error, isFatal);
75
+ }
76
+ };
77
+ INSTALLED_FATAL_HANDLERS.set(handler, {
78
+ previous,
79
+ active: () => active,
80
+ });
81
+ setGlobalHandler.call(errorUtils, handler);
82
+ return Object.freeze({
83
+ remove() {
84
+ if (!active)
85
+ return false;
86
+ active = false;
87
+ let current;
88
+ try {
89
+ current = getGlobalHandler.call(errorUtils);
90
+ }
91
+ catch {
92
+ return false;
93
+ }
94
+ if (current !== handler)
95
+ return false;
96
+ try {
97
+ setGlobalHandler.call(errorUtils, activeFatalPredecessor(previous));
98
+ return true;
99
+ }
100
+ catch {
101
+ return false;
102
+ }
103
+ },
104
+ });
105
+ }
106
+ //# sourceMappingURL=fatal-error-handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fatal-error-handler.js","sourceRoot":"","sources":["../src/fatal-error-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,oBAAoB,EACpB,sBAAsB,EACtB,iCAAiC,GAElC,MAAM,qBAAqB,CAAC;AA4B7B,SAAS,kBAAkB,CAAC,MAAc,EAAE,GAAW;IACrD,IAAI,CAAC;QACH,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,SAAS,4BAA4B,CAAC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O,EAAE,YAAY,CAAC,CAAC;YACvD,sBAAsB,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACnD,CAAC;IACH,CAAC,CAAC;IACF,wBAAwB,CAAC,GAAG,CAAC,OAAO,EAAE;QACpC,QAAQ;QACR,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM;KACrB,CAAC,CAAC;IACH,gBAAgB,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC3C,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,MAAM;YACJ,IAAI,CAAC,MAAM;gBAAE,OAAO,KAAK,CAAC;YAC1B,MAAM,GAAG,KAAK,CAAC;YACf,IAAI,OAAsC,CAAC;YAC3C,IAAI,CAAC;gBACH,OAAO,GAAG,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC9C,CAAC;YAAC,MAAM,CAAC;gBACP,OAAO,KAAK,CAAC;YACf,CAAC;YACD,IAAI,OAAO,KAAK,OAAO;gBAAE,OAAO,KAAK,CAAC;YACtC,IAAI,CAAC;gBACH,gBAAgB,CAAC,IAAI,CAAC,UAAU,EAAE,sBAAsB,CAAC,QAAQ,CAAC,CAAC,CAAC;gBACpE,OAAO,IAAI,CAAC;YACd,CAAC;YAAC,MAAM,CAAC;gBACP,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,7 @@
1
+ export { IncompatibleNativeBackendError, REACT_NATIVE_0_88_BACKEND, VERIFIED_NATIVE_BACKEND, assertCompatibleNativeBackend, inspectNativeBackend, type NativeBackendDefinition, type NativeBackendFingerprint, type NativeBackendProof, type NativeBackendValidationReport, type NativePlatform, } from "./react-native-0.88.js";
2
+ export { createNativeHostTransaction, type NativeHostTransaction, } from "./native-transaction.js";
3
+ export { IncompatibleNativeHostBindingError, NATIVE_FATAL_ERROR_MESSAGE_MAX_LENGTH, NATIVE_FATAL_ERROR_NAME_MAX_LENGTH, NATIVE_HOST_GLOBAL, NATIVE_RESOURCE_KIND_MAX_LENGTH, NATIVE_RESOURCE_REFERENCE_KEY, assertNativeHostBinding, commitNativeHostTransaction, getNativeHostBinding, measureNativeHostNode, readNativeSurfaceInfo, reportNativeFatalError, retainNativeResource, supportsNativeFatalErrorReporting, supportsNativeStatusBarControl, supportsNativeUIWorkletDecays, supportsNativeUIWorkletAnimationCancellation, supportsNativeUIWorkletKeyframes, supportsNativeUIWorkletPanGestures, supportsNativeUIWorkletPanGestureDetachment, supportsNativeUIWorkletSprings, supportsNativeUIWorkletTimings, supportsNativeUIWorklets, subscribeToNativeHostCommitLifecycle, subscribeToNativeHostEvents, type NativeFabricBinding, type NativeFabricStatusBarAnimation, type NativeFabricStatusBarStyle, type NativeResourceReference, type NativeSurfaceInfo, type NativeUIWorkletDecay, type NativeUIWorkletFrameStatistics, type NativeUIWorkletInfo, type NativeUIWorkletPanGesture, type NativeUIWorkletSpring, type NativeUIWorkletTiming, type NativeUIWorkletTimingEasing, type NativeUIWorkletTimingKeyframe, type RetainedNativeResource, } from "./native-binding.js";
4
+ export { NativeFabricHost, NativeFabricSurfaceOwnershipError, createNativeFabricHost, type NativeFabricHostOptions, } from "./native-fabric-host.js";
5
+ export { NativeSurfaceStartupError, waitForNativeSurface, type WaitForNativeSurfaceOptions, } from "./surface-readiness.js";
6
+ export { installReactNativeFatalErrorHandler, type ReactNativeErrorUtils, type ReactNativeFatalErrorHandler, type ReactNativeFatalErrorHandlerOptions, type ReactNativeGlobalErrorHandler, } from "./fatal-error-handler.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,yBAAyB,EACzB,uBAAuB,EACvB,6BAA6B,EAC7B,oBAAoB,EACpB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,kBA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Error, REACT_NATIVE_0_88_BACKEND, VERIFIED_NATIVE_BACKEND, assertCompatibleNativeBackend, inspectNativeBackend, } from "./react-native-0.88.js";
2
+ export { createNativeHostTransaction, } from "./native-transaction.js";
3
+ export { IncompatibleNativeHostBindingError, NATIVE_FATAL_ERROR_MESSAGE_MAX_LENGTH, NATIVE_FATAL_ERROR_NAME_MAX_LENGTH, NATIVE_HOST_GLOBAL, NATIVE_RESOURCE_KIND_MAX_LENGTH, NATIVE_RESOURCE_REFERENCE_KEY, assertNativeHostBinding, commitNativeHostTransaction, getNativeHostBinding, measureNativeHostNode, readNativeSurfaceInfo, reportNativeFatalError, retainNativeResource, supportsNativeFatalErrorReporting, supportsNativeStatusBarControl, supportsNativeUIWorkletDecays, supportsNativeUIWorkletAnimationCancellation, supportsNativeUIWorkletKeyframes, supportsNativeUIWorkletPanGestures, supportsNativeUIWorkletPanGestureDetachment, supportsNativeUIWorkletSprings, supportsNativeUIWorkletTimings, supportsNativeUIWorklets, subscribeToNativeHostCommitLifecycle, subscribeToNativeHostEvents, } from "./native-binding.js";
4
+ export { NativeFabricHost, NativeFabricSurfaceOwnershipError, createNativeFabricHost, } from "./native-fabric-host.js";
5
+ export { NativeSurfaceStartupError, waitForNativeSurface, } from "./surface-readiness.js";
6
+ export { installReactNativeFatalErrorHandler, } from "./fatal-error-handler.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,yBAAyB,EACzB,uBAAuB,EACvB,6BAA6B,EAC7B,oBAAoB,GAMrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,2BAA2B,GAE5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kCAAkC,EAClC,qCAAqC,EACrC,kCAAkC,EAClC,kBAAkB,EAClB,+BAA+B,EAC/B,6BAA6B,EAC7B,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,iCAAiC,EACjC,8BAA8B,EAC9B,6BAA6B,EAC7B,4CAA4C,EAC5C,gCAAgC,EAChC,kCAAkC,EAClC,2CAA2C,EAC3C,8BAA8B,EAC9B,8BAA8B,EAC9B,wBAAwB,EACxB,oCAAoC,EACpC,2BAA2B,GAe5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAChB,iCAAiC,EACjC,sBAAsB,GAEvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,yBAAyB,EACzB,oBAAoB,GAErB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,mCAAmC,GAKpC,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,183 @@
1
+ import { HOST_CONTRACT_VERSION, type CommitSequence, type HostCommit, type HostCommitResult, type HostLifecycleListener, type NativeMeasurement, type NativeEventListener, type NodeHandle } from "@solidnative-dev/host-contract";
2
+ import { type NativeHostTransaction } from "./native-transaction.js";
3
+ import { REACT_NATIVE_0_88_BACKEND } from "./react-native-0.88.js";
4
+ export declare const NATIVE_HOST_GLOBAL: "__solidNativeHost";
5
+ export declare const NATIVE_FATAL_ERROR_NAME_MAX_LENGTH = 128;
6
+ export declare const NATIVE_FATAL_ERROR_MESSAGE_MAX_LENGTH = 2048;
7
+ export interface NativeSurfaceInfo {
8
+ readonly ready: boolean;
9
+ readonly surface: number;
10
+ readonly sequence: number;
11
+ /**
12
+ * Runtime-owned JSI identities retained for Fabric event targets. This can
13
+ * remain non-zero briefly after their logical nodes are deleted, until the
14
+ * retiring Fabric revision has mounted.
15
+ */
16
+ readonly retainedNodeCount: number;
17
+ /** Opaque JSI values explicitly retained for native component props. */
18
+ readonly retainedResourceCount: number;
19
+ /** Present on backends that account for native UI worklet ownership. */
20
+ readonly activeUIWorkletCount?: number;
21
+ /** Native UI worklets with a display callback currently scheduled. */
22
+ readonly pendingUIWorkletFrameCount?: number;
23
+ }
24
+ export interface NativeUIWorkletInfo {
25
+ readonly handle: number;
26
+ readonly target: NodeHandle;
27
+ readonly sequence: number;
28
+ readonly appliedSequence: number;
29
+ readonly applied: boolean;
30
+ readonly frameTimeNanoseconds: number;
31
+ readonly timestamp?: number;
32
+ readonly timingActive: boolean;
33
+ readonly timingProgress: number;
34
+ readonly timingFrameStatistics?: NativeUIWorkletFrameStatistics;
35
+ readonly springActive?: boolean;
36
+ readonly springPosition?: number;
37
+ readonly springVelocity?: number;
38
+ readonly springFrameStatistics?: NativeUIWorkletFrameStatistics;
39
+ readonly decayActive?: boolean;
40
+ readonly decayElapsedMilliseconds?: number;
41
+ readonly decaySpeed?: number;
42
+ readonly decayFrameStatistics?: NativeUIWorkletFrameStatistics;
43
+ readonly gestureAttached?: boolean;
44
+ readonly gestureActive?: boolean;
45
+ readonly gestureSequence?: number;
46
+ readonly gestureTimestamp?: number;
47
+ readonly outputs: Readonly<Record<string, number>>;
48
+ }
49
+ export interface NativeUIWorkletFrameStatistics {
50
+ readonly frameCount: number;
51
+ readonly intervalCount: number;
52
+ readonly sampledIntervalCount: number;
53
+ readonly droppedIntervalSampleCount: number;
54
+ readonly firstFrameTimeMilliseconds: number;
55
+ readonly lastFrameTimeMilliseconds: number;
56
+ readonly minimumFrameIntervalMilliseconds: number;
57
+ readonly maximumFrameIntervalMilliseconds: number;
58
+ readonly meanFrameIntervalMilliseconds: number;
59
+ readonly p50FrameIntervalMilliseconds: number;
60
+ readonly p95FrameIntervalMilliseconds: number;
61
+ readonly p99FrameIntervalMilliseconds: number;
62
+ }
63
+ export type NativeUIWorkletTimingEasing = "linear" | "ease-in" | "ease-out" | "ease-in-out";
64
+ export interface NativeUIWorkletTiming {
65
+ readonly durationMilliseconds: number;
66
+ readonly easing: NativeUIWorkletTimingEasing;
67
+ }
68
+ export interface NativeUIWorkletTimingKeyframe {
69
+ readonly inputs: readonly number[];
70
+ readonly timing: NativeUIWorkletTiming;
71
+ }
72
+ export interface NativeUIWorkletSpring {
73
+ readonly mass: number;
74
+ readonly stiffness: number;
75
+ readonly damping: number;
76
+ readonly initialVelocity: number;
77
+ readonly restSpeedThreshold: number;
78
+ readonly restDisplacementThreshold: number;
79
+ readonly maximumDurationMilliseconds: number;
80
+ }
81
+ export interface NativeUIWorkletDecay {
82
+ readonly deceleration: number;
83
+ readonly velocityThreshold: number;
84
+ readonly maximumDurationMilliseconds: number;
85
+ }
86
+ export interface NativeUIWorkletPanGesture {
87
+ readonly xInput: string;
88
+ readonly yInput: string;
89
+ readonly minX: number;
90
+ readonly maxX: number;
91
+ readonly minY: number;
92
+ readonly maxY: number;
93
+ readonly releaseDecay?: NativeUIWorkletDecay;
94
+ }
95
+ export declare const NATIVE_RESOURCE_REFERENCE_KEY: "__solidNativeResource";
96
+ export declare const NATIVE_RESOURCE_KIND_MAX_LENGTH = 128;
97
+ export type NativeResourceReference<Kind extends string = string> = Readonly<{
98
+ readonly [NATIVE_RESOURCE_REFERENCE_KEY]: Readonly<{
99
+ readonly handle: number;
100
+ readonly kind: Kind;
101
+ }>;
102
+ }>;
103
+ export interface RetainedNativeResource<Kind extends string = string> {
104
+ readonly reference: NativeResourceReference<Kind>;
105
+ readonly released: boolean;
106
+ release(): void;
107
+ }
108
+ export type NativeFabricStatusBarStyle = "default" | "light-content" | "dark-content";
109
+ export type NativeFabricStatusBarAnimation = "none" | "fade" | "slide";
110
+ /** The synchronous object installed by the selected React Native Fabric boundary. */
111
+ export interface NativeFabricBinding {
112
+ readonly contractVersion: typeof HOST_CONTRACT_VERSION;
113
+ readonly backend: "react-native-fabric";
114
+ readonly backendVersion: typeof REACT_NATIVE_0_88_BACKEND.backendVersion;
115
+ readonly platform: "android" | "ios";
116
+ getSurfaceInfo(): NativeSurfaceInfo;
117
+ /**
118
+ * Hands a terminal JavaScript or commit failure to the package-owned native
119
+ * shell. The native side stops the Fabric surface before presenting its
120
+ * dependency-free fallback. Only a bounded name and message cross.
121
+ */
122
+ reportFatalError?(name: string, message: string): void;
123
+ /**
124
+ * Applies view-controller-based status-bar style updates directly on iOS
125
+ * scenes hosted by `SolidNativeRootViewController`.
126
+ */
127
+ setStatusBarStyle?(style: NativeFabricStatusBarStyle, animated: boolean): void;
128
+ /**
129
+ * Applies view-controller-based status-bar visibility updates directly on iOS
130
+ * scenes hosted by `SolidNativeRootViewController`.
131
+ */
132
+ setStatusBarHidden?(hidden: boolean, animation: NativeFabricStatusBarAnimation): void;
133
+ setEventHandler(listener: NativeEventListener | null): void;
134
+ setCommitLifecycleHandler?(listener: HostLifecycleListener | null): void;
135
+ retainNativeResource(kind: string, value: object): number;
136
+ releaseNativeResource(handle: number): void;
137
+ installUIWorklet?(target: NodeHandle, graph: object): number;
138
+ updateUIWorkletInputs?(handle: number, inputs: readonly number[], timestamp: number): void;
139
+ animateUIWorkletInputs?(handle: number, inputs: readonly number[], timestamp: number, timing: NativeUIWorkletTiming): void;
140
+ animateUIWorkletKeyframes?(handle: number, keyframes: readonly NativeUIWorkletTimingKeyframe[], timestamp: number): void;
141
+ springUIWorkletInputs?(handle: number, inputs: readonly number[], timestamp: number, spring: NativeUIWorkletSpring): void;
142
+ decayUIWorkletInputs?(handle: number, velocities: readonly number[], timestamp: number, decay: NativeUIWorkletDecay): void;
143
+ cancelUIWorkletAnimation?(handle: number, timestamp: number): readonly number[];
144
+ attachUIWorkletPanGesture?(handle: number, gesture: NativeUIWorkletPanGesture): void;
145
+ detachUIWorkletPanGesture?(handle: number, timestamp: number): readonly number[];
146
+ destroyUIWorklet?(handle: number): void;
147
+ getUIWorkletInfo?(handle: number): NativeUIWorkletInfo;
148
+ measure(node: NodeHandle, afterSequence?: CommitSequence): NativeMeasurement;
149
+ destroySurface(): void;
150
+ commit(transaction: NativeHostTransaction): HostCommitResult;
151
+ }
152
+ export declare class IncompatibleNativeHostBindingError extends Error {
153
+ readonly issues: readonly string[];
154
+ constructor(issues: readonly string[]);
155
+ }
156
+ export declare function assertNativeHostBinding(value: unknown): NativeFabricBinding;
157
+ export declare function subscribeToNativeHostEvents(binding: NativeFabricBinding, listener: NativeEventListener): () => void;
158
+ export declare function subscribeToNativeHostCommitLifecycle(binding: NativeFabricBinding, listener: HostLifecycleListener): () => void;
159
+ export declare function getNativeHostBinding(globalObject?: object): NativeFabricBinding;
160
+ export declare function supportsNativeFatalErrorReporting(binding: NativeFabricBinding): binding is NativeFabricBinding & Required<Pick<NativeFabricBinding, "reportFatalError">>;
161
+ export declare function supportsNativeStatusBarControl(binding: NativeFabricBinding): binding is NativeFabricBinding & Required<Pick<NativeFabricBinding, "setStatusBarStyle" | "setStatusBarHidden">>;
162
+ /**
163
+ * Replaces a terminal Fabric surface with the package-owned native fallback.
164
+ * Stack traces and arbitrary thrown values never cross this boundary.
165
+ */
166
+ export declare function reportNativeFatalError(binding: NativeFabricBinding, error: unknown): void;
167
+ export declare function readNativeSurfaceInfo(binding: NativeFabricBinding): NativeSurfaceInfo;
168
+ export declare function supportsNativeUIWorklets(binding: NativeFabricBinding): binding is NativeFabricBinding & Required<Pick<NativeFabricBinding, "installUIWorklet" | "updateUIWorkletInputs" | "destroyUIWorklet" | "getUIWorkletInfo">>;
169
+ export declare function supportsNativeUIWorkletTimings(binding: NativeFabricBinding): binding is NativeFabricBinding & Required<Pick<NativeFabricBinding, "installUIWorklet" | "updateUIWorkletInputs" | "animateUIWorkletInputs" | "destroyUIWorklet" | "getUIWorkletInfo">>;
170
+ export declare function supportsNativeUIWorkletKeyframes(binding: NativeFabricBinding): binding is NativeFabricBinding & Required<Pick<NativeFabricBinding, "installUIWorklet" | "updateUIWorkletInputs" | "animateUIWorkletKeyframes" | "destroyUIWorklet" | "getUIWorkletInfo">>;
171
+ export declare function supportsNativeUIWorkletSprings(binding: NativeFabricBinding): binding is NativeFabricBinding & Required<Pick<NativeFabricBinding, "installUIWorklet" | "updateUIWorkletInputs" | "springUIWorkletInputs" | "destroyUIWorklet" | "getUIWorkletInfo">>;
172
+ export declare function supportsNativeUIWorkletDecays(binding: NativeFabricBinding): binding is NativeFabricBinding & Required<Pick<NativeFabricBinding, "installUIWorklet" | "updateUIWorkletInputs" | "decayUIWorkletInputs" | "destroyUIWorklet" | "getUIWorkletInfo">>;
173
+ export declare function supportsNativeUIWorkletAnimationCancellation(binding: NativeFabricBinding): binding is NativeFabricBinding & Required<Pick<NativeFabricBinding, "installUIWorklet" | "updateUIWorkletInputs" | "cancelUIWorkletAnimation" | "destroyUIWorklet" | "getUIWorkletInfo">>;
174
+ export declare function supportsNativeUIWorkletPanGestures(binding: NativeFabricBinding): binding is NativeFabricBinding & Required<Pick<NativeFabricBinding, "installUIWorklet" | "updateUIWorkletInputs" | "attachUIWorkletPanGesture" | "destroyUIWorklet" | "getUIWorkletInfo">>;
175
+ export declare function supportsNativeUIWorkletPanGestureDetachment(binding: NativeFabricBinding): binding is NativeFabricBinding & Required<Pick<NativeFabricBinding, "installUIWorklet" | "updateUIWorkletInputs" | "attachUIWorkletPanGesture" | "detachUIWorkletPanGesture" | "destroyUIWorklet" | "getUIWorkletInfo">>;
176
+ /**
177
+ * Retains a JSI object without admitting it into the transport-safe HostValue
178
+ * domain. The frozen reference may be used only as a direct native prop.
179
+ */
180
+ export declare function retainNativeResource<Kind extends string>(binding: NativeFabricBinding, kind: Kind, value: object): RetainedNativeResource<Kind>;
181
+ export declare function measureNativeHostNode(binding: NativeFabricBinding, node: NodeHandle, afterSequence?: CommitSequence): NativeMeasurement;
182
+ export declare function commitNativeHostTransaction(binding: NativeFabricBinding, commit: HostCommit): HostCommitResult;
183
+ //# sourceMappingURL=native-binding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native-binding.d.ts","sourceRoot":"","sources":["../src/native-binding.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,qBAAqB,EACrB,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,gBAAgB,EAErB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,UAAU,EAChB,MAAM,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