@webmcp-auto-ui/ui 2.5.12 → 2.5.15

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@webmcp-auto-ui/ui",
3
- "version": "2.5.12",
3
+ "version": "2.5.15",
4
4
  "description": "Svelte 5 UI components — primitives, widgets, window manager",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "type": "module",
@@ -137,6 +137,13 @@
137
137
  customRenderer ? undefined : NATIVE_MAP[type],
138
138
  );
139
139
 
140
+ // Deep-clone data to strip Svelte 5 $state proxies — only needed for vanilla
141
+ // renderers whose third-party libs (Cytoscape, Plotly, etc.) use
142
+ // Object.defineProperty which conflicts with Svelte 5 proxies.
143
+ // Native Svelte components handle proxied data fine and benefit from
144
+ // fine-grained reactivity, so they receive raw `data` directly.
145
+ const plainData: Record<string, unknown> = $derived(JSON.parse(JSON.stringify(data)));
146
+
140
147
  // ── Vanilla renderer container + lifecycle ────────────
141
148
  let vanillaContainer: HTMLElement | undefined = $state(undefined);
142
149
 
@@ -144,9 +151,9 @@
144
151
  if (!isVanillaRenderer || !vanillaContainer) return;
145
152
  // Clear previous content
146
153
  vanillaContainer.innerHTML = '';
147
- // Call the vanilla renderer, capture optional cleanup
154
+ // Call the vanilla renderer with proxy-free data, capture optional cleanup
148
155
  const cleanup = (customRenderer as (container: HTMLElement, data: Record<string, unknown>) => void | (() => void))(
149
- vanillaContainer, data,
156
+ vanillaContainer, plainData,
150
157
  );
151
158
  // Return teardown for $effect
152
159
  return () => {