diff --git a/packages/netlify-cms/package.json b/packages/netlify-cms/package.json index 2515dcbe..49ba7cf4 100644 --- a/packages/netlify-cms/package.json +++ b/packages/netlify-cms/package.json @@ -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", diff --git a/packages/netlify-cms/src/widgets.js b/packages/netlify-cms/src/widgets.js index 6f9b88ea..228a8605 100644 --- a/packages/netlify-cms/src/widgets.js +++ b/packages/netlify-cms/src/widgets.js @@ -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);