build/component-docs-build.js
function slotsAPIObject(vueObj) {
  slotsObj = vueObj["slots"] || {}
  let slots = []
  
  for (const slot in slotsObj) {
    if (slotsObj.hasOwnProperty(slot)) {
      const ele = {
        "name": `${slot}`,
        "description": `${slotsObj[slot]["description"] || 'MISSING DESCRIPTION'}`
      }
      slots.push(ele)
    }
  }
  return slots.length > 0 ? {slots} : null
}
function slotsAPIObject(vueObj) {
  slotsObj = vueObj["slots"] || {}
  let slots = []
  
  for (const slot in slotsObj) {
    if (slotsObj.hasOwnProperty(slot)) {
      const ele = {
        "name": `${slot}`,
        "description": `${slotsObj[slot]["description"] || 'MISSING DESCRIPTION'}`
      }
      slots.push(ele)
    }
  }
  return slots.length > 0 ? {slots} : null
}
function slotsAPIObject ( vueObj ) { slotsObj = vueObj [ "slots" ] || { } let slots = [ ] for ( const slot in slotsObj ) { if ( slotsObj . hasOwnProperty ( slot ) ) { const ele = { "name" : ` ${ slot } ` , "description" : ` ${ slotsObj [ slot ] [ "description" ] || 'MISSING DESCRIPTION' } ` } slots . push ( ele ) } } return slots . length > 0 ? { slots } : null }
Create object representing component slots
@param {Object} -- JSON object from vue-docgen-api library
@returns {Object} -- Object for component slots that goes into Cedar Data Object
Create object representing component slots