@appium/types
Advanced tools
Comparing version
@@ -55,2 +55,14 @@ /** | ||
*/ | ||
export type ScrollAction = { | ||
type: 'scroll'; | ||
x: number; | ||
y: number; | ||
deltaX: number; | ||
deltaY: number; | ||
duration?: number; | ||
origin?: 'viewport' | Element; | ||
}; | ||
/** | ||
* @group Actions | ||
*/ | ||
export type NullAction = PauseAction; | ||
@@ -68,2 +80,6 @@ /** | ||
*/ | ||
export type WheelAction = PauseAction | ScrollAction; | ||
/** | ||
* @group Actions | ||
*/ | ||
export type NullActionSequence = { | ||
@@ -100,6 +116,14 @@ type: 'none'; | ||
*/ | ||
export type ActionSequence = NullActionSequence | KeyActionSequence | PointerActionSequence; | ||
export type WheelActionSequence = { | ||
type: 'wheel'; | ||
id: string; | ||
actions: WheelAction[]; | ||
}; | ||
/** | ||
* @group Actions | ||
*/ | ||
export type ActionSequence = NullActionSequence | KeyActionSequence | PointerActionSequence | WheelActionSequence; | ||
/** | ||
* @group Actions | ||
*/ | ||
export declare enum Key { | ||
@@ -106,0 +130,0 @@ NULL = "\uE000", |
@@ -63,2 +63,15 @@ /** | ||
*/ | ||
export type ScrollAction = { | ||
type: 'scroll'; | ||
x: number; | ||
y: number; | ||
deltaX: number; | ||
deltaY: number; | ||
duration?: number; | ||
origin?: 'viewport' | Element; | ||
}; | ||
/** | ||
* @group Actions | ||
*/ | ||
export type NullAction = PauseAction; | ||
@@ -79,2 +92,7 @@ | ||
*/ | ||
export type WheelAction = PauseAction | ScrollAction; | ||
/** | ||
* @group Actions | ||
*/ | ||
export type NullActionSequence = { | ||
@@ -115,3 +133,7 @@ type: 'none'; | ||
*/ | ||
export type ActionSequence = NullActionSequence | KeyActionSequence | PointerActionSequence; | ||
export type WheelActionSequence = { | ||
type: 'wheel'; | ||
id: string; | ||
actions: WheelAction[]; | ||
}; | ||
@@ -121,2 +143,11 @@ /** | ||
*/ | ||
export type ActionSequence = | ||
| NullActionSequence | ||
| KeyActionSequence | ||
| PointerActionSequence | ||
| WheelActionSequence; | ||
/** | ||
* @group Actions | ||
*/ | ||
export enum Key { | ||
@@ -123,0 +154,0 @@ NULL = '\uE000', |
{ | ||
"name": "@appium/types", | ||
"version": "0.16.1", | ||
"version": "0.16.2", | ||
"description": "Various type declarations used across Appium", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
"@appium/schema": "^0.5.0", | ||
"@appium/tsconfig": "^0.x", | ||
"@appium/tsconfig": "^0.3.3", | ||
"@types/express": "4.17.21", | ||
@@ -56,3 +56,3 @@ "@types/npmlog": "7.0.0", | ||
}, | ||
"gitHead": "9cc598a92c2f0d2dfbf40d54698f0ee39b50e4dc" | ||
"gitHead": "d44e66977c4fd7eb4587d9064594e2be5d311034" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
283811
0.47%6451
0.81%Updated