feat(insights): fix DBSCAN, Persian embeddings crash, D3 physics layouts, and D3 node not found runtime error
Some checks failed
CI / Lint, Test & Build (push) Failing after 1m7s
CI / Deploy production (on server) (push) Has been skipped

This commit is contained in:
Antigravity
2026-05-24 18:57:33 +00:00
parent e2672cd2c2
commit e881004c77
63 changed files with 5729 additions and 563 deletions

View File

@@ -0,0 +1,46 @@
import { Extension } from '@tiptap/core'
/** Préserve dir/lang sur les blocs HTML (contenus clippés persan/arabe). */
export const RtlPreserveExtension = Extension.create({
name: 'rtlPreserve',
addGlobalAttributes() {
return [
{
types: [
'paragraph',
'heading',
'blockquote',
'listItem',
'bulletList',
'orderedList',
],
attributes: {
dir: {
default: null,
parseHTML: (element) => element.getAttribute('dir'),
renderHTML: (attributes) => {
if (!attributes.dir) return {}
return { dir: attributes.dir }
},
},
lang: {
default: null,
parseHTML: (element) => element.getAttribute('lang'),
renderHTML: (attributes) => {
if (!attributes.lang) return {}
return { lang: attributes.lang }
},
},
class: {
default: null,
parseHTML: (element) => element.getAttribute('class'),
renderHTML: (attributes) => {
if (!attributes.class) return {}
return { class: attributes.class }
},
},
},
},
]
},
})