mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 22:56:19 +01:00
80ce372761
Updated packages: @wordpress/annotations: 1.7.2 -> 1.9.0 @wordpress/api-fetch: 3.6.4 -> 3.8.0 @wordpress/block-directory: 1.0.5 -> 1.2.0 @wordpress/block-editor: 3.2.5 -> 3.4.0 @wordpress/block-library: 2.9.6 -> 2.11.0 @wordpress/blocks: 6.7.2 -> 6.9.0 @wordpress/components: 8.3.2 -> 8.5.0 @wordpress/compose: 3.7.2 -> 3.9.0 @wordpress/core-data: 2.7.5 -> 2.9.0 @wordpress/data: 4.9.2 -> 4.11.0 @wordpress/data-controls: 1.3.4 -> 1.5.0 @wordpress/date: 3.5.0 -> 3.7.0 @wordpress/dom: 2.5.2 -> 2.6.0 @wordpress/e2e-test-utils: 3.0.0 -> 4.0.0 @wordpress/edit-post: 3.8.6 -> 3.10.0 @wordpress/editor: 9.7.6 -> 9.9.0 @wordpress/element: 2.8.2 -> 2.10.0 @wordpress/escape-html: 1.5.1 -> 1.6.0 @wordpress/format-library: 1.9.5 -> 1.11.0 @wordpress/i18n: 3.6.1 -> 3.7.0 @wordpress/keycodes: 2.6.2 -> 2.7.0 @wordpress/list-reusable-blocks: 1.8.4 -> 1.10.0 @wordpress/media-utils: 1.2.4 -> 1.4.0 @wordpress/notices: 1.8.2 -> 1.10.0 @wordpress/nux: 3.7.2 -> 3.9.0 @wordpress/plugins: 2.7.2 -> 2.9.0 @wordpress/rich-text: 3.7.2 -> 3.9.0 @wordpress/scripts: 6.0.0 -> 6.1.1 @wordpress/server-side-render: 1.3.4 -> 1.5.0 @wordpress/shortcode: 2.4.1 -> 2.5.0 @wordpress/token-list: 1.6.1 -> 1.8.0 @wordpress/url: 2.8.2 -> 2.9.0 @wordpress/viewport: 2.8.2 -> 2.10.0 Props gziolo, youknowriad. Fixes #49142. Built from https://develop.svn.wordpress.org/trunk@47051 git-svn-id: http://core.svn.wordpress.org/trunk@46851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2 lines
7.5 KiB
JavaScript
2 lines
7.5 KiB
JavaScript
/*! This file is auto-generated */
|
||
this.wp=this.wp||{},this.wp.dom=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=386)}({2:function(e,t){!function(){e.exports=this.lodash}()},386:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"find",(function(){return u}));var o={};n.r(o),n.d(o,"isTabbableIndex",(function(){return d})),n.d(o,"find",(function(){return p}));var i=["[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",");function a(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function u(e){var t=e.querySelectorAll(i);return Array.from(t).filter((function(e){return!!a(e)&&("AREA"!==e.nodeName||function(e){var t=e.closest("map[name]");if(!t)return!1;var n=document.querySelector('img[usemap="#'+t.name+'"]');return!!n&&a(n)}(e))}))}var l=n(2);function c(e){var t=e.getAttribute("tabindex");return null===t?0:parseInt(t,10)}function d(e){return-1!==c(e)}function f(e,t){return{element:e,index:t}}function s(e){return e.element}function g(e,t){var n=c(e.element),r=c(t.element);return n===r?e.index-t.index:n-r}function p(e){return u(e).filter(d).map(f).sort(g).map(s).reduce((t={},function(e,n){var r=n.nodeName,o=n.type,i=n.checked,a=n.name;if("INPUT"!==r||"radio"!==o||!a)return e.concat(n);var u=t.hasOwnProperty(a);if(!i&&u)return e;if(u){var c=t[a];e=Object(l.without)(e,c)}return t[a]=n,e.concat(n)}),[]);var t}var v=window.getComputedStyle,m=window.Node,h=m.TEXT_NODE,b=m.ELEMENT_NODE,C=m.DOCUMENT_POSITION_PRECEDING,N=m.DOCUMENT_POSITION_FOLLOWING;function E(e,t,n){if(Object(l.includes)(["INPUT","TEXTAREA"],e.tagName))return e.selectionStart===e.selectionEnd&&(t?0===e.selectionStart:e.value.length===e.selectionStart);if(!e.isContentEditable)return!0;var r=window.getSelection();if(!r.rangeCount)return!1;var o=r.getRangeAt(0).cloneRange(),i=function(e){var t=e.anchorNode,n=e.focusNode,r=e.anchorOffset,o=e.focusOffset,i=t.compareDocumentPosition(n);return!(i&C)&&(!!(i&N)||(0!==i||r<=o))}(r),a=r.isCollapsed;a||o.collapse(!i);var u=w(o);if(!u)return!1;var c=window.getComputedStyle(e),d=parseInt(c.lineHeight,10)||0;if(!a&&u.height>d&&i===t)return!1;var f=parseInt(c["padding".concat(t?"Top":"Bottom")],10)||0,s=3*parseInt(d,10)/4,g=e.getBoundingClientRect();if(!(t?g.top+f>u.top-s:g.bottom-f<u.bottom+s))return!1;if(n)return!0;var p="rtl"===c.direction?!t:t,v=p?g.left+1:g.right-1,m=t?g.top+s:g.bottom-s,h=O(document,v,m,e);if(!h)return!1;var b=p?"left":"right",E=w(h);return Math.abs(E[b]-u[b])<=1}function R(e,t){return E(e,t)}function y(e,t){return E(e,t,!0)}function w(e){if(!e.collapsed)return e.getBoundingClientRect();var t=e.startContainer;if("BR"===t.nodeName){var n=t.parentNode,r=Array.from(n.childNodes).indexOf(t);(e=document.createRange()).setStart(n,r),e.setEnd(n,r)}var o=e.getClientRects()[0];if(!o){var i=document.createTextNode("");(e=e.cloneRange()).insertNode(i),o=e.getClientRects()[0],i.parentNode.removeChild(i)}return o}function S(){var e=window.getSelection(),t=e.rangeCount?e.getRangeAt(0):null;if(t)return w(t)}function T(e,t){if(e){if(Object(l.includes)(["INPUT","TEXTAREA"],e.tagName))return e.focus(),void(t?(e.selectionStart=e.value.length,e.selectionEnd=e.value.length):(e.selectionStart=0,e.selectionEnd=0));if(e.focus(),e.isContentEditable){var n=e[t?"lastChild":"firstChild"];if(n){var r=window.getSelection(),o=document.createRange();o.selectNodeContents(n),o.collapse(!t),r.removeAllRanges(),r.addRange(o)}}}}function O(e,t,n,r){var o=r.style.zIndex,i=r.style.position;r.style.zIndex="10000",r.style.position="relative";var a=function(e,t,n){if(e.caretRangeFromPoint)return e.caretRangeFromPoint(t,n);if(!e.caretPositionFromPoint)return null;var r=e.caretPositionFromPoint(t,n);if(!r)return null;var o=e.createRange();return o.setStart(r.offsetNode,r.offset),o.collapse(!0),o}(e,t,n);return r.style.zIndex=o,r.style.position=i,a}function A(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e)if(n&&e.isContentEditable){var o=n.height/2,i=e.getBoundingClientRect(),a=n.left,u=t?i.bottom-o:i.top+o,l=O(document,a,u,e);if(!l||!e.contains(l.startContainer))return!r||l&&l.startContainer&&l.startContainer.contains(e)?void T(e,t):(e.scrollIntoView(t),void A(e,t,n,!1));var c=window.getSelection();c.removeAllRanges(),c.addRange(l),e.focus(),c.removeAllRanges(),c.addRange(l)}else T(e,t)}function P(e){try{var t=e.nodeName,n=e.selectionStart,r=e.contentEditable;return"INPUT"===t&&null!==n||"TEXTAREA"===t||"true"===r}catch(e){return!1}}function x(){if(P(document.activeElement))return!0;var e=window.getSelection(),t=e.rangeCount?e.getRangeAt(0):null;return t&&!t.collapsed}function I(e){if(Object(l.includes)(["INPUT","TEXTAREA"],e.nodeName))return 0===e.selectionStart&&e.value.length===e.selectionEnd;if(!e.isContentEditable)return!0;var t=window.getSelection(),n=t.rangeCount?t.getRangeAt(0):null;if(!n)return!0;var r=n.startContainer,o=n.endContainer,i=n.startOffset,a=n.endOffset;if(r===e&&o===e&&0===i&&a===e.childNodes.length)return!0;var u=e.lastChild,c=u.nodeType===h?u.data.length:u.childNodes.length;return r===e.firstChild&&o===e.lastChild&&0===i&&a===c}function j(e){if(e){if(e.scrollHeight>e.clientHeight){var t=window.getComputedStyle(e).overflowY;if(/(auto|scroll)/.test(t))return e}return j(e.parentNode)}}function _(e){for(var t;(t=e.parentNode)&&t.nodeType!==b;);return t?"static"!==v(t).position?t:t.offsetParent:null}function B(e,t){D(t,e.parentNode),M(e)}function M(e){e.parentNode.removeChild(e)}function D(e,t){t.parentNode.insertBefore(e,t.nextSibling)}function F(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}function H(e,t){for(var n=e.ownerDocument.createElement(t);e.firstChild;)n.appendChild(e.firstChild);return e.parentNode.replaceChild(n,e),n}function U(e,t){t.parentNode.insertBefore(e,t),e.appendChild(t)}n.d(t,"focus",(function(){return z})),n.d(t,"isHorizontalEdge",(function(){return R})),n.d(t,"isVerticalEdge",(function(){return y})),n.d(t,"getRectangleFromRange",(function(){return w})),n.d(t,"computeCaretRect",(function(){return S})),n.d(t,"placeCaretAtHorizontalEdge",(function(){return T})),n.d(t,"placeCaretAtVerticalEdge",(function(){return A})),n.d(t,"isTextField",(function(){return P})),n.d(t,"documentHasSelection",(function(){return x})),n.d(t,"isEntirelySelected",(function(){return I})),n.d(t,"getScrollContainer",(function(){return j})),n.d(t,"getOffsetParent",(function(){return _})),n.d(t,"replace",(function(){return B})),n.d(t,"remove",(function(){return M})),n.d(t,"insertAfter",(function(){return D})),n.d(t,"unwrap",(function(){return F})),n.d(t,"replaceTag",(function(){return H})),n.d(t,"wrap",(function(){return U}));var z={focusable:r,tabbable:o}}}); |