@inspecto-dev/core 0.3.7 → 0.3.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/{component-PVWVSPVZ.js → component-BLZBHHON.js} +45 -10
- package/dist/component-BLZBHHON.js.map +1 -0
- package/dist/index.cjs +46 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/component-PVWVSPVZ.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -65,6 +65,7 @@ declare class InspectoElement extends BaseElement {
|
|
|
65
65
|
private shouldQuickJumpOnTrigger;
|
|
66
66
|
private shouldInvertLauncherEye;
|
|
67
67
|
private updateLauncherEye;
|
|
68
|
+
private pause;
|
|
68
69
|
private readonly onKeyDown;
|
|
69
70
|
private readonly onViewportChange;
|
|
70
71
|
private openInspectMenu;
|
package/dist/index.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ declare class InspectoElement extends BaseElement {
|
|
|
65
65
|
private shouldQuickJumpOnTrigger;
|
|
66
66
|
private shouldInvertLauncherEye;
|
|
67
67
|
private updateLauncherEye;
|
|
68
|
+
private pause;
|
|
68
69
|
private readonly onKeyDown;
|
|
69
70
|
private readonly onViewportChange;
|
|
70
71
|
private openInspectMenu;
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var TAG_NAME = "inspecto-overlay";
|
|
|
7
7
|
function mountInspector() {
|
|
8
8
|
return __async(this, arguments, function* (options = {}) {
|
|
9
9
|
if (typeof document === "undefined") return null;
|
|
10
|
-
const { InspectoElement } = yield import("./component-
|
|
10
|
+
const { InspectoElement: _InspectoElement } = yield import("./component-BLZBHHON.js");
|
|
11
11
|
const existing = document.querySelector(TAG_NAME);
|
|
12
12
|
if (existing) {
|
|
13
13
|
;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type { InspectorOptions } from '@inspecto-dev/types'\nimport type { InspectorMode } from './component.js'\n\n// Export types only, avoid top-level imports of DOM-dependent code\nexport type { InspectorOptions }\nexport type { InspectoElement } from './component.js'\nexport type { InspectorMode } from './component.js'\n\ntype MountInspectorOptions = InspectorOptions & { mode?: InspectorMode }\n\nconst TAG_NAME = 'inspecto-overlay'\n\nexport async function mountInspector(options: MountInspectorOptions = {}): Promise<any> {\n if (typeof document === 'undefined') return null\n\n // Lazy import the component so that module evaluation does not happen during SSR\n const { InspectoElement } = await import('./component.js')\n\n const existing = document.querySelector(TAG_NAME)\n if (existing) {\n ;(existing as typeof
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type { InspectorOptions } from '@inspecto-dev/types'\nimport type { InspectorMode } from './component.js'\n\n// Export types only, avoid top-level imports of DOM-dependent code\nexport type { InspectorOptions }\nexport type { InspectoElement } from './component.js'\nexport type { InspectorMode } from './component.js'\n\ntype MountInspectorOptions = InspectorOptions & { mode?: InspectorMode }\n\nconst TAG_NAME = 'inspecto-overlay'\n\nexport async function mountInspector(options: MountInspectorOptions = {}): Promise<any> {\n if (typeof document === 'undefined') return null\n\n // Lazy import the component so that module evaluation does not happen during SSR\n const { InspectoElement: _InspectoElement } = await import('./component.js')\n\n const existing = document.querySelector(TAG_NAME)\n if (existing) {\n ;(existing as typeof _InspectoElement.prototype).configure(options)\n return existing\n }\n\n const el = document.createElement(TAG_NAME)\n ;(el as typeof _InspectoElement.prototype).configure(options)\n document.body.appendChild(el)\n return el\n}\n\nexport function unmountInspector(): void {\n if (typeof document === 'undefined') return\n const existing = document.querySelector(TAG_NAME)\n if (existing) {\n existing.remove()\n }\n}\n\n// Expose to global window for Webpack/Rspack EntryPlugin injection fallback\nif (typeof window !== 'undefined') {\n window.InspectoClient = {\n mountInspector,\n unmountInspector,\n }\n}\n"],"mappings":";;;;;AAUA,IAAM,WAAW;AAEjB,SAAsB,iBAAkE;AAAA,6CAAnD,UAAiC,CAAC,GAAiB;AACtF,QAAI,OAAO,aAAa,YAAa,QAAO;AAG5C,UAAM,EAAE,iBAAiB,iBAAiB,IAAI,MAAM,OAAO,yBAAgB;AAE3E,UAAM,WAAW,SAAS,cAAc,QAAQ;AAChD,QAAI,UAAU;AACZ;AAAC,MAAC,SAA+C,UAAU,OAAO;AAClE,aAAO;AAAA,IACT;AAEA,UAAM,KAAK,SAAS,cAAc,QAAQ;AACzC,IAAC,GAAyC,UAAU,OAAO;AAC5D,aAAS,KAAK,YAAY,EAAE;AAC5B,WAAO;AAAA,EACT;AAAA;AAEO,SAAS,mBAAyB;AACvC,MAAI,OAAO,aAAa,YAAa;AACrC,QAAM,WAAW,SAAS,cAAc,QAAQ;AAChD,MAAI,UAAU;AACZ,aAAS,OAAO;AAAA,EAClB;AACF;AAGA,IAAI,OAAO,WAAW,aAAa;AACjC,SAAO,iBAAiB;AAAA,IACtB;AAAA,IACA;AAAA,EACF;AACF;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inspecto-dev/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"description": "Core browser runtime and server logic for Inspecto",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"html2canvas": "^1.4.1",
|
|
41
41
|
"launch-ide": "^1.0.0",
|
|
42
42
|
"portfinder": "^1.0.32",
|
|
43
|
-
"@inspecto-dev/types": "0.3.
|
|
43
|
+
"@inspecto-dev/types": "0.3.8"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "tsup",
|