@allwright.dev/core 0.2.9 → 0.2.11
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/bootstrap.js +1 -1
- package/dist/mobile.d.ts +2 -2
- package/dist/mobile.js +2 -0
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
package/dist/bootstrap.js
CHANGED
|
@@ -12,7 +12,7 @@ const ALLWRIGHT_HOME_ENV_VAR = "ALLWRIGHT_HOME";
|
|
|
12
12
|
const ALLWRIGHT_REPOSITORY_ENV_VAR = "ALLWRIGHT_REPOSITORY";
|
|
13
13
|
const ALLWRIGHT_VERSION_ENV_VAR = "ALLWRIGHT_VERSION";
|
|
14
14
|
const DEFAULT_RELEASE_REPOSITORY = "allwright-dev/allwright";
|
|
15
|
-
const DEFAULT_RELEASE_VERSION = "0.2.
|
|
15
|
+
const DEFAULT_RELEASE_VERSION = "0.2.11";
|
|
16
16
|
const STARTUP_TIMEOUT_MS = 20_000;
|
|
17
17
|
const PING_TIMEOUT_MS = 1_000;
|
|
18
18
|
const PROTO_ROOT = fileURLToPath(new URL("../proto/", import.meta.url));
|
package/dist/mobile.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RoleOptions, type TextMatcher, type TextOptions } from "./web-locators.js";
|
|
2
|
-
import type { AccessibilitySnapshotOptions, BoundingBox, CommandOptions, Hook, HookType, MobileSurfaceNamespace, NativeApp, NativeAppLocator, PageHandle, PressOptions, RuntimeClient, ScreenshotOptions, WaitForSelectorOptions } from "./types.js";
|
|
2
|
+
import type { AccessibilitySnapshotOptions, BoundingBox, ClickOptions, CommandOptions, Hook, HookType, MobileSurfaceNamespace, NativeApp, NativeAppLocator, PageHandle, PressOptions, RuntimeClient, ScreenshotOptions, WaitForSelectorOptions } from "./types.js";
|
|
3
3
|
export declare class NativeAppImpl implements NativeApp {
|
|
4
4
|
#private;
|
|
5
5
|
readonly sessionId: string;
|
|
@@ -16,7 +16,7 @@ export declare class NativeAppImpl implements NativeApp {
|
|
|
16
16
|
registerHook<T>(type: HookType<T>): Promise<Hook<T>>;
|
|
17
17
|
setChooserFiles(fileChooserId: string, files: string[], options: CommandOptions): Promise<void>;
|
|
18
18
|
saveMobileDownload(downloadId: string, path: string, options: CommandOptions): Promise<void>;
|
|
19
|
-
click(selector: string, options?:
|
|
19
|
+
click(selector: string, options?: ClickOptions): Promise<void>;
|
|
20
20
|
goto(url: string, options?: CommandOptions): Promise<void>;
|
|
21
21
|
navigate(url: string, options?: CommandOptions): Promise<void>;
|
|
22
22
|
count(selector: string, options?: CommandOptions): Promise<number>;
|
package/dist/mobile.js
CHANGED
|
@@ -203,6 +203,8 @@ export class NativeAppImpl {
|
|
|
203
203
|
clickElement: {
|
|
204
204
|
cssSelector: normalizeMobileSelectorForTransport(selector),
|
|
205
205
|
retryOptions: retryOptions(options.timeoutMs),
|
|
206
|
+
button: options.button ?? "left",
|
|
207
|
+
clickCount: options.clickCount ?? 1,
|
|
206
208
|
},
|
|
207
209
|
});
|
|
208
210
|
while (true) {
|
package/dist/types.d.ts
CHANGED
|
@@ -192,7 +192,7 @@ export interface MobileAndroidLaunchOptions {
|
|
|
192
192
|
export interface NativeAppLocator {
|
|
193
193
|
readonly page: NativeApp;
|
|
194
194
|
readonly selector: string;
|
|
195
|
-
click(options?:
|
|
195
|
+
click(options?: ClickOptions): Promise<void>;
|
|
196
196
|
count(options?: CommandOptions): Promise<number>;
|
|
197
197
|
focus(options?: CommandOptions): Promise<void>;
|
|
198
198
|
fill(value: string, options?: CommandOptions): Promise<void>;
|
|
@@ -220,7 +220,7 @@ export interface NativeApp {
|
|
|
220
220
|
getByText(text: TextMatcher, options?: TextOptions): NativeAppLocator;
|
|
221
221
|
getByLabel(text: TextMatcher, options?: TextOptions): NativeAppLocator;
|
|
222
222
|
getByTestId(text: TextMatcher): NativeAppLocator;
|
|
223
|
-
click(selector: string, options?:
|
|
223
|
+
click(selector: string, options?: ClickOptions): Promise<void>;
|
|
224
224
|
count(selector: string, options?: CommandOptions): Promise<number>;
|
|
225
225
|
focus(selector: string, options?: CommandOptions): Promise<void>;
|
|
226
226
|
fill(selector: string, value: string, options?: CommandOptions): Promise<void>;
|