@inspect-devtools/client 0.1.0 → 0.2.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/copy-format.d.ts +7 -0
- package/dist/composables/copy-format.d.ts.map +1 -0
- package/dist/composables/selection-location.d.ts +2 -1
- package/dist/composables/selection-location.d.ts.map +1 -1
- package/dist/composables/useInspector.d.ts +7 -2
- package/dist/composables/useInspector.d.ts.map +1 -1
- package/dist/entry.js +2193 -2078
- package/dist/style.css +1 -1
- package/package.json +10 -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":"AA4JA,OAAO,KAAK,EAAE,4BAA4B,EAAc,MAAM,wBAAwB,CAAA;AAKtF,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,4BAA4B,CAAA;CACtC,CAAC;AAySF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CopyFormat } from '@inspect-devtools/core';
|
|
2
|
+
export declare const COPY_FORMATS: CopyFormat[];
|
|
3
|
+
export declare const isCopyFormat: (value: string | null | undefined) => value is CopyFormat;
|
|
4
|
+
export declare const loadPersistedCopyFormat: (projectRoot: string) => CopyFormat | undefined;
|
|
5
|
+
export declare const persistCopyFormat: (projectRoot: string, format: CopyFormat) => void;
|
|
6
|
+
export declare const clearPersistedCopyFormat: (projectRoot: string) => void;
|
|
7
|
+
//# sourceMappingURL=copy-format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-format.d.ts","sourceRoot":"","sources":["../../src/composables/copy-format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD,eAAO,MAAM,YAAY,EAAE,UAAU,EAAwB,CAAA;AAC7D,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,KAAK,IAAI,UAA0E,CAAA;AAEnJ,eAAO,MAAM,uBAAuB,GAAI,aAAa,MAAM,KAAG,UAAU,GAAG,SAK1E,CAAA;AACD,eAAO,MAAM,iBAAiB,GAAI,aAAa,MAAM,EAAE,QAAQ,UAAU,KAAG,IAE3E,CAAA;AACD,eAAO,MAAM,wBAAwB,GAAI,aAAa,MAAM,KAAG,IAE9D,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
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) => string | undefined;
|
|
3
|
+
export declare const formatSelectionLocation: (selection: GrabSelection, format?: CopyFormat, projectRoot?: string) => string | undefined;
|
|
3
4
|
//# 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,UAAoB,EAAE,cAAc,MAAM,KAAG,MAAM,GAAG,SAe/H,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClientInspectDevtoolsOptions } from '@inspect-devtools/core';
|
|
1
|
+
import type { ClientInspectDevtoolsOptions, CopyFormat } 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,7 +8,10 @@ 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;
|
|
11
13
|
hoveredElement: import("vue").ShallowRef<Element | null, Element | null>;
|
|
14
|
+
isCopyFormatOverridden: import("vue").ComputedRef<boolean>;
|
|
12
15
|
isInspecting: import("vue").ShallowRef<boolean, boolean>;
|
|
13
16
|
labelStyle: import("vue").ComputedRef<{
|
|
14
17
|
display: string;
|
|
@@ -23,7 +26,7 @@ export declare const useInspector: (clientOptions: ClientInspectDevtoolsOptions,
|
|
|
23
26
|
copySelectionLocation: () => Promise<void>;
|
|
24
27
|
clearSelection: () => void;
|
|
25
28
|
dispose: () => void;
|
|
26
|
-
formatSelectionLocation: (selection: GrabSelection) => string | undefined;
|
|
29
|
+
formatSelectionLocation: (selection: GrabSelection, format?: CopyFormat, projectRoot?: string) => string | undefined;
|
|
27
30
|
openSelectionInEditor: (currentSelection?: GrabSelection | null) => Promise<void>;
|
|
28
31
|
openActiveSelectionInEditor: () => Promise<void>;
|
|
29
32
|
overlayStyle: import("vue").ComputedRef<{
|
|
@@ -37,7 +40,9 @@ export declare const useInspector: (clientOptions: ClientInspectDevtoolsOptions,
|
|
|
37
40
|
width: string;
|
|
38
41
|
height: string;
|
|
39
42
|
}>;
|
|
43
|
+
resetCopyFormat: () => void;
|
|
40
44
|
selection: import("vue").ShallowRef<GrabSelection | null, GrabSelection | null>;
|
|
45
|
+
setCopyFormat: (format: CopyFormat) => void;
|
|
41
46
|
sourceLabel: import("vue").ComputedRef<{
|
|
42
47
|
label: string;
|
|
43
48
|
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;
|
|
1
|
+
{"version":3,"file":"useInspector.d.ts","sourceRoot":"","sources":["../../src/composables/useInspector.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,4BAA4B,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACtF,OAAO,EAAmE,KAAK,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAWpI,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAgBpG,UAAU;;;;;;;;CA4N1C,CAAA"}
|