@inspect-devtools/client 0.5.0 → 0.7.0
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/App.vue.d.ts.map +1 -1
- package/dist/composables/selection-location.d.ts +3 -1
- package/dist/composables/selection-location.d.ts.map +1 -1
- package/dist/composables/useInspector.d.ts +31 -13
- package/dist/composables/useInspector.d.ts.map +1 -1
- package/dist/entry.js +2617 -2370
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/App.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":"AAuGA,OAAO,KAAK,EAAE,4BAA4B,EAAwB,MAAM,wBAAwB,CAAA;AAKhG,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,4BAA4B,CAAA;CACtC,CAAC;AAqOF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { CopyFormat } from '@inspect-devtools/core';
|
|
1
2
|
import type { GrabSelection } from '@inspect-devtools/core/browser';
|
|
2
|
-
export declare const formatSelectionLocation: (selection: GrabSelection, projectRoot?: string) => string | undefined;
|
|
3
|
+
export declare const formatSelectionLocation: (selection: GrabSelection, format?: CopyFormat, projectRoot?: string) => string | undefined;
|
|
4
|
+
export declare const formatRouteLocation: (location: Pick<Location, "pathname" | "search" | "hash">) => string;
|
|
3
5
|
//# sourceMappingURL=selection-location.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection-location.d.ts","sourceRoot":"","sources":["../../src/composables/selection-location.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"selection-location.d.ts","sourceRoot":"","sources":["../../src/composables/selection-location.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAYnE,eAAO,MAAM,uBAAuB,GAAI,WAAW,aAAa,EAAE,SAAQ,UAAsB,EAAE,cAAc,MAAM,KAAG,MAAM,GAAG,SAgBjI,CAAA;AAID,eAAO,MAAM,mBAAmB,GAAI,UAAU,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC,KAAG,MAG9F,CAAA"}
|
|
@@ -2,13 +2,15 @@ import type { ClientInspectDevtoolsOptions } from '@inspect-devtools/core';
|
|
|
2
2
|
import { type GrabSelection } from '@inspect-devtools/core/browser';
|
|
3
3
|
export declare const isEditableTarget: (target: EventTarget | null) => boolean;
|
|
4
4
|
export declare const getInspectorShortcutAction: (event: Pick<KeyboardEvent, "altKey" | "code" | "shiftKey" | "target">) => "cancel" | "toggle" | undefined;
|
|
5
|
+
export declare const getClickSelectionAction: (event: Pick<MouseEvent, "altKey" | "shiftKey">) => "add" | "subtract" | undefined;
|
|
5
6
|
interface UseInspectorOptions {
|
|
6
7
|
onInspectStart?: () => void;
|
|
7
8
|
}
|
|
8
9
|
export declare const useInspector: (clientOptions: ClientInspectDevtoolsOptions, { onInspectStart }?: UseInspectorOptions) => {
|
|
9
|
-
activeSelection: import("vue").ComputedRef<GrabSelection
|
|
10
|
+
activeSelection: import("vue").ComputedRef<GrabSelection>;
|
|
10
11
|
hoveredElement: import("vue").ShallowRef<Element | null, Element | null>;
|
|
11
12
|
isInspecting: import("vue").ShallowRef<boolean, boolean>;
|
|
13
|
+
isMarqueeing: import("vue").ShallowRef<boolean, boolean>;
|
|
12
14
|
labelStyle: import("vue").ComputedRef<{
|
|
13
15
|
display: string;
|
|
14
16
|
transform?: undefined;
|
|
@@ -22,21 +24,37 @@ export declare const useInspector: (clientOptions: ClientInspectDevtoolsOptions,
|
|
|
22
24
|
copySelectionLocation: () => Promise<void>;
|
|
23
25
|
clearSelection: () => void;
|
|
24
26
|
dispose: () => void;
|
|
25
|
-
formatSelectionLocation: (selection: GrabSelection, projectRoot?: string) => string | undefined;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
formatSelectionLocation: (selection: GrabSelection, format?: import("@inspect-devtools/core").CopyFormat, projectRoot?: string) => string | undefined;
|
|
28
|
+
hoverOverlayStyle: import("vue").ComputedRef<{
|
|
29
|
+
readonly display: "block";
|
|
30
|
+
readonly transform: `translate(${number}px, ${number}px)`;
|
|
31
|
+
readonly width: `${number}px`;
|
|
32
|
+
readonly height: `${number}px`;
|
|
33
|
+
} | {
|
|
34
|
+
readonly display: "none";
|
|
35
|
+
}>;
|
|
36
|
+
marqueeStyle: import("vue").ComputedRef<{
|
|
37
|
+
readonly display: "none";
|
|
30
38
|
transform?: undefined;
|
|
31
|
-
width?: undefined;
|
|
32
|
-
height?: undefined;
|
|
39
|
+
readonly width?: undefined;
|
|
40
|
+
readonly height?: undefined;
|
|
33
41
|
} | {
|
|
34
|
-
display:
|
|
35
|
-
transform:
|
|
36
|
-
width:
|
|
37
|
-
height:
|
|
42
|
+
readonly display: "block";
|
|
43
|
+
readonly transform: `translate(${number}px, ${number}px)`;
|
|
44
|
+
readonly width: `${number}px`;
|
|
45
|
+
readonly height: `${number}px`;
|
|
38
46
|
}>;
|
|
39
|
-
|
|
47
|
+
modifierAction: import("vue").ComputedRef<"add" | "subtract" | null>;
|
|
48
|
+
openSelectionInEditor: (currentSelection?: GrabSelection) => Promise<void>;
|
|
49
|
+
openActiveSelectionInEditor: () => Promise<void>;
|
|
50
|
+
overlayStyles: import("vue").ComputedRef<{
|
|
51
|
+
readonly display: "block";
|
|
52
|
+
readonly transform: `translate(${number}px, ${number}px)`;
|
|
53
|
+
readonly width: `${number}px`;
|
|
54
|
+
readonly height: `${number}px`;
|
|
55
|
+
}[]>;
|
|
56
|
+
selection: import("vue").ComputedRef<GrabSelection>;
|
|
57
|
+
selections: import("vue").ShallowRef<GrabSelection[], GrabSelection[]>;
|
|
40
58
|
sourceLabel: import("vue").ComputedRef<{
|
|
41
59
|
label: string;
|
|
42
60
|
hint: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInspector.d.ts","sourceRoot":"","sources":["../../src/composables/useInspector.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAA;AAC1E,OAAO,EAAmE,KAAK,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAUpI,eAAO,MAAM,gBAAgB,GAAI,QAAQ,WAAW,GAAG,IAAI,KAAG,OAS7D,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,OAAO,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC,KAAG,QAAQ,GAAG,QAAQ,GAAG,SAOxI,CAAA;AA0CD,UAAU,mBAAmB;IAC3B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;CAC5B;
|
|
1
|
+
{"version":3,"file":"useInspector.d.ts","sourceRoot":"","sources":["../../src/composables/useInspector.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAA;AAC1E,OAAO,EAAmE,KAAK,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAUpI,eAAO,MAAM,gBAAgB,GAAI,QAAQ,WAAW,GAAG,IAAI,KAAG,OAS7D,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,OAAO,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC,KAAG,QAAQ,GAAG,QAAQ,GAAG,SAOxI,CAAA;AAGD,eAAO,MAAM,uBAAuB,GAAI,OAAO,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,UAAU,CAAC,KAAG,KAAK,GAAG,UAAU,GAAG,SAK7G,CAAA;AA0CD,UAAU,mBAAmB;IAC3B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;CAC5B;AAqBD,eAAO,MAAM,YAAY,GAAI,eAAe,4BAA4B,EAAE,qBAAoB,mBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2jBrH,CAAA"}
|