@jobber/components-native 0.75.0 → 0.75.1

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.
Files changed (77) hide show
  1. package/dist/package.json +2 -2
  2. package/dist/src/Disclosure/Disclosure.js +2 -2
  3. package/dist/src/Form/components/FormCache/FormCache.js +0 -2
  4. package/dist/src/FormatFile/components/_mocks/mockFiles.js +1 -1
  5. package/dist/src/Heading/Heading.js +2 -2
  6. package/dist/src/Text/Text.js +2 -2
  7. package/dist/src/Typography/Typography.js +2 -4
  8. package/dist/src/utils/test/wait.js +2 -2
  9. package/dist/tsconfig.tsbuildinfo +1 -1
  10. package/dist/types/src/ActionLabel/ActionLabel.d.ts +0 -1
  11. package/dist/types/src/ActivityIndicator/ActivityIndicator.d.ts +0 -1
  12. package/dist/types/src/AtlantisContext/AtlantisContext.d.ts +0 -1
  13. package/dist/types/src/AutoLink/AutoLink.d.ts +0 -1
  14. package/dist/types/src/AutoLink/components/ComposeTextWithLinks/ComposeTextWithLinks.d.ts +0 -1
  15. package/dist/types/src/AutoLink/components/Link/Link.d.ts +0 -1
  16. package/dist/types/src/Banner/Banner.d.ts +0 -1
  17. package/dist/types/src/Banner/components/BannerIcon/BannerIcon.d.ts +0 -1
  18. package/dist/types/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.d.ts +0 -1
  19. package/dist/types/src/Button/Button.d.ts +0 -1
  20. package/dist/types/src/ButtonGroup/ButtonGroup.d.ts +0 -1
  21. package/dist/types/src/ButtonGroup/ButtonGroupAction.d.ts +0 -1
  22. package/dist/types/src/Checkbox/Checkbox.d.ts +0 -1
  23. package/dist/types/src/Checkbox/CheckboxGroup.d.ts +0 -1
  24. package/dist/types/src/Chip/Chip.d.ts +0 -1
  25. package/dist/types/src/ContentOverlay/ContentOverlay.d.ts +3 -2
  26. package/dist/types/src/Divider/Divider.d.ts +0 -1
  27. package/dist/types/src/EmptyState/EmptyState.d.ts +0 -1
  28. package/dist/types/src/ErrorMessageWrapper/context/ErrorMessageContext.d.ts +0 -1
  29. package/dist/types/src/Form/Form.d.ts +0 -1
  30. package/dist/types/src/Form/components/FormActionBar/FormActionBar.d.ts +0 -1
  31. package/dist/types/src/Form/components/FormBody/FormBody.d.ts +0 -1
  32. package/dist/types/src/Form/components/FormCache/FormCache.d.ts +0 -1
  33. package/dist/types/src/Form/components/FormErrorBanner/FormErrorBanner.d.ts +0 -1
  34. package/dist/types/src/Form/components/FormMask/FormMask.d.ts +0 -1
  35. package/dist/types/src/Form/components/FormMessage/FormMessage.d.ts +0 -2
  36. package/dist/types/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.d.ts +0 -1
  37. package/dist/types/src/Form/components/FormMessageBanner/FormMessageBanner.d.ts +0 -1
  38. package/dist/types/src/Form/components/FormSaveButton/FormSaveButton.d.ts +0 -1
  39. package/dist/types/src/Form/context/AtlantisFormContext.d.ts +0 -1
  40. package/dist/types/src/FormatFile/FormatFile.d.ts +0 -1
  41. package/dist/types/src/FormatFile/components/ErrorIcon/ErrorIcon.d.ts +0 -1
  42. package/dist/types/src/FormatFile/components/FileView/FileView.d.ts +0 -1
  43. package/dist/types/src/FormatFile/components/MediaView/MediaView.d.ts +0 -1
  44. package/dist/types/src/FormatFile/components/ProgressBar/ProgressBar.d.ts +0 -2
  45. package/dist/types/src/FormatFile/components/_mocks/mockFiles.d.ts +4 -4
  46. package/dist/types/src/FormatFile/context/FormatFileContext.d.ts +0 -1
  47. package/dist/types/src/Glimmer/Glimmer.d.ts +0 -1
  48. package/dist/types/src/Heading/Heading.d.ts +0 -1
  49. package/dist/types/src/Icon/Icon.d.ts +0 -1
  50. package/dist/types/src/InputCurrency/InputCurrency.d.ts +0 -1
  51. package/dist/types/src/InputDate/InputDate.d.ts +0 -1
  52. package/dist/types/src/InputFieldWrapper/components/ClearAction/ClearAction.d.ts +0 -1
  53. package/dist/types/src/InputFieldWrapper/components/Prefix/Prefix.d.ts +0 -1
  54. package/dist/types/src/InputFieldWrapper/components/Suffix/Suffix.d.ts +0 -1
  55. package/dist/types/src/InputSearch/components/FilterButton.d.ts +0 -1
  56. package/dist/types/src/InputText/context/InputAccessoriesContext.d.ts +0 -1
  57. package/dist/types/src/InputTime/InputTime.d.ts +0 -1
  58. package/dist/types/src/Menu/Menu.d.ts +0 -1
  59. package/dist/types/src/Menu/components/MenuOption/MenuOption.d.ts +0 -1
  60. package/dist/types/src/Menu/components/Overlay/Overlay.d.ts +0 -1
  61. package/dist/types/src/Menu/types.d.ts +0 -1
  62. package/dist/types/src/ProgressBar/ProgressBar.d.ts +0 -1
  63. package/dist/types/src/ProgressBar/ProgressBarInner.d.ts +0 -1
  64. package/dist/types/src/ProgressBar/ProgressBarStepped.d.ts +0 -1
  65. package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.d.ts +0 -1
  66. package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.d.ts +0 -1
  67. package/dist/types/src/Select/components/SelectInternalPicker/SelectInternalPicker.d.ts +0 -1
  68. package/dist/types/src/Select/components/SelectPressable/SelectPressable.d.ts +0 -1
  69. package/dist/types/src/StatusLabel/StatusLabel.d.ts +0 -1
  70. package/dist/types/src/Switch/Switch.d.ts +0 -1
  71. package/dist/types/src/Switch/components/BaseSwitch/BaseSwitch.d.ts +0 -1
  72. package/dist/types/src/Text/Text.d.ts +0 -1
  73. package/dist/types/src/TextList/TextList.d.ts +0 -1
  74. package/dist/types/src/ThumbnailList/ThumbnailList.d.ts +0 -1
  75. package/dist/types/src/Toast/Toast.d.ts +0 -1
  76. package/package.json +2 -2
  77. package/src/Form/components/FormCache/FormCache.tsx +0 -2
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TextAlign, TextColor } from "../Typography";
3
2
  export type ActionLabelVariation = Extract<TextColor, "interactive" | "destructive" | "learning" | "subtle" | "onPrimary">;
