import CitableContentManager from './CitableContentManager'

export default class SupplementaryManager extends CitableContentManager {
  constructor (documentSession, labelGenerator) {
    super(documentSession, 'file', ['supplementary-file'], labelGenerator)
    this._updateLabels('initial')
  }
}

import CitableContentManager from './CitableContentManager'

export default class SupplementaryManager extends CitableContentManager {
  constructor (documentSession, labelGenerator) {
    super(documentSession, 'file', ['supplementary-file'], labelGenerator)
    this._updateLabels('initial')
  }

  // ATTENTION: for now we consider only supplementary files that are direct children of the body
  // TODO: we need to specify how this should be extended to supplementary files in figure panels
  getCitables () {
    return this._getContentElement().resolve('content').filter(child => child.type === 'supplementary-file')
  }
}

Manage SupplementaryFile labels only in body.
Manage SupplementaryFile labels only in body.
