@panneau/core 2.0.83 → 2.0.84
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/hooks.js +6 -7
- package/lib/hooks.js +6 -7
- package/package.json +2 -2
package/es/hooks.js
CHANGED
|
@@ -259,11 +259,11 @@ var useForm = function useForm() {
|
|
|
259
259
|
})).then(onSubmitSuccess)["catch"](onSubmitError);
|
|
260
260
|
}, [finalPostForm, action, value]);
|
|
261
261
|
var onSubmit = useCallback(function (e) {
|
|
262
|
+
console.log('form submit', e); //
|
|
262
263
|
e.preventDefault();
|
|
263
|
-
console.log('hey ya');
|
|
264
264
|
// This one is very important with multiple forms
|
|
265
265
|
// Nested forms (even in portals) will bubble the onSubmit event to the parent
|
|
266
|
-
|
|
266
|
+
e.stopPropagation();
|
|
267
267
|
submit();
|
|
268
268
|
}, [submit, action]);
|
|
269
269
|
var status = null;
|
|
@@ -879,11 +879,10 @@ var useResourceUrlGenerator = function useResourceUrlGenerator() {
|
|
|
879
879
|
var _ref = finalResource || {},
|
|
880
880
|
_ref$id = _ref.id,
|
|
881
881
|
id = _ref$id === void 0 ? null : _ref$id;
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
// console.log(finalRouteName, id, finalParams);
|
|
882
|
+
console.log('gen', finalRouteName, route("resources.".concat(finalRouteName), _objectSpread(_objectSpread({}, finalParams), {}, {
|
|
883
|
+
resource: id
|
|
884
|
+
})));
|
|
885
|
+
console.log(finalRouteName, id, finalParams);
|
|
887
886
|
return id !== null ? route("resources.".concat(finalRouteName), _objectSpread(_objectSpread({}, finalParams), {}, {
|
|
888
887
|
resource: id
|
|
889
888
|
})) : null;
|
package/lib/hooks.js
CHANGED
|
@@ -294,11 +294,11 @@ var useForm = function useForm() {
|
|
|
294
294
|
})).then(onSubmitSuccess)["catch"](onSubmitError);
|
|
295
295
|
}, [finalPostForm, action, value]);
|
|
296
296
|
var onSubmit = react.useCallback(function (e) {
|
|
297
|
+
console.log('form submit', e); //
|
|
297
298
|
e.preventDefault();
|
|
298
|
-
console.log('hey ya');
|
|
299
299
|
// This one is very important with multiple forms
|
|
300
300
|
// Nested forms (even in portals) will bubble the onSubmit event to the parent
|
|
301
|
-
|
|
301
|
+
e.stopPropagation();
|
|
302
302
|
submit();
|
|
303
303
|
}, [submit, action]);
|
|
304
304
|
var status = null;
|
|
@@ -914,11 +914,10 @@ var useResourceUrlGenerator = function useResourceUrlGenerator() {
|
|
|
914
914
|
var _ref = finalResource || {},
|
|
915
915
|
_ref$id = _ref.id,
|
|
916
916
|
id = _ref$id === void 0 ? null : _ref$id;
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
// console.log(finalRouteName, id, finalParams);
|
|
917
|
+
console.log('gen', finalRouteName, route("resources.".concat(finalRouteName), _objectSpread__default["default"](_objectSpread__default["default"]({}, finalParams), {}, {
|
|
918
|
+
resource: id
|
|
919
|
+
})));
|
|
920
|
+
console.log(finalRouteName, id, finalParams);
|
|
922
921
|
return id !== null ? route("resources.".concat(finalRouteName), _objectSpread__default["default"](_objectSpread__default["default"]({}, finalParams), {}, {
|
|
923
922
|
resource: id
|
|
924
923
|
})) : null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.84",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"publishConfig": {
|
|
115
115
|
"access": "public"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "3d9b2057bb38052904974a9b5f9f35940315046e"
|
|
118
118
|
}
|