prosemirror-model
Advanced tools
Comparing version 1.18.2 to 1.18.3
@@ -0,1 +1,7 @@ | ||
## 1.18.3 (2022-11-18) | ||
### Bug fixes | ||
Copy all properties from the input spec to `Schema.spec`. | ||
## 1.18.2 (2022-11-14) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-model", | ||
"version": "1.18.2", | ||
"version": "1.18.3", | ||
"description": "ProseMirror's document model", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -535,7 +535,6 @@ import OrderedMap from "orderedmap" | ||
constructor(spec: SchemaSpec<Nodes, Marks>) { | ||
this.spec = { | ||
nodes: OrderedMap.from(spec.nodes), | ||
marks: OrderedMap.from(spec.marks || {}), | ||
topNode: spec.topNode | ||
} | ||
let instanceSpec = this.spec = {} as any | ||
for (let prop in spec) instanceSpec[prop] = (spec as any)[prop] | ||
instanceSpec.nodes = OrderedMap.from(spec.nodes), | ||
instanceSpec.marks = OrderedMap.from(spec.marks || {}), | ||
@@ -542,0 +541,0 @@ this.nodes = NodeType.compile(this.spec.nodes, this) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
445423
10923