@swmansion/argent 0.16.0 → 0.16.1-next.0

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.
Binary file
Binary file
Binary file
Binary file
@@ -148093,7 +148093,7 @@ var HORIZONTAL_TEXT_MERGE_MIN_GAP = 32;
148093
148093
  var HORIZONTAL_TEXT_MERGE_MAX_GAP = 120;
148094
148094
  var UNIFORM_BRIGHTNESS_DELTA_TOLERANCE = 4;
148095
148095
  async function diffPngFiles(options) {
148096
- const settings = resolveDiffSettings();
148096
+ const settings = resolveDiffSettings(options.topMask ?? "status-bar");
148097
148097
  const [decodedBaseline, decodedCurrent] = await Promise.all([
148098
148098
  decodePngFile(options.baselinePath),
148099
148099
  decodePngFile(options.currentPath)
@@ -148154,10 +148154,10 @@ async function diffPngFiles(options) {
148154
148154
  textAnalysis
148155
148155
  });
148156
148156
  }
148157
- function resolveDiffSettings() {
148157
+ function resolveDiffSettings(topMask) {
148158
148158
  return {
148159
148159
  thresholdSquared: DEFAULT_THRESHOLD * DEFAULT_THRESHOLD * MAX_RGB_DISTANCE_SQUARED,
148160
- ignoreTopNormalizedY: DEFAULT_IGNORE_TOP_NORMALIZED_Y,
148160
+ ignoreTopNormalizedY: topMask === "none" ? 0 : DEFAULT_IGNORE_TOP_NORMALIZED_Y,
148161
148161
  joinGapPixels: DEFAULT_REGION_MERGE_DISTANCE,
148162
148162
  contextDiffScale: DEFAULT_CONTEXT_DIFF_SCALE
148163
148163
  };
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.16.0",
3
+ "version": "0.16.1-next.0",
4
4
  "description": "MCP server for iOS Simulator and Android Emulator control",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {