@inspect-devtools/client 0.3.0 → 0.4.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 +1 -2
- package/dist/composables/selection-location.d.ts.map +1 -1
- package/dist/composables/useInspector.d.ts +2 -7
- package/dist/composables/useInspector.d.ts.map +1 -1
- package/dist/entry.js +2049 -2183
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/composables/copy-format.d.ts +0 -7
- package/dist/composables/copy-format.d.ts.map +0 -1
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":"AA0IA,OAAO,KAAK,EAAE,4BAA4B,EAAwB,MAAM,wBAAwB,CAAA;AAKhG,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,4BAA4B,CAAA;CACtC,CAAC;AA+SF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { CopyFormat } from '@inspect-devtools/core';
|
|
2
1
|
import type { GrabSelection } from '@inspect-devtools/core/browser';
|
|
3
|
-
export declare const formatSelectionLocation: (selection: GrabSelection,
|
|
2
|
+
export declare const formatSelectionLocation: (selection: GrabSelection, projectRoot?: string) => string | undefined;
|
|
4
3
|
//# 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,
|
|
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;AAEnE,eAAO,MAAM,uBAAuB,GAAI,WAAW,aAAa,EAAE,cAAc,MAAM,KAAG,MAAM,GAAG,SAUjG,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClientInspectDevtoolsOptions
|
|
1
|
+
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" | "toggle-panel" | undefined;
|
|
@@ -8,10 +8,7 @@ interface UseInspectorOptions {
|
|
|
8
8
|
}
|
|
9
9
|
export declare const useInspector: (clientOptions: ClientInspectDevtoolsOptions, { onInspectStart, onTogglePanel }?: UseInspectorOptions) => {
|
|
10
10
|
activeSelection: import("vue").ComputedRef<GrabSelection | null>;
|
|
11
|
-
copyFormat: import("vue").ShallowRef<CopyFormat, CopyFormat>;
|
|
12
|
-
defaultCopyFormat: CopyFormat;
|
|
13
11
|
hoveredElement: import("vue").ShallowRef<Element | null, Element | null>;
|
|
14
|
-
isCopyFormatOverridden: import("vue").ComputedRef<boolean>;
|
|
15
12
|
isInspecting: import("vue").ShallowRef<boolean, boolean>;
|
|
16
13
|
labelStyle: import("vue").ComputedRef<{
|
|
17
14
|
display: string;
|
|
@@ -26,7 +23,7 @@ export declare const useInspector: (clientOptions: ClientInspectDevtoolsOptions,
|
|
|
26
23
|
copySelectionLocation: () => Promise<void>;
|
|
27
24
|
clearSelection: () => void;
|
|
28
25
|
dispose: () => void;
|
|
29
|
-
formatSelectionLocation: (selection: GrabSelection,
|
|
26
|
+
formatSelectionLocation: (selection: GrabSelection, projectRoot?: string) => string | undefined;
|
|
30
27
|
openSelectionInEditor: (currentSelection?: GrabSelection | null) => Promise<void>;
|
|
31
28
|
openActiveSelectionInEditor: () => Promise<void>;
|
|
32
29
|
overlayStyle: import("vue").ComputedRef<{
|
|
@@ -40,9 +37,7 @@ export declare const useInspector: (clientOptions: ClientInspectDevtoolsOptions,
|
|
|
40
37
|
width: string;
|
|
41
38
|
height: string;
|
|
42
39
|
}>;
|
|
43
|
-
resetCopyFormat: () => void;
|
|
44
40
|
selection: import("vue").ShallowRef<GrabSelection | null, GrabSelection | null>;
|
|
45
|
-
setCopyFormat: (format: CopyFormat) => void;
|
|
46
41
|
sourceLabel: import("vue").ComputedRef<{
|
|
47
42
|
label: string;
|
|
48
43
|
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,
|
|
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,cAAc,GAAG,SASzJ,CAAA;AA0CD,UAAU,mBAAmB;IAC3B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;CAC3B;AAED,eAAO,MAAM,YAAY,GAAI,eAAe,4BAA4B,EAAE,oCAAmC,mBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyNpI,CAAA"}
|