@micromerce/formbuilder-react 1.0.1008 → 1.0.1009

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.
@@ -87,7 +87,7 @@ export interface GroupFormControl extends ControlCommons {
87
87
  }
88
88
  export interface InputFormControl extends ControlCommons {
89
89
  control: "input";
90
- type: "plain" | "html" | "hex" | "color" | "mrn" | "url" | "date" | "time" | "datetime" | "number" | "email" | "password" | "geolocation";
90
+ type: "plain" | "html" | "hex" | "color" | "mrn" | "url" | "date" | "time" | "datetime" | "number" | "email" | "tel" | "password" | "geolocation";
91
91
  placeholder?: string;
92
92
  pattern?: string;
93
93
  minLength?: number;
@@ -131,7 +131,7 @@ export interface ListFormControl extends ControlCommons {
131
131
  template: FormControls;
132
132
  }
133
133
  export type Control = "input" | "textarea" | "checkbox" | "select" | "list";
134
- export type ControlType = "plain" | "html" | "hex" | "color" | "mrn" | "url" | "date" | "time" | "datetime" | "number" | "email" | "password" | "geolocation" | "json";
134
+ export type ControlType = "plain" | "html" | "hex" | "color" | "mrn" | "url" | "date" | "time" | "datetime" | "number" | "email" | "tel" | "password" | "geolocation" | "json";
135
135
  export type FormControl = InputFormControl | TextareaFormControl | CheckboxFormControl | SelectFormControl | MultiSelectFormControl | ListFormControl | GroupFormControl;
136
136
  export interface FormControls {
137
137
  [key: string]: FormControl;
@@ -7,7 +7,7 @@
7
7
  * positive case only (a check mark) and never blocks a submit.
8
8
  */
9
9
  import { compactBic } from "../../components/controls/SubtypeInput/bankAccount";
10
- export type Normalize = "compact-upper" | "upper";
10
+ export type Normalize = "compact-upper" | "upper" | "e164";
11
11
  export interface ISubtype {
12
12
  /** The server refuses a value that fails `check`. */
13
13
  checked: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromerce/formbuilder-react",
3
- "version": "1.0.1008",
3
+ "version": "1.0.1009",
4
4
  "description": "creates a form based on configuration",
5
5
  "main": "dist/formbuilder.js",
6
6
  "types": "dist/index.d.ts",
@@ -81,6 +81,7 @@
81
81
  "qs": "^6.16.0",
82
82
  "react-date-range": "2.0.1",
83
83
  "react-lite-youtube-embed": "^2.6.0",
84
+ "react-phone-number-input": "^3.4.18",
84
85
  "react-quill": "^2.0.0",
85
86
  "showdown": "^2.1.0",
86
87
  "styled-components": "^6.6.0",