ywana-core8 0.0.71 → 0.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +13 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +13 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -1
- package/src/domain/ContentEditor.js +1 -1
- package/src/domain/ContentType.js +9 -2
- package/src/domain/index.js +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ywana-core8",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.72",
|
4
4
|
"description": "ywana-core8",
|
5
5
|
"author": "Ernesto Roldan Garcia",
|
6
6
|
"license": "MIT",
|
@@ -28,6 +28,7 @@
|
|
28
28
|
"dependencies": {
|
29
29
|
"deep-equal": "^2.0.5",
|
30
30
|
"material-design-icons-iconfont": "^6.1.1",
|
31
|
+
"react-datepicker": "^4.6.0",
|
31
32
|
"resumablejs": "^1.1.0"
|
32
33
|
}
|
33
34
|
}
|
@@ -25,7 +25,7 @@ export const ContentEditor = ({ content, filter, onChange }) => {
|
|
25
25
|
{fields
|
26
26
|
.filter(field => field.id !== 'id')
|
27
27
|
.filter(field => filter ? filter(field, content) : true)
|
28
|
-
.map((field) => <FieldEditor key={field.id} field={field} onChange={change} />)}
|
28
|
+
.map((field) => <FieldEditor key={field.id} field={field} onChange={change} outlined={true}/>)}
|
29
29
|
</main>
|
30
30
|
</section>
|
31
31
|
)
|
@@ -4,12 +4,19 @@
|
|
4
4
|
export const TYPES = {
|
5
5
|
STRING: 'String',
|
6
6
|
NUMBER: 'Number',
|
7
|
-
DATE: 'Date',
|
8
7
|
BOOLEAN: 'Boolean',
|
9
8
|
ARRAY: 'Array',
|
10
9
|
ENTITY: 'Object',
|
11
10
|
FUNCTION: 'Function',
|
12
|
-
|
11
|
+
}
|
12
|
+
|
13
|
+
/**
|
14
|
+
* FORMATS
|
15
|
+
*/
|
16
|
+
export const FORMATS = {
|
17
|
+
NONE: '',
|
18
|
+
DATE: 'date',
|
19
|
+
EMAIL: 'email',
|
13
20
|
}
|
14
21
|
|
15
22
|
/**
|
package/src/domain/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { TYPES, Content } from './ContentType'
|
1
|
+
export { TYPES, FORMATS, Content } from './ContentType'
|
2
2
|
export { ContentForm } from './ContentForm'
|
3
3
|
export { ContentEditor, TabbedContentEditor, CollectionEditor, TreededContentEditor, FieldEditor, ListEditor } from './ContentEditor'
|
4
4
|
export { CreateContentDialog } from './CreateContentDialog'
|