Skip to content

Commit

Permalink
chore: update snabbdom 3.6 (#545)
Browse files Browse the repository at this point in the history
Co-authored-by: deyun <[email protected]>
Co-authored-by: cycleccc <[email protected]>
  • Loading branch information
3 people authored Feb 25, 2025
1 parent e291697 commit 826d9c3
Show file tree
Hide file tree
Showing 15 changed files with 36 additions and 23 deletions.
13 changes: 13 additions & 0 deletions packages/basic-modules/__tests__/color/color-menus.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@ import { preNode } from '../../../code-highlight/__tests__/content'
import BgColorMenu from '../../src/modules/color/menu/BgColorMenu'
import ColorMenu from '../../src/modules/color/menu/ColorMenu'

// jsdom 不支持 getClientRects https://github.com/jsdom/jsdom/issues/3729
document.createRange = () => {
const range = new Range();
range.getClientRects = () => ({
item: () => null,
length: 0,
[Symbol.iterator]: function *() {
yield* [];
},
});
return range;
};

describe('color menus', () => {
let editor: any
let startLocation: any
Expand Down
2 changes: 1 addition & 1 deletion packages/basic-modules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"lodash.throttle": "^4.1.1",
"nanoid": "^5.0.0",
"slate": "^0.72.0",
"snabbdom": "^3.1.0"
"snabbdom": "^3.6.0"
},
"dependencies": {
"is-url": "^1.2.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/code-highlight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@wangeditor-next/core": "1.7.32",
"dom7": "^3.0.0 || ^4.0.0",
"slate": "^0.72.0",
"snabbdom": "^3.1.0"
"snabbdom": "^3.6.0"
},
"dependencies": {
"prismjs": "^1.23.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"lodash.toarray": "^4.4.0",
"nanoid": "^5.0.0",
"slate": "^0.72.0",
"snabbdom": "^3.1.0"
"snabbdom": "^3.6.0"
},
"dependencies": {
"@types/event-emitter": "^0.3.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@
"lodash.toarray": "^4.4.0",
"nanoid": "^5.0.0",
"slate": "^0.72.0",
"snabbdom": "^3.1.0"
"snabbdom": "^3.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/list-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"@wangeditor-next/core": "1.7.32",
"dom7": "^3.0.0 || ^4.0.0",
"slate": "^0.72.0",
"snabbdom": "^3.1.0"
"snabbdom": "^3.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-float-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
"@wangeditor-next/editor": "5.6.31",
"dom7": "^3.0.0 || ^4.0.0",
"slate": "^0.72.0",
"snabbdom": "^3.1.0"
"snabbdom": "^3.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-formula/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"peerDependencies": {
"@wangeditor-next/editor": "5.6.31",
"katex": "^0.16.0",
"snabbdom": "^3.1.0"
"snabbdom": "^3.6.0"
},
"dependencies": {
"dom7": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-link-card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
"@wangeditor-next/editor": "5.6.31",
"dom7": "^3.0.0 || ^4.0.0",
"slate": "^0.72.0",
"snabbdom": "^3.1.0"
"snabbdom": "^3.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
"@wangeditor-next/editor": "5.6.31",
"dom7": "^3.0.0 || ^4.0.0",
"slate": "^0.72.0",
"snabbdom": "^3.1.0"
"snabbdom": "^3.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-mention/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
},
"peerDependencies": {
"@wangeditor-next/editor": "5.6.31",
"snabbdom": "^3.1.0"
"snabbdom": "^3.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/table-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@
"lodash.throttle": "^4.1.1",
"nanoid": "^5.0.0",
"slate": "^0.72.0",
"snabbdom": "^3.1.0"
"snabbdom": "^3.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/upload-image-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@
"dom7": "^3.0.0 || ^4.0.0",
"lodash.foreach": "^4.5.0",
"slate": "^0.72.0",
"snabbdom": "^3.1.0"
"snabbdom": "^3.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/video-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
"dom7": "^3.0.0 || ^4.0.0",
"nanoid": "^5.0.0",
"slate": "^0.72.0",
"snabbdom": "^3.1.0"
"snabbdom": "^3.6.0"
}
}
20 changes: 10 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3537,7 +3537,7 @@ __metadata:
"@wangeditor-next/core": 1.7.32
dom7: ^3.0.0 || ^4.0.0
slate: ^0.72.0
snabbdom: ^3.1.0
snabbdom: ^3.6.0
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -3566,7 +3566,7 @@ __metadata:
lodash.toarray: ^4.4.0
nanoid: ^5.0.0
slate: ^0.72.0
snabbdom: ^3.1.0
snabbdom: ^3.6.0
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -3619,7 +3619,7 @@ __metadata:
"@wangeditor-next/core": 1.7.32
dom7: ^3.0.0 || ^4.0.0
slate: ^0.72.0
snabbdom: ^3.1.0
snabbdom: ^3.6.0
languageName: unknown
linkType: soft

Expand All @@ -3630,7 +3630,7 @@ __metadata:
"@wangeditor-next/editor": 5.6.31
dom7: ^3.0.0 || ^4.0.0
slate: ^0.72.0
snabbdom: ^3.1.0
snabbdom: ^3.6.0
languageName: unknown
linkType: soft

Expand All @@ -3644,7 +3644,7 @@ __metadata:
peerDependencies:
"@wangeditor-next/editor": 5.6.31
katex: ^0.16.0
snabbdom: ^3.1.0
snabbdom: ^3.6.0
languageName: unknown
linkType: soft

Expand All @@ -3655,7 +3655,7 @@ __metadata:
"@wangeditor-next/editor": 5.6.31
dom7: ^3.0.0 || ^4.0.0
slate: ^0.72.0
snabbdom: ^3.1.0
snabbdom: ^3.6.0
languageName: unknown
linkType: soft

Expand All @@ -3666,7 +3666,7 @@ __metadata:
"@wangeditor-next/editor": 5.6.31
dom7: ^3.0.0 || ^4.0.0
slate: ^0.72.0
snabbdom: ^3.1.0
snabbdom: ^3.6.0
languageName: unknown
linkType: soft

Expand All @@ -3675,7 +3675,7 @@ __metadata:
resolution: "@wangeditor-next/plugin-mention@workspace:packages/plugin-mention"
peerDependencies:
"@wangeditor-next/editor": 5.6.31
snabbdom: ^3.1.0
snabbdom: ^3.6.0
languageName: unknown
linkType: soft

Expand All @@ -3690,7 +3690,7 @@ __metadata:
lodash.throttle: ^4.1.1
nanoid: ^5.0.0
slate: ^0.72.0
snabbdom: ^3.1.0
snabbdom: ^3.6.0
languageName: unknown
linkType: soft

Expand All @@ -3705,7 +3705,7 @@ __metadata:
dom7: ^3.0.0 || ^4.0.0
lodash.foreach: ^4.5.0
slate: ^0.72.0
snabbdom: ^3.1.0
snabbdom: ^3.6.0
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 826d9c3

Please sign in to comment.