@panneau/medias 3.0.165 → 3.0.168

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.
Files changed (3) hide show
  1. package/es/index.js +55 -32
  2. package/lib/index.js +55 -32
  3. package/package.json +8 -8
package/es/index.js CHANGED
@@ -257,35 +257,51 @@ var defaultFields = [{
257
257
  }),
258
258
  type: 'text',
259
259
  component: 'text'
260
- },
261
- // {
262
- // id: 'info',
263
- // component: 'fields',
264
- // title: <FormattedMessage defaultMessage="Informations" description="Field title" />,
265
- // isList: true,
266
- // horizontal: true,
267
- // fields: [
268
- // {
269
- // id: 'user',
270
- // label: <FormattedMessage defaultMessage="Added by" description="Field label" />,
271
- // type: 'display',
272
- // display: 'avatar',
273
- // name: 'user',
274
- // },
275
- // {
276
- // id: 'created_at',
277
- // label: <FormattedMessage defaultMessage="Created at" description="Field label" />,
278
- // type: 'display',
279
- // display: 'date',
280
- // name: 'created_at',
281
- // format: 'yyyy-MM-dd hh:ss',
282
- // },
283
- // ],
284
- // },
285
- {
260
+ }, {
261
+ id: 'info',
262
+ component: 'fields',
263
+ label: /*#__PURE__*/React.createElement(FormattedMessage, {
264
+ id: "3RT69u",
265
+ defaultMessage: [{
266
+ "type": 0,
267
+ "value": "Informations"
268
+ }]
269
+ }),
270
+ isList: true,
271
+ fields: [{
272
+ id: 'user',
273
+ label: /*#__PURE__*/React.createElement(FormattedMessage, {
274
+ id: "yByaBh",
275
+ defaultMessage: [{
276
+ "type": 0,
277
+ "value": "Added by"
278
+ }]
279
+ }),
280
+ type: 'display',
281
+ display: 'avatar',
282
+ name: 'user',
283
+ isListItem: true,
284
+ horizontal: true
285
+ }, {
286
+ id: 'created_at',
287
+ label: /*#__PURE__*/React.createElement(FormattedMessage, {
288
+ id: "PN+75e",
289
+ defaultMessage: [{
290
+ "type": 0,
291
+ "value": "Created at"
292
+ }]
293
+ }),
294
+ type: 'display',
295
+ display: 'date',
296
+ name: 'created_at',
297
+ format: 'yyyy-MM-dd hh:ss',
298
+ isListItem: true,
299
+ horizontal: true
300
+ }]
301
+ }, {
286
302
  id: 'technical',
287
303
  component: 'fields',
288
- title: /*#__PURE__*/React.createElement(FormattedMessage, {
304
+ label: /*#__PURE__*/React.createElement(FormattedMessage, {
289
305
  id: "xKUOLG",
290
306
  defaultMessage: [{
291
307
  "type": 0,
@@ -293,7 +309,6 @@ var defaultFields = [{
293
309
  }]
294
310
  }),
295
311
  isList: true,
296
- horizontal: true,
297
312
  fields: [{
298
313
  id: 'format',
299
314
  label: /*#__PURE__*/React.createElement(FormattedMessage, {
@@ -306,7 +321,9 @@ var defaultFields = [{
306
321
  type: 'display',
307
322
  display: 'unit',
308
323
  format: 'format',
309
- name: 'format'
324
+ name: 'format',
325
+ isListItem: true,
326
+ horizontal: true
310
327
  }, {
311
328
  id: 'dimensions',
312
329
  label: /*#__PURE__*/React.createElement(FormattedMessage, {
@@ -319,7 +336,9 @@ var defaultFields = [{
319
336
  type: 'display',
320
337
  display: 'unit',
321
338
  format: 'dimensions',
322
- name: 'metadata'
339
+ name: 'metadata',
340
+ isListItem: true,
341
+ horizontal: true
323
342
  }, {
324
343
  id: 'size',
325
344
  label: /*#__PURE__*/React.createElement(FormattedMessage, {
@@ -332,7 +351,9 @@ var defaultFields = [{
332
351
  type: 'display',
333
352
  display: 'unit',
334
353
  format: 'bytes',
335
- name: 'metadata.size'
354
+ name: 'metadata.size',
355
+ isListItem: true,
356
+ horizontal: true
336
357
  }, {
337
358
  id: 'duration',
338
359
  label: /*#__PURE__*/React.createElement(FormattedMessage, {
@@ -345,7 +366,9 @@ var defaultFields = [{
345
366
  type: 'display',
346
367
  display: 'unit',
347
368
  format: 'duration',
348
- name: 'metadata.duration'
369
+ name: 'metadata.duration',
370
+ isListItem: true,
371
+ horizontal: true
349
372
  }]
350
373
  }];
351
374
 
package/lib/index.js CHANGED
@@ -259,35 +259,51 @@ var defaultFields = [{
259
259
  }),
260
260
  type: 'text',
261
261
  component: 'text'
262
- },
263
- // {
264
- // id: 'info',
265
- // component: 'fields',
266
- // title: <FormattedMessage defaultMessage="Informations" description="Field title" />,
267
- // isList: true,
268
- // horizontal: true,
269
- // fields: [
270
- // {
271
- // id: 'user',
272
- // label: <FormattedMessage defaultMessage="Added by" description="Field label" />,
273
- // type: 'display',
274
- // display: 'avatar',
275
- // name: 'user',
276
- // },
277
- // {
278
- // id: 'created_at',
279
- // label: <FormattedMessage defaultMessage="Created at" description="Field label" />,
280
- // type: 'display',
281
- // display: 'date',
282
- // name: 'created_at',
283
- // format: 'yyyy-MM-dd hh:ss',
284
- // },
285
- // ],
286
- // },
287
- {
262
+ }, {
263
+ id: 'info',
264
+ component: 'fields',
265
+ label: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
266
+ id: "3RT69u",
267
+ defaultMessage: [{
268
+ "type": 0,
269
+ "value": "Informations"
270
+ }]
271
+ }),
272
+ isList: true,
273
+ fields: [{
274
+ id: 'user',
275
+ label: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
276
+ id: "yByaBh",
277
+ defaultMessage: [{
278
+ "type": 0,
279
+ "value": "Added by"
280
+ }]
281
+ }),
282
+ type: 'display',
283
+ display: 'avatar',
284
+ name: 'user',
285
+ isListItem: true,
286
+ horizontal: true
287
+ }, {
288
+ id: 'created_at',
289
+ label: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
290
+ id: "PN+75e",
291
+ defaultMessage: [{
292
+ "type": 0,
293
+ "value": "Created at"
294
+ }]
295
+ }),
296
+ type: 'display',
297
+ display: 'date',
298
+ name: 'created_at',
299
+ format: 'yyyy-MM-dd hh:ss',
300
+ isListItem: true,
301
+ horizontal: true
302
+ }]
303
+ }, {
288
304
  id: 'technical',
289
305
  component: 'fields',
290
- title: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
306
+ label: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
291
307
  id: "xKUOLG",
292
308
  defaultMessage: [{
293
309
  "type": 0,
@@ -295,7 +311,6 @@ var defaultFields = [{
295
311
  }]
296
312
  }),
297
313
  isList: true,
298
- horizontal: true,
299
314
  fields: [{
300
315
  id: 'format',
301
316
  label: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
@@ -308,7 +323,9 @@ var defaultFields = [{
308
323
  type: 'display',
309
324
  display: 'unit',
310
325
  format: 'format',
311
- name: 'format'
326
+ name: 'format',
327
+ isListItem: true,
328
+ horizontal: true
312
329
  }, {
313
330
  id: 'dimensions',
314
331
  label: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
@@ -321,7 +338,9 @@ var defaultFields = [{
321
338
  type: 'display',
322
339
  display: 'unit',
323
340
  format: 'dimensions',
324
- name: 'metadata'
341
+ name: 'metadata',
342
+ isListItem: true,
343
+ horizontal: true
325
344
  }, {
326
345
  id: 'size',
327
346
  label: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
@@ -334,7 +353,9 @@ var defaultFields = [{
334
353
  type: 'display',
335
354
  display: 'unit',
336
355
  format: 'bytes',
337
- name: 'metadata.size'
356
+ name: 'metadata.size',
357
+ isListItem: true,
358
+ horizontal: true
338
359
  }, {
339
360
  id: 'duration',
340
361
  label: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
@@ -347,7 +368,9 @@ var defaultFields = [{
347
368
  type: 'display',
348
369
  display: 'unit',
349
370
  format: 'duration',
350
- name: 'metadata.duration'
371
+ name: 'metadata.duration',
372
+ isListItem: true,
373
+ horizontal: true
351
374
  }]
352
375
  }];
353
376
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/medias",
3
- "version": "3.0.165",
3
+ "version": "3.0.168",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -47,20 +47,20 @@
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.12.5",
49
49
  "@panneau/core": "^3.0.164",
50
- "@panneau/data": "^3.0.164",
50
+ "@panneau/data": "^3.0.168",
51
51
  "@panneau/element-button": "^3.0.164",
52
52
  "@panneau/element-buttons": "^3.0.164",
53
53
  "@panneau/element-form": "^3.0.164",
54
54
  "@panneau/element-form-status": "^3.0.164",
55
55
  "@panneau/element-grid": "^3.0.164",
56
56
  "@panneau/element-icon": "^3.0.164",
57
- "@panneau/element-media-card": "^3.0.165",
57
+ "@panneau/element-media-card": "^3.0.166",
58
58
  "@panneau/element-media-player": "^3.0.164",
59
- "@panneau/element-media-preview": "^3.0.164",
59
+ "@panneau/element-media-preview": "^3.0.166",
60
60
  "@panneau/element-pagination": "^3.0.164",
61
- "@panneau/element-table": "^3.0.164",
62
- "@panneau/field-upload": "^3.0.165",
63
- "@panneau/filter-filters": "^3.0.164",
61
+ "@panneau/element-table": "^3.0.168",
62
+ "@panneau/field-upload": "^3.0.168",
63
+ "@panneau/filter-filters": "^3.0.166",
64
64
  "classnames": "^2.5.1",
65
65
  "lodash": "^4.17.21",
66
66
  "prop-types": "^15.7.2",
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "gitHead": "3be43601dbd39c37504b9364886f6d1071f9b5a0"
72
+ "gitHead": "b63f38c5fca65e27f8e04eb158cda7bebd815df1"
73
73
  }