@smartnet360/svelte-components 0.0.16 → 0.0.17

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.
@@ -86,9 +86,10 @@
86
86
  }
87
87
 
88
88
  // Merge external layout with defaults, then apply size adaptations
89
- let finalLayout = plotlyLayout ?
89
+ // Use structuredClone for deep copy to prevent mutation of defaultLayout
90
+ let finalLayout = structuredClone(plotlyLayout ?
90
91
  { ...defaultLayout, ...plotlyLayout } :
91
- defaultLayout;
92
+ defaultLayout);
92
93
 
93
94
  // Apply size-based adaptations using helper
94
95
  finalLayout = adaptPlotlyLayout(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartnet360/svelte-components",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",