update netlify-cms main package

This commit is contained in:
Shawn Erquhart 2018-07-25 00:06:41 -04:00
parent 3e8a6e5091
commit e764df68b2
2 changed files with 40 additions and 27 deletions

View File

@ -20,7 +20,20 @@
"netlify-cms-backend-gitlab": "2.0.0-alpha.0",
"netlify-cms-backend-git-gateway": "2.0.0-alpha.0",
"netlify-cms-backend-test": "2.0.0-alpha.0",
"netlify-cms-editor-component-image": "2.0.0-alpha.0"
"netlify-cms-editor-component-image": "2.0.0-alpha.0",
"netlify-cms-widget-boolean": "2.0.0-alpha.0",
"netlify-cms-widget-date": "2.0.0-alpha.0",
"netlify-cms-widget-datetime": "2.0.0-alpha.0",
"netlify-cms-widget-file": "2.0.0-alpha.0",
"netlify-cms-widget-image": "2.0.0-alpha.0",
"netlify-cms-widget-list": "2.0.0-alpha.0",
"netlify-cms-widget-markdown": "2.0.0-alpha.0",
"netlify-cms-widget-number": "2.0.0-alpha.0",
"netlify-cms-widget-object": "2.0.0-alpha.0",
"netlify-cms-widget-relation": "2.0.0-alpha.0",
"netlify-cms-widget-select": "2.0.0-alpha.0",
"netlify-cms-widget-string": "2.0.0-alpha.0",
"netlify-cms-widget-text": "2.0.0-alpha.0"
},
"devDependencies": {
"webpack": "^4.16.1",

View File

@ -1,30 +1,30 @@
import cms from 'netlify-cms-core';
// import { StringControl, StringPreview } from 'netlify-cms-widget-string';
// import { NumberControl, NumberPreview } from 'netlify-cms-widget-number';
// import { TextControl, TextPreview } from 'netlify-cms-widget-text';
// import { ImageControl, ImagePreview } from 'netlify-cms-widget-image';
// import { FileControl, FilePreview } from 'netlify-cms-widget-file';
// import { DateControl, DatePreview } from 'netlify-cms-widget-date';
// import { DateTimeControl, DateTimePreview } from 'netlify-cms-widget-datetime';
// import { SelectControl, SelectPreview } from 'netlify-cms-widget-select';
// import { MarkdownControl, MarkdownPreview } from 'netlify-cms-widget-markdown';
// import { ListControl, ListPreview } from 'netlify-cms-widget-list';
// import { ObjectControl, ObjectPreview } from 'netlify-cms-widget-object';
// import { RelationControl, RelationPreview } from 'netlify-cms-widget-relation';
// import { BooleanControl } from 'netlify-cms-widget-boolean';
import { StringControl, StringPreview } from 'netlify-cms-widget-string';
import { NumberControl, NumberPreview } from 'netlify-cms-widget-number';
import { TextControl, TextPreview } from 'netlify-cms-widget-text';
import { ImageControl, ImagePreview } from 'netlify-cms-widget-image';
import { FileControl, FilePreview } from 'netlify-cms-widget-file';
import { DateControl, DatePreview } from 'netlify-cms-widget-date';
import { DateTimeControl, DateTimePreview } from 'netlify-cms-widget-datetime';
import { SelectControl, SelectPreview } from 'netlify-cms-widget-select';
import { MarkdownControl, MarkdownPreview } from 'netlify-cms-widget-markdown';
import { ListControl, ListPreview } from 'netlify-cms-widget-list';
import { ObjectControl, ObjectPreview } from 'netlify-cms-widget-object';
import { RelationControl, RelationPreview } from 'netlify-cms-widget-relation';
import { BooleanControl } from 'netlify-cms-widget-boolean';
const { registerWidget } = cms;
// registerWidget('string', StringControl, StringPreview);
// registerWidget('text', TextControl, TextPreview);
// registerWidget('number', NumberControl, NumberPreview);
// registerWidget('list', ListControl, ListPreview);
// registerWidget('markdown', MarkdownControl, MarkdownPreview);
// registerWidget('image', ImageControl, ImagePreview);
// registerWidget('file', FileControl, FilePreview);
// registerWidget('date', DateControl, DatePreview);
// registerWidget('datetime', DateTimeControl, DateTimePreview);
// registerWidget('select', SelectControl, SelectPreview);
// registerWidget('object', ObjectControl, ObjectPreview);
// registerWidget('relation', RelationControl, RelationPreview);
// registerWidget('boolean', BooleanControl);
registerWidget('string', StringControl, StringPreview);
registerWidget('text', TextControl, TextPreview);
registerWidget('number', NumberControl, NumberPreview);
registerWidget('list', ListControl, ListPreview);
registerWidget('markdown', MarkdownControl, MarkdownPreview);
registerWidget('image', ImageControl, ImagePreview);
registerWidget('file', FileControl, FilePreview);
registerWidget('date', DateControl, DatePreview);
registerWidget('datetime', DateTimeControl, DateTimePreview);
registerWidget('select', SelectControl, SelectPreview);
registerWidget('object', ObjectControl, ObjectPreview);
registerWidget('relation', RelationControl, RelationPreview);
registerWidget('boolean', BooleanControl);