From 4d9da354264b9df0302222efac50392051f9ecaf Mon Sep 17 00:00:00 2001 From: "EP\\qang2" Date: Fri, 19 Jul 2024 16:24:49 +0700 Subject: [PATCH] Fix import for ElementDependencies --- src/@episerver/forms-react/src/context/reducer.ts | 6 +++--- src/@episerver/forms-sdk/src/helpers/initFormState.ts | 3 +-- src/@episerver/forms-sdk/src/models/states/index.ts | 3 ++- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/@episerver/forms-react/src/context/reducer.ts b/src/@episerver/forms-react/src/context/reducer.ts index 723f691..37416e9 100644 --- a/src/@episerver/forms-react/src/context/reducer.ts +++ b/src/@episerver/forms-react/src/context/reducer.ts @@ -1,9 +1,9 @@ import { equals, FormState, FormSubmission, - FormValidationResult, - StepDependencies} from "@episerver/forms-sdk"; -import { ElementDependencies } from "@episerver/forms-sdk/dist/models/states/ElementDependencies"; + FormValidationResult, + ElementDependencies } from "@episerver/forms-sdk"; + export enum ActionType { UpdateValue = "UpdateValue", diff --git a/src/@episerver/forms-sdk/src/helpers/initFormState.ts b/src/@episerver/forms-sdk/src/helpers/initFormState.ts index 8deba3b..1d9ea6e 100644 --- a/src/@episerver/forms-sdk/src/helpers/initFormState.ts +++ b/src/@episerver/forms-sdk/src/helpers/initFormState.ts @@ -1,10 +1,9 @@ import { FormCache } from "../form-cache"; import { StepHelper } from "./stepHelper"; import { FormStorage } from "../form-storage"; -import { FormConstants, FormContainer, FormState, FormSubmission, FormValidationResult, StepDependencies } from "../models"; +import { ElementDependencies, FormConstants, FormContainer, FormState, FormSubmission, FormValidationResult, StepDependencies } from "../models"; import { getDefaultValue } from "./elementHelper"; import { equals, isNullOrEmpty } from "./utils"; -import { ElementDependencies } from "../models/states/ElementDependencies"; /** * Function to initialize FormState object diff --git a/src/@episerver/forms-sdk/src/models/states/index.ts b/src/@episerver/forms-sdk/src/models/states/index.ts index 325f493..2024315 100644 --- a/src/@episerver/forms-sdk/src/models/states/index.ts +++ b/src/@episerver/forms-sdk/src/models/states/index.ts @@ -1,4 +1,5 @@ export * from "./FormState"; export * from "./FormSubmission"; export * from "./FormValidation"; -export * from "./StepDependencies"; \ No newline at end of file +export * from "./StepDependencies"; +export * from "./ElementDependencies"; \ No newline at end of file