@unoverse-platform/studio 0.1.58 → 0.1.59

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 +1 -1
  2. package/src/host.ts +11 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unoverse-platform/studio",
3
- "version": "0.1.58",
3
+ "version": "0.1.59",
4
4
  "type": "module",
5
5
  "description": "Unoverse Studio: the local authoring app. Reads your own rx/ folder, no backend.",
6
6
  "scripts": {
package/src/host.ts CHANGED
@@ -22,21 +22,19 @@ export const UNOVERSE_BASE = "";
22
22
  export const hasAuth = false;
23
23
 
24
24
  /**
25
- * The universe Studio is signed into (the header connection), or null when offline.
26
- * THE LIVE PREVIEW'S SERVER. One source of truth: the same selection App.tsx keeps
27
- * (`studio:universe` is its usePersistentState pointer into the saved universe list),
28
- * so it is impossible to be signed into one universe and silently previewing against
29
- * another. The shared screens fall back to the local dev platform only when no
30
- * universe is connected.
25
+ * THE LIVE PREVIEW'S SERVER: always null here, meaning the local dev platform.
26
+ *
27
+ * This used to read the universe picked in the header (`studio:universe`), written by
28
+ * the connect button. That chrome is gone (LOCAL_STUDIO.md §Publish is terminal-only) —
29
+ * and reading the stale localStorage value after removing the UI left Live mode aimed
30
+ * at a universe nobody could change or clear, failing with that universe's errors
31
+ * (seen live: "Unknown Unoverse template" from a universe the app was never published
32
+ * to). So local Studio's Live preview targets the local dev platform, full stop.
33
+ * Pointing Live at the workspace's own universe (unoverse.yaml) is future work and
34
+ * will come from the workspace, not from a browser store.
31
35
  */
32
36
  export function liveUniverseUrl(): string | null {
33
- try {
34
- const raw = localStorage.getItem("studio:universe");
35
- const url = raw === null ? null : (JSON.parse(raw) as string | null);
36
- return url || null;
37
- } catch {
38
- return null;
39
- }
37
+ return null;
40
38
  }
41
39
 
42
40
  /**