Skip to content

Commit a0763c8

Browse files
chore: export util root APIs (#765)
* chore: export util root APIs * chore: remove PortalWrapper from main entry exports Co-authored-by: Cursor <cursoragent@cursor.com> * fix: export toArray options as ToArrayOptions from root entry Avoid generic Option name collision when importing from package root. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 510af7e commit a0763c8

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"react-is": "^18.2.0"
4343
},
4444
"devDependencies": {
45-
"@rc-component/father-plugin": "^2.0.1",
45+
"@rc-component/father-plugin": "^2.2.0",
4646
"@rc-component/np": "^1.0.3",
4747
"@testing-library/react": "^16.0.0",
4848
"@types/jest": "^30.0.0",

src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export {
2222
export { default as canUseDom } from './Dom/canUseDom';
2323
export { default as contains } from './Dom/contains';
2424
export { injectCSS, removeCSS, updateCSS } from './Dom/dynamicCSS';
25+
export type { Prepend } from './Dom/dynamicCSS';
2526
export { getDOM, isDOM } from './Dom/findDOMNode';
2627
export {
2728
getFocusNodeList,
@@ -46,13 +47,16 @@ export { default as pickAttrs } from './pickAttrs';
4647
export { default as proxyObject } from './proxyObject';
4748
export { default as raf } from './raf';
4849
export { default as toArray } from './Children/toArray';
50+
export type { Option as ToArrayOptions } from './Children/toArray';
4951
export { default as mergeProps } from './mergeProps';
5052

5153
export { default as get } from './utils/get';
5254
export { default as set, merge, mergeWith } from './utils/set';
5355

54-
export { default as warning, noteOnce } from './warning';
56+
export { default as warning, noteOnce, resetWarned } from './warning';
5557

5658
export { render, unmount } from './React/render';
59+
export { spyElementPrototype, spyElementPrototypes } from './test/domHook';
60+
export { default as Portal } from './Portal';
5761
export type { PortalProps, PortalRef } from './Portal';
5862
export type { GetContainer } from './PortalWrapper';

0 commit comments

Comments
 (0)