@tangle-network/sandbox-ui 0.116.1 → 0.116.2

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/hooks.d.ts CHANGED
@@ -79,7 +79,10 @@ export interface SandboxMetrics {
79
79
  heapTotalBytes: number;
80
80
  }
81
81
  export interface UseSandboxMetricsOptions {
82
- /** Sandbox API base URL, e.g. `https://api.tangle.tools`. */
82
+ /**
83
+ * Sandbox API base URL, e.g. `https://api.tangle.tools`.
84
+ * Use an empty string for same-origin requests.
85
+ */
83
86
  apiBaseUrl: string;
84
87
  /** Sandbox id; when falsy the hook stays idle. */
85
88
  sandboxId?: string | null;
package/dist/hooks.js CHANGED
@@ -22,7 +22,7 @@ function useSandboxMetrics({ apiBaseUrl, sandboxId, token, enabled = true, inter
22
22
  const hasLoadedRef = React$1.useRef(false);
23
23
  const prevSandboxIdRef = React$1.useRef(null);
24
24
  React$1.useEffect(() => {
25
- const sandboxCleared = !sandboxId || !apiBaseUrl;
25
+ const sandboxCleared = !sandboxId;
26
26
  const sandboxChanged = prevSandboxIdRef.current !== null && prevSandboxIdRef.current !== sandboxId;
27
27
  if (sandboxCleared && prevSandboxIdRef.current !== null || sandboxChanged) {
28
28
  sampleRef.current = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox-ui",
3
- "version": "0.116.1",
3
+ "version": "0.116.2",
4
4
  "description": "Unified UI component library for Tangle Sandbox — primitives, chat, dashboard, terminal, editor, and workspace components",
5
5
  "repository": {
6
6
  "type": "git",