@updog/data-editor 0.1.94 → 0.1.96

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.
@@ -139,6 +139,34 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
139
139
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
140
140
  SOFTWARE.
141
141
 
142
+ ================================================================================
143
+ Package: libphonenumber-js
144
+ Version: 1.13.12
145
+ License: MIT
146
+ Homepage: https://gitlab.com/catamphetamine/libphonenumber-js#readme
147
+ ================================================================================
148
+ (The MIT License)
149
+
150
+ Copyright (c) 2016 @catamphetamine <purecatamphetamine@gmail.com>
151
+
152
+ Permission is hereby granted, free of charge, to any person obtaining
153
+ a copy of this software and associated documentation files (the
154
+ 'Software'), to deal in the Software without restriction, including
155
+ without limitation the rights to use, copy, modify, merge, publish,
156
+ distribute, sublicense, and/or sell copies of the Software, and to
157
+ permit persons to whom the Software is furnished to do so, subject to
158
+ the following conditions:
159
+
160
+ The above copyright notice and this permission notice shall be
161
+ included in all copies or substantial portions of the Software.
162
+
163
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
164
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
165
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
166
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
167
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
168
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
169
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
142
170
  ================================================================================
143
171
  Package: lucide-react
144
172
  Version: 1.31.0
package/index.d.ts CHANGED
@@ -418,8 +418,10 @@ declare var export_default = {
418
418
  invalidEmail: "Invalid email address",
419
419
  invalidFormat: "Invalid format",
420
420
  invalidNumber: "Invalid number",
421
+ invalidPhone: "Invalid phone number",
421
422
  invalidOption: "Invalid option",
422
423
  invalidTime: "Invalid time",
424
+ invalidUrl: "Invalid URL",
423
425
  outOfRange: "Out of range",
424
426
  required: "This field is required",
425
427
  structuralMismatch: "This might be in the wrong column.",
@@ -764,6 +766,39 @@ type CellValidator = (value: unknown, row: DataEditorRow) => ValidationError | n
764
766
  type TextEditorCell = {
765
767
  type: "text";
766
768
  };
769
+ /**
770
+ * Email cell. A plain text input; the column is checked against
771
+ * `{ type: "email" }` even when it declares no validator. On the way in,
772
+ * surrounding spaces are cut and the domain is lower-cased.
773
+ */
774
+ type EmailEditorCell = {
775
+ type: "email";
776
+ };
777
+ /**
778
+ * Web address cell. A plain text input; the column is checked against
779
+ * `{ type: "url" }` even when it declares no validator. On the way in,
780
+ * surrounding spaces are cut and a bare host such as `acme.com` becomes
781
+ * `https://acme.com`.
782
+ */
783
+ type UrlEditorCell = {
784
+ type: "url";
785
+ };
786
+ /**
787
+ * Phone cell. A plain text input; the column is checked against
788
+ * `{ type: "phone" }` even when it declares no validator. On the way in a
789
+ * number is read with libphonenumber and stored in E.164 (`+4915112345678`);
790
+ * the screen shows it spaced (`+49 1511 2345678`). What does not read as
791
+ * one possible number stays as it came, trimmed, and is flagged.
792
+ */
793
+ type PhoneEditorCell = {
794
+ type: "phone";
795
+ /**
796
+ * ISO 3166-1 alpha-2 region a number without a country code belongs to,
797
+ * `"DE"`. Omitted: only numbers carrying `+` (or digits that read as
798
+ * `+digits`) are recognised.
799
+ */
800
+ defaultRegion?: string;
801
+ };
767
802
  /** Date picker cell. Bounds come from the column's `{ type: "date" }` validator. */
768
803
  type DateEditorCell = {
769
804
  type: "date";
@@ -862,6 +897,9 @@ type NumberEditorCell = {
862
897
  * Controls how a cell is edited.
863
898
  *
864
899
  * - `"text"` — plain text input (default).
900
+ * - `"email"` — plain text input; the column is checked against `{ type: "email" }`, spaces cut and the domain lower-cased on the way in.
901
+ * - `"url"` — plain text input; the column is checked against `{ type: "url" }`, a bare host such as `acme.com` becomes `https://acme.com` on the way in.
902
+ * - `"phone"` — plain text input; the column is checked against `{ type: "phone" }`, a number is stored in E.164 and shown spaced.
865
903
  * - `"date"` — date picker; the calendar honours the column's date validator bounds.
866
904
  * - `"time"` — plain text input for a time of day; the column is checked against `{ type: "time" }`.
867
905
  * - `"select"` — dropdown with a fixed list of options.
@@ -871,7 +909,7 @@ type NumberEditorCell = {
871
909
  * - `"number"` — number input with locale-aware formatting.
872
910
  * - `"boolean"` — stores a real `true`/`false`; reads yes/no, 1/0, on/off and Excel's localized TRUE/FALSE.
873
911
  */
874
- type CellEditor = TextEditorCell | DateEditorCell | TimeEditorCell | SelectEditorCell | MultiSelectEditorCell | CountryEditorCell | CurrencyEditorCell | NumberEditorCell | BooleanEditorCell;
912
+ type CellEditor = TextEditorCell | EmailEditorCell | UrlEditorCell | PhoneEditorCell | DateEditorCell | TimeEditorCell | SelectEditorCell | MultiSelectEditorCell | CountryEditorCell | CurrencyEditorCell | NumberEditorCell | BooleanEditorCell;
875
913
  /** Dropdown filter shown in the sidebar Filters panel. */
876
914
  type SelectColumnFilter = {
877
915
  type: "select";
@@ -1034,6 +1072,16 @@ type BuiltInValidator = {
1034
1072
  } | {
1035
1073
  type: "email";
1036
1074
  message?: string;
1075
+ }
1076
+ /** The cell holds an `http` or `https` address with a dotted host. Implicit on every url column. */
1077
+ | {
1078
+ type: "url";
1079
+ message?: string;
1080
+ }
1081
+ /** The cell holds one possible phone number in E.164. Implicit on every phone column. */
1082
+ | {
1083
+ type: "phone";
1084
+ message?: string;
1037
1085
  } | {
1038
1086
  type: "date";
1039
1087
  min?: string;