@swmansion/argent 0.24.1-next.1 → 0.24.1-next.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.
- package/dist/cli-cmds.mjs +1 -1
- package/dist/installer.mjs +1 -1
- package/dist/tool-server.cjs +6 -6
- package/package.json +1 -1
package/dist/cli-cmds.mjs
CHANGED
package/dist/installer.mjs
CHANGED
|
@@ -16625,7 +16625,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
16625
16625
|
var SESSION_ID = randomUUID4();
|
|
16626
16626
|
function readCliVersion() {
|
|
16627
16627
|
if (true) {
|
|
16628
|
-
return "0.24.1-next.
|
|
16628
|
+
return "0.24.1-next.2";
|
|
16629
16629
|
}
|
|
16630
16630
|
return "0.0.0";
|
|
16631
16631
|
}
|
package/dist/tool-server.cjs
CHANGED
|
@@ -93916,7 +93916,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
93916
93916
|
var SESSION_ID = (0, import_node_crypto3.randomUUID)();
|
|
93917
93917
|
function readCliVersion() {
|
|
93918
93918
|
if (true) {
|
|
93919
|
-
return "0.24.1-next.
|
|
93919
|
+
return "0.24.1-next.2";
|
|
93920
93920
|
}
|
|
93921
93921
|
return "0.0.0";
|
|
93922
93922
|
}
|
|
@@ -121871,7 +121871,7 @@ init_zod();
|
|
|
121871
121871
|
|
|
121872
121872
|
// ../tool-server/src/utils/chromium-visibility.ts
|
|
121873
121873
|
init_src();
|
|
121874
|
-
async function assertChromiumWindowVisible(chromium, action
|
|
121874
|
+
async function assertChromiumWindowVisible(chromium, action) {
|
|
121875
121875
|
let value;
|
|
121876
121876
|
try {
|
|
121877
121877
|
const raw = await chromium.cdp.send("Runtime.evaluate", {
|
|
@@ -121887,7 +121887,7 @@ async function assertChromiumWindowVisible(chromium, action, failureStage) {
|
|
|
121887
121887
|
`Cannot ${action}: the Chromium window is hidden (minimized or fully occluded), so the renderer will not process mouse input. Bring the window to the foreground and retry.`,
|
|
121888
121888
|
{
|
|
121889
121889
|
error_code: FAILURE_CODES.CHROMIUM_WINDOW_HIDDEN,
|
|
121890
|
-
failure_stage:
|
|
121890
|
+
failure_stage: `chromium_${action}_window_hidden`,
|
|
121891
121891
|
failure_area: "tool_server",
|
|
121892
121892
|
error_kind: "validation"
|
|
121893
121893
|
}
|
|
@@ -121964,7 +121964,7 @@ Before tapping, determine the correct coordinates by using discovery tools \u201
|
|
|
121964
121964
|
const clickCount = params.clickCount ?? 1;
|
|
121965
121965
|
if (device.platform === "chromium") {
|
|
121966
121966
|
const chromium = services.chromium;
|
|
121967
|
-
await assertChromiumWindowVisible(chromium, "tap"
|
|
121967
|
+
await assertChromiumWindowVisible(chromium, "tap");
|
|
121968
121968
|
await tapChromium(chromium, params.x, params.y, clickCount);
|
|
121969
121969
|
return { tapped: true, timestampMs };
|
|
121970
121970
|
}
|
|
@@ -122200,7 +122200,7 @@ Returns { scrolled: true, timestampMs }. Fails if the Chromium CDP session is no
|
|
|
122200
122200
|
async execute(services, params) {
|
|
122201
122201
|
const timestampMs = Date.now();
|
|
122202
122202
|
const chromium = services.chromium;
|
|
122203
|
-
await assertChromiumWindowVisible(chromium, "scroll"
|
|
122203
|
+
await assertChromiumWindowVisible(chromium, "scroll");
|
|
122204
122204
|
const vp = chromium.getViewport();
|
|
122205
122205
|
const totalDx = (params.deltaX ?? 0) * vp.width;
|
|
122206
122206
|
const totalDy = (params.deltaY ?? 0) * vp.height;
|
|
@@ -122266,7 +122266,7 @@ Pass momentum:false for a momentum-free drag that decelerates into the release,
|
|
|
122266
122266
|
async execute(services, params, ctx) {
|
|
122267
122267
|
const timestampMs = Date.now();
|
|
122268
122268
|
const chromium = services.chromium;
|
|
122269
|
-
await assertChromiumWindowVisible(chromium, "drag"
|
|
122269
|
+
await assertChromiumWindowVisible(chromium, "drag");
|
|
122270
122270
|
const vp = chromium.getViewport();
|
|
122271
122271
|
const clampPx2 = (px, size) => Math.min(Math.max(px, 0), size - 1);
|
|
122272
122272
|
const startPx = {
|
package/package.json
CHANGED