@lambdatest/smartui-cli 4.1.50 → 4.1.51
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/index.cjs +16 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1337,6 +1337,18 @@ var FigmaWebConfigSchema = {
|
|
|
1337
1337
|
"type": "string"
|
|
1338
1338
|
},
|
|
1339
1339
|
uniqueItems: false
|
|
1340
|
+
},
|
|
1341
|
+
"screenshot_viewports": {
|
|
1342
|
+
"type": "array",
|
|
1343
|
+
"items": {
|
|
1344
|
+
"type": "array",
|
|
1345
|
+
"items": {
|
|
1346
|
+
"type": "integer",
|
|
1347
|
+
"minimum": 1
|
|
1348
|
+
},
|
|
1349
|
+
"minItems": 1,
|
|
1350
|
+
"maxItems": 2
|
|
1351
|
+
}
|
|
1340
1352
|
}
|
|
1341
1353
|
},
|
|
1342
1354
|
"required": ["figma_file_token", "figma_ids"]
|
|
@@ -2821,7 +2833,7 @@ var authExec_default = (ctx) => {
|
|
|
2821
2833
|
};
|
|
2822
2834
|
|
|
2823
2835
|
// package.json
|
|
2824
|
-
var version = "4.1.
|
|
2836
|
+
var version = "4.1.51";
|
|
2825
2837
|
var package_default = {
|
|
2826
2838
|
name: "@lambdatest/smartui-cli",
|
|
2827
2839
|
version,
|
|
@@ -5770,6 +5782,9 @@ function verifyFigmaWebConfig(ctx) {
|
|
|
5770
5782
|
if (c.screenshot_names && c.screenshot_names.length > 0 && c.figma_ids && c.figma_ids.length != c.screenshot_names.length) {
|
|
5771
5783
|
throw new Error("Mismatch in Figma Ids and Screenshot Names in figma config");
|
|
5772
5784
|
}
|
|
5785
|
+
if (c.screenshot_viewports && c.screenshot_viewports.length > 0 && c.figma_ids && c.figma_ids.length != c.screenshot_viewports.length) {
|
|
5786
|
+
throw new Error("Mismatch in Figma Ids and Screenshot Viewports in figma config");
|
|
5787
|
+
}
|
|
5773
5788
|
if (isValidArray(c.screenshot_names)) {
|
|
5774
5789
|
for (const name of c.screenshot_names) {
|
|
5775
5790
|
screenshots.push(name);
|