## Quick start

```bash
    yarn            // install deps
    yarn start      // start developing
    yarn build      // create dist files
    yarn publish    // creat dist files and publish to artifactory
    yarn lint       // Run eslint
    yarn lint:fix   // Eslint with --fix
```

### Usage

#### React App

```javascript
// declarative API
import CreationApp from 'content-types-creation/dist/CreationComponent.js';

const options = {
    environment: 'fepo',
    community: {
        id: 1001,
    },
    theme: {
        backgroundImage: 'https://vignette.wikia.nocookie.net/7da3a1c0-b7c8-4cbb-b782-71a6c3c02ccc',
        primaryColor: 'rgb(172, 50, 50)',
        backgroundColor: 'rgb(50, 1, 10)', 
    }, 
};



<CreationApp open options={options} /> 

```

#### Non-React App

```javascript
// imperative API
import {initApp, closeApp} from 'content-types-creation/dist/CreationFunction.js';

const options = {
    environment: 'media-wiki',
    community: {
        id: 1001,
    },
    theme: {
        backgroundImage: 'https://vignette.wikia.nocookie.net/7da3a1c0-b7c8-4cbb-b782-71a6c3c02ccc',
        primaryColor: 'rgb(172, 50, 50)',
        backgroundColor: 'rgb(50, 1, 10)', 
    }, 
};


// to open call (probably will be a click handler()
initApp(options);

// to close
closeApp();
```
