@opengeoweb/form-fields 9.32.1 → 9.34.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": "@opengeoweb/form-fields",
3
- "version": "9.32.1",
3
+ "version": "9.34.0",
4
4
  "description": "GeoWeb form-fields library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -1,8 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { SelectProps } from '@mui/material';
3
3
  import { ReactHookFormInput } from './types';
4
- type ReactHookFormSelectProps = Partial<SelectProps> & ReactHookFormInput<{
5
- onChange?: (value: React.ChangeEvent<HTMLInputElement>) => void;
6
- }>;
4
+ type ReactHookFormSelectProps = Partial<SelectProps> & ReactHookFormInput<object>;
7
5
  declare const ReactHookFormSelect: React.FC<ReactHookFormSelectProps>;
8
6
  export default ReactHookFormSelect;
@@ -1,3 +1,3 @@
1
1
  import { FieldErrors } from 'react-hook-form';
2
- export declare function getDeepProperty<I>(p: string[], o: I): I;
3
- export declare const getErrors: (name: string, errors: FieldErrors) => FieldErrors;
2
+ export declare function getDeepProperty<I>(p: string[], o: I): I | null;
3
+ export declare const getErrors: (name: string, errors: FieldErrors) => FieldErrors | undefined;
@@ -1,6 +1,7 @@
1
1
  import i18n from 'i18next';
2
2
  import { UseTranslationResponse } from 'react-i18next';
3
3
  export declare const FORM_FIELDS_NAMESPACE = "form-fields";
4
+ export declare const initFormFieldsI18n: () => void;
4
5
  export declare const translateKeyOutsideComponents: (key: string, params?: Record<string, string | number> | undefined) => string;
5
6
  export declare const useFormFieldsTranslation: () => UseTranslationResponse<typeof FORM_FIELDS_NAMESPACE, typeof i18n>;
6
7
  export { i18n };