diff --git a/package.json b/package.json index b3f59b92..b0ef13f0 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "react-is": "^18.2.0" }, "devDependencies": { - "@rc-component/father-plugin": "^2.0.1", + "@rc-component/father-plugin": "^2.2.0", "@rc-component/np": "^1.0.3", "@testing-library/react": "^16.0.0", "@types/jest": "^30.0.0", diff --git a/src/index.ts b/src/index.ts index ec2963a7..24c69d83 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,6 +22,7 @@ export { export { default as canUseDom } from './Dom/canUseDom'; export { default as contains } from './Dom/contains'; export { injectCSS, removeCSS, updateCSS } from './Dom/dynamicCSS'; +export type { Prepend } from './Dom/dynamicCSS'; export { getDOM, isDOM } from './Dom/findDOMNode'; export { getFocusNodeList, @@ -46,13 +47,16 @@ export { default as pickAttrs } from './pickAttrs'; export { default as proxyObject } from './proxyObject'; export { default as raf } from './raf'; export { default as toArray } from './Children/toArray'; +export type { Option as ToArrayOptions } from './Children/toArray'; export { default as mergeProps } from './mergeProps'; export { default as get } from './utils/get'; export { default as set, merge, mergeWith } from './utils/set'; -export { default as warning, noteOnce } from './warning'; +export { default as warning, noteOnce, resetWarned } from './warning'; export { render, unmount } from './React/render'; +export { spyElementPrototype, spyElementPrototypes } from './test/domHook'; +export { default as Portal } from './Portal'; export type { PortalProps, PortalRef } from './Portal'; export type { GetContainer } from './PortalWrapper';