@ckeditor/ckeditor5-typing 48.3.1 → 48.4.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,3 +3,5 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
 
6
+
7
+ /*# sourceMappingURL=index-content.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index-content.css"],"names":[],"mappings":";;;;;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index-content.css.map","sourcesContent":["\n\n/*# sourceMappingURL=index-content.css.map */"]}
@@ -3,3 +3,5 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
 
6
+
7
+ /*# sourceMappingURL=index-editor.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index-editor.css"],"names":[],"mappings":";;;;;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index-editor.css.map","sourcesContent":["\n\n/*# sourceMappingURL=index-editor.css.map */"]}
package/dist/index.css CHANGED
@@ -3,3 +3,5 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
 
6
+
7
+ /*# sourceMappingURL=index.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.css"],"names":[],"mappings":";;;;;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["\n\n/*# sourceMappingURL=index.css.map */"]}
package/dist/index.js CHANGED
@@ -817,7 +817,8 @@ function enableChromeWorkaround(observer) {
817
817
  const shouldFireDeleteEvent = observer.isEnabled && keyCode == pressedKeyCode && isDeleteKeyCode(keyCode) && !selection.isCollapsed && !beforeInputReceived;
818
818
  pressedKeyCode = null;
819
819
  if (shouldFireDeleteEvent) {
820
- const eventInfo = new BubblingEventInfo(document, "delete", selection.getFirstRange());
820
+ const targetRange = selection.getFirstRange();
821
+ const eventInfo = new BubblingEventInfo(document, "delete", targetRange);
821
822
  const deleteData = {
822
823
  unit: DELETE_SELECTION,
823
824
  direction: getDeleteDirection(keyCode),
@@ -1327,7 +1328,7 @@ var TwoStepCaretMovement = class extends Plugin {
1327
1328
  const arrowLeftPressed = data.keyCode == keyCodes.arrowleft;
1328
1329
  if (!arrowRightPressed && !arrowLeftPressed) return;
1329
1330
  const contentDirection = locale.contentLanguageDirection;
1330
- let isMovementHandled = false;
1331
+ let isMovementHandled;
1331
1332
  if (contentDirection === "ltr" && arrowRightPressed || contentDirection === "rtl" && arrowLeftPressed) isMovementHandled = this._handleForwardMovement(data);
1332
1333
  else isMovementHandled = this._handleBackwardMovement(data);
1333
1334
  if (isMovementHandled === true) evt.stop();