@remirror/extension-heading
Advanced tools
Comparing version 1.0.0-next.13 to 1.0.0-next.15
# @remirror/extension-heading | ||
## 1.0.0-next.15 | ||
> 2020-07-31 | ||
### Minor Changes | ||
- 44516da4: Support `chained` commands and multiple command updates in controlled editors. | ||
Fixes #418 | ||
### Patch Changes | ||
- Updated dependencies [cdc5b801] | ||
- Updated dependencies [44516da4] | ||
- Updated dependencies [e5ea0c84] | ||
- Updated dependencies [a404f5a1] | ||
- Updated dependencies [6c3b278b] | ||
- @remirror/core@1.0.0-next.15 | ||
## 1.0.0-next.13 | ||
@@ -4,0 +23,0 @@ |
@@ -9,3 +9,2 @@ 'use strict'; | ||
var core = require('@remirror/core'); | ||
var commands = require('@remirror/pm/commands'); | ||
var inputrules = require('@remirror/pm/inputrules'); | ||
@@ -79,5 +78,5 @@ | ||
this.options.levels.forEach(level => { | ||
keys["Shift-Ctrl-".concat(level)] = core.convertCommand(commands.setBlockType(this.type, { | ||
keys["Shift-Ctrl-".concat(level)] = core.setBlockType(this.type, { | ||
level | ||
})); | ||
}); | ||
}); | ||
@@ -84,0 +83,0 @@ return keys; |
@@ -11,3 +11,3 @@ "use strict"; | ||
var _dec, _class, _defineProperty = _interopDefault(require("@babel/runtime/helpers/defineProperty")), core = require("@remirror/core"), commands = require("@remirror/pm/commands"), inputrules = require("@remirror/pm/inputrules"); | ||
var _dec, _class, _defineProperty = _interopDefault(require("@babel/runtime/helpers/defineProperty")), core = require("@remirror/core"), inputrules = require("@remirror/pm/inputrules"); | ||
@@ -83,5 +83,5 @@ function ownKeys(object, enumerableOnly) { | ||
return this.options.levels.forEach(level => { | ||
keys["Shift-Ctrl-".concat(level)] = core.convertCommand(commands.setBlockType(this.type, { | ||
keys["Shift-Ctrl-".concat(level)] = core.setBlockType(this.type, { | ||
level: level | ||
})); | ||
}); | ||
}), keys; | ||
@@ -88,0 +88,0 @@ } |
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty'; | ||
import { NodeExtension, NodeGroup, toggleBlockItem, object, convertCommand, extensionDecorator } from '@remirror/core'; | ||
import { setBlockType } from '@remirror/pm/commands'; | ||
import { NodeExtension, NodeGroup, toggleBlockItem, object, setBlockType, extensionDecorator } from '@remirror/core'; | ||
import { textblockTypeInputRule } from '@remirror/pm/inputrules'; | ||
@@ -72,5 +71,5 @@ | ||
this.options.levels.forEach(level => { | ||
keys["Shift-Ctrl-".concat(level)] = convertCommand(setBlockType(this.type, { | ||
keys["Shift-Ctrl-".concat(level)] = setBlockType(this.type, { | ||
level | ||
})); | ||
}); | ||
}); | ||
@@ -77,0 +76,0 @@ return keys; |
{ | ||
"name": "@remirror/extension-heading", | ||
"version": "1.0.0-next.13", | ||
"version": "1.0.0-next.15", | ||
"description": "Add headings to your text editor.", | ||
@@ -26,7 +26,7 @@ "keywords": [ | ||
"devDependencies": { | ||
"@remirror/core": "^1.0.0-next.13", | ||
"@remirror/core": "^1.0.0-next.15", | ||
"@remirror/pm": "^1.0.0-next.4" | ||
}, | ||
"peerDependencies": { | ||
"@remirror/core": "^1.0.0-next.13", | ||
"@remirror/core": "^1.0.0-next.15", | ||
"@remirror/pm": "^1.0.0-next.4" | ||
@@ -33,0 +33,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
17718
288