@axdspub/axiom-ui-forms 0.3.17 → 0.3.18

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.
@@ -1,6 +1,6 @@
1
1
  import { GeoJSON } from 'geojson';
2
2
  import { JSONSchema6, JSONSchema6Type, JSONSchema6Definition } from 'json-schema';
3
- import React$1, { PropsWithChildren, ReactElement, ReactNode } from 'react';
3
+ import React$1, { ReactNode, ReactElement, PropsWithChildren } from 'react';
4
4
 
5
5
  interface IValueTypes {
6
6
  text: string;
@@ -395,17 +395,6 @@ declare namespace manipulators {
395
395
  export { manipulators_addFieldPath as addFieldPath, manipulators_assignDefaultValuesToFormValues as assignDefaultValuesToFormValues, manipulators_cleanAndUpdateFormValuesWithFieldValue as cleanAndUpdateFormValuesWithFieldValue, manipulators_cleanFormValuesLevel as cleanFormValuesLevel, manipulators_cleanUnusedDependenciesFromFormValues as cleanUnusedDependenciesFromFormValues, manipulators_cloneObject as cloneObject, manipulators_copyAndAddPathToFields as copyAndAddPathToFields, manipulators_copyAndRemovePathFromFields as copyAndRemovePathFromFields, manipulators_createOneOfMultipleField as createOneOfMultipleField, manipulators_updateFormValuesWithFieldValue as updateFormValuesWithFieldValue, manipulators_updateFormValuesWithFieldValueInPlace as updateFormValuesWithFieldValueInPlace };
396
396
  }
397
397
 
398
- interface IFormContextValue {
399
- form: IForm;
400
- formValues: IFormValues;
401
- setFormValues: (v: IFormValues) => void;
402
- inputOverrides?: Record<string, React$1.FC<IFieldInputProps>>;
403
- urlNavigable?: boolean;
404
- schema?: JSONSchema6;
405
- }
406
- declare const FormContextProvider: ({ children, ...props }: IFormContextValue & PropsWithChildren) => ReactElement;
407
- declare const useFormContext: () => IFormContextValue;
408
-
409
398
  interface IFormCreatorProps {
410
399
  form: IForm;
411
400
  schema?: JSONSchema6;
@@ -417,8 +406,12 @@ interface IFormCreatorProps {
417
406
  defaultClassName?: string;
418
407
  urlNavigable?: boolean;
419
408
  inputOverrides?: Record<string, React$1.FC<IFieldInputProps>>;
420
- Header?: React$1.FC<IFormContextValue> | ReactNode;
421
- Footer?: React$1.FC<IFormContextValue> | ReactNode;
409
+ Header?: React$1.FC<{
410
+ formValues: IFormValues;
411
+ }> | ReactNode;
412
+ Footer?: React$1.FC<{
413
+ formValues: IFormValues;
414
+ }> | ReactNode;
422
415
  }
423
416
  declare const SchemaFormCreator: ({ label, id, schema, formOverrides, formFieldOverrides, ...props }: Omit<IFormCreatorProps, "form"> & {
424
417
  id?: string;
@@ -522,6 +515,17 @@ declare namespace index {
522
515
  export { index_BooleanInput as BooleanInput, index_DateInput as DateInput, index_DateTimeInput as DateTimeInput, GeoJSONInputLoader as GeoJSONInput, JSONInputLoader as JSONInput, LongStringInput as LongTextInput, index_NumberInput as NumberInput, SingleSelectInput as SelectInput, StringInput as TextInput, index_TimeInput as TimeInput };
523
516
  }
524
517
 
518
+ interface IFormContextValue {
519
+ form: IForm;
520
+ formValues: IFormValues;
521
+ setFormValues: (v: IFormValues) => void;
522
+ inputOverrides?: Record<string, React$1.FC<IFieldInputProps>>;
523
+ urlNavigable?: boolean;
524
+ schema?: JSONSchema6;
525
+ }
526
+ declare const FormContextProvider: ({ children, ...props }: IFormContextValue & PropsWithChildren) => ReactElement;
527
+ declare const useFormContext: () => IFormContextValue;
528
+
525
529
  interface IFormSectionContextValue {
526
530
  activeId?: string;
527
531
  setActiveId: (v: string | undefined) => void;