@rjsf/antd 6.2.5 → 6.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rjsf/antd",
3
- "version": "6.2.5",
3
+ "version": "6.3.0",
4
4
  "description": "Ant Design theme, fields and widgets for react-jsonschema-form",
5
5
  "main": "dist/index.js",
6
6
  "module": "lib/index.js",
@@ -71,20 +71,20 @@
71
71
  },
72
72
  "dependencies": {
73
73
  "classnames": "^2.5.1",
74
- "lodash": "^4.17.21",
75
- "lodash-es": "^4.17.21",
74
+ "lodash": "^4.17.23",
75
+ "lodash-es": "^4.17.23",
76
76
  "rc-picker": "^4.11.3"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@ant-design/icons": "^6.1.0",
80
- "@rjsf/core": "^6.2.0",
81
- "@rjsf/snapshot-tests": "^6.2.0",
82
- "@rjsf/utils": "^6.2.0",
83
- "@rjsf/validator-ajv8": "^6.x",
80
+ "@rjsf/core": "^6.2.5",
81
+ "@rjsf/snapshot-tests": "^6.2.5",
82
+ "@rjsf/utils": "^6.2.5",
83
+ "@rjsf/validator-ajv8": "^6.2.5",
84
84
  "@rollup/plugin-replace": "^6.0.3",
85
- "antd": "^5.27.6",
85
+ "antd": "^5.29.3",
86
86
  "atob": "^2.1.2",
87
- "dayjs": "^1.11.18",
87
+ "dayjs": "^1.11.19",
88
88
  "eslint": "^8.57.1"
89
89
  },
90
90
  "repository": {
@@ -10,6 +10,7 @@ import {
10
10
  RJSFSchema,
11
11
  StrictRJSFSchema,
12
12
  } from '@rjsf/utils';
13
+ import { SchemaExamples } from '@rjsf/core';
13
14
 
14
15
  const INPUT_STYLE = {
15
16
  width: '100%',
@@ -107,15 +108,7 @@ export default function BaseInputTemplate<
107
108
  {options.allowClearTextInputs && !readonly && !disabled && value && (
108
109
  <ClearButton registry={registry} onClick={handleClear} />
109
110
  )}
110
- {Array.isArray(schema.examples) && (
111
- <datalist id={examplesId(id)}>
112
- {(schema.examples as string[])
113
- .concat(schema.default && !schema.examples.includes(schema.default) ? ([schema.default] as string[]) : [])
114
- .map((example) => {
115
- return <option key={example} value={example} />;
116
- })}
117
- </datalist>
118
- )}
111
+ <SchemaExamples id={id} schema={schema} />
119
112
  </>
120
113
  );
121
114
  }