@volter/editor-sdk 0.5.60 → 0.5.62

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 (2) hide show
  1. package/package.json +2 -2
  2. package/src/host.ts +5 -0
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@volter/editor-sdk",
3
3
  "author": "Volter AI, Inc.",
4
4
  "license": "Apache-2.0",
5
- "version": "0.5.60",
5
+ "version": "0.5.62",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
@@ -70,7 +70,7 @@
70
70
  "typescript": "^5.6.0",
71
71
  "undici": "^7.28.0",
72
72
  "zod": "^4.3.6",
73
- "@volter/editor-project": "0.5.60",
73
+ "@volter/editor-project": "0.5.62",
74
74
  "@types/node": "^22.0.0"
75
75
  },
76
76
  "peerDependencies": {
package/src/host.ts CHANGED
@@ -23,6 +23,7 @@ import type {
23
23
  SystemAdapters,
24
24
  } from '@volter/editor-project/adapter';
25
25
  import type { ComponentType } from 'react';
26
+ import type { DocumentEntry } from '@volter/editor-project/adapter/adapter-module';
26
27
  import { useSyncExternalStore } from 'react';
27
28
  import type * as THREE from 'three';
28
29
  import type { StageTransportHandle } from './transport';
@@ -617,6 +618,10 @@ export interface EditorHostWorkerCallMetrics {
617
618
 
618
619
  /** The open project's declared SHAPE, as a contribution may gate on it. */
619
620
  export interface EditorHostProject {
621
+ /** The declared document table after its contributed finders have settled.
622
+ * A package starting a document before its UI mounts must resolve the real
623
+ * project entries, not guess an id from an uninitialized view. */
624
+ documentTable(): Promise<{ readonly entries: readonly DocumentEntry[]; readonly default: string | null }>;
620
625
  /** Whether the project declares at least one root that plays. */
621
626
  mounts(): boolean;
622
627
  /**