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