@spotpatch/runtime 1.14.0 → 1.15.1
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/{chunk-2WA6XVA4.js → chunk-DCN6OMLH.js} +13 -3
- package/dist/{chunk-2WA6XVA4.js.map → chunk-DCN6OMLH.js.map} +1 -1
- package/dist/{chunk-KIDHJQRG.js → chunk-PXJKFEUJ.js} +1 -1
- package/dist/chunk-PXJKFEUJ.js.map +1 -0
- package/dist/contextual-ask-panel.cjs +217 -127
- package/dist/contextual-ask-panel.cjs.map +1 -1
- package/dist/contextual-ask-panel.d.cts +2 -0
- package/dist/contextual-ask-panel.d.ts +2 -0
- package/dist/contextual-ask-panel.js +219 -128
- package/dist/contextual-ask-panel.js.map +1 -1
- package/dist/data-flow-panel.cjs +12 -2
- package/dist/data-flow-panel.cjs.map +1 -1
- package/dist/data-flow-panel.d.cts +1 -1
- package/dist/data-flow-panel.d.ts +1 -1
- package/dist/data-flow-panel.js +7 -1
- package/dist/data-flow-panel.js.map +1 -1
- package/dist/{data-flow-runtime-DMmV0d3E.d.cts → data-flow-runtime-CacBbxN0.d.cts} +2 -1
- package/dist/{data-flow-runtime-DMmV0d3E.d.ts → data-flow-runtime-CacBbxN0.d.ts} +2 -1
- package/dist/data-flow.cjs +13 -2
- package/dist/data-flow.cjs.map +1 -1
- package/dist/data-flow.d.cts +1 -1
- package/dist/data-flow.d.ts +1 -1
- package/dist/data-flow.js +3 -1
- package/dist/external-handoff-panel.cjs +22 -6
- package/dist/external-handoff-panel.cjs.map +1 -1
- package/dist/external-handoff-panel.d.cts +5 -2
- package/dist/external-handoff-panel.d.ts +5 -2
- package/dist/external-handoff-panel.js +21 -6
- package/dist/external-handoff-panel.js.map +1 -1
- package/dist/index.cjs +15 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +11 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-KIDHJQRG.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { SpotPatchRuntimeConfig } from '@spotpatch/shared';
|
|
2
|
-
export { D as DataFlowComponentRegistration, a as DataFlowInvocationToken, b as DataFlowRequestFrame, c as DataFlowRequestMetadata, d as DataFlowRuntime, e as DataFlowTriggerMetadata, f as createDataFlowRuntime, g as getDataFlowRuntime, i as installDataFlowPrelude } from './data-flow-runtime-
|
|
2
|
+
export { D as DataFlowComponentRegistration, a as DataFlowInvocationToken, b as DataFlowRequestFrame, c as DataFlowRequestMetadata, d as DataFlowRuntime, e as DataFlowTriggerMetadata, f as createDataFlowRuntime, g as getDataFlowRuntime, i as installDataFlowPrelude } from './data-flow-runtime-CacBbxN0.cjs';
|
|
3
3
|
export { mergeComponentDataFlowReport, mergePageDataFlowReport } from './data-flow.cjs';
|
|
4
4
|
import '@spotpatch/shared/data-flow-runtime';
|
|
5
5
|
|
|
6
|
-
type RuntimeConfig = SpotPatchRuntimeConfig;
|
|
7
|
-
|
|
8
|
-
declare function bootstrapSpotPatch(config: RuntimeConfig): void;
|
|
9
|
-
|
|
10
6
|
type RuntimeStatus = "idle" | "inspecting" | "selected" | "previewing";
|
|
11
7
|
interface RuntimeState {
|
|
12
8
|
readonly status: RuntimeStatus;
|
|
13
9
|
}
|
|
14
10
|
|
|
11
|
+
type RuntimeConfig = SpotPatchRuntimeConfig;
|
|
12
|
+
|
|
15
13
|
interface SpotPatchController {
|
|
16
14
|
readonly dispose: () => void;
|
|
17
15
|
readonly getState: () => RuntimeState;
|
|
18
16
|
readonly mount: () => void;
|
|
19
17
|
}
|
|
20
18
|
|
|
19
|
+
declare function bootstrapSpotPatch(config: RuntimeConfig): SpotPatchController;
|
|
20
|
+
|
|
21
21
|
declare const UI_MARKER_ATTRIBUTE: "data-spotpatch-ui";
|
|
22
22
|
|
|
23
23
|
export { type RuntimeConfig, type SpotPatchController, UI_MARKER_ATTRIBUTE, bootstrapSpotPatch };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { SpotPatchRuntimeConfig } from '@spotpatch/shared';
|
|
2
|
-
export { D as DataFlowComponentRegistration, a as DataFlowInvocationToken, b as DataFlowRequestFrame, c as DataFlowRequestMetadata, d as DataFlowRuntime, e as DataFlowTriggerMetadata, f as createDataFlowRuntime, g as getDataFlowRuntime, i as installDataFlowPrelude } from './data-flow-runtime-
|
|
2
|
+
export { D as DataFlowComponentRegistration, a as DataFlowInvocationToken, b as DataFlowRequestFrame, c as DataFlowRequestMetadata, d as DataFlowRuntime, e as DataFlowTriggerMetadata, f as createDataFlowRuntime, g as getDataFlowRuntime, i as installDataFlowPrelude } from './data-flow-runtime-CacBbxN0.js';
|
|
3
3
|
export { mergeComponentDataFlowReport, mergePageDataFlowReport } from './data-flow.js';
|
|
4
4
|
import '@spotpatch/shared/data-flow-runtime';
|
|
5
5
|
|
|
6
|
-
type RuntimeConfig = SpotPatchRuntimeConfig;
|
|
7
|
-
|
|
8
|
-
declare function bootstrapSpotPatch(config: RuntimeConfig): void;
|
|
9
|
-
|
|
10
6
|
type RuntimeStatus = "idle" | "inspecting" | "selected" | "previewing";
|
|
11
7
|
interface RuntimeState {
|
|
12
8
|
readonly status: RuntimeStatus;
|
|
13
9
|
}
|
|
14
10
|
|
|
11
|
+
type RuntimeConfig = SpotPatchRuntimeConfig;
|
|
12
|
+
|
|
15
13
|
interface SpotPatchController {
|
|
16
14
|
readonly dispose: () => void;
|
|
17
15
|
readonly getState: () => RuntimeState;
|
|
18
16
|
readonly mount: () => void;
|
|
19
17
|
}
|
|
20
18
|
|
|
19
|
+
declare function bootstrapSpotPatch(config: RuntimeConfig): SpotPatchController;
|
|
20
|
+
|
|
21
21
|
declare const UI_MARKER_ATTRIBUTE: "data-spotpatch-ui";
|
|
22
22
|
|
|
23
23
|
export { type RuntimeConfig, type SpotPatchController, UI_MARKER_ATTRIBUTE, bootstrapSpotPatch };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getContextualAskExtension
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PXJKFEUJ.js";
|
|
4
4
|
import {
|
|
5
5
|
getDataFlowExtension
|
|
6
6
|
} from "./chunk-NII5OBAN.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
installDataFlowPrelude,
|
|
11
11
|
mergeComponentDataFlowReport,
|
|
12
12
|
mergePageDataFlowReport
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DCN6OMLH.js";
|
|
14
14
|
import {
|
|
15
15
|
getExternalHandoffExtension
|
|
16
16
|
} from "./chunk-ASRUAKA5.js";
|
|
@@ -307,7 +307,7 @@ function readSuccessData(value) {
|
|
|
307
307
|
return value.data;
|
|
308
308
|
}
|
|
309
309
|
function isCodeContext(value) {
|
|
310
|
-
return isRecord2(value) && typeof value.relativePath === "string" && (value.language === "tsx" || value.language === "jsx") && typeof value.startLine === "number" && typeof value.endLine === "number" && typeof value.excerpt === "string" && (value.boundary === "component" || value.boundary === "nearby-lines");
|
|
310
|
+
return isRecord2(value) && typeof value.relativePath === "string" && (value.language === "tsx" || value.language === "jsx" || value.language === "astro") && typeof value.startLine === "number" && typeof value.endLine === "number" && typeof value.excerpt === "string" && (value.boundary === "component" || value.boundary === "nearby-lines");
|
|
311
311
|
}
|
|
312
312
|
function deepFreezeUnknown(value) {
|
|
313
313
|
if (!isRecord2(value) && !Array.isArray(value)) {
|
|
@@ -1722,7 +1722,11 @@ function createSourceResolver(options) {
|
|
|
1722
1722
|
if (marker !== void 0) {
|
|
1723
1723
|
return Object.freeze({
|
|
1724
1724
|
react: react2,
|
|
1725
|
-
source: markerSource(
|
|
1725
|
+
source: markerSource(
|
|
1726
|
+
marker,
|
|
1727
|
+
marker.kind === "astro" ? "astro-host" : "jsx-host",
|
|
1728
|
+
"exact"
|
|
1729
|
+
)
|
|
1726
1730
|
});
|
|
1727
1731
|
}
|
|
1728
1732
|
if (react2.source !== void 0) {
|
|
@@ -5446,7 +5450,7 @@ function sourceLocation2(resolution, context, messages) {
|
|
|
5446
5450
|
function createSelectionSummary(input, messages) {
|
|
5447
5451
|
const lines = [
|
|
5448
5452
|
`SpotPatch: ${input.spotPatchVersion}`,
|
|
5449
|
-
`${
|
|
5453
|
+
`${{ next: "Next.js", vite: "Vite", astro: "Astro" }[input.framework]}: ${input.frameworkVersion}`,
|
|
5450
5454
|
`${messages.source}: ${sourceLocation2(input.resolution, input.code, messages)}`,
|
|
5451
5455
|
`${messages.confidence}: ${input.resolution.source.confidence} (${messages.confidenceLabels[input.resolution.source.confidence]})`,
|
|
5452
5456
|
`${messages.origin}: ${input.resolution.source.origin}`
|
|
@@ -6564,7 +6568,6 @@ ${summary}`;
|
|
|
6564
6568
|
view.hideHighlight();
|
|
6565
6569
|
resizeObserver?.observe(element2);
|
|
6566
6570
|
refreshSelectionView(true);
|
|
6567
|
-
void loadDataFlowReports();
|
|
6568
6571
|
selectionOpen = true;
|
|
6569
6572
|
view.focusTargetInstruction(target2.id);
|
|
6570
6573
|
scheduleBrowserContextCollection(target2, revision);
|
|
@@ -6575,6 +6578,7 @@ ${summary}`;
|
|
|
6575
6578
|
resolution.source.confidence === "probable" ? view.messages().announcements.sourceProbable : view.messages().announcements.sourceMissing
|
|
6576
6579
|
);
|
|
6577
6580
|
}
|
|
6581
|
+
void loadDataFlowReports();
|
|
6578
6582
|
}
|
|
6579
6583
|
function updateHoveredElement() {
|
|
6580
6584
|
animationFrame = void 0;
|
|
@@ -7007,6 +7011,7 @@ function bootstrapSpotPatch(config) {
|
|
|
7007
7011
|
const controller = createController(config);
|
|
7008
7012
|
target2[RUNTIME_INSTANCE_KEY] = controller;
|
|
7009
7013
|
controller.mount();
|
|
7014
|
+
return controller;
|
|
7010
7015
|
}
|
|
7011
7016
|
export {
|
|
7012
7017
|
UI_MARKER_ATTRIBUTE,
|