@panneau/core 2.0.83 → 2.0.85

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 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
- // e.stopPropagation();
266
+ e.stopPropagation();
267
267
  submit();
268
268
  }, [submit, action]);
269
269
  var status = null;
@@ -879,14 +879,12 @@ 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
- // console.log('gen', finalRouteName, route(`resources.${finalRouteName}`, {
883
- // ...finalParams,
884
- // resource: id,
885
- // }));
886
- // console.log(finalRouteName, id, finalParams);
887
- return id !== null ? route("resources.".concat(finalRouteName), _objectSpread(_objectSpread({}, finalParams), {}, {
882
+ // console.log('route name', finalRouteName, id, finalParams);
883
+ var finalRoute = id !== null ? route("resources.".concat(finalRouteName), _objectSpread(_objectSpread({}, finalParams), {}, {
888
884
  resource: id
889
885
  })) : null;
886
+ // console.log('route', finalRoute);
887
+ return finalRoute;
890
888
  };
891
889
  };
892
890
 
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
- // e.stopPropagation();
301
+ e.stopPropagation();
302
302
  submit();
303
303
  }, [submit, action]);
304
304
  var status = null;
@@ -914,14 +914,12 @@ 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
- // console.log('gen', finalRouteName, route(`resources.${finalRouteName}`, {
918
- // ...finalParams,
919
- // resource: id,
920
- // }));
921
- // console.log(finalRouteName, id, finalParams);
922
- return id !== null ? route("resources.".concat(finalRouteName), _objectSpread__default["default"](_objectSpread__default["default"]({}, finalParams), {}, {
917
+ // console.log('route name', finalRouteName, id, finalParams);
918
+ var finalRoute = id !== null ? route("resources.".concat(finalRouteName), _objectSpread__default["default"](_objectSpread__default["default"]({}, finalParams), {}, {
923
919
  resource: id
924
920
  })) : null;
921
+ // console.log('route', finalRoute);
922
+ return finalRoute;
925
923
  };
926
924
  };
927
925
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/core",
3
- "version": "2.0.83",
3
+ "version": "2.0.85",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -114,5 +114,5 @@
114
114
  "publishConfig": {
115
115
  "access": "public"
116
116
  },
117
- "gitHead": "2f2300a3f55d94d6913eb25cde7f035b3c8e0915"
117
+ "gitHead": "4d9a6b55e2ff8199e2c82bb8d8cf1c7244bae0be"
118
118
  }