@panneau/data 3.0.256 → 3.0.271

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 +10 -2
  2. package/package.json +4 -4
package/es/index.js CHANGED
@@ -14,7 +14,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
14
14
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
15
15
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
16
16
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
17
- import isEmpty from 'lodash/isEmpty';
17
+ import isEmpty from 'lodash-es/isEmpty';
18
18
 
19
19
  var useData = function useData(loadData) {
20
20
  var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
@@ -1061,7 +1061,8 @@ var MediasApi = /*#__PURE__*/function (_Base) {
1061
1061
  update: 'medias/:media',
1062
1062
  trash: 'medias/trash/:media',
1063
1063
  restore: 'medias/restore/:media',
1064
- "delete": 'medias/:media'
1064
+ "delete": 'medias/:media',
1065
+ replace: 'medias/replace/:media'
1065
1066
  }, opts.routes || null)
1066
1067
  }]);
1067
1068
  }
@@ -1147,6 +1148,13 @@ var MediasApi = /*#__PURE__*/function (_Base) {
1147
1148
  media: id
1148
1149
  }));
1149
1150
  }
1151
+ }, {
1152
+ key: "replace",
1153
+ value: function replace(id, data) {
1154
+ return this.requestPost(this.route('replace', {
1155
+ media: id
1156
+ }), data);
1157
+ }
1150
1158
  }]);
1151
1159
  }(Base$1);
1152
1160
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/data",
3
- "version": "3.0.256",
3
+ "version": "3.0.271",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -59,14 +59,14 @@
59
59
  "@babel/runtime": "^7.12.5",
60
60
  "@folklore/fetch": "^0.1.17",
61
61
  "@folklore/routes": "^0.2.26",
62
- "@panneau/core": "^3.0.256",
62
+ "@panneau/core": "^3.0.271",
63
63
  "@tanstack/react-query": "^5.29.2",
64
- "lodash": "^4.17.21",
64
+ "lodash-es": "^4.17.21",
65
65
  "prop-types": "^15.7.2",
66
66
  "query-string": "^9.0.0"
67
67
  },
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "d841aee21fa1e406ed2674e9f7fb5622d185b05c"
71
+ "gitHead": "017c943c9f29e78d1bb46c46108e9182bb9d9c80"
72
72
  }