@ceed/cds 1.40.3-next.6 → 1.40.3-next.7
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/dist/components/DataTable/utils.d.ts +6 -0
- package/dist/index.browser.js +6 -6
- package/dist/index.browser.js.map +3 -3
- package/dist/index.cjs +23 -11
- package/dist/index.js +151 -139
- package/dist/libs/slot-props.d.ts +2 -2
- package/framer/index.js +1 -1
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ export declare function useMergedRef<T>(a: React.Ref<T> | undefined, b: React.Re
|
|
|
16
16
|
* Joy의 slotProps 값은 객체이거나 ownerState를 받는 함수라 두 형태를 모두 보존한다.
|
|
17
17
|
* 호출자가 이미 슬롯에 ref를 넘겼다면 덮어쓰지 않고 합친다.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
20
|
-
* 새 객체를 돌려주므로
|
|
19
|
+
* 두 형태 모두 ref identity를 고정한다. 객체 형태는 `useMergedRef`로, 함수 형태는 Joy가 렌더마다 다시 호출해
|
|
20
|
+
* 새 객체를 돌려주므로 최신 슬롯 ref만 box에 담고 콜백 하나를 재사용한다.
|
|
21
21
|
*/
|
|
22
22
|
export declare function useSlotRef<S>(slotProp: S, ref: React.Ref<any>): S;
|