@imfusion/sdk-react 0.7.0-dev.35.gb9dffb9a → 0.7.0-dev.37.g21ff3e6b
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/dist/context.d.ts +1 -14
- package/dist/useStableHandle.d.ts +1 -15
- package/package.json +2 -2
package/dist/context.d.ts
CHANGED
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Internal context value shared between provider, canvas, and hooks.
|
|
4
|
-
*
|
|
5
|
-
* @internal Use {@link useImFusion},
|
|
6
|
-
* {@link useImFusionError}, or {@link useImFusionState} instead.
|
|
7
|
-
*/
|
|
8
|
-
export interface ImFusionContextValue {
|
|
9
|
-
imf: ImFusion | null;
|
|
10
|
-
error: Error | null;
|
|
11
|
-
registerCanvas: (canvas: HTMLCanvasElement) => void;
|
|
12
|
-
}
|
|
13
|
-
/** @internal */
|
|
14
|
-
export declare const ImFusionContext: import("react").Context<ImFusionContextValue | null>;
|
|
1
|
+
export {};
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Returns a stable reference for a WASM handle, using
|
|
4
|
-
* {@link @imfusion/sdk!ClassHandle.isAliasOf | isAliasOf} instead of `===` to detect
|
|
5
|
-
* identity changes.
|
|
6
|
-
*
|
|
7
|
-
* Different JS wrapper objects can alias the same underlying C++ object.
|
|
8
|
-
* This hook ensures that the returned reference only changes when the
|
|
9
|
-
* underlying C++ object actually changes, making it safe to use in
|
|
10
|
-
* `useEffect` dependency arrays and other identity-sensitive contexts.
|
|
11
|
-
*
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
export declare function useStableHandle<T extends ClassHandle>(handle: T): T;
|
|
15
|
-
export declare function useStableHandle<T extends ClassHandle>(handle: T | undefined): T | undefined;
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imfusion/sdk-react",
|
|
3
|
-
"version": "0.7.0-dev.
|
|
3
|
+
"version": "0.7.0-dev.37.g21ff3e6b",
|
|
4
4
|
"description": "React bindings for ImFusion Web SDK",
|
|
5
5
|
"author": "ImFusion GmbH",
|
|
6
6
|
"license": "SEE LICENSE IN License.rtf",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"License.rtf"
|
|
30
30
|
],
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@imfusion/sdk": "0.7.0-dev.
|
|
32
|
+
"@imfusion/sdk": "0.7.0-dev.37.g21ff3e6b",
|
|
33
33
|
"react": ">=18"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|