wp/wp-includes/js/dist/notices.js
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
    61 __webpack_require__.r(selectors_namespaceObject);
    61 __webpack_require__.r(selectors_namespaceObject);
    62 __webpack_require__.d(selectors_namespaceObject, {
    62 __webpack_require__.d(selectors_namespaceObject, {
    63   getNotices: () => (getNotices)
    63   getNotices: () => (getNotices)
    64 });
    64 });
    65 
    65 
    66 ;// CONCATENATED MODULE: external ["wp","data"]
    66 ;// external ["wp","data"]
    67 const external_wp_data_namespaceObject = window["wp"]["data"];
    67 const external_wp_data_namespaceObject = window["wp"]["data"];
    68 ;// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/utils/on-sub-key.js
    68 ;// ./node_modules/@wordpress/notices/build-module/store/utils/on-sub-key.js
    69 /**
    69 /**
    70  * Higher-order reducer creator which creates a combined reducer object, keyed
    70  * Higher-order reducer creator which creates a combined reducer object, keyed
    71  * by a property on the action object.
    71  * by a property on the action object.
    72  *
    72  *
    73  * @param {string} actionProperty Action property by which to key object.
    73  * @param {string} actionProperty Action property by which to key object.
    93     [key]: nextKeyState
    93     [key]: nextKeyState
    94   };
    94   };
    95 };
    95 };
    96 /* harmony default export */ const on_sub_key = (onSubKey);
    96 /* harmony default export */ const on_sub_key = (onSubKey);
    97 
    97 
    98 ;// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/reducer.js
    98 ;// ./node_modules/@wordpress/notices/build-module/store/reducer.js
    99 /**
    99 /**
   100  * Internal dependencies
   100  * Internal dependencies
   101  */
   101  */
   102 
   102 
   103 
   103 
   132   }
   132   }
   133   return state;
   133   return state;
   134 });
   134 });
   135 /* harmony default export */ const reducer = (notices);
   135 /* harmony default export */ const reducer = (notices);
   136 
   136 
   137 ;// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/constants.js
   137 ;// ./node_modules/@wordpress/notices/build-module/store/constants.js
   138 /**
   138 /**
   139  * Default context to use for notice grouping when not otherwise specified. Its
   139  * Default context to use for notice grouping when not otherwise specified. Its
   140  * specific value doesn't hold much meaning, but it must be reasonably unique
   140  * specific value doesn't hold much meaning, but it must be reasonably unique
   141  * and, more importantly, referenced consistently in the store implementation.
   141  * and, more importantly, referenced consistently in the store implementation.
   142  *
   142  *
   149  *
   149  *
   150  * @type {string}
   150  * @type {string}
   151  */
   151  */
   152 const DEFAULT_STATUS = 'info';
   152 const DEFAULT_STATUS = 'info';
   153 
   153 
   154 ;// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/actions.js
   154 ;// ./node_modules/@wordpress/notices/build-module/store/actions.js
   155 /**
   155 /**
   156  * Internal dependencies
   156  * Internal dependencies
   157  */
   157  */
   158 
   158 
   159 
   159 
   564     ids,
   564     ids,
   565     context
   565     context
   566   };
   566   };
   567 }
   567 }
   568 
   568 
   569 ;// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/selectors.js
   569 ;// ./node_modules/@wordpress/notices/build-module/store/selectors.js
   570 /**
   570 /**
   571  * Internal dependencies
   571  * Internal dependencies
   572  */
   572  */
   573 
   573 
   574 
   574 
   639  */
   639  */
   640 function getNotices(state, context = DEFAULT_CONTEXT) {
   640 function getNotices(state, context = DEFAULT_CONTEXT) {
   641   return state[context] || DEFAULT_NOTICES;
   641   return state[context] || DEFAULT_NOTICES;
   642 }
   642 }
   643 
   643 
   644 ;// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/index.js
   644 ;// ./node_modules/@wordpress/notices/build-module/store/index.js
   645 /**
   645 /**
   646  * WordPress dependencies
   646  * WordPress dependencies
   647  */
   647  */
   648 
   648 
   649 
   649 
   664   actions: actions_namespaceObject,
   664   actions: actions_namespaceObject,
   665   selectors: selectors_namespaceObject
   665   selectors: selectors_namespaceObject
   666 });
   666 });
   667 (0,external_wp_data_namespaceObject.register)(store);
   667 (0,external_wp_data_namespaceObject.register)(store);
   668 
   668 
   669 ;// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/index.js
   669 ;// ./node_modules/@wordpress/notices/build-module/index.js
   670 
   670 
   671 
   671 
   672 (window.wp = window.wp || {}).notices = __webpack_exports__;
   672 (window.wp = window.wp || {}).notices = __webpack_exports__;
   673 /******/ })()
   673 /******/ })()
   674 ;
   674 ;