build/component-docs-build.js
function propsAPIObject(vueObj) {
  const propsObj = vueObj["props"] || {}

  let props = []
  
  // construct array of objects for props
  for (const prop in propsObj) {
    if (propsObj.hasOwnProperty(prop)) {
      // Don't document properties with `@ignore` tag
      if (propsObj[prop].tags.ignore) {
        continue
      }

      // object representing a single prop
      const ele = {
        "name": `${prop}`,
        "type": propsObj[prop]["type"] ? propsObj[prop]["type"]["name"] : 'unknown',
        "default": (propsObj[prop]["defaultValue"] && propsObj[prop]["defaultValue"] !== " ") ? 
          propsObj[prop]["defaultValue"]["value"] : 'n/a',
        "description": `${propsObj[prop]["description"] || 'MISSING DESCRIPTION'}`
      }
      props.push(ele)
    }
  }
  return props.length > 0 ? {props} : null
}
function propsAPIObject(vueObj) {
  const propsObj = vueObj["props"] || {}

  let props = []
  
  // construct array of objects for props
  for (const prop in propsObj) {
    if (propsObj.hasOwnProperty(prop)) {
      // Don't document properties with `@ignore` tag
      if (propsObj[prop].tags.ignore) {
        continue
      }

      // object representing a single prop
      const ele = {
        "name": `${prop}`,
        "type": propsObj[prop]["type"] ? propsObj[prop]["type"]["name"] : 'unknown',
        "default": (propsObj[prop]["defaultValue"] && propsObj[prop]["defaultValue"] !== " ") ? 
          propsObj[prop]["defaultValue"]["value"] : 'n/a',
        "description": `${propsObj[prop]["description"] || 'MISSING DESCRIPTION'}`
      }
      props.push(ele)
    }
  }
  return props.length > 0 ? {props} : null
}
function propsAPIObject ( vueObj ) { const propsObj = vueObj [ "props" ] || { } let props = [ ] // construct array of objects for props for ( const prop in propsObj ) { if ( propsObj . hasOwnProperty ( prop ) ) { // Don't document properties with `@ignore` tag if ( propsObj [ prop ] . tags . ignore ) { continue } // object representing a single prop const ele = { "name" : ` ${ prop } ` , "type" : propsObj [ prop ] [ "type" ] ? propsObj [ prop ] [ "type" ] [ "name" ] : 'unknown' , "default" : ( propsObj [ prop ] [ "defaultValue" ] && propsObj [ prop ] [ "defaultValue" ] !== " " ) ? propsObj [ prop ] [ "defaultValue" ] [ "value" ] : 'n/a' , "description" : ` ${ propsObj [ prop ] [ "description" ] || 'MISSING DESCRIPTION' } ` } props . push ( ele ) } } return props . length > 0 ? { props } : null }
Create object representing component props
@param {Object} -- JSON object from vue-docgen-api library
@returns {Object} -- Object for component props that goes into Cedar Data Object
Create object representing component props