@inspecto-dev/core 0.3.7 → 0.3.9

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/index.d.cts CHANGED
@@ -30,15 +30,20 @@ declare class InspectoElement extends BaseElement {
30
30
  private annotateEditingRecord;
31
31
  private badge;
32
32
  private configLoadPromise;
33
- private annotationResponseMode;
34
33
  private annotateInstructionDraft;
35
34
  private annotateErrorMessage;
36
35
  private annotateRuntimeContextEnabled;
37
- private annotateScreenshotContextEnabled;
38
36
  private annotateCssContextEnabled;
37
+ private annotateDeliveryMode;
39
38
  private annotateSendState;
39
+ private annotateLatestSessionSummary;
40
+ private annotateLatestSessionDetail;
41
+ private annotateLatestSessionStream;
42
+ private annotateLatestSessionLoading;
43
+ private annotateLatestSessionError;
40
44
  private annotateSuccessScope;
41
45
  private annotateSuccessTimeout;
46
+ private annotateSuccessOnClear;
42
47
  private pendingAnnotateViewportFrame;
43
48
  private runtimeContextCollector;
44
49
  private cleanupRuntimeContextCapture;
@@ -55,7 +60,6 @@ declare class InspectoElement extends BaseElement {
55
60
  private dismiss;
56
61
  private getHotKeyLabel;
57
62
  private getEffectiveHotKeys;
58
- private getAnnotationResponseMode;
59
63
  private updateBadgeContent;
60
64
  private setActive;
61
65
  private readonly onMouseMove;
@@ -65,12 +69,12 @@ declare class InspectoElement extends BaseElement {
65
69
  private shouldQuickJumpOnTrigger;
66
70
  private shouldInvertLauncherEye;
67
71
  private updateLauncherEye;
72
+ private pause;
68
73
  private readonly onKeyDown;
69
74
  private readonly onViewportChange;
70
75
  private openInspectMenu;
71
76
  private syncRuntimeContextCapture;
72
77
  private canAttachRuntimeContext;
73
- private canAttachScreenshotContext;
74
78
  private canAttachCssContext;
75
79
  private captureCssContextPromptForElement;
76
80
  private isCssContextEnabledForTarget;
@@ -80,8 +84,6 @@ declare class InspectoElement extends BaseElement {
80
84
  private getAnnotateRuntimeContext;
81
85
  private formatRuntimeContextSummary;
82
86
  private getCollectedRuntimeErrorCount;
83
- private resolveAnnotateScreenshotElement;
84
- private captureAnnotateScreenshotContext;
85
87
  private addTargetToCurrentAnnotation;
86
88
  private markTargetInAnnotateSession;
87
89
  private getAnnotationTargetKey;
@@ -100,6 +102,9 @@ declare class InspectoElement extends BaseElement {
100
102
  private clearAnnotateError;
101
103
  private clearAnnotateSuccess;
102
104
  private showAnnotateSuccess;
105
+ private refreshLatestAnnotateSession;
106
+ private startLatestAnnotateSessionStream;
107
+ private stopLatestAnnotateSessionStream;
103
108
  private toAnnotateErrorMessage;
104
109
  private toAnnotationTransportFromRecord;
105
110
  private sendAnnotationBatch;
package/dist/index.d.ts CHANGED
@@ -30,15 +30,20 @@ declare class InspectoElement extends BaseElement {
30
30
  private annotateEditingRecord;
31
31
  private badge;
32
32
  private configLoadPromise;
33
- private annotationResponseMode;
34
33
  private annotateInstructionDraft;
35
34
  private annotateErrorMessage;
36
35
  private annotateRuntimeContextEnabled;
37
- private annotateScreenshotContextEnabled;
38
36
  private annotateCssContextEnabled;
37
+ private annotateDeliveryMode;
39
38
  private annotateSendState;
39
+ private annotateLatestSessionSummary;
40
+ private annotateLatestSessionDetail;
41
+ private annotateLatestSessionStream;
42
+ private annotateLatestSessionLoading;
43
+ private annotateLatestSessionError;
40
44
  private annotateSuccessScope;
41
45
  private annotateSuccessTimeout;
46
+ private annotateSuccessOnClear;
42
47
  private pendingAnnotateViewportFrame;
43
48
  private runtimeContextCollector;
44
49
  private cleanupRuntimeContextCapture;
@@ -55,7 +60,6 @@ declare class InspectoElement extends BaseElement {
55
60
  private dismiss;
56
61
  private getHotKeyLabel;
57
62
  private getEffectiveHotKeys;
58
- private getAnnotationResponseMode;
59
63
  private updateBadgeContent;
60
64
  private setActive;
61
65
  private readonly onMouseMove;
@@ -65,12 +69,12 @@ declare class InspectoElement extends BaseElement {
65
69
  private shouldQuickJumpOnTrigger;
66
70
  private shouldInvertLauncherEye;
67
71
  private updateLauncherEye;
72
+ private pause;
68
73
  private readonly onKeyDown;
69
74
  private readonly onViewportChange;
70
75
  private openInspectMenu;
71
76
  private syncRuntimeContextCapture;
72
77
  private canAttachRuntimeContext;
73
- private canAttachScreenshotContext;
74
78
  private canAttachCssContext;
75
79
  private captureCssContextPromptForElement;
76
80
  private isCssContextEnabledForTarget;
@@ -80,8 +84,6 @@ declare class InspectoElement extends BaseElement {
80
84
  private getAnnotateRuntimeContext;
81
85
  private formatRuntimeContextSummary;
82
86
  private getCollectedRuntimeErrorCount;
83
- private resolveAnnotateScreenshotElement;
84
- private captureAnnotateScreenshotContext;
85
87
  private addTargetToCurrentAnnotation;
86
88
  private markTargetInAnnotateSession;
87
89
  private getAnnotationTargetKey;
@@ -100,6 +102,9 @@ declare class InspectoElement extends BaseElement {
100
102
  private clearAnnotateError;
101
103
  private clearAnnotateSuccess;
102
104
  private showAnnotateSuccess;
105
+ private refreshLatestAnnotateSession;
106
+ private startLatestAnnotateSessionStream;
107
+ private stopLatestAnnotateSessionStream;
103
108
  private toAnnotateErrorMessage;
104
109
  private toAnnotationTransportFromRecord;
105
110
  private sendAnnotationBatch;
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-PVWVSPVZ.js");
10
+ const { InspectoElement: _InspectoElement } = yield import("./component-MYXLDDWZ.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 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,gBAAgB,IAAI,MAAM,OAAO,yBAAgB;AAEzD,UAAM,WAAW,SAAS,cAAc,QAAQ;AAChD,QAAI,UAAU;AACZ;AAAC,MAAC,SAA8C,UAAU,OAAO;AACjE,aAAO;AAAA,IACT;AAEA,UAAM,KAAK,SAAS,cAAc,QAAQ;AACzC,IAAC,GAAwC,UAAU,OAAO;AAC3D,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":[]}
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.7",
3
+ "version": "0.3.9",
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.7"
43
+ "@inspecto-dev/types": "0.3.9"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "tsup",