11import {
2- createContext , useContext , useEffect , useId , useMemo , useState , type ReactNode ,
2+ createContext ,
3+ useContext ,
4+ useEffect ,
5+ useId ,
6+ useMemo ,
7+ useState ,
8+ type ReactNode ,
39} from "react" ;
410import isEqual from "lodash.isequal" ;
511import { useQuery } from "@tanstack/react-query" ;
@@ -14,7 +20,6 @@ import type {
1420 ConfiguredProps ,
1521 DynamicProps ,
1622 Observation ,
17- ObservationError ,
1823 ReloadPropsOpts ,
1924 ReloadPropsResponse ,
2025 Component ,
@@ -24,10 +29,16 @@ import { useFrontendClient } from "./frontend-client-context";
2429import type { ComponentFormProps } from "../components/ComponentForm" ;
2530import type { FormFieldContext } from "./form-field-context" ;
2631import {
27- appPropErrors , arrayPropErrors , booleanPropErrors , integerPropErrors ,
32+ appPropErrors ,
33+ arrayPropErrors ,
34+ booleanPropErrors ,
35+ integerPropErrors ,
2836 stringPropErrors ,
2937} from "../utils/component" ;
30- import { SdkError , ObservationErrorDetails } from "../types" ;
38+ import {
39+ SdkError ,
40+ ObservationErrorDetails ,
41+ } from "../types" ;
3142import { resolveUserId } from "../utils/resolve-user-id" ;
3243
3344export type AnyFormFieldContext = Omit < FormFieldContext < ConfigurableProp > , "onChange" > & {
@@ -371,7 +382,8 @@ export const FormContextProvider = <T extends ConfigurableProps>({
371382 const value = configuredProps [ prop . name as keyof ConfiguredProps < T > ] ;
372383 if ( value === undefined ) {
373384 if ( "default" in prop && prop . default != null ) {
374- newConfiguredProps [ prop . name as keyof ConfiguredProps < T > ] = prop . default as any ; // default may be loosely typed
385+ // default may be loosely typed
386+ newConfiguredProps [ prop . name as keyof ConfiguredProps < T > ] = prop . default as any ; // eslint-disable-line @typescript-eslint/no-explicit-any
375387 }
376388 } else {
377389 if ( prop . type === "integer" && typeof value !== "number" ) {
0 commit comments