@wordpress/annotations
Advanced tools
Comparing version 1.0.8 to 1.1.0
/** | ||
* WordPress Dependencies | ||
* WordPress dependencies | ||
*/ | ||
@@ -4,0 +4,0 @@ import { registerStore } from '@wordpress/data'; |
@@ -65,3 +65,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
var previousAnnotationsForBlock = get(state, blockClientId, []); | ||
return _objectSpread({}, state, _defineProperty({}, blockClientId, _toConsumableArray(previousAnnotationsForBlock).concat([newAnnotation]))); | ||
return _objectSpread({}, state, _defineProperty({}, blockClientId, [].concat(_toConsumableArray(previousAnnotationsForBlock), [newAnnotation]))); | ||
@@ -68,0 +68,0 @@ case 'ANNOTATION_REMOVE': |
@@ -21,3 +21,3 @@ "use strict"; | ||
/** | ||
* WordPress Dependencies | ||
* WordPress dependencies | ||
*/ | ||
@@ -24,0 +24,0 @@ |
@@ -78,3 +78,3 @@ "use strict"; | ||
var previousAnnotationsForBlock = (0, _lodash.get)(state, blockClientId, []); | ||
return (0, _objectSpread3.default)({}, state, (0, _defineProperty2.default)({}, blockClientId, (0, _toConsumableArray2.default)(previousAnnotationsForBlock).concat([newAnnotation]))); | ||
return (0, _objectSpread3.default)({}, state, (0, _defineProperty2.default)({}, blockClientId, [].concat((0, _toConsumableArray2.default)(previousAnnotationsForBlock), [newAnnotation]))); | ||
@@ -81,0 +81,0 @@ case 'ANNOTATION_REMOVE': |
### WordPress - Web publishing software | ||
Copyright 2011-2018 by the contributors | ||
Copyright 2011-2019 by the contributors | ||
@@ -5,0 +5,0 @@ This program is free software; you can redistribute it and/or modify |
{ | ||
"name": "@wordpress/annotations", | ||
"version": "1.0.8", | ||
"version": "1.1.0", | ||
"description": "Annotate content in the Gutenberg editor.", | ||
@@ -14,3 +14,4 @@ "author": "The WordPress Contributors", | ||
"type": "git", | ||
"url": "https://github.com/WordPress/gutenberg.git" | ||
"url": "https://github.com/WordPress/gutenberg.git", | ||
"directory": "packages/annotations" | ||
}, | ||
@@ -24,8 +25,8 @@ "bugs": { | ||
"dependencies": { | ||
"@babel/runtime": "^7.0.0", | ||
"@wordpress/data": "^4.2.1", | ||
"@wordpress/hooks": "^2.0.5", | ||
"@wordpress/i18n": "^3.1.1", | ||
"@wordpress/rich-text": "^3.0.7", | ||
"lodash": "^4.17.10", | ||
"@babel/runtime": "^7.3.1", | ||
"@wordpress/data": "^4.3.0", | ||
"@wordpress/hooks": "^2.1.0", | ||
"@wordpress/i18n": "^3.2.0", | ||
"@wordpress/rich-text": "^3.1.0", | ||
"lodash": "^4.17.11", | ||
"memize": "^1.0.5", | ||
@@ -38,3 +39,3 @@ "rememo": "^3.0.0", | ||
}, | ||
"gitHead": "98fe104d8a412fb9582dc4376163eda3f4090484" | ||
"gitHead": "80d228669adadb8dfcd24b8421517fed3be2d474" | ||
} |
@@ -16,1 +16,3 @@ # Annotations | ||
## Usage | ||
<br/><br/><p align="center"><img src="https://s.w.org/style/images/codeispoetry.png?1" alt="Code is Poetry." /></p> |
/** | ||
* WordPress Dependencies | ||
* WordPress dependencies | ||
*/ | ||
@@ -4,0 +4,0 @@ import { registerStore } from '@wordpress/data'; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
135245
18
Updated@babel/runtime@^7.3.1
Updated@wordpress/data@^4.3.0
Updated@wordpress/hooks@^2.1.0
Updated@wordpress/i18n@^3.2.0
Updated@wordpress/rich-text@^3.1.0
Updatedlodash@^4.17.11