vite-plugin-specter 0.3.2 → 0.3.3

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
@@ -926,7 +926,7 @@
926
926
  if (isInputFocused()) return;
927
927
 
928
928
  if (e.key === 'p' || e.key === 'P') {
929
- if (measureMode || !lastHovered) return;
929
+ if (!lastHovered) return;
930
930
  clearHoverOutline();
931
931
  toggleSelection(lastHovered);
932
932
  return;
@@ -945,11 +945,12 @@
945
945
  }
946
946
 
947
947
  if (e.key === 'Escape') {
948
- if (pinEl) {
948
+ if (pinEl || selectedEls.length > 0) {
949
949
  clearPin();
950
+ clearSelection();
950
951
  clearMeasureOverlay();
951
952
  hideTooltip();
952
- updatePillForSelection();
953
+ collapsePill();
953
954
  } else {
954
955
  deactivate();
955
956
  }
@@ -926,7 +926,7 @@
926
926
  if (isInputFocused()) return;
927
927
 
928
928
  if (e.key === 'p' || e.key === 'P') {
929
- if (measureMode || !lastHovered) return;
929
+ if (!lastHovered) return;
930
930
  clearHoverOutline();
931
931
  toggleSelection(lastHovered);
932
932
  return;
@@ -945,11 +945,12 @@
945
945
  }
946
946
 
947
947
  if (e.key === 'Escape') {
948
- if (pinEl) {
948
+ if (pinEl || selectedEls.length > 0) {
949
949
  clearPin();
950
+ clearSelection();
950
951
  clearMeasureOverlay();
951
952
  hideTooltip();
952
- updatePillForSelection();
953
+ collapsePill();
953
954
  } else {
954
955
  deactivate();
955
956
  }
package/dist/index.cjs CHANGED
@@ -956,7 +956,7 @@ function getClientScript(options) {
956
956
  if (isInputFocused()) return;
957
957
 
958
958
  if (e.key === 'p' || e.key === 'P') {
959
- if (measureMode || !lastHovered) return;
959
+ if (!lastHovered) return;
960
960
  clearHoverOutline();
961
961
  toggleSelection(lastHovered);
962
962
  return;
@@ -975,11 +975,12 @@ function getClientScript(options) {
975
975
  }
976
976
 
977
977
  if (e.key === 'Escape') {
978
- if (pinEl) {
978
+ if (pinEl || selectedEls.length > 0) {
979
979
  clearPin();
980
+ clearSelection();
980
981
  clearMeasureOverlay();
981
982
  hideTooltip();
982
- updatePillForSelection();
983
+ collapsePill();
983
984
  } else {
984
985
  deactivate();
985
986
  }
package/dist/index.js CHANGED
@@ -929,7 +929,7 @@ function getClientScript(options) {
929
929
  if (isInputFocused()) return;
930
930
 
931
931
  if (e.key === 'p' || e.key === 'P') {
932
- if (measureMode || !lastHovered) return;
932
+ if (!lastHovered) return;
933
933
  clearHoverOutline();
934
934
  toggleSelection(lastHovered);
935
935
  return;
@@ -948,11 +948,12 @@ function getClientScript(options) {
948
948
  }
949
949
 
950
950
  if (e.key === 'Escape') {
951
- if (pinEl) {
951
+ if (pinEl || selectedEls.length > 0) {
952
952
  clearPin();
953
+ clearSelection();
953
954
  clearMeasureOverlay();
954
955
  hideTooltip();
955
- updatePillForSelection();
956
+ collapsePill();
956
957
  } else {
957
958
  deactivate();
958
959
  }
@@ -926,7 +926,7 @@
926
926
  if (isInputFocused()) return;
927
927
 
928
928
  if (e.key === 'p' || e.key === 'P') {
929
- if (measureMode || !lastHovered) return;
929
+ if (!lastHovered) return;
930
930
  clearHoverOutline();
931
931
  toggleSelection(lastHovered);
932
932
  return;
@@ -945,11 +945,12 @@
945
945
  }
946
946
 
947
947
  if (e.key === 'Escape') {
948
- if (pinEl) {
948
+ if (pinEl || selectedEls.length > 0) {
949
949
  clearPin();
950
+ clearSelection();
950
951
  clearMeasureOverlay();
951
952
  hideTooltip();
952
- updatePillForSelection();
953
+ collapsePill();
953
954
  } else {
954
955
  deactivate();
955
956
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-specter",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
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",