vite-plugin-specter 0.3.1 → 0.3.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.
package/dist/client.js CHANGED
@@ -945,7 +945,14 @@
945
945
  }
946
946
 
947
947
  if (e.key === 'Escape') {
948
- deactivate();
948
+ if (pinEl) {
949
+ clearPin();
950
+ clearMeasureOverlay();
951
+ hideTooltip();
952
+ updatePillForSelection();
953
+ } else {
954
+ deactivate();
955
+ }
949
956
  return;
950
957
  }
951
958
  }, true);
@@ -945,7 +945,14 @@
945
945
  }
946
946
 
947
947
  if (e.key === 'Escape') {
948
- deactivate();
948
+ if (pinEl) {
949
+ clearPin();
950
+ clearMeasureOverlay();
951
+ hideTooltip();
952
+ updatePillForSelection();
953
+ } else {
954
+ deactivate();
955
+ }
949
956
  return;
950
957
  }
951
958
  }, true);
package/dist/index.cjs CHANGED
@@ -975,7 +975,14 @@ function getClientScript(options) {
975
975
  }
976
976
 
977
977
  if (e.key === 'Escape') {
978
- deactivate();
978
+ if (pinEl) {
979
+ clearPin();
980
+ clearMeasureOverlay();
981
+ hideTooltip();
982
+ updatePillForSelection();
983
+ } else {
984
+ deactivate();
985
+ }
979
986
  return;
980
987
  }
981
988
  }, true);
package/dist/index.js CHANGED
@@ -948,7 +948,14 @@ function getClientScript(options) {
948
948
  }
949
949
 
950
950
  if (e.key === 'Escape') {
951
- deactivate();
951
+ if (pinEl) {
952
+ clearPin();
953
+ clearMeasureOverlay();
954
+ hideTooltip();
955
+ updatePillForSelection();
956
+ } else {
957
+ deactivate();
958
+ }
952
959
  return;
953
960
  }
954
961
  }, true);
@@ -945,7 +945,14 @@
945
945
  }
946
946
 
947
947
  if (e.key === 'Escape') {
948
- deactivate();
948
+ if (pinEl) {
949
+ clearPin();
950
+ clearMeasureOverlay();
951
+ hideTooltip();
952
+ updatePillForSelection();
953
+ } else {
954
+ deactivate();
955
+ }
949
956
  return;
950
957
  }
951
958
  }, true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-specter",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
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",