Files
klz-cables.com/.pnpm-store/v10/files/01/4b8e4c84173b9f12c2fbb824a20708dffdbfb557513db3f26ad47ab09dbd90bed6c2fb5326513a7a2353e1c1f536c701909a3f1d832aca1c93d22c17b202b7
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

19 lines
586 B
Plaintext

export function isSerializedLexicalEditor(value) {
return typeof value === 'object' && 'root' in value;
}
export function formatLexicalDocTitle(editorState, textContent) {
for (const node of editorState) {
if ('text' in node && node.text) {
textContent += node.text;
} else {
if (!('children' in node)) {
textContent += `[${node.type}]`;
}
}
if ('children' in node && node.children) {
textContent += formatLexicalDocTitle(node.children, textContent);
}
}
return textContent;
}
//# sourceMappingURL=formatLexicalDocTitle.js.map