@panneau/data 3.0.228 → 3.0.244
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/es/index.js +8 -0
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -1060,6 +1060,7 @@ var MediasApi = /*#__PURE__*/function (_Base) {
|
|
|
1060
1060
|
store: 'medias',
|
|
1061
1061
|
update: 'medias/:media',
|
|
1062
1062
|
trash: 'medias/trash/:media',
|
|
1063
|
+
restore: 'medias/restore/:media',
|
|
1063
1064
|
"delete": 'medias/:media'
|
|
1064
1065
|
}, opts.routes || null)
|
|
1065
1066
|
}]);
|
|
@@ -1132,6 +1133,13 @@ var MediasApi = /*#__PURE__*/function (_Base) {
|
|
|
1132
1133
|
media: id
|
|
1133
1134
|
}));
|
|
1134
1135
|
}
|
|
1136
|
+
}, {
|
|
1137
|
+
key: "restore",
|
|
1138
|
+
value: function restore(id) {
|
|
1139
|
+
return this.requestPost(this.route('restore', {
|
|
1140
|
+
media: id
|
|
1141
|
+
}));
|
|
1142
|
+
}
|
|
1135
1143
|
}, {
|
|
1136
1144
|
key: "delete",
|
|
1137
1145
|
value: function _delete(id) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/data",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.244",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -59,7 +59,7 @@
|
|
|
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.
|
|
62
|
+
"@panneau/core": "^3.0.244",
|
|
63
63
|
"@tanstack/react-query": "^5.29.2",
|
|
64
64
|
"lodash": "^4.17.21",
|
|
65
65
|
"prop-types": "^15.7.2",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "41028d7e3eddfb81b41a4f9c9a80b4a5cf63c2f0"
|
|
72
72
|
}
|