@argos-ci/browser
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -87,2 +87,23 @@ type ViewportOrientation = "portrait" | "landscape"; | ||
declare function resolveViewport(viewportOption: ViewportOption): ViewportSize; | ||
export { ViewportOrientation, ViewportPreset, ViewportPresetOption, ViewportOption, resolveViewport }; | ||
type SetupOptions = { | ||
fullPage?: boolean; | ||
argosCSS?: string; | ||
}; | ||
type TeardownOptions = { | ||
fullPage?: boolean; | ||
argosCSS?: string; | ||
}; | ||
declare const ArgosGlobal: { | ||
waitForStability: () => boolean; | ||
setup: (options?: SetupOptions) => void; | ||
teardown: (options?: TeardownOptions) => void; | ||
getColorScheme: () => "dark" | "light"; | ||
getMediaType: () => "print" | "screen"; | ||
}; | ||
type ArgosGlobal = typeof ArgosGlobal; | ||
/** | ||
* Read the global script and return it as a string. | ||
*/ | ||
declare function getGlobalScript(): string; | ||
export { ViewportOrientation, ViewportPreset, ViewportPresetOption, ViewportOption, resolveViewport, getGlobalScript }; | ||
export type { ArgosGlobal }; |
{ | ||
"name": "@argos-ci/browser", | ||
"description": "Browser utilities to stabilize visual testing.", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"author": "Smooth Code", | ||
@@ -32,10 +32,2 @@ "license": "MIT", | ||
}, | ||
"./global.js": { | ||
"types": "./dist/global.d.ts", | ||
"default": "./dist/global.js" | ||
}, | ||
"./cypress.cjs": { | ||
"types": "./dist/cypress.d.ts", | ||
"default": "./dist/cypress.cjs" | ||
}, | ||
"./package.json": "./package.json" | ||
@@ -52,5 +44,6 @@ }, | ||
"devDependencies": { | ||
"@rollup/plugin-replace": "^5.0.5", | ||
"@types/node": "^16.0.0" | ||
}, | ||
"gitHead": "ac02d37ca89f73359fba70cfe9b579396c3260d8" | ||
"gitHead": "dbd169d2307a498a7c44001197924947c28be803" | ||
} |
Sorry, the diff of this file is not supported yet
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
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
22654
444
2
6