@rjsf/utils 5.14.2 → 5.15.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.
Files changed (42) hide show
  1. package/dist/index.js +40 -29
  2. package/dist/index.js.map +3 -3
  3. package/dist/utils.esm.js +39 -28
  4. package/dist/utils.esm.js.map +2 -2
  5. package/dist/utils.umd.js +40 -32
  6. package/lib/createErrorHandler.js +2 -2
  7. package/lib/createErrorHandler.js.map +1 -1
  8. package/lib/enumOptionsSelectValue.js +1 -1
  9. package/lib/enumOptionsSelectValue.js.map +1 -1
  10. package/lib/findSchemaDefinition.js +1 -1
  11. package/lib/findSchemaDefinition.js.map +1 -1
  12. package/lib/getInputProps.js +4 -1
  13. package/lib/getInputProps.js.map +1 -1
  14. package/lib/getSubmitButtonOptions.js +1 -1
  15. package/lib/getSubmitButtonOptions.js.map +1 -1
  16. package/lib/getUiOptions.js +3 -3
  17. package/lib/getUiOptions.js.map +1 -1
  18. package/lib/getWidget.js +2 -4
  19. package/lib/getWidget.js.map +1 -1
  20. package/lib/parser/ParserValidator.js +1 -1
  21. package/lib/parser/ParserValidator.js.map +1 -1
  22. package/lib/schema/getDefaultFormState.js +19 -13
  23. package/lib/schema/getDefaultFormState.js.map +1 -1
  24. package/lib/schema/getMatchingOption.js +1 -2
  25. package/lib/schema/getMatchingOption.js.map +1 -1
  26. package/lib/schema/retrieveSchema.js +33 -18
  27. package/lib/schema/retrieveSchema.js.map +1 -1
  28. package/lib/schema/sanitizeDataForNewSchema.js +5 -1
  29. package/lib/schema/sanitizeDataForNewSchema.js.map +1 -1
  30. package/lib/schema/toPathSchema.js +4 -1
  31. package/lib/schema/toPathSchema.js.map +1 -1
  32. package/lib/tsconfig.tsbuildinfo +1 -1
  33. package/lib/types.d.ts +4 -0
  34. package/lib/unwrapErrorHandler.js +5 -2
  35. package/lib/unwrapErrorHandler.js.map +1 -1
  36. package/lib/withIdRefPrefix.js +1 -1
  37. package/lib/withIdRefPrefix.js.map +1 -1
  38. package/package.json +2 -2
  39. package/src/enumOptionsSelectValue.ts +1 -1
  40. package/src/schema/getDefaultFormState.ts +49 -29
  41. package/src/schema/retrieveSchema.ts +8 -1
  42. package/src/types.ts +4 -0
package/src/types.ts CHANGED
@@ -67,6 +67,10 @@ export type Experimental_DefaultFormStateBehavior = {
67
67
  * - `skipDefaults`: Does not set defaults |
68
68
  */
69
69
  emptyObjectFields?: 'populateAllDefaults' | 'populateRequiredDefaults' | 'skipDefaults';
70
+ /**
71
+ * Optional flag to compute the default form state using allOf and if/then/else schemas. Defaults to `skipDefaults'.
72
+ */
73
+ allOf?: 'populateDefaults' | 'skipDefaults';
70
74
  };
71
75
 
72
76
  /** The interface representing a Date object that contains an optional time */