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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.530",
3
+ "version": "0.0.531",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -181,8 +181,6 @@ export const FieldEditor = ({ field, onChange, content, outlined = false }) => {
181
181
  return null
182
182
  } else {
183
183
  switch (type) {
184
- case TYPES.IMAGE:
185
- return <div className='photo'><img url={value} /></div>
186
184
  case TYPES.ENTITY:
187
185
  return <EntityEditor field={field} value={value1} onChange={change} />
188
186
  case TYPES.STRING:
@@ -272,10 +270,17 @@ export const StringEditor = ({ field, value = '', onChange, content, outlined })
272
270
 
273
271
  function renderFormat(format, options) {
274
272
  switch (format) {
273
+ case FORMATS.IMG:
274
+ return (
275
+ <div className='img-field'>
276
+ <img src={value} />
277
+ <TextField outlined={outlined} id={id} label={label} value={value} onChange={change} readOnly={!editable} />
278
+ </div>
279
+ )
275
280
  case FORMATS.COLOR: return <ColorField id={id} onChange={change} value={value} />
276
281
  case FORMATS.HTML: return <Editor id={id} value={value} onChange={change} content={content} />
277
282
  case FORMATS.DATE: return <TextField outlined={outlined} id={id} type="date" label={label} value={value} onChange={change} readOnly={!editable} />
278
- case FORMATS.DATERANGE: return <DateRange id={id} label={label} value={value} onChange={change} readOnly={!editable}/>
283
+ case FORMATS.DATERANGE: return <DateRange id={id} label={label} value={value} onChange={change} readOnly={!editable} />
279
284
  case FORMATS.TOKENS:
280
285
  return <TokenField id={id} label={label} onChange={change} options={buildOptions()} tokens={value} />
281
286
  default: