@concavejs/devtools 0.0.1-alpha.6 → 0.0.1-alpha.8
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-B2IPTPCG.js → client-B-Tg1Mm1.js} +953 -906
- package/dist/client.js +1 -1
- package/dist/index.js +2 -2
- package/dist/overlay/utils.d.ts +14 -0
- package/package.json +3 -3
package/dist/client.js
CHANGED
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-
|
|
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;
|
package/dist/overlay/utils.d.ts
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "0.0.1-alpha.8",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"type-check": "tsc --noEmit"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@concavejs/brand": "0.0.1-alpha.
|
|
42
|
-
"@concavejs/core": "0.0.1-alpha.
|
|
41
|
+
"@concavejs/brand": "0.0.1-alpha.8",
|
|
42
|
+
"@concavejs/core": "0.0.1-alpha.8"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": "^18.0.0",
|