@thanhpv102/easy-email-editor 4.19.0 → 4.19.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.
- package/lib/components/UI/Stack/utils/components.d.ts +3 -1
- package/lib/index.js +2423 -2409
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React, { JSX } from 'react';
|
|
2
|
-
export declare function wrapWithComponent<P extends any
|
|
2
|
+
export declare function wrapWithComponent<P extends Record<string, any>>(element: React.ReactNode | null | undefined, Component: React.FC<P>, props: P & {
|
|
3
|
+
key?: React.Key;
|
|
4
|
+
}): React.ReactNode;
|
|
3
5
|
export declare function isElementOfType<P>(element: React.ReactNode | null | undefined, Component: React.ComponentType<P> | React.ComponentType<P>[]): boolean;
|
|
4
6
|
export declare function elementChildren<T extends React.ReactElement>(children: React.ReactNode, predicate?: (element: T) => boolean): T[];
|
|
5
7
|
interface ConditionalWrapperProps {
|