Socket
Socket
Sign inDemoInstall

@wordpress/notices

Package Overview
Dependencies
Maintainers
12
Versions
198
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/notices - npm Package Compare versions

Comparing version 1.7.0 to 1.8.0

59

build-module/store/actions.js

@@ -19,21 +19,20 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";

*
* @param {?string} status Notice status.
* Defaults to `info`.
* @param {string} content Notice message.
* @param {?Object} options Notice options.
* @param {?string} options.context Context under which to
* group notice.
* @param {?string} options.id Identifier for notice.
* Automatically assigned
* if not specified.
* @param {?boolean} options.isDismissible Whether the notice can
* be dismissed by user.
* Defaults to `true`.
* @param {?boolean} options.speak Whether the notice
* content should be
* announced to screen
* readers. Defaults to
* `true`.
* @param {?Array<WPNoticeAction>} options.actions User actions to be
* presented with notice.
* @param {string} [status='info'] Notice status.
* @param {string} content Notice message.
* @param {Object} [options] Notice options.
* @param {string} [options.context='global'] Context under which to
* group notice.
* @param {string} [options.id] Identifier for notice.
* Automatically assigned
* if not specified.
* @param {boolean} [options.isDismissible=true] Whether the notice can
* be dismissed by user.
* @param {string} [options.type='default'] Type of notice, one of
* `default`, or `snackbar`.
* @param {boolean} [options.speak=true] Whether the notice
* content should be
* announced to screen
* readers.
* @param {Array<WPNoticeAction>} [options.actions] User actions to be
* presented with notice.
*/

@@ -114,4 +113,4 @@

*
* @param {string} content Notice message.
* @param {?Object} options Optional notice options.
* @param {string} content Notice message.
* @param {Object} [options] Optional notice options.
*

@@ -130,4 +129,4 @@ * @return {Object} Action object.

*
* @param {string} content Notice message.
* @param {?Object} options Optional notice options.
* @param {string} content Notice message.
* @param {Object} [options] Optional notice options.
*

@@ -146,4 +145,4 @@ * @return {Object} Action object.

*
* @param {string} content Notice message.
* @param {?Object} options Optional notice options.
* @param {string} content Notice message.
* @param {Object} [options] Optional notice options.
*

@@ -162,4 +161,4 @@ * @return {Object} Action object.

*
* @param {string} content Notice message.
* @param {?Object} options Optional notice options.
* @param {string} content Notice message.
* @param {Object} [options] Optional notice options.
*

@@ -175,5 +174,5 @@ * @return {Object} Action object.

*
* @param {string} id Notice unique identifier.
* @param {?string} context Optional context (grouping) in which the notice is
* intended to appear. Defaults to default context.
* @param {string} id Notice unique identifier.
* @param {string} [context='global'] Optional context (grouping) in which the notice is
* intended to appear. Defaults to default context.
*

@@ -180,0 +179,0 @@ * @return {Object} Action object.

@@ -31,2 +31,7 @@ /**

* user. Defaults to `true`.
* @property {string} type Type of notice, one of `default`,
* or `snackbar`. Defaults to `default`.
* @property {boolean} speak Whether the notice content should be
* announced to screen readers. Defaults to
* `true`.
* @property {WPNoticeAction[]} actions User actions to present with notice.

@@ -42,3 +47,3 @@ *

* browser navigation.
* @property {?Function} callback Optional function to invoke when action is
* @property {?Function} onClick Optional function to invoke when action is
* triggered by user.

@@ -45,0 +50,0 @@ *

@@ -28,21 +28,20 @@ "use strict";

*
* @param {?string} status Notice status.
* Defaults to `info`.
* @param {string} content Notice message.
* @param {?Object} options Notice options.
* @param {?string} options.context Context under which to
* group notice.
* @param {?string} options.id Identifier for notice.
* Automatically assigned
* if not specified.
* @param {?boolean} options.isDismissible Whether the notice can
* be dismissed by user.
* Defaults to `true`.
* @param {?boolean} options.speak Whether the notice
* content should be
* announced to screen
* readers. Defaults to
* `true`.
* @param {?Array<WPNoticeAction>} options.actions User actions to be
* presented with notice.
* @param {string} [status='info'] Notice status.
* @param {string} content Notice message.
* @param {Object} [options] Notice options.
* @param {string} [options.context='global'] Context under which to
* group notice.
* @param {string} [options.id] Identifier for notice.
* Automatically assigned
* if not specified.
* @param {boolean} [options.isDismissible=true] Whether the notice can
* be dismissed by user.
* @param {string} [options.type='default'] Type of notice, one of
* `default`, or `snackbar`.
* @param {boolean} [options.speak=true] Whether the notice
* content should be
* announced to screen
* readers.
* @param {Array<WPNoticeAction>} [options.actions] User actions to be
* presented with notice.
*/

