@volter/editor-threejs 0.5.150 → 0.5.152
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/editor-threejs",
|
|
3
3
|
"author": "Volter AI, Inc.",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.152",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -135,12 +135,12 @@
|
|
|
135
135
|
"serving": "./dist-node/serving.mjs"
|
|
136
136
|
},
|
|
137
137
|
"dependencies": {
|
|
138
|
-
"@volter/editor-project": "0.5.
|
|
138
|
+
"@volter/editor-project": "0.5.152",
|
|
139
139
|
"@sparkjsdev/spark": "^2.1.0",
|
|
140
140
|
"three.quarks": "^0.16.0",
|
|
141
141
|
"zod": "^4.3.6",
|
|
142
142
|
"typescript": "5.9.3",
|
|
143
|
-
"@volter/editor-sdk": "0.5.
|
|
143
|
+
"@volter/editor-sdk": "0.5.152",
|
|
144
144
|
"postprocessing": "6.38.3",
|
|
145
145
|
"quarks.core": "0.16.0",
|
|
146
146
|
"@fortawesome/free-solid-svg-icons": "^7.2.0"
|
|
@@ -26,10 +26,19 @@ const sessions = new Map<string, Object3DDocumentSession>();
|
|
|
26
26
|
const preparations = new Map<string, () => Promise<void>>();
|
|
27
27
|
let registryVersion = 0;
|
|
28
28
|
const registryListeners = new Set<() => void>();
|
|
29
|
+
let notificationPending = false;
|
|
29
30
|
|
|
30
31
|
function notifyRegistry(): void {
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
// Stage registration runs in a contribution root's effect. Publish its
|
|
33
|
+
// host-facing snapshot after that commit unwinds, alongside the viewport's
|
|
34
|
+
// snapshot; synchronous readers still find the registered session now.
|
|
35
|
+
if (notificationPending) return;
|
|
36
|
+
notificationPending = true;
|
|
37
|
+
queueMicrotask(() => {
|
|
38
|
+
notificationPending = false;
|
|
39
|
+
registryVersion++;
|
|
40
|
+
for (const listener of [...registryListeners]) listener();
|
|
41
|
+
});
|
|
33
42
|
}
|
|
34
43
|
|
|
35
44
|
/** `stage` is what the mounting stage adds to the document's viewport (its
|