@tailor-cms/config

Access parsed Tailor config

Usage no npm install needed!

<script type="module">
  import tailorCmsConfig from 'https://cdn.skypack.dev/@tailor-cms/config';
</script>

README

@tailor-cms/config

Npm version GitHub license js @extensionengine style style @extensionengine style Open Source Love

Usage

const { SCHEMAS, schema, workflow } = require('@tailor-cms/config');

API

SCHEMAS

Default configuration merged with custom configuration.

SCHEMAS: ISchemaInterface[]
interface ISchemaInterface {
  id: string;
  name: string;
  meta: array;
  structure: array;
  contentContainers: array;
  elementMeta: array;
};

schema

The object containing schema helper methods.

Methods:

  • getSchemaId
  • getSchema
  • getLevel
  • getOutlineLevels
  • isOutlineActivity
  • getOutlineChildren
  • filterOutlineActivities
  • isTrackedInWorkflow
  • getRepositoryMetadata
  • getActivityLabel
  • getActivityMetadata
  • getElementMetadata
  • getLevelRelationships
  • getRepositoryRelationships
  • getSiblingTypes
  • getSupportedContainers
  • getContainerTemplateId
  • isEditable

workflow

The object containing workflow properties and methods.

Properties:

  • priorities

Methods:

  • getWorkflow
  • getPriority
  • getDefaultWorkflowStatus
  • getDefaultActivityStatus