@@ -122,4 +121,4 @@ function createNotice() {

*
* @param {string} content Notice message.
* @param {?Object} options Optional notice options.
* @param {string} content Notice message.
* @param {Object} [options] Optional notice options.
*

@@ -139,4 +138,4 @@ * @return {Object} Action object.

*
* @param {string} content Notice message.
* @param {?Object} options Optional notice options.
* @param {string} content Notice message.
* @param {Object} [options] Optional notice options.
*

@@ -156,4 +155,4 @@ * @return {Object} Action object.

*
* @param {string} content Notice message.
* @param {?Object} options Optional notice options.
* @param {string} content Notice message.
* @param {Object} [options] Optional notice options.
*

@@ -173,4 +172,4 @@ * @return {Object} Action object.

*
* @param {string} content Notice message.
* @param {?Object} options Optional notice options.
* @param {string} content Notice message.
* @param {Object} [options] Optional notice options.
*

@@ -187,5 +186,5 @@ * @return {Object} Action object.

*
* @param {string} id Notice unique identifier.
* @param {?string} context Optional context (grouping) in which the notice is
* intended to appear. Defaults to default context.
* @param {string} id Notice unique identifier.
* @param {string} [context='global'] Optional context (grouping) in which the notice is
* intended to appear. Defaults to default context.
*

@@ -192,0 +191,0 @@ * @return {Object} Action object.

@@ -39,2 +39,7 @@ "use strict";

* user. Defaults to `true`.
* @property {string} type Type of notice, one of `default`,
* or `snackbar`. Defaults to `default`.
* @property {boolean} speak Whether the notice content should be
* announced to screen readers. Defaults to
* `true`.
* @property {WPNoticeAction[]} actions User actions to present with notice.

@@ -50,3 +55,3 @@ *

* browser navigation.
* @property {?Function} callback Optional function to invoke when action is
* @property {?Function} onClick Optional function to invoke when action is
* triggered by user.

@@ -53,0 +58,0 @@ *

{
"name": "@wordpress/notices",
"version": "1.7.0",
"version": "1.8.0",
"description": "State management for notices.",

@@ -26,3 +26,3 @@ "author": "The WordPress Contributors",

"@wordpress/a11y": "^2.5.0",
"@wordpress/data": "^4.8.0",
"@wordpress/data": "^4.9.0",
"lodash": "^4.17.14"

@@ -33,3 +33,3 @@ },

},
"gitHead": "989502eccaadee1ea7666d6d9fb9f4d08b274546"
"gitHead": "4fd00581206f63b1854962e9aa23afded445b7ee"
}

@@ -14,21 +14,20 @@ /**

*
* @param {?string} status Notice status.
* Defaults to `info`.
* @param {string} content Notice message.
* @param {?Object} options Notice options.
* @param {?string} options.context Context under which to
* group notice.
* @param {?string} options.id Identifier for notice.
* Automatically assigned
* if not specified.
* @param {?boolean} options.isDismissible Whether the notice can
* be dismissed by user.
* Defaults to `true`.
* @param {?boolean} options.speak Whether the notice
* content should be
* announced to screen
* readers. Defaults to
* `true`.
* @param {?Array<WPNoticeAction>} options.actions User actions to be
* presented with notice.
* @param {string} [status='info'] Notice status.
* @param {string} content Notice message.
* @param {Object} [options] Notice options.
* @param {string} [options.context='global'] Context under which to
* group notice.
* @param {string} [options.id] Identifier for notice.
* Automatically assigned
* if not specified.
* @param {boolean} [options.isDismissible=true] Whether the notice can
* be dismissed by user.
* @param {string} [options.type='default'] Type of notice, one of
* `default`, or `snackbar`.
* @param {boolean} [options.speak=true] Whether the notice
* content should be
* announced to screen
* readers.
* @param {Array<WPNoticeAction>} [options.actions] User actions to be
* presented with notice.
*/

@@ -80,4 +79,4 @@ export function* createNotice( status = DEFAULT_STATUS, content, options = {} ) {

*
* @param {string} content Notice message.
* @param {?Object} options Optional notice options.
* @param {string} content Notice message.
* @param {Object} [options] Optional notice options.
*

@@ -96,4 +95,4 @@ * @return {Object} Action object.

*
* @param {string} content Notice message.
* @param {?Object} options Optional notice options.
* @param {string} content Notice message.
* @param {Object} [options] Optional notice options.
*

@@ -112,4 +111,4 @@ * @return {Object} Action object.

*
* @param {string} content Notice message.
* @param {?Object} options Optional notice options.
* @param {string} content Notice message.
* @param {Object} [options] Optional notice options.
*

@@ -128,4 +127,4 @@ * @return {Object} Action object.

*
* @param {string} content Notice message.
* @param {?Object} options Optional notice options.
* @param {string} content Notice message.
* @param {Object} [options] Optional notice options.
*

@@ -141,5 +140,5 @@ * @return {Object} Action object.

*
* @param {string} id Notice unique identifier.
* @param {?string} context Optional context (grouping) in which the notice is
* intended to appear. Defaults to default context.
* @param {string} id Notice unique identifier.
* @param {string} [context='global'] Optional context (grouping) in which the notice is
* intended to appear. Defaults to default context.
*

@@ -146,0 +145,0 @@ * @return {Object} Action object.

@@ -32,2 +32,7 @@ /**

* user. Defaults to `true`.
* @property {string} type Type of notice, one of `default`,
* or `snackbar`. Defaults to `default`.
* @property {boolean} speak Whether the notice content should be
* announced to screen readers. Defaults to
* `true`.
* @property {WPNoticeAction[]} actions User actions to present with notice.

@@ -43,3 +48,3 @@ *

* browser navigation.
* @property {?Function} callback Optional function to invoke when action is
* @property {?Function} onClick Optional function to invoke when action is
* triggered by user.

@@ -46,0 +51,0 @@ *

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc