@tutti-os/workbench-surface 0.0.152 → 0.0.154
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.d.ts +12 -1
- package/dist/index.js +316 -169
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -452,7 +452,18 @@ interface WorkbenchHostExternalStateSource<TNodeState = unknown, TWorkspaceState
|
|
|
452
452
|
getWorkspaceState(input: {
|
|
453
453
|
workspaceId: string;
|
|
454
454
|
}): TWorkspaceState;
|
|
455
|
-
|
|
455
|
+
/**
|
|
456
|
+
* Subscribe to one node's live state. `getNodeState` must return the same
|
|
457
|
+
* reference until this node's observable state changes.
|
|
458
|
+
*/
|
|
459
|
+
subscribeNodeState?(input: WorkbenchHostExternalStateLookupInput, listener: () => void): () => void;
|
|
460
|
+
/**
|
|
461
|
+
* Subscribe to workspace state consumed by a node renderer. `getWorkspaceState`
|
|
462
|
+
* must return the same reference until this workspace state changes.
|
|
463
|
+
*/
|
|
464
|
+
subscribeWorkspaceState?(input: {
|
|
465
|
+
workspaceId: string;
|
|
466
|
+
}, listener: () => void): () => void;
|
|
456
467
|
}
|
|
457
468
|
type WorkbenchHostNodeCloseDecision = "close" | "keep-open";
|
|
458
469
|
type WorkbenchHostCloseDialogScope = "node" | "window";
|