mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-10 14:48:07 +02:00
The following package versions were changed: @wordpress/annotations: 1.12.0 -> 1.12.1 @wordpress/block-directory: 1.5.2 -> 1.5.3 @wordpress/block-editor: 3.7.2 -> 3.7.3 @wordpress/block-library: 2.14.2 -> 2.14.3 @wordpress/blocks: 6.12.0 -> 6.12.1 @wordpress/components: 9.2.2 -> 9.2.3 @wordpress/core-data: 2.12.0 -> 2.12.1 @wordpress/data: 4.14.0 -> 4.14.1 @wordpress/data-controls: 1.8.0 -> 1.8.1 @wordpress/edit-post: 3.13.2 -> 3.13.3 @wordpress/editor: 9.12.2 -> 9.12.3 @wordpress/format-library: 1.14.2 -> 1.14.3 @wordpress/keyboard-shortcuts: 1.1.0 -> 1.1.1 @wordpress/list-reusable-blocks: 1.13.2 -> 1.13.3 @wordpress/notices: 2.0.0 -> 2.0.1 @wordpress/nux: 3.12.2 -> 3.12.3 @wordpress/priority-queue: 1.5.0 -> 1.5.1 @wordpress/rich-text: 3.12.0 -> 3.12.1 @wordpress/server-side-render: 1.8.2 -> 1.8.3 @wordpress/viewport: 2.13.0 -> 2.13.1 Props aduth. Fixes: #49567. Built from https://develop.svn.wordpress.org/trunk@47408 git-svn-id: http://core.svn.wordpress.org/trunk@47195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2 lines
8.2 KiB
JavaScript
2 lines
8.2 KiB
JavaScript
/*! This file is auto-generated */
|
|
this.wp=this.wp||{},this.wp.nux=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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=438)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},115:function(e,t,n){"use strict";var r=n(0),i=n(9),o=Object(r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(i.Path,{d:"M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"}));t.a=o},18:function(e,t,n){"use strict";var r=n(32);function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",(function(){return i}))},2:function(e,t){!function(){e.exports=this.lodash}()},22:function(e,t,n){"use strict";var r=n(36);var i=n(37);function o(e,t){return Object(r.a)(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var u,c=e[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}}(e,t)||Object(i.a)()}n.d(t,"a",(function(){return o}))},3:function(e,t){!function(){e.exports=this.wp.components}()},32:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},35:function(e,t){!function(){e.exports=this.wp.deprecated}()},36:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},37:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",(function(){return r}))},38:function(e,t,n){"use strict";var r,i;function o(e){return[e]}function u(){var e={clear:function(){e.head=null}};return e}function c(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},i="undefined"!=typeof WeakMap,t.a=function(e,t){var n,a;function s(){n=i?new WeakMap:u()}function l(){var n,r,i,o,u,s=arguments.length;for(o=new Array(s),i=0;i<s;i++)o[i]=arguments[i];for(u=t.apply(null,o),(n=a(u)).isUniqueByDependants||(n.lastDependants&&!c(u,n.lastDependants,0)&&n.clear(),n.lastDependants=u),r=n.head;r;){if(c(r.args,o,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,o)},o[0]=null,r.args=o,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=o),a=i?function(e){var t,i,o,c,a,s=n,l=!0;for(t=0;t<e.length;t++){if(i=e[t],!(a=i)||"object"!=typeof a){l=!1;break}s.has(i)?s=s.get(i):(o=new WeakMap,s.set(i,o),s=o)}return s.has(r)||((c=u()).isUniqueByDependants=l,s.set(r,c)),s.get(r)}:function(){return n},l.getDependants=t,l.clear=s,s(),l}},4:function(e,t){!function(){e.exports=this.wp.data}()},438:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"triggerGuide",(function(){return d})),n.d(r,"dismissTip",(function(){return b})),n.d(r,"disableTips",(function(){return v})),n.d(r,"enableTips",(function(){return h}));var i={};n.r(i),n.d(i,"getAssociatedGuide",(function(){return g})),n.d(i,"isTipVisible",(function(){return m})),n.d(i,"areTipsEnabled",(function(){return w}));var o=n(35),u=n.n(o),c=n(4),a=n(5),s=n(18);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var f=Object(c.combineReducers)({areTipsEnabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"DISABLE_TIPS":return!1;case"ENABLE_TIPS":return!0}return e},dismissedTips:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISMISS_TIP":return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,Object(a.a)({},t.id,!0));case"ENABLE_TIPS":return{}}return e}}),p=Object(c.combineReducers)({guides:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TRIGGER_GUIDE":return[].concat(Object(s.a)(e),[t.tipIds])}return e},preferences:f});function d(e){return{type:"TRIGGER_GUIDE",tipIds:e}}function b(e){return{type:"DISMISS_TIP",id:e}}function v(){return{type:"DISABLE_TIPS"}}function h(){return{type:"ENABLE_TIPS"}}var O=n(22),y=n(38),j=n(2),g=Object(y.a)((function(e,t){var n=!0,r=!1,i=void 0;try{for(var o,u=e.guides[Symbol.iterator]();!(n=(o=u.next()).done);n=!0){var c=o.value;if(Object(j.includes)(c,t)){var a=Object(j.difference)(c,Object(j.keys)(e.preferences.dismissedTips)),s=Object(O.a)(a,2),l=s[0],f=void 0===l?null:l,p=s[1];return{tipIds:c,currentTipId:f,nextTipId:void 0===p?null:p}}}}catch(e){r=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(r)throw i}}return null}),(function(e){return[e.guides,e.preferences.dismissedTips]}));function m(e,t){if(!e.preferences.areTipsEnabled)return!1;if(Object(j.has)(e.preferences.dismissedTips,[t]))return!1;var n=g(e,t);return!n||n.currentTipId===t}function w(e){return e.preferences.areTipsEnabled}Object(c.registerStore)("core/nux",{reducer:p,actions:r,selectors:i,persist:["preferences"]});var x=n(0),T=n(8),S=n(3),I=n(1),E=n(115);function P(e){e.stopPropagation()}var _=Object(T.compose)(Object(c.withSelect)((function(e,t){var n=t.tipId,r=e("core/nux"),i=r.isTipVisible,o=(0,r.getAssociatedGuide)(n);return{isVisible:i(n),hasNextTip:!(!o||!o.nextTipId)}})),Object(c.withDispatch)((function(e,t){var n=t.tipId,r=e("core/nux"),i=r.dismissTip,o=r.disableTips;return{onDismiss:function(){i(n)},onDisable:function(){o()}}})))((function(e){var t=e.position,n=void 0===t?"middle right":t,r=e.children,i=e.isVisible,o=e.hasNextTip,u=e.onDismiss,c=e.onDisable,a=Object(x.useRef)(null),s=Object(x.useCallback)((function(e){a.current&&(a.current.contains(e.relatedTarget)||c())}),[c,a]);return i?Object(x.createElement)(S.Popover,{className:"nux-dot-tip",position:n,noArrow:!0,focusOnMount:"container",shouldAnchorIncludePadding:!0,role:"dialog","aria-label":Object(I.__)("Editor tips"),onClick:P,onFocusOutside:s},Object(x.createElement)("p",null,r),Object(x.createElement)("p",null,Object(x.createElement)(S.Button,{isLink:!0,onClick:u},o?Object(I.__)("See next tip"):Object(I.__)("Got it"))),Object(x.createElement)(S.Button,{className:"nux-dot-tip__disable",icon:E.a,label:Object(I.__)("Disable tips"),onClick:c})):null}));n.d(t,"DotTip",(function(){return _})),u()("wp.nux",{hint:"wp.components.Guide can be used to show a user guide."})},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},8:function(e,t){!function(){e.exports=this.wp.compose}()},9:function(e,t){!function(){e.exports=this.wp.primitives}()}}); |