From 54615c74230f6a9b09e96ffccf869982b0fdec0c Mon Sep 17 00:00:00 2001 From: r1tsuu Date: Fri, 12 Jul 2024 19:27:47 +0300 Subject: [PATCH] fix(better-localized-fields): breaking changes import --- .../src/components/LocalizedField/index.tsx | 2 +- .../better-localized-fields/src/utils/getSiblingDataByPath.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/better-localized-fields/src/components/LocalizedField/index.tsx b/packages/better-localized-fields/src/components/LocalizedField/index.tsx index 7e504c7..608563c 100644 --- a/packages/better-localized-fields/src/components/LocalizedField/index.tsx +++ b/packages/better-localized-fields/src/components/LocalizedField/index.tsx @@ -11,7 +11,7 @@ import { withCondition, } from '@payloadcms/ui'; import { FormContext, FormFieldsContext, FormWatchContext } from '@payloadcms/ui/forms/Form'; -import { reduceFieldsToValues } from '@payloadcms/ui/shared'; +import { reduceFieldsToValues } from 'payload/shared'; import type { ComponentProps, CSSProperties, ReactElement, ReactNode } from 'react'; import { cloneElement, useEffect, useState } from 'react'; diff --git a/packages/better-localized-fields/src/utils/getSiblingDataByPath.ts b/packages/better-localized-fields/src/utils/getSiblingDataByPath.ts index 886434b..37f13ab 100644 --- a/packages/better-localized-fields/src/utils/getSiblingDataByPath.ts +++ b/packages/better-localized-fields/src/utils/getSiblingDataByPath.ts @@ -1,9 +1,9 @@ /** Copy of ui/src/forms/Form/getSiblingData.ts as its not exported */ -import { reduceFieldsToValues } from '@payloadcms/ui/shared'; // @ts-expect-error package no types import flatleyImport from 'flatley'; import type { Data, FormState } from 'payload'; +import { reduceFieldsToValues } from 'payload/shared'; const { unflatten } = flatleyImport;