@prosekit/core
Advanced tools
Comparing version 0.0.0-next-20240621205958 to 0.0.0-next-20240622120010
@@ -261,8 +261,8 @@ import { AllSelection } from '@prosekit/pm/state'; | ||
text: string; | ||
from?: number | undefined; | ||
to?: number | undefined; | ||
from?: number; | ||
to?: number; | ||
}]; | ||
insertNode: [options: { | ||
node: Node_2; | ||
pos?: number | undefined; | ||
pos?: number; | ||
type?: undefined; | ||
@@ -272,19 +272,19 @@ attrs?: undefined; | ||
node?: undefined; | ||
pos?: number | undefined; | ||
pos?: number; | ||
type: string; | ||
attrs?: Attrs_2 | undefined; | ||
attrs?: Attrs_2; | ||
}]; | ||
removeNode: [options: { | ||
type: string | NodeType_2; | ||
pos?: number | undefined; | ||
pos?: number; | ||
}]; | ||
wrap: [{ | ||
nodeType: NodeType_2; | ||
attrs?: Attrs_2 | null | undefined; | ||
attrs?: Attrs_2 | null; | ||
}]; | ||
setBlockType: [options: { | ||
type: string | NodeType_2; | ||
attrs?: Attrs_2 | null | undefined; | ||
from?: number | undefined; | ||
to?: number | undefined; | ||
type: NodeType_2 | string; | ||
attrs?: Attrs_2 | null; | ||
from?: number; | ||
to?: number; | ||
}]; | ||
@@ -294,3 +294,3 @@ setNodeAttrs: [options: { | ||
attrs: Attrs_2; | ||
pos?: number | undefined; | ||
pos?: number; | ||
}]; | ||
@@ -300,11 +300,11 @@ selectAll: []; | ||
type: string | MarkType_2; | ||
attrs?: Attrs_2 | null | undefined; | ||
from?: number | undefined; | ||
to?: number | undefined; | ||
attrs?: Attrs_2 | null; | ||
from?: number; | ||
to?: number; | ||
}]; | ||
removeMark: [options: { | ||
type: string | MarkType_2; | ||
attrs?: Attrs_2 | null | undefined; | ||
from?: number | undefined; | ||
to?: number | undefined; | ||
attrs?: Attrs_2 | null; | ||
from?: number; | ||
to?: number; | ||
}]; | ||
@@ -1687,3 +1687,3 @@ }; | ||
/** | ||
* @intneral | ||
* @internal | ||
*/ | ||
@@ -1690,0 +1690,0 @@ declare type SimplifyUnion<T> = Simplify<UnionToIntersection<T>>; |
@@ -361,2 +361,7 @@ // src/commands/add-mark.ts | ||
// src/utils/is-not-null.ts | ||
function isNotNull(value) { | ||
return value != null; | ||
} | ||
// src/facets/facet-node.ts | ||
@@ -437,3 +442,3 @@ function zip5(a, b, mapper) { | ||
if (this.facet.singleton) { | ||
let reducer = (_a = this.reducers)[_b = 2 /* default */] || (_a[_b] = this.facet.reducer), input = inputs.filter(Boolean).flat(); | ||
let reducer = (_a = this.reducers)[_b = 2 /* default */] || (_a[_b] = this.facet.reducer), input = inputs.filter(isNotNull).flat(); | ||
output[2 /* default */] = reducer(input); | ||
@@ -1139,7 +1144,2 @@ } else | ||
// src/utils/is-not-null.ts | ||
function isNotNull(value) { | ||
return value != null; | ||
} | ||
// src/extensions/node-spec.ts | ||
@@ -1146,0 +1146,0 @@ function defineNodeSpec(options) { |
{ | ||
"name": "@prosekit/core", | ||
"type": "module", | ||
"version": "0.0.0-next-20240621205958", | ||
"version": "0.0.0-next-20240622120010", | ||
"private": false, | ||
@@ -42,7 +42,7 @@ "author": { | ||
"type-fest": "^4.20.1", | ||
"@prosekit/pm": "^0.0.0-next-20240621205958" | ||
"@prosekit/pm": "^0.0.0-next-20240622120010" | ||
}, | ||
"devDependencies": { | ||
"tsup": "^8.1.0", | ||
"typescript": "^5.4.5", | ||
"typescript": "^5.5.2", | ||
"vitest": "^1.6.0", | ||
@@ -49,0 +49,0 @@ "@prosekit/dev": "0.0.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
122296