@profitlich/template-toolkit 2.7.1 → 2.7.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.
@@ -11,10 +11,9 @@ export class Toolbar {
11
11
 
12
12
  constructor() {
13
13
  // State aus localStorage laden
14
+ const defaults = { visible: false, grid: 'aus', imageSize: false, contentType: false };
14
15
  const saved = localStorage.getItem('devTools');
15
- this.#state = saved
16
- ? JSON.parse(saved)
17
- : { visible: false, grid: 'aus', imageSize: false, contentType: false };
16
+ this.#state = saved ? { ...defaults, ...JSON.parse(saved) } : defaults;
18
17
 
19
18
  // Grid-Overlay DOM-Element erstellen
20
19
  const gridOverlay = document.createElement('div');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@profitlich/template-toolkit",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "description": "Shared SCSS layout system, JS utilities, components and build scripts for profitlich template repos",
5
5
  "type": "module",
6
6
  "exports": {