@trackunit/custom-field-components 0.0.683 → 0.0.685

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/index.cjs.js CHANGED
@@ -369,7 +369,7 @@ const getPhoneNumberValidationRules = (definition) => {
369
369
  const defaultRules = {};
370
370
  const pattern = {
371
371
  validate: value => {
372
- return value === "" || value === undefined || libphonenumberJs.isValidPhoneNumber(value);
372
+ return value === "" || value === undefined || value === null || libphonenumberJs.isValidPhoneNumber(value);
373
373
  },
374
374
  };
375
375
  return definition.uiEditable
package/index.esm.js CHANGED
@@ -346,7 +346,7 @@ const getPhoneNumberValidationRules = (definition) => {
346
346
  const defaultRules = {};
347
347
  const pattern = {
348
348
  validate: value => {
349
- return value === "" || value === undefined || isValidPhoneNumber(value);
349
+ return value === "" || value === undefined || value === null || isValidPhoneNumber(value);
350
350
  },
351
351
  };
352
352
  return definition.uiEditable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/custom-field-components",
3
- "version": "0.0.683",
3
+ "version": "0.0.685",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {