@ruckc/truss-ol 1.51.1 → 1.52.0

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/dist/Map.svelte +2 -2
  2. package/package.json +1 -1
package/dist/Map.svelte CHANGED
@@ -651,10 +651,10 @@
651
651
  el.addEventListener('pointerleave', hideTip);
652
652
  map.on('movestart', hideTip);
653
653
 
654
- // ---- follow theme (data-theme toggle or OS preference)
654
+ // ---- follow theme (data-theme toggle, a data-truss-theme theme, or OS preference)
655
655
  const restyle = () => sync?.style();
656
656
  const mo = new MutationObserver(restyle);
657
- mo.observe(document.documentElement, { attributes: true, attributeFilter: ['data-theme'] });
657
+ mo.observe(document.documentElement, { attributes: true, attributeFilter: ['data-theme', 'data-truss-theme'] });
658
658
  const mq = matchMedia('(prefers-color-scheme: dark)');
659
659
  mq.addEventListener('change', restyle);
660
660
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruckc/truss-ol",
3
- "version": "1.51.1",
3
+ "version": "1.52.0",
4
4
  "description": "OpenLayers map styled with Truss UI",
5
5
  "type": "module",
6
6
  "license": "MIT",