@rjsf/core 2.2.1 → 2.4.1

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.d.ts CHANGED
@@ -106,7 +106,7 @@ declare module '@rjsf/core' {
106
106
  readonly: boolean;
107
107
  autofocus: boolean;
108
108
  onChange: (value: any) => void;
109
- options: { [key: string]: boolean | number | string | object | null };
109
+ options: NonNullable<UiSchema['ui:options']>;
110
110
  formContext: any;
111
111
  onBlur: (id: string, value: boolean | number | string | null) => void;
112
112
  onFocus: (id: string, value: boolean | number | string | null) => void;
@@ -163,6 +163,8 @@ declare module '@rjsf/core' {
163
163
  schema: JSONSchema7;
164
164
  uiSchema: UiSchema;
165
165
  formContext: any;
166
+ onKeyChange: (value: string) => () => void;
167
+ onDropPropertyClick: (value: string) => () => void;
166
168
  registry: FieldProps['registry'];
167
169
  };
168
170
 
@@ -204,12 +206,15 @@ declare module '@rjsf/core' {
204
206
  TitleField: React.StatelessComponent<{ id: string; title: string; required: boolean }>;
205
207
  title: string;
206
208
  description: string;
209
+ disabled: boolean;
207
210
  properties: {
208
211
  content: React.ReactElement;
209
212
  name: string;
210
213
  disabled: boolean;
211
214
  readonly: boolean;
212
215
  }[];
216
+ onAddClick: (schema: JSONSchema7) => () => void;
217
+ readonly: boolean;
213
218
  required: boolean;
214
219
  schema: JSONSchema7;
215
220
  uiSchema: UiSchema;
@@ -279,19 +284,21 @@ declare module '@rjsf/core' {
279
284
 
280
285
  export const ADDITIONAL_PROPERTY_FLAG: string;
281
286
 
287
+ export function canExpand(schema: JSONSchema7, uiSchema: UiSchema, formData: any): boolean;
288
+
282
289
  export function getDefaultRegistry(): FieldProps['registry'];
283
290
 
284
291
  export function getSchemaType(schema: JSONSchema7): string;
285
292
 
286
293
  export function getWidget(
287
294
  schema: JSONSchema7,
288
- widget: Widget,
295
+ widget: Widget | string,
289
296
  registeredWidgets?: { [name: string]: Widget },
290
- ): Widget | Error;
297
+ ): Widget;
291
298
 
292
299
  export function hasWidget(
293
300
  schema: JSONSchema7,
294
- widget: Widget,
301
+ widget: Widget | string,
295
302
  registeredWidgets?: { [name: string]: Widget },
296
303
  ): boolean;
297
304
 
@@ -324,7 +331,7 @@ declare module '@rjsf/core' {
324
331
 
325
332
  export function isConstant(schema: JSONSchema7): boolean;
326
333
 
327
- export function toConstant(schema: JSONSchema7): JSONSchema7Type | JSONSchema7['const'] | Error;
334
+ export function toConstant(schema: JSONSchema7): JSONSchema7Type | JSONSchema7['const'];
328
335
 
329
336
  export function isSelect(_schema: JSONSchema7, definitions?: FieldProps['registry']['definitions']): boolean;
330
337
 
@@ -417,6 +424,8 @@ declare module '@rjsf/core' {
417
424
  options: JSONSchema7[],
418
425
  definitions: FieldProps['registry']['definitions'],
419
426
  ): number;
427
+
428
+ export function schemaRequiresTrueValue(schema: JSONSchema7): boolean;
420
429
  }
421
430
  }
422
431
 
@@ -2,6 +2,7 @@ import _JSON$stringify from "@babel/runtime-corejs2/core-js/json/stringify";
2
2
  import _Array$isArray from "@babel/runtime-corejs2/core-js/array/is-array";
3
3
  import _toConsumableArray from "@babel/runtime-corejs2/helpers/esm/toConsumableArray";
4
4
  import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
5
+ import _Object$keys from "@babel/runtime-corejs2/core-js/object/keys";
5
6
  import _objectSpread from "@babel/runtime-corejs2/helpers/esm/objectSpread";
6
7
  import _classCallCheck from "@babel/runtime-corejs2/helpers/esm/classCallCheck";
7
8
  import _createClass from "@babel/runtime-corejs2/helpers/esm/createClass";
@@ -10,38 +11,12 @@ import _getPrototypeOf from "@babel/runtime-corejs2/helpers/esm/getPrototypeOf";
10
11
  import _assertThisInitialized from "@babel/runtime-corejs2/helpers/esm/assertThisInitialized";
11
12
  import _inherits from "@babel/runtime-corejs2/helpers/esm/inherits";
12
13
  import _defineProperty from "@babel/runtime-corejs2/helpers/esm/defineProperty";
13
- import _Object$keys from "@babel/runtime-corejs2/core-js/object/keys";
14
14
  import AddButton from "../AddButton";
15
15
  import React, { Component } from "react";
16
16
  import * as types from "../../types";
17
- import { orderProperties, retrieveSchema, getDefaultRegistry, getUiOptions, ADDITIONAL_PROPERTY_FLAG } from "../../utils";
17
+ import { orderProperties, retrieveSchema, getDefaultRegistry, canExpand, ADDITIONAL_PROPERTY_FLAG } from "../../utils";
18
18
 
19
19
  function DefaultObjectFieldTemplate(props) {
20
- var canExpand = function canExpand() {
21
- var formData = props.formData,
22
- schema = props.schema,
23
- uiSchema = props.uiSchema;
24
-
25
- if (!schema.additionalProperties) {
26
- return false;
27
- }
28
-
29
- var _getUiOptions = getUiOptions(uiSchema),
30
- expandable = _getUiOptions.expandable;
31
-
32
- if (expandable === false) {
33
- return expandable;
34
- } // if ui:options.expandable was not explicitly set to false, we can add
35
- // another property if we have not exceeded maxProperties yet
36
-
37
-
38
- if (schema.maxProperties !== undefined) {
39
- return _Object$keys(formData).length < schema.maxProperties;
40
- }
41
-
42
- return true;
43
- };
44
-
45
20
  var TitleField = props.TitleField,
46
21
  DescriptionField = props.DescriptionField;
47
22
  return React.createElement("fieldset", {
@@ -57,7 +32,7 @@ function DefaultObjectFieldTemplate(props) {
57
32
  formContext: props.formContext
58
33
  }), props.properties.map(function (prop) {
59
34
  return prop.content;
60
- }), canExpand() && React.createElement(AddButton, {
35
+ }), canExpand(props.schema, props.uiSchema, props.formData) && React.createElement(AddButton, {
61
36
  className: "object-property-expand",
62
37
  onClick: props.onAddClick(props.schema),
63
38
  disabled: props.disabled || props.readonly
@@ -278,7 +278,6 @@ function SchemaFieldRender(props) {
278
278
  formContext: formContext,
279
279
  rawErrors: __errors
280
280
  }));
281
- var type = schema.type;
282
281
  var id = idSchema.$id; // If this schema has a title defined, but the user has set a new key/label, retain their input.
283
282
 
284
283
  var label;
@@ -293,7 +292,7 @@ function SchemaFieldRender(props) {
293
292
  var errors = __errors;
294
293
  var help = uiSchema["ui:help"];
295
294
  var hidden = uiSchema["ui:widget"] === "hidden";
296
- var classNames = ["form-group", "field", "field-".concat(type), errors && errors.length > 0 ? "field-error has-error has-danger" : "", uiSchema.classNames].join(" ").trim();
295
+ var classNames = ["form-group", "field", "field-".concat(schema.type), errors && errors.length > 0 ? "field-error has-error has-danger" : "", uiSchema.classNames].join(" ").trim();
297
296
  var fieldProps = {
298
297
  description: React.createElement(DescriptionField, {
299
298
  id: id + "__description",
@@ -1,33 +1,6 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types"; // Check to see if a schema specifies that a value must be true
3
-
4
- function schemaRequiresTrueValue(schema) {
5
- // Check if const is a truthy value
6
- if (schema["const"]) {
7
- return true;
8
- } // Check if an enum has a single value of true
9
-
10
-
11
- if (schema["enum"] && schema["enum"].length === 1 && schema["enum"][0] === true) {
12
- return true;
13
- } // If anyOf has a single value, evaluate the subschema
14
-
15
-
16
- if (schema.anyOf && schema.anyOf.length === 1) {
17
- return schemaRequiresTrueValue(schema.anyOf[0]);
18
- } // If oneOf has a single value, evaluate the subschema
19
-
20
-
21
- if (schema.oneOf && schema.oneOf.length === 1) {
22
- return schemaRequiresTrueValue(schema.oneOf[0]);
23
- } // Evaluate each subschema in allOf, to see if one of them requires a true
24
- // value
25
-
26
-
27
- if (schema.allOf) {
28
- return schema.allOf.some(schemaRequiresTrueValue);
29
- }
30
- }
2
+ import PropTypes from "prop-types";
3
+ import { schemaRequiresTrueValue } from "../../utils";
31
4
 
32
5
  function CheckboxWidget(props) {
33
6
  var schema = props.schema,
package/lib/utils.js CHANGED
@@ -4,12 +4,12 @@ import _Array$from from "@babel/runtime-corejs2/core-js/array/from";
4
4
  import _toConsumableArray from "@babel/runtime-corejs2/helpers/esm/toConsumableArray";
5
5
  import _Number$isNaN from "@babel/runtime-corejs2/core-js/number/is-nan";
6
6
  import _defineProperty from "@babel/runtime-corejs2/helpers/esm/defineProperty";
7
- import _Object$keys from "@babel/runtime-corejs2/core-js/object/keys";
8
7
  import _Array$isArray from "@babel/runtime-corejs2/core-js/array/is-array";
9
8
  import _typeof from "@babel/runtime-corejs2/helpers/esm/typeof";
10
9
  import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
11
10
  import _objectSpread from "@babel/runtime-corejs2/helpers/esm/objectSpread";
12
11
  import _objectWithoutProperties from "@babel/runtime-corejs2/helpers/esm/objectWithoutProperties";
12
+ import _Object$keys from "@babel/runtime-corejs2/core-js/object/keys";
13
13
 
14
14
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
15
15
 
@@ -19,9 +19,11 @@ import React from "react";
19
19
  import * as ReactIs from "react-is";
20
20
  import mergeAllOf from "json-schema-merge-allof";
21
21
  import fill from "core-js/library/fn/array/fill";
22
- import validateFormData, { isValid } from "./validate";
23
22
  import union from "lodash/union";
24
23
  import jsonpointer from "jsonpointer";
24
+ import fields from "./components/fields";
25
+ import widgets from "./components/widgets";
26
+ import validateFormData, { isValid } from "./validate";
25
27
  export var ADDITIONAL_PROPERTY_FLAG = "__additional_property";
26
28
  var widgetMap = {
27
29
  "boolean": {
@@ -74,10 +76,30 @@ var widgetMap = {
74
76
  hidden: "HiddenWidget"
75
77
  }
76
78
  };
79
+ export function canExpand(schema, uiSchema, formData) {
80
+ if (!schema.additionalProperties) {
81
+ return false;
82
+ }
83
+
84
+ var _getUiOptions = getUiOptions(uiSchema),
85
+ expandable = _getUiOptions.expandable;
86
+
87
+ if (expandable === false) {
88
+ return expandable;
89
+ } // if ui:options.expandable was not explicitly set to false, we can add
90
+ // another property if we have not exceeded maxProperties yet
91
+
92
+
93
+ if (schema.maxProperties !== undefined) {
94
+ return _Object$keys(formData).length < schema.maxProperties;
95
+ }
96
+
97
+ return true;
98
+ }
77
99
  export function getDefaultRegistry() {
78
100
  return {
79
- fields: require("./components/fields")["default"],
80
- widgets: require("./components/widgets")["default"],
101
+ fields: fields,
102
+ widgets: widgets,
81
103
  definitions: {},
82
104
  rootSchema: {},
83
105
  formContext: {}
@@ -1180,4 +1202,34 @@ export function getMatchingOption(formData, options, rootSchema) {
1180
1202
  }
1181
1203
 
1182
1204
  return 0;
1205
+ } // Check to see if a schema specifies that a value must be true
1206
+
1207
+ export function schemaRequiresTrueValue(schema) {
1208
+ // Check if const is a truthy value
1209
+ if (schema["const"]) {
1210
+ return true;
1211
+ } // Check if an enum has a single value of true
1212
+
1213
+
1214
+ if (schema["enum"] && schema["enum"].length === 1 && schema["enum"][0] === true) {
1215
+ return true;
1216
+ } // If anyOf has a single value, evaluate the subschema
1217
+
1218
+
1219
+ if (schema.anyOf && schema.anyOf.length === 1) {
1220
+ return schemaRequiresTrueValue(schema.anyOf[0]);
1221
+ } // If oneOf has a single value, evaluate the subschema
1222
+
1223
+
1224
+ if (schema.oneOf && schema.oneOf.length === 1) {
1225
+ return schemaRequiresTrueValue(schema.oneOf[0]);
1226
+ } // Evaluate each subschema in allOf, to see if one of them requires a true
1227
+ // value
1228
+
1229
+
1230
+ if (schema.allOf) {
1231
+ return schema.allOf.some(schemaRequiresTrueValue);
1232
+ }
1233
+
1234
+ return false;
1183
1235
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rjsf/core",
3
- "version": "2.2.1",
3
+ "version": "2.4.1",
4
4
  "description": "A simple React component capable of building HTML forms out of a JSON schema.",
5
5
  "scripts": {
6
6
  "build": "npm run dist:build:umd && npm run build:cjs && npm run build:es && npm run build:es:lib",
@@ -130,5 +130,5 @@
130
130
  "publishConfig": {
131
131
  "access": "public"
132
132
  },
133
- "gitHead": "232896c0a98d54e029cb20a810759d63d995eb7b"
133
+ "gitHead": "6f3c4c78765cbae67b91bf7762094c9b7e38c7d1"
134
134
  }
package/CHANGELOG.md DELETED
@@ -1,121 +0,0 @@
1
- ## <small>2.2.1 (2020-07-07)</small>
2
-
3
- * Bump to v2.2.0, update package-lock's (#1872) ([db62304](https://github.com/rjsf-team/react-jsonschema-form/commit/db62304)), closes [#1872](https://github.com/rjsf-team/react-jsonschema-form/issues/1872)
4
- * Do not omit nested additionalProperties (#1774) ([c33204e](https://github.com/rjsf-team/react-jsonschema-form/commit/c33204e)), closes [#1774](https://github.com/rjsf-team/react-jsonschema-form/issues/1774) [#1497](https://github.com/rjsf-team/react-jsonschema-form/issues/1497)
5
- * Fix warning when textarea value is null (#1815) ([599a360](https://github.com/rjsf-team/react-jsonschema-form/commit/599a360)), closes [#1815](https://github.com/rjsf-team/react-jsonschema-form/issues/1815)
6
- * make event optional for onDropIndexClick and onReorderClick, add onAddIndexClick type definition (#1 ([b4824b9](https://github.com/rjsf-team/react-jsonschema-form/commit/b4824b9)), closes [#1759](https://github.com/rjsf-team/react-jsonschema-form/issues/1759)
7
- * Remove type from WidgetProps (#1826) ([590b0f3](https://github.com/rjsf-team/react-jsonschema-form/commit/590b0f3)), closes [#1826](https://github.com/rjsf-team/react-jsonschema-form/issues/1826) [/github.com/MLH-Fellowship/react-jsonschema-form/pull/37#issuecomment-648918733](https://github.com//github.com/MLH-Fellowship/react-jsonschema-form/pull/37/issues/issuecomment-648918733) [/github.com/rjsf-team/react-jsonschema-form/blob/626eb843b74cb14fa35f079ba26a8685ce0d1c3b/packages/core/src/components/fields/ArrayField.js#L560](https://github.com//github.com/rjsf-team/react-jsonschema-form/blob/626eb843b74cb14fa35f079ba26a8685ce0d1c3b/packages/core/src/components/fields/ArrayField.js/issues/L560) [/github.com/sempostma/react-jsonschema-form/blob/995480322651928607e1ee48d850c7f1d75c4e9b/docs/advanced-customization/custom-widgets-fields.md#L122](https://github.com//github.com/sempostma/react-jsonschema-form/blob/995480322651928607e1ee48d850c7f1d75c4e9b/docs/advanced-customization/custom-widgets-fields.md/issues/L122)
8
- * Support passing ui:label = false for Material UI (#1807) ([c71d656](https://github.com/rjsf-team/react-jsonschema-form/commit/c71d656)), closes [#1807](https://github.com/rjsf-team/react-jsonschema-form/issues/1807)
9
- * Update rjsf theme readmes (#1827) ([7ba7a44](https://github.com/rjsf-team/react-jsonschema-form/commit/7ba7a44)), closes [#1827](https://github.com/rjsf-team/react-jsonschema-form/issues/1827)
10
- * v2.2.1 ([f4cb916](https://github.com/rjsf-team/react-jsonschema-form/commit/f4cb916))
11
- * chore(deps-dev): bump @babel/plugin-transform-object-assign (#1838) ([40d926a](https://github.com/rjsf-team/react-jsonschema-form/commit/40d926a)), closes [#1838](https://github.com/rjsf-team/react-jsonschema-form/issues/1838)
12
- * chore(deps-dev): bump babel-loader from 8.0.6 to 8.1.0 in /packages/core (#1837) ([fa70039](https://github.com/rjsf-team/react-jsonschema-form/commit/fa70039)), closes [#1837](https://github.com/rjsf-team/react-jsonschema-form/issues/1837)
13
- * chore(deps-dev): bump cross-env from 2.0.1 to 7.0.2 in /packages/core (#1835) ([7fe6629](https://github.com/rjsf-team/react-jsonschema-form/commit/7fe6629)), closes [#1835](https://github.com/rjsf-team/react-jsonschema-form/issues/1835)
14
- * chore(deps-dev): bump sinon from 7.5.0 to 9.0.2 in /packages/core (#1834) ([9e7e4c3](https://github.com/rjsf-team/react-jsonschema-form/commit/9e7e4c3)), closes [#1834](https://github.com/rjsf-team/react-jsonschema-form/issues/1834)
15
- * chore(deps-dev): bump webpack-dev-middleware in /packages/core (#1836) ([345788d](https://github.com/rjsf-team/react-jsonschema-form/commit/345788d)), closes [#1836](https://github.com/rjsf-team/react-jsonschema-form/issues/1836)
16
- * additionalProperties: retain object title when renaming key (#1751) ([75f734d](https://github.com/rjsf-team/react-jsonschema-form/commit/75f734d)), closes [#1751](https://github.com/rjsf-team/react-jsonschema-form/issues/1751) [#1749](https://github.com/rjsf-team/react-jsonschema-form/issues/1749) [#1401](https://github.com/rjsf-team/react-jsonschema-form/issues/1401) [#1401](https://github.com/rjsf-team/react-jsonschema-form/issues/1401) [#1749](https://github.com/rjsf-team/react-jsonschema-form/issues/1749) [#1401](https://github.com/rjsf-team/react-jsonschema-form/issues/1401) [#1401](https://github.com/rjsf-team/react-jsonschema-form/issues/1401) [#1401](https://github.com/rjsf-team/react-jsonschema-form/issues/1401)
17
-
18
-
19
-
20
- ## 2.1.0 (2020-06-15)
21
-
22
- * Add material UI submit button to theme (#1806) ([ba4ae40](https://github.com/rjsf-team/react-jsonschema-form/commit/ba4ae40)), closes [#1806](https://github.com/rjsf-team/react-jsonschema-form/issues/1806)
23
- * Add missing material theme string widgets (#1789) ([4a05644](https://github.com/rjsf-team/react-jsonschema-form/commit/4a05644)), closes [#1789](https://github.com/rjsf-team/react-jsonschema-form/issues/1789)
24
- * Add missing props to onChange call (#1804) ([fdea78a](https://github.com/rjsf-team/react-jsonschema-form/commit/fdea78a)), closes [#1804](https://github.com/rjsf-team/react-jsonschema-form/issues/1804)
25
- * v2.1.0 ([3e0ee10](https://github.com/rjsf-team/react-jsonschema-form/commit/3e0ee10))
26
-
27
-
28
-
29
- ## <small>2.0.2 (2020-06-05)</small>
30
-
31
- * Add rawErrors to WidgetProps interface (#1697) ([9954803](https://github.com/rjsf-team/react-jsonschema-form/commit/9954803)), closes [#1697](https://github.com/rjsf-team/react-jsonschema-form/issues/1697)
32
- * Add registry to custom FieldTemplate (#1787) ([4932178](https://github.com/rjsf-team/react-jsonschema-form/commit/4932178)), closes [#1787](https://github.com/rjsf-team/react-jsonschema-form/issues/1787)
33
- * v2.0.2 ([6fcc34a](https://github.com/rjsf-team/react-jsonschema-form/commit/6fcc34a))
34
-
35
-
36
-
37
- ## <small>2.0.1 (2020-05-17)</small>
38
-
39
- * Array buttons accessibility issues (#1714) ([d6f0964](https://github.com/rjsf-team/react-jsonschema-form/commit/d6f0964)), closes [#1714](https://github.com/rjsf-team/react-jsonschema-form/issues/1714)
40
- * Display changes in extraErrors when noValidate is true or liveValidate is false (#1528) ([7296338](https://github.com/rjsf-team/react-jsonschema-form/commit/7296338)), closes [#1528](https://github.com/rjsf-team/react-jsonschema-form/issues/1528) [#1547](https://github.com/rjsf-team/react-jsonschema-form/issues/1547)
41
- * Fix #1314 event in onAddClick is no longer mandatory - with test (#1730) ([626eb84](https://github.com/rjsf-team/react-jsonschema-form/commit/626eb84)), closes [#1314](https://github.com/rjsf-team/react-jsonschema-form/issues/1314) [#1730](https://github.com/rjsf-team/react-jsonschema-form/issues/1730) [#1314](https://github.com/rjsf-team/react-jsonschema-form/issues/1314)
42
- * Reorganize docs, add codepen examples (#1691) ([213d306](https://github.com/rjsf-team/react-jsonschema-form/commit/213d306)), closes [#1691](https://github.com/rjsf-team/react-jsonschema-form/issues/1691) [#1692](https://github.com/rjsf-team/react-jsonschema-form/issues/1692)
43
- * v2.0.1 ([3864f3f](https://github.com/rjsf-team/react-jsonschema-form/commit/3864f3f))
44
-
45
-
46
-
47
- ## 2.0.0 (2020-04-25)
48
-
49
- * Add ui:autocomplete attribute (#1705) ([eb24e53](https://github.com/rjsf-team/react-jsonschema-form/commit/eb24e53)), closes [#1705](https://github.com/rjsf-team/react-jsonschema-form/issues/1705)
50
- * Make sure FieldTemplate only has one child (#1709) ([2fbf860](https://github.com/rjsf-team/react-jsonschema-form/commit/2fbf860)), closes [#1709](https://github.com/rjsf-team/react-jsonschema-form/issues/1709)
51
- * npm audit fix (#1689) ([6eaad59](https://github.com/rjsf-team/react-jsonschema-form/commit/6eaad59)), closes [#1689](https://github.com/rjsf-team/react-jsonschema-form/issues/1689)
52
- * remove safeRenderCompletion type (#1720) ([b957028](https://github.com/rjsf-team/react-jsonschema-form/commit/b957028)), closes [#1720](https://github.com/rjsf-team/react-jsonschema-form/issues/1720)
53
- * Setup material-ui tests (#1641) ([2eae50c](https://github.com/rjsf-team/react-jsonschema-form/commit/2eae50c)), closes [#1641](https://github.com/rjsf-team/react-jsonschema-form/issues/1641)
54
- * upgraded lint-staged to the latest (#1696) ([edb27f7](https://github.com/rjsf-team/react-jsonschema-form/commit/edb27f7)), closes [#1696](https://github.com/rjsf-team/react-jsonschema-form/issues/1696)
55
- * v2.0.0 ([0b63842](https://github.com/rjsf-team/react-jsonschema-form/commit/0b63842))
56
-
57
-
58
-
59
- ## 2.0.0-alpha.6 (2020-04-04)
60
-
61
- * v2.0.0-alpha.6 ([abbe6d2](https://github.com/rjsf-team/react-jsonschema-form/commit/abbe6d2))
62
-
63
-
64
-
65
- ## 2.0.0-alpha.5 (2020-04-03)
66
-
67
- * Changed json-schema version and made changes to package.json (#1676) ([9da0bf5](https://github.com/rjsf-team/react-jsonschema-form/commit/9da0bf5)), closes [#1676](https://github.com/rjsf-team/react-jsonschema-form/issues/1676)
68
- * v2.0.0-alpha.5 ([3d391df](https://github.com/rjsf-team/react-jsonschema-form/commit/3d391df))
69
- * feat: adding support for overriding UnsupportedField (#1660) ([226554d](https://github.com/rjsf-team/react-jsonschema-form/commit/226554d)), closes [#1660](https://github.com/rjsf-team/react-jsonschema-form/issues/1660)
70
-
71
-
72
-
73
- ## 2.0.0-alpha.4 (2020-03-22)
74
-
75
- * v2.0.0-alpha.4 ([f3be67e](https://github.com/rjsf-team/react-jsonschema-form/commit/f3be67e))
76
- * core: make @babel/runtime-corejs2 a dependency, include lib folder ([a085881](https://github.com/rjsf-team/react-jsonschema-form/commit/a085881))
77
-
78
-
79
-
80
- ## 2.0.0-alpha.3 (2020-03-22)
81
-
82
- * Add CI with GitHub Actions, disable material-ui test running (#1657) ([5860088](https://github.com/rjsf-team/react-jsonschema-form/commit/5860088)), closes [#1657](https://github.com/rjsf-team/react-jsonschema-form/issues/1657)
83
- * Allow references that don't start with #/definitions/ (#1506) ([64b8921](https://github.com/rjsf-team/react-jsonschema-form/commit/64b8921)), closes [#1506](https://github.com/rjsf-team/react-jsonschema-form/issues/1506)
84
- * Combine all themes into a single playground (#1539) ([5d17e37](https://github.com/rjsf-team/react-jsonschema-form/commit/5d17e37)), closes [#1539](https://github.com/rjsf-team/react-jsonschema-form/issues/1539)
85
- * Don't crash when schema property is a non-object - show an error instead (#1582) ([81e8062](https://github.com/rjsf-team/react-jsonschema-form/commit/81e8062)), closes [#1582](https://github.com/rjsf-team/react-jsonschema-form/issues/1582)
86
- * Fix local playground for core package (#1607) ([442fbf8](https://github.com/rjsf-team/react-jsonschema-form/commit/442fbf8)), closes [#1607](https://github.com/rjsf-team/react-jsonschema-form/issues/1607)
87
- * Move docs to root-level directory, add to CI process (#1617) ([601f574](https://github.com/rjsf-team/react-jsonschema-form/commit/601f574)), closes [#1617](https://github.com/rjsf-team/react-jsonschema-form/issues/1617)
88
- * Overridable DescriptionField in BooleanField (#1594) ([063af39](https://github.com/rjsf-team/react-jsonschema-form/commit/063af39)), closes [#1594](https://github.com/rjsf-team/react-jsonschema-form/issues/1594)
89
- * Playground and development environment fixes for Lerna (#1642) ([ad55e4f](https://github.com/rjsf-team/react-jsonschema-form/commit/ad55e4f)), closes [#1642](https://github.com/rjsf-team/react-jsonschema-form/issues/1642) [#1606](https://github.com/rjsf-team/react-jsonschema-form/issues/1606) [#1641](https://github.com/rjsf-team/react-jsonschema-form/issues/1641) [#1630](https://github.com/rjsf-team/react-jsonschema-form/issues/1630) [#1583](https://github.com/rjsf-team/react-jsonschema-form/issues/1583) [#1630](https://github.com/rjsf-team/react-jsonschema-form/issues/1630)
90
- * remove preversion, fix "lerna run build" doc ([a0831f4](https://github.com/rjsf-team/react-jsonschema-form/commit/a0831f4))
91
- * Revert "chore: move docs to separate folder (#1604)" (#1618) ([3b7433f](https://github.com/rjsf-team/react-jsonschema-form/commit/3b7433f)), closes [#1604](https://github.com/rjsf-team/react-jsonschema-form/issues/1604) [#1618](https://github.com/rjsf-team/react-jsonschema-form/issues/1618)
92
- * v2.0.0-alpha.3 ([0a36110](https://github.com/rjsf-team/react-jsonschema-form/commit/0a36110))
93
- * feat: exposing findSchemaDefinition out of the utils lib (#1643) ([ff8b700](https://github.com/rjsf-team/react-jsonschema-form/commit/ff8b700)), closes [#1643](https://github.com/rjsf-team/react-jsonschema-form/issues/1643)
94
- * chore: move docs to separate folder (#1604) ([b7ef383](https://github.com/rjsf-team/react-jsonschema-form/commit/b7ef383)), closes [#1604](https://github.com/rjsf-team/react-jsonschema-form/issues/1604)
95
- * doc: JSON schema version supported versions (#1603) ([32425d7](https://github.com/rjsf-team/react-jsonschema-form/commit/32425d7)), closes [#1603](https://github.com/rjsf-team/react-jsonschema-form/issues/1603) [/github.com/rjsf-team/react-jsonschema-form/issues/1307#issuecomment-499210953](https://github.com//github.com/rjsf-team/react-jsonschema-form/issues/1307/issues/issuecomment-499210953)
96
-
97
-
98
-
99
- ## 2.0.0-alpha.2 (2020-02-18)
100
-
101
- * Add allOf support (#1380) ([4524376](https://github.com/rjsf-team/react-jsonschema-form/commit/4524376)), closes [#1380](https://github.com/rjsf-team/react-jsonschema-form/issues/1380) [#1371](https://github.com/rjsf-team/react-jsonschema-form/issues/1371) [#1371](https://github.com/rjsf-team/react-jsonschema-form/issues/1371)
102
- * add forwardRef to withTheme (#1498) ([004ad14](https://github.com/rjsf-team/react-jsonschema-form/commit/004ad14)), closes [#1498](https://github.com/rjsf-team/react-jsonschema-form/issues/1498)
103
- * Capitalized Yes and No defaults (#1395) ([4f02482](https://github.com/rjsf-team/react-jsonschema-form/commit/4f02482)), closes [#1395](https://github.com/rjsf-team/react-jsonschema-form/issues/1395)
104
- * Document the `onKeyChange` prop for custom widgets (#1542) ([ae02f4f](https://github.com/rjsf-team/react-jsonschema-form/commit/ae02f4f)), closes [#1542](https://github.com/rjsf-team/react-jsonschema-form/issues/1542)
105
- * Fix id of anyof select (#1212) ([53ee91f](https://github.com/rjsf-team/react-jsonschema-form/commit/53ee91f)), closes [#1212](https://github.com/rjsf-team/react-jsonschema-form/issues/1212)
106
- * Monorepo with Lerna (#1501) ([ef8b7fc](https://github.com/rjsf-team/react-jsonschema-form/commit/ef8b7fc)), closes [#1501](https://github.com/rjsf-team/react-jsonschema-form/issues/1501)
107
- * More test refactoring to move away from internal component state assertion (#1535) ([71949f0](https://github.com/rjsf-team/react-jsonschema-form/commit/71949f0)), closes [#1535](https://github.com/rjsf-team/react-jsonschema-form/issues/1535)
108
- * move allof test to the right place (#1546) ([30b1700](https://github.com/rjsf-team/react-jsonschema-form/commit/30b1700)), closes [#1546](https://github.com/rjsf-team/react-jsonschema-form/issues/1546)
109
- * Move allOf.js to the right place ([6b486ef](https://github.com/rjsf-team/react-jsonschema-form/commit/6b486ef))
110
- * Pass state formData to array field template (#1513) ([b825ed2](https://github.com/rjsf-team/react-jsonschema-form/commit/b825ed2)), closes [#1513](https://github.com/rjsf-team/react-jsonschema-form/issues/1513)
111
- * Reduce bundle size (#1523) ([6733cc6](https://github.com/rjsf-team/react-jsonschema-form/commit/6733cc6)), closes [#1523](https://github.com/rjsf-team/react-jsonschema-form/issues/1523)
112
- * Refactor some tests to assert on change events instead of internal state (#1525) ([58f4e07](https://github.com/rjsf-team/react-jsonschema-form/commit/58f4e07)), closes [#1525](https://github.com/rjsf-team/react-jsonschema-form/issues/1525)
113
- * Remove ui:order console warning about extraneous properties (#1508) ([6d385e3](https://github.com/rjsf-team/react-jsonschema-form/commit/6d385e3)), closes [#1508](https://github.com/rjsf-team/react-jsonschema-form/issues/1508)
114
- * Support for "examples" keyword (#1517) ([83645ce](https://github.com/rjsf-team/react-jsonschema-form/commit/83645ce)), closes [#1517](https://github.com/rjsf-team/react-jsonschema-form/issues/1517)
115
- * update package lock ([6b9b811](https://github.com/rjsf-team/react-jsonschema-form/commit/6b9b811))
116
- * v2.0.0-alpha.2 ([25ba86d](https://github.com/rjsf-team/react-jsonschema-form/commit/25ba86d))
117
- * fix: form to accept react component (#1511) ([561dff1](https://github.com/rjsf-team/react-jsonschema-form/commit/561dff1)), closes [#1511](https://github.com/rjsf-team/react-jsonschema-form/issues/1511)
118
- * fix: schema of type string shows defaults when cleared (#1505) ([e673a90](https://github.com/rjsf-team/react-jsonschema-form/commit/e673a90)), closes [#1505](https://github.com/rjsf-team/react-jsonschema-form/issues/1505)
119
-
120
-
121
-