@inspecto-dev/core 0.3.0 → 0.3.2
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.
|
@@ -2773,11 +2773,17 @@ function getAnnotateSidebarOptions(ctx) {
|
|
|
2773
2773
|
})
|
|
2774
2774
|
);
|
|
2775
2775
|
}
|
|
2776
|
-
void sendAnnotationBatch(
|
|
2777
|
-
state
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2776
|
+
void sendAnnotationBatch(
|
|
2777
|
+
state,
|
|
2778
|
+
transports,
|
|
2779
|
+
"batch",
|
|
2780
|
+
composeAnnotateInstruction(state),
|
|
2781
|
+
() => {
|
|
2782
|
+
state.annotateDrafts.clear();
|
|
2783
|
+
state.annotateEditingRecord = null;
|
|
2784
|
+
state.annotateSession = createEmptySession();
|
|
2785
|
+
}
|
|
2786
|
+
);
|
|
2781
2787
|
},
|
|
2782
2788
|
onExit: () => {
|
|
2783
2789
|
state.setMode("inspect");
|
|
@@ -3072,7 +3078,7 @@ function updateBadgeContent(ctx) {
|
|
|
3072
3078
|
button.classList.toggle("active", active);
|
|
3073
3079
|
button.setAttribute("aria-pressed", String(active));
|
|
3074
3080
|
};
|
|
3075
|
-
let stateLabel
|
|
3081
|
+
let stateLabel;
|
|
3076
3082
|
if (state.disabled) {
|
|
3077
3083
|
stateLabel = "Selection paused";
|
|
3078
3084
|
indicator.dataset.state = "paused";
|
|
@@ -3686,7 +3692,7 @@ function showIntentMenu(shadowRoot, location, clickX, clickY, options, onClose,
|
|
|
3686
3692
|
const maxSnippetLines = (_a2 = options.maxSnippetLines) != null ? _a2 : 100;
|
|
3687
3693
|
const includeSnippet = (_b = options.includeSnippet) != null ? _b : false;
|
|
3688
3694
|
let canAttachRuntimeContext2 = ((_c = options.runtimeContext) == null ? void 0 : _c.enabled) === true && typeof deps.getRuntimeContext === "function";
|
|
3689
|
-
|
|
3695
|
+
const canAttachScreenshotContext2 = false;
|
|
3690
3696
|
let runtimeContextPreference = null;
|
|
3691
3697
|
let runtimeContextDefaultMode = "off";
|
|
3692
3698
|
let screenshotContextEnabled = false;
|
|
@@ -3702,13 +3708,13 @@ function showIntentMenu(shadowRoot, location, clickX, clickY, options, onClose,
|
|
|
3702
3708
|
runtimeToggleBadge,
|
|
3703
3709
|
screenshotToggleButton,
|
|
3704
3710
|
cssToggleButton
|
|
3705
|
-
} = createMenuHeaderDom({
|
|
3706
|
-
location
|
|
3707
|
-
|
|
3711
|
+
} = createMenuHeaderDom(__spreadProps(__spreadValues({
|
|
3712
|
+
location
|
|
3713
|
+
}, deps.targetLabel ? { targetLabel: deps.targetLabel } : {}), {
|
|
3708
3714
|
canAttachRuntimeContext: canAttachRuntimeContext2,
|
|
3709
3715
|
canAttachScreenshotContext: canAttachScreenshotContext2,
|
|
3710
3716
|
canAttachCssContext: canAttachCssContext2
|
|
3711
|
-
});
|
|
3717
|
+
}));
|
|
3712
3718
|
const syncScreenshotToggleButton = () => {
|
|
3713
3719
|
screenshotToggleButton.hidden = !canAttachScreenshotContext2;
|
|
3714
3720
|
if (!canAttachScreenshotContext2) {
|
|
@@ -4840,11 +4846,7 @@ function createAnnotateSidebarDom(shadowRoot) {
|
|
|
4840
4846
|
const headerActions = document.createElement("div");
|
|
4841
4847
|
headerActions.className = annotateSidebarActionsClass;
|
|
4842
4848
|
headerActions.setAttribute("data-inspecto-annotate-header-actions", "true");
|
|
4843
|
-
const quickCaptureButton = createSidebarButton(
|
|
4844
|
-
pureMarkIconSvg,
|
|
4845
|
-
annotateSidebarButtonClass,
|
|
4846
|
-
true
|
|
4847
|
-
);
|
|
4849
|
+
const quickCaptureButton = createSidebarButton(pureMarkIconSvg, annotateSidebarButtonClass, true);
|
|
4848
4850
|
quickCaptureButton.dataset.role = "quick-capture";
|
|
4849
4851
|
quickCaptureButton.classList.add(runtimeToggleClass);
|
|
4850
4852
|
quickCaptureButton.setAttribute("aria-label", "Toggle quick capture");
|
|
@@ -5651,7 +5653,10 @@ function syncModeUi(ctx) {
|
|
|
5651
5653
|
function mountAnnotateSidebar(ctx) {
|
|
5652
5654
|
const state = asModeUiContext(ctx);
|
|
5653
5655
|
if (state.annotateSidebar) return;
|
|
5654
|
-
state.annotateSidebar = createAnnotateSidebar(
|
|
5656
|
+
state.annotateSidebar = createAnnotateSidebar(
|
|
5657
|
+
state.shadowRootEl,
|
|
5658
|
+
state.getAnnotateSidebarOptions()
|
|
5659
|
+
);
|
|
5655
5660
|
}
|
|
5656
5661
|
function updateAnnotateSidebar(ctx) {
|
|
5657
5662
|
var _a2;
|
|
@@ -5891,7 +5896,9 @@ function syncRuntimeContextCapture(ctx) {
|
|
|
5891
5896
|
const runtimeContextEnabled = ((_a2 = state.options.runtimeContext) == null ? void 0 : _a2.enabled) === true && (state.mode === "inspect" || state.mode === "annotate" && !state.disabled);
|
|
5892
5897
|
if (runtimeContextEnabled) {
|
|
5893
5898
|
if (!state.cleanupRuntimeContextCapture) {
|
|
5894
|
-
state.cleanupRuntimeContextCapture = attachRuntimeContextCapture(
|
|
5899
|
+
state.cleanupRuntimeContextCapture = attachRuntimeContextCapture(
|
|
5900
|
+
state.runtimeContextCollector
|
|
5901
|
+
);
|
|
5895
5902
|
}
|
|
5896
5903
|
return;
|
|
5897
5904
|
}
|
|
@@ -6309,4 +6316,4 @@ if (typeof customElements !== "undefined") {
|
|
|
6309
6316
|
export {
|
|
6310
6317
|
InspectoElement
|
|
6311
6318
|
};
|
|
6312
|
-
//# sourceMappingURL=component-
|
|
6319
|
+
//# sourceMappingURL=component-D75QZTRY.js.map
|