mirror of
https://github.com/penpot/penpot.git
synced 2026-07-27 00:18:17 +00:00
Clamp selection offset to node length in setDraftEditorSelection to prevent DOMException when Draft.js SelectionState offset exceeds the actual DOM text node length. This can happen during spellcheck, IME composition, or race conditions during React re-renders. Updates @penpot/draft-js to commit 09a33e0a which includes the fix in addPointToSelection and addFocusToSelection. Fixes #10607 AI-assisted-by: mimo-v2.5-pro
22 lines
631 B
JSON
22 lines
631 B
JSON
{
|
|
"name": "@penpot/draft-js",
|
|
"version": "1.0.0",
|
|
"description": "Penpot Draft-JS Wrapper",
|
|
"main": "index.js",
|
|
"type": "module",
|
|
"packageManager": "pnpm@11.9.0+sha512.bd682d5d03fe525ef7c9fd6780c6884d1e756ac4c9c9fe00c538782824310dcf90e3ddc4f53835f06dfaebd5085e41855e0bcbb3b60de2ac5bbab89e5036f03b",
|
|
"author": "Andrey Antukh",
|
|
"license": "MPL-2.0",
|
|
"dependencies": {
|
|
"draft-js": "penpot/draft-js.git#ba3b26ed63a01227a3560e440531b69d79c03f35",
|
|
"immutable": "^5.1.9"
|
|
},
|
|
"peerDependencies": {
|
|
"react": ">=0.17.0",
|
|
"react-dom": ">=0.17.0"
|
|
},
|
|
"devDependencies": {
|
|
"esbuild": "^0.28.1"
|
|
}
|
|
}
|