test-keyboard
Advanced tools
Comparing version 1.0.0-next.33 to 1.0.0-next.34
# test-keyboard | ||
## 1.0.0-next.34 | ||
> 2020-09-10 | ||
### Patch Changes | ||
- Updated dependencies [[`5945dffe`](https://github.com/remirror/remirror/commit/5945dffeadac8ae568be1ab0014e1186e03d5fb0)]: | ||
- @remirror/core-helpers@1.0.0-next.34 | ||
- @remirror/core-types@1.0.0-next.34 | ||
## 1.0.0-next.33 | ||
@@ -4,0 +14,0 @@ |
@@ -5,7 +5,9 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty')); | ||
var _defineProperty = require('@babel/runtime/helpers/defineProperty'); | ||
var coreHelpers = require('@remirror/core-helpers'); | ||
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; } | ||
var _defineProperty__default = /*#__PURE__*/_interopDefault(_defineProperty); | ||
/** | ||
@@ -1376,3 +1378,3 @@ * See | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
/** | ||
@@ -1456,3 +1458,3 @@ * Creates a keyboard event which can be dispatched into the DOM | ||
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
class Keyboard { | ||
@@ -1485,7 +1487,7 @@ static create(params) { | ||
_defineProperty(this, "status", 'idle'); | ||
_defineProperty__default['default'](this, "status", 'idle'); | ||
_defineProperty(this, "actions", []); | ||
_defineProperty__default['default'](this, "actions", []); | ||
_defineProperty(this, "keyDown", (_ref2) => { | ||
_defineProperty__default['default'](this, "keyDown", (_ref2) => { | ||
var options = _ref2.options; | ||
@@ -1495,3 +1497,3 @@ return this.dispatchEvent('keydown', options); | ||
_defineProperty(this, "keyPress", (_ref3) => { | ||
_defineProperty__default['default'](this, "keyPress", (_ref3) => { | ||
var options = _ref3.options; | ||
@@ -1501,3 +1503,3 @@ return this.dispatchEvent('keypress', options); | ||
_defineProperty(this, "keyUp", (_ref4) => { | ||
_defineProperty__default['default'](this, "keyUp", (_ref4) => { | ||
var options = _ref4.options; | ||
@@ -1504,0 +1506,0 @@ return this.dispatchEvent('keyup', options); |
@@ -5,7 +5,9 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty')); | ||
var _defineProperty = require('@babel/runtime/helpers/defineProperty'); | ||
var coreHelpers = require('@remirror/core-helpers'); | ||
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; } | ||
var _defineProperty__default = /*#__PURE__*/_interopDefault(_defineProperty); | ||
/** | ||
@@ -1376,3 +1378,3 @@ * See | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
/** | ||
@@ -1456,3 +1458,3 @@ * Creates a keyboard event which can be dispatched into the DOM | ||
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
class Keyboard { | ||
@@ -1485,7 +1487,7 @@ static create(params) { | ||
_defineProperty(this, "status", 'idle'); | ||
_defineProperty__default['default'](this, "status", 'idle'); | ||
_defineProperty(this, "actions", []); | ||
_defineProperty__default['default'](this, "actions", []); | ||
_defineProperty(this, "keyDown", (_ref2) => { | ||
_defineProperty__default['default'](this, "keyDown", (_ref2) => { | ||
var options = _ref2.options; | ||
@@ -1495,3 +1497,3 @@ return this.dispatchEvent('keydown', options); | ||
_defineProperty(this, "keyPress", (_ref3) => { | ||
_defineProperty__default['default'](this, "keyPress", (_ref3) => { | ||
var options = _ref3.options; | ||
@@ -1501,3 +1503,3 @@ return this.dispatchEvent('keypress', options); | ||
_defineProperty(this, "keyUp", (_ref4) => { | ||
_defineProperty__default['default'](this, "keyUp", (_ref4) => { | ||
var options = _ref4.options; | ||
@@ -1504,0 +1506,0 @@ return this.dispatchEvent('keyup', options); |
"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 _defineProperty = _interopDefault(require("@babel/runtime/helpers/defineProperty")), coreHelpers = require("@remirror/core-helpers"), rawUSKeyboardLayout = { | ||
var _defineProperty = require("@babel/runtime/helpers/defineProperty"), coreHelpers = require("@remirror/core-helpers"); | ||
function _interopDefault(e) { | ||
return e && e.__esModule ? e : { | ||
default: e | ||
}; | ||
} | ||
var _defineProperty__default = _interopDefault(_defineProperty), rawUSKeyboardLayout = { | ||
0: { | ||
@@ -1428,3 +1432,3 @@ keyCode: 48, | ||
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) { | ||
@@ -1537,3 +1541,3 @@ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
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) { | ||
@@ -1562,9 +1566,10 @@ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
var target = _ref.target, _ref$defaultOptions = _ref.defaultOptions, defaultOptions = void 0 === _ref$defaultOptions ? Keyboard.defaultOptions : _ref$defaultOptions, _ref$isMac = _ref.isMac, isMac = void 0 !== _ref$isMac && _ref$isMac, _ref$batch = _ref.batch, batch = void 0 !== _ref$batch && _ref$batch, onEventDispatch = _ref.onEventDispatch; | ||
_defineProperty(this, "status", "idle"), _defineProperty(this, "actions", []), _defineProperty(this, "keyDown", _ref2 => { | ||
_defineProperty__default.default(this, "status", "idle"), _defineProperty__default.default(this, "actions", []), | ||
_defineProperty__default.default(this, "keyDown", _ref2 => { | ||
var options = _ref2.options; | ||
return this.dispatchEvent("keydown", options); | ||
}), _defineProperty(this, "keyPress", _ref3 => { | ||
}), _defineProperty__default.default(this, "keyPress", _ref3 => { | ||
var options = _ref3.options; | ||
return this.dispatchEvent("keypress", options); | ||
}), _defineProperty(this, "keyUp", _ref4 => { | ||
}), _defineProperty__default.default(this, "keyUp", _ref4 => { | ||
var options = _ref4.options; | ||
@@ -1571,0 +1576,0 @@ return this.dispatchEvent("keyup", options); |
{ | ||
"name": "test-keyboard", | ||
"version": "1.0.0-next.33", | ||
"version": "1.0.0-next.34", | ||
"description": "A test keyboard for composing fake keyboard events", | ||
@@ -30,4 +30,4 @@ "keywords": [ | ||
"@babel/runtime": "^7.11.0", | ||
"@remirror/core-helpers": "1.0.0-next.33", | ||
"@remirror/core-types": "1.0.0-next.33" | ||
"@remirror/core-helpers": "1.0.0-next.34", | ||
"@remirror/core-types": "1.0.0-next.34" | ||
}, | ||
@@ -34,0 +34,0 @@ "publishConfig": { |
@@ -30,10 +30,9 @@ # test-keyboard | ||
const target = document.getElementById('editor'); | ||
const target = document.querySelector('#editor'); | ||
Keyboard.create({ | ||
target, | ||
}) | ||
.start() // Allows events to be dispatched | ||
.mod({ text: 'Ctrl-Shift-Enter' }) | ||
.end(); // Dispatches al the events. | ||
}; | ||
target, | ||
}) | ||
.start() // Allows events to be dispatched | ||
.mod({ text: 'Ctrl-Shift-Enter' }) | ||
.end(); // Dispatches al the events. | ||
``` | ||
@@ -40,0 +39,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
220471
10258
52
+ Added@remirror/core-constants@1.0.0-next.34(transitive)
+ Added@remirror/core-helpers@1.0.0-next.34(transitive)
+ Added@remirror/core-types@1.0.0-next.34(transitive)
+ Added@remirror/pm@1.0.0-next.34(transitive)
- Removed@remirror/core-constants@1.0.0-next.33(transitive)
- Removed@remirror/core-helpers@1.0.0-next.33(transitive)
- Removed@remirror/core-types@1.0.0-next.33(transitive)
- Removed@remirror/pm@1.0.0-next.32(transitive)