narraleaf-react 0.2.3 → 0.2.4-beta.2

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.
@@ -1,5 +1,5 @@
1
1
  import type { Background, color, CommonDisplayable } from "../../types";
2
- import type { DOMKeyframesDefinition } from "framer-motion";
2
+ import type { DOMKeyframesDefinition } from "motion/react";
3
3
  import { TransformDefinitions } from "./type";
4
4
  import Sequence = TransformDefinitions.Sequence;
5
5
  import SequenceProps = TransformDefinitions.SequenceProps;
@@ -1,6 +1,6 @@
1
1
  import { EventDispatcher } from "../../../../util/data";
2
2
  import { ElementProp, EventTypes, IImageTransition, ITransition } from "./type";
3
- import type { AnimationPlaybackControls, ValueAnimationTransition } from "framer-motion";
3
+ import type { AnimationPlaybackControls, ValueAnimationTransition } from "motion/react";
4
4
  import { ImageColor, ImageSrc } from "../../types";
5
5
  import { TransformDefinitions } from "../../common/types";
6
6
  export declare class BaseTransition<T extends ElementProp> implements ITransition<T> {
@@ -1,5 +1,4 @@
1
1
  import React, { ErrorInfo, ReactNode } from "react";
2
- import PropTypes from "prop-types";
3
2
  interface ErrorBoundaryProps {
4
3
  children: ReactNode;
5
4
  }
@@ -9,9 +8,6 @@ interface ErrorBoundaryState {
9
8
  errorInfo: ErrorInfo | null;
10
9
  }
11
10
  export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
12
- static propTypes: {
13
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
14
- };
15
11
  static getDerivedStateFromError(error: Error): {
16
12
  hasError: boolean;
17
13
  error: Error;
@@ -23,6 +19,6 @@ export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, E
23
19
  errorInfo: null;
24
20
  };
25
21
  componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
26
- render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
22
+ render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
27
23
  }
28
24
  export {};
@@ -1,8 +1,8 @@
1
1
  import React, { ReactNode } from "react";
2
- export default function Isolated({ children, className, props, style, $ref }: Readonly<{
2
+ export default function Isolated({ children, className, props, style, ref }: Readonly<{
3
3
  children: ReactNode;
4
4
  className?: string;
5
5
  props?: Record<any, any>;
6
6
  style?: React.CSSProperties;
7
- $ref?: React.RefObject<HTMLDivElement>;
7
+ ref?: React.RefObject<HTMLDivElement | null>;
8
8
  }>): React.JSX.Element;