@wiris/mathtype-ckeditor5 8.10.0 → 8.11.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.
@@ -887,7 +887,7 @@ var purify = {exports: {}};
887
887
  /**
888
888
  * Version label, exposed for easier checks
889
889
  * if DOMPurify is up to date or not
890
- */ DOMPurify.version = '3.1.5';
890
+ */ DOMPurify.version = '3.1.6';
891
891
  /**
892
892
  * Array of elements that DOMPurify removed during sanitation.
893
893
  * Empty if nothing was removed.
@@ -904,6 +904,7 @@ var purify = {exports: {}};
904
904
  const { DocumentFragment, HTMLTemplateElement, Node, Element, NodeFilter, NamedNodeMap = window1.NamedNodeMap || window1.MozNamedAttrMap, HTMLFormElement, DOMParser, trustedTypes } = window1;
905
905
  const ElementPrototype = Element.prototype;
906
906
  const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');
907
+ const remove = lookupGetter(ElementPrototype, 'remove');
907
908
  const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');
908
909
  const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');
909
910
  const getParentNode = lookupGetter(ElementPrototype, 'parentNode');
@@ -1371,9 +1372,9 @@ var purify = {exports: {}};
1371
1372
  });
1372
1373
  try {
1373
1374
  // eslint-disable-next-line unicorn/prefer-dom-node-remove
1374
- node.parentNode.removeChild(node);
1375
+ getParentNode(node).removeChild(node);
1375
1376
  } catch (_) {
1376
- node.remove();
1377
+ remove(node);
1377
1378
  }
1378
1379
  };
1379
1380
  /**
@@ -1516,7 +1517,7 @@ var purify = {exports: {}};
1516
1517
  _forceRemove(currentNode);
1517
1518
  return true;
1518
1519
  }
1519
- /* Remove any ocurrence of processing instructions */ if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
1520
+ /* Remove any occurrence of processing instructions */ if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
1520
1521
  _forceRemove(currentNode);
1521
1522
  return true;
1522
1523
  }
@@ -1654,6 +1655,10 @@ var purify = {exports: {}};
1654
1655
  hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set
1655
1656
  _executeHook('uponSanitizeAttribute', currentNode, hookEvent);
1656
1657
  value = hookEvent.attrValue;
1658
+ /* Work around a security issue with comments inside attributes */ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
1659
+ _removeAttribute(name, currentNode);
1660
+ continue;
1661
+ }
1657
1662
  /* Did the hooks approve of the attribute? */ if (hookEvent.forceKeepAttr) {
1658
1663
  continue;
1659
1664
  }
@@ -1665,10 +1670,6 @@ var purify = {exports: {}};
1665
1670
  _removeAttribute(name, currentNode);
1666
1671
  continue;
1667
1672
  }
1668
- /* Work around a security issue with comments inside attributes */ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
1669
- _removeAttribute(name, currentNode);
1670
- continue;
1671
- }
1672
1673
  /* Sanitize attribute content to be template-safe */ if (SAFE_FOR_TEMPLATES) {
1673
1674
  arrayForEach([
1674
1675
  MUSTACHE_EXPR,
@@ -4350,7 +4351,8 @@ var translations = {
4350
4351
  "annotation",
4351
4352
  "mstack",
4352
4353
  "msline",
4353
- "msrow"
4354
+ "msrow",
4355
+ "none"
4354
4356
  ],
4355
4357
  ADD_ATTR: [
4356
4358
  "linebreak",
@@ -10531,6 +10533,8 @@ IntegrationModel.prototype.getSelectedItem = undefined;
10531
10533
  openNewFormulaEditor() {
10532
10534
  // Store the editor selection as it will be lost upon opening the modal
10533
10535
  this.core.editionProperties.selection = this.editorObject.editing.view.document.selection;
10536
+ // Focus on the selected editor when multiple editor instances are present
10537
+ WirisPlugin.currentInstance = this;
10534
10538
  return super.openNewFormulaEditor();
10535
10539
  }
10536
10540
  /**
@@ -10765,7 +10769,7 @@ var mathIcon = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Generator: Adob
10765
10769
  var chemIcon = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Generator: Adobe Illustrator 22.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->\n<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 40.3 49.5\" style=\"enable-background:new 0 0 40.3 49.5;\" xml:space=\"preserve\">\n<style type=\"text/css\">\n\t.st0{fill:#A4CF61;}\n</style>\n<path class=\"st0\" d=\"M39.2,12.1c0-1.9-1.1-3.6-2.7-4.4L24.5,0.9l0,0c-0.7-0.4-1.5-0.6-2.4-0.6c-0.9,0-1.7,0.2-2.4,0.6l0,0L2.3,10.8\n\tl0,0C0.9,11.7,0,13.2,0,14.9h0v19.6h0c0,1.7,0.9,3.3,2.3,4.1l0,0l17.4,9.9l0,0c0.7,0.4,1.5,0.6,2.4,0.6c0.9,0,1.7-0.2,2.4-0.6l0,0\n\tl12.2-6.9h0c1.5-0.8,2.6-2.5,2.6-4.3c0-2.7-2.2-4.9-4.9-4.9c-0.9,0-1.8,0.3-2.5,0.7l0,0l-9.7,5.6l-12.3-7V17.8l12.3-7l9.9,5.7l0,0\n\tc0.7,0.4,1.5,0.6,2.4,0.6C37,17,39.2,14.8,39.2,12.1\"/>\n</svg>\n";
10766
10770
 
10767
10771
  var name = "@wiris/mathtype-ckeditor5";
10768
- var version = "8.10.0";
10772
+ var version = "8.11.0";
10769
10773
  var description = "MathType Web for CKEditor5 editor";
10770
10774
  var keywords = [
10771
10775
  "chem",
@@ -10800,8 +10804,8 @@ var main = "src/plugin.js";
10800
10804
  var type = "module";
10801
10805
  var exports = {
10802
10806
  ".": "./src/plugin.js",
10803
- "./dist/*.css": "./dist/*.css",
10804
10807
  "./dist/*": "./dist/*",
10808
+ "./browser/*": null,
10805
10809
  "./src/*": "./src/*",
10806
10810
  "./theme/*": "./theme/*",
10807
10811
  "./package.json": "./package.json"
@@ -10812,14 +10816,14 @@ var scripts = {
10812
10816
  prepare: "npm run build:dist"
10813
10817
  };
10814
10818
  var dependencies = {
10815
- "@wiris/mathtype-html-integration-devkit": "1.17.3"
10819
+ "@wiris/mathtype-html-integration-devkit": "1.17.4"
10816
10820
  };
10817
10821
  var devDependencies = {
10818
- "@ckeditor/ckeditor5-dev-build-tools": "^40.2.0",
10819
- ckeditor5: ">=42.0.0"
10822
+ "@ckeditor/ckeditor5-dev-build-tools": "^42.1.0",
10823
+ ckeditor5: ">=43.0.0"
10820
10824
  };
10821
10825
  var peerDependencies = {
10822
- ckeditor5: ">=42.0.0"
10826
+ ckeditor5: ">=43.0.0"
10823
10827
  };
10824
10828
  var packageInfo = {
10825
10829
  name: name,