diff --git a/docs/bundle-prod.js b/docs/bundle-prod.js index 09e88eef..e3c7fad3 100644 --- a/docs/bundle-prod.js +++ b/docs/bundle-prod.js @@ -13,7 +13,7 @@ object-assign * The MIT License Copyright (c) 2018 Dmitriy Kubyshkin Copied from https://github.com/grassator/insert-text-at-cursor - */Object.defineProperty(t,"__esModule",{value:!0}),t.insertText=function(e,t){if(e.focus(),document.selection){var n=document.selection.createRange();return n.text=t,n.collapse(!1),void n.select()}if(!document.execCommand("insertText",!1,t)){var r=e.selectionStart,a=e.selectionEnd;if("function"==typeof e.setRangeText)e.setRangeText(t);else if(function(e){if("TEXTAREA"!==e.nodeName)return!1;var t;if(void 0===t){var n=document.createElement("textarea");n.value="1",t=!!n.firstChild}return t}(e)){var o=document.createTextNode(t),i=e.firstChild;if(i){for(var l=0,s=null,u=null,c=document.createRange();i&&(null===s||null===u);){var d=i.nodeValue.length;r>=l&&r<=l+d&&c.setStart(s=i,r-l),a>=l&&a<=l+d&&c.setEnd(u=i,a-l),l+=d,i=i.nextSibling}r!==a&&c.deleteContents(),c.insertNode(o)}else e.appendChild(o)}else{var f=e.value;e.value=f.slice(0,r)+t+f.slice(a)}e.setSelectionRange(r+t.length,r+t.length);var p=document.createEvent("UIEvent");p.initEvent("input",!0,!1),e.dispatchEvent(p)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=n(0),o=n(2);t.SuggestionsDropdown=function(e){var t=e.classes,n=e.suggestions,i=e.caret,l=e.onSuggestionSelected,s=e.focusIndex,u=a.useCallback((function(e){e.preventDefault();var t=parseInt(e.currentTarget.attributes["data-index"].value);l(t)}),[n]),c=a.useCallback((function(e){return e.preventDefault()}),[]);return r.createElement("ul",{className:o.classNames("mde-suggestions",t),style:{left:i.left,top:i.top}},n.map((function(e,t){return r.createElement("li",{onClick:u,onMouseDown:c,key:t,"aria-selected":s===t?"true":"false","data-index":""+t},e.preview)})))}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(9)),r(n(40))},function(e,t,n){e.exports=n(14)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=n(16),o=n(20);n(42),n(44),n(45),n(46),a.render(r.createElement(o.App,null),document.getElementById("#app_container"))},function(e,t,n){"use strict"; + */Object.defineProperty(t,"__esModule",{value:!0}),t.insertText=function(e,t){if(e.focus(),document.selection){var n=document.selection.createRange();return n.text=t,n.collapse(!1),void n.select()}if(!document.execCommand("insertText",!1,t)){var r=e.selectionStart,a=e.selectionEnd;if("function"==typeof e.setRangeText)e.setRangeText(t);else if(function(e){if("TEXTAREA"!==e.nodeName)return!1;var t;if(void 0===t){var n=document.createElement("textarea");n.value="1",t=!!n.firstChild}return t}(e)){var o=document.createTextNode(t),i=e.firstChild;if(i){for(var l=0,s=null,u=null,c=document.createRange();i&&(null===s||null===u);){var d=i.nodeValue.length;r>=l&&r<=l+d&&c.setStart(s=i,r-l),a>=l&&a<=l+d&&c.setEnd(u=i,a-l),l+=d,i=i.nextSibling}r!==a&&c.deleteContents(),c.insertNode(o)}else e.appendChild(o)}else{var f=e.value;e.value=f.slice(0,r)+t+f.slice(a)}e.setSelectionRange(r+t.length,r+t.length);var p=document.createEvent("UIEvent");p.initEvent("input",!0,!1),e.dispatchEvent(p)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=n(0),o=n(2);t.SuggestionsDropdown=function(e){var t=e.classes,n=e.suggestions,i=e.caret,l=e.onSuggestionSelected,s=e.focusIndex,u=a.useCallback((function(e){e.preventDefault();var t=parseInt(e.currentTarget.attributes["data-index"].value);l(t)}),[n]),c=a.useCallback((function(e){return e.preventDefault()}),[]);return r.createElement("ul",{className:o.classNames("mde-suggestions",t),style:{left:i.left,top:i.top}},n.map((function(e,t){return r.createElement("li",{onClick:u,onMouseDown:c,key:t,"aria-selected":s===t?"true":"false","data-index":""+t},e.preview)})))}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(9)),r(n(38))},function(e,t,n){e.exports=n(14)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=n(16),o=n(20);n(42),n(44),n(45),n(46),a.render(r.createElement(o.App,null),document.getElementById("#app_container"))},function(e,t,n){"use strict"; /** @license React v16.12.0 * react.production.min.js * @@ -21,7 +21,7 @@ object-assign * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=n(4),a="function"==typeof Symbol&&Symbol.for,o=a?Symbol.for("react.element"):60103,i=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,u=a?Symbol.for("react.profiler"):60114,c=a?Symbol.for("react.provider"):60109,d=a?Symbol.for("react.context"):60110,f=a?Symbol.for("react.forward_ref"):60112,p=a?Symbol.for("react.suspense"):60113;a&&Symbol.for("react.suspense_list");var h=a?Symbol.for("react.memo"):60115,m=a?Symbol.for("react.lazy"):60116;a&&Symbol.for("react.fundamental"),a&&Symbol.for("react.responder"),a&&Symbol.for("react.scope");var g="function"==typeof Symbol&&Symbol.iterator;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nj.length&&j.push(e)}function A(e,t,n){return null==e?0:function e(t,n,r,a){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var s=!1;if(null===t)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case o:case i:s=!0}}if(s)return r(a,t,""===n?"."+L(t,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;uj.length&&j.push(e)}function A(e,t,n){return null==e?0:function e(t,n,r,a){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var s=!1;if(null===t)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case o:case i:s=!0}}if(s)return r(a,t,""===n?"."+L(t,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u