@panneau/medias 4.0.7 → 4.0.11

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 (2) hide show
  1. package/es/index.js +3 -3
  2. package/package.json +22 -21
package/es/index.js CHANGED
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
3
  import classNames from 'classnames';
4
4
  import PropTypes from 'prop-types';
5
- import { useContext, createContext, useMemo, useCallback, useState, useEffect } from 'react';
5
+ import { useContext, useMemo, createContext, useCallback, useState, useEffect } from 'react';
6
6
  import { FormattedMessage } from 'react-intl';
7
7
  import { useFieldComponent, usePanneauResource } from '@panneau/core/contexts';
8
8
  import { useForm, useQuery } from '@panneau/core/hooks';
@@ -1463,7 +1463,7 @@ function MediasBrowser(_ref) {
1463
1463
  // empty={emptyWithSticky}
1464
1464
  ,
1465
1465
  actionsProps: {
1466
- getDeletePropsFromItem: function getDeletePropsFromItem() {
1466
+ getDeletePropsFromValue: function getDeletePropsFromValue() {
1467
1467
  return {
1468
1468
  href: null,
1469
1469
  withConfirmation: true,
@@ -1474,7 +1474,7 @@ function MediasBrowser(_ref) {
1474
1474
  }
1475
1475
  };
1476
1476
  },
1477
- getEditPropsFromItem: function getEditPropsFromItem(it) {
1477
+ getEditPropsFromValue: function getEditPropsFromValue(it) {
1478
1478
  return {
1479
1479
  href: null,
1480
1480
  onClick: function onClick() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/medias",
3
- "version": "4.0.7",
3
+ "version": "4.0.11",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -27,6 +27,7 @@
27
27
  "license": "ISC",
28
28
  "type": "module",
29
29
  "module": "es/index.js",
30
+ "style": "./assets/css/styles.css",
30
31
  "exports": {
31
32
  ".": "./es/index.js",
32
33
  "./assets/css/styles": "./assets/css/styles.css",
@@ -42,30 +43,30 @@
42
43
  "build": "../../scripts/prepare-package.sh"
43
44
  },
44
45
  "devDependencies": {
45
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
46
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
46
+ "react": "^19.0.0",
47
+ "react-dom": "^19.0.0"
47
48
  },
48
49
  "peerDependencies": {
49
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
50
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
50
+ "react": "^19.0.0",
51
+ "react-dom": "^19.0.0"
51
52
  },
52
53
  "dependencies": {
53
54
  "@babel/runtime": "^7.12.5",
54
- "@panneau/core": "^4.0.7",
55
- "@panneau/data": "^4.0.7",
56
- "@panneau/display-image": "^4.0.7",
57
- "@panneau/element-button": "^4.0.7",
58
- "@panneau/element-buttons": "^4.0.7",
59
- "@panneau/element-form": "^4.0.7",
60
- "@panneau/element-form-status": "^4.0.7",
61
- "@panneau/element-grid": "^4.0.7",
62
- "@panneau/element-icon": "^4.0.7",
63
- "@panneau/element-media-card": "^4.0.7",
64
- "@panneau/element-media-player": "^4.0.7",
65
- "@panneau/element-pagination": "^4.0.7",
66
- "@panneau/element-table": "^4.0.7",
67
- "@panneau/field-upload": "^4.0.7",
68
- "@panneau/filter-filters": "^4.0.7",
55
+ "@panneau/core": "^4.0.11",
56
+ "@panneau/data": "^4.0.11",
57
+ "@panneau/display-image": "^4.0.11",
58
+ "@panneau/element-button": "^4.0.11",
59
+ "@panneau/element-buttons": "^4.0.11",
60
+ "@panneau/element-form": "^4.0.11",
61
+ "@panneau/element-form-status": "^4.0.11",
62
+ "@panneau/element-grid": "^4.0.11",
63
+ "@panneau/element-icon": "^4.0.11",
64
+ "@panneau/element-media-card": "^4.0.11",
65
+ "@panneau/element-media-player": "^4.0.11",
66
+ "@panneau/element-pagination": "^4.0.11",
67
+ "@panneau/element-table": "^4.0.11",
68
+ "@panneau/field-upload": "^4.0.11",
69
+ "@panneau/filter-filters": "^4.0.11",
69
70
  "classnames": "^2.5.1",
70
71
  "lodash-es": "^4.17.21",
71
72
  "prop-types": "^15.7.2",
@@ -74,5 +75,5 @@
74
75
  "publishConfig": {
75
76
  "access": "public"
76
77
  },
77
- "gitHead": "8d44fb7aa253ad3ef23c1aca2e7f1a4884c357a6"
78
+ "gitHead": "fe8264ed2815da0b5a40339dec99999c6fe70751"
78
79
  }