diff --git a/docs/bundle-prod.js b/docs/bundle-prod.js index fe014e1..af8985b 100644 --- a/docs/bundle-prod.js +++ b/docs/bundle-prod.js @@ -14,28 +14,28 @@ object-assign Copyright (c) 2018 Dmitriy Kubyshkin Copied from https://github.com/grassator/insert-text-at-cursor */Object.defineProperty(t,"__esModule",{value:!0}),t.insertText=void 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}),t.SuggestionsDropdown=void 0;var r=n(0),a=n(2);t.SuggestionsDropdown=function(e){var t=e.classes,n=e.suggestions,o=e.caret,i=e.onSuggestionSelected,l=e.suggestionsAutoplace,s=e.focusIndex,u=e.textAreaRef,c=function(e){e.preventDefault();var t=parseInt(e.currentTarget.attributes["data-index"].value);i(t)},d=function(e){return e.preventDefault()},f=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),p=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),h=o.left-u.current.scrollLeft,m=o.top-u.current.scrollTop,g={};return l&&m+u.current.getBoundingClientRect().top>p/2?g.bottom=u.current.offsetHeight-m:g.top=m,l&&h+u.current.getBoundingClientRect().left>f/2?g.right=u.current.offsetWidth-h:g.left=h,r.createElement("ul",{className:a.classNames("mde-suggestions",t),style:g},n.map((function(e,t){return r.createElement("li",{onClick:c,onMouseDown:d,key:t,"aria-selected":s===t?"true":"false","data-index":""+t},e.preview)})))}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(9),t),a(n(39),t)},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(43),n(45),n(46),n(47),a.render(r.createElement(o.App,null),document.getElementById("#app_container"))},function(e,t,n){"use strict"; -/** @license React v16.13.1 +/** @license React v17.0.2 * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * 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,h=a?Symbol.for("react.memo"):60115,m=a?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nM.length&&M.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?"."+N(t,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u