@panneau/core 3.0.282 → 3.0.283
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/contexts.js +3 -2
- package/es/hooks.js +2 -2
- package/es/index.js +3 -2
- package/package.json +2 -2
package/es/contexts.js
CHANGED
|
@@ -300,8 +300,9 @@ var routes = PropTypes.shape({
|
|
|
300
300
|
'resources.edit': PropTypes.string.isRequired,
|
|
301
301
|
'resources.update': PropTypes.string.isRequired,
|
|
302
302
|
'resources.delete': PropTypes.string.isRequired,
|
|
303
|
-
'resources.destroy': PropTypes.string.isRequired
|
|
304
|
-
|
|
303
|
+
'resources.destroy': PropTypes.string.isRequired,
|
|
304
|
+
'resources.duplicate': PropTypes.string.isRequired,
|
|
305
|
+
'resources.clone': PropTypes.string.isRequired
|
|
305
306
|
});
|
|
306
307
|
var intl = PropTypes.shape({
|
|
307
308
|
locale: PropTypes.string,
|
package/es/hooks.js
CHANGED
|
@@ -108,9 +108,9 @@ var useActions = function useActions() {
|
|
|
108
108
|
_ref2$url = _ref2.url,
|
|
109
109
|
url = _ref2$url === void 0 ? null : _ref2$url;
|
|
110
110
|
var hasCustomShowUrl = showUrl !== null || url !== null;
|
|
111
|
-
console.log(urlGenerator, hasDuplicateRoute, urlGenerator !== null && hasDuplicateRoute ? urlGenerator('duplicate', {
|
|
111
|
+
console.log('moshi', urlGenerator, hasDuplicateRoute, urlGenerator !== null && hasDuplicateRoute ? urlGenerator('duplicate', {
|
|
112
112
|
id: id
|
|
113
|
-
}) :
|
|
113
|
+
}) : 'no');
|
|
114
114
|
return (actions || []).map(function (action) {
|
|
115
115
|
if (isString(action)) {
|
|
116
116
|
switch (action) {
|
package/es/index.js
CHANGED
|
@@ -76,8 +76,9 @@ var routes = PropTypes$1.shape({
|
|
|
76
76
|
'resources.edit': PropTypes$1.string.isRequired,
|
|
77
77
|
'resources.update': PropTypes$1.string.isRequired,
|
|
78
78
|
'resources.delete': PropTypes$1.string.isRequired,
|
|
79
|
-
'resources.destroy': PropTypes$1.string.isRequired
|
|
80
|
-
|
|
79
|
+
'resources.destroy': PropTypes$1.string.isRequired,
|
|
80
|
+
'resources.duplicate': PropTypes$1.string.isRequired,
|
|
81
|
+
'resources.clone': PropTypes$1.string.isRequired
|
|
81
82
|
});
|
|
82
83
|
var intl = PropTypes$1.shape({
|
|
83
84
|
locale: PropTypes$1.string,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.283",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"publishConfig": {
|
|
111
111
|
"access": "public"
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "7295ec0fa362a586252e5ff6fa3a01717c84e2d1"
|
|
114
114
|
}
|