radiant-docs-validator 0.1.14 → 0.1.15

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -467,6 +467,9 @@ function validateRadiantComponentProps(componentName, props, options) {
467
467
  validateIconProp("Callout", "icon", props.icon, options);
468
468
  assertType("Callout", "accent", props.accent, ["boolean"], options.sourceFile);
469
469
  assertType("Callout", "color", props.color, ["string"], options.sourceFile);
470
+ if (props.color !== void 0) {
471
+ assertHexColor("Callout", "color", props.color, options.sourceFile);
472
+ }
470
473
  if (props.title === true) {
471
474
  componentError("Callout", 'Invalid prop "title": expected string or false, got true', options.sourceFile);
472
475
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "radiant-docs-validator",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "Shared validation for Radiant documentation repositories",
5
5
  "type": "module",
6
6
  "scripts": {