Skip to content

Commit

Permalink
add field helpers to api
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonpecora committed Sep 7, 2018
1 parent a765828 commit 8067eea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/api.md
Expand Up @@ -79,6 +79,7 @@ Property | Description
`getAvailableComponents()` | function to determine which components are allowed in a list
`local` | methods to get/set localstorage
`validationHelpers` | methods to help with pre-publish validation
`fieldHelpers` | methods to help with custom inputs
`logger()` | function to create a new logger for a file (pass in the `__filename` when calling this)
`version` | current Kiln version
`components` | Vue.js components, exported by Kiln
Expand Down
2 changes: 2 additions & 0 deletions lib/utils/api.js
Expand Up @@ -10,6 +10,7 @@ import * as urls from './urls';
import getAvailableComponents from './available-components';
import * as local from './local';
import * as validationHelpers from '../validators/helpers';
import * as fieldHelpers from '../forms/field-helpers';
import logger from './log';
// we also expose some vue components, which is useful for plugins that want to mimic our look and feel
import avatar from './avatar.vue';
Expand Down Expand Up @@ -53,6 +54,7 @@ const api = {
getAvailableComponents,
local,
validationHelpers,
fieldHelpers,
logger, // plugin authors, please instantiate a logger from this (passing in the filename / plugin used, e.g. `const log = logger(__filename)`)
version: process.env.KILN_VERSION,
components: {
Expand Down

0 comments on commit 8067eea

Please sign in to comment.