4
3
  type ActionLabelType = "default" | "cardTitle";
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ActivityIndicatorProps } from "react-native";
3
2
  export declare function JobberActivityIndicator(props: ActivityIndicatorProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface AtlantisContextProps {
3
2
  /**
4
3
  * The date format Atlantis components would use
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { AutoLinkProps } from "./types";
3
2
  export declare function AutoLink({ children: text, bottomTabsVisible, selectable, ...rest }: AutoLinkProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ComposeTextWithLinksProps } from "../../types";
3
2
  export declare function ComposeTextWithLinks({ part, index, match, bottomTabsVisible, selectable, }: ComposeTextWithLinksProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface LinkProps {
3
2
  readonly children: string;
4
3
  readonly onPress: () => void;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { BannerProps } from "./types";
3
2
  export declare function Banner({ action, details, text, type, children, icon, }: BannerProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconNames } from "@jobber/design";
3
2
  import { BannerTypes } from "../../types";
4
3
  export interface BannerIconProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconColorNames, IconNames } from "@jobber/design";
3
2
  import { TextAlign } from "../../../Typography";
4
3
  export interface BottomSheetOptionProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconNames } from "@jobber/design";
3
2
  import { XOR } from "ts-xor";
4
3
  import { ButtonSize, ButtonType, ButtonVariation } from "./types";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ButtonGroupActionElement } from "./types";
3
2
  export interface ButtonGroupProps {
4
3
  readonly children: ButtonGroupActionElement | ButtonGroupActionElement[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconColorNames, IconNames } from "@jobber/design";
3
2
  import { ButtonType, ButtonVariation } from "../Button";
4
3
  export interface ButtonGroupActionProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { XOR } from "ts-xor";
3
2
  interface CommonCheckboxProps {
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { XOR } from "ts-xor";
3
2
  import { CheckboxProps } from "./Checkbox";
4
3
  import { CheckboxElement, CheckboxGroupState } from "./types";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AccessibilityRole } from "react-native";
3
2
  import { IconNames } from "@jobber/design";
4
3
  export type AccentType = "client" | "invoice" | "job" | "request" | "quote";
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
+ import { Modalize } from "react-native-modalize";
2
3
  import { ContentOverlayProps } from "./types";
3
4
  export declare const ContentOverlay: React.ForwardRefExoticComponent<ContentOverlayProps & React.RefAttributes<{
4
- open?: ((dest?: import("react-native-modalize/lib/options").TOpen | undefined) => void) | undefined;
5
- close?: ((dest?: import("react-native-modalize/lib/options").TClose | undefined) => void) | undefined;
5
+ open?: Modalize["open"];
6
+ close?: Modalize["close"];
6
7
  } | undefined>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface DividerProps {
3
2
  /**
4
3
  * The weight of the divider.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconColorNames, IconNames } from "@jobber/design";
3
2
  interface Action {
4
3
  label: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ErrorMessageContextProps } from "./types";
3
2
  export declare const ErrorMessageContext: import("react").Context<ErrorMessageContextProps>;
4
3
  export declare function useErrorMessageContext(): ErrorMessageContextProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldValues } from "react-hook-form";
3
2
  import { FormProps } from "./types";
4
3
  export declare function Form<T extends FieldValues, S>({ initialLoading, ...rest }: FormProps<T, S>): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SecondaryActionProp } from "../../types";
3
2
  export interface FormActionBarProps {
4
3
  readonly keyboardHeight: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormActionBarProps } from "../FormActionBar";
3
2
  interface FormBodyProps extends FormActionBarProps {
4
3
  readonly children: JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldValues } from "react-hook-form";
3
2
  interface FormCacheProps<T extends FieldValues> {
4
3
  readonly localCacheId?: string | string[];
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { FormBannerErrors } from "../../types";
3
2
  export declare function FormErrorBanner({ networkError, bannerError, }: FormBannerErrors): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function FormMask(): JSX.Element;
@@ -1,5 +1,3 @@
1
- /// <reference types="react" />
2
- /// <reference types="react" />
3
1
  import { EmptyStateProps } from "../../../EmptyState";
4
2
  type FormMessageData = EmptyStateProps;
5
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EmptyStateProps } from "../../../../../EmptyState";
3
2
  interface FormMessageProps {
4
3
  readonly data: EmptyStateProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormBannerMessage } from "../../types";
3
2
  interface FormMessageBannerProps {
4
3
  readonly bannerMessages?: FormBannerMessage[];
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { FormSaveButtonProps } from "../../types";
3
2
  export declare function FormSaveButton({ primaryAction, loading, label, secondaryActions, setSecondaryActionLoading, onOpenBottomSheet, onCloseBottomSheet, }: FormSaveButtonProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AtlantisFormContextProps } from "./types";
3
2
  export declare const atlantisFormContextDefaultValues: {
4
3
  useConfirmBeforeBack: () => import("react").MutableRefObject<() => undefined>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BottomSheetOptionsSuffix } from "./components/FormatFileBottomSheet";
3
2
  import { CreateThumbnail, File, FileUpload, FormattedFile } from "./types";
4
3
  export interface FormatFileProps<T> {
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function ErrorIcon(): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormattedFile } from "../../types";
3
2
  interface FileViewProps {
4
3
  readonly accessibilityLabel?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormattedFile } from "../../types";
3
2
  interface MediaViewProps {
4
3
  readonly accessibilityLabel?: string;
@@ -1,5 +1,3 @@
1
- /// <reference types="react" />
2
- /// <reference types="react" />
3
1
  import { StatusCode } from "../../types";
4
2
  interface ProgressBarProps {
5
3
  /**
@@ -1,16 +1,16 @@
1
1
  import { File, FileUpload, StatusCode } from "../../types";
2
2
  export declare const FILE_UPLOAD_MOCK_FILE: ({ progress, status, }: {
3
3
  progress: number;
4
- status?: StatusCode | undefined;
4
+ status?: StatusCode;
5
5
  }) => FileUpload;
6
6
  export declare const FILE_UPLOAD_MOCK_IMAGE: ({ progress, size, status, }: {
7
7
  progress: number;
8
- size?: number | undefined;
9
- status?: StatusCode | undefined;
8
+ size?: number;
9
+ status?: StatusCode;
10
10
  }) => FileUpload;
11
11
  export declare const FILE_UPLOAD_MOCK_PDF: ({ progress, status, }: {
12
12
  progress: number;
13
- status?: StatusCode | undefined;
13
+ status?: StatusCode;
14
14
  }) => FileUpload;
15
15
  export declare const FILE_MOCK_PDF: File;
16
16
  export declare const FILE_MOCK_VIDEO: File;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AtlantisFormatFileContextProps } from "./types";
3
2
  export declare const formatFileContextDefaultValues: {
4
3
  useCreateThumbnail: () => {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { sizeStyles } from "./Glimmer.size.style";
3
2
  import { shapeStyles } from "./Glimmer.shape.style";
4
3
  export type GlimmerShapes = keyof typeof shapeStyles;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TextAlign, TextColor, TruncateLength, TypographyProps } from "../Typography";
3
2
  type HeadingColor = Extract<TextColor, "text" | "subdued" | "heading">;
4
3
  export type HeadingLevel = "title" | "subtitle" | "heading" | "subHeading";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconColorNames, IconNames, IconSizes } from "@jobber/design";
3
2
  export interface IconProps {
4
3
  /** The icon to show. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormatNumberOptions } from "react-intl";
3
2
  import { ControllerRenderProps, FieldValues } from "react-hook-form";
4
3
  import { InputTextProps } from "../InputText";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UseControllerProps } from "react-hook-form";
3
2
  import { XOR } from "ts-xor";
4
3
  import { Clearable } from "@jobber/hooks";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ClearActionProps {
3
2
  /**
4
3
  * Press handler
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StyleProp, TextStyle, ViewStyle } from "react-native";
3
2
  import { IconNames } from "@jobber/design";
4
3
  export interface PrefixLabelProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StyleProp, TextStyle } from "react-native";
3
2
  import { IconNames } from "@jobber/design";
4
3
  export interface SuffixLabelProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface FilterButtonProps {
3
2
  readonly accessibilityLabel: string;
4
3
  readonly onClick: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputAccessoriesContextProps } from "./types";
3
2
  export declare const InputAccessoriesContext: import("react").Context<InputAccessoriesContextProps>;
4
3
  export declare function useInputAccessoriesContext(): InputAccessoriesContextProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UseControllerProps } from "react-hook-form";
3
2
  import { XOR } from "ts-xor";
4
3
  import { Clearable } from "@jobber/hooks";
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { MenuProps } from "./types";
3
2
  export declare function Menu({ menuOptions, customActivator }: MenuProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { MenuOptionInternalProps } from "../../types";
3
2
  export declare function MenuOption({ label, icon, iconColor, textAlign, destructive, textTransform, onPress, setOpen, }: MenuOptionInternalProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { OverlayProp } from "../../types";
3
2
  export declare function Overlay({ setOpen }: OverlayProp): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconColorNames, IconNames } from "@jobber/design";
3
2
  import { TextAlign } from "../Typography";
4
3
  export interface MenuOptionProps {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ProgressBarProps } from "./types";
3
2
  export declare function ProgressBar({ loading, total, current, inProgress, reverseTheme, header, variation, size, }: ProgressBarProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ProgressBarInnerProps {
3
2
  readonly width: number;
4
3
  readonly animationDuration?: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ProgressBarSteppedProps {
3
2
  readonly total: number;
4
3
  readonly current: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectInternalPickerProps } from "../../types";
3
2
  type SelectDefaultPickerProps = SelectInternalPickerProps;
4
3
  export declare function SelectDefaultPicker({ children, options, disabled, onChange, }: SelectDefaultPickerProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectInternalPickerProps } from "../../types";
3
2
  type SelectDefaultPickerProps = SelectInternalPickerProps;
4
3
  export declare function SelectDefaultPicker({ children, options, onChange, }: SelectDefaultPickerProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { SelectInternalPickerProps } from "../../types";
3
2
  export declare function SelectInternalPicker({ children, options, disabled, onChange, }: SelectInternalPickerProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PressableProps } from "react-native";
3
2
  import { SelectInternalPickerProps } from "../../types";
4
3
  type SelectPressableProps = Pick<SelectInternalPickerProps, "children"> & Pick<PressableProps, "onPress">;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type StatusType = "success" | "warning" | "critical" | "inactive" | "informative";
3
2
  export interface StatusLabelType {
4
3
  readonly statusLabel: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { XOR } from "ts-xor";
3
2
  import { BaseSwitchProps } from "./components/BaseSwitch";
4
3
  interface WithLabelProps extends BaseSwitchProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface BaseSwitchProps {
3
2
  /**
4
3
  * Value of the switch
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TextAlign, TextVariation, TruncateLength, TypographyProps } from "../Typography";
3
2
  interface TextProps extends Pick<TypographyProps<"base">, "maxFontScaleSize" | "selectable"> {
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Spacing } from "../Content";
3
2
  import { TextLevel } from "../Text";
4
3
  interface TextListProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ThumbnailListProps } from "./types";
3
2
  import { File } from "../FormatFile";
4
3
  export declare const filterImages: (files: File[]) => File[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ToastPosition } from "react-native-toast-message";
3
2
  export interface JobberToastProps {
4
3
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.75.0",
3
+ "version": "0.75.1",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -79,5 +79,5 @@
79
79
  "react-native-safe-area-context": "^4.5.2",
80
80
  "react-native-svg": ">=12.0.0"
81
81
  },
82
- "gitHead": "7347ac364b98158eacf3e455e02ad3475aae83a9"
82
+ "gitHead": "621a745c5403d89930eca6ab091bc64ad8c8f5e4"
83
83
  }
@@ -41,8 +41,6 @@ export function FormCache<T extends FieldValues>({
41
41
  // https://github.com/react-hook-form/react-hook-form/issues/2978
42
42
  setLocalCache(omit(formData, localCacheExclude));
43
43
  } else {
44
- // @ts-expect-error Typescript thinks that the FieldValues defined in useWatch is different
45
- // from the one in useFormContext
46
44
  setLocalCache(formData);
47
45
  }
48
46
  }, [formData, isDirty, localCacheExclude, setLocalCache, shouldExclude]);