@insitue/sdk 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/capture-only.js
CHANGED
|
@@ -2572,26 +2572,13 @@ function CaptureApp(props) {
|
|
|
2572
2572
|
}, [phase]);
|
|
2573
2573
|
y2(() => {
|
|
2574
2574
|
const onKey = (ev) => {
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
const isMeta = ev.metaKey || ev.ctrlKey;
|
|
2579
|
-
if (isMeta && (ev.key === "k" || ev.key === "K") && !inHostInput) {
|
|
2580
|
-
if (phase === "idle" || phase === "compose" || phase === "sent") {
|
|
2581
|
-
ev.preventDefault();
|
|
2582
|
-
void startPick();
|
|
2583
|
-
}
|
|
2584
|
-
return;
|
|
2585
|
-
}
|
|
2586
|
-
if (ev.key === "Escape") {
|
|
2587
|
-
if (phase === "compose") {
|
|
2588
|
-
ev.preventDefault();
|
|
2589
|
-
reset();
|
|
2590
|
-
}
|
|
2575
|
+
if (ev.key === "Escape" && phase === "compose") {
|
|
2576
|
+
ev.preventDefault();
|
|
2577
|
+
reset();
|
|
2591
2578
|
}
|
|
2592
2579
|
};
|
|
2593
|
-
window.addEventListener("keydown", onKey
|
|
2594
|
-
return () => window.removeEventListener("keydown", onKey
|
|
2580
|
+
window.addEventListener("keydown", onKey);
|
|
2581
|
+
return () => window.removeEventListener("keydown", onKey);
|
|
2595
2582
|
}, [phase]);
|
|
2596
2583
|
const startPick = async () => {
|
|
2597
2584
|
setPhase("picking");
|
|
@@ -2674,14 +2661,6 @@ function CaptureApp(props) {
|
|
|
2674
2661
|
"span",
|
|
2675
2662
|
{ style: `color:${C3.faint};font-family:${C3.mono};font-size:11px` },
|
|
2676
2663
|
offline ? "offline" : "\u2192 claude"
|
|
2677
|
-
),
|
|
2678
|
-
k(
|
|
2679
|
-
"span",
|
|
2680
|
-
{
|
|
2681
|
-
style: `color:${C3.faint};font-family:${C3.mono};font-size:10.5px;padding:1px 5px;border:1px solid ${C3.line};border-radius:4px;background:${C3.surface2}`,
|
|
2682
|
-
title: "Press to pick an element"
|
|
2683
|
-
},
|
|
2684
|
-
"\u2318K"
|
|
2685
2664
|
)
|
|
2686
2665
|
] : [dot, "Report a problem"]
|
|
2687
2666
|
);
|
|
@@ -2926,8 +2905,8 @@ function CaptureApp(props) {
|
|
|
2926
2905
|
k("span", {}, isDev ? "InSitue Dev \xB7 pick + describe \u2192 CLI" : ""),
|
|
2927
2906
|
k(
|
|
2928
2907
|
"span",
|
|
2929
|
-
{ title: `@insitue/sdk@${"0.3.
|
|
2930
|
-
`InSitue \xB7 v${"0.3.
|
|
2908
|
+
{ title: `@insitue/sdk@${"0.3.2"}` },
|
|
2909
|
+
`InSitue \xB7 v${"0.3.2"}`
|
|
2931
2910
|
)
|
|
2932
2911
|
]
|
|
2933
2912
|
)
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mountCaptureOnly
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YU5T67XL.js";
|
|
4
4
|
|
|
5
5
|
// src/InSitue.tsx
|
|
6
6
|
import { useEffect } from "react";
|
|
@@ -54,7 +54,7 @@ function InSitue({ port }) {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
// src/index.ts
|
|
57
|
-
var SDK_VERSION = "0.3.
|
|
57
|
+
var SDK_VERSION = "0.3.2";
|
|
58
58
|
export {
|
|
59
59
|
InSitue,
|
|
60
60
|
InSitueCapture,
|
package/package.json
CHANGED