diff --git a/src/hooks/useStyleRegister.tsx b/src/hooks/useStyleRegister.tsx index 0dc2d1f..ce8de15 100644 --- a/src/hooks/useStyleRegister.tsx +++ b/src/hooks/useStyleRegister.tsx @@ -483,3 +483,25 @@ export function extractStyle(cache: Cache) { return styleText; } + +export function extractStyleNode(cache: Cache) { + const styleKeys = Array.from(cache.cache.keys()).filter((key) => + key.startsWith('style%'), + ); + + return styleKeys.map((key) => { + const [styleStr, tokenKey, styleId]: [string, string, string] = + cache.cache.get(key)![1]; + + return ( +