ywana-core8 0.0.530 → 0.0.531

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.
@@ -4169,13 +4169,6 @@ 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
-
4179
4172
  case TYPES.ENTITY:
4180
4173
  return /*#__PURE__*/React.createElement(EntityEditor, {
4181
4174
  field: field,
@@ -4331,6 +4324,20 @@ var StringEditor = function StringEditor(_ref6) {
4331
4324
 
4332
4325
  function renderFormat(format, options) {
4333
4326
  switch (format) {
4327
+ case FORMATS.IMG:
4328
+ return /*#__PURE__*/React.createElement("div", {
4329
+ className: "img-field"
4330
+ }, /*#__PURE__*/React.createElement("img", {
4331
+ src: value
4332
+ }), /*#__PURE__*/React.createElement(TextField, {
4333
+ outlined: outlined,
4334
+ id: id,
4335
+ label: label,
4336
+ value: value,
4337
+ onChange: change,
4338
+ readOnly: !editable
4339
+ }));
4340
+
4334
4341
  case FORMATS.COLOR:
4335
4342
  return /*#__PURE__*/React.createElement(ColorField, {
4336
4343
  id: id,