@rjsf/fluentui-rc 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/fluentui-rc",
3
- "version": "6.2.5",
3
+ "version": "6.3.0",
4
4
  "description": "FluentUI React Components theme, fields and widgets for react-jsonschema-form",
5
5
  "scripts": {
6
6
  "build:ts": "tsc -b tsconfig.build.json && tsc-alias -p tsconfig.build.json",
@@ -73,13 +73,13 @@
73
73
  "react": ">=18"
74
74
  },
75
75
  "devDependencies": {
76
- "@fluentui/react-components": "^9.72.4",
77
- "@fluentui/react-icons": "^2.0.313",
78
- "@fluentui/react-migration-v0-v9": "^9.6.12",
79
- "@rjsf/core": "^6.2.0",
80
- "@rjsf/snapshot-tests": "^6.2.0",
81
- "@rjsf/utils": "^6.2.0",
82
- "@rjsf/validator-ajv8": "^6.2.0",
76
+ "@fluentui/react-components": "^9.72.11",
77
+ "@fluentui/react-icons": "^2.0.318",
78
+ "@fluentui/react-migration-v0-v9": "^9.6.19",
79
+ "@rjsf/core": "^6.2.5",
80
+ "@rjsf/snapshot-tests": "^6.2.5",
81
+ "@rjsf/utils": "^6.2.5",
82
+ "@rjsf/validator-ajv8": "^6.2.5",
83
83
  "eslint": "^8.57.1"
84
84
  },
85
85
  "directories": {
@@ -10,6 +10,7 @@ import {
10
10
  StrictRJSFSchema,
11
11
  labelValue,
12
12
  } from '@rjsf/utils';
13
+ import { SchemaExamples } from '@rjsf/core';
13
14
 
14
15
  const useStyles = makeStyles({
15
16
  input: {
@@ -99,15 +100,7 @@ export default function BaseInputTemplate<
99
100
  {options.allowClearTextInputs && !readonly && !disabled && value && (
100
101
  <ClearButton registry={registry} onClick={_onClear} />
101
102
  )}
102
- {Array.isArray(schema.examples) && (
103
- <datalist id={examplesId(id)}>
104
- {(schema.examples as string[])
105
- .concat(schema.default && !schema.examples.includes(schema.default) ? ([schema.default] as string[]) : [])
106
- .map((example: any) => {
107
- return <option key={example} value={example} />;
108
- })}
109
- </datalist>
110
- )}
103
+ <SchemaExamples id={id} schema={schema} />
111
104
  </>
112
105
  );
113
106
  }