@bugbug-io/sdk 14.0.8 → 14.1.0

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9577,7 +9577,7 @@ var buildUserAgent = (clientType, version) => `BugBug ${clientType.toUpperCase()
9577
9577
  // ../core/package.json
9578
9578
  var package_default = {
9579
9579
  name: "@bugbug-io/core",
9580
- version: "14.0.8",
9580
+ version: "14.1.0",
9581
9581
  private: true,
9582
9582
  type: "module",
9583
9583
  main: "dist/index.js",
@@ -14971,6 +14971,7 @@ var StepTypeSchema = external_exports.enum([
14971
14971
  "hover",
14972
14972
  "ifCondition",
14973
14973
  "mouseDown",
14974
+ "mouseMove",
14974
14975
  "mouseUp",
14975
14976
  "newTab",
14976
14977
  "pageVisualRegression",
@@ -14982,7 +14983,7 @@ var StepTypeSchema = external_exports.enum([
14982
14983
  "switchContext",
14983
14984
  "type",
14984
14985
  "uploadFile"
14985
- ]).describe("Available step types: answerPrompt, assert, change, clear, click, dblClick, rightClick, closeTab, dragAndDrop, elementVisualRegression, execute, goto, goBack, goForward, hover, ifCondition, mouseDown, mouseUp, newTab, pageVisualRegression, pasteFromClipboard, reloadPage, scroll, select, setLocalVariable, switchContext, type, uploadFile.");
14986
+ ]).describe("Available step types: answerPrompt, assert, change, clear, click, dblClick, rightClick, closeTab, dragAndDrop, elementVisualRegression, execute, goto, goBack, goForward, hover, ifCondition, mouseDown, mouseMove, mouseUp, newTab, pageVisualRegression, pasteFromClipboard, reloadPage, scroll, select, setLocalVariable, switchContext, type, uploadFile.");
14986
14987
  var AssertionTypeSchema = external_exports.enum([
14987
14988
  "contain",
14988
14989
  "equal",
@@ -15253,6 +15254,17 @@ var MouseDownStepSchema = StepBaseSchema.extend({
15253
15254
  interactionPosition: InteractionPositionSchema.describe("Mouse-down position relative to the target element."),
15254
15255
  selectorsPresets: external_exports.array(SelectorsPresetSchema).describe("Target selectors used to locate the element.")
15255
15256
  });
15257
+ var MouseMoveStepSchema = StepBaseSchema.extend({
15258
+ type: external_exports.literal("mouseMove").describe("Move the mouse to an element or viewport coordinate."),
15259
+ isTargetDocument: external_exports.boolean().optional().describe("Whether to move relative to the viewport instead of a target element."),
15260
+ interactionPosition: InteractionPositionSchema.optional().describe("Position relative to the target element when isTargetDocument is false."),
15261
+ clientX: external_exports.number().nonnegative().nullable().optional().describe("X coordinate. Required by the API when isTargetDocument is true."),
15262
+ clientY: external_exports.number().nonnegative().nullable().optional().describe("Y coordinate. Required by the API when isTargetDocument is true."),
15263
+ mouseMoveSteps: external_exports.number().int().positive().nullable().optional().describe("Optional number of intermediate mouse-move events."),
15264
+ mouseButtons: external_exports.array(external_exports.enum(["left", "right", "middle", "back"])).optional().describe("Mouse buttons held while moving."),
15265
+ modifierKeys: external_exports.array(external_exports.enum(["ctrl", "shift", "alt", "meta"])).optional().describe("Keyboard modifier keys held while moving."),
15266
+ selectorsPresets: external_exports.array(SelectorsPresetSchema).optional().describe("Target selectors when moving relative to an element.")
15267
+ });
15256
15268
  var MouseUpStepSchema = StepBaseSchema.extend({
15257
15269
  type: external_exports.literal("mouseUp").describe("Release the mouse button on the targeted element."),
15258
15270
  interactionPosition: InteractionPositionSchema.describe("Mouse-up position relative to the target element."),
@@ -15344,6 +15356,7 @@ var allStepsSchemas = [
15344
15356
  HoverStepSchema,
15345
15357
  IfConditionStepSchema,
15346
15358
  MouseDownStepSchema,
15359
+ MouseMoveStepSchema,
15347
15360
  MouseUpStepSchema,
15348
15361
  NewTabStepSchema,
15349
15362
  PageVisualRegressionStepSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bugbug-io/sdk",
3
- "version": "14.0.8",
3
+ "version": "14.1.0",
4
4
  "description": "TypeScript SDK for building integrations with the BugBug API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",