@concavejs/devtools 0.0.1-alpha.6 → 0.0.1-alpha.7

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
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { i as t } from "./client-B2IPTPCG.js";
2
+ import { i as t } from "./client-B-Tg1Mm1.js";
3
3
  export {
4
4
  t as initDevTools
5
5
  };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as M, D as k, E as A, L as D, P as $, a as C, S as R, g as W, i as O } from "./client-B2IPTPCG.js";
1
+ import { b as M, D as k, E as A, L as D, P as $, a as C, S as R, g as W, i as O } from "./client-B-Tg1Mm1.js";
2
2
  import { concaveDevTools as N } from "./vite-plugin.js";
3
3
  function P(c) {
4
4
  const t = c.split(".");
@@ -14,7 +14,7 @@ function P(c) {
14
14
  return null;
15
15
  }
16
16
  }
17
- const v = Symbol.for("__concaveDevToolsInternalWsListener"), m = Symbol.for("__concaveDevToolsWsDelayMs");
17
+ const v = /* @__PURE__ */ Symbol.for("__concaveDevToolsInternalWsListener"), m = /* @__PURE__ */ Symbol.for("__concaveDevToolsWsDelayMs");
18
18
  function q() {
19
19
  const c = window.__concaveDevToolsLatencyConfig;
20
20
  if (!c) return 0;
@@ -4,6 +4,20 @@
4
4
  * Shows a brief "Copied!" toast on success.
5
5
  */
6
6
  export declare function copyToClipboard(text: string): void;
7
+ /**
8
+ * Check if the devtools overlay currently has keyboard focus.
9
+ * The devtools renders inside a Shadow DOM under #concave-devtools-host.
10
+ * When any element inside the shadow is focused, document.activeElement
11
+ * returns the shadow host element.
12
+ */
13
+ export declare function isDevToolsFocused(): boolean;
14
+ /**
15
+ * Returns the currently focused element inside the devtools shadow DOM,
16
+ * or null if nothing inside the devtools is focused.
17
+ * Use this instead of document.activeElement when comparing against refs
18
+ * to elements inside the shadow tree.
19
+ */
20
+ export declare function getDevToolsActiveElement(): Element | null;
7
21
  export declare function unwrapArgs<T>(args: T): T;
8
22
  export type InlinePreviewOptions = {
9
23
  maxStringLength?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@concavejs/devtools",
3
- "version": "0.0.1-alpha.6",
3
+ "version": "0.0.1-alpha.7",
4
4
  "license": "FSL-1.1-Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public"