@andpipes/widget-sdk 0.1.0 → 0.1.1

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 CHANGED
@@ -456,7 +456,9 @@ function setupDraftReviewFallback(data, locale = import_localization7.DEFAULT_LO
456
456
  )
457
457
  );
458
458
  }
459
- lines.push(text.confirmationRequired.replace("{action}", data.action));
459
+ lines.push(
460
+ data.status === "blocked" ? text.setupBlocked : text.confirmationRequired.replace("{action}", data.action)
461
+ );
460
462
  return lines.join("\n");
461
463
  }
462
464
 
package/dist/index.js CHANGED
@@ -332,7 +332,9 @@ function setupDraftReviewFallback(data, locale = DEFAULT_LOCALE7) {
332
332
  )
333
333
  );
334
334
  }
335
- lines.push(text.confirmationRequired.replace("{action}", data.action));
335
+ lines.push(
336
+ data.status === "blocked" ? text.setupBlocked : text.confirmationRequired.replace("{action}", data.action)
337
+ );
336
338
  return lines.join("\n");
337
339
  }
338
340
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andpipes/widget-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "ajv": "^8.20.0",
28
28
  "ajv-formats": "^3.0.1",
29
- "@andpipes/localization": "0.1.0"
29
+ "@andpipes/localization": "0.1.6"
30
30
  },
31
31
  "scripts": {
32
32
  "lint": "biome check .",