@remirror/core-utils
Advanced tools
Comparing version 1.0.0-next.26 to 1.0.0-next.28
# @remirror/core-utils | ||
## 1.0.0-next.28 | ||
> 2020-08-27 | ||
### Patch Changes | ||
- Updated dependencies | ||
[[`d5bbeb4e`](https://github.com/remirror/remirror/commit/d5bbeb4e8e193e695838207706a04f7739cc1448), | ||
[`d5bbeb4e`](https://github.com/remirror/remirror/commit/d5bbeb4e8e193e695838207706a04f7739cc1448)]: | ||
- @remirror/pm@1.0.0-next.28 | ||
- @remirror/core-helpers@1.0.0-next.28 | ||
- @remirror/core-types@1.0.0-next.28 | ||
## 1.0.0-next.26 | ||
@@ -4,0 +17,0 @@ |
"use strict"; | ||
function _interopDefault(ex) { | ||
return ex && "object" == typeof ex && "default" in ex ? ex.default : ex; | ||
} | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -11,3 +7,11 @@ value: !0 | ||
var coreHelpers = require("@remirror/core-helpers"), schemaList = require("@remirror/pm/schema-list"), state = require("@remirror/pm/state"), transform = require("@remirror/pm/transform"), coreConstants = require("@remirror/core-constants"), model = require("@remirror/pm/model"), _objectWithoutProperties = _interopDefault(require("@babel/runtime/helpers/objectWithoutProperties")), _slicedToArray = _interopDefault(require("@babel/runtime/helpers/slicedToArray")), _defineProperty = _interopDefault(require("@babel/runtime/helpers/defineProperty")), inputrules = require("@remirror/pm/inputrules"), environment = { | ||
var coreHelpers = require("@remirror/core-helpers"), schemaList = require("@remirror/pm/schema-list"), state = require("@remirror/pm/state"), transform = require("@remirror/pm/transform"), coreConstants = require("@remirror/core-constants"), model = require("@remirror/pm/model"), _objectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties"), _slicedToArray = require("@babel/runtime/helpers/slicedToArray"), _defineProperty = require("@babel/runtime/helpers/defineProperty"), inputrules = require("@remirror/pm/inputrules"); | ||
function _interopDefault(e) { | ||
return e && e.__esModule ? e : { | ||
default: e | ||
}; | ||
} | ||
var _objectWithoutProperties__default = _interopDefault(_objectWithoutProperties), _slicedToArray__default = _interopDefault(_slicedToArray), _defineProperty__default = _interopDefault(_defineProperty), environment = { | ||
get isBrowser() { | ||
@@ -449,3 +453,3 @@ return coreHelpers.bool("undefined" != typeof window && void 0 !== window.document && window.navigator && window.navigator.userAgent); | ||
i % 2 ? ownKeys(Object(source), !0).forEach((function(key) { | ||
_defineProperty(target, key, source[key]); | ||
_defineProperty__default.default(target, key, source[key]); | ||
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach((function(key) { | ||
@@ -704,3 +708,3 @@ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) { | ||
var _step2$value = _slicedToArray(_step2.value, 2), key = _step2$value[0], spec = _step2$value[1].spec; | ||
var _step2$value = _slicedToArray__default.default(_step2.value, 2), key = _step2$value[0], spec = _step2$value[1].spec; | ||
nodes[key] = spec; | ||
@@ -716,3 +720,3 @@ } | ||
for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) { | ||
var _step3$value = _slicedToArray(_step3.value, 2), _key = _step3$value[0], _spec = _step3$value[1].spec; | ||
var _step3$value = _slicedToArray__default.default(_step3.value, 2), _key = _step3$value[0], _spec = _step3$value[1].spec; | ||
marks[_key] = _spec; | ||
@@ -749,3 +753,3 @@ } | ||
return _ref4 => { | ||
var _step4, state = _ref4.state, dispatch = _ref4.dispatch, view = _ref4.view, tr = _ref4.tr, rest = _objectWithoutProperties(_ref4, [ "state", "dispatch", "view", "tr" ]), _iterator4 = _createForOfIteratorHelper$1(commands); | ||
var _step4, state = _ref4.state, dispatch = _ref4.dispatch, view = _ref4.view, tr = _ref4.tr, rest = _objectWithoutProperties__default.default(_ref4, [ "state", "dispatch", "view", "tr" ]), _iterator4 = _createForOfIteratorHelper$1(commands); | ||
try { | ||
@@ -797,3 +801,3 @@ for (_iterator4.s(); !(_step4 = _iterator4.n()).done; ) { | ||
for (_iterator6.s(); !(_step6 = _iterator6.n()).done; ) { | ||
var _previousCommandsMap$, _step6$value = _slicedToArray(_step6.value, 2), key = _step6$value[0], newCommand = _step6$value[1], commands = [ ...null !== (_previousCommandsMap$ = previousCommandsMap.get(key)) && void 0 !== _previousCommandsMap$ ? _previousCommandsMap$ : [], newCommand ], _command = chainKeyBindingCommands(...commands); | ||
var _previousCommandsMap$, _step6$value = _slicedToArray__default.default(_step6.value, 2), key = _step6$value[0], newCommand = _step6$value[1], commands = [ ...null !== (_previousCommandsMap$ = previousCommandsMap.get(key)) && void 0 !== _previousCommandsMap$ ? _previousCommandsMap$ : [], newCommand ], _command = chainKeyBindingCommands(...commands); | ||
previousCommandsMap.set(key, commands), mappedCommands[key] = mapper(_command); | ||
@@ -1074,3 +1078,3 @@ } | ||
i % 2 ? ownKeys$1(Object(source), !0).forEach((function(key) { | ||
_defineProperty(target, key, source[key]); | ||
_defineProperty__default.default(target, key, source[key]); | ||
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach((function(key) { | ||
@@ -1126,3 +1130,3 @@ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
var _predicate = parameter.predicate; | ||
return findChildren(_objectSpread$1(_objectSpread$1({}, _objectWithoutProperties(parameter, [ "predicate" ])), {}, { | ||
return findChildren(_objectSpread$1(_objectSpread$1({}, _objectWithoutProperties__default.default(parameter, [ "predicate" ])), {}, { | ||
predicate: child => _predicate(child.node.attrs) | ||
@@ -1134,3 +1138,3 @@ })); | ||
var type = parameter.type; | ||
return findChildren(_objectSpread$1(_objectSpread$1({}, _objectWithoutProperties(parameter, [ "type" ])), {}, { | ||
return findChildren(_objectSpread$1(_objectSpread$1({}, _objectWithoutProperties__default.default(parameter, [ "type" ])), {}, { | ||
predicate: child => child.node.type === type | ||
@@ -1142,3 +1146,3 @@ })); | ||
var type = paramter.type; | ||
return findChildren(_objectSpread$1(_objectSpread$1({}, _objectWithoutProperties(paramter, [ "type" ])), {}, { | ||
return findChildren(_objectSpread$1(_objectSpread$1({}, _objectWithoutProperties__default.default(paramter, [ "type" ])), {}, { | ||
predicate: child => coreHelpers.bool(type.isInSet(child.node.marks)) | ||
@@ -1145,0 +1149,0 @@ })); |
@@ -29,7 +29,7 @@ /** | ||
export declare const Modifier: { | ||
Primary: (isMac?: boolean) => "Meta"[] | "Control"[]; | ||
PrimaryShift: (isMac?: boolean) => ("Shift" | "Meta")[] | ("Shift" | "Control")[]; | ||
PrimaryAlt: (isMac?: boolean) => ("Alt" | "Meta")[] | ("Control" | "Alt")[]; | ||
Secondary: (isMac?: boolean) => ("Shift" | "Alt" | "Meta")[] | ("Shift" | "Control" | "Alt")[]; | ||
Access: (isMac?: boolean) => ("Control" | "Alt")[] | ("Shift" | "Alt")[]; | ||
Primary: (isMac?: boolean | undefined) => "Meta"[] | "Control"[]; | ||
PrimaryShift: (isMac?: boolean | undefined) => ("Shift" | "Meta")[] | ("Shift" | "Control")[]; | ||
PrimaryAlt: (isMac?: boolean | undefined) => ("Alt" | "Meta")[] | ("Control" | "Alt")[]; | ||
Secondary: (isMac?: boolean | undefined) => ("Shift" | "Alt" | "Meta")[] | ("Shift" | "Control" | "Alt")[]; | ||
Access: (isMac?: boolean | undefined) => ("Control" | "Alt")[] | ("Shift" | "Alt")[]; | ||
Ctrl: () => "Control"[]; | ||
@@ -36,0 +36,0 @@ Alt: () => "Alt"[]; |
{ | ||
"name": "@remirror/core-utils", | ||
"version": "1.0.0-next.26", | ||
"version": "1.0.0-next.28", | ||
"description": "Core utilities for dealing with the dom and prosemirror within remirror", | ||
@@ -25,4 +25,4 @@ "homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/@remirror/core-utils", | ||
"@remirror/core-constants": "1.0.0-next.26", | ||
"@remirror/core-helpers": "1.0.0-next.26", | ||
"@remirror/core-types": "1.0.0-next.26", | ||
"@remirror/core-helpers": "1.0.0-next.28", | ||
"@remirror/core-types": "1.0.0-next.28", | ||
"@types/min-document": "^2.19.0", | ||
@@ -33,7 +33,7 @@ "@types/node": "^14.0.27", | ||
"devDependencies": { | ||
"@remirror/pm": "1.0.0-next.26", | ||
"@remirror/pm": "1.0.0-next.28", | ||
"domino": "^2.1.6" | ||
}, | ||
"peerDependencies": { | ||
"@remirror/pm": "1.0.0-next.26" | ||
"@remirror/pm": "1.0.0-next.28" | ||
}, | ||
@@ -40,0 +40,0 @@ "publishConfig": { |
Sorry, the diff of this file is too big to display
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
439625
12211
+ Added@remirror/core-helpers@1.0.0-next.28(transitive)
+ Added@remirror/core-types@1.0.0-next.28(transitive)
+ Added@remirror/pm@1.0.0-next.28(transitive)
- Removed@remirror/core-helpers@1.0.0-next.26(transitive)
- Removed@remirror/core-types@1.0.0-next.26(transitive)
- Removed@remirror/pm@1.0.0-next.26(transitive)