ywana-core8 0.0.527 → 0.0.530
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 +11 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +11 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +11 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +4 -4
- package/src/domain/ContentEditor.js +2 -0
package/dist/index.modern.js
CHANGED
@@ -4169,6 +4169,13 @@ var FieldEditor = function FieldEditor(_ref4) {
|
|
4169
4169
|
return null;
|
4170
4170
|
} else {
|
4171
4171
|
switch (type) {
|
4172
|
+
case TYPES.IMAGE:
|
4173
|
+
return /*#__PURE__*/React.createElement("div", {
|
4174
|
+
className: "photo"
|
4175
|
+
}, /*#__PURE__*/React.createElement("img", {
|
4176
|
+
url: value
|
4177
|
+
}));
|
4178
|
+
|
4172
4179
|
case TYPES.ENTITY:
|
4173
4180
|
return /*#__PURE__*/React.createElement(EntityEditor, {
|
4174
4181
|
field: field,
|
@@ -4887,6 +4894,7 @@ var CollectionPage = function CollectionPage(props) {
|
|
4887
4894
|
title = props.title,
|
4888
4895
|
_props$name = props.name,
|
4889
4896
|
name = _props$name === void 0 ? "Collection 1" : _props$name,
|
4897
|
+
className = props.className,
|
4890
4898
|
schema = props.schema,
|
4891
4899
|
url = props.url,
|
4892
4900
|
field = props.field,
|
@@ -4958,7 +4966,7 @@ var CollectionPage = function CollectionPage(props) {
|
|
4958
4966
|
}
|
4959
4967
|
|
4960
4968
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Header, {
|
4961
|
-
className: "collection-page",
|
4969
|
+
className: "collection-page " + className,
|
4962
4970
|
title: /*#__PURE__*/React.createElement(Text, null, title)
|
4963
4971
|
}, canAdd ? /*#__PURE__*/React.createElement(Button, {
|
4964
4972
|
icon: "add",
|
@@ -4969,7 +4977,7 @@ var CollectionPage = function CollectionPage(props) {
|
|
4969
4977
|
label: "Reload",
|
4970
4978
|
action: reload
|
4971
4979
|
}), renderActions()), /*#__PURE__*/React.createElement("menu", {
|
4972
|
-
className: "collection-page"
|
4980
|
+
className: "collection-page " + className
|
4973
4981
|
}, /*#__PURE__*/React.createElement(Header, {
|
4974
4982
|
title: /*#__PURE__*/React.createElement(Text, null, "Lista de ", name)
|
4975
4983
|
}), canFilter ? /*#__PURE__*/React.createElement(CollectionFilters, {
|
@@ -4984,7 +4992,7 @@ var CollectionPage = function CollectionPage(props) {
|
|
4984
4992
|
onSelect: onSelect
|
4985
4993
|
})), /*#__PURE__*/React.createElement("main", {
|
4986
4994
|
key: id,
|
4987
|
-
className: "collection-page"
|
4995
|
+
className: "collection-page " + className
|
4988
4996
|
}, /*#__PURE__*/React.createElement(CollectionEditor, {
|
4989
4997
|
icon: icon,
|
4990
4998
|
schema: schema,
|