vite-plugin-specter 0.3.0 → 0.3.1

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/client.js CHANGED
@@ -945,17 +945,7 @@
945
945
  }
946
946
 
947
947
  if (e.key === 'Escape') {
948
- if (pinEl) {
949
- clearPin();
950
- clearMeasureOverlay();
951
- hideTooltip();
952
- updatePillForSelection();
953
- } else if (selectedEls.length > 0) {
954
- clearSelection();
955
- collapsePill();
956
- } else {
957
- deactivate();
958
- }
948
+ deactivate();
959
949
  return;
960
950
  }
961
951
  }, true);
@@ -945,17 +945,7 @@
945
945
  }
946
946
 
947
947
  if (e.key === 'Escape') {
948
- if (pinEl) {
949
- clearPin();
950
- clearMeasureOverlay();
951
- hideTooltip();
952
- updatePillForSelection();
953
- } else if (selectedEls.length > 0) {
954
- clearSelection();
955
- collapsePill();
956
- } else {
957
- deactivate();
958
- }
948
+ deactivate();
959
949
  return;
960
950
  }
961
951
  }, true);
package/dist/index.cjs CHANGED
@@ -975,17 +975,7 @@ function getClientScript(options) {
975
975
  }
976
976
 
977
977
  if (e.key === 'Escape') {
978
- if (pinEl) {
979
- clearPin();
980
- clearMeasureOverlay();
981
- hideTooltip();
982
- updatePillForSelection();
983
- } else if (selectedEls.length > 0) {
984
- clearSelection();
985
- collapsePill();
986
- } else {
987
- deactivate();
988
- }
978
+ deactivate();
989
979
  return;
990
980
  }
991
981
  }, true);
package/dist/index.js CHANGED
@@ -948,17 +948,7 @@ function getClientScript(options) {
948
948
  }
949
949
 
950
950
  if (e.key === 'Escape') {
951
- if (pinEl) {
952
- clearPin();
953
- clearMeasureOverlay();
954
- hideTooltip();
955
- updatePillForSelection();
956
- } else if (selectedEls.length > 0) {
957
- clearSelection();
958
- collapsePill();
959
- } else {
960
- deactivate();
961
- }
951
+ deactivate();
962
952
  return;
963
953
  }
964
954
  }, true);
@@ -945,17 +945,7 @@
945
945
  }
946
946
 
947
947
  if (e.key === 'Escape') {
948
- if (pinEl) {
949
- clearPin();
950
- clearMeasureOverlay();
951
- hideTooltip();
952
- updatePillForSelection();
953
- } else if (selectedEls.length > 0) {
954
- clearSelection();
955
- collapsePill();
956
- } else {
957
- deactivate();
958
- }
948
+ deactivate();
959
949
  return;
960
950
  }
961
951
  }, true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-specter",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Inspect elements and Figma-style measure spacing in your vibe-coded Vite projects. Give your AI exactly what it needs to make the right change.",
5
5
  "author": "Setu Kathawate <dev@setugk.com>",
6
6
  "homepage": "https://github.com/setugk/vite-plugin-specter#readme",