@remirror/extension-heading
Advanced tools
Comparing version 0.0.0-pr920.1 to 0.0.0-pr922.1
@@ -55,2 +55,4 @@ 'use strict'; | ||
createNodeSpec(extra, override) { | ||
var _override$parseDOM; | ||
return _objectSpread(_objectSpread({ | ||
@@ -66,3 +68,3 @@ content: 'inline*', | ||
}), | ||
parseDOM: this.options.levels.map(level => ({ | ||
parseDOM: [...this.options.levels.map(level => ({ | ||
tag: "h".concat(level), | ||
@@ -72,3 +74,3 @@ getAttrs: element => _objectSpread(_objectSpread({}, extra.parse(element)), {}, { | ||
}) | ||
})), | ||
})), ...((_override$parseDOM = override.parseDOM) !== null && _override$parseDOM !== void 0 ? _override$parseDOM : [])], | ||
toDOM: node => { | ||
@@ -75,0 +77,0 @@ if (!this.options.levels.includes(node.attrs.level)) { |
@@ -51,2 +51,4 @@ import _createForOfIteratorHelper from '@babel/runtime/helpers/esm/createForOfIteratorHelper'; | ||
createNodeSpec(extra, override) { | ||
var _override$parseDOM; | ||
return _objectSpread(_objectSpread({ | ||
@@ -62,3 +64,3 @@ content: 'inline*', | ||
}), | ||
parseDOM: this.options.levels.map(level => ({ | ||
parseDOM: [...this.options.levels.map(level => ({ | ||
tag: "h".concat(level), | ||
@@ -68,3 +70,3 @@ getAttrs: element => _objectSpread(_objectSpread({}, extra.parse(element)), {}, { | ||
}) | ||
})), | ||
})), ...((_override$parseDOM = override.parseDOM) !== null && _override$parseDOM !== void 0 ? _override$parseDOM : [])], | ||
toDOM: node => { | ||
@@ -71,0 +73,0 @@ if (!this.options.levels.includes(node.attrs.level)) { |
@@ -55,2 +55,4 @@ 'use strict'; | ||
createNodeSpec(extra, override) { | ||
var _override$parseDOM; | ||
return _objectSpread(_objectSpread({ | ||
@@ -66,3 +68,3 @@ content: 'inline*', | ||
}), | ||
parseDOM: this.options.levels.map(level => ({ | ||
parseDOM: [...this.options.levels.map(level => ({ | ||
tag: "h".concat(level), | ||
@@ -72,3 +74,3 @@ getAttrs: element => _objectSpread(_objectSpread({}, extra.parse(element)), {}, { | ||
}) | ||
})), | ||
})), ...((_override$parseDOM = override.parseDOM) !== null && _override$parseDOM !== void 0 ? _override$parseDOM : [])], | ||
toDOM: node => { | ||
@@ -75,0 +77,0 @@ if (!this.options.levels.includes(node.attrs.level)) { |
@@ -55,2 +55,4 @@ 'use strict'; | ||
createNodeSpec(extra, override) { | ||
var _override$parseDOM; | ||
return _objectSpread(_objectSpread({ | ||
@@ -66,3 +68,3 @@ content: 'inline*', | ||
}), | ||
parseDOM: this.options.levels.map(level => ({ | ||
parseDOM: [...this.options.levels.map(level => ({ | ||
tag: "h".concat(level), | ||
@@ -72,3 +74,3 @@ getAttrs: element => _objectSpread(_objectSpread({}, extra.parse(element)), {}, { | ||
}) | ||
})), | ||
})), ...((_override$parseDOM = override.parseDOM) !== null && _override$parseDOM !== void 0 ? _override$parseDOM : [])], | ||
toDOM: node => { | ||
@@ -75,0 +77,0 @@ if (!this.options.levels.includes(node.attrs.level)) { |
@@ -51,2 +51,4 @@ import _createForOfIteratorHelper from '@babel/runtime/helpers/esm/createForOfIteratorHelper'; | ||
createNodeSpec(extra, override) { | ||
var _override$parseDOM; | ||
return _objectSpread(_objectSpread({ | ||
@@ -62,3 +64,3 @@ content: 'inline*', | ||
}), | ||
parseDOM: this.options.levels.map(level => ({ | ||
parseDOM: [...this.options.levels.map(level => ({ | ||
tag: "h".concat(level), | ||
@@ -68,3 +70,3 @@ getAttrs: element => _objectSpread(_objectSpread({}, extra.parse(element)), {}, { | ||
}) | ||
})), | ||
})), ...((_override$parseDOM = override.parseDOM) !== null && _override$parseDOM !== void 0 ? _override$parseDOM : [])], | ||
toDOM: node => { | ||
@@ -71,0 +73,0 @@ if (!this.options.levels.includes(node.attrs.level)) { |
{ | ||
"name": "@remirror/extension-heading", | ||
"version": "0.0.0-pr920.1", | ||
"version": "0.0.0-pr922.1", | ||
"description": "Add headings to your text editor.", | ||
@@ -39,10 +39,10 @@ "keywords": [ | ||
"@babel/runtime": "^7.13.10", | ||
"@remirror/core": "0.0.0-pr920.1", | ||
"@remirror/messages": "0.0.0-pr920.1" | ||
"@remirror/core": "0.0.0-pr922.1", | ||
"@remirror/messages": "0.0.0-pr922.1" | ||
}, | ||
"devDependencies": { | ||
"@remirror/pm": "0.0.0-pr920.1" | ||
"@remirror/pm": "0.0.0-pr922.1" | ||
}, | ||
"peerDependencies": { | ||
"@remirror/pm": "0.0.0-pr920.1" | ||
"@remirror/pm": "0.0.0-pr922.1" | ||
}, | ||
@@ -49,0 +49,0 @@ "publishConfig": { |
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
47557
751
+ Added@remirror/core@0.0.0-pr922.1(transitive)
+ Added@remirror/core-constants@0.0.0-pr922.1(transitive)
+ Added@remirror/core-helpers@0.0.0-pr922.1(transitive)
+ Added@remirror/core-types@0.0.0-pr922.1(transitive)
+ Added@remirror/core-utils@0.0.0-pr922.1(transitive)
+ Added@remirror/i18n@0.0.0-pr922.1(transitive)
+ Added@remirror/icons@0.0.0-pr922.1(transitive)
+ Added@remirror/messages@0.0.0-pr922.1(transitive)
+ Added@remirror/pm@0.0.0-pr922.1(transitive)
+ Added@remirror/theme@0.0.0-pr922.1(transitive)
+ Added@remirror/types@0.0.0-pr922.1(transitive)
+ Addedprosemirror-paste-rules@0.0.0-pr922.1(transitive)
+ Addedprosemirror-suggest@0.0.0-pr922.1(transitive)
+ Addedprosemirror-trailing-node@0.0.0-pr922.1(transitive)
+ Addedtype-fest@1.4.0(transitive)
- Removed@remirror/core@0.0.0-pr920.1(transitive)
- Removed@remirror/core-constants@0.0.0-pr920.1(transitive)
- Removed@remirror/core-helpers@0.0.0-pr920.1(transitive)
- Removed@remirror/core-types@0.0.0-pr920.1(transitive)
- Removed@remirror/core-utils@0.0.0-pr920.1(transitive)
- Removed@remirror/i18n@0.0.0-pr920.1(transitive)
- Removed@remirror/icons@0.0.0-pr920.1(transitive)
- Removed@remirror/messages@0.0.0-pr920.1(transitive)
- Removed@remirror/pm@0.0.0-pr920.1(transitive)
- Removed@remirror/theme@0.0.0-pr920.1(transitive)
- Removed@remirror/types@0.0.0-pr920.1(transitive)
- Removedprosemirror-paste-rules@0.0.0-pr920.1(transitive)
- Removedprosemirror-suggest@0.0.0-pr920.1(transitive)
- Removedprosemirror-trailing-node@0.0.0-pr920.1(transitive)
- Removedtype-fest@0.21.3(transitive)
Updated@remirror/core@0.0.0-pr922.1