@argos-ci/browser
Advanced tools
Comparing version 2.1.6 to 2.2.0
@@ -87,2 +87,3 @@ type ViewportOrientation = "portrait" | "landscape"; | ||
declare function resolveViewport(viewportOption: ViewportOption): ViewportSize; | ||
type SetupOptions = { | ||
@@ -96,4 +97,23 @@ fullPage?: boolean; | ||
}; | ||
type StabilizationOptions = { | ||
/** | ||
* Wait for [aria-busy="true"] elements to be invisible. | ||
* @default true | ||
*/ | ||
ariaBusy?: boolean; | ||
/** | ||
* Wait for images to be loaded. | ||
* @default true | ||
*/ | ||
images?: boolean; | ||
/** | ||
* Wait for fonts to be loaded. | ||
* @default true | ||
*/ | ||
fonts?: boolean; | ||
}; | ||
declare const ArgosGlobal: { | ||
waitForStability: () => boolean; | ||
checkIsStable: (options?: StabilizationOptions) => boolean; | ||
getStabilityFailureReasons: (options?: StabilizationOptions) => string[]; | ||
setup: (options?: SetupOptions) => void; | ||
@@ -105,2 +125,3 @@ teardown: (options?: TeardownOptions) => void; | ||
type ArgosGlobal = typeof ArgosGlobal; | ||
/** | ||
@@ -110,3 +131,3 @@ * Read the global script and return it as a string. | ||
declare function getGlobalScript(): string; | ||
export { ViewportOrientation, ViewportSize, ViewportPreset, ViewportPresetOption, ViewportOption, resolveViewport, getGlobalScript }; | ||
export type { ArgosGlobal }; | ||
export { ArgosGlobal, type StabilizationOptions, type ViewportOption, type ViewportOrientation, type ViewportPreset, type ViewportPresetOption, type ViewportSize, getGlobalScript, resolveViewport }; |
{ | ||
"name": "@argos-ci/browser", | ||
"description": "Browser utilities to stabilize visual testing with Argos.", | ||
"version": "2.1.6", | ||
"version": "2.2.0", | ||
"author": "Smooth Code", | ||
@@ -28,4 +28,4 @@ "license": "MIT", | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs", | ||
"default": "./dist/index.mjs" | ||
"import": "./dist/index.js", | ||
"default": "./dist/index.js" | ||
}, | ||
@@ -39,12 +39,9 @@ "./package.json": "./package.json" | ||
"scripts": { | ||
"prebuild": "rm -rf dist", | ||
"build-schema-types": "openapi-typescript https://api.argos-ci.dev:4001/v2/openapi.yaml -o dist/schema.ts", | ||
"build": "rollup -c" | ||
"build": "rm -rf dist && tsup --config global.tsup.config.ts && tsup" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-replace": "^5.0.7", | ||
"@types/node": "^18.19.44", | ||
"openapi-typescript": "^7.3.0" | ||
"openapi-typescript": "^7.4.2" | ||
}, | ||
"gitHead": "d0fa8cd790ffd2343d1cd32706bcb757c4f3b26e" | ||
"gitHead": "fe6e055a43e955e7df362ddaec59c84dc274bbb2" | ||
} |
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
2
23028
408
1