@bigbinary/neeto-form-frontend 1.0.1 → 1.0.2

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/dist/index.js +3 -21
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ import require$$8 from 'zlib';
22
22
  import require$$1$3 from 'path';
23
23
  import require$$6 from 'fs';
24
24
  import { Container, Header, Scrollable } from '@bigbinary/neetoui/layouts';
25
- import { reject, omit, insert, compose as compose$1, isEmpty, trim as trim$2, not, isNil, equals, either, values as values$1, times } from 'ramda';
25
+ import { reject, omit, insert, compose as compose$1, isEmpty, trim as trim$2, either, isNil, values as values$1, equals, not, times } from 'ramda';
26
26
  import { useParams, useHistory, BrowserRouter, Switch, Route } from 'react-router-dom';
27
27
  import { Input as Input$2, Textarea as Textarea$1, Checkbox, ActionBlock } from '@bigbinary/neetoui/formik';
28
28
  import _objectSpread$h from '@babel/runtime/helpers/esm/objectSpread2';
@@ -42,8 +42,10 @@ import _getPrototypeOf$2 from '@babel/runtime/helpers/esm/getPrototypeOf';
42
42
  import _defineProperty$1$1 from '@babel/runtime/helpers/esm/defineProperty';
43
43
  import _toArray from '@babel/runtime/helpers/esm/toArray';
44
44
  import { Editor as Editor$1, EditorContent } from '@bigbinary/neeto-editor';
45
+ import { useDebounce } from '@bigbinary/neeto-commons-frontend/react-utils';
45
46
  import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
46
47
  import _regeneratorRuntime from '@babel/runtime/regenerator';
48
+ import { isPresent } from '@bigbinary/neeto-commons-frontend/pure';
47
49
  import dayjs$1 from 'dayjs';
48
50
  import require$$4$1 from 'dayjs/plugin/localeData';
49
51
  import utc from 'dayjs/plugin/utc';
@@ -35576,23 +35578,6 @@ var Form = function Form(_ref) {
35576
35578
  })));
35577
35579
  };
35578
35580
 
35579
- function useDebounce(value, delay) {
35580
- var _useState = useState(value),
35581
- _useState2 = _slicedToArray$4(_useState, 2),
35582
- debouncedValue = _useState2[0],
35583
- setDebouncedValue = _useState2[1];
35584
-
35585
- useEffect(function () {
35586
- var handler = setTimeout(function () {
35587
- setDebouncedValue(value);
35588
- }, delay);
35589
- return function () {
35590
- clearTimeout(handler);
35591
- };
35592
- }, [value]);
35593
- return debouncedValue;
35594
- }
35595
-
35596
35581
  var FormTitleInput = function FormTitleInput(_ref) {
35597
35582
  var formTitle = _ref.formTitle,
35598
35583
  onChange = _ref.onChange;
@@ -35660,9 +35645,6 @@ var FormTitleInput = function FormTitleInput(_ref) {
35660
35645
  };
35661
35646
 
35662
35647
  var isBlank = compose$1(isEmpty, trim$2);
35663
- var isPresent = compose$1(not, isNil);
35664
- compose$1(not, isEmpty);
35665
- compose$1(not, equals);
35666
35648
  var parseServerError = function parseServerError(error) {
35667
35649
  var _error$notice;
35668
35650
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-form-frontend",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Neeto Form Engine Frontend",
5
5
  "author": "BigBinary",
6
6
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  "@babel/plugin-proposal-class-properties": "^7.13.0",
35
35
  "@babel/preset-env": "^7.13.15",
36
36
  "@babel/preset-react": "^7.16.7",
37
- "@bigbinary/neeto-commons-frontend": "^2.0.17",
37
+ "@bigbinary/neeto-commons-frontend": "^2.0.35",
38
38
  "@bigbinary/neeto-editor": "^1.0.3",
39
39
  "@bigbinary/neeto-icons": "^1.8.35",
40
40
  "@bigbinary/neetoui": "^4.0.6",