Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,13 @@
"prepublishOnly": "npm run build"
},
"peerDependencies": {
"@kerebron/editor": ">=0.7.9",
"@kerebron/editor-kits": ">=0.7.9",
"@kerebron/wasm": ">=0.7.9",
"@kerebron/editor": ">=0.8.6",
"@kerebron/editor-kits": ">=0.8.6",
"@kerebron/extension-yjs": ">=0.8.6",
"@kerebron/wasm": ">=0.8.6",
"@mieweb/datavis": "=1.6.0",
"y-protocols": ">=1.0.6",
"yjs": ">=13.6.0",
"ag-grid-community": ">=32.0.0",
"ag-grid-react": ">=32.0.0",
"datavis-ace": "=4.1.0",
Expand All @@ -260,9 +263,18 @@
"@kerebron/editor-kits": {
"optional": true
},
"@kerebron/extension-yjs": {
"optional": true
},
"@kerebron/wasm": {
"optional": true
},
"y-protocols": {
"optional": true
},
"yjs": {
"optional": true
},
"@mieweb/datavis": {
"optional": true
},
Expand Down Expand Up @@ -341,9 +353,10 @@
"@esheet/fields": "0.0.3",
"@esheet/renderer": "0.0.3",
"@eslint/js": "^9.39.3",
"@kerebron/editor": "0.7.9",
"@kerebron/editor-kits": "0.7.9",
"@kerebron/wasm": "0.7.9",
"@kerebron/editor": "^0.8.6",
"@kerebron/editor-kits": "^0.8.6",
"@kerebron/extension-yjs": "^0.8.6",
"@kerebron/wasm": "^0.8.6",
"@mieweb/datavis": "=1.6.0",
"@monaco-editor/react": "^4.7.0",
"@playwright/test": "^1.58.2",
Expand Down Expand Up @@ -414,7 +427,9 @@
"vite": "^7.3.2",
"vitest": "^3.2.6",
"wavesurfer.js": "^7.12.1",
"y-protocols": "^1.0.6",
"ychart": "file:./packages/ychart",
"yjs": "^13.6.30",
"zod": "^4.4.3",
"zustand": "^5.0.14"
},
Expand Down
30 changes: 30 additions & 0 deletions patches/@kerebron__extension-codecrock@0.8.9.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
diff --git a/esm/CodeCrock.js b/esm/CodeCrock.js
index 0daa11c6652a20d9bbd88903d57e67fe456d3f58..73ac9289797951c1901337f8cb062b4adec637f7 100644
--- a/esm/CodeCrock.js
+++ b/esm/CodeCrock.js
@@ -457,7 +457,11 @@ export class CodeCrock extends EventTarget {
if (typeof root.getSelection === 'function') {
return root.getSelection();
}
- return this.options.window.getSelection();
+ // `options.window` defaults to dnt's globalThis merge-proxy; invoking
+ // a native method with the proxy as `this` throws "Illegal invocation"
+ // (hit when the editor is detached during nodeview init). Call through
+ // the real document instead.
+ return this.options.window.document.getSelection();
}
uneditable(node) {
while (node && node !== this.editor) {
diff --git a/esm/NodeViewCodeCrock.js b/esm/NodeViewCodeCrock.js
index 9cb8fb023291070b9269e3b19b5e01e78dd13e86..1d4237fcb7d3a931eb9a32bbe44adefcd732dd3e 100644
--- a/esm/NodeViewCodeCrock.js
+++ b/esm/NodeViewCodeCrock.js
@@ -144,6 +144,8 @@ export class NodeViewCodeCrock {
addLanguageDropDown() {
const select = document.createElement('select');
select.classList.add('codecrock-select');
+ // Accessible name for the language picker (axe: select-name).
+ select.setAttribute('aria-label', 'Code language');
for (const lang of [''].concat(this.config.languageWhitelist || [])) {
const option = document.createElement('option');
option.value = lang;
Loading
Loading