parseComponentAttrValue(component, attrValue) {
    var parsedValue;
    if (typeof attrValue !== 'string') {
      return attrValue;
    }
    if (component.isSingleProperty) {
      parsedValue = component.schema.parse(attrValue);
      if (typeof parsedValue === 'string') {
        parsedValue = attrValue;
      }
    } else {
      // Use style parser as the values will be parsed once mixed in.
      // Furthermore parsing might fail with dynamic schema's.
      parsedValue = _utils_styleParser_js__WEBPACK_IMPORTED_MODULE_3__.parse(attrValue);
    }
    return parsedValue;
  }
Given an HTML attribute value parses the string based on the component schema.
To avoid double parsing of strings when mixed into the actual component,
we store the original instead of the parsed one.

@param {object} component - The component to parse for.
@param {string} attrValue - HTML attribute value.