editorjs-math
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -9,2 +9,2 @@ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("katex"),require("katex/dist/katex.css")):"function"==typeof define&&define.amd?define(["katex","katex/dist/katex.css"],e):"object"==typeof exports?exports.Math=e(require("katex"),require("katex/dist/katex.css")):t.Math=e(t.katex,t["katex/dist/katex.css"])}(window,(function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=0)}([function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}var o=n(1);n(2),n(6); | ||
*/ | ||
var a=function(){function t(e){var n=e.data,r=e.config,i=e.api;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.api=i,this._CSS={block:this.api.styles.block,wrapper:"ce-Math"},this.onKeyUp=this.onKeyUp.bind(this),this._placeholder=r.placeholder?r.placeholder:t.DEFAULT_PLACEHOLDER,this._data={},this._element=this.drawView(),this.config={fleqn:!0,output:"html",delimiter:"$$",throwOnError:!0,displayMode:!0},this.data=n}return i(t,null,[{key:"DEFAULT_PLACEHOLDER",get:function(){return""}}]),i(t,[{key:"onKeyUp",value:function(t){var e=this._element.textContent;this.renderKatex(),"Backspace"!==t.code&&"Delete"!==t.code||""===e&&(this._element.innerHTML="")}},{key:"onClick",value:function(t){if(this.textNode&&this.katexNode&&t.target!==this.textNode){this.textNode.hidden=!this.textNode.hidden;var e=this.katexNode.innerText.indexOf("ParseError")>-1;1==this.textNode.hidden&&e&&o.render(this.textBeforeError,this.katexNode,this.config)}}},{key:"enableEditing",value:function(){this.textNode=document.createElement("input"),this.textNode.contentEditable=!0,this.textNode.value=this.data.text,this.textNode.hidden=!0,this.textNode.className="text-node",this._element.appendChild(this.textNode)}},{key:"drawView",value:function(){var t=document.createElement("DIV");return t.classList.add(this._CSS.wrapper,this._CSS.block),t.contentEditable=!0,t.dataset.placeholder=this._placeholder,this.katexNode=document.createElement("div"),this.katexNode.id="katex-node",this.katexNode.contentEditable=!1,t.appendChild(this.katexNode),t.addEventListener("keyup",this.onKeyUp),t}},{key:"render",value:function(){var t=this;return this.renderKatex(),this.enableEditing(),this._element.addEventListener("click",(function(e){return t.onClick(e)})),this._element}},{key:"renderKatex",value:function(){this.data.text=this.textNode?this.textNode.value:this.data.text,this.textToKatex()}},{key:"textToKatex",value:function(){if(this.data.text||(this.data.text="equation:"),this.katexNode){this._element.innerText.indexOf("ParseError")<0&&(this.textBeforeError=this._element.innerText);try{o.render(this.data.text,this.katexNode,this.config)}catch(e){var t="Invalid Equation. "+e.toString();this.katexNode.innerText=t}}}},{key:"merge",value:function(t){this.data=this.data}},{key:"validate",value:function(t){return""!==t.text.trim()}},{key:"save",value:function(t){return{text:this.data.text}}},{key:"onPaste",value:function(t){var e={text:t.detail.data.innerHTML};this.data=e}},{key:"data",get:function(){return this._data},set:function(t){this._data=t||{},this.katexNode.innerHTML=this._data.text||""}}],[{key:"conversionConfig",get:function(){return{export:"text",import:"text"}}},{key:"sanitize",get:function(){return{text:{br:!0,svg:!0}}}},{key:"pasteConfig",get:function(){return{tags:["P"]}}},{key:"toolbox",get:function(){return{icon:n(7).default,title:"Math"}}}]),t}();t.exports=a},function(e,n){e.exports=t},function(t,e,n){var r=n(3),i=n(4);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);t.exports=i.locals||{}},function(t,e,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function c(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function s(t,e){for(var n={},r=[],i=0;i<t.length;i++){var o=t[i],s=e.base?o[0]+e.base:o[0],d=n[s]||0,l="".concat(s," ").concat(d);n[s]=d+1;var u=c(l),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==u?(a[u].references++,a[u].updater(f)):a.push({identifier:l,updater:g(f,e),references:1}),r.push(l)}return r}function d(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=o(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var l,u=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function f(t,e,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=u(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function h(t,e,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var p=null,x=0;function g(t,e){var n,r,i;if(e.singleton){var o=x++;n=p||(p=d(e)),r=f.bind(null,n,o,!1),i=f.bind(null,n,o,!0)}else n=d(e),r=h.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=s(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var i=c(n[r]);a[i].references--}for(var o=s(t,e),d=0;d<n.length;d++){var l=c(n[d]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=o}}}},function(t,e,n){(e=n(5)(!1)).push([t.i,".ce-Math {\n color: #000;\n line-height: 1.6em;\n outline: none;\n cursor: pointer;\n}\n\n.text-node {\n border: 1px solid pink;\n text-align: left;\n cursor: text;\n width: 100%;\n outline: none;\n padding: 6px;\n}\n\n.katex-display > .katex {\n max-width: 100%;\n}\n\n.katex-display > .katex > .katex-html {\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n padding-left: 2px;\n padding-right: 2px;\n}\n\n.popup {\n z-index: -99;\n margin: auto;\n display: flex;\n height: 10px;\n padding: 10px 15px;\n margin-top: 10px;\n align-items: center;\n font-size: 14px;\n color: rgba(203,76,76,0.82);\n background: transparent;\n border-radius: 3px;\n transform: translateY(-100%);\n transition: .3s transform cubic-bezier(.645, .045, .355, 1);\n box-shadow: 0 4px 12px rgba(0,0,0,0.15);\n pointer-events: all;\n}\n\n.ce-Math[data-placeholder]:empty::before{\n content: attr(data-placeholder);\n color: #707684;\n font-weight: normal;\n opacity: 0;\n}\n\n/** Show placeholder at the first paragraph if Editor is empty */\n.codex-editor--empty .ce-block:first-child .ce-Math[data-placeholder]:empty::before {\n opacity: 1;\n}\n\n.codex-editor--toolbox-opened .ce-block:first-child .ce-Math[data-placeholder]:empty::before,\n.codex-editor--empty .ce-block:first-child .ce-Math[data-placeholder]:empty:focus::before {\n opacity: 0;\n}\n\n.ce-Math p:first-of-type{\n margin-top: 0;\n}\n\n.ce-Math p:last-of-type{\n margin-bottom: 0;\n}\n",""]),t.exports=e},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(a=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(s," */")),o=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([i]).join("\n")}var a,c,s;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var c=0;c<t.length;c++){var s=[].concat(t[c]);r&&i[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),e.push(s))}},e}},function(t,n){t.exports=e},function(t,e,n){"use strict";n.r(e),e.default='<?xml version="1.0" encoding="iso-8859-1"?>\r\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\r\n<svg version="1.1" id="fxicon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\r\n\t width="15px" height="15px" viewBox="0 0 142.514 142.514" style="enable-background:new 0 0 142.514 142.514;"\r\n\t xml:space="preserve">\r\n<g>\r\n\t<g>\r\n\t\t<path d="M34.367,142.514c11.645,0,17.827-10.4,19.645-16.544c0.029-0.097,0.056-0.196,0.081-0.297\r\n\t\t\tc4.236-17.545,10.984-45.353,15.983-65.58h17.886c3.363,0,6.09-2.726,6.09-6.09c0-3.364-2.727-6.09-6.09-6.09H73.103\r\n\t\t\tc1.6-6.373,2.771-10.912,3.232-12.461l0.512-1.734c1.888-6.443,6.309-21.535,13.146-21.535c6.34,0,7.285,9.764,7.328,10.236\r\n\t\t\tc0.27,3.343,3.186,5.868,6.537,5.579c3.354-0.256,5.864-3.187,5.605-6.539C108.894,14.036,104.087,0,89.991,0\r\n\t\t\tC74.03,0,68.038,20.458,65.159,30.292l-0.49,1.659c-0.585,1.946-2.12,7.942-4.122,15.962H39.239c-3.364,0-6.09,2.726-6.09,6.09\r\n\t\t\tc0,3.364,2.726,6.09,6.09,6.09H57.53c-6.253,25.362-14.334,58.815-15.223,62.498c-0.332,0.965-2.829,7.742-7.937,7.742\r\n\t\t\tc-7.8,0-11.177-10.948-11.204-11.03c-0.936-3.229-4.305-5.098-7.544-4.156c-3.23,0.937-5.092,4.314-4.156,7.545\r\n\t\t\tC13.597,130.053,20.816,142.514,34.367,142.514z"/>\r\n\t\t<path d="M124.685,126.809c3.589,0,6.605-2.549,6.605-6.607c0-1.885-0.754-3.586-2.359-5.474l-12.646-14.534l12.271-14.346\r\n\t\t\tc1.132-1.416,1.98-2.926,1.98-4.908c0-3.59-2.927-6.231-6.703-6.231c-2.547,0-4.527,1.604-6.229,3.684l-9.531,12.454L98.73,78.391\r\n\t\t\tc-1.89-2.357-3.869-3.682-6.7-3.682c-3.59,0-6.607,2.551-6.607,6.609c0,1.885,0.756,3.586,2.357,5.471l11.799,13.592\r\n\t\t\tL86.647,115.67c-1.227,1.416-1.98,2.926-1.98,4.908c0,3.589,2.926,6.229,6.699,6.229c2.549,0,4.53-1.604,6.229-3.682l10.19-13.4\r\n\t\t\tl10.193,13.4C119.872,125.488,121.854,126.809,124.685,126.809z"/>\r\n\t</g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n</svg>\r\n'}])})); | ||
var a=function(){function t(e){var n=e.data,r=e.config,i=e.api;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.api=i,this._CSS={block:this.api.styles.block,wrapper:"ce-Math"},this.onKeyUp=this.onKeyUp.bind(this),this._placeholder=r.placeholder?r.placeholder:t.DEFAULT_PLACEHOLDER,this._data={},this._element=this.drawView(),this.config={fleqn:!0,output:"html",delimiter:"$$",throwOnError:!0,displayMode:!0},this.data=n}return i(t,null,[{key:"DEFAULT_PLACEHOLDER",get:function(){return""}}]),i(t,[{key:"onKeyUp",value:function(t){var e=this._element.textContent;this.renderKatex(),"Backspace"!==t.code&&"Delete"!==t.code||""===e&&(this._element.innerHTML="")}},{key:"onClick",value:function(t){if(this.textNode&&this.katexNode&&t.target!==this.textNode){this.textNode.hidden=!this.textNode.hidden;var e=this.katexNode.innerText.indexOf("ParseError")>-1;1==this.textNode.hidden&&e&&o.render(this.textBeforeError,this.katexNode,this.config)}}},{key:"enableEditing",value:function(){if(this.textNode)return this.textNode.hidden=!1;this.textNode=document.createElement("input"),this.textNode.contentEditable=!0,this.textNode.value=this.data.text,this.textNode.hidden=!0,this.textNode.className="text-node",this._element.appendChild(this.textNode)}},{key:"drawView",value:function(){var t=document.createElement("DIV");return t.classList.add(this._CSS.wrapper,this._CSS.block),t.contentEditable=!0,t.dataset.placeholder=this._placeholder,this.katexNode=document.createElement("div"),this.katexNode.id="katex-node",this.katexNode.contentEditable=!1,t.appendChild(this.katexNode),t.addEventListener("keyup",this.onKeyUp),t}},{key:"render",value:function(){var t=this;return this.renderKatex(),this.enableEditing(),this._element.addEventListener("click",(function(e){return t.onClick(e)})),this._element}},{key:"renderKatex",value:function(){this.data.text=this.textNode?this.textNode.value:this.data.text,this.textToKatex()}},{key:"textToKatex",value:function(){if(this.data.text||(this.data.text="equation:"),this.katexNode){this._element.innerText.indexOf("ParseError")<0&&(this.textBeforeError=this._element.innerText);try{o.render(this.data.text,this.katexNode,this.config)}catch(e){var t="Invalid Equation. "+e.toString();this.katexNode.innerText=t}}}},{key:"merge",value:function(t){this.data=this.data}},{key:"validate",value:function(t){return""!==t.text.trim()}},{key:"save",value:function(t){return{text:this.data.text}}},{key:"onPaste",value:function(t){var e={text:t.detail.data.innerHTML};this.data=e}},{key:"data",get:function(){return this._data},set:function(t){this._data=t||{},this.katexNode.innerHTML=this._data.text||""}}],[{key:"conversionConfig",get:function(){return{export:"text",import:"text"}}},{key:"sanitize",get:function(){return{text:{br:!0,svg:!0}}}},{key:"pasteConfig",get:function(){return{tags:["P"]}}},{key:"toolbox",get:function(){return{icon:n(7).default,title:"Math"}}}]),t}();t.exports=a},function(e,n){e.exports=t},function(t,e,n){var r=n(3),i=n(4);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);t.exports=i.locals||{}},function(t,e,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function c(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function s(t,e){for(var n={},r=[],i=0;i<t.length;i++){var o=t[i],s=e.base?o[0]+e.base:o[0],d=n[s]||0,l="".concat(s," ").concat(d);n[s]=d+1;var u=c(l),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==u?(a[u].references++,a[u].updater(f)):a.push({identifier:l,updater:g(f,e),references:1}),r.push(l)}return r}function d(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=o(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var l,u=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function f(t,e,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=u(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function h(t,e,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var p=null,x=0;function g(t,e){var n,r,i;if(e.singleton){var o=x++;n=p||(p=d(e)),r=f.bind(null,n,o,!1),i=f.bind(null,n,o,!0)}else n=d(e),r=h.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=s(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var i=c(n[r]);a[i].references--}for(var o=s(t,e),d=0;d<n.length;d++){var l=c(n[d]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=o}}}},function(t,e,n){(e=n(5)(!1)).push([t.i,".ce-Math {\n color: #000;\n line-height: 1.6em;\n outline: none;\n cursor: pointer;\n}\n\n.text-node {\n border: 1px solid pink;\n text-align: left;\n cursor: text;\n width: 100%;\n outline: none;\n padding: 6px;\n}\n\n.katex-display > .katex {\n max-width: 100%;\n}\n\n.katex-display > .katex > .katex-html {\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n padding-left: 2px;\n padding-right: 2px;\n}\n\n.popup {\n z-index: -99;\n margin: auto;\n display: flex;\n height: 10px;\n padding: 10px 15px;\n margin-top: 10px;\n align-items: center;\n font-size: 14px;\n color: rgba(203,76,76,0.82);\n background: transparent;\n border-radius: 3px;\n transform: translateY(-100%);\n transition: .3s transform cubic-bezier(.645, .045, .355, 1);\n box-shadow: 0 4px 12px rgba(0,0,0,0.15);\n pointer-events: all;\n}\n\n.ce-Math[data-placeholder]:empty::before{\n content: attr(data-placeholder);\n color: #707684;\n font-weight: normal;\n opacity: 0;\n}\n\n/** Show placeholder at the first paragraph if Editor is empty */\n.codex-editor--empty .ce-block:first-child .ce-Math[data-placeholder]:empty::before {\n opacity: 1;\n}\n\n.codex-editor--toolbox-opened .ce-block:first-child .ce-Math[data-placeholder]:empty::before,\n.codex-editor--empty .ce-block:first-child .ce-Math[data-placeholder]:empty:focus::before {\n opacity: 0;\n}\n\n.ce-Math p:first-of-type{\n margin-top: 0;\n}\n\n.ce-Math p:last-of-type{\n margin-bottom: 0;\n}\n",""]),t.exports=e},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(a=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(s," */")),o=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([i]).join("\n")}var a,c,s;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var c=0;c<t.length;c++){var s=[].concat(t[c]);r&&i[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),e.push(s))}},e}},function(t,n){t.exports=e},function(t,e,n){"use strict";n.r(e),e.default='<?xml version="1.0" encoding="iso-8859-1"?>\r\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\r\n<svg version="1.1" id="fxicon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\r\n\t width="15px" height="15px" viewBox="0 0 142.514 142.514" style="enable-background:new 0 0 142.514 142.514;"\r\n\t xml:space="preserve">\r\n<g>\r\n\t<g>\r\n\t\t<path d="M34.367,142.514c11.645,0,17.827-10.4,19.645-16.544c0.029-0.097,0.056-0.196,0.081-0.297\r\n\t\t\tc4.236-17.545,10.984-45.353,15.983-65.58h17.886c3.363,0,6.09-2.726,6.09-6.09c0-3.364-2.727-6.09-6.09-6.09H73.103\r\n\t\t\tc1.6-6.373,2.771-10.912,3.232-12.461l0.512-1.734c1.888-6.443,6.309-21.535,13.146-21.535c6.34,0,7.285,9.764,7.328,10.236\r\n\t\t\tc0.27,3.343,3.186,5.868,6.537,5.579c3.354-0.256,5.864-3.187,5.605-6.539C108.894,14.036,104.087,0,89.991,0\r\n\t\t\tC74.03,0,68.038,20.458,65.159,30.292l-0.49,1.659c-0.585,1.946-2.12,7.942-4.122,15.962H39.239c-3.364,0-6.09,2.726-6.09,6.09\r\n\t\t\tc0,3.364,2.726,6.09,6.09,6.09H57.53c-6.253,25.362-14.334,58.815-15.223,62.498c-0.332,0.965-2.829,7.742-7.937,7.742\r\n\t\t\tc-7.8,0-11.177-10.948-11.204-11.03c-0.936-3.229-4.305-5.098-7.544-4.156c-3.23,0.937-5.092,4.314-4.156,7.545\r\n\t\t\tC13.597,130.053,20.816,142.514,34.367,142.514z"/>\r\n\t\t<path d="M124.685,126.809c3.589,0,6.605-2.549,6.605-6.607c0-1.885-0.754-3.586-2.359-5.474l-12.646-14.534l12.271-14.346\r\n\t\t\tc1.132-1.416,1.98-2.926,1.98-4.908c0-3.59-2.927-6.231-6.703-6.231c-2.547,0-4.527,1.604-6.229,3.684l-9.531,12.454L98.73,78.391\r\n\t\t\tc-1.89-2.357-3.869-3.682-6.7-3.682c-3.59,0-6.607,2.551-6.607,6.609c0,1.885,0.756,3.586,2.357,5.471l11.799,13.592\r\n\t\t\tL86.647,115.67c-1.227,1.416-1.98,2.926-1.98,4.908c0,3.589,2.926,6.229,6.699,6.229c2.549,0,4.53-1.604,6.229-3.682l10.19-13.4\r\n\t\t\tl10.193,13.4C119.872,125.488,121.854,126.809,124.685,126.809z"/>\r\n\t</g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n</svg>\r\n'}])})); |
{ | ||
"name": "editorjs-math", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "Math Block for Editor.js", | ||
@@ -5,0 +5,0 @@ "main": "./dist/bundle.js", |
15257