File tree 8 files changed +3330
-5840
lines changed
components/src/table-block/view
crepe/src/feature/block-edit/handle
prose/src/toolkit/input-rules
8 files changed +3330
-5840
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/sh
2
- . " $( dirname " $0 " ) /_/husky.sh"
3
-
4
1
pnpm exec commitlint --edit $1
Original file line number Diff line number Diff line change 56
56
"autoprefixer" : " ^10.2.5" ,
57
57
"concurrently" : " ^9.0.0" ,
58
58
"cross-env" : " ^7.0.3" ,
59
- "cypress" : " ^13.13.0" ,
60
59
"esbuild" : " ^0.24.0" ,
61
60
"git-cz" : " ^4.7.6" ,
62
61
"husky" : " ^9.0.10" ,
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import type {
5
5
EditorView ,
6
6
NodeView ,
7
7
NodeViewConstructor ,
8
+ ViewMutationRecord ,
8
9
} from '@milkdown/prose/view'
9
10
import type { Ctx } from '@milkdown/ctx'
10
11
import { NodeSelection } from '@milkdown/prose/state'
@@ -106,7 +107,7 @@ export class TableNodeView implements NodeView {
106
107
return false
107
108
}
108
109
109
- ignoreMutation ( mutation : MutationRecord ) {
110
+ ignoreMutation ( mutation : ViewMutationRecord ) {
110
111
if ( ! this . dom || ! this . contentDOM ) return true
111
112
112
113
if ( ( mutation . type as unknown ) === 'selection' ) return false
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import type { Icon } from '../../shared'
5
5
export interface BlockHandleProps {
6
6
show : boolean
7
7
onAdd : ( ) => void
8
- addIcon : Icon
9
- handleIcon : Icon
8
+ addIcon ? : Icon
9
+ handleIcon ? : Icon
10
10
}
11
11
12
12
const blockHandleComponent : Component < BlockHandleProps > = ( {
Original file line number Diff line number Diff line change 50
50
"dependencies" : {
51
51
"@milkdown/exception" : " workspace:*" ,
52
52
"@milkdown/utils" : " workspace:*" ,
53
- "@types/dompurify" : " ^3.0.0" ,
54
53
"mermaid" : " ^10.9.0" ,
55
54
"nanoid" : " ^5.0.0" ,
56
55
"tslib" : " ^2.5.0" ,
Original file line number Diff line number Diff line change @@ -23,12 +23,14 @@ function run(
23
23
'\uFFFC'
24
24
) + text
25
25
for ( let i = 0 ; i < rules . length ; i ++ ) {
26
- const match = ( rules [ i ] as { match : RegExp } ) . match . exec ( textBefore )
26
+ const match = ( rules [ i ] as unknown as { match : RegExp } ) . match . exec (
27
+ textBefore
28
+ )
27
29
const tr =
28
30
match &&
29
31
match [ 0 ] &&
30
32
(
31
- rules [ i ] as {
33
+ rules [ i ] as unknown as {
32
34
handler : (
33
35
state : EditorState ,
34
36
match : string [ ] ,
You can’t perform that action at this time.
0 commit comments