📂 File Manager
📝 Edit File: notices.min.js
/*! This file is auto-generated */ (()=>{"use strict";var e={d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{store:()=>b});var n={};e.r(n),e.d(n,{createErrorNotice:()=>E,createInfoNotice:()=>f,createNotice:()=>l,createSuccessNotice:()=>d,createWarningNotice:()=>p,removeAllNotices:()=>O,removeNotice:()=>y,removeNotices:()=>N});var i={};e.r(i),e.d(i,{getNotices:()=>_});const r=window.wp.data,o=e=>t=>(n={},i)=>{const r=i[e];if(void 0===r)return n;const o=t(n[r],i);return o===n[r]?n:{...n,[r]:o}},c=o("context")(((e=[],t)=>{switch(t.type){case"CREATE_NOTICE":return[...e.filter((({id:e})=>e!==t.notice.id)),t.notice];case"REMOVE_NOTICE":return e.filter((({id:e})=>e!==t.id));case"REMOVE_NOTICES":return e.filter((({id:e})=>!t.ids.includes(e)));case"REMOVE_ALL_NOTICES":return e.filter((({type:e})=>e!==t.noticeType))}return e})),s="global",u="info";let a=0;function l(e=u,t,n={}){const{speak:i=!0,isDismissible:r=!0,context:o=s,id:c=`${o}${++a}`,actions:l=[],type:d="default",__unstableHTML:f,icon:E=null,explicitDismiss:p=!1,onDismiss:y}=n;return{type:"CREATE_NOTICE",context:o,notice:{id:c,status:e,content:t=String(t),spokenMessage:i?t:null,__unstableHTML:f,isDismissible:r,actions:l,type:d,icon:E,explicitDismiss:p,onDismiss:y}}}function d(e,t){return l("success",e,t)}function f(e,t){return l("info",e,t)}function E(e,t){return l("error",e,t)}function p(e,t){return l("warning",e,t)}function y(e,t=s){return{type:"REMOVE_NOTICE",id:e,context:t}}function O(e="default",t=s){return{type:"REMOVE_ALL_NOTICES",noticeType:e,context:t}}function N(e,t=s){return{type:"REMOVE_NOTICES",ids:e,context:t}}const T=[];function _(e,t=s){return e[t]||T}const b=(0,r.createReduxStore)("core/notices",{reducer:c,actions:n,selectors:i});(0,r.register)(b),(window.wp=window.wp||{}).notices=t})();
Cancel
Type
Item Name
Actions
📁
..
📁
development
✏️
📁
script-modules
✏️
📁
vendor
✏️
📄
a11y.js
✏️
📝
📄
a11y.min.js
✏️
📝
📄
annotations.js
✏️
📝
📄
annotations.min.js
✏️
📝
📄
api-fetch.js
✏️
📝
📄
api-fetch.min.js
✏️
📝
📄
autop.js
✏️
📝
📄
autop.min.js
✏️
📝
📄
blob.js
✏️
📝
📄
blob.min.js
✏️
📝
📄
block-directory.js
✏️
📝
📄
block-directory.min.js
✏️
📝
📄
block-editor.js
✏️
📝
📄
block-editor.min.js
✏️
📝
📄
block-library.js
✏️
📝
📄
block-library.min.js
✏️
📝
📄
block-serialization-default-parser.js
✏️
📝
📄
block-serialization-default-parser.min.js
✏️
📝
📄
blocks.js
✏️
📝
📄
blocks.min.js
✏️
📝
📄
commands.js
✏️
📝
📄
commands.min.js
✏️
📝
📄
components.js
✏️
📝
📄
components.min.js
✏️
📝
📄
compose.js
✏️
📝
📄
compose.min.js
✏️
📝
📄
core-commands.js
✏️
📝
📄
core-commands.min.js
✏️
📝
📄
core-data.js
✏️
📝
📄
core-data.min.js
✏️
📝
📄
customize-widgets.js
✏️
📝
📄
customize-widgets.min.js
✏️
📝
📄
data-controls.js
✏️
📝
📄
data-controls.min.js
✏️
📝
📄
data.js
✏️
📝
📄
data.min.js
✏️
📝
📄
date.js
✏️
📝
📄
date.min.js
✏️
📝
📄
deprecated.js
✏️
📝
📄
deprecated.min.js
✏️
📝
📄
dom-ready.js
✏️
📝
📄
dom-ready.min.js
✏️
📝
📄
dom.js
✏️
📝
📄
dom.min.js
✏️
📝
📄
edit-post.js
✏️
📝
📄
edit-post.min.js
✏️
📝
📄
edit-site.js
✏️
📝
📄
edit-site.min.js
✏️
📝
📄
edit-widgets.js
✏️
📝
📄
edit-widgets.min.js
✏️
📝
📄
editor.js
✏️
📝
📄
editor.min.js
✏️
📝
📄
element.js
✏️
📝
📄
element.min.js
✏️
📝
📄
escape-html.js
✏️
📝
📄
escape-html.min.js
✏️
📝
📄
fields.js
✏️
📝
📄
fields.min.js
✏️
📝
📄
format-library.js
✏️
📝
📄
format-library.min.js
✏️
📝
📄
hooks.js
✏️
📝
📄
hooks.min.js
✏️
📝
📄
html-entities.js
✏️
📝
📄
html-entities.min.js
✏️
📝
📄
i18n.js
✏️
📝
📄
i18n.min.js
✏️
📝
📄
is-shallow-equal.js
✏️
📝
📄
is-shallow-equal.min.js
✏️
📝
📄
keyboard-shortcuts.js
✏️
📝
📄
keyboard-shortcuts.min.js
✏️
📝
📄
keycodes.js
✏️
📝
📄
keycodes.min.js
✏️
📝
📄
list-reusable-blocks.js
✏️
📝
📄
list-reusable-blocks.min.js
✏️
📝
📄
media-utils.js
✏️
📝
📄
media-utils.min.js
✏️
📝
📄
notices.js
✏️
📝
📄
notices.min.js
✏️
📝
📄
nux.js
✏️
📝
📄
nux.min.js
✏️
📝
📄
patterns.js
✏️
📝
📄
patterns.min.js
✏️
📝
📄
plugins.js
✏️
📝
📄
plugins.min.js
✏️
📝
📄
preferences-persistence.js
✏️
📝
📄
preferences-persistence.min.js
✏️
📝
📄
preferences.js
✏️
📝
📄
preferences.min.js
✏️
📝
📄
primitives.js
✏️
📝
📄
primitives.min.js
✏️
📝
📄
priority-queue.js
✏️
📝
📄
priority-queue.min.js
✏️
📝
📄
private-apis.js
✏️
📝
📄
private-apis.min.js
✏️
📝
📄
redux-routine.js
✏️
📝
📄
redux-routine.min.js
✏️
📝
📄
reusable-blocks.js
✏️
📝
📄
reusable-blocks.min.js
✏️
📝
📄
rich-text.js
✏️
📝
📄
rich-text.min.js
✏️
📝
📄
router.js
✏️
📝
📄
router.min.js
✏️
📝
📄
server-side-render.js
✏️
📝
📄
server-side-render.min.js
✏️
📝
📄
shortcode.js
✏️
📝
📄
shortcode.min.js
✏️
📝
📄
style-engine.js
✏️
📝
📄
style-engine.min.js
✏️
📝
📄
token-list.js
✏️
📝
📄
token-list.min.js
✏️
📝
📄
undo-manager.js
✏️
📝
📄
undo-manager.min.js
✏️
📝
📄
url.js
✏️
📝
📄
url.min.js
✏️
📝
📄
viewport.js
✏️
📝
📄
viewport.min.js
✏️
📝
📄
warning.js
✏️
📝
📄
warning.min.js
✏️
📝
📄
widgets.js
✏️
📝
📄
widgets.min.js
✏️
📝
📄
wordcount.js
✏️
📝
📄
wordcount.min.js
✏️
📝