@qawolf/types
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -1,80 +0,4 @@ | ||
export declare type Action = "click" | "type" | "scroll" | "select"; | ||
export declare type Callback<S = void, T = void> = (data?: S) => T; | ||
export interface Doc { | ||
attrs?: any; | ||
children?: Doc[]; | ||
content?: string; | ||
name?: string; | ||
type: string; | ||
voidElement?: boolean; | ||
} | ||
export declare type DocSelector = { | ||
ancestors: Doc[]; | ||
node: Doc; | ||
}; | ||
export declare type DocSelectorSerialized = { | ||
ancestors: string[]; | ||
node: string; | ||
}; | ||
export interface Event { | ||
isTrusted: boolean; | ||
name: EventName; | ||
page?: number; | ||
target: DocSelector; | ||
time: number; | ||
} | ||
export declare type EventName = "click" | "input" | "keydown" | "keyup" | "paste" | "scroll"; | ||
export declare type FindOptions = { | ||
action?: Action; | ||
dataAttribute?: string; | ||
timeoutMs: number; | ||
value?: string; | ||
waitForRequests?: boolean; | ||
}; | ||
export interface InputEvent extends Event { | ||
name: "input"; | ||
value: string | null; | ||
} | ||
export interface KeyEvent extends Event { | ||
name: "keydown" | "keyup"; | ||
value: string; | ||
} | ||
export interface PasteEvent extends Event { | ||
name: "paste"; | ||
value: string; | ||
} | ||
export interface ScrollEvent extends Event { | ||
name: "scroll"; | ||
value: ScrollValue; | ||
} | ||
export declare type ScrollValue = { | ||
x: number; | ||
y: number; | ||
}; | ||
export declare type Size = "desktop" | "tablet" | "mobile"; | ||
export declare type Step = { | ||
action: Action; | ||
html: DocSelector; | ||
index: number; | ||
page?: number; | ||
value?: StepValue; | ||
}; | ||
export declare type StepSerialized = { | ||
action: Action; | ||
html: DocSelectorSerialized; | ||
index: number; | ||
page?: number; | ||
}; | ||
export declare type StepValue = string | ScrollValue | null | undefined; | ||
export declare type Workflow = { | ||
name: string; | ||
size: Size; | ||
steps: Step[]; | ||
url: string; | ||
}; | ||
export declare type WorkflowSerialized = { | ||
name: string; | ||
size: Size; | ||
steps: StepSerialized[]; | ||
url: string; | ||
}; | ||
export * from "./common"; | ||
export * from "./event"; | ||
export * from "./selector"; | ||
export * from "./workflow"; |
{ | ||
"name": "@qawolf/types", | ||
"description": "qawolf types", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"license": "BSD-3.0", | ||
@@ -22,3 +22,3 @@ "main": "./lib/index.js", | ||
}, | ||
"gitHead": "e9fd9fb72d0e4f106c0efc41c565d0b0473c8713" | ||
"gitHead": "704a41f9965711470844c0ac733b23e494b1f541" | ||
} |
109
src/index.ts
@@ -1,105 +0,4 @@ | ||
export type Action = "click" | "type" | "scroll" | "select"; | ||
export type Callback<S = void, T = void> = (data?: S) => T; | ||
export interface Doc { | ||
attrs?: any; | ||
children?: Doc[]; | ||
content?: string; | ||
name?: string; | ||
type: string; | ||
voidElement?: boolean; | ||
} | ||
export type DocSelector = { | ||
ancestors: Doc[]; | ||
node: Doc; | ||
}; | ||
export type DocSelectorSerialized = { | ||
ancestors: string[]; | ||
node: string; | ||
}; | ||
export interface Event { | ||
isTrusted: boolean; | ||
name: EventName; | ||
page?: number; | ||
target: DocSelector; | ||
time: number; | ||
} | ||
export type EventName = | ||
| "click" | ||
| "input" | ||
| "keydown" | ||
| "keyup" | ||
| "paste" | ||
| "scroll"; | ||
export type FindOptions = { | ||
action?: Action; | ||
dataAttribute?: string; | ||
timeoutMs: number; | ||
value?: string; | ||
waitForRequests?: boolean; | ||
}; | ||
export interface InputEvent extends Event { | ||
name: "input"; | ||
value: string | null; | ||
} | ||
export interface KeyEvent extends Event { | ||
name: "keydown" | "keyup"; | ||
// https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code | ||
value: string; | ||
} | ||
export interface PasteEvent extends Event { | ||
name: "paste"; | ||
value: string; | ||
} | ||
export interface ScrollEvent extends Event { | ||
name: "scroll"; | ||
value: ScrollValue; | ||
} | ||
export type ScrollValue = { | ||
x: number; | ||
y: number; | ||
}; | ||
export type Size = "desktop" | "tablet" | "mobile"; | ||
export type Step = { | ||
action: Action; | ||
html: DocSelector; | ||
index: number; | ||
page?: number; | ||
value?: StepValue; | ||
}; | ||
export type StepSerialized = { | ||
action: Action; | ||
html: DocSelectorSerialized; | ||
index: number; | ||
page?: number; | ||
}; | ||
export type StepValue = string | ScrollValue | null | undefined; | ||
export type Workflow = { | ||
name: string; | ||
size: Size; | ||
steps: Step[]; | ||
url: string; | ||
}; | ||
export type WorkflowSerialized = { | ||
name: string; | ||
size: Size; | ||
steps: StepSerialized[]; | ||
url: string; | ||
}; | ||
export * from "./common"; | ||
export * from "./event"; | ||
export * from "./selector"; | ||
export * from "./workflow"; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7855
22
202
1