@insitue/sdk 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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  mountCaptureOnly
3
- } from "./chunk-YU5T67XL.js";
3
+ } from "./chunk-4NBN3ZZC.js";
4
4
  export {
5
5
  mountCaptureOnly
6
6
  };
@@ -2634,34 +2634,41 @@ function CaptureApp(props) {
2634
2634
  if (phase === "idle" || phase === "picking") {
2635
2635
  const picking = phase === "picking";
2636
2636
  const offline = isDev && companionState !== "connected";
2637
+ if (isDev) {
2638
+ const dotColor = offline ? "#9a9aa4" : CLOUD.accentSolid;
2639
+ const ringColor = offline ? "rgba(154,154,164,.4)" : "rgba(87,81,230,.45)";
2640
+ return k(
2641
+ "button",
2642
+ {
2643
+ onClick: picking ? void 0 : () => void startPick(),
2644
+ style: `all:unset;position:fixed;bottom:20px;right:20px;z-index:2147483000;width:20px;height:20px;border-radius:5px;background:${dotColor};box-shadow:0 4px 14px ${ringColor};cursor:${picking ? "default" : "pointer"};${picking ? "animation:ipulse 1.1s ease-in-out infinite;" : ""}transition:transform .15s ease`,
2645
+ title: picking ? "Click an element \xB7 Esc to cancel" : offline ? "InSitue companion not running \u2014 start `claude` with /insitue:connect" : "Pick an element to talk to claude about"
2646
+ },
2647
+ picking ? k(
2648
+ "style",
2649
+ {},
2650
+ "@keyframes ipulse{0%,100%{opacity:.45}50%{opacity:1}}"
2651
+ ) : null
2652
+ );
2653
+ }
2637
2654
  return k(
2638
2655
  "button",
2639
2656
  {
2640
2657
  onClick: picking ? void 0 : () => void startPick(),
2641
2658
  style: `all:unset;position:fixed;bottom:20px;right:20px;z-index:2147483000;display:flex;align-items:center;gap:9px;cursor:${picking ? "default" : "pointer"};padding:11px 16px;font:600 13.5px/1 ${C3.sans};color:${C3.ink};background:${C3.surface};border:1px solid ${C3.line};border-radius:999px;box-shadow:${C3.shadow};letter-spacing:-.01em`,
2642
- title: isDev ? offline ? "InSitue companion not running \u2014 start `claude` with /insitue:connect" : "Pick an element to talk to claude about" : "Report a problem"
2659
+ title: "Report a problem"
2643
2660
  },
2644
2661
  picking ? [
2645
2662
  k("span", {
2646
2663
  style: `width:9px;height:9px;border-radius:50%;background:${C3.accentSolid};animation:ipulse 1.1s ease-in-out infinite`
2647
2664
  }),
2648
- k("span", { style: `color:${C3.sub}` }, isDev ? "Click an element" : "Click the broken element"),
2665
+ k("span", { style: `color:${C3.sub}` }, "Click the broken element"),
2649
2666
  k("span", { style: `color:${C3.faint}` }, "\xB7 Esc to cancel"),
2650
2667
  k(
2651
2668
  "style",
2652
2669
  {},
2653
2670
  "@keyframes ipulse{0%,100%{opacity:.35}50%{opacity:1}}"
2654
2671
  )
2655
- ] : isDev ? [
2656
- k("span", {
2657
- style: `width:9px;height:9px;border-radius:50%;background:${offline ? "#9a9aa4" : "#5fd190"};box-shadow:${offline ? "none" : "0 0 6px #5fd190"}`
2658
- }),
2659
- k("span", {}, "InSitue Dev"),
2660
- k(
2661
- "span",
2662
- { style: `color:${C3.faint};font-family:${C3.mono};font-size:11px` },
2663
- offline ? "offline" : "\u2192 claude"
2664
- )
2665
2672
  ] : [dot, "Report a problem"]
2666
2673
  );
2667
2674
  }
@@ -2905,8 +2912,8 @@ function CaptureApp(props) {
2905
2912
  k("span", {}, isDev ? "InSitue Dev \xB7 pick + describe \u2192 CLI" : ""),
2906
2913
  k(
2907
2914
  "span",
2908
- { title: `@insitue/sdk@${"0.3.2"}` },
2909
- `InSitue \xB7 v${"0.3.2"}`
2915
+ { title: `@insitue/sdk@${"0.3.3"}` },
2916
+ `InSitue \xB7 v${"0.3.3"}`
2910
2917
  )
2911
2918
  ]
2912
2919
  )
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  mountCaptureOnly
3
- } from "./chunk-YU5T67XL.js";
3
+ } from "./chunk-4NBN3ZZC.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.2";
57
+ var SDK_VERSION = "0.3.3";
58
58
  export {
59
59
  InSitue,
60
60
  InSitueCapture,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insitue/sdk",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "InSitue capture SDK — drop one snippet into your deployed app; your users point at a bug, InSitue opens a verified pull request.",
5
5
  "license": "MIT",
6
6
  "type": "module",