Skip to content

Commit

Permalink
chore: Lock file maintenance (Milkdown#1589)
Browse files Browse the repository at this point in the history
* chore: Lock file maintenance

* chore: fix

* chore: fix

* chore: remove cypress

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mirone <Saul-Mirone@outlook.com>
  • Loading branch information
renovate[bot] and Saul-Mirone authored Dec 16, 2024
1 parent eb316c9 commit 21a318c
Show file tree
Hide file tree
Showing 8 changed files with 3,330 additions and 5,840 deletions.
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm exec commitlint --edit $1
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"autoprefixer": "^10.2.5",
"concurrently": "^9.0.0",
"cross-env": "^7.0.3",
"cypress": "^13.13.0",
"esbuild": "^0.24.0",
"git-cz": "^4.7.6",
"husky": "^9.0.10",
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/table-block/view/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type {
EditorView,
NodeView,
NodeViewConstructor,
ViewMutationRecord,
} from '@milkdown/prose/view'
import type { Ctx } from '@milkdown/ctx'
import { NodeSelection } from '@milkdown/prose/state'
Expand Down Expand Up @@ -106,7 +107,7 @@ export class TableNodeView implements NodeView {
return false
}

ignoreMutation(mutation: MutationRecord) {
ignoreMutation(mutation: ViewMutationRecord) {
if (!this.dom || !this.contentDOM) return true

if ((mutation.type as unknown) === 'selection') return false
Expand Down
4 changes: 2 additions & 2 deletions packages/crepe/src/feature/block-edit/handle/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import type { Icon } from '../../shared'
export interface BlockHandleProps {
show: boolean
onAdd: () => void
addIcon: Icon
handleIcon: Icon
addIcon?: Icon
handleIcon?: Icon
}

const blockHandleComponent: Component<BlockHandleProps> = ({
Expand Down
1 change: 0 additions & 1 deletion packages/plugins/plugin-diagram/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"dependencies": {
"@milkdown/exception": "workspace:*",
"@milkdown/utils": "workspace:*",
"@types/dompurify": "^3.0.0",
"mermaid": "^10.9.0",
"nanoid": "^5.0.0",
"tslib": "^2.5.0",
Expand Down
6 changes: 4 additions & 2 deletions packages/prose/src/toolkit/input-rules/custom-input-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ function run(
'\uFFFC'
) + text
for (let i = 0; i < rules.length; i++) {
const match = (rules[i] as { match: RegExp }).match.exec(textBefore)
const match = (rules[i] as unknown as { match: RegExp }).match.exec(
textBefore
)
const tr =
match &&
match[0] &&
(
rules[i] as {
rules[i] as unknown as {
handler: (
state: EditorState,
match: string[],
Expand Down
Loading

0 comments on commit 21a318c

Please sign in to comment.