Commit ba083dd
* fix: normalize types in datalist comparison to prevent duplicate React keys (closes #4927)
* refactor: extract datalist logic into reusable SchemaExamples component
- Created SchemaExamples component in @rjsf/core to centralize datalist rendering logic
- Exported SchemaExamples from core package for use in all themes
- Updated BaseInputTemplate in core and all 9 themes (antd, chakra-ui, daisyui,
fluentui-rc, mantine, mui, react-bootstrap, semantic-ui, shadcn) to use the
shared SchemaExamples component
- Fixed CHANGELOG.md: moved @rjsf/core to alphabetical order and updated links
to reference issue #4927 instead of PR
This eliminates code duplication across packages and improves maintainability.
* docs: add JSDoc to SchemaExamples, remove PR_DESCRIPTION.txt, add formTests coverage
* test: update snapshots for schema examples with mixed types
* Apply suggestions from code review
Fixed changelog
---------
Co-authored-by: Heath C <51679588+heath-freenome@users.noreply.github.com>
1 parent 7340c4b commit ba083dd
File tree
26 files changed
+2132
-706
lines changed- packages
- antd
- src/templates/BaseInputTemplate
- test/__snapshots__
- chakra-ui
- src/BaseInputTemplate
- test/__snapshots__
- core
- src
- components
- templates
- test
- __snapshots__
- daisyui
- src/templates/BaseInputTemplate
- test/__snapshots__
- fluentui-rc
- src/BaseInputTemplate
- test/__snapshots__
- mantine
- src/templates
- test/__snapshots__
- mui
- src/BaseInputTemplate
- test/__snapshots__
- primereact/test/__snapshots__
- react-bootstrap
- src/BaseInputTemplate
- test/__snapshots__
- semantic-ui
- src/BaseInputTemplate
- test/__snapshots__
- shadcn
- src/BaseInputTemplate
- test/__snapshots__
- snapshot-tests/src
26 files changed
+2132
-706
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
19 | 60 | | |
20 | 61 | | |
21 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
| 111 | + | |
119 | 112 | | |
120 | 113 | | |
121 | 114 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14375 | 14375 | | |
14376 | 14376 | | |
14377 | 14377 | | |
| 14378 | + | |
| 14379 | + | |
| 14380 | + | |
| 14381 | + | |
| 14382 | + | |
| 14383 | + | |
| 14384 | + | |
| 14385 | + | |
| 14386 | + | |
| 14387 | + | |
| 14388 | + | |
| 14389 | + | |
| 14390 | + | |
| 14391 | + | |
| 14392 | + | |
| 14393 | + | |
| 14394 | + | |
| 14395 | + | |
| 14396 | + | |
| 14397 | + | |
| 14398 | + | |
| 14399 | + | |
| 14400 | + | |
| 14401 | + | |
| 14402 | + | |
| 14403 | + | |
| 14404 | + | |
| 14405 | + | |
| 14406 | + | |
| 14407 | + | |
| 14408 | + | |
| 14409 | + | |
| 14410 | + | |
| 14411 | + | |
| 14412 | + | |
| 14413 | + | |
| 14414 | + | |
| 14415 | + | |
| 14416 | + | |
| 14417 | + | |
| 14418 | + | |
| 14419 | + | |
| 14420 | + | |
| 14421 | + | |
| 14422 | + | |
| 14423 | + | |
| 14424 | + | |
| 14425 | + | |
| 14426 | + | |
| 14427 | + | |
| 14428 | + | |
| 14429 | + | |
| 14430 | + | |
| 14431 | + | |
| 14432 | + | |
| 14433 | + | |
| 14434 | + | |
| 14435 | + | |
| 14436 | + | |
| 14437 | + | |
| 14438 | + | |
| 14439 | + | |
| 14440 | + | |
| 14441 | + | |
| 14442 | + | |
| 14443 | + | |
| 14444 | + | |
| 14445 | + | |
| 14446 | + | |
| 14447 | + | |
| 14448 | + | |
| 14449 | + | |
| 14450 | + | |
| 14451 | + | |
| 14452 | + | |
| 14453 | + | |
| 14454 | + | |
| 14455 | + | |
| 14456 | + | |
| 14457 | + | |
| 14458 | + | |
| 14459 | + | |
| 14460 | + | |
| 14461 | + | |
| 14462 | + | |
| 14463 | + | |
| 14464 | + | |
| 14465 | + | |
| 14466 | + | |
| 14467 | + | |
| 14468 | + | |
| 14469 | + | |
| 14470 | + | |
| 14471 | + | |
| 14472 | + | |
| 14473 | + | |
| 14474 | + | |
| 14475 | + | |
| 14476 | + | |
| 14477 | + | |
| 14478 | + | |
| 14479 | + | |
| 14480 | + | |
| 14481 | + | |
| 14482 | + | |
| 14483 | + | |
| 14484 | + | |
| 14485 | + | |
| 14486 | + | |
| 14487 | + | |
| 14488 | + | |
| 14489 | + | |
| 14490 | + | |
| 14491 | + | |
| 14492 | + | |
| 14493 | + | |
| 14494 | + | |
| 14495 | + | |
| 14496 | + | |
| 14497 | + | |
| 14498 | + | |
| 14499 | + | |
| 14500 | + | |
| 14501 | + | |
| 14502 | + | |
| 14503 | + | |
| 14504 | + | |
| 14505 | + | |
| 14506 | + | |
| 14507 | + | |
| 14508 | + | |
| 14509 | + | |
| 14510 | + | |
| 14511 | + | |
| 14512 | + | |
| 14513 | + | |
| 14514 | + | |
| 14515 | + | |
| 14516 | + | |
| 14517 | + | |
| 14518 | + | |
| 14519 | + | |
14378 | 14520 | | |
14379 | 14521 | | |
14380 | 14522 | | |
| |||
Lines changed: 2 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 89 | + | |
97 | 90 | | |
98 | 91 | | |
99 | 92 | | |
0 commit comments