@vizij/orchestrator-react 0.0.6 → 0.1.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.
package/dist/index.cjs CHANGED
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ OrchestratorContext: () => OrchestratorContext,
23
24
  OrchestratorProvider: () => OrchestratorProvider,
24
25
  OrchestratorRuntime: () => import_orchestrator_wasm3.Orchestrator,
25
26
  createOrchestratorRuntime: () => import_orchestrator_wasm3.createOrchestrator,
@@ -532,6 +533,7 @@ var samples = {
532
533
  };
533
534
  // Annotate the CommonJS export names for ESM import in node:
534
535
  0 && (module.exports = {
536
+ OrchestratorContext,
535
537
  OrchestratorProvider,
536
538
  OrchestratorRuntime,
537
539
  createOrchestratorRuntime,
package/dist/index.d.cts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { InitInput as InitInput$1, GraphRegistrationInput as GraphRegistrationInput$1, MergedGraphRegistrationConfig as MergedGraphRegistrationConfig$1, MergeStrategyOptions as MergeStrategyOptions$1, MergeConflictStrategy as MergeConflictStrategy$1, AnimationRegistrationConfig as AnimationRegistrationConfig$1, Value, Shape, OrchestratorFrame as OrchestratorFrame$1, WriteOpJSON, ConflictLog, GraphRegistrationConfig as GraphRegistrationConfig$1, GraphSubscriptions as GraphSubscriptions$1, AnimationSetup as AnimationSetup$1, listOrchestrationFixtures, loadOrchestrationDescriptor, loadOrchestrationJson, loadOrchestrationBundle } from '@vizij/orchestrator-wasm';
2
2
  export { Orchestrator as OrchestratorRuntime, AnimationRegistrationConfig as WasmAnimationRegistration, AnimationSetup as WasmAnimationSetup, ConflictLog as WasmConflictLog, GraphRegistrationInput as WasmGraphRegistration, GraphRegistrationConfig as WasmGraphRegistrationConfig, GraphSubscriptions as WasmGraphSubscriptions, MergeConflictStrategy as WasmMergeConflictStrategy, MergeStrategyOptions as WasmMergeStrategyOptions, MergedGraphRegistrationConfig as WasmMergedGraphRegistrationConfig, OrchestratorFrame as WasmOrchestratorFrame, Shape as WasmShape, Value as WasmValue, createOrchestrator as createOrchestratorRuntime, init as initOrchestratorWasm, listOrchestrationFixtures, loadOrchestrationBundle, loadOrchestrationDescriptor, loadOrchestrationJson } from '@vizij/orchestrator-wasm';
3
- import React from 'react';
3
+ import * as react from 'react';
4
+ import { ReactNode } from 'react';
5
+ import { JSX } from 'react/jsx-runtime';
4
6
 
5
7
  /**
6
8
  * Shared type definitions for the orchestrator React integration.
@@ -75,7 +77,7 @@ type OrchestratorReactCtx = {
75
77
  };
76
78
 
77
79
  type OrchestratorProviderProps = {
78
- children: React.ReactNode;
80
+ children: ReactNode;
79
81
  /** Optional init() input forwarded to the wasm layer. */
80
82
  initInput?: InitInput;
81
83
  /** Automatically create a runtime orchestration instance on mount. Defaults to true. */
@@ -90,6 +92,8 @@ type OrchestratorProviderProps = {
90
92
  };
91
93
  declare function OrchestratorProvider({ children, initInput, autoCreate, createOptions, autostart, }: OrchestratorProviderProps): JSX.Element;
92
94
 
95
+ declare const OrchestratorContext: react.Context<OrchestratorReactCtx | null>;
96
+
93
97
  declare function useOrchestrator(): OrchestratorReactCtx;
94
98
 
95
99
  declare function useOrchTarget(path?: string | null): ValueJSON | undefined;
@@ -110,4 +114,4 @@ declare const samples: {
110
114
  readonly loadBundle: typeof loadOrchestrationBundle;
111
115
  };
112
116
 
113
- export { type AnimationRegistrationConfig, type AnimationSetup, type ControllerId, type CreateOrchOptions, type GraphRegistrationConfig, type GraphRegistrationInput, type GraphSubscriptions, type InitInput, type MergeConflictStrategy, type MergeStrategyOptions, type MergedGraphRegistrationConfig, type OrchestratorConflict, type OrchestratorFrame, OrchestratorProvider, type OrchestratorProviderProps, type OrchestratorReactCtx, type OrchestratorTimings, type PrebindResolver, type ShapeJSON, type ValueJSON, type WriteOp, samples, useOrchFrame, useOrchTarget, useOrchestrator, valueAsBool, valueAsNumber, valueAsVec3 };
117
+ export { type AnimationRegistrationConfig, type AnimationSetup, type ControllerId, type CreateOrchOptions, type GraphRegistrationConfig, type GraphRegistrationInput, type GraphSubscriptions, type InitInput, type MergeConflictStrategy, type MergeStrategyOptions, type MergedGraphRegistrationConfig, type OrchestratorConflict, OrchestratorContext, type OrchestratorFrame, OrchestratorProvider, type OrchestratorProviderProps, type OrchestratorReactCtx, type OrchestratorTimings, type PrebindResolver, type ShapeJSON, type ValueJSON, type WriteOp, samples, useOrchFrame, useOrchTarget, useOrchestrator, valueAsBool, valueAsNumber, valueAsVec3 };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { InitInput as InitInput$1, GraphRegistrationInput as GraphRegistrationInput$1, MergedGraphRegistrationConfig as MergedGraphRegistrationConfig$1, MergeStrategyOptions as MergeStrategyOptions$1, MergeConflictStrategy as MergeConflictStrategy$1, AnimationRegistrationConfig as AnimationRegistrationConfig$1, Value, Shape, OrchestratorFrame as OrchestratorFrame$1, WriteOpJSON, ConflictLog, GraphRegistrationConfig as GraphRegistrationConfig$1, GraphSubscriptions as GraphSubscriptions$1, AnimationSetup as AnimationSetup$1, listOrchestrationFixtures, loadOrchestrationDescriptor, loadOrchestrationJson, loadOrchestrationBundle } from '@vizij/orchestrator-wasm';
2
2
  export { Orchestrator as OrchestratorRuntime, AnimationRegistrationConfig as WasmAnimationRegistration, AnimationSetup as WasmAnimationSetup, ConflictLog as WasmConflictLog, GraphRegistrationInput as WasmGraphRegistration, GraphRegistrationConfig as WasmGraphRegistrationConfig, GraphSubscriptions as WasmGraphSubscriptions, MergeConflictStrategy as WasmMergeConflictStrategy, MergeStrategyOptions as WasmMergeStrategyOptions, MergedGraphRegistrationConfig as WasmMergedGraphRegistrationConfig, OrchestratorFrame as WasmOrchestratorFrame, Shape as WasmShape, Value as WasmValue, createOrchestrator as createOrchestratorRuntime, init as initOrchestratorWasm, listOrchestrationFixtures, loadOrchestrationBundle, loadOrchestrationDescriptor, loadOrchestrationJson } from '@vizij/orchestrator-wasm';
3
- import React from 'react';
3
+ import * as react from 'react';
4
+ import { ReactNode } from 'react';
5
+ import { JSX } from 'react/jsx-runtime';
4
6
 
5
7
  /**
6
8
  * Shared type definitions for the orchestrator React integration.
@@ -75,7 +77,7 @@ type OrchestratorReactCtx = {
75
77
  };
76
78
 
77
79
  type OrchestratorProviderProps = {
78
- children: React.ReactNode;
80
+ children: ReactNode;
79
81
  /** Optional init() input forwarded to the wasm layer. */
80
82
  initInput?: InitInput;
81
83
  /** Automatically create a runtime orchestration instance on mount. Defaults to true. */
@@ -90,6 +92,8 @@ type OrchestratorProviderProps = {
90
92
  };
91
93
  declare function OrchestratorProvider({ children, initInput, autoCreate, createOptions, autostart, }: OrchestratorProviderProps): JSX.Element;
92
94
 
95
+ declare const OrchestratorContext: react.Context<OrchestratorReactCtx | null>;
96
+
93
97
  declare function useOrchestrator(): OrchestratorReactCtx;
94
98
 
95
99
  declare function useOrchTarget(path?: string | null): ValueJSON | undefined;
@@ -110,4 +114,4 @@ declare const samples: {
110
114
  readonly loadBundle: typeof loadOrchestrationBundle;
111
115
  };
112
116
 
113
- export { type AnimationRegistrationConfig, type AnimationSetup, type ControllerId, type CreateOrchOptions, type GraphRegistrationConfig, type GraphRegistrationInput, type GraphSubscriptions, type InitInput, type MergeConflictStrategy, type MergeStrategyOptions, type MergedGraphRegistrationConfig, type OrchestratorConflict, type OrchestratorFrame, OrchestratorProvider, type OrchestratorProviderProps, type OrchestratorReactCtx, type OrchestratorTimings, type PrebindResolver, type ShapeJSON, type ValueJSON, type WriteOp, samples, useOrchFrame, useOrchTarget, useOrchestrator, valueAsBool, valueAsNumber, valueAsVec3 };
117
+ export { type AnimationRegistrationConfig, type AnimationSetup, type ControllerId, type CreateOrchOptions, type GraphRegistrationConfig, type GraphRegistrationInput, type GraphSubscriptions, type InitInput, type MergeConflictStrategy, type MergeStrategyOptions, type MergedGraphRegistrationConfig, type OrchestratorConflict, OrchestratorContext, type OrchestratorFrame, OrchestratorProvider, type OrchestratorProviderProps, type OrchestratorReactCtx, type OrchestratorTimings, type PrebindResolver, type ShapeJSON, type ValueJSON, type WriteOp, samples, useOrchFrame, useOrchTarget, useOrchestrator, valueAsBool, valueAsNumber, valueAsVec3 };
package/dist/index.js CHANGED
@@ -7,13 +7,7 @@ import {
7
7
  } from "@vizij/orchestrator-wasm";
8
8
 
9
9
  // src/OrchestratorProvider.tsx
10
- import {
11
- useCallback,
12
- useEffect,
13
- useMemo,
14
- useRef,
15
- useState
16
- } from "react";
10
+ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
17
11
  import {
18
12
  init as initOrchestratorWasm,
19
13
  createOrchestrator as createOrchestratorWasm,
@@ -516,6 +510,7 @@ var samples = {
516
510
  loadBundle: loadOrchestrationBundle
517
511
  };
518
512
  export {
513
+ OrchestratorContext,
519
514
  OrchestratorProvider,
520
515
  Orchestrator as OrchestratorRuntime,
521
516
  createOrchestrator as createOrchestratorRuntime,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizij/orchestrator-react",
3
- "version": "0.0.6",
3
+ "version": "0.1.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -23,22 +23,25 @@
23
23
  "README.md"
24
24
  ],
25
25
  "dependencies": {
26
- "@vizij/orchestrator-wasm": "^0.2.7",
27
- "@vizij/value-json": "^0.1.0"
26
+ "@vizij/orchestrator-wasm": "^0.3.0",
27
+ "@vizij/utils": "0.1.0",
28
+ "@vizij/value-json": "^0.1.2"
28
29
  },
29
30
  "peerDependencies": {
30
31
  "react": ">=18",
31
32
  "react-dom": ">=18"
32
33
  },
33
34
  "devDependencies": {
34
- "@testing-library/react": "^14.3.1",
35
- "@types/react": "^18.2.0",
35
+ "@testing-library/react": "^16.3.1",
36
+ "@types/react": "^19.2.7",
36
37
  "jsdom": "^24.1.3",
37
38
  "typescript": "^5.5.0",
38
39
  "vitest": "^3.2.4",
39
40
  "prettier": "^3.4.2",
40
- "react-dom": "^18.2.0",
41
- "tsup": "^8.0.1"
41
+ "react-dom": "^19.2.3",
42
+ "tsup": "^8.0.1",
43
+ "@testing-library/dom": "^10.4.1",
44
+ "react": "^19.2.3"
42
45
  },
43
46
  "publishConfig": {
44
47
  "access": "public"