@remoteoss/json-schema-form 0.1.1-dev.20230616112349 → 0.2.0-beta.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ #### 0.2.0-beta.0 (2023-06-20)
2
+
3
+ ##### New Features
4
+
5
+ - Add typescript declarations to the library ([2404188c](https://github.com/remoteoss/json-schema-form/commit/2404188cba52a5a665f257430a65a0ebb938dd44))
6
+
7
+ ##### Fixes
8
+
9
+ - Support maximum 0 ([#10](https://github.com/remoteoss/json-schema-form/pull/10)) ([1e9d6cf9](https://github.com/remoteoss/json-schema-form/commit/1e9d6cf96436cf16018e045b351567c643e10dac))
10
+
11
+ ##### Chores
12
+
13
+ - Add json-schema-form meta schema ([#6](https://github.com/remoteoss/json-schema-form/pull/6)) ([414a5fe2](https://github.com/remoteoss/json-schema-form/commit/414a5fe2cf2b015a8761f554f03bbb507fae1784))
14
+
1
15
  #### 0.1.0-beta.0 (2023-05-18)
2
16
 
3
17
  ##### New Features
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /*!
3
3
  Copyright (c) 2023 Remote Technology, Inc.
4
- NPM Package: @remoteoss/json-schema-form@0.1.1-dev.20230616112349
5
- Generated: Fri, 16 Jun 2023 11:24:06 GMT
4
+ NPM Package: @remoteoss/json-schema-form@0.2.0-beta.0
5
+ Generated: Tue, 20 Jun 2023 08:31:44 GMT
6
6
 
7
7
  MIT License
8
8
 
@@ -371,9 +371,8 @@ var baseString = (0, import_yup.string)().trim();
371
371
  var todayDateHint = (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
372
372
  var convertBytesToKB = convertDiskSizeFromTo("Bytes", "KB");
373
373
  var convertKbBytesToMB = convertDiskSizeFromTo("KB", "MB");
374
- var validateOnlyStrings = (0, import_yup.string)().trim().nullable().test("is-string", (value, context) => typeof context.originalValue === "string");
375
374
  var yupSchemas = {
376
- text: validateOnlyStrings,
375
+ text: (0, import_yup.string)().trim().nullable(),
377
376
  select: (0, import_yup.string)().trim().nullable(),
378
377
  radio: (0, import_yup.string)().trim().nullable(),
379
378
  date: (0, import_yup.string)().nullable().trim().matches(
@@ -536,7 +535,7 @@ function buildYupSchema(field, config) {
536
535
  if (typeof propertyFields.minLength !== "undefined") {
537
536
  validators.push(withMinLength);
538
537
  }
539
- if (propertyFields.maximum) {
538
+ if (propertyFields.maximum !== void 0) {
540
539
  validators.push(withMax);
541
540
  }
542
541
  if (propertyFields.maxLength) {
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /*!
3
3
  Copyright (c) 2023 Remote Technology, Inc.
4
- NPM Package: @remoteoss/json-schema-form@0.1.1-dev.20230616112349
5
- Generated: Fri, 16 Jun 2023 11:24:06 GMT
4
+ NPM Package: @remoteoss/json-schema-form@0.2.0-beta.0
5
+ Generated: Tue, 20 Jun 2023 08:31:44 GMT
6
6
 
7
7
  MIT License
8
8
 
@@ -335,9 +335,8 @@ var baseString = string().trim();
335
335
  var todayDateHint = (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
336
336
  var convertBytesToKB = convertDiskSizeFromTo("Bytes", "KB");
337
337
  var convertKbBytesToMB = convertDiskSizeFromTo("KB", "MB");
338
- var validateOnlyStrings = string().trim().nullable().test("is-string", (value, context) => typeof context.originalValue === "string");
339
338
  var yupSchemas = {
340
- text: validateOnlyStrings,
339
+ text: string().trim().nullable(),
341
340
  select: string().trim().nullable(),
342
341
  radio: string().trim().nullable(),
343
342
  date: string().nullable().trim().matches(
@@ -500,7 +499,7 @@ function buildYupSchema(field, config) {
500
499
  if (typeof propertyFields.minLength !== "undefined") {
501
500
  validators.push(withMinLength);
502
501
  }
503
- if (propertyFields.maximum) {
502
+ if (propertyFields.maximum !== void 0) {
504
503
  validators.push(withMax);
505
504
  }
506
505
  if (propertyFields.maxLength